diff --git a/tunebook/assets/LearnerSession.abc b/tunebook/assets/LearnerSession.abc index 8fc0033..a66e3a7 100644 --- a/tunebook/assets/LearnerSession.abc +++ b/tunebook/assets/LearnerSession.abc @@ -4289,6 +4289,7 @@ K: Dmix X: 328 T: Hector the Hero R: waltz (slow air) +C: John Scott Skinner M: 6/8 L: 1/8 K: Dmaj @@ -4297,3 +4298,24 @@ K: Dmaj |:F/A/|"G"B>GB "Em"d>cB|"D"A3-A2F/A/|"G"B>AF "D"A>DF|"A"E3-E2F/A/| "G"B>GB "Em"d>cB|"D"A>DE "Bm"FDF "A"E2D|"D"D3-D2:| +X: 329 +T: Sorry Too Late +M: 4/4 +L: 1/8 +R: hornpipe +K: Gmaj +|: d>c | "G"(3Bcd "D"A>B "G"G>DB,>D | "G"G>B (3def g2 b>f | "G"(3gfe d>B "C"c>de>a |"G"(3gfe (3dcB "D"A>dc>d | +"G"B>d "D"A>B "G"G>DB,>D | "G"G>B (3def g2 b>f | "G"(3gfe (3dcB "C"c>ed>c | "G"B>G "D"A>F "G"G2:| +|: B>d | "Em"(3gag e>g "D"(3faf d>f | "C"g>fe>g "D"f2 d2 | "G"g>b "D"a>f "G"(3gab "D"(3agf |"G"(3gfe (3dcB "D"A>d c>d | +"G"(3Bcd "D"A>B "G"G>DB,>D | "G"G>B (3def g2 b>f | "G"(3gfe (3dcB "C"c>ed>c | "G"B>G "D"A>F "G"G2:| + +X: 330 +T: The Christmas Polka +R: polka +M: 2/4 +L: 1/8 +K: Dmaj +|:"D"fd AF|"G"GB B/A/G|"D"FA de/f/|"A"gf ed/e/| +"D"fd AF|"G"GB A>G|"D"FA de/f/|"A"ed "D"d>e:| +|:"D"fa af|"G"ga ba|"D"fa d>e|"A"fe ed/e/| +"D"f/e/f/g/ ad|"G"gaba|1 "D"fa "A"e/f/g/e/|"D"fd d>e:|2 "D"fa "A"e/f/g/e/|"D"fd d2|| diff --git a/tunebook/assets/tunebook-collection.json b/tunebook/assets/tunebook-collection.json index ee4a49a..0b93308 100644 --- a/tunebook/assets/tunebook-collection.json +++ b/tunebook/assets/tunebook-collection.json @@ -1 +1 @@ -{"books":[{"id":"learner","uri":"LearnerSession.abc","name":"Learner Session","description":"All tunes from the Hamburg Learner Session","storage":"assets","tunes":[{"id":"1a","rhythm":"polka","key":"A"},{"id":"1b","rhythm":"polka","key":"D"},{"id":"1c","rhythm":"polka","key":"A"},{"id":"2","rhythm":"jig","key":"C"},{"id":"3a","rhythm":"jig","key":"Ador"},{"id":"3b","rhythm":"slip jig","key":"Bm"},{"id":"4","rhythm":"hornpipe","key":"Em"},{"id":"5","rhythm":"hornpipe","key":"Em"},{"id":"6a","rhythm":"jig","key":"Dmix"},{"id":"6b","rhythm":"jig","key":"D"},{"id":"6c","rhythm":"jig","key":"D"},{"id":"7","rhythm":"reel","key":"D"},{"id":"8","rhythm":"reel","key":"D"},{"id":"9","rhythm":"jig","key":"D"},{"id":"10","rhythm":"reel","key":"Ddor"},{"id":"12","rhythm":"slip jig","key":"Em"},{"id":"13","rhythm":"slip jig","key":"Edor"},{"id":"14","rhythm":"reel","key":"D"},{"id":"15","rhythm":"slip jig","key":"Edor"},{"id":"16","rhythm":"jig","key":"Ador"},{"id":"17","rhythm":"reel","key":"D"},{"id":"18","rhythm":"reel","key":"G"},{"id":"19","rhythm":"slide","key":"D"},{"id":"20","rhythm":"slide","key":"G"},{"id":"21","rhythm":"reel","key":"D"},{"id":"23","rhythm":"reel","key":"G"},{"id":"24","rhythm":"slide","key":"G"},{"id":"25","rhythm":"reel","key":"Edor"},{"id":"26","rhythm":"reel","key":"Em"},{"id":"27","rhythm":"jig","key":"G"},{"id":"28","rhythm":"reel","key":"Ador"},{"id":"29","rhythm":"reel","key":"D"},{"id":"30","rhythm":"jig","key":"Ador"},{"id":"31","rhythm":"jig","key":"Bm"},{"id":"32","rhythm":"hornpipe","key":"D"},{"id":"33","rhythm":"jig","key":"G"},{"id":"34","rhythm":"jig","key":"D"},{"id":"35a","rhythm":"polka","key":"Ador"},{"id":"35b","rhythm":"polka","key":"Ador"},{"id":"36","rhythm":"jig","key":"Dmix"},{"id":"37","rhythm":"jig","key":"G"},{"id":"38","rhythm":"reel","key":"D"},{"id":"39","rhythm":"reel","key":"D"},{"id":"40","rhythm":"reel","key":"D"},{"id":"41","rhythm":"reel","key":"D"},{"id":"42","rhythm":"jig","key":"D"},{"id":"43","rhythm":"reel","key":"Ador"},{"id":"44","rhythm":"reel","key":"D"},{"id":"45","rhythm":"reel","key":"Edor"},{"id":"46","rhythm":"reel","key":"D"},{"id":"47","rhythm":"polka","key":"D"},{"id":"48","rhythm":"reel","key":"Edor"},{"id":"49","rhythm":"reel","key":"D"},{"id":"50","rhythm":"jig","key":"G"},{"id":"51","rhythm":"reel","key":"Dmix"},{"id":"52","rhythm":"jig","key":"G"},{"id":"53","rhythm":"reel","key":"Bm"},{"id":"54","rhythm":"reel","key":"Bm"},{"id":"55","rhythm":"barndance","key":"D"},{"id":"56","rhythm":"hornpipe","key":"D"},{"id":"57","rhythm":"reel","key":"G"},{"id":"58","rhythm":"reel","key":"D"},{"id":"59","rhythm":"reel","key":"G"},{"id":"60","rhythm":"jig","key":"G"},{"id":"61","rhythm":"reel","key":"D"},{"id":"62","rhythm":"jig","key":"D"},{"id":"63","rhythm":"reel","key":"G"},{"id":"64","rhythm":"reel","key":"D"},{"id":"65","rhythm":"jig","key":"G"},{"id":"66","rhythm":"jig","key":"Edor"},{"id":"67","rhythm":"jig","key":"G"},{"id":"68","rhythm":"jig","key":"G"},{"id":"69","rhythm":"jig","key":"D"},{"id":"70","rhythm":"jig","key":"G"},{"id":"71","rhythm":"reel","key":"Ador"},{"id":"72","rhythm":"reel","key":"Edor"},{"id":"73","rhythm":"reel","key":"D"},{"id":"74","rhythm":"jig","key":"D"},{"id":"75","rhythm":"jig","key":"Edor"},{"id":"76","rhythm":"reel","key":"Em"},{"id":"77","rhythm":"reel","key":"Em"},{"id":"78","rhythm":"jig","key":"Ador"},{"id":"79","rhythm":"reel","key":"Amix"},{"id":"80","rhythm":"reel","key":"D"},{"id":"81","rhythm":"reel","key":"Am"},{"id":"82","rhythm":"reel","key":"Amix"},{"id":"83","rhythm":"reel","key":"Ador"},{"id":"84","rhythm":"reel","key":"Bm"},{"id":"85","rhythm":"hornpipe","key":"G"},{"id":"86","rhythm":"hornpipe","key":"Edor"},{"id":"87","rhythm":"reel","key":"G"},{"id":"88","rhythm":"reel","key":"D"},{"id":"89","rhythm":"reel","key":"Amix"},{"id":"90","rhythm":"jig","key":"G"},{"id":"91","rhythm":"jig","key":"D"},{"id":"92","rhythm":"jig","key":"G"},{"id":"93","rhythm":"reel","key":"D"},{"id":"94","rhythm":"reel","key":"G"},{"id":"95","rhythm":"reel","key":"Dmix"},{"id":"96","rhythm":"hornpipe","key":"D"},{"id":"97","rhythm":"reel","key":"A"},{"id":"98","rhythm":"reel","key":"Em"},{"id":"99","rhythm":"reel","key":"G"},{"id":"100a","rhythm":"polka","key":"D"},{"id":"100b","rhythm":"polka","key":"G"},{"id":"100c","rhythm":"polka","key":"D"},{"id":"101","rhythm":"reel","key":"D"},{"id":"102","rhythm":"reel","key":"D"},{"id":"103","rhythm":"reel","key":"Bm"},{"id":"104","rhythm":"polka","key":"G"},{"id":"105","rhythm":"polka","key":"G"},{"id":"106","rhythm":"polka","key":"G"},{"id":"107","rhythm":"reel","key":"Ador"},{"id":"108","rhythm":"jig","key":"Ador"},{"id":"109","rhythm":"reel","key":"G"},{"id":"110","rhythm":"jig","key":"Dmix"},{"id":"111a","rhythm":"slide","key":"D"},{"id":"111b","rhythm":"slide","key":"Ador"},{"id":"112","rhythm":"jig","key":"Em"},{"id":"113","rhythm":"jig","key":"Am"},{"id":"114","rhythm":"reel","key":"G"},{"id":"115","rhythm":"reel","key":"D"},{"id":"116","rhythm":"slow reel","key":"Em"},{"id":"117","rhythm":"air","key":"Bm"},{"id":"118","rhythm":"hornpipe","key":"G"},{"id":"119","rhythm":"reel","key":"G"},{"id":"120","rhythm":"reel","key":"G"},{"id":"121","rhythm":"reel","key":"Ador"},{"id":"122a","rhythm":"jig","key":"D"},{"id":"122b","rhythm":"jig","key":"C"},{"id":"123","rhythm":"jig","key":"Ador"},{"id":"124","rhythm":"jig","key":"D"},{"id":"125","rhythm":"reel","key":"Edor"},{"id":"126","rhythm":"reel","key":"Em"},{"id":"127","rhythm":"reel","key":"G"},{"id":"128","rhythm":"waltz","key":"D"},{"id":"129","rhythm":"polka","key":"D"},{"id":"130","rhythm":"polka","key":"G"},{"id":"131","rhythm":"reel","key":"D"},{"id":"132","rhythm":"reel","key":"Ador"},{"id":"133","rhythm":"reel","key":"G"},{"id":"134","rhythm":"waltz","key":"Bm"},{"id":"135","rhythm":"slip jig","key":"Em"},{"id":"136","rhythm":"slip jig","key":"G"},{"id":"137","rhythm":"jig","key":"Dmix"},{"id":"138","rhythm":"reel","key":"Ador"},{"id":"139","rhythm":"reel","key":"D"},{"id":"140","rhythm":"reel","key":"G"},{"id":"141","rhythm":"reel","key":"D"},{"id":"142","rhythm":"jig","key":"A"},{"id":"143","rhythm":"jig","key":"G"},{"id":"144","rhythm":"jig","key":"Edor"},{"id":"145","rhythm":"jig","key":"G"},{"id":"146","rhythm":"polka","key":"Bm"},{"id":"147","rhythm":"polka","key":"A"},{"id":"148","rhythm":"waltz","key":"G"},{"id":"149","rhythm":"reel","key":"D"},{"id":"150","rhythm":"reel","key":"Edor"},{"id":"151","rhythm":"reel","key":"G"},{"id":"152","rhythm":"reel","key":"D"},{"id":"153","rhythm":"reel","key":"Ador"},{"id":"154","rhythm":"reel","key":"Dm"},{"id":"155","rhythm":"reel","key":"D"},{"id":"156","rhythm":"jig","key":"Ador"},{"id":"157","rhythm":"reel","key":"G"},{"id":"158","rhythm":"reel","key":"D"},{"id":"159","rhythm":"reel","key":"A"},{"id":"160","rhythm":"reel","key":"G"},{"id":"161","rhythm":"polka","key":"D"},{"id":"162","rhythm":"jig","key":"G"},{"id":"163","rhythm":"reel","key":"Em"},{"id":"164","rhythm":"jig","key":"Amix"},{"id":"165","rhythm":"reel","key":"Amix"},{"id":"166","rhythm":"reel","key":"G"},{"id":"167","rhythm":"reel","key":"D"},{"id":"168","rhythm":"slide","key":"D"},{"id":"169","rhythm":"reel","key":"G"},{"id":"170","rhythm":"reel","key":"Edor"},{"id":"171","rhythm":"reel","key":"G"},{"id":"172","rhythm":"slide","key":"Edor"},{"id":"173","rhythm":"reel","key":"C"},{"id":"174","rhythm":"slip jig","key":"D"},{"id":"175","rhythm":"slip jig","key":"G"},{"id":"176","rhythm":"slip jig","key":"Edor"},{"id":"177","rhythm":"reel","key":"Bm"},{"id":"178","rhythm":"reel","key":"Edor"},{"id":"179","rhythm":"jig","key":"D"},{"id":"180","rhythm":"slip jig","key":"G"},{"id":"181","rhythm":"polka","key":"Em"},{"id":"182","rhythm":"polka","key":"A"},{"id":"183","rhythm":"reel","key":"Edor"},{"id":"184","rhythm":"jig","key":"Am"},{"id":"185","rhythm":"jig","key":"G"},{"id":"186","rhythm":"reel","key":"G"},{"id":"187","rhythm":"jig","key":"A"},{"id":"187b","rhythm":"reel","key":"Am"},{"id":"188","rhythm":"reel","key":"Dmix"},{"id":"189","rhythm":"slide","key":"G"},{"id":"190","rhythm":"slide","key":"G"},{"id":"191","rhythm":"reel","key":"D"},{"id":"192","rhythm":"reel","key":"Dmix"},{"id":"193","rhythm":"reel","key":"Dmix"},{"id":"194","rhythm":"reel","key":"Em"},{"id":"195","rhythm":"reel","key":"D"},{"id":"196","rhythm":"reel","key":"D"},{"id":"196b","rhythm":"reel","key":"D"},{"id":"197","rhythm":"reel","key":"G"},{"id":"198","rhythm":"reel","key":"D"},{"id":"199","rhythm":"reel","key":"G"},{"id":"200","rhythm":"hornpipe","key":"Ador"},{"id":"201","rhythm":"hornpipe","key":"G"},{"id":"202","rhythm":"jig","key":"Dmix"},{"id":"203","rhythm":"reel","key":"D"},{"id":"204","rhythm":"reel","key":"G"},{"id":"205","rhythm":"jig","key":"D"},{"id":"206","rhythm":"jig","key":"Bm"},{"id":"207","rhythm":"jig","key":"G"},{"id":"208","rhythm":"jig","key":"D"},{"id":"209","rhythm":"reel","key":"D"},{"id":"210","rhythm":"reel","key":"Edor"},{"id":"211a","rhythm":"jig","key":"G"},{"id":"211b","rhythm":"jig","key":"A"},{"id":"212","rhythm":"jig","key":"Em"},{"id":"213","rhythm":"waltz","key":"Em"},{"id":"214","rhythm":"jig","key":"D"},{"id":"215","rhythm":"jig","key":"D"},{"id":"216","rhythm":"polka","key":"G"},{"id":"217a","rhythm":"reel","key":"G"},{"id":"217b","rhythm":"reel","key":"G"},{"id":"218a","rhythm":"polka","key":"G"},{"id":"218b","rhythm":"polka","key":"Ador"},{"id":"219","rhythm":"jig","key":"D"},{"id":"220","rhythm":"reel","key":"G"},{"id":"221","rhythm":"reel","key":"G"},{"id":"222","rhythm":"jig","key":"Bm"},{"id":"223","rhythm":"reel","key":"G"},{"id":"224","rhythm":"reel","key":"G"},{"id":"225","rhythm":"reel","key":"D"},{"id":"226","rhythm":"jig","key":"G"},{"id":"227","rhythm":"reel","key":"Em"},{"id":"228","rhythm":"jig","key":"D"},{"id":"229","rhythm":"reel","key":"A"},{"id":"230","rhythm":"reel","key":"Amix"},{"id":"231a","rhythm":"reel","key":"Bm"},{"id":"231b","rhythm":"reel","key":"Em"},{"id":"232","rhythm":"reel","key":"G"},{"id":"233","rhythm":"waltz","key":"Em"},{"id":"234","rhythm":"polka","key":"Edor"},{"id":"235","rhythm":"polka","key":"Am"},{"id":"236","rhythm":"reel","key":"G"},{"id":"237","rhythm":"polka","key":"A"},{"id":"238","rhythm":"waltz","key":"G"},{"id":"239","rhythm":"reel","key":"D"},{"id":"240","rhythm":"reel","key":"D"},{"id":"241a","rhythm":"polka","key":"G"},{"id":"241b","rhythm":"polka","key":"D"},{"id":"241c","rhythm":"polka","key":"Bm"},{"id":"242","rhythm":"reel","key":"D"},{"id":"243","rhythm":"reel","key":"G"},{"id":"244","rhythm":"reel","key":"Ador"},{"id":"245","rhythm":"reel","key":"Ador"},{"id":"246","key":"Edor"},{"id":"247","rhythm":"reel","key":"D"},{"id":"248","rhythm":"reel","key":"A"},{"id":"248b","rhythm":"reel","key":"A"},{"id":"249","rhythm":"reel","key":"Edor"},{"id":"250","rhythm":"reel","key":"Edor"},{"id":"251","rhythm":"hornpipe","key":"D"},{"id":"252","rhythm":"jig","key":"D"},{"id":"253","rhythm":"jig","key":"D"},{"id":"253b","rhythm":"jig","key":"D"},{"id":"254","rhythm":"jig","key":"G"},{"id":"255","rhythm":"reel","key":"Bm"},{"id":"256","rhythm":"hornpipe","key":"D"},{"id":"257","rhythm":"slip jig","key":"D"},{"id":"258","rhythm":"waltz","key":"G"},{"id":"259","rhythm":"reel","key":"Em"},{"id":"260","rhythm":"jig","key":"Em"},{"id":"261","rhythm":"reel","key":"Bm"},{"id":"262","rhythm":"jig","key":"Dmix"},{"id":"263","rhythm":"jig","key":"D"},{"id":"264","rhythm":"jig","key":"G"},{"id":"265","rhythm":"reel","key":"D"},{"id":"265a","rhythm":"reel","key":"D"},{"id":"266","rhythm":"reel","key":"D"},{"id":"267","rhythm":"reel","key":"Edor"},{"id":"268","rhythm":"reel","key":"Edor"},{"id":"269a","rhythm":"jig","key":"D"},{"id":"269b","rhythm":"jig","key":"G"},{"id":"270","rhythm":"reel","key":"Edor"},{"id":"271","rhythm":"reel","key":"D"},{"id":"272","rhythm":"jig","key":"Edor"},{"id":"273","rhythm":"reel","key":"A"},{"id":"274","rhythm":"reel","key":"Em"},{"id":"275","rhythm":"jig","key":"D"},{"id":"276","rhythm":"jig","key":"D"},{"id":"277","rhythm":"waltz","key":"G"},{"id":"278","rhythm":"slip jig","key":"D"},{"id":"279","rhythm":"hornpipe","key":"G"},{"id":"280","rhythm":"jig","key":"Ador"},{"id":"281","rhythm":"waltz","key":"G"},{"id":"282","rhythm":"polka","key":"Ador"},{"id":"283","rhythm":"polka","key":"Edor"},{"id":"284","rhythm":"slide","key":"G"},{"id":"285","rhythm":"reel","key":"Em"},{"id":"286","rhythm":"waltz","key":"G"},{"id":"287","rhythm":"waltz","key":"G"},{"id":"288","rhythm":"waltz","key":"Em"},{"id":"289","rhythm":"reel","key":"Amix"},{"id":"290","rhythm":"jig","key":"Dmix"},{"id":"291","rhythm":"reel","key":"Bm"},{"id":"292","rhythm":"reel","key":"G"},{"id":"293","rhythm":"reel","key":"A"},{"id":"294","rhythm":"reel","key":"Edor"},{"id":"295","rhythm":"reel","key":"D"},{"id":"296","rhythm":"reel","key":"D"},{"id":"297","rhythm":"march","key":"G"},{"id":"298","rhythm":"jig","key":"G"},{"id":"299","rhythm":"set dance","key":"G"},{"id":"300","rhythm":"jig","key":"Edor"},{"id":"301","rhythm":"jig","key":"Edor"},{"id":"302","rhythm":"barndance","key":"D"},{"id":"303","rhythm":"strathspey","key":"D"},{"id":"304","rhythm":"barndance","key":"G"},{"id":"305","rhythm":"hornpipe","key":"Edor"},{"id":"306","rhythm":"polka","key":"G"},{"id":"307","rhythm":"jig","key":"Dmix"},{"id":"308","rhythm":"reel","key":"Ador"},{"id":"309","rhythm":"slip jig","key":"Dmix"},{"id":"310","rhythm":"slip jig","key":"Dmix"},{"id":"311","rhythm":"slide","key":"Amix"},{"id":"312","key":"D"},{"id":"313","rhythm":"hornpipe","key":"G"},{"id":"314","rhythm":"reel","key":"Bm"},{"id":"315","rhythm":"polka","key":"G"},{"id":"316","rhythm":"jig","key":"Ador"},{"id":"317","rhythm":"slip jig","key":"Fm"},{"id":"318","rhythm":"waltz","key":"G"},{"id":"319","rhythm":"slide","key":"G"},{"id":"320","rhythm":"hornpipe","key":"D"},{"id":"321","rhythm":"reel","key":"G"},{"id":"322","rhythm":"jig","key":"G"},{"id":"323","rhythm":"polka","key":"Ador"},{"id":"324","rhythm":"polka","key":"G"},{"id":"325","rhythm":"strathspey","key":"G"},{"id":"326","rhythm":"slide","key":"D"},{"id":"327","rhythm":"slip jig","key":"Dmix"},{"id":"328","rhythm":"waltz (slow air)","key":"D"}]},{"id":"rover","uri":"Rover.abc","name":"Rover Session","description":"Some tunes played at the Hamburg Irish Rover Session on Sundays","storage":"assets","tunes":[{"id":"1","key":"D"},{"id":"2","key":"D"},{"id":"3","rhythm":"reel","key":"D"},{"id":"4","rhythm":"jig","key":"Am"},{"id":"5","rhythm":"jig","key":"D"},{"id":"6","rhythm":"jig","key":"D"},{"id":"7","rhythm":"reel","key":"G"},{"id":"8","rhythm":"set dance","key":"G"},{"id":"9","rhythm":"jig","key":"G"},{"id":"10","rhythm":"reel","key":"Dmix"},{"id":"11","rhythm":"reel","key":"G"},{"id":"12","rhythm":"reel","key":"G"},{"id":"13","rhythm":"reel","key":"D"},{"id":"14","rhythm":"hornpipe","key":"A"},{"id":"15","rhythm":"slide","key":"G"},{"id":"16","rhythm":"reel","key":"Ador"},{"id":"17","rhythm":"reel","key":"D"},{"id":"18","rhythm":"reel","key":"D"},{"id":"19","key":"G"},{"id":"20","rhythm":"jig","key":"Ador"},{"id":"21","rhythm":"reel","key":"C"},{"id":"22","rhythm":"reel","key":"D"},{"id":"23","rhythm":"c|","key":"Am"},{"id":"24","rhythm":"reel","key":"D"},{"id":"25","rhythm":"reel","key":"A"},{"id":"26","rhythm":"reel","key":"G"},{"id":"27","rhythm":"reel","key":"D"},{"id":"28","rhythm":"jig","key":"Em"},{"id":"29","rhythm":"slide","key":"Amix"},{"id":"30","rhythm":"jig","key":"Edor"},{"id":"31","rhythm":"jig","key":"D"},{"id":"32","rhythm":"reel","key":"G"},{"id":"33","rhythm":"slide","key":"D"},{"id":"34","rhythm":"jig","key":"D"},{"id":"35","rhythm":"reel","key":"D"},{"id":"36","rhythm":"polka","key":"A"},{"id":"37","rhythm":"reel","key":"D"},{"id":"38","rhythm":"reel","key":"D"},{"id":"39","rhythm":"reel","key":"Bm"},{"id":"40","rhythm":"jig","key":"D"},{"id":"41","rhythm":"jig","key":"G"},{"id":"42","rhythm":"reel","key":"Ador"},{"id":"43","rhythm":"jig","key":"Dmix"},{"id":"44","rhythm":"jig","key":"Amix"},{"id":"45","rhythm":"reel","key":"Ador"},{"id":"46","rhythm":"jig","key":"Ador"},{"id":"47","rhythm":"reel","key":"D"},{"id":"48","rhythm":"reel","key":"Edor"},{"id":"49","rhythm":"reel","key":"D"},{"id":"50","rhythm":"reel","key":"D"},{"id":"51","rhythm":"hornpipe","key":"Amix"},{"id":"52","rhythm":"reel","key":"Am"},{"id":"53","rhythm":"reel","key":"Edor"},{"id":"54","rhythm":"waltz","key":"D"},{"id":"55","rhythm":"jig","key":"G"},{"id":"56","rhythm":"jig","key":"G"},{"id":"57","rhythm":"jig","key":"D"},{"id":"58","rhythm":"reel","key":"G"},{"id":"59","rhythm":"reel","key":"Ador"},{"id":"60","rhythm":"reel","key":"G"},{"id":"61","rhythm":"reel","key":"Am"},{"id":"62","rhythm":"reel","key":"G"},{"id":"63","rhythm":"jig","key":"G"},{"id":"64","rhythm":"air","key":"G"},{"id":"65","rhythm":"reel","key":"G"},{"id":"66","rhythm":"reel","key":"D"},{"id":"67","rhythm":"reel","key":"D"},{"id":"68","rhythm":"reel","key":"G"},{"id":"69","rhythm":"polka","key":"D"},{"id":"70","rhythm":"march","key":"G"},{"id":"71","rhythm":"polka","key":"G"},{"id":"72","rhythm":"polka","key":"A"},{"id":"73","rhythm":"reel","key":"D"},{"id":"74","rhythm":"reel","key":"Ador"},{"id":"75","rhythm":"jig","key":"Ador"},{"id":"76","rhythm":"slip jig","key":"Ador"},{"id":"77","rhythm":"polka","key":"D"},{"id":"78","rhythm":"waltz","key":"Edor"},{"id":"79","rhythm":"jig","key":"Dmix"},{"id":"80","rhythm":"jig","key":"G"},{"id":"81","rhythm":"jig","key":"Dmix"},{"id":"82","rhythm":"reel","key":"G"},{"id":"83","rhythm":"jig","key":"Em"},{"id":"84","rhythm":"polka","key":"G"},{"id":"85","rhythm":"jig","key":"Am"},{"id":"86","rhythm":"jig","key":"D"},{"id":"87","rhythm":"jig","key":"Dmix"},{"id":"88","rhythm":"barndance","key":"G"},{"id":"89","rhythm":"jig","key":"G"},{"id":"90","rhythm":"jig","key":"Edor"},{"id":"91","rhythm":"hornpipe","key":"D"},{"id":"92","rhythm":"jig","key":"Bm"},{"id":"93","rhythm":"reel","key":"A"},{"id":"94","rhythm":"reel","key":"D"},{"id":"95","rhythm":"jig","key":"Amix"},{"id":"96","rhythm":"hornpipe","key":"G"},{"id":"97","rhythm":"reel","key":"Amix"},{"id":"98","rhythm":"jig","key":"Dmix"},{"id":"99","rhythm":"reel","key":"G"},{"id":"100","rhythm":"hornpipe","key":"D"},{"id":"101","rhythm":"jig","key":"D"},{"id":"102","rhythm":"jig","key":"Edor"},{"id":"103","rhythm":"jig","key":"Amix"},{"id":"104","rhythm":"jig","key":"C"},{"id":"105","rhythm":"reel","key":"Edor"},{"id":"105","rhythm":"reel","key":"C"},{"id":"106","rhythm":"jig","key":"Em"},{"id":"107","rhythm":"jig","key":"Amix"},{"id":"108","rhythm":"slip jig","key":"D"},{"id":"109","rhythm":"jig","key":"G"},{"id":"110","rhythm":"reel","key":"D"},{"id":"111","rhythm":"jig","key":"G"},{"id":"112","rhythm":"reel","key":"G"},{"id":"113","key":"G"},{"id":"114","rhythm":"jig","key":"G"},{"id":"115","rhythm":"jig","key":"A"},{"id":"116","rhythm":"reel","key":"D"},{"id":"117","rhythm":"reel","key":"Bm"},{"id":"118","rhythm":"reel","key":"G"},{"id":"119","rhythm":"waltz","key":"A"},{"id":"120","rhythm":"strathspey","key":"D"},{"id":"121","rhythm":"reel","key":"Em"},{"id":"122","rhythm":"reel","key":"D"},{"id":"123","rhythm":"reel","key":"G"},{"id":"124","rhythm":"slip jig","key":"G"},{"id":"125","rhythm":"slip jig","key":"Fm"},{"id":"126","rhythm":"reel","key":"Ador"},{"id":"127","rhythm":"jig","key":"D"},{"id":"128","rhythm":"jig","key":"Ador"},{"id":"129","rhythm":"reel","key":"Ador"},{"id":"130","rhythm":"reel","key":"Dmix"},{"id":"131","rhythm":"reel","key":"D"},{"id":"132","rhythm":"jig","key":"D"},{"id":"133","rhythm":"reel","key":"G"},{"id":"134","rhythm":"reel","key":"G"},{"id":"135","rhythm":"reel","key":"Am"},{"id":"136","rhythm":"jig","key":"Dmix"},{"id":"137","rhythm":"jig","key":"Am"},{"id":"138","rhythm":"reel","key":"Bm"},{"id":"139","rhythm":"jig","key":"Dmix"},{"id":"140","rhythm":"reel","key":"D"},{"id":"141","rhythm":"reel","key":"D"},{"id":"142","rhythm":"jig","key":"A"},{"id":"143","rhythm":"jig","key":"G"},{"id":"144","rhythm":"jig","key":"D"},{"id":"145","rhythm":"jig","key":"Ddor"},{"id":"146","rhythm":"slip jig","key":"D"},{"id":"147","rhythm":"hornpipe","key":"D"},{"id":"148","rhythm":"jig","key":"Edor"},{"id":"149","rhythm":"jig","key":"D"},{"id":"150","rhythm":"reel","key":"Bm"},{"id":"151","rhythm":"jig","key":"D"},{"id":"152","rhythm":"jig","key":"D"},{"id":"153","rhythm":"slide","key":"D"},{"id":"154","rhythm":"reel","key":"G"},{"id":"155","rhythm":"jig","key":"G"},{"id":"156","rhythm":"jig","key":"Ador"},{"id":"157","rhythm":"reel","key":"G"},{"id":"158","rhythm":"jig","key":"D"},{"id":"159","rhythm":"jig","key":"D"},{"id":"160","rhythm":"reel","key":"Ador"},{"id":"161","rhythm":"reel","key":"Dmix"},{"id":"162","rhythm":"reel","key":"G"},{"id":"163","rhythm":"reel","key":"D"},{"id":"164","rhythm":"reel","key":"G"},{"id":"165","rhythm":"reel","key":"Amix"},{"id":"166","rhythm":"jig","key":"Edor"},{"id":"167","rhythm":"jig","key":"Em"},{"id":"168","rhythm":"reel","key":"D"},{"id":"169","rhythm":"jig","key":"D"},{"id":"170","rhythm":"slip jig","key":"G"},{"id":"171","rhythm":"jig","key":"G"},{"id":"172","rhythm":"jig","key":"Ador"},{"id":"173","rhythm":"jig","key":"Ador"},{"id":"174","rhythm":"reel","key":"Edor"},{"id":"175","rhythm":"jig","key":"Dmix"},{"id":"176","rhythm":"jig","key":"Ador"},{"id":"177","rhythm":"jig","key":"Em"},{"id":"178","rhythm":"march","key":"Ador"},{"id":"179","rhythm":"hornpipe","key":"D"},{"id":"180","rhythm":"reel","key":"Bm"},{"id":"181","rhythm":"slip jig","key":"G"},{"id":"182","rhythm":"jig","key":"D"},{"id":"183","rhythm":"reel","key":"G"},{"id":"184","rhythm":"jig","key":"G"},{"id":"185","rhythm":"reel","key":"D"},{"id":"186","rhythm":"reel","key":"D"},{"id":"187","rhythm":"reel","key":"Edor"},{"id":"188","rhythm":"reel","key":"Dmix"},{"id":"189","rhythm":"reel","key":"D"},{"id":"190","rhythm":"jig","key":"D"},{"id":"191","rhythm":"jig","key":"Ador"},{"id":"192","rhythm":"hornpipe","key":"G"},{"id":"193","rhythm":"reel","key":"D"},{"id":"194","rhythm":"reel","key":"G"},{"id":"195","rhythm":"reel","key":"D"},{"id":"196","rhythm":"reel","key":"D"},{"id":"197","rhythm":"jig","key":"G"},{"id":"198","rhythm":"jig","key":"G"},{"id":"199","rhythm":"reel","key":"G"},{"id":"200","rhythm":"reel","key":"G"},{"id":"201","rhythm":"jig","key":"G"},{"id":"202","rhythm":"reel","key":"G"},{"id":"203","rhythm":"jig","key":"Dmix"},{"id":"204","rhythm":"jig","key":"D"},{"id":"205","rhythm":"jig","key":"Dmix"},{"id":"206","rhythm":"slip jig","key":"Ador"},{"id":"207","rhythm":"barndance","key":"G"},{"id":"208","rhythm":"reel","key":"D"},{"id":"209","rhythm":"reel","key":"Ador"},{"id":"210","rhythm":"reel","key":"C"},{"id":"211","rhythm":"polka","key":"G"},{"id":"212","rhythm":"polka","key":"G"},{"id":"213","rhythm":"reel","key":"D"},{"id":"214","rhythm":"reel","key":"G"},{"id":"215","rhythm":"slip jig","key":"Am"},{"id":"216","rhythm":"slip jig","key":"Bm"},{"id":"217","rhythm":"waltz","key":"G"},{"id":"218","rhythm":"jig","key":"G"},{"id":"219","rhythm":"jig","key":"D"},{"id":"220","rhythm":"jig","key":"G"},{"id":"221","rhythm":"jig","key":"G"},{"id":"222","rhythm":"reel","key":"D"},{"id":"223","rhythm":"reel","key":"D"},{"id":"224","rhythm":"reel","key":"D"},{"id":"225","rhythm":"jig","key":"A"},{"id":"226","rhythm":"polka","key":"G"},{"id":"227","rhythm":"jig","key":"G"},{"id":"228","rhythm":"jig","key":"D"},{"id":"229","rhythm":"reel","key":"G"},{"id":"230","rhythm":"reel","key":"D"},{"id":"231","rhythm":"hornpipe","key":"D"},{"id":"232","rhythm":"reel","key":"Ddor"},{"id":"233","rhythm":"jig","key":"Em"}]},{"id":"oneill1001","uri":"ONeill1001.abc","name":"O'Neill 1001","description":"Francis O'Neill: The Dance Music of Ireland (1907)","storage":"assets","tunes":[{"id":"1","rhythm":"double jig","key":"D"},{"id":"2","rhythm":"double jig","key":"A"},{"id":"3","rhythm":"double jig","key":"G"},{"id":"4","rhythm":"double jig","key":"G"},{"id":"5","rhythm":"double jig","key":"D"},{"id":"6","rhythm":"double jig","key":"D"},{"id":"7","rhythm":"double jig","key":"G"},{"id":"8","rhythm":"double jig","key":"D"},{"id":"9","rhythm":"double jig","key":"Am"},{"id":"10","rhythm":"double jig","key":"Ddor"},{"id":"11","rhythm":"double jig","key":"D"},{"id":"12","rhythm":"double jig","key":"G"},{"id":"13","rhythm":"double jig","key":"G"},{"id":"14","rhythm":"double jig","key":"Am"},{"id":"15","rhythm":"double jig","key":"Amix"},{"id":"16","rhythm":"double jig","key":"D"},{"id":"17","rhythm":"double jig","key":"G"},{"id":"18","rhythm":"double jig","key":"Amix"},{"id":"19","rhythm":"double jig","key":"D"},{"id":"20","rhythm":"double jig","key":"G"},{"id":"21","rhythm":"double jig","key":"D"},{"id":"22","rhythm":"double jig","key":"G"},{"id":"23","rhythm":"double jig","key":"G"},{"id":"24","rhythm":"double jig","key":"G"},{"id":"25","rhythm":"double jig","key":"D"},{"id":"26","rhythm":"double jig","key":"G"},{"id":"27","rhythm":"double jig","key":"D"},{"id":"28","rhythm":"double jig","key":"Am"},{"id":"29","rhythm":"double jig","key":"D"},{"id":"30","rhythm":"double jig","key":"G"},{"id":"31","rhythm":"double jig","key":"D"},{"id":"32","rhythm":"double jig","key":"Em"},{"id":"33","rhythm":"double jig","key":"D"},{"id":"34","rhythm":"double jig","key":"Bm"},{"id":"35","rhythm":"double jig","key":"Am"},{"id":"36","rhythm":"double jig","key":"D"},{"id":"37","rhythm":"double jig","key":"G"},{"id":"38","rhythm":"double jig","key":"D"},{"id":"39","rhythm":"double jig","key":"G"},{"id":"40","rhythm":"double jig","key":"D"},{"id":"41","rhythm":"double jig","key":"Em"},{"id":"42","rhythm":"double jig","key":"G"},{"id":"43","rhythm":"double jig","key":"G"},{"id":"44","rhythm":"double jig","key":"G"},{"id":"45","rhythm":"double jig","key":"Em"},{"id":"46","rhythm":"double jig","key":"G"},{"id":"47","rhythm":"double jig","key":"D"},{"id":"48","rhythm":"double jig","key":"Am"},{"id":"49","rhythm":"double jig","key":"Dmix"},{"id":"50","rhythm":"double jig","key":"D"},{"id":"51","rhythm":"double jig, march","key":"D"},{"id":"52","rhythm":"double jig","key":"D"},{"id":"53","rhythm":"double jig","key":"D"},{"id":"54","rhythm":"double jig","key":"G"},{"id":"55","rhythm":"double jig","key":"G"},{"id":"56","rhythm":"double jig","key":"D"},{"id":"57","rhythm":"double jig","key":"D"},{"id":"58","rhythm":"double jig","key":"G"},{"id":"59","rhythm":"double jig","key":"G"},{"id":"60","rhythm":"double jig","key":"D"},{"id":"61","rhythm":"double jig","key":"D"},{"id":"62","rhythm":"double jig","key":"Amix"},{"id":"63","rhythm":"double jig","key":"G"},{"id":"64","rhythm":"double jig","key":"Am"},{"id":"65","rhythm":"double jig","key":"D"},{"id":"66","rhythm":"double jig","key":"Amix"},{"id":"67","rhythm":"double jig","key":"Dmix"},{"id":"68","rhythm":"double jig","key":"G"},{"id":"69","rhythm":"double jig","key":"G"},{"id":"70","rhythm":"double jig","key":"D"},{"id":"71","rhythm":"double jig","key":"Edor"},{"id":"72","rhythm":"double jig","key":"G"},{"id":"73","rhythm":"double jig","key":"Am"},{"id":"74","rhythm":"double jig","key":"Dmix"},{"id":"75","rhythm":"double jig","key":"Ador"},{"id":"76","rhythm":"double jig","key":"G"},{"id":"77","rhythm":"double jig","key":"Ador"},{"id":"78","rhythm":"double jig","key":"G"},{"id":"79","rhythm":"double jig","key":"G"},{"id":"80","rhythm":"double jig","key":"D"},{"id":"81","rhythm":"double jig","key":"A"},{"id":"82","rhythm":"double jig","key":"A"},{"id":"83","rhythm":"double jig","key":"D"},{"id":"84","rhythm":"double jig","key":"Am"},{"id":"85","rhythm":"double jig","key":"A"},{"id":"86","rhythm":"double jig","key":"A"},{"id":"87","rhythm":"double jig","key":"Ddor"},{"id":"88","rhythm":"double jig","key":"D"},{"id":"89","rhythm":"double jig","key":"G"},{"id":"90","rhythm":"double jig","key":"Am"},{"id":"91","rhythm":"double jig","key":"D"},{"id":"92","rhythm":"double jig","key":"G"},{"id":"93","rhythm":"double jig","key":"Am"},{"id":"94","rhythm":"double jig","key":"G"},{"id":"95","rhythm":"double jig","key":"D"},{"id":"96","rhythm":"double jig","key":"G"},{"id":"97","rhythm":"double jig","key":"D"},{"id":"98","rhythm":"double jig","key":"G"},{"id":"99","rhythm":"double jig","key":"D"},{"id":"100","rhythm":"double jig","key":"Ador"},{"id":"101","rhythm":"double jig","key":"G"},{"id":"102","rhythm":"double jig","key":"A"},{"id":"103","rhythm":"double jig","key":"G"},{"id":"104","rhythm":"double jig","key":"G"},{"id":"105","rhythm":"double jig","key":"Ador"},{"id":"106","rhythm":"double jig","key":"D"},{"id":"107","rhythm":"double jig","key":"G"},{"id":"108","rhythm":"double jig","key":"G"},{"id":"109","rhythm":"double jig","key":"G"},{"id":"110","rhythm":"double jig","key":"Am"},{"id":"111","rhythm":"double jig","key":"G"},{"id":"112","rhythm":"double jig","key":"G"},{"id":"113","rhythm":"double jig","key":"G"},{"id":"114","rhythm":"double jig","key":"G"},{"id":"115","rhythm":"double jig","key":"G"},{"id":"116","rhythm":"double jig","key":"Em"},{"id":"117","rhythm":"double jig","key":"Amix"},{"id":"118","rhythm":"double jig","key":"Em"},{"id":"119","rhythm":"double jig","key":"Em"},{"id":"120","rhythm":"double jig","key":"G"},{"id":"121","rhythm":"double jig","key":"G"},{"id":"122","rhythm":"double jig","key":"G"},{"id":"123","rhythm":"double jig","key":"Em"},{"id":"124","rhythm":"double jig","key":"D"},{"id":"125","rhythm":"double jig","key":"Am"},{"id":"126","rhythm":"double jig","key":"G"},{"id":"127","rhythm":"double jig","key":"G"},{"id":"128","rhythm":"double jig","key":"G"},{"id":"129","rhythm":"double jig","key":"D"},{"id":"130","rhythm":"double jig","key":"G"},{"id":"131","rhythm":"double jig","key":"G"},{"id":"132","rhythm":"double jig","key":"G"},{"id":"133","rhythm":"double jig","key":"Em"},{"id":"134","rhythm":"double jig","key":"D"},{"id":"135","rhythm":"double jig","key":"G"},{"id":"136","rhythm":"double jig","key":"D"},{"id":"137","rhythm":"double jig","key":"Amix"},{"id":"138","rhythm":"double jig","key":"G"},{"id":"139","rhythm":"double jig","key":"A"},{"id":"140","rhythm":"double jig","key":"G"},{"id":"141","rhythm":"double jig","key":"G"},{"id":"142","rhythm":"double jig","key":"Amix"},{"id":"143","rhythm":"double jig","key":"Em"},{"id":"144","rhythm":"double jig","key":"D"},{"id":"145","rhythm":"double jig","key":"Em"},{"id":"146","rhythm":"double jig","key":"D"},{"id":"147","rhythm":"double jig","key":"G"},{"id":"148","rhythm":"double jig","key":"D"},{"id":"149","rhythm":"double jig","key":"Am"},{"id":"150","rhythm":"double jig","key":"D"},{"id":"151","rhythm":"double jig","key":"G"},{"id":"152","rhythm":"double jig","key":"D"},{"id":"153","rhythm":"double jig","key":"Am"},{"id":"154","rhythm":"double jig","key":"A"},{"id":"155","rhythm":"double jig","key":"D"},{"id":"156","rhythm":"double jig","key":"G"},{"id":"157","rhythm":"double jig","key":"A"},{"id":"158","rhythm":"double jig","key":"Am"},{"id":"159","rhythm":"double jig","key":"D"},{"id":"160","rhythm":"double jig","key":"Amix"},{"id":"161","rhythm":"double jig","key":"G"},{"id":"162","rhythm":"double jig","key":"Ador"},{"id":"163","rhythm":"double jig","key":"D"},{"id":"164","rhythm":"double jig","key":"A"},{"id":"165","rhythm":"double jig","key":"A"},{"id":"166","rhythm":"double jig","key":"A"},{"id":"167","rhythm":"double jig","key":"Dmix"},{"id":"168","rhythm":"double jig","key":"G"},{"id":"169","rhythm":"double jig","key":"D"},{"id":"170","rhythm":"double jig","key":"G"},{"id":"171","rhythm":"double jig","key":"G"},{"id":"172","rhythm":"double jig","key":"G"},{"id":"173","rhythm":"double jig","key":"A"},{"id":"174","rhythm":"double jig","key":"D"},{"id":"175","rhythm":"double jig","key":"G"},{"id":"176","rhythm":"double jig","key":"G"},{"id":"177","rhythm":"double jig","key":"G"},{"id":"178","rhythm":"double jig","key":"G"},{"id":"179","rhythm":"double jig","key":"G"},{"id":"180","rhythm":"double jig","key":"Am"},{"id":"181","rhythm":"double jig","key":"A"},{"id":"182","rhythm":"double jig","key":"G"},{"id":"183","rhythm":"double jig","key":"Ador"},{"id":"184","rhythm":"double jig","key":"D"},{"id":"185","rhythm":"double jig","key":"G"},{"id":"186","rhythm":"double jig","key":"G"},{"id":"187","rhythm":"double jig","key":"Am"},{"id":"188","rhythm":"double jig","key":"D"},{"id":"189","rhythm":"double jig","key":"Am"},{"id":"190","rhythm":"double jig","key":"D"},{"id":"191","rhythm":"double jig","key":"Gmix"},{"id":"192","rhythm":"double jig","key":"D"},{"id":"193","rhythm":"double jig","key":"G"},{"id":"194","rhythm":"double jig","key":"G"},{"id":"195","rhythm":"double jig","key":"A"},{"id":"196","rhythm":"double jig","key":"D"},{"id":"197","rhythm":"double jig","key":"C"},{"id":"198","rhythm":"double jig","key":"G"},{"id":"199","rhythm":"double jig","key":"D"},{"id":"200","rhythm":"double jig","key":"D"},{"id":"201","rhythm":"double jig","key":"C"},{"id":"202","rhythm":"double jig","key":"D"},{"id":"203","rhythm":"double jig","key":"D"},{"id":"204","rhythm":"double jig","key":"D"},{"id":"205","rhythm":"double jig","key":"Am"},{"id":"206","rhythm":"double jig","key":"G"},{"id":"207","rhythm":"double jig","key":"G"},{"id":"208","rhythm":"double jig","key":"G"},{"id":"209","rhythm":"double jig","key":"Am"},{"id":"210","rhythm":"double jig","key":"D"},{"id":"211","rhythm":"double jig","key":"Ddor"},{"id":"212","rhythm":"double jig","key":"G"},{"id":"213","rhythm":"double jig","key":"D"},{"id":"214","rhythm":"double jig","key":"Em"},{"id":"215","rhythm":"double jig","key":"G"},{"id":"216","rhythm":"double jig","key":"D"},{"id":"217","rhythm":"double jig","key":"A"},{"id":"218","rhythm":"double jig","key":"Bm"},{"id":"219","rhythm":"double jig","key":"G"},{"id":"220","rhythm":"double jig","key":"G"},{"id":"221","rhythm":"double jig","key":"Am"},{"id":"222","rhythm":"double jig","key":"Dm"},{"id":"223","rhythm":"double jig","key":"Am"},{"id":"224","rhythm":"double jig","key":"D"},{"id":"225","rhythm":"double jig","key":"G"},{"id":"226","rhythm":"double jig","key":"Am"},{"id":"227","rhythm":"double jig","key":"G"},{"id":"228","rhythm":"double jig","key":"Ador"},{"id":"229","rhythm":"double jig","key":"D"},{"id":"230","rhythm":"double jig","key":"D"},{"id":"231","rhythm":"double jig","key":"G"},{"id":"232","rhythm":"double jig","key":"A"},{"id":"233","rhythm":"double jig","key":"A"},{"id":"234","rhythm":"double jig","key":"G"},{"id":"235","rhythm":"double jig","key":"D"},{"id":"236","rhythm":"double jig","key":"Am"},{"id":"237","rhythm":"double jig","key":"G"},{"id":"238","rhythm":"double jig","key":"G"},{"id":"239","rhythm":"double jig","key":"Am"},{"id":"240","rhythm":"double jig","key":"Em"},{"id":"241","rhythm":"double jig","key":"A"},{"id":"242","rhythm":"double jig","key":"A"},{"id":"243","rhythm":"double jig","key":"G"},{"id":"244","rhythm":"double jig","key":"D"},{"id":"245","rhythm":"double jig","key":"Em"},{"id":"246","rhythm":"double jig","key":"Amix"},{"id":"247","rhythm":"double jig","key":"D"},{"id":"248","rhythm":"double jig","key":"G"},{"id":"249","rhythm":"double jig","key":"G"},{"id":"250","rhythm":"double jig","key":"D"},{"id":"251","rhythm":"double jig","key":"G"},{"id":"252","rhythm":"double jig","key":"G"},{"id":"253","rhythm":"double jig","key":"Amix"},{"id":"254","rhythm":"double jig","key":"A"},{"id":"255","rhythm":"double jig","key":"A"},{"id":"256","rhythm":"double jig","key":"C"},{"id":"257","rhythm":"double jig","key":"C"},{"id":"258","rhythm":"double jig","key":"D"},{"id":"259","rhythm":"double jig","key":"D"},{"id":"260","rhythm":"double jig","key":"D"},{"id":"261","rhythm":"double jig","key":"D"},{"id":"262","rhythm":"double jig","key":"D"},{"id":"263","rhythm":"double jig","key":"A"},{"id":"264","rhythm":"double jig","key":"Am"},{"id":"265","rhythm":"double jig","key":"Gmix"},{"id":"266","rhythm":"double jig","key":"D"},{"id":"267","rhythm":"double jig","key":"D"},{"id":"268","rhythm":"double jig","key":"A"},{"id":"269","rhythm":"double jig","key":"F"},{"id":"270","rhythm":"double jig","key":"Em"},{"id":"271","rhythm":"double jig","key":"G"},{"id":"272","rhythm":"double jig","key":"G"},{"id":"273","rhythm":"double jig","key":"D"},{"id":"274","rhythm":"double jig","key":"G"},{"id":"275","rhythm":"double jig","key":"D"},{"id":"276","rhythm":"double jig","key":"G"},{"id":"277","rhythm":"double jig","key":"G"},{"id":"278","rhythm":"double jig","key":"A"},{"id":"279","rhythm":"double jig","key":"D"},{"id":"280","rhythm":"double jig","key":"G"},{"id":"281","rhythm":"double jig","key":"D"},{"id":"282","rhythm":"double jig","key":"G"},{"id":"283","rhythm":"double jig","key":"G"},{"id":"284","rhythm":"double jig","key":"D"},{"id":"285","rhythm":"double jig","key":"G"},{"id":"286","rhythm":"double jig","key":"G"},{"id":"287","rhythm":"double jig","key":"D"},{"id":"288","rhythm":"double jig","key":"G"},{"id":"289","rhythm":"double jig","key":"G"},{"id":"290","rhythm":"double jig","key":"G"},{"id":"291","rhythm":"double jig","key":"G"},{"id":"292","rhythm":"double jig","key":"G"},{"id":"293","rhythm":"double jig","key":"Am"},{"id":"294","rhythm":"double jig","key":"Ador"},{"id":"295","rhythm":"double jig","key":"Gm"},{"id":"296","rhythm":"double jig","key":"D"},{"id":"297","rhythm":"double jig","key":"Ador"},{"id":"298","rhythm":"double jig","key":"D"},{"id":"299","rhythm":"double jig","key":"A"},{"id":"300","rhythm":"double jig","key":"Em"},{"id":"301","rhythm":"double jig","key":"Edor"},{"id":"302","rhythm":"double jig","key":"Em"},{"id":"303","rhythm":"double jig","key":"G"},{"id":"304","rhythm":"double jig","key":"G"},{"id":"305","rhythm":"double jig","key":"Ador"},{"id":"306","rhythm":"double jig","key":"Gm"},{"id":"307","rhythm":"double jig","key":"G"},{"id":"308","rhythm":"double jig","key":"D"},{"id":"309","rhythm":"double jig","key":"D"},{"id":"310","rhythm":"double jig","key":"G"},{"id":"311","rhythm":"double jig","key":"Em"},{"id":"312","rhythm":"double jig","key":"D"},{"id":"313","rhythm":"double jig","key":"D"},{"id":"314","rhythm":"double jig","key":"G"},{"id":"315","rhythm":"double jig","key":"G"},{"id":"316","rhythm":"double jig","key":"G"},{"id":"317","rhythm":"double jig","key":"G"},{"id":"318","rhythm":"double jig","key":"Gdor"},{"id":"319","rhythm":"double jig","key":"G"},{"id":"320","rhythm":"double jig","key":"D"},{"id":"321","rhythm":"double jig","key":"D"},{"id":"322","rhythm":"double jig","key":"D"},{"id":"323","rhythm":"double jig","key":"G"},{"id":"324","rhythm":"double jig","key":"Em"},{"id":"325","rhythm":"double jig","key":"D"},{"id":"326","rhythm":"double jig","key":"D"},{"id":"327","rhythm":"double jig","key":"D"},{"id":"328","rhythm":"double jig","key":"A"},{"id":"329","rhythm":"double jig","key":"Dmix"},{"id":"330","rhythm":"double jig","key":"D"},{"id":"331","rhythm":"double jig","key":"G"},{"id":"332","rhythm":"double jig","key":"D"},{"id":"333","rhythm":"double jig","key":"Em"},{"id":"334","rhythm":"double jig","key":"Dmix"},{"id":"335","rhythm":"double jig","key":"Gm"},{"id":"336","rhythm":"double jig","key":"G"},{"id":"337","rhythm":"double jig","key":"G"},{"id":"338","rhythm":"double jig","key":"D"},{"id":"339","rhythm":"double jig","key":"C"},{"id":"340","rhythm":"double jig","key":"D"},{"id":"341","rhythm":"double jig","key":"Ador"},{"id":"342","rhythm":"double jig","key":"D"},{"id":"343","rhythm":"double jig","key":"D"},{"id":"344","rhythm":"double jig","key":"Glyd"},{"id":"345","rhythm":"double jig","key":"Dm"},{"id":"346","rhythm":"double jig","key":"D"},{"id":"347","rhythm":"double jig","key":"G"},{"id":"348","rhythm":"double jig","key":"D"},{"id":"349","rhythm":"double jig","key":"Am"},{"id":"350","rhythm":"double jig","key":"D"},{"id":"351","rhythm":"double jig","key":"D"},{"id":"352","rhythm":"double jig","key":"G"},{"id":"353","rhythm":"double jig","key":"D"},{"id":"354","rhythm":"double jig","key":"D"},{"id":"355","rhythm":"double jig","key":"D"},{"id":"356","rhythm":"double jig","key":"G"},{"id":"357","rhythm":"double jig","key":"Em"},{"id":"358","rhythm":"double jig","key":"D"},{"id":"359","rhythm":"double jig","key":"G"},{"id":"360","rhythm":"double jig","key":"G"},{"id":"361","rhythm":"double jig","key":"D"},{"id":"362","rhythm":"double jig","key":"D"},{"id":"363","rhythm":"double jig","key":"G"},{"id":"364","rhythm":"double jig","key":"Ador"},{"id":"365","rhythm":"double jig","key":"D"},{"id":"366","rhythm":"single jig","key":"Am"},{"id":"367","rhythm":"single jig","key":"Dmix"},{"id":"368","rhythm":"single jig","key":"G"},{"id":"369","rhythm":"single jig","key":"Gm"},{"id":"370","rhythm":"single jig","key":"Em"},{"id":"371","rhythm":"single jig","key":"Am"},{"id":"372","rhythm":"single jig","key":"G"},{"id":"373","rhythm":"single jig","key":"G"},{"id":"374","rhythm":"single jig","key":"Dmix"},{"id":"375","rhythm":"single jig","key":"Am"},{"id":"376","rhythm":"single jig","key":"G"},{"id":"377","rhythm":"single jig","key":"G"},{"id":"378","rhythm":"single jig","key":"G"},{"id":"379","rhythm":"single jig","key":"Gdor"},{"id":"380","rhythm":"single jig","key":"A"},{"id":"381","rhythm":"single jig","key":"G"},{"id":"382","rhythm":"single jig","key":"C"},{"id":"383","rhythm":"single jig","key":"G"},{"id":"384","rhythm":"single jig","key":"D"},{"id":"385","rhythm":"single jig","key":"D"},{"id":"386","rhythm":"single jig","key":"D"},{"id":"387","rhythm":"single jig","key":"G"},{"id":"388","rhythm":"single jig","key":"Em"},{"id":"389","rhythm":"single jig","key":"D"},{"id":"390","rhythm":"single jig","key":"Gm"},{"id":"391","rhythm":"single jig","key":"Am"},{"id":"392","rhythm":"single jig","key":"G"},{"id":"393","rhythm":"single jig","key":"D"},{"id":"394","rhythm":"single jig","key":"Em"},{"id":"395","rhythm":"single jig","key":"C"},{"id":"396","rhythm":"single jig","key":"D"},{"id":"397","rhythm":"single jig","key":"Em"},{"id":"398","rhythm":"single jig","key":"Am"},{"id":"399","rhythm":"single jig","key":"D"},{"id":"400","rhythm":"single jig","key":"Am"},{"id":"401","rhythm":"single jig","key":"D"},{"id":"402","rhythm":"single jig","key":"G"},{"id":"403","rhythm":"single jig","key":"Dmix"},{"id":"404","rhythm":"single jig","key":"Gm"},{"id":"405","rhythm":"single jig","key":"G"},{"id":"406","rhythm":"single jig","key":"D"},{"id":"407","rhythm":"single jig","key":"D"},{"id":"408","rhythm":"single jig","key":"Am"},{"id":"409","rhythm":"single jig","key":"Dm"},{"id":"410","rhythm":"single jig","key":"Ador"},{"id":"411","rhythm":"slip jig, hop","key":"D"},{"id":"412","rhythm":"slip jig, hop","key":"D"},{"id":"413","rhythm":"slip jig, hop","key":"G"},{"id":"414","rhythm":"slip jig, hop","key":"G"},{"id":"415","rhythm":"slip jig, hop","key":"G"},{"id":"416","rhythm":"slip jig, hop","key":"D"},{"id":"417","rhythm":"slip jig, hop","key":"D"},{"id":"418","rhythm":"slip jig, hop","key":"Dmix"},{"id":"419","rhythm":"slip jig, hop","key":"D"},{"id":"420","rhythm":"slip jig, hop","key":"G"},{"id":"421","rhythm":"slip jig, hop","key":"Em"},{"id":"422","rhythm":"slip jig, hop","key":"D"},{"id":"423","rhythm":"slip jig, hop","key":"G"},{"id":"424","rhythm":"slip jig, hop","key":"G"},{"id":"425","rhythm":"slip jig, hop","key":"Am"},{"id":"426","rhythm":"slip jig, hop","key":"G"},{"id":"427","rhythm":"slip jig, hop","key":"Ador"},{"id":"428","rhythm":"slip jig, hop","key":"D"},{"id":"429","rhythm":"slip jig","key":"D"},{"id":"430","rhythm":"slip jig, hop","key":"D"},{"id":"431","rhythm":"slip jig, hop","key":"Emix"},{"id":"432","rhythm":"slip jig, hop","key":"G"},{"id":"433","rhythm":"slip jig, hop","key":"D"},{"id":"434","rhythm":"slip jig, hop","key":"Em"},{"id":"435","rhythm":"slip jig, hop","key":"G"},{"id":"436","rhythm":"slip jig, hop","key":"Em"},{"id":"437","rhythm":"slip jig, hop","key":"D"},{"id":"438","rhythm":"slip jig, hop","key":"Em"},{"id":"439","rhythm":"slip jig, hop","key":"D"},{"id":"440","rhythm":"slip jig, hop","key":"D"},{"id":"441","rhythm":"slip jig, hop","key":"G"},{"id":"442","rhythm":"slip jig, hop","key":"G"},{"id":"443","rhythm":"slip jig, hop","key":"Em"},{"id":"444","rhythm":"slip jig, hop","key":"D"},{"id":"445","rhythm":"slip jig, hop","key":"G"},{"id":"446","rhythm":"slip jig, hop","key":"Em"},{"id":"447","rhythm":"slip jig, hop","key":"Em"},{"id":"448","rhythm":"slip jig, hop","key":"G"},{"id":"449","rhythm":"slip jig, hop","key":"G"},{"id":"450","rhythm":"slip jig, hop","key":"Dmix"},{"id":"451","rhythm":"slip jig, hop","key":"Em"},{"id":"452","rhythm":"slip jig, hop","key":"Dmix"},{"id":"453","rhythm":"slip jig, hop","key":"G"},{"id":"454","rhythm":"slip jig, hop","key":"G"},{"id":"455","rhythm":"slip jig, hop","key":"G"},{"id":"456","rhythm":"reel","key":"Gm"},{"id":"457","rhythm":"reel","key":"F"},{"id":"458","rhythm":"reel","key":"D"},{"id":"459","rhythm":"reel","key":"D"},{"id":"460","rhythm":"reel","key":"G"},{"id":"461","rhythm":"reel","key":"Am"},{"id":"462","rhythm":"reel","key":"A"},{"id":"463","rhythm":"reel","key":"G"},{"id":"464","rhythm":"reel","key":"D"},{"id":"465","rhythm":"reel","key":"D"},{"id":"466","rhythm":"reel","key":"G"},{"id":"467","rhythm":"reel","key":"G"},{"id":"468","rhythm":"reel","key":"G"},{"id":"469","rhythm":"reel","key":"D"},{"id":"470","rhythm":"reel","key":"G"},{"id":"471","rhythm":"reel","key":"C"},{"id":"472","rhythm":"reel","key":"G"},{"id":"473","rhythm":"reel","key":"Ador"},{"id":"474","rhythm":"reel","key":"Gm"},{"id":"475","rhythm":"reel","key":"Em"},{"id":"476","rhythm":"reel","key":"D"},{"id":"477","rhythm":"reel","key":"G"},{"id":"478","rhythm":"reel","key":"Dmix"},{"id":"479","rhythm":"reel","key":"A"},{"id":"480","rhythm":"reel","key":"D"},{"id":"481","rhythm":"reel","key":"D"},{"id":"482","rhythm":"reel","key":"G"},{"id":"483","rhythm":"reel","key":"G"},{"id":"484","rhythm":"reel","key":"D"},{"id":"485","rhythm":"reel","key":"D"},{"id":"486","rhythm":"reel","key":"G"},{"id":"487","rhythm":"reel","key":"G"},{"id":"488","rhythm":"reel","key":"D"},{"id":"489","rhythm":"reel","key":"D"},{"id":"490","rhythm":"reel","key":"G"},{"id":"491","rhythm":"reel","key":"A"},{"id":"492","rhythm":"reel","key":"G"},{"id":"493","rhythm":"reel","key":"Gm"},{"id":"494","rhythm":"reel","key":"Em"},{"id":"495","rhythm":"reel","key":"Ador"},{"id":"496","rhythm":"reel","key":"A"},{"id":"497","rhythm":"reel","key":"G"},{"id":"498","rhythm":"reel","key":"Em"},{"id":"499","rhythm":"reel","key":"G"},{"id":"500","rhythm":"reel","key":"D"},{"id":"501","rhythm":"reel","key":"G"},{"id":"502","rhythm":"reel","key":"D"},{"id":"503","rhythm":"reel","key":"G"},{"id":"504","rhythm":"reel","key":"G"},{"id":"505","rhythm":"reel","key":"Em"},{"id":"506","rhythm":"reel","key":"G"},{"id":"507","rhythm":"reel","key":"G"},{"id":"508","rhythm":"reel","key":"D"},{"id":"509","rhythm":"reel","key":"G"},{"id":"510","rhythm":"reel","key":"Ador"},{"id":"511","rhythm":"reel","key":"G"},{"id":"512","rhythm":"reel","key":"G"},{"id":"513","rhythm":"reel","key":"G"},{"id":"514","rhythm":"reel","key":"Bm"},{"id":"515","rhythm":"reel","key":"G"},{"id":"516","rhythm":"reel","key":"Em"},{"id":"517","rhythm":"reel","key":"Ador"},{"id":"518","rhythm":"reel","key":"Ador"},{"id":"519","rhythm":"reel","key":"Dmix"},{"id":"520","rhythm":"reel","key":"G"},{"id":"521","rhythm":"reel","key":"G"},{"id":"522","rhythm":"reel","key":"A"},{"id":"523","rhythm":"reel","key":"D"},{"id":"524","rhythm":"reel","key":"A"},{"id":"525","rhythm":"reel","key":"G"},{"id":"526","rhythm":"reel","key":"Am"},{"id":"527","rhythm":"reel","key":"G"},{"id":"528","rhythm":"reel","key":"D"},{"id":"529","rhythm":"reel","key":"G"},{"id":"530","rhythm":"reel","key":"G"},{"id":"531","rhythm":"reel","key":"A"},{"id":"532","rhythm":"reel","key":"Em"},{"id":"533","rhythm":"reel","key":"D"},{"id":"534","rhythm":"reel","key":"G"},{"id":"535","rhythm":"reel","key":"D"},{"id":"536","rhythm":"reel","key":"Ador"},{"id":"537","rhythm":"reel","key":"D"},{"id":"538","rhythm":"reel","key":"D"},{"id":"539","rhythm":"reel","key":"D"},{"id":"540","rhythm":"reel","key":"A"},{"id":"541","rhythm":"reel","key":"D"},{"id":"542","rhythm":"reel","key":"G"},{"id":"543","rhythm":"reel","key":"G"},{"id":"544","rhythm":"reel","key":"Am"},{"id":"545","rhythm":"reel","key":"D"},{"id":"546","rhythm":"reel","key":"G"},{"id":"547","rhythm":"reel","key":"Am"},{"id":"548","rhythm":"reel","key":"A"},{"id":"549","rhythm":"reel","key":"Bm"},{"id":"550","rhythm":"reel","key":"C"},{"id":"551","rhythm":"reel","key":"D"},{"id":"552","rhythm":"reel","key":"D"},{"id":"553","rhythm":"reel","key":"A"},{"id":"554","rhythm":"reel","key":"A"},{"id":"555","rhythm":"reel","key":"G"},{"id":"556","rhythm":"reel","key":"G"},{"id":"557","rhythm":"reel","key":"D"},{"id":"558","rhythm":"reel","key":"D"},{"id":"559","rhythm":"reel","key":"D"},{"id":"560","rhythm":"reel","key":"Ador"},{"id":"561","rhythm":"reel","key":"Em"},{"id":"562","rhythm":"reel","key":"D"},{"id":"563","rhythm":"reel","key":"Em"},{"id":"564","rhythm":"reel","key":"D"},{"id":"565","rhythm":"reel","key":"G"},{"id":"566","rhythm":"reel","key":"G"},{"id":"567","rhythm":"reel","key":"D"},{"id":"568","rhythm":"reel","key":"Am"},{"id":"569","rhythm":"reel","key":"G"},{"id":"570","rhythm":"reel","key":"D"},{"id":"571","rhythm":"reel","key":"G"},{"id":"572","rhythm":"reel","key":"D"},{"id":"573","rhythm":"reel","key":"Em"},{"id":"574","rhythm":"reel","key":"G"},{"id":"575","rhythm":"reel","key":"D"},{"id":"576","rhythm":"reel","key":"A"},{"id":"577","rhythm":"reel","key":"D"},{"id":"578","rhythm":"reel","key":"Em"},{"id":"579","rhythm":"reel","key":"Em"},{"id":"580","rhythm":"reel","key":"A"},{"id":"581","rhythm":"reel","key":"G"},{"id":"582","rhythm":"reel","key":"A"},{"id":"583","rhythm":"reel","key":"D"},{"id":"584","rhythm":"reel","key":"C"},{"id":"585","rhythm":"reel","key":"Amix"},{"id":"586","rhythm":"reel","key":"D"},{"id":"587","rhythm":"reel","key":"Dm"},{"id":"588","rhythm":"reel","key":"G"},{"id":"589","rhythm":"reel","key":"Ador"},{"id":"590","rhythm":"reel","key":"Em"},{"id":"591","rhythm":"reel","key":"Ador"},{"id":"592","rhythm":"reel","key":"D"},{"id":"593","rhythm":"reel","key":"Gm"},{"id":"594","rhythm":"reel","key":"G"},{"id":"595","rhythm":"reel","key":"Em"},{"id":"596","rhythm":"reel","key":"C"},{"id":"597","rhythm":"reel","key":"G"},{"id":"598","rhythm":"reel","key":"A"},{"id":"599","rhythm":"reel","key":"C"},{"id":"600","rhythm":"reel","key":"Am"},{"id":"601","rhythm":"reel","key":"Ador"},{"id":"602","rhythm":"reel","key":"D"},{"id":"603","rhythm":"reel","key":"D"},{"id":"604","rhythm":"reel","key":"Em"},{"id":"605","rhythm":"reel","key":"D"},{"id":"606","rhythm":"reel","key":"G"},{"id":"607","rhythm":"reel","key":"Em"},{"id":"608","rhythm":"reel","key":"D"},{"id":"609","rhythm":"reel","key":"D"},{"id":"610","rhythm":"reel","key":"C"},{"id":"611","rhythm":"reel","key":"Em"},{"id":"612","rhythm":"reel","key":"G"},{"id":"613","rhythm":"reel","key":"G"},{"id":"614","rhythm":"reel","key":"A"},{"id":"615","rhythm":"reel","key":"D"},{"id":"616","rhythm":"reel","key":"Am"},{"id":"617","rhythm":"reel","key":"D"},{"id":"618","rhythm":"reel","key":"D"},{"id":"619","rhythm":"reel","key":"G"},{"id":"620","rhythm":"reel","key":"G"},{"id":"621","rhythm":"reel","key":"D"},{"id":"622","rhythm":"reel","key":"Amix"},{"id":"623","rhythm":"reel","key":"A"},{"id":"624","rhythm":"reel","key":"D"},{"id":"625","rhythm":"reel","key":"Gm"},{"id":"626","rhythm":"reel","key":"G"},{"id":"627","rhythm":"reel","key":"G"},{"id":"628","rhythm":"reel","key":"D"},{"id":"629","rhythm":"reel","key":"G"},{"id":"630","rhythm":"reel","key":"D"},{"id":"631","rhythm":"reel","key":"G"},{"id":"632","rhythm":"reel","key":"Am"},{"id":"633","rhythm":"reel","key":"D"},{"id":"634","rhythm":"reel","key":"D"},{"id":"635","rhythm":"reel","key":"Bm"},{"id":"636","rhythm":"reel","key":"G"},{"id":"637","rhythm":"reel","key":"G"},{"id":"638","rhythm":"reel","key":"G"},{"id":"639","rhythm":"reel","key":"Ador"},{"id":"640","rhythm":"reel","key":"G"},{"id":"641","rhythm":"reel","key":"A"},{"id":"642","rhythm":"reel","key":"Em"},{"id":"643","rhythm":"reel","key":"D"},{"id":"644","rhythm":"reel","key":"Am"},{"id":"645","rhythm":"reel","key":"Em"},{"id":"646","rhythm":"reel","key":"Dmix"},{"id":"647","rhythm":"reel","key":"D"},{"id":"648","rhythm":"reel","key":"G"},{"id":"649","rhythm":"reel","key":"G"},{"id":"650","rhythm":"reel","key":"Dmix"},{"id":"651","rhythm":"reel","key":"G"},{"id":"652","rhythm":"reel","key":"D"},{"id":"653","rhythm":"reel","key":"G"},{"id":"654","rhythm":"reel","key":"G"},{"id":"655","rhythm":"reel","key":"G"},{"id":"656","rhythm":"reel","key":"Ador"},{"id":"657","rhythm":"reel","key":"D"},{"id":"658","rhythm":"reel","key":"Am"},{"id":"659","rhythm":"reel","key":"A"},{"id":"660","rhythm":"reel","key":"Em"},{"id":"661","rhythm":"reel","key":"D"},{"id":"662","rhythm":"reel","key":"Em"},{"id":"663","rhythm":"reel","key":"D"},{"id":"664","rhythm":"reel","key":"Em"},{"id":"665","rhythm":"reel","key":"G"},{"id":"666","rhythm":"reel","key":"Amix"},{"id":"667","rhythm":"reel","key":"D"},{"id":"668","rhythm":"reel","key":"D"},{"id":"669","rhythm":"reel","key":"G"},{"id":"670","rhythm":"reel","key":"D"},{"id":"671","rhythm":"reel","key":"D"},{"id":"672","rhythm":"reel","key":"D"},{"id":"673","rhythm":"reel","key":"G"},{"id":"674","rhythm":"reel","key":"G"},{"id":"675","rhythm":"reel","key":"A"},{"id":"676","rhythm":"reel","key":"A"},{"id":"677","rhythm":"reel","key":"G"},{"id":"678","rhythm":"reel","key":"C"},{"id":"679","rhythm":"reel","key":"Em"},{"id":"680","rhythm":"reel","key":"D"},{"id":"681","rhythm":"reel","key":"D"},{"id":"682","rhythm":"reel","key":"G"},{"id":"683","rhythm":"reel","key":"Em"},{"id":"684","rhythm":"reel","key":"D"},{"id":"685","rhythm":"reel","key":"G"},{"id":"686","rhythm":"reel","key":"D"},{"id":"687","rhythm":"reel","key":"Dmix"},{"id":"688","rhythm":"reel","key":"G"},{"id":"689","rhythm":"reel","key":"G"},{"id":"690","rhythm":"reel","key":"C"},{"id":"691","rhythm":"reel","key":"G"},{"id":"692","rhythm":"reel","key":"G"},{"id":"693","rhythm":"reel","key":"G"},{"id":"694","rhythm":"reel","key":"C"},{"id":"695","rhythm":"reel","key":"Dmix"},{"id":"696","rhythm":"reel","key":"D"},{"id":"697","rhythm":"reel","key":"Am"},{"id":"698","rhythm":"reel","key":"A"},{"id":"699","rhythm":"reel","key":"Am"},{"id":"700","rhythm":"reel","key":"Em"},{"id":"701","rhythm":"reel","key":"D"},{"id":"702","rhythm":"reel","key":"G"},{"id":"703","rhythm":"reel","key":"Gm"},{"id":"704","rhythm":"reel","key":"D"},{"id":"705","rhythm":"reel","key":"G"},{"id":"706","rhythm":"reel","key":"D"},{"id":"707","rhythm":"reel","key":"D"},{"id":"708","rhythm":"reel","key":"D"},{"id":"709","rhythm":"reel","key":"A"},{"id":"710","rhythm":"reel","key":"Am"},{"id":"711","rhythm":"reel","key":"G"},{"id":"712","rhythm":"reel","key":"Ador"},{"id":"713","rhythm":"reel","key":"D"},{"id":"714","rhythm":"reel","key":"D"},{"id":"715","rhythm":"reel","key":"D"},{"id":"716","rhythm":"reel","key":"G"},{"id":"717","rhythm":"reel","key":"D"},{"id":"718","rhythm":"reel","key":"A"},{"id":"719","rhythm":"reel","key":"G"},{"id":"720","rhythm":"reel","key":"G"},{"id":"721","rhythm":"reel","key":"Ador"},{"id":"722","rhythm":"reel","key":"D"},{"id":"723","rhythm":"reel","key":"A"},{"id":"724","rhythm":"reel","key":"A"},{"id":"725","rhythm":"reel","key":"Am"},{"id":"726","rhythm":"reel","key":"D"},{"id":"727","rhythm":"reel","key":"Am"},{"id":"728","rhythm":"reel","key":"D"},{"id":"729","rhythm":"reel","key":"Ador"},{"id":"730","rhythm":"reel","key":"G"},{"id":"731","rhythm":"reel","key":"D"},{"id":"732","rhythm":"reel","key":"G"},{"id":"733","rhythm":"reel","key":"G"},{"id":"734","rhythm":"reel","key":"A"},{"id":"735","rhythm":"reel","key":"G"},{"id":"736","rhythm":"reel","key":"G"},{"id":"737","rhythm":"reel","key":"D"},{"id":"738","rhythm":"reel","key":"Em"},{"id":"739","rhythm":"reel","key":"G"},{"id":"740","rhythm":"reel","key":"C"},{"id":"741","rhythm":"reel","key":"Em"},{"id":"742","rhythm":"reel","key":"Em"},{"id":"743","rhythm":"reel","key":"D"},{"id":"744","rhythm":"reel","key":"D"},{"id":"745","rhythm":"reel","key":"D"},{"id":"746","rhythm":"reel","key":"D"},{"id":"747","rhythm":"reel","key":"G"},{"id":"748","rhythm":"reel","key":"D"},{"id":"749","rhythm":"reel","key":"Dmix"},{"id":"750","rhythm":"reel","key":"D"},{"id":"751","rhythm":"reel","key":"D"},{"id":"752","rhythm":"reel","key":"G"},{"id":"753","rhythm":"reel","key":"Amix"},{"id":"754","rhythm":"reel","key":"Amix"},{"id":"755","rhythm":"reel","key":"Am"},{"id":"756","rhythm":"reel","key":"G"},{"id":"757","rhythm":"reel","key":"G"},{"id":"758","rhythm":"reel","key":"D"},{"id":"759","rhythm":"reel","key":"G"},{"id":"760","rhythm":"reel","key":"G"},{"id":"761","rhythm":"reel","key":"G"},{"id":"762","rhythm":"reel","key":"D"},{"id":"763","rhythm":"reel","key":"Amix"},{"id":"764","rhythm":"reel","key":"G"},{"id":"765","rhythm":"reel","key":"C"},{"id":"766","rhythm":"reel","key":"Dmix"},{"id":"767","rhythm":"reel","key":"G"},{"id":"768","rhythm":"reel","key":"G"},{"id":"769","rhythm":"reel","key":"G"},{"id":"770","rhythm":"reel","key":"G"},{"id":"771","rhythm":"reel","key":"G"},{"id":"772","rhythm":"reel","key":"G"},{"id":"773","rhythm":"reel","key":"D"},{"id":"774","rhythm":"reel","key":"D"},{"id":"775","rhythm":"reel","key":"G"},{"id":"776","rhythm":"reel","key":"Ddor"},{"id":"777","rhythm":"reel","key":"Em"},{"id":"778","rhythm":"reel","key":"D"},{"id":"779","rhythm":"reel","key":"G"},{"id":"780","rhythm":"reel","key":"Em"},{"id":"781","rhythm":"reel","key":"D"},{"id":"782","rhythm":"reel","key":"D"},{"id":"783","rhythm":"reel","key":"A"},{"id":"784","rhythm":"reel","key":"A"},{"id":"785","rhythm":"reel","key":"D"},{"id":"786","rhythm":"reel","key":"G"},{"id":"787","rhythm":"reel","key":"G"},{"id":"788","rhythm":"reel","key":"G"},{"id":"789","rhythm":"reel","key":"G"},{"id":"790","rhythm":"reel","key":"Em"},{"id":"791","rhythm":"reel","key":"G"},{"id":"792","rhythm":"reel","key":"D"},{"id":"793","rhythm":"reel","key":"G"},{"id":"794","rhythm":"reel","key":"G"},{"id":"795","rhythm":"reel","key":"G"},{"id":"796","rhythm":"reel","key":"Dmix"},{"id":"797","rhythm":"reel","key":"Ador"},{"id":"798","rhythm":"reel","key":"Ddor"},{"id":"799","rhythm":"reel","key":"Em"},{"id":"800","rhythm":"reel","key":"Glyd"},{"id":"801","rhythm":"reel","key":"G"},{"id":"802","rhythm":"reel","key":"G"},{"id":"803","rhythm":"reel","key":"A"},{"id":"804","rhythm":"reel","key":"Em"},{"id":"805","rhythm":"reel","key":"Amix"},{"id":"806","rhythm":"hornpipe","key":"D"},{"id":"807","rhythm":"hornpipe","key":"G"},{"id":"808","rhythm":"hornpipe","key":"G"},{"id":"809","rhythm":"hornpipe","key":"D"},{"id":"810","rhythm":"hornpipe","key":"G"},{"id":"811","rhythm":"hornpipe","key":"Em"},{"id":"812","rhythm":"hornpipe","key":"G"},{"id":"813","rhythm":"hornpipe","key":"G"},{"id":"814","rhythm":"hornpipe","key":"G"},{"id":"815","rhythm":"hornpipe","key":"A"},{"id":"816","rhythm":"hornpipe","key":"D"},{"id":"817","rhythm":"hornpipe","key":"G"},{"id":"818","rhythm":"hornpipe","key":"G"},{"id":"819","rhythm":"hornpipe","key":"D"},{"id":"820","rhythm":"hornpipe","key":"D"},{"id":"821","rhythm":"hornpipe","key":"G"},{"id":"822","rhythm":"hornpipe","key":"G"},{"id":"823","rhythm":"hornpipe","key":"G"},{"id":"824","rhythm":"hornpipe","key":"G"},{"id":"825","rhythm":"hornpipe","key":"D"},{"id":"826","rhythm":"hornpipe","key":"D"},{"id":"827","rhythm":"hornpipe","key":"D"},{"id":"828","rhythm":"hornpipe","key":"D"},{"id":"829","rhythm":"hornpipe","key":"D"},{"id":"830","rhythm":"hornpipe","key":"D"},{"id":"831","rhythm":"hornpipe","key":"A"},{"id":"832","rhythm":"hornpipe","key":"Ador"},{"id":"833","rhythm":"hornpipe","key":"G"},{"id":"834","rhythm":"hornpipe","key":"G"},{"id":"835","rhythm":"hornpipe","key":"G"},{"id":"836","rhythm":"hornpipe","key":"Ador"},{"id":"837","rhythm":"hornpipe","key":"D"},{"id":"838","rhythm":"hornpipe","key":"G"},{"id":"839","rhythm":"hornpipe","key":"Dmix"},{"id":"840","rhythm":"hornpipe","key":"G"},{"id":"841","rhythm":"hornpipe","key":"D"},{"id":"842","rhythm":"hornpipe","key":"G"},{"id":"843","rhythm":"hornpipe","key":"G"},{"id":"844","rhythm":"hornpipe","key":"G"},{"id":"845","rhythm":"hornpipe","key":"A"},{"id":"846","rhythm":"hornpipe","key":"D"},{"id":"847","rhythm":"hornpipe","key":"D"},{"id":"848","rhythm":"hornpipe","key":"D"},{"id":"849","rhythm":"hornpipe","key":"D"},{"id":"850","rhythm":"hornpipe","key":"D"},{"id":"851","rhythm":"hornpipe","key":"G"},{"id":"852","rhythm":"hornpipe","key":"D"},{"id":"853","rhythm":"hornpipe","key":"B"},{"id":"854","rhythm":"hornpipe","key":"A"},{"id":"855","rhythm":"hornpipe","key":"A"},{"id":"856","rhythm":"hornpipe","key":"G"},{"id":"857","rhythm":"hornpipe","key":"G"},{"id":"858","rhythm":"hornpipe","key":"G"},{"id":"859","rhythm":"hornpipe","key":"G"},{"id":"860","rhythm":"hornpipe","key":"G"},{"id":"861","rhythm":"hornpipe","key":"G"},{"id":"862","rhythm":"hornpipe","key":"A"},{"id":"863","rhythm":"hornpipe","key":"A"},{"id":"864","rhythm":"hornpipe","key":"D"},{"id":"865","rhythm":"hornpipe","key":"D"},{"id":"866","rhythm":"hornpipe","key":"A"},{"id":"867","rhythm":"hornpipe","key":"D"},{"id":"868","rhythm":"hornpipe","key":"D"},{"id":"869","rhythm":"hornpipe","key":"A"},{"id":"870","rhythm":"hornpipe","key":"G"},{"id":"871","rhythm":"hornpipe","key":"D"},{"id":"872","rhythm":"hornpipe","key":"G"},{"id":"873","rhythm":"hornpipe","key":"D"},{"id":"874","rhythm":"hornpipe","key":"Dmix"},{"id":"875","rhythm":"hornpipe","key":"G"},{"id":"876","rhythm":"hornpipe","key":"D"},{"id":"877","rhythm":"hornpipe","key":"G"},{"id":"878","rhythm":"hornpipe","key":"D"},{"id":"879","rhythm":"hornpipe","key":"D"},{"id":"880","rhythm":"hornpipe","key":"G"},{"id":"881","rhythm":"hornpipe","key":"D"},{"id":"882","rhythm":"hornpipe","key":"D"},{"id":"883","rhythm":"hornpipe","key":"Amix"},{"id":"884","rhythm":"hornpipe","key":"A"},{"id":"885","rhythm":"hornpipe","key":"G"},{"id":"886","rhythm":"hornpipe","key":"G"},{"id":"887","rhythm":"hornpipe","key":"G"},{"id":"888","rhythm":"hornpipe","key":"G"},{"id":"889","rhythm":"hornpipe","key":"G"},{"id":"890","rhythm":"hornpipe","key":"G"},{"id":"891","rhythm":"hornpipe","key":"D"},{"id":"892","rhythm":"hornpipe","key":"D"},{"id":"893","rhythm":"hornpipe","key":"D"},{"id":"894","rhythm":"hornpipe","key":"G"},{"id":"895","rhythm":"hornpipe","key":"G"},{"id":"896","rhythm":"hornpipe","key":"D"},{"id":"897","rhythm":"hornpipe","key":"G"},{"id":"898","rhythm":"hornpipe","key":"D"},{"id":"899","rhythm":"hornpipe","key":"Ador"},{"id":"900","rhythm":"hornpipe","key":"G"},{"id":"901","rhythm":"hornpipe","key":"A"},{"id":"902","rhythm":"hornpipe","key":"Amix"},{"id":"903","rhythm":"hornpipe","key":"G"},{"id":"904","rhythm":"hornpipe","key":"D"},{"id":"905","rhythm":"hornpipe","key":"G"},{"id":"906","rhythm":"hornpipe","key":"G"},{"id":"907","rhythm":"hornpipe","key":"A"},{"id":"908","rhythm":"hornpipe","key":"G"},{"id":"909","rhythm":"hornpipe","key":"G"},{"id":"910","rhythm":"hornpipe","key":"G"},{"id":"911","rhythm":"hornpipe","key":"G"},{"id":"912","rhythm":"hornpipe","key":"G"},{"id":"913","rhythm":"hornpipe","key":"G"},{"id":"914","rhythm":"hornpipe","key":"D"},{"id":"915","rhythm":"hornpipe","key":"D"},{"id":"916","rhythm":"hornpipe","key":"G"},{"id":"917","rhythm":"hornpipe","key":"A"},{"id":"918","rhythm":"hornpipe","key":"D"},{"id":"919","rhythm":"hornpipe","key":"G"},{"id":"920","rhythm":"hornpipe","key":"G"},{"id":"921","rhythm":"hornpipe","key":"A"},{"id":"922","rhythm":"hornpipe","key":"G"},{"id":"923","rhythm":"hornpipe","key":"G"},{"id":"924","rhythm":"hornpipe","key":"G"},{"id":"925","rhythm":"hornpipe","key":"D"},{"id":"926","rhythm":"hornpipe","key":"Ador"},{"id":"927","rhythm":"hornpipe","key":"A"},{"id":"928","rhythm":"hornpipe","key":"A"},{"id":"929","rhythm":"hornpipe","key":"D"},{"id":"930","rhythm":"hornpipe","key":"D"},{"id":"931","rhythm":"hornpipe","key":"G"},{"id":"932","rhythm":"hornpipe","key":"G"},{"id":"933","rhythm":"hornpipe","key":"G"},{"id":"934","rhythm":"hornpipe","key":"G"},{"id":"935","rhythm":"hornpipe","key":"D"},{"id":"936","rhythm":"hornpipe","key":"D"},{"id":"937","rhythm":"hornpipe","key":"G"},{"id":"938","rhythm":"hornpipe","key":"G"},{"id":"939","rhythm":"hornpipe","key":"G"},{"id":"940","rhythm":"hornpipe","key":"G"},{"id":"941","rhythm":"hornpipe","key":"Ador"},{"id":"942","rhythm":"hornpipe","key":"G"},{"id":"943","rhythm":"hornpipe","key":"G"},{"id":"944","rhythm":"hornpipe","key":"G"},{"id":"945","rhythm":"hornpipe","key":"Am"},{"id":"946","rhythm":"hornpipe","key":"Ador"},{"id":"947","rhythm":"hornpipe","key":"D"},{"id":"948","rhythm":"hornpipe","key":"Gm"},{"id":"949","rhythm":"hornpipe","key":"Ador"},{"id":"950","rhythm":"hornpipe","key":"Em"},{"id":"951","rhythm":"hornpipe","key":"G"},{"id":"952","rhythm":"hornpipe","key":"A"},{"id":"953","rhythm":"hornpipe","key":"G"},{"id":"954","rhythm":"hornpipe","key":"Gm"},{"id":"955","rhythm":"hornpipe","key":"D"},{"id":"956","rhythm":"long dance, set dance","key":"G"},{"id":"957","rhythm":"long dance, set dance","key":"G"},{"id":"958","rhythm":"long dance, set dance","key":"Ador"},{"id":"959","rhythm":"long dance, set dance","key":"Ador"},{"id":"960","rhythm":"long dance, set dance","key":"G"},{"id":"961","rhythm":"long dance, set dance","key":"G"},{"id":"962","rhythm":"long dance, set dance","key":"A"},{"id":"963","rhythm":"long dance, set dance","key":"G"},{"id":"964","rhythm":"long dance, set dance","key":"D"},{"id":"965","rhythm":"long dance, set dance","key":"D"},{"id":"966","rhythm":"long dance, set dance","key":"D"},{"id":"967","rhythm":"long dance, set dance","key":"D"},{"id":"968","rhythm":"long dance, set dance","key":"D"},{"id":"969","rhythm":"long dance, set dance","key":"G"},{"id":"970","rhythm":"long dance, set dance, slip jig","key":"Am"},{"id":"971","rhythm":"long dance, set dance","key":"Em"},{"id":"972","rhythm":"long dance, set dance","key":"G"},{"id":"973","rhythm":"long dance, set dance","key":"D"},{"id":"974","rhythm":"long dance, set dance","key":"D"},{"id":"975","rhythm":"long dance, set dance","key":"G"},{"id":"976","rhythm":"long dance, set dance","key":"G"},{"id":"977","rhythm":"long dance, set dance","key":"G"},{"id":"978","rhythm":"long dance, set dance","key":"Em"},{"id":"979","rhythm":"long dance, set dance","key":"Edor"},{"id":"980","rhythm":"long dance, set dance","key":"D"},{"id":"981","rhythm":"long dance, set dance","key":"G"},{"id":"982","rhythm":"long dance, set dance","key":"D"},{"id":"983","rhythm":"long dance, set dance","key":"Ador"},{"id":"984","rhythm":"long dance, set dance","key":"G"},{"id":"985","rhythm":"long dance, set dance","key":"D"},{"id":"986","rhythm":"reel","key":"A"},{"id":"987","key":"D"},{"id":"988","key":"Am"},{"id":"989","key":"G"},{"id":"990","key":"D"},{"id":"991","rhythm":"jig","key":"C"},{"id":"992","key":"G"},{"id":"993","key":"D"},{"id":"994","key":"G"},{"id":"995","key":"Gm"},{"id":"996","key":"G"},{"id":"997","key":"D"},{"id":"998","key":"D"},{"id":"999","key":"Dmix"},{"id":"1000","key":"Em"},{"id":"1001","rhythm":"jig, march","key":"Ador"}]},{"id":"oneill1850","uri":"ONeill1850.abc","name":"O'Neill 1850","description":"Francis O'Neill: Music of Ireland (1903)","storage":"assets","tunes":[{"id":"1","key":"Gm"},{"id":"2","key":"D"},{"id":"3","key":"Gm"},{"id":"4","key":"D"},{"id":"5","key":"Gm"},{"id":"6","key":"G"},{"id":"7","key":"D"},{"id":"8","key":"D"},{"id":"9","key":"G"},{"id":"10","key":"G"},{"id":"11","key":"Am"},{"id":"12","key":"D"},{"id":"13","key":"D"},{"id":"14","key":"Gm"},{"id":"15","key":"Gm"},{"id":"16","key":"D"},{"id":"17","key":"G"},{"id":"18","key":"G"},{"id":"19","key":"G"},{"id":"20","key":"D"},{"id":"21","key":"Cm"},{"id":"22","key":"Gm"},{"id":"23","key":"C"},{"id":"24","key":"G"},{"id":"25","key":"G"},{"id":"26","key":"G"},{"id":"27","key":"Am"},{"id":"28","key":"Am"},{"id":"29","key":"D"},{"id":"30","key":"A"},{"id":"31","key":"G"},{"id":"32","key":"D"},{"id":"33","key":"G"},{"id":"34","key":"Em"},{"id":"35","key":"Amix"},{"id":"36","key":"G"},{"id":"37","key":"Gm"},{"id":"38","key":"G"},{"id":"39","key":"Gm"},{"id":"40","key":"Gm"},{"id":"41","key":"C"},{"id":"42","key":"G"},{"id":"43","key":"Gm"},{"id":"44","key":"G"},{"id":"45","key":"G"},{"id":"46","key":"Dmix"},{"id":"47","key":"Ador"},{"id":"48","key":"D"},{"id":"49","key":"F"},{"id":"50","key":"G"},{"id":"51","key":"Dm"},{"id":"52","key":"D"},{"id":"53","key":"Gm"},{"id":"54","key":"Cm"},{"id":"55","key":"G"},{"id":"56","key":"C"},{"id":"57","key":"D"},{"id":"58","key":"A"},{"id":"59","key":"Dm"},{"id":"60","key":"Am"},{"id":"61","key":"G"},{"id":"62","key":"G"},{"id":"63","key":"D"},{"id":"64","key":"D"},{"id":"65","key":"G"},{"id":"66","key":"D"},{"id":"67","key":"G"},{"id":"68","key":"Dm"},{"id":"69","key":"Dm"},{"id":"70","key":"Cm"},{"id":"71","key":"Cm"},{"id":"72","key":"G"},{"id":"73","key":"Dm"},{"id":"74","key":"G"},{"id":"75","key":"D"},{"id":"76","key":"Em"},{"id":"77","key":"Dm"},{"id":"78","key":"D"},{"id":"79","key":"D"},{"id":"80","key":"D"},{"id":"81","key":"G"},{"id":"82","key":"G"},{"id":"83","key":"Em"},{"id":"84","key":"Em"},{"id":"85","key":"G"},{"id":"86","key":"Dm"},{"id":"87","key":"Em"},{"id":"88","key":"G"},{"id":"89","key":"C"},{"id":"90","key":"D"},{"id":"91","key":"D"},{"id":"92","key":"D"},{"id":"93","key":"D"},{"id":"94","key":"D"},{"id":"95","key":"G"},{"id":"96","key":"A"},{"id":"97","key":"G"},{"id":"98","key":"G"},{"id":"99","key":"G"},{"id":"100","key":"G"},{"id":"101","key":"A"},{"id":"102","key":"C"},{"id":"103","key":"Am"},{"id":"104","key":"G"},{"id":"105","key":"D"},{"id":"106","key":"Gm"},{"id":"107","key":"G"},{"id":"108","key":"D"},{"id":"109","key":"Gm"},{"id":"110","key":"G"},{"id":"111","key":"Dm"},{"id":"112","key":"B"},{"id":"113","key":"G"},{"id":"114","key":"G"},{"id":"115","key":"G"},{"id":"116","key":"G"},{"id":"117","key":"D"},{"id":"118","key":"F"},{"id":"119","key":"G"},{"id":"120","key":"G"},{"id":"121","key":"G"},{"id":"122","key":"G"},{"id":"123","key":"G"},{"id":"124","key":"D"},{"id":"125","key":"G"},{"id":"126","key":"D"},{"id":"127","key":"D"},{"id":"128","key":"C"},{"id":"129","key":"C"},{"id":"130","key":"Em"},{"id":"131","key":"A"},{"id":"132","key":"G"},{"id":"133","key":"G"},{"id":"134","key":"G"},{"id":"135","key":"G"},{"id":"136","key":"F"},{"id":"137","key":"D"},{"id":"138","key":"G"},{"id":"139","key":"G"},{"id":"140","key":"Dmix"},{"id":"141","key":"B"},{"id":"142","key":"Dm"},{"id":"143","key":"G"},{"id":"144","key":"Gm"},{"id":"145","key":"A"},{"id":"146","key":"Gm"},{"id":"147","key":"B"},{"id":"148","key":"F"},{"id":"149","key":"G"},{"id":"150","key":"A"},{"id":"151","key":"A"},{"id":"152","key":"D"},{"id":"153","key":"G"},{"id":"154","key":"F"},{"id":"155","key":"G"},{"id":"156","key":"Em"},{"id":"157","key":"Gm"},{"id":"158","key":"A"},{"id":"159","key":"G"},{"id":"160","key":"G"},{"id":"161","key":"D"},{"id":"162","key":"G"},{"id":"163","key":"Amix"},{"id":"164","key":"G"},{"id":"165","key":"D"},{"id":"166","key":"G"},{"id":"167","key":"C"},{"id":"168","key":"Gm"},{"id":"169","key":"A"},{"id":"170","key":"A"},{"id":"171","key":"A"},{"id":"172","key":"F"},{"id":"173","key":"B"},{"id":"174","key":"D"},{"id":"175","key":"D"},{"id":"176","key":"Bm"},{"id":"177","key":"A"},{"id":"178","key":"D"},{"id":"179","key":"G"},{"id":"180","key":"Gm"},{"id":"181","key":"Gm"},{"id":"182","key":"G"},{"id":"183","key":"G"},{"id":"184","key":"Dmix"},{"id":"185","key":"Em"},{"id":"186","key":"G"},{"id":"187","key":"G"},{"id":"188","key":"Em"},{"id":"189","key":"G"},{"id":"190","key":"Dm"},{"id":"191","key":"D"},{"id":"192","key":"F"},{"id":"193","key":"Am"},{"id":"194","key":"Gmix"},{"id":"195","key":"D"},{"id":"196","key":"D"},{"id":"197","key":"G"},{"id":"198","key":"G"},{"id":"199","key":"D"},{"id":"200","key":"D"},{"id":"201","key":"D"},{"id":"202","key":"A"},{"id":"203","key":"G"},{"id":"204","key":"A"},{"id":"205","key":"G"},{"id":"206","key":"G"},{"id":"207","key":"D"},{"id":"208","key":"A"},{"id":"209","key":"Gdor"},{"id":"210","key":"Am"},{"id":"211","key":"D"},{"id":"212","key":"G"},{"id":"213","key":"G"},{"id":"214","key":"G"},{"id":"215","key":"A"},{"id":"216","key":"Ador"},{"id":"217","key":"G"},{"id":"218","key":"F"},{"id":"219","key":"D"},{"id":"220","key":"Gm"},{"id":"221","key":"G"},{"id":"222","key":"G"},{"id":"223","key":"G"},{"id":"224","key":"G"},{"id":"225","key":"Dm"},{"id":"226","key":"G"},{"id":"227","key":"G"},{"id":"228","key":"G"},{"id":"229","key":"G"},{"id":"230","key":"B"},{"id":"231","key":"D"},{"id":"232","key":"G"},{"id":"233","key":"D"},{"id":"234","key":"G"},{"id":"235","key":"G"},{"id":"236","key":"G"},{"id":"237","key":"G"},{"id":"238","key":"G"},{"id":"239","key":"G"},{"id":"240","key":"Dm"},{"id":"241","key":"D"},{"id":"242","key":"G"},{"id":"243","key":"A"},{"id":"244","key":"C"},{"id":"245","key":"D"},{"id":"246","key":"G"},{"id":"247","key":"G"},{"id":"248","key":"G"},{"id":"249","key":"G"},{"id":"250","key":"G"},{"id":"251","key":"G"},{"id":"252","key":"Gm"},{"id":"253","key":"Gm"},{"id":"254","key":"Gm"},{"id":"255","key":"A"},{"id":"256","key":"F"},{"id":"257","key":"D"},{"id":"258","key":"G"},{"id":"259","key":"D"},{"id":"260","key":"Ador"},{"id":"261","key":"G"},{"id":"262","key":"D"},{"id":"263","key":"G"},{"id":"264","key":"D"},{"id":"265","key":"C"},{"id":"266","key":"Em"},{"id":"267","key":"D"},{"id":"268","key":"G"},{"id":"269","key":"Am"},{"id":"270","key":"Am"},{"id":"271","key":"G"},{"id":"272","key":"G"},{"id":"273","key":"G"},{"id":"274","key":"D"},{"id":"275","key":"G"},{"id":"276","key":"G"},{"id":"277","key":"D"},{"id":"278","key":"Dm"},{"id":"279","key":"G"},{"id":"280","key":"G"},{"id":"281","key":"Gm"},{"id":"282","key":"G"},{"id":"283","key":"Dm"},{"id":"284","key":"Gm"},{"id":"285","key":"D"},{"id":"286","key":"D"},{"id":"287","key":"D"},{"id":"288","key":"Gm"},{"id":"289","key":"D"},{"id":"290","key":"A"},{"id":"291","key":"D"},{"id":"292","key":"F"},{"id":"293","key":"D"},{"id":"294","key":"G"},{"id":"295","key":"D"},{"id":"296","key":"Am"},{"id":"297","key":"Gm"},{"id":"298","key":"G"},{"id":"299","key":"G"},{"id":"300","key":"Amix"},{"id":"301","key":"G"},{"id":"302","key":"G"},{"id":"303","key":"G"},{"id":"304","key":"G"},{"id":"305","key":"D"},{"id":"306","key":"D"},{"id":"307","key":"D"},{"id":"308","key":"F"},{"id":"309","key":"D"},{"id":"310","key":"G"},{"id":"311","key":"C"},{"id":"312","key":"G"},{"id":"313","key":"G"},{"id":"314","key":"C"},{"id":"315","key":"A"},{"id":"316","key":"G"},{"id":"317","key":"G"},{"id":"318","key":"G"},{"id":"319","key":"Am"},{"id":"320","key":"D"},{"id":"321","key":"G"},{"id":"322","key":"D"},{"id":"323","key":"D"},{"id":"324","key":"F"},{"id":"325","key":"F"},{"id":"326","key":"G"},{"id":"327","key":"G"},{"id":"328","key":"Gm"},{"id":"329","key":"D"},{"id":"330","key":"G"},{"id":"331","key":"A"},{"id":"332","key":"Em"},{"id":"333","key":"Em"},{"id":"334","key":"D"},{"id":"335","key":"D"},{"id":"336","key":"D"},{"id":"337","key":"G"},{"id":"338","key":"G"},{"id":"339","key":"G"},{"id":"340","key":"D"},{"id":"341","key":"D"},{"id":"342","key":"A"},{"id":"343","key":"G"},{"id":"344","key":"Gm"},{"id":"345","key":"D"},{"id":"346","key":"G"},{"id":"347","key":"Amix"},{"id":"348","key":"Am"},{"id":"349","key":"Dm"},{"id":"350","key":"G"},{"id":"351","key":"G"},{"id":"352","key":"G"},{"id":"353","key":"G"},{"id":"354","key":"Gm"},{"id":"355","key":"Dm"},{"id":"356","key":"Gm"},{"id":"357","key":"C"},{"id":"358","key":"G"},{"id":"359","key":"G"},{"id":"360","key":"D"},{"id":"361","key":"G"},{"id":"362","key":"D"},{"id":"363","key":"D"},{"id":"364","key":"D"},{"id":"365","key":"D"},{"id":"366","key":"G"},{"id":"367","key":"G"},{"id":"368","key":"G"},{"id":"369","key":"Gm"},{"id":"370","key":"G"},{"id":"371","key":"A"},{"id":"372","key":"G"},{"id":"373","key":"C"},{"id":"374","key":"F"},{"id":"375","key":"G"},{"id":"376","key":"C"},{"id":"377","key":"A"},{"id":"378","key":"Am"},{"id":"379","key":"D"},{"id":"380","key":"G"},{"id":"381","key":"G"},{"id":"382","key":"G"},{"id":"383","key":"F"},{"id":"384","key":"Gm"},{"id":"385","key":"G"},{"id":"386","key":"A"},{"id":"387","key":"F"},{"id":"388","key":"G"},{"id":"389","key":"D"},{"id":"390","key":"G"},{"id":"391","key":"D"},{"id":"392","key":"D"},{"id":"393","key":"B"},{"id":"394","key":"C"},{"id":"395","key":"G"},{"id":"396","key":"Am"},{"id":"397","key":"Am"},{"id":"398","key":"G"},{"id":"399","key":"Dm"},{"id":"400","key":"Dm"},{"id":"401","key":"A"},{"id":"402","key":"A"},{"id":"403","key":"D"},{"id":"404","key":"G"},{"id":"405","key":"Amix"},{"id":"406","key":"G"},{"id":"407","key":"G"},{"id":"408","key":"G"},{"id":"409","key":"D"},{"id":"410","key":"G"},{"id":"411","key":"D"},{"id":"412","key":"G"},{"id":"413","key":"D"},{"id":"414","key":"G"},{"id":"415","key":"Dm"},{"id":"416","key":"D"},{"id":"417","key":"Aphr"},{"id":"418","key":"G"},{"id":"419","key":"F"},{"id":"420","key":"D"},{"id":"421","key":"A"},{"id":"422","key":"G"},{"id":"423","key":"D"},{"id":"424","key":"G"},{"id":"425","key":"Dm"},{"id":"426","key":"G"},{"id":"427","key":"Gm"},{"id":"428","key":"Gm"},{"id":"429","key":"D"},{"id":"430","key":"Dm"},{"id":"431","key":"D"},{"id":"432","key":"D"},{"id":"433","key":"G"},{"id":"434","key":"A"},{"id":"435","key":"G"},{"id":"436","key":"G"},{"id":"437","key":"Gm"},{"id":"438","key":"G"},{"id":"439","key":"G"},{"id":"440","key":"G"},{"id":"441","key":"C"},{"id":"442","key":"F"},{"id":"443","key":"G"},{"id":"444","key":"C"},{"id":"445","key":"G"},{"id":"446","key":"G"},{"id":"447","key":"G"},{"id":"448","key":"G"},{"id":"449","key":"G"},{"id":"450","key":"G"},{"id":"451","key":"D"},{"id":"452","key":"G"},{"id":"453","key":"D"},{"id":"454","key":"Dm"},{"id":"455","key":"C"},{"id":"456","key":"Gm"},{"id":"457","key":"G"},{"id":"458","key":"Dm"},{"id":"459","key":"G"},{"id":"460","key":"G"},{"id":"461","key":"Gm"},{"id":"462","key":"D"},{"id":"463","key":"Dm"},{"id":"464","key":"G"},{"id":"465","key":"A"},{"id":"466","key":"Am"},{"id":"467","key":"G"},{"id":"468","key":"Am"},{"id":"469","key":"Gdor"},{"id":"470","key":"Gdor"},{"id":"471","key":"Em"},{"id":"472","key":"C"},{"id":"473","key":"Gm"},{"id":"474","key":"Gm"},{"id":"475","key":"Am"},{"id":"476","key":"Am"},{"id":"477","key":"D"},{"id":"478","key":"G"},{"id":"479","key":"G"},{"id":"480","key":"Dm"},{"id":"481","key":"Am"},{"id":"482","key":"D"},{"id":"483","key":"G"},{"id":"484","key":"G"},{"id":"485","key":"Gm"},{"id":"486","key":"Gm"},{"id":"487","key":"Gm"},{"id":"488","key":"D"},{"id":"489","key":"F"},{"id":"490","key":"G"},{"id":"491","key":"D"},{"id":"492","key":"Am"},{"id":"493","key":"G"},{"id":"494","key":"G"},{"id":"495","key":"C"},{"id":"496","key":"B"},{"id":"497","key":"C"},{"id":"498","key":"G"},{"id":"499","key":"G"},{"id":"500","key":"D"},{"id":"501","key":"D"},{"id":"502","key":"D"},{"id":"503","key":"F"},{"id":"504","key":"Dm"},{"id":"505","key":"D"},{"id":"506","key":"D"},{"id":"507","key":"G"},{"id":"508","key":"G"},{"id":"509","key":"G"},{"id":"510","key":"A"},{"id":"511","key":"F"},{"id":"512","key":"G"},{"id":"513","key":"Gm"},{"id":"514","key":"A"},{"id":"515","key":"D"},{"id":"516","key":"Gm"},{"id":"517","key":"G"},{"id":"518","key":"G"},{"id":"519","key":"G"},{"id":"520","key":"G"},{"id":"521","key":"G"},{"id":"522","key":"G"},{"id":"523","key":"F"},{"id":"524","key":"G"},{"id":"525","key":"G"},{"id":"526","key":"G"},{"id":"527","key":"Gm"},{"id":"528","key":"G"},{"id":"529","key":"G"},{"id":"530","key":"D"},{"id":"531","key":"G"},{"id":"532","key":"G"},{"id":"533","key":"G"},{"id":"534","key":"G"},{"id":"535","key":"Gm"},{"id":"536","key":"G"},{"id":"537","key":"G"},{"id":"538","key":"D"},{"id":"539","key":"Dphr"},{"id":"540","key":"G"},{"id":"541","key":"D"},{"id":"542","key":"G"},{"id":"543","key":"D"},{"id":"544","key":"E"},{"id":"545","key":"Dm"},{"id":"546","key":"Gm"},{"id":"547","key":"D"},{"id":"548","key":"G"},{"id":"549","key":"D"},{"id":"550","key":"G"},{"id":"551","key":"Gm"},{"id":"552","key":"G"},{"id":"553","rhythm":"jig","key":"C"},{"id":"554","key":"Dm"},{"id":"555","key":"Gm"},{"id":"556","key":"D"},{"id":"557","rhythm":"waltz","key":"D"},{"id":"558","key":"C"},{"id":"559","key":"Dmix"},{"id":"560","rhythm":"air","key":"F"},{"id":"561","rhythm":"waltz","key":"Dm"},{"id":"562","rhythm":"air","key":"Amix"},{"id":"563","rhythm":"air","key":"G"},{"id":"564","rhythm":"jig","key":"G"},{"id":"565","rhythm":"jig","key":"C"},{"id":"566","key":"C"},{"id":"567","rhythm":"jig","key":"G"},{"id":"568","rhythm":"air","key":"G"},{"id":"569","rhythm":"air","key":"Em"},{"id":"570","rhythm":"air","key":"G"},{"id":"571","rhythm":"jig","key":"Em"},{"id":"572","key":"G"},{"id":"573","rhythm":"jig","key":"C"},{"id":"574","rhythm":"jig","key":"D"},{"id":"575","key":"G"},{"id":"576","key":"Gm"},{"id":"577","rhythm":"air","key":"D"},{"id":"578","key":"D"},{"id":"579","key":"D"},{"id":"580","key":"Am"},{"id":"581","key":"D"},{"id":"582","rhythm":"air","key":"G"},{"id":"583","rhythm":"jig","key":"Gm"},{"id":"584","rhythm":"jig","key":"Gmix"},{"id":"585","key":"G"},{"id":"586","key":"D"},{"id":"587","rhythm":"march","key":"D"},{"id":"588","key":"G"},{"id":"589","key":"D"},{"id":"590","key":"G"},{"id":"591","rhythm":"reel","key":"G"},{"id":"592","rhythm":"air","key":"Em"},{"id":"593","rhythm":"waltz","key":"F"},{"id":"594","rhythm":"air","key":"D"},{"id":"595","rhythm":"air","key":"F"},{"id":"596","rhythm":"air","key":"Dm"},{"id":"597","rhythm":"air","key":"Dm"},{"id":"598","rhythm":"air","key":"Dm"},{"id":"599","key":"F"},{"id":"600","rhythm":"air","key":"F"},{"id":"601","rhythm":"air","key":"A"},{"id":"602","rhythm":"air","key":"A"},{"id":"603","key":"D"},{"id":"604","rhythm":"air","key":"D"},{"id":"605","rhythm":"air","key":"G"},{"id":"606","rhythm":"air","key":"G"},{"id":"607","rhythm":"air","key":"Gmix"},{"id":"608","rhythm":"air","key":"C"},{"id":"609","rhythm":"air","key":"Ddor"},{"id":"610","rhythm":"waltz","key":"G"},{"id":"611","rhythm":"air","key":"G"},{"id":"612","rhythm":"air","key":"D"},{"id":"613","key":"A"},{"id":"614","rhythm":"air","key":"G"},{"id":"615","rhythm":"air","key":"G"},{"id":"616","rhythm":"air","key":"Gm"},{"id":"617","rhythm":"air","key":"G"},{"id":"618","rhythm":"air","key":"G"},{"id":"619","rhythm":"air","key":"G"},{"id":"620","rhythm":"air","key":"G"},{"id":"621","rhythm":"air","key":"D"},{"id":"622","rhythm":"waltz","key":"G"},{"id":"623","rhythm":"air","key":"G"},{"id":"624","rhythm":"air","key":"G"},{"id":"625","rhythm":"air","key":"C"},{"id":"626","key":"Gm"},{"id":"627","key":"Em"},{"id":"628","key":"Am"},{"id":"629","key":"Gm"},{"id":"630","key":"Dm"},{"id":"631","key":"Gm"},{"id":"632","key":"A"},{"id":"633","key":"D"},{"id":"634","key":"G"},{"id":"635","key":"D"},{"id":"636","key":"D"},{"id":"637","key":"G"},{"id":"638","key":"D"},{"id":"639","key":"D"},{"id":"640","key":"G"},{"id":"641","key":"Gm"},{"id":"642","key":"A"},{"id":"643","key":"G"},{"id":"644","key":"Dm"},{"id":"645","key":"G"},{"id":"646","key":"F"},{"id":"647","key":"Dm"},{"id":"648","key":"D"},{"id":"649","key":"Gm"},{"id":"650","key":"G"},{"id":"651","key":"G"},{"id":"652","key":"D"},{"id":"653","key":"Am"},{"id":"654","key":"Dm"},{"id":"655","key":"D"},{"id":"656","key":"D"},{"id":"657","key":"G"},{"id":"658","key":"Gm"},{"id":"659","key":"D"},{"id":"660","key":"G"},{"id":"661","key":"G"},{"id":"662","key":"D"},{"id":"663","key":"G"},{"id":"664","key":"Gm"},{"id":"665","key":"D"},{"id":"666","key":"G"},{"id":"667","key":"B"},{"id":"668","key":"G"},{"id":"669","key":"G"},{"id":"670","key":"D"},{"id":"671","key":"C"},{"id":"672","key":"D"},{"id":"673","key":"A"},{"id":"674","key":"G"},{"id":"675","key":"Gm"},{"id":"676","key":"A"},{"id":"677","key":"D"},{"id":"678","key":"Am"},{"id":"679","key":"Gm"},{"id":"680","key":"Gm"},{"id":"681","key":"Dm"},{"id":"682","key":"C"},{"id":"683","key":"D"},{"id":"684","key":"D"},{"id":"685","key":"D"},{"id":"686","key":"G"},{"id":"687","key":"Dm"},{"id":"688","key":"Gm"},{"id":"689","key":"Gm"},{"id":"690","key":"Gm"},{"id":"691","key":"D"},{"id":"692","key":"G"},{"id":"693","key":"C"},{"id":"694","key":"G"},{"id":"695","key":"G"},{"id":"696","rhythm":"","key":"D"},{"id":"697","rhythm":"","key":"Em"},{"id":"698","rhythm":"","key":"Dm"},{"id":"699","rhythm":"","key":"Gm"},{"id":"700","rhythm":"","key":"Am"},{"id":"701","key":"D"},{"id":"702","key":"D"},{"id":"703","key":"G"},{"id":"704","key":"D"},{"id":"705","key":"Am"},{"id":"706","key":"D"},{"id":"707","key":"C"},{"id":"708","key":"G"},{"id":"709","key":"D"},{"id":"710","key":"D"},{"id":"711","key":"G"},{"id":"712","key":"Am"},{"id":"713","key":"A"},{"id":"714","key":"D"},{"id":"715","key":"G"},{"id":"716","key":"Dmix"},{"id":"717","key":"A"},{"id":"718","key":"A"},{"id":"719","key":"D"},{"id":"720","key":"G"},{"id":"721","rhythm":"jig","key":"D"},{"id":"722","rhythm":"jig","key":"G"},{"id":"723","rhythm":"jig","key":"G"},{"id":"724","rhythm":"jig","key":"G"},{"id":"725","rhythm":"jig","key":"D"},{"id":"726","rhythm":"jig","key":"D"},{"id":"727","rhythm":"jig","key":"G"},{"id":"728","rhythm":"jig","key":"D"},{"id":"729","rhythm":"jig","key":"Am"},{"id":"730","rhythm":"jig","key":"D"},{"id":"731","rhythm":"double jig","key":"G"},{"id":"732","rhythm":"jig","key":"D"},{"id":"733","rhythm":"jig","key":"G"},{"id":"734","rhythm":"jig","key":"D"},{"id":"735","rhythm":"jig","key":"Em"},{"id":"736","rhythm":"jig","key":"Dmix"},{"id":"737","rhythm":"jig","key":"Dmix"},{"id":"738","rhythm":"jig","key":"Em"},{"id":"739","rhythm":"jig","key":"A"},{"id":"740","rhythm":"jig","key":"Am"},{"id":"741","rhythm":"jig","key":"D"},{"id":"742","rhythm":"jig","key":"D"},{"id":"743","rhythm":"jig","key":"C"},{"id":"744","rhythm":"jig","key":"Bm"},{"id":"745","rhythm":"jig","key":"B"},{"id":"746","rhythm":"jig","key":"Am"},{"id":"747","rhythm":"jig","key":"A"},{"id":"748","rhythm":"jig","key":"D"},{"id":"749","rhythm":"jig","key":"G"},{"id":"750","rhythm":"jig","key":"D"},{"id":"751","rhythm":"jig","key":"D"},{"id":"752","rhythm":"jig","key":"G"},{"id":"753","rhythm":"jig","key":"G"},{"id":"754","rhythm":"jig","key":"D"},{"id":"755","rhythm":"jig","key":"Em"},{"id":"756","rhythm":"jig","key":"Em"},{"id":"757","rhythm":"jig","key":"G"},{"id":"758","rhythm":"jig","key":"A"},{"id":"759","rhythm":"jig","key":"G"},{"id":"760","rhythm":"jig","key":"G"},{"id":"761","rhythm":"jig","key":"G"},{"id":"762","rhythm":"jig","key":"G"},{"id":"763","rhythm":"jig","key":"G"},{"id":"764","rhythm":"jig","key":"D"},{"id":"765","rhythm":"jig","key":"Am"},{"id":"766","rhythm":"jig","key":"G"},{"id":"767","rhythm":"jig","key":"Dmix"},{"id":"768","rhythm":"jig","key":"A"},{"id":"769","rhythm":"jig","key":"Dmix"},{"id":"770","rhythm":"jig","key":"Gm"},{"id":"771","rhythm":"jig","key":"A"},{"id":"772","rhythm":"jig","key":"C"},{"id":"773","rhythm":"jig","key":"Em"},{"id":"774","rhythm":"jig","key":"G"},{"id":"775","rhythm":"jig","key":"D"},{"id":"776","rhythm":"jig","key":"D"},{"id":"777","rhythm":"jig","key":"G"},{"id":"778","rhythm":"jig","key":"G"},{"id":"779","rhythm":"jig","key":"D"},{"id":"780","rhythm":"jig","key":"D"},{"id":"781","rhythm":"jig","key":"G"},{"id":"782","rhythm":"jig","key":"G"},{"id":"783","rhythm":"jig","key":"D"},{"id":"784","rhythm":"jig","key":"D"},{"id":"785","rhythm":"jig","key":"Amix"},{"id":"786","rhythm":"jig","key":"Em"},{"id":"787","rhythm":"slide","key":"Em"},{"id":"788","rhythm":"jig","key":"G"},{"id":"789","rhythm":"jig","key":"Am"},{"id":"790","rhythm":"jig","key":"D"},{"id":"791","rhythm":"jig","key":"D"},{"id":"792","rhythm":"jig","key":"Am"},{"id":"793","rhythm":"jig","key":"A"},{"id":"794","rhythm":"jig","key":"D"},{"id":"795","rhythm":"jig","key":"G"},{"id":"796","rhythm":"jig","key":"G"},{"id":"797","rhythm":"jig","key":"Dmix"},{"id":"798","rhythm":"jig","key":"Em"},{"id":"799","rhythm":"jig","key":"G"},{"id":"800","rhythm":"jig","key":"G"},{"id":"801","rhythm":"jig","key":"Ddor"},{"id":"802","rhythm":"jig","key":"G"},{"id":"803","rhythm":"jig","key":"A"},{"id":"804","rhythm":"jig","key":"A"},{"id":"805","rhythm":"jig","key":"G"},{"id":"806","rhythm":"jig","key":"A"},{"id":"807","rhythm":"jig","key":"G"},{"id":"808","rhythm":"jig","key":"G"},{"id":"809","rhythm":"jig","key":"D"},{"id":"810","rhythm":"jig","key":"A"},{"id":"811","key":"A"},{"id":"812","key":"D"},{"id":"813","key":"A"},{"id":"814","key":"D"},{"id":"815","key":"A"},{"id":"816","key":"G"},{"id":"817","key":"G"},{"id":"818","key":"G"},{"id":"819","key":"A"},{"id":"820","key":"A"},{"id":"821","key":"G"},{"id":"822","key":"D"},{"id":"823","key":"D"},{"id":"824","key":"G"},{"id":"825","key":"G"},{"id":"826","key":"Am"},{"id":"827","key":"D"},{"id":"828","key":"G"},{"id":"829","key":"Am"},{"id":"830","key":"G"},{"id":"831","key":"D"},{"id":"832","key":"G"},{"id":"833","key":"D"},{"id":"834","key":"G"},{"id":"835","key":"G"},{"id":"836","key":"D"},{"id":"837","key":"Em"},{"id":"838","key":"A"},{"id":"839","key":"G"},{"id":"840","key":"A"},{"id":"841","key":"G"},{"id":"842","key":"G"},{"id":"843","key":"G"},{"id":"844","key":"A"},{"id":"845","key":"D"},{"id":"846","key":"G"},{"id":"847","key":"G"},{"id":"848","key":"G"},{"id":"849","key":"Am"},{"id":"850","key":"G"},{"id":"851","key":"G"},{"id":"852","key":"G"},{"id":"853","key":"G"},{"id":"854","key":"G"},{"id":"855","key":"D"},{"id":"856","key":"G"},{"id":"857","key":"A"},{"id":"858","key":"Em"},{"id":"859","key":"Em"},{"id":"860","key":"G"},{"id":"861","key":"G"},{"id":"862","key":"G"},{"id":"863","key":"Em"},{"id":"864","key":"D"},{"id":"865","key":"Am"},{"id":"866","key":"G"},{"id":"867","key":"G"},{"id":"868","key":"Gm"},{"id":"869","key":"G"},{"id":"870","key":"D"},{"id":"871","key":"D"},{"id":"872","key":"D"},{"id":"873","key":"G"},{"id":"874","key":"Em"},{"id":"875","key":"D"},{"id":"876","key":"G"},{"id":"877","key":"G"},{"id":"878","key":"G"},{"id":"879","key":"G"},{"id":"880","key":"Em"},{"id":"881","key":"Am"},{"id":"882","key":"G"},{"id":"883","key":"D"},{"id":"884","key":"G"},{"id":"885","key":"D"},{"id":"886","key":"D"},{"id":"887","key":"Fm"},{"id":"888","key":"A"},{"id":"889","key":"G"},{"id":"890","key":"A"},{"id":"891","key":"G"},{"id":"892","key":"D"},{"id":"893","key":"G"},{"id":"894","key":"D"},{"id":"895","key":"A"},{"id":"896","key":"Em"},{"id":"897","key":"Bm"},{"id":"898","key":"Em"},{"id":"899","key":"D"},{"id":"900","rhythm":"jig","key":"G"},{"id":"901","rhythm":"jig","key":"D"},{"id":"902","rhythm":"jig","key":"Am"},{"id":"903","rhythm":"jig","key":"D"},{"id":"904","rhythm":"jig","key":"G"},{"id":"905","rhythm":"jig","key":"D"},{"id":"906","rhythm":"jig","key":"D"},{"id":"907","rhythm":"jig","key":"A"},{"id":"908","rhythm":"jig","key":"Am"},{"id":"909","rhythm":"jig","key":"Gmix"},{"id":"910","rhythm":"jig","key":"D"},{"id":"911","rhythm":"jig","key":"A"},{"id":"912","rhythm":"jig","key":"G"},{"id":"913","rhythm":"jig","key":"Em"},{"id":"914","rhythm":"jig","key":"D"},{"id":"915","rhythm":"jig","key":"Em"},{"id":"916","rhythm":"jig","key":"G"},{"id":"917","rhythm":"jig","key":"G"},{"id":"918","rhythm":"jig","key":"G"},{"id":"919","rhythm":"jig","key":"Em"},{"id":"920","rhythm":"jig","key":"D"},{"id":"921","rhythm":"jig","key":"D"},{"id":"922","rhythm":"jig","key":"G"},{"id":"923","rhythm":"jig","key":"A"},{"id":"924","rhythm":"jig","key":"A"},{"id":"925","rhythm":"jig","key":"D"},{"id":"926","rhythm":"jig","key":"D"},{"id":"927","rhythm":"jig","key":"A"},{"id":"928","rhythm":"jig","key":"D"},{"id":"929","rhythm":"jig","key":"Am"},{"id":"930","rhythm":"jig","key":"Am"},{"id":"931","rhythm":"jig","key":"D"},{"id":"932","rhythm":"jig","key":"Dlyd"},{"id":"933","rhythm":"jig","key":"G"},{"id":"934","rhythm":"jig","key":"A"},{"id":"935","rhythm":"jig","key":"A"},{"id":"936","rhythm":"jig","key":"A"},{"id":"937","rhythm":"jig","key":"D"},{"id":"938","rhythm":"jig","key":"D"},{"id":"939","rhythm":"jig","key":"A"},{"id":"940","rhythm":"jig","key":"Em"},{"id":"941","rhythm":"jig","key":"D"},{"id":"942","rhythm":"jig","key":"D"},{"id":"943","rhythm":"jig","key":"G"},{"id":"944","rhythm":"jig","key":"C"},{"id":"945","rhythm":"jig","key":"G"},{"id":"946","rhythm":"jig","key":"G"},{"id":"947","rhythm":"jig","key":"C"},{"id":"948","rhythm":"jig","key":"A"},{"id":"949","rhythm":"jig","key":"D"},{"id":"950","rhythm":"jig","key":"G"},{"id":"951","key":"G"},{"id":"952","key":"A"},{"id":"953","key":"D"},{"id":"954","key":"G"},{"id":"955","key":"G"},{"id":"956","key":"Am"},{"id":"957","key":"Am"},{"id":"958","key":"A"},{"id":"959","key":"Em"},{"id":"960","key":"Am"},{"id":"961","key":"D"},{"id":"962","key":"G"},{"id":"963","key":"G"},{"id":"964","key":"D"},{"id":"965","key":"D"},{"id":"966","key":"C"},{"id":"967","key":"Am"},{"id":"968","key":"D"},{"id":"969","key":"Am"},{"id":"970","key":"Em"},{"id":"971","key":"G"},{"id":"972","key":"G"},{"id":"973","key":"Am"},{"id":"974","key":"D"},{"id":"975","key":"G"},{"id":"976","key":"G"},{"id":"977","key":"Em"},{"id":"978","key":"A"},{"id":"979","key":"G"},{"id":"980","key":"D"},{"id":"981","key":"Am"},{"id":"982","rhythm":"double jig","key":"G"},{"id":"983","rhythm":"double jig","key":"D"},{"id":"984","rhythm":"double jig","key":"D"},{"id":"985","rhythm":"double jig","key":"C"},{"id":"986","rhythm":"double jig","key":"D"},{"id":"987","rhythm":"double jig","key":"D"},{"id":"988","rhythm":"double jig","key":"D"},{"id":"989","rhythm":"double jig","key":"F"},{"id":"990","rhythm":"double jig","key":"Am"},{"id":"991","rhythm":"double jig","key":"G"},{"id":"992","rhythm":"double jig","key":"G"},{"id":"993","rhythm":"double jig","key":"Em"},{"id":"994","rhythm":"double jig","key":"Am"},{"id":"995","rhythm":"double jig","key":"D"},{"id":"996","rhythm":"double jig","key":"D"},{"id":"997","rhythm":"double jig","key":"G"},{"id":"998","rhythm":"double jig","key":"G"},{"id":"999","rhythm":"double jig","key":"D"},{"id":"1000","rhythm":"double jig","key":"Em"},{"id":"1001","key":"D"},{"id":"1002","key":"A"},{"id":"1003","key":"Bm"},{"id":"1004","key":"G"},{"id":"1005","key":"G"},{"id":"1006","key":"G"},{"id":"1007","key":"Am"},{"id":"1008","key":"Dm"},{"id":"1009","key":"Am"},{"id":"1010","key":"D"},{"id":"1011","key":"G"},{"id":"1012","key":"Am"},{"id":"1013","key":"A"},{"id":"1014","key":"D"},{"id":"1015","key":"D"},{"id":"1016","key":"G"},{"id":"1017","key":"A"},{"id":"1018","key":"A"},{"id":"1019","key":"Em"},{"id":"1020","key":"Am"},{"id":"1021","key":"G"},{"id":"1022","key":"D"},{"id":"1023","key":"Am"},{"id":"1024","key":"G"},{"id":"1025","key":"D"},{"id":"1026","key":"G"},{"id":"1027","key":"G"},{"id":"1028","key":"A"},{"id":"1029","key":"A"},{"id":"1030","key":"G"},{"id":"1031","key":"D"},{"id":"1032","rhythm":"double jig","key":"G"},{"id":"1033","rhythm":"double jig","key":"Em"},{"id":"1034","rhythm":"double jig","key":"A"},{"id":"1035","rhythm":"double jig","key":"G"},{"id":"1036","rhythm":"double jig","key":"A"},{"id":"1037","rhythm":"double jig","key":"D"},{"id":"1038","rhythm":"double jig","key":"G"},{"id":"1039","rhythm":"double jig","key":"G"},{"id":"1040","rhythm":"double jig","key":"D"},{"id":"1041","rhythm":"double jig","key":"G"},{"id":"1042","rhythm":"double jig","key":"G"},{"id":"1043","rhythm":"double jig","key":"D"},{"id":"1044","rhythm":"double jig","key":"Amix"},{"id":"1045","rhythm":"double jig","key":"A"},{"id":"1046","rhythm":"double jig","key":"C"},{"id":"1047","rhythm":"double jig","key":"D"},{"id":"1048","rhythm":"double jig","key":"D"},{"id":"1049","rhythm":"double jig","key":"A"},{"id":"1050","rhythm":"double jig","key":"Am"},{"id":"1051","rhythm":"double jig","key":"D"},{"id":"1052","rhythm":"double jig","key":"C"},{"id":"1053","rhythm":"double jig","key":"G"},{"id":"1054","rhythm":"double jig","key":"Gm"},{"id":"1055","rhythm":"double jig","key":"D"},{"id":"1056","rhythm":"double jig","key":"A"},{"id":"1057","rhythm":"double jig","key":"G"},{"id":"1058","rhythm":"double jig","key":"D"},{"id":"1059","rhythm":"double jig","key":"D"},{"id":"1060","rhythm":"double jig","key":"Am"},{"id":"1061","rhythm":"double jig","key":"F"},{"id":"1062","rhythm":"double jig","key":"D"},{"id":"1063","rhythm":"double jig","key":"D"},{"id":"1064","rhythm":"double jig","key":"A"},{"id":"1065","rhythm":"double jig","key":"F"},{"id":"1066","rhythm":"double jig","key":"G"},{"id":"1067","rhythm":"double jig","key":"D"},{"id":"1068","rhythm":"double jig","key":"G"},{"id":"1069","rhythm":"double jig","key":"G"},{"id":"1070","rhythm":"double jig","key":"D"},{"id":"1071","rhythm":"double jig","key":"D"},{"id":"1072","rhythm":"double jig","key":"G"},{"id":"1073","rhythm":"double jig","key":"D"},{"id":"1074","rhythm":"double jig","key":"G"},{"id":"1075","rhythm":"double jig","key":"Dm"},{"id":"1076","rhythm":"double jig","key":"A"},{"id":"1077","rhythm":"double jig","key":"G"},{"id":"1078","rhythm":"double jig","key":"G"},{"id":"1079","rhythm":"double jig","key":"D"},{"id":"1080","rhythm":"double jig","key":"G"},{"id":"1081","rhythm":"double jig","key":"Am"},{"id":"1082","rhythm":"double jig","key":"G"},{"id":"1083","rhythm":"double jig","key":"G"},{"id":"1084","rhythm":"double jig","key":"A"},{"id":"1085","rhythm":"double jig","key":"D"},{"id":"1086","rhythm":"double jig","key":"G"},{"id":"1087","rhythm":"double jig","key":"D"},{"id":"1088","rhythm":"double jig","key":"D"},{"id":"1089","rhythm":"double jig","key":"G"},{"id":"1090","rhythm":"double jig","key":"D"},{"id":"1091","rhythm":"double jig","key":"C"},{"id":"1092","rhythm":"double jig","key":"G"},{"id":"1093","rhythm":"double jig","key":"G"},{"id":"1094","rhythm":"double jig","key":"A"},{"id":"1095","rhythm":"double jig","key":"C"},{"id":"1096","rhythm":"double jig","key":"G"},{"id":"1097","rhythm":"double jig","key":"G"},{"id":"1098","rhythm":"double jig","key":"G"},{"id":"1099","rhythm":"double jig","key":"G"},{"id":"1100","rhythm":"double jig","key":"F"},{"id":"1101","rhythm":"double jig","key":"G"},{"id":"1102","rhythm":"double jig","key":"A"},{"id":"1103","rhythm":"double jig","key":"A"},{"id":"1104","rhythm":"double jig","key":"Em"},{"id":"1105","rhythm":"double jig","key":"Gm"},{"id":"1106","rhythm":"double jig","key":"D"},{"id":"1107","rhythm":"double jig","key":"C"},{"id":"1108","rhythm":"double jig","key":"Edor"},{"id":"1109","rhythm":"double jig","key":"A"},{"id":"1110","rhythm":"double jig","key":"Amix"},{"id":"1111","rhythm":"double jig","key":"Em"},{"id":"1112","rhythm":"double jig","key":"Gm"},{"id":"1113","rhythm":"double jig","key":"Am"},{"id":"1114","rhythm":"double jig","key":"Am"},{"id":"1115","rhythm":"double jig","key":"G"},{"id":"1116","rhythm":"slip jig","key":"A"},{"id":"1117","rhythm":"slip jig","key":"D"},{"id":"1118","rhythm":"slip jig","key":"G"},{"id":"1119","rhythm":"slip jig","key":"A"},{"id":"1120","rhythm":"slip jig","key":"G"},{"id":"1121","rhythm":"slip jig","key":"G"},{"id":"1122","rhythm":"slip jig","key":"G"},{"id":"1123","rhythm":"slip jig","key":"D"},{"id":"1124","rhythm":"slip jig","key":"D"},{"id":"1125","rhythm":"slip jig","key":"D"},{"id":"1126","rhythm":"slip jig","key":"D"},{"id":"1127","rhythm":"slip jig","key":"D"},{"id":"1128","rhythm":"slip jig","key":"G"},{"id":"1129","rhythm":"slip jig","key":"A"},{"id":"1130","rhythm":"slip jig","key":"D"},{"id":"1131","rhythm":"slip jig","key":"G"},{"id":"1132","rhythm":"slip jig","key":"Em"},{"id":"1133","rhythm":"slip jig","key":"D"},{"id":"1134","rhythm":"slip jig","key":"G"},{"id":"1135","rhythm":"slip jig","key":"G"},{"id":"1136","rhythm":"slipjig","key":"G"},{"id":"1137","rhythm":"slipjig","key":"A"},{"id":"1138","rhythm":"slipjig","key":"G"},{"id":"1139","rhythm":"slipjig","key":"G"},{"id":"1140","rhythm":"slipjig","key":"G"},{"id":"1141","rhythm":"slipjig","key":"D"},{"id":"1142","rhythm":"slipjig","key":"D"},{"id":"1143","rhythm":"slipjig","key":"D"},{"id":"1144","rhythm":"slipjig","key":"A"},{"id":"1145","rhythm":"slipjig","key":"D"},{"id":"1146","rhythm":"slipjig","key":"C"},{"id":"1147","rhythm":"slipjig","key":"D"},{"id":"1148","rhythm":"slipjig","key":"D"},{"id":"1149","rhythm":"slipjig","key":"G"},{"id":"1150","rhythm":"slipjig","key":"A"},{"id":"1151","rhythm":"slipjig","key":"G"},{"id":"1152","rhythm":"slipjig","key":"Em"},{"id":"1153","rhythm":"slipjig","key":"D"},{"id":"1154","rhythm":"slipjig","key":"A"},{"id":"1155","rhythm":"slipjig","key":"G"},{"id":"1156","rhythm":"slipjig","key":"G"},{"id":"1157","rhythm":"slipjig","key":"A"},{"id":"1158","rhythm":"slipjig","key":"G"},{"id":"1159","rhythm":"slipjig","key":"G"},{"id":"1160","rhythm":"slipjig","key":"G"},{"id":"1161","rhythm":"slipjig","key":"D"},{"id":"1162","rhythm":"slipjig","key":"G"},{"id":"1163","rhythm":"slipjig","key":"D"},{"id":"1164","rhythm":"slipjig","key":"Em"},{"id":"1165","rhythm":"slipjig","key":"D"},{"id":"1166","rhythm":"slipjig","key":"D"},{"id":"1167","rhythm":"slipjig","key":"D"},{"id":"1168","rhythm":"slipjig","key":"C"},{"id":"1169","rhythm":"slipjig","key":"G"},{"id":"1170","rhythm":"slipjig","key":"F"},{"id":"1171","rhythm":"slipjig","key":"D"},{"id":"1172","rhythm":"slipjig","key":"G"},{"id":"1173","rhythm":"slipjig","key":"Em"},{"id":"1174","rhythm":"slipjig","key":"Em"},{"id":"1175","rhythm":"slipjig","key":"D"},{"id":"1176","rhythm":"reel","key":"Gm"},{"id":"1177","rhythm":"reel","key":"F"},{"id":"1178","rhythm":"reel","key":"D"},{"id":"1179","rhythm":"reel","key":"D"},{"id":"1180","rhythm":"reel","key":"G"},{"id":"1181","rhythm":"reel","key":"Am"},{"id":"1182","rhythm":"reel","key":"Am"},{"id":"1183","rhythm":"reel","key":"A"},{"id":"1184","rhythm":"reel","key":"G"},{"id":"1185","rhythm":"reel","key":"D"},{"id":"1186","rhythm":"reel","key":"D"},{"id":"1187","rhythm":"reel","key":"G"},{"id":"1188","rhythm":"reel","key":"G"},{"id":"1189","rhythm":"reel","key":"G"},{"id":"1190","rhythm":"reel","key":"G"},{"id":"1191","rhythm":"reel","key":"G"},{"id":"1192","rhythm":"reel","key":"Em"},{"id":"1193","rhythm":"reel","key":"G"},{"id":"1194","rhythm":"reel","key":"C"},{"id":"1195","rhythm":"reel","key":"G"},{"id":"1196","rhythm":"reel","key":"A"},{"id":"1197","rhythm":"reel","key":"Gm"},{"id":"1198","rhythm":"reel","key":"D"},{"id":"1199","rhythm":"reel","key":"D"},{"id":"1200","rhythm":"reel","key":"Gm"},{"id":"1201","rhythm":"reel","key":"G"},{"id":"1202","rhythm":"reel","key":"G"},{"id":"1203","rhythm":"reel","key":"A"},{"id":"1204","rhythm":"reel","key":"D"},{"id":"1205","rhythm":"reel","key":"D"},{"id":"1206","rhythm":"reel","key":"G"},{"id":"1207","rhythm":"reel","key":"G"},{"id":"1208","rhythm":"reel","key":"D"},{"id":"1209","rhythm":"reel","key":"D"},{"id":"1210","rhythm":"reel","key":"G"},{"id":"1211","rhythm":"reel","key":"G"},{"id":"1212","rhythm":"reel","key":"D"},{"id":"1213","rhythm":"reel","key":"G"},{"id":"1214","rhythm":"reel","key":"A"},{"id":"1215","rhythm":"reel","key":"G"},{"id":"1216","rhythm":"reel","key":"Gm"},{"id":"1217","rhythm":"reel","key":"Em"},{"id":"1218","rhythm":"reel","key":"C"},{"id":"1219","rhythm":"reel","key":"A"},{"id":"1220","rhythm":"reel","key":"G"},{"id":"1221","rhythm":"reel","key":"Em"},{"id":"1222","rhythm":"reel","key":"G"},{"id":"1223","rhythm":"reel","key":"D"},{"id":"1224","rhythm":"reel","key":"D"},{"id":"1225","rhythm":"reel","key":"D"},{"id":"1226","rhythm":"reel","key":"C"},{"id":"1227","rhythm":"reel","key":"G"},{"id":"1228","rhythm":"reel","key":"G"},{"id":"1229","rhythm":"reel","key":"G"},{"id":"1230","rhythm":"reel","key":"G"},{"id":"1231","rhythm":"reel","key":"G"},{"id":"1232","rhythm":"reel","key":"G"},{"id":"1233","rhythm":"reel","key":"G"},{"id":"1234","rhythm":"reel","key":"D"},{"id":"1235","rhythm":"reel","key":"G"},{"id":"1236","rhythm":"reel","key":"A"},{"id":"1237","rhythm":"reel","key":"G"},{"id":"1238","rhythm":"reel","key":"G"},{"id":"1239","rhythm":"reel","key":"G"},{"id":"1240","rhythm":"reel","key":"G"},{"id":"1241","rhythm":"reel","key":"D"},{"id":"1242","rhythm":"reel","key":"G"},{"id":"1243","rhythm":"reel","key":"Em"},{"id":"1244","rhythm":"reel","key":"G"},{"id":"1245","rhythm":"reel","key":"G"},{"id":"1246","rhythm":"reel","key":"G"},{"id":"1247","rhythm":"reel","key":"A"},{"id":"1248","rhythm":"reel","key":"A"},{"id":"1249","rhythm":"reel","key":"G"},{"id":"1250","rhythm":"reel","key":"D"},{"id":"1251","rhythm":"reel","key":"G"},{"id":"1252","rhythm":"reel","key":"D"},{"id":"1253","rhythm":"reel","key":"G"},{"id":"1254","rhythm":"reel","key":"G"},{"id":"1255","rhythm":"reel","key":"G"},{"id":"1256","rhythm":"reel","key":"Am"},{"id":"1257","rhythm":"reel","key":"G"},{"id":"1258","rhythm":"reel","key":"D"},{"id":"1259","rhythm":"reel","key":"G"},{"id":"1260","rhythm":"reel","key":"G"},{"id":"1261","rhythm":"reel","key":"G"},{"id":"1262","rhythm":"reel","key":"A"},{"id":"1263","rhythm":"reel","key":"A"},{"id":"1264","rhythm":"reel","key":"Em"},{"id":"1265","rhythm":"reel","key":"D"},{"id":"1266","rhythm":"reel","key":"G"},{"id":"1267","rhythm":"reel","key":"Em"},{"id":"1268","rhythm":"reel","key":"A"},{"id":"1269","rhythm":"reel","key":"D"},{"id":"1270","rhythm":"reel","key":"D"},{"id":"1271","rhythm":"reel","key":"D"},{"id":"1272","rhythm":"reel","key":"A"},{"id":"1273","rhythm":"reel","key":"D"},{"id":"1274","rhythm":"reel","key":"G"},{"id":"1275","rhythm":"reel","key":"G"},{"id":"1276","rhythm":"reel","key":"Am"},{"id":"1277","rhythm":"reel","key":"D"},{"id":"1278","rhythm":"reel","key":"G"},{"id":"1279","rhythm":"reel","key":"G"},{"id":"1280","rhythm":"reel","key":"A"},{"id":"1281","rhythm":"reel","key":"Am"},{"id":"1282","rhythm":"reel","key":"Am"},{"id":"1283","rhythm":"reel","key":"A"},{"id":"1284","rhythm":"reel","key":"Bm"},{"id":"1285","rhythm":"reel","key":"Am"},{"id":"1286","rhythm":"reel","key":"D"},{"id":"1287","rhythm":"reel","key":"D"},{"id":"1288","rhythm":"reel","key":"A"},{"id":"1289","rhythm":"reel","key":"A"},{"id":"1290","rhythm":"reel","key":"Ador"},{"id":"1291","rhythm":"reel","key":"G"},{"id":"1292","rhythm":"reel","key":"D"},{"id":"1293","rhythm":"reel","key":"D"},{"id":"1294","rhythm":"reel","key":"D"},{"id":"1295","rhythm":"reel","key":"G"},{"id":"1296","rhythm":"reel","key":"G"},{"id":"1297","rhythm":"reel","key":"D"},{"id":"1298","rhythm":"reel","key":"Em"},{"id":"1299","rhythm":"reel","key":"D"},{"id":"1300","rhythm":"reel","key":"G"},{"id":"1301","rhythm":"reel","key":"G"},{"id":"1302","rhythm":"reel","key":"D"},{"id":"1303","rhythm":"reel","key":"D"},{"id":"1304","rhythm":"reel","key":"Bm"},{"id":"1305","rhythm":"reel","key":"D"},{"id":"1306","rhythm":"reel","key":"G"},{"id":"1307","rhythm":"reel","key":"D"},{"id":"1308","rhythm":"reel","key":"G"},{"id":"1309","rhythm":"reel","key":"D"},{"id":"1310","rhythm":"reel","key":"G"},{"id":"1311","rhythm":"reel","key":"G"},{"id":"1312","rhythm":"reel","key":"D"},{"id":"1313","rhythm":"reel","key":"G"},{"id":"1314","rhythm":"reel","key":"A"},{"id":"1315","rhythm":"reel","key":"D"},{"id":"1316","rhythm":"reel","key":"Em"},{"id":"1317","rhythm":"reel","key":"Em"},{"id":"1318","rhythm":"reel","key":"A"},{"id":"1319","rhythm":"reel","key":"A"},{"id":"1320","rhythm":"reel","key":"G"},{"id":"1321","rhythm":"reel","key":"A"},{"id":"1322","rhythm":"reel","key":"D"},{"id":"1323","rhythm":"reel","key":"C"},{"id":"1324","rhythm":"reel","key":"Em"},{"id":"1325","rhythm":"reel","key":"A"},{"id":"1326","rhythm":"reel","key":"Amix"},{"id":"1327","rhythm":"reel","key":"D"},{"id":"1328","rhythm":"reel","key":"Dm"},{"id":"1329","rhythm":"reel","key":"D"},{"id":"1330","rhythm":"reel","key":"G"},{"id":"1331","rhythm":"reel","key":"D"},{"id":"1332","rhythm":"reel","key":"Ador"},{"id":"1333","rhythm":"reel","key":"D"},{"id":"1334","rhythm":"reel","key":"C"},{"id":"1335","rhythm":"reel","key":"D"},{"id":"1336","rhythm":"reel","key":"G"},{"id":"1337","rhythm":"reel","key":"Gm"},{"id":"1338","rhythm":"reel","key":"G"},{"id":"1339","rhythm":"reel","key":"G"},{"id":"1340","rhythm":"reel","key":"Em"},{"id":"1341","rhythm":"reel","key":"C"},{"id":"1342","rhythm":"reel","key":"D"},{"id":"1343","rhythm":"reel","key":"A"},{"id":"1344","rhythm":"reel","key":"C"},{"id":"1345","rhythm":"reel","key":"Am"},{"id":"1346","rhythm":"reel","key":"A"},{"id":"1347","rhythm":"reel","key":"D"},{"id":"1348","rhythm":"reel","key":"D"},{"id":"1349","rhythm":"reel","key":"Em"},{"id":"1350","rhythm":"reel","key":"G"},{"id":"1351","rhythm":"reel","key":"A"},{"id":"1352","rhythm":"reel","key":"G"},{"id":"1353","rhythm":"reel","key":"D"},{"id":"1354","rhythm":"reel","key":"D"},{"id":"1355","rhythm":"reel","key":"D"},{"id":"1356","rhythm":"reel","key":"C"},{"id":"1357","rhythm":"reel","key":"G"},{"id":"1358","rhythm":"reel","key":"G"},{"id":"1359","rhythm":"reel","key":"G"},{"id":"1360","rhythm":"reel","key":"Em"},{"id":"1361","rhythm":"reel","key":"A"},{"id":"1362","rhythm":"reel","key":"D"},{"id":"1363","rhythm":"reel","key":"Am"},{"id":"1364","rhythm":"reel","key":"D"},{"id":"1365","rhythm":"reel","key":"D"},{"id":"1366","rhythm":"reel","key":"D"},{"id":"1367","rhythm":"reel","key":"G"},{"id":"1368","rhythm":"reel","key":"G"},{"id":"1369","rhythm":"reel","key":"D"},{"id":"1370","rhythm":"reel","key":"A"},{"id":"1371","rhythm":"reel","key":"A"},{"id":"1372","rhythm":"reel","key":"D"},{"id":"1373","rhythm":"reel","key":"A"},{"id":"1374","rhythm":"reel","key":"D"},{"id":"1375","rhythm":"reel","key":"Gm"},{"id":"1376","key":"Bphr"},{"id":"1377","key":"A"},{"id":"1378","key":"G"},{"id":"1379","key":"D"},{"id":"1380","key":"A"},{"id":"1381","key":"A"},{"id":"1382","key":"D"},{"id":"1383","key":"D"},{"id":"1384","key":"G"},{"id":"1385","key":"G"},{"id":"1386","key":"D"},{"id":"1387","key":"G"},{"id":"1388","key":"Am"},{"id":"1389","key":"D"},{"id":"1390","key":"D"},{"id":"1391","key":"D"},{"id":"1392","key":"G"},{"id":"1393","key":"G"},{"id":"1394","key":"G"},{"id":"1395","key":"A"},{"id":"1396","key":"D"},{"id":"1397","key":"A"},{"id":"1398","key":"Em"},{"id":"1399","key":"Em"},{"id":"1400","key":"G"},{"id":"1401","key":"D"},{"id":"1402","key":"Am"},{"id":"1403","key":"Em"},{"id":"1404","key":"D"},{"id":"1405","key":"D"},{"id":"1406","key":"Amix"},{"id":"1407","key":"Em"},{"id":"1408","key":"G"},{"id":"1409","key":"D"},{"id":"1410","key":"D"},{"id":"1411","key":"D"},{"id":"1412","key":"G"},{"id":"1413","key":"D"},{"id":"1414","key":"Em"},{"id":"1415","key":"G"},{"id":"1416","key":"G"},{"id":"1417","key":"G"},{"id":"1418","key":"G"},{"id":"1419","key":"A"},{"id":"1420","key":"D"},{"id":"1421","key":"Am"},{"id":"1422","key":"A"},{"id":"1423","key":"Am"},{"id":"1424","key":"Edor"},{"id":"1425","key":"Em"},{"id":"1426","key":"D"},{"id":"1427","key":"Em"},{"id":"1428","key":"G"},{"id":"1429","key":"A"},{"id":"1430","key":"Glyd"},{"id":"1431","key":"D"},{"id":"1432","key":"G"},{"id":"1433","key":"D"},{"id":"1434","key":"D"},{"id":"1435","key":"G"},{"id":"1436","key":"G"},{"id":"1437","key":"G"},{"id":"1438","key":"A"},{"id":"1439","key":"A"},{"id":"1440","key":"G"},{"id":"1441","key":"C"},{"id":"1442","key":"G"},{"id":"1443","key":"D"},{"id":"1444","key":"Bm"},{"id":"1445","key":"D"},{"id":"1446","key":"D"},{"id":"1447","key":"A"},{"id":"1448","key":"G"},{"id":"1449","key":"Em"},{"id":"1450","key":"G"},{"id":"1451","key":"D"},{"id":"1452","key":"G"},{"id":"1453","key":"C"},{"id":"1454","key":"D"},{"id":"1455","key":"D"},{"id":"1456","key":"D"},{"id":"1457","key":"G"},{"id":"1458","key":"G"},{"id":"1459","key":"C"},{"id":"1460","key":"G"},{"id":"1461","key":"G"},{"id":"1462","key":"G"},{"id":"1463","key":"C"},{"id":"1464","key":"D"},{"id":"1465","key":"D"},{"id":"1466","key":"C"},{"id":"1467","key":"A"},{"id":"1468","key":"G"},{"id":"1469","key":"A"},{"id":"1470","key":"Am"},{"id":"1471","key":"G"},{"id":"1472","key":"Dmix"},{"id":"1473","key":"G"},{"id":"1474","key":"Gm"},{"id":"1475","key":"G"},{"id":"1476","rhythm":"reel","key":"D"},{"id":"1477","rhythm":"reel","key":"G"},{"id":"1478","rhythm":"reel","key":"D"},{"id":"1479","rhythm":"reel","key":"D"},{"id":"1480","key":"D"},{"id":"1481","rhythm":"reel","key":"A"},{"id":"1482","rhythm":"reel","key":"G"},{"id":"1483","rhythm":"reel","key":"D"},{"id":"1484","rhythm":"reel","key":"G"},{"id":"1485","rhythm":"reel","key":"Am"},{"id":"1486","rhythm":"reel","key":"G"},{"id":"1487","rhythm":"reel","key":"D"},{"id":"1488","rhythm":"reel","key":"G"},{"id":"1489","rhythm":"reel","key":"D"},{"id":"1490","rhythm":"reel","key":"D"},{"id":"1491","rhythm":"reel","key":"D"},{"id":"1492","rhythm":"reel","key":"G"},{"id":"1493","rhythm":"reel","key":"D"},{"id":"1494","rhythm":"reel","key":"A"},{"id":"1495","rhythm":"reel","key":"G"},{"id":"1496","rhythm":"reel","key":"G"},{"id":"1497","rhythm":"reel","key":"A"},{"id":"1498","rhythm":"reel","key":"D"},{"id":"1499","rhythm":"reel","key":"D"},{"id":"1500","rhythm":"reel","key":"A"},{"id":"1501","rhythm":"reel","key":"D"},{"id":"1502","rhythm":"reel","key":"D"},{"id":"1503","rhythm":"reel","key":"A"},{"id":"1504","rhythm":"reel","key":"Am"},{"id":"1505","rhythm":"reel","key":"Em"},{"id":"1506","rhythm":"reel","key":"G"},{"id":"1507","rhythm":"reel","key":"D"},{"id":"1508","rhythm":"reel","key":"C"},{"id":"1509","rhythm":"reel","key":"D"},{"id":"1510","rhythm":"reel","key":"Ador"},{"id":"1511","rhythm":"reel","key":"D"},{"id":"1512","rhythm":"reel","key":"D"},{"id":"1513","rhythm":"reel","key":"G"},{"id":"1514","rhythm":"reel","key":"F"},{"id":"1515","rhythm":"reel","key":"A"},{"id":"1516","rhythm":"reel","key":"G"},{"id":"1517","rhythm":"reel","key":"D"},{"id":"1518","rhythm":"reel","key":"D"},{"id":"1519","rhythm":"reel","key":"Em"},{"id":"1520","rhythm":"reel","key":"G"},{"id":"1521","rhythm":"reel","key":"C"},{"id":"1522","rhythm":"reel","key":"Em"},{"id":"1523","rhythm":"reel","key":"G"},{"id":"1524","rhythm":"reel","key":"D"},{"id":"1525","rhythm":"reel","key":"D"},{"id":"1526","rhythm":"reel","key":"D"},{"id":"1527","rhythm":"reel","key":"D"},{"id":"1528","rhythm":"reel","key":"D"},{"id":"1529","rhythm":"reel","key":"D"},{"id":"1530","rhythm":"reel","key":"D"},{"id":"1531","rhythm":"reel","key":"D"},{"id":"1532","rhythm":"reel","key":"G"},{"id":"1533","rhythm":"reel","key":"D"},{"id":"1534","rhythm":"reel","key":"D"},{"id":"1535","rhythm":"reel","key":"D"},{"id":"1536","rhythm":"reel","key":"G"},{"id":"1537","rhythm":"reel","key":"A"},{"id":"1538","rhythm":"reel","key":"A"},{"id":"1539","rhythm":"reel","key":"Am"},{"id":"1540","rhythm":"reel","key":"G"},{"id":"1541","rhythm":"reel","key":"G"},{"id":"1542","rhythm":"reel","key":"Ddor"},{"id":"1543","rhythm":"reel","key":"D"},{"id":"1544","rhythm":"reel","key":"G"},{"id":"1545","rhythm":"reel","key":"G"},{"id":"1546","rhythm":"reel","key":"G"},{"id":"1547","rhythm":"reel","key":"G"},{"id":"1548","rhythm":"reel","key":"D"},{"id":"1549","rhythm":"reel","key":"A"},{"id":"1550","rhythm":"reel","key":"G"},{"id":"1551","rhythm":"reel","key":"D"},{"id":"1552","rhythm":"reel","key":"C"},{"id":"1553","rhythm":"reel","key":"Dmix"},{"id":"1554","rhythm":"reel","key":"G"},{"id":"1555","rhythm":"reel","key":"G"},{"id":"1556","rhythm":"hornpipe","key":"D"},{"id":"1557","rhythm":"hornpipe","key":"G"},{"id":"1558","rhythm":"hornpipe","key":"G"},{"id":"1559","rhythm":"hornpipe","key":"D"},{"id":"1560","rhythm":"hornpipe","key":"G"},{"id":"1561","rhythm":"hornpipe","key":"D"},{"id":"1562","rhythm":"hornpipe","key":"G"},{"id":"1563","rhythm":"hornpipe","key":"G"},{"id":"1564","rhythm":"hornpipe","key":"A"},{"id":"1565","rhythm":"hornpipe","key":"D"},{"id":"1566","rhythm":"hornpipe","key":"G"},{"id":"1567","rhythm":"hornpipe","key":"G"},{"id":"1568","rhythm":"hornpipe","key":"G"},{"id":"1569","rhythm":"hornpipe","key":"A"},{"id":"1570","key":"D"},{"id":"1571","key":"G"},{"id":"1572","key":"G"},{"id":"1573","key":"G"},{"id":"1574","key":"G"},{"id":"1575","key":"D"},{"id":"1576","key":"D"},{"id":"1577","rhythm":"hornpipe","key":"D"},{"id":"1578","rhythm":"hornpipe","key":"D"},{"id":"1579","rhythm":"hornpipe","key":"D"},{"id":"1580","rhythm":"hornpipe","key":"D"},{"id":"1581","rhythm":"hornpipe","key":"D"},{"id":"1582","rhythm":"hornpipe","key":"D"},{"id":"1583","rhythm":"hornpipe","key":"B"},{"id":"1584","rhythm":"hornpipe","key":"G"},{"id":"1585","rhythm":"hornpipe","key":"A"},{"id":"1586","rhythm":"hornpipe","key":"G"},{"id":"1587","rhythm":"hornpipe","key":"G"},{"id":"1588","rhythm":"hornpipe","key":"G"},{"id":"1589","rhythm":"hornpipe","key":"G"},{"id":"1590","rhythm":"hornpipe","key":"A"},{"id":"1591","rhythm":"hornpipe","key":"A"},{"id":"1592","rhythm":"hornpipe","key":"D"},{"id":"1593","rhythm":"hornpipe","key":"G"},{"id":"1594","rhythm":"hornpipe","key":"D"},{"id":"1595","rhythm":"hornpipe","key":"G"},{"id":"1596","rhythm":"hornpipe","key":"D"},{"id":"1597","rhythm":"hornpipe","key":"G"},{"id":"1598","rhythm":"hornpipe","key":"G"},{"id":"1599","rhythm":"hornpipe","key":"G"},{"id":"1600","rhythm":"hornpipe","key":"G"},{"id":"1601","rhythm":"hornpipe","key":"A"},{"id":"1602","rhythm":"hornpipe","key":"D"},{"id":"1603","rhythm":"hornpipe","key":"D"},{"id":"1604","rhythm":"hornpipe","key":"G"},{"id":"1605","rhythm":"hornpipe","key":"D"},{"id":"1606","rhythm":"hornpipe","key":"G"},{"id":"1607","rhythm":"hornpipe","key":"D"},{"id":"1608","rhythm":"hornpipe","key":"G"},{"id":"1609","rhythm":"hornpipe","key":"G"},{"id":"1610","rhythm":"hornpipe","key":"D"},{"id":"1611","rhythm":"hornpipe","key":"G"},{"id":"1612","rhythm":"hornpipe","key":"Fmix"},{"id":"1613","rhythm":"hornpipe","key":"D"},{"id":"1614","rhythm":"hornpipe","key":"A"},{"id":"1615","rhythm":"hornpipe","key":"A"},{"id":"1616","rhythm":"hornpipe","key":"A"},{"id":"1617","rhythm":"hornpipe","key":"G"},{"id":"1618","rhythm":"hornpipe","key":"Gm"},{"id":"1619","rhythm":"hornpipe","key":"Gm"},{"id":"1620","rhythm":"hornpipe","key":"G"},{"id":"1621","rhythm":"hornpipe","key":"A"},{"id":"1622","rhythm":"hornpipe","key":"A"},{"id":"1623","rhythm":"hornpipe","key":"D"},{"id":"1624","rhythm":"hornpipe","key":"G"},{"id":"1625","key":"D"},{"id":"1626","key":"G"},{"id":"1627","key":"G"},{"id":"1628","key":"G"},{"id":"1629","key":"G"},{"id":"1630","key":"G"},{"id":"1631","key":"D"},{"id":"1632","key":"G"},{"id":"1633","key":"G"},{"id":"1634","key":"A"},{"id":"1635","key":"D"},{"id":"1636","key":"A"},{"id":"1637","key":"D"},{"id":"1638","key":"D"},{"id":"1639","key":"A"},{"id":"1640","key":"D"},{"id":"1641","key":"G"},{"id":"1642","key":"D"},{"id":"1643","key":"D"},{"id":"1644","key":"G"},{"id":"1645","key":"G"},{"id":"1647","key":"G"},{"id":"1648","key":"G"},{"id":"1649","key":"D"},{"id":"1650","key":"G"},{"id":"1651","key":"G"},{"id":"1652","key":"D"},{"id":"1653","key":"D"},{"id":"1654","key":"D"},{"id":"1655","key":"G"},{"id":"1656","key":"D"},{"id":"1657","key":"G"},{"id":"1658","key":"G"},{"id":"1659","key":"B"},{"id":"1660","key":"G"},{"id":"1661","key":"D"},{"id":"1662","key":"G"},{"id":"1663","key":"D"},{"id":"1664","key":"A"},{"id":"1665","key":"G"},{"id":"1666","key":"G"},{"id":"1667","key":"A"},{"id":"1668","key":"G"},{"id":"1669","key":"D"},{"id":"1670","key":"A"},{"id":"1671","key":"D"},{"id":"1672","key":"G"},{"id":"1673","key":"D"},{"id":"1674","key":"D"},{"id":"1675","key":"A"},{"id":"1676","key":"A"},{"id":"1677","key":"G"},{"id":"1678","key":"G"},{"id":"1679","key":"G"},{"id":"1680","key":"G"},{"id":"1681","key":"G"},{"id":"1682","key":"G"},{"id":"1683","key":"D"},{"id":"1684","key":"G"},{"id":"1685","key":"G"},{"id":"1686","key":"G"},{"id":"1687","key":"G"},{"id":"1688","key":"A"},{"id":"1689","key":"G"},{"id":"1690","key":"G"},{"id":"1691","key":"G"},{"id":"1692","key":"D"},{"id":"1693","key":"D"},{"id":"1694","key":"G"},{"id":"1695","key":"Am"},{"id":"1696","key":"G"},{"id":"1697","key":"G"},{"id":"1698","key":"D"},{"id":"1699","key":"G"},{"id":"1700","key":"D"},{"id":"1701","rhythm":"hornpipe","key":"G"},{"id":"1702","rhythm":"hornpipe","key":"D"},{"id":"1703","rhythm":"hornpipe","key":"G"},{"id":"1704","rhythm":"hornpipe","key":"D"},{"id":"1705","rhythm":"hornpipe","key":"A"},{"id":"1706","rhythm":"hornpipe","key":"G"},{"id":"1707","rhythm":"hornpipe","key":"G"},{"id":"1708","rhythm":"hornpipe","key":"A"},{"id":"1709","rhythm":"hornpipe","key":"G"},{"id":"1710","rhythm":"hornpipe","key":"A"},{"id":"1711","rhythm":"hornpipe","key":"A"},{"id":"1712","rhythm":"hornpipe","key":"G"},{"id":"1713","rhythm":"hornpipe","key":"G"},{"id":"1714","rhythm":"hornpipe","key":"D"},{"id":"1715","rhythm":"hornpipe","key":"D"},{"id":"1716","rhythm":"hornpipe","key":"D"},{"id":"1717","rhythm":"hornpipe","key":"G"},{"id":"1718","rhythm":"hornpipe","key":"G"},{"id":"1719","rhythm":"hornpipe","key":"A"},{"id":"1720","rhythm":"hornpipe","key":"D"},{"id":"1721","rhythm":"hornpipe","key":"B"},{"id":"1722","rhythm":"hornpipe","key":"A"},{"id":"1723","rhythm":"hornpipe","key":"A"},{"id":"1724","rhythm":"hornpipe","key":"G"},{"id":"1725","rhythm":"hornpipe","key":"G"},{"id":"1726","rhythm":"hornpipe","key":"G"},{"id":"1727","rhythm":"hornpipe","key":"A"},{"id":"1728","rhythm":"hornpipe","key":"G"},{"id":"1729","rhythm":"hornpipe","key":"D"},{"id":"1730","rhythm":"hornpipe","key":"G"},{"id":"1731","rhythm":"hornpipe","key":"G"},{"id":"1732","rhythm":"hornpipe","key":"G"},{"id":"1733","rhythm":"hornpipe","key":"Em"},{"id":"1734","rhythm":"hornpipe","key":"G"},{"id":"1735","rhythm":"hornpipe","key":"B"},{"id":"1736","rhythm":"hornpipe","key":"D"},{"id":"1737","rhythm":"hornpipe","key":"D"},{"id":"1738","rhythm":"hornpipe","key":"D"},{"id":"1739","rhythm":"hornpipe","key":"G"},{"id":"1740","rhythm":"hornpipe","key":"G"},{"id":"1741","rhythm":"hornpipe","key":"A"},{"id":"1742","rhythm":"hornpipe","key":"D"},{"id":"1743","rhythm":"hornpipe","key":"G"},{"id":"1744","rhythm":"hornpipe","key":"D"},{"id":"1745","rhythm":"hornpipe","key":"G"},{"id":"1746","rhythm":"hornpipe","key":"G"},{"id":"1747","rhythm":"hornpipe","key":"B"},{"id":"1748","rhythm":"hornpipe","key":"A"},{"id":"1749","rhythm":"hornpipe","key":"G"},{"id":"1750","rhythm":"hornpipe","key":"A"},{"id":"1751","rhythm":"hornpipe","key":"G"},{"id":"1752","rhythm":"hornpipe","key":"G"},{"id":"1753","rhythm":"hornpipe","key":"D"},{"id":"1754","rhythm":"hornpipe","key":"A"},{"id":"1755","rhythm":"hornpipe","key":"A"},{"id":"1756","rhythm":"hornpipe","key":"A"},{"id":"1757","rhythm":"hornpipe","key":"D"},{"id":"1758","rhythm":"hornpipe","key":"D"},{"id":"1759","rhythm":"hornpipe","key":"Gm"},{"id":"1760","rhythm":"hornpipe","key":"G"},{"id":"1761","rhythm":"hornpipe","key":"F"},{"id":"1762","rhythm":"hornpipe","key":"G"},{"id":"1763","rhythm":"hornpipe","key":"D"},{"id":"1764","rhythm":"hornpipe","key":"G"},{"id":"1765","rhythm":"hornpipe","key":"G"},{"id":"1766","rhythm":"hornpipe","key":"A"},{"id":"1767","rhythm":"hornpipe","key":"F"},{"id":"1768","rhythm":"hornpipe","key":"G"},{"id":"1769","rhythm":"hornpipe","key":"G"},{"id":"1770","rhythm":"hornpipe","key":"D"},{"id":"1771","rhythm":"hornpipe","key":"G"},{"id":"1772","rhythm":"hornpipe","key":"D"},{"id":"1773","rhythm":"hornpipe","key":"D"},{"id":"1774","rhythm":"hornpipe","key":"D"},{"id":"1775","rhythm":"hornpipe","key":"G"},{"id":"1776","rhythm":"hornpipe","key":"G"},{"id":"1777","rhythm":"hornpipe","key":"A"},{"id":"1778","rhythm":"hornpipe","key":"D"},{"id":"1779","rhythm":"hornpipe","key":"G"},{"id":"1780","rhythm":"hornpipe","key":"G"},{"id":"1781","key":"G"},{"id":"1782","rhythm":"hornpipe","key":"A"},{"id":"1783","key":"A"},{"id":"1784","key":"A"},{"id":"1785","key":"A"},{"id":"1786","key":"G"},{"id":"1787","key":"G"},{"id":"1788","key":"A"},{"id":"1789","key":"Em"},{"id":"1790","key":"D"},{"id":"1791","key":"D"},{"id":"1792","key":"D"},{"id":"1793","key":"D"},{"id":"1794","key":"G"},{"id":"1795","key":"D"},{"id":"1796","key":"G"},{"id":"1797","key":"D"},{"id":"1798","key":"D"},{"id":"1799","key":"G"},{"id":"1800","key":"G"},{"id":"1801","key":"Am"},{"id":"1802","key":"D"},{"id":"1803","key":"Bphr"},{"id":"1804","key":"G"},{"id":"1805","key":"D"},{"id":"1806","key":"G"},{"id":"1807","key":"Dm"},{"id":"1808","key":"Gm"},{"id":"1809","key":"D"},{"id":"1810","key":"D"},{"id":"1811","key":"G"},{"id":"1812","key":"A"},{"id":"1813","key":"G"},{"id":"1814","key":"G"},{"id":"1815","key":"A"},{"id":"1816","key":"Em"},{"id":"1817","key":"G"},{"id":"1818","key":"G"},{"id":"1819","key":"G"},{"id":"1820","key":"D"},{"id":"1821","key":"D"},{"id":"1822","key":"G"},{"id":"1823","key":"G"},{"id":"1824","key":"Am"},{"id":"1825","key":"G"},{"id":"1826","key":"G"},{"id":"1827","key":"G"},{"id":"1828","key":"G"},{"id":"1829","key":"D"},{"id":"1830","key":"G"},{"id":"1831","key":"G"},{"id":"1832","key":"D"},{"id":"1833","key":"D"},{"id":"1834","key":"G"},{"id":"1835","key":"G"},{"id":"1836","key":"D"},{"id":"1837","key":"A"},{"id":"1838","key":"F"},{"id":"1839","key":"D"},{"id":"1840","key":"D"},{"id":"1841","key":"D"},{"id":"1842","key":"Em"},{"id":"1843","key":"D"},{"id":"1844","key":"G"},{"id":"1845","key":"G"},{"id":"1846","key":"G"},{"id":"1847","key":"G"},{"id":"1848","key":"G"},{"id":"1849","key":"G"},{"id":"1850","key":"G"}]},{"id":"oswald2","uri":"Oswald2.abc","name":"Oswald Vol. 2","description":"James Oswald: The Caledonian Pocket Companion, Volume 2 (1771)","storage":"assets","tunes":[{"id":"20000","key":""},{"id":"20011","key":"D"},{"id":"20012","key":"D"},{"id":"20021","key":"G"},{"id":"20031","key":"C"},{"id":"20041","key":"Ador"},{"id":"20051","key":"Em"},{"id":"20052","key":"D"},{"id":"20061","key":"D"},{"id":"20062","key":"C"},{"id":"20071","key":"G"},{"id":"20081","key":"G"},{"id":"20082","key":"F"},{"id":"20091","key":"Amix"},{"id":"20101","key":"G"},{"id":"20102","key":"G"},{"id":"20111","key":"Gm"},{"id":"20121","key":"A"},{"id":"20131","key":"G"},{"id":"20132","key":"F"},{"id":"20141","key":"G"},{"id":"20151","key":"G"},{"id":"20161","key":"G"},{"id":"20171","key":"G"},{"id":"20181","key":"G"},{"id":"20201","key":"G"},{"id":"20211","key":"G"},{"id":"20212","key":"Am"},{"id":"20221","key":"G"},{"id":"20231","key":"Dmix"},{"id":"20232","key":"Gmix"},{"id":"20241","key":"D"},{"id":"20242","key":"A"},{"id":"20251","key":"Dmix"},{"id":"20252","key":"G"},{"id":"20261","key":"G"},{"id":"20271","key":"D"},{"id":"20281","key":"Em"},{"id":"20282","key":"D"},{"id":"20301","key":"D"},{"id":"20302","key":"Dm"},{"id":"20311","key":"Ador"},{"id":"20322","key":"D"},{"id":"20322","key":"D"},{"id":"20331","key":"D"},{"id":"20351","key":"Em"},{"id":"20361","key":"D"},{"id":"20362","key":"G"},{"id":"20371","key":"D"},{"id":"20372","key":"G"},{"id":"20381","key":"Gm"},{"id":"20382","key":"G"},{"id":"20391","key":"D"},{"id":"20392","key":"D"},{"id":"20401","key":"G"},{"id":"20402","key":"Am"},{"id":"20411","key":"A"},{"id":"20412","key":"G"},{"id":"20413","key":"G"},{"id":"20421","key":"E"},{"id":"20431","key":"B"},{"id":"20441","key":"G"},{"id":"20442","key":"G"},{"id":"20451","key":"Gm"},{"id":"20452","key":"D"},{"id":"20461","key":"Am"},{"id":"20462","key":"D"},{"id":"20471","key":"A"},{"id":"20481","key":"F"},{"id":"20482","key":"Am"},{"id":"20491","key":"G"},{"id":"20492","key":"G"},{"id":"20501","key":"F"},{"id":"20502","key":"G"},{"id":"20511","key":"Dmix"},{"id":"20512","key":"A"},{"id":"20521","key":"D"},{"id":"20522","key":"D"},{"id":"20531","key":"Gdor"},{"id":"20532","key":"G"},{"id":"20541","key":"A"},{"id":"20551","key":"G"},{"id":"20552","key":"Amix"},{"id":"20561","key":"G"},{"id":"20571","key":"D"},{"id":"20581","key":"G"},{"id":"20591","key":"F"},{"id":"20601","key":"Gmix"},{"id":"20602","key":"Am"},{"id":"20611","key":"G"},{"id":"20612","key":"Em"},{"id":"20611","key":"G"},{"id":"20621","key":"D"},{"id":"20631","key":"D"},{"id":"20641","key":"G"},{"id":"20651","key":"D"},{"id":"20652","key":"Am"},{"id":"20661","key":"Gm"},{"id":"20662","key":"G"},{"id":"20671","key":"D"},{"id":"20680","key":""},{"id":"20681","key":"Dmix"},{"id":"20682","key":"Dmix"},{"id":"20683","key":"Dmix"},{"id":"20684","key":"Dmix"},{"id":"20685","key":"Dmix"},{"id":"20691","key":"Dmix"},{"id":"20692","key":"Dmix"},{"id":"20693","key":"Dmix"},{"id":"20701","key":"A"},{"id":"20702","key":"G"},{"id":"20703","key":"F"},{"id":"20711","key":"D"},{"id":"20712","key":"Amix"},{"id":"20721","key":"C"},{"id":"20722","key":"G"},{"id":"20731","key":"Gm"},{"id":"20741","key":"G"},{"id":"20742","key":"D"},{"id":"20743","key":"F"},{"id":"20751","key":"B"},{"id":"20752","key":"G"},{"id":"20761","key":"Em"},{"id":"20762","key":"Gm"},{"id":"20763","key":"D"},{"id":"20771","key":"Am"},{"id":"20772","key":"D"},{"id":"20781","key":"G"},{"id":"20782","key":"D"},{"id":"20783","key":"G"},{"id":"20791","key":"B"},{"id":"20792","key":"D"},{"id":"20801","key":"D"},{"id":"20802","key":"D"},{"id":"20811","key":"G"},{"id":"20821","key":"Dmix"},{"id":"20822","key":"A"},{"id":"20832","key":"G"},{"id":"20832","key":"G"},{"id":"20841","key":"G"},{"id":"20842","key":"Dm"},{"id":"20851","key":"G"},{"id":"20852","key":"B"},{"id":"20861","key":"G"},{"id":"20862","key":"D"},{"id":"20863","key":"G"},{"id":"20871","key":"D"},{"id":"20872","key":"D"},{"id":"20881","key":"G"},{"id":"20882","key":"Em"},{"id":"20891","key":"Am"},{"id":"20892","key":"D"},{"id":"20901","key":"Edor"},{"id":"20902","key":"Edor"},{"id":"20911","key":"C"},{"id":"20912","key":"G"},{"id":"20913","key":"Em"},{"id":"20921","key":"G"},{"id":"20931","key":"D"},{"id":"20932","key":"D"},{"id":"20941","key":"D"},{"id":"20942","key":"D"},{"id":"20943","key":"G"},{"id":"20944","key":"G"},{"id":"20951","key":"Bm"},{"id":"20952","key":"G"},{"id":"20953","key":"G"},{"id":"20961","key":"G"},{"id":"20962","key":"G"},{"id":"20972","key":"G"},{"id":"20981","key":"Gm"},{"id":"20982","key":"G"},{"id":"20991","key":"G"},{"id":"20992","key":"Gm"},{"id":"20993","key":"G"},{"id":"21001","key":"G"},{"id":"21002","key":"G"},{"id":"21003","key":"D"},{"id":"21011","key":"G"},{"id":"21012","key":"D"},{"id":"21021","key":"Gm"},{"id":"21022","key":"G"},{"id":"21023","key":"G"},{"id":"21031","key":"C"},{"id":"21032","key":"D"},{"id":"21033","key":"D"},{"id":"21041","key":"none"},{"id":"21061","key":"none"},{"id":"21071","key":"none"},{"id":"21080","key":"A"},{"id":"21081","key":"none"},{"id":"21090","key":"A"},{"id":"21091","key":"none"},{"id":"21100","key":"A"},{"id":"21101","key":"none"},{"id":"21111","key":"D"},{"id":"21112","key":"G"},{"id":"21121","key":"none"},{"id":"21131","key":"D"},{"id":"21141","key":"G"},{"id":"21142","key":"D"},{"id":"21151","key":"Em"},{"id":"21152","key":"G"},{"id":"21161","key":"G"},{"id":"21162","key":"Em"},{"id":"21171","key":"G"},{"id":"21172","key":"D"},{"id":"21181","key":"A"},{"id":"21182","key":"D"},{"id":"21191","key":"G"},{"id":"21192","key":"G"},{"id":"21201","key":"D"},{"id":"21202","key":"G"},{"id":"21211","key":"D"},{"id":"21221","key":"Em"},{"id":"21222","key":"D"},{"id":"21231","key":"Amix"},{"id":"21232","key":"G"},{"id":"21241","key":"Ador"},{"id":"21251","key":"Em"},{"id":"21261","key":"D"},{"id":"21262","key":"Gm"},{"id":"21263","key":"A"},{"id":"21271","key":"D"},{"id":"21272","key":"D"},{"id":"21281","key":"G"},{"id":"21282","key":"Amix"},{"id":"21291","key":"Gm"},{"id":"21292","key":"G"},{"id":"21301","key":"D"},{"id":"21302","key":"Gm"},{"id":"21311","key":"A"},{"id":"21312","key":"G"},{"id":"21321","key":"G"},{"id":"21322","key":"G"},{"id":"21331","key":"D"},{"id":"21332","key":"F"},{"id":"21341","key":"G"},{"id":"21342","key":"Ador"},{"id":"21351","key":"G"},{"id":"21352","key":"G"},{"id":"21353","key":"G"},{"id":"21361","key":"D"},{"id":"21362","key":"D"},{"id":"21371","key":"D"},{"id":"21372","key":"D"},{"id":"21381","key":"Ador"},{"id":"21382","key":"G"},{"id":"21391","key":"Gm"},{"id":"21392","key":"Ador"},{"id":"21401","key":"Em"},{"id":"21402","key":"G"},{"id":"21403","key":"D"},{"id":"21411","key":"G"},{"id":"21412","key":"Am"},{"id":"21413","key":"Gmix"},{"id":"21421","key":"Dm"},{"id":"21422","key":"Ddor"},{"id":"21431","key":"Am"},{"id":"21432","key":"Gm"},{"id":"21451","key":"G"},{"id":"21451","key":"F"},{"id":"21452","key":"D"},{"id":"21461","key":"Gm"},{"id":"21462","key":"G"},{"id":"21463","key":"A"},{"id":"21471","key":"Dm"},{"id":"21472","key":"G"},{"id":"21481","key":"Am"},{"id":"21482","key":"D"},{"id":"21483","key":"D"},{"id":"21484","key":"B"},{"id":"21491","key":"A"},{"id":"21492","key":"D"},{"id":"21501","key":"G"},{"id":"21502","key":"A"},{"id":"21511","key":"D"},{"id":"21512","key":"A"},{"id":"21521","key":"Amix"},{"id":"21522","key":"Gm"},{"id":"21531","key":"G"},{"id":"21532","key":"A"},{"id":"21541","key":"Em"},{"id":"21542","key":"D"},{"id":"21551","key":"Ddor"},{"id":"21552","key":"G"},{"id":"21561","key":"Gm"},{"id":"21562","key":"D"},{"id":"21563","key":"Gm"},{"id":"21564","key":"G"},{"id":"21571","key":"G"},{"id":"21572","key":"A"},{"id":"21573","key":"A"},{"id":"21581","key":"C"},{"id":"21582","key":"G"},{"id":"21591","key":"Am"},{"id":"21592","key":"G"},{"id":"21601","key":"G"},{"id":"21602","key":"G"},{"id":"21611","key":"Gm"},{"id":"21621","key":"D"},{"id":"21621","key":"E"}]},{"id":"wandsbek","uri":"Wandsbek.abc","name":"Balfolk Wandsbek","description":"Tunes from the monthly Balfolk Session at Kulturschloss Wandsbek","storage":"assets","tunes":[{"id":"1","rhythm":"jig","key":"Am"},{"id":"2","rhythm":"waltz","key":"G"},{"id":"3","rhythm":"waltz","key":"Am"},{"id":"4","rhythm":"waltz","key":"Am"},{"id":"5","rhythm":"waltz","key":"Am"},{"id":"6","rhythm":"mazurka","key":"Am"},{"id":"7","rhythm":"bourree","key":"Gm"},{"id":"8","rhythm":"bourrée","key":"Gm"},{"id":"9","rhythm":"waltz","key":"Am"},{"id":"10","key":"Dm"},{"id":"11","rhythm":"branle","key":"Am"},{"id":"12","rhythm":"branle","key":"Am"},{"id":"13","rhythm":"branle","key":"Am"},{"id":"14","rhythm":"waltz","key":"Am"},{"id":"15","rhythm":"mazurka","key":"Dm"},{"id":"16","rhythm":"waltz","key":"Bm"},{"id":"17","rhythm":"waltz","key":"G"},{"id":"18","rhythm":"waltz","key":"Em"},{"id":"19","rhythm":"polka","key":"Gdor"},{"id":"20","rhythm":"waltz","key":"Ador"},{"id":"21","rhythm":"waltz","key":"Am"},{"id":"22","rhythm":"polka","key":"Ddor"},{"id":"23","rhythm":"mazurka","key":"Gm"},{"id":"24","rhythm":"gånglåt","key":"G"},{"id":"25","rhythm":"gånglåt","key":"D"},{"id":"26","rhythm":"waltz","key":"D"},{"id":"27","rhythm":"waltz","key":"G"},{"id":"28","rhythm":"polka","key":"G"},{"id":"29","rhythm":"mazurka","key":"C"},{"id":"30","rhythm":"waltz","key":"Am"},{"id":"31","key":"D"},{"id":"32","key":"C"},{"id":"33","rhythm":"waltz","key":"Am"},{"id":"34","rhythm":"polska","key":"Am"},{"id":"35","key":"G"},{"id":"36","rhythm":"mazurka","key":"Am"},{"id":"37","key":"Am"},{"id":"38","rhythm":"schottisch","key":"Cm"},{"id":"39","key":"G"},{"id":"40","rhythm":"waltz","key":"Am"},{"id":"41","rhythm":"waltz","key":"G"},{"id":"42","rhythm":"schottisch","key":"D"},{"id":"43","key":"Edor"},{"id":"44","rhythm":"waltz","key":"Am"},{"id":"45","key":"Am"},{"id":"46","key":"Am"},{"id":"47","key":"Em"},{"id":"48","key":"C"},{"id":"49","rhythm":"waltz","key":"Am"},{"id":"50","rhythm":"reel","key":"C"},{"id":"51","rhythm":"chapelloise","key":"Am"},{"id":"52","rhythm":"schottisch","key":"D"},{"id":"53","key":"Am"},{"id":"54","rhythm":"waltz","key":"C"}]}]} \ No newline at end of file +{"books":[{"id":"learner","uri":"LearnerSession.abc","name":"Learner Session","description":"All tunes from the Hamburg Learner Session","storage":"assets","tunes":[{"id":"1a","rhythm":"polka","key":"A"},{"id":"1b","rhythm":"polka","key":"D"},{"id":"1c","rhythm":"polka","key":"A"},{"id":"2","rhythm":"jig","key":"C"},{"id":"3a","rhythm":"jig","key":"Ador"},{"id":"3b","rhythm":"slip jig","key":"Bm"},{"id":"4","rhythm":"hornpipe","key":"Em"},{"id":"5","rhythm":"hornpipe","key":"Em"},{"id":"6a","rhythm":"jig","key":"Dmix"},{"id":"6b","rhythm":"jig","key":"D"},{"id":"6c","rhythm":"jig","key":"D"},{"id":"7","rhythm":"reel","key":"D"},{"id":"8","rhythm":"reel","key":"D"},{"id":"9","rhythm":"jig","key":"D"},{"id":"10","rhythm":"reel","key":"Ddor"},{"id":"12","rhythm":"slip jig","key":"Em"},{"id":"13","rhythm":"slip jig","key":"Edor"},{"id":"14","rhythm":"reel","key":"D"},{"id":"15","rhythm":"slip jig","key":"Edor"},{"id":"16","rhythm":"jig","key":"Ador"},{"id":"17","rhythm":"reel","key":"D"},{"id":"18","rhythm":"reel","key":"G"},{"id":"19","rhythm":"slide","key":"D"},{"id":"20","rhythm":"slide","key":"G"},{"id":"21","rhythm":"reel","key":"D"},{"id":"23","rhythm":"reel","key":"G"},{"id":"24","rhythm":"slide","key":"G"},{"id":"25","rhythm":"reel","key":"Edor"},{"id":"26","rhythm":"reel","key":"Em"},{"id":"27","rhythm":"jig","key":"G"},{"id":"28","rhythm":"reel","key":"Ador"},{"id":"29","rhythm":"reel","key":"D"},{"id":"30","rhythm":"jig","key":"Ador"},{"id":"31","rhythm":"jig","key":"Bm"},{"id":"32","rhythm":"hornpipe","key":"D"},{"id":"33","rhythm":"jig","key":"G"},{"id":"34","rhythm":"jig","key":"D"},{"id":"35a","rhythm":"polka","key":"Ador"},{"id":"35b","rhythm":"polka","key":"Ador"},{"id":"36","rhythm":"jig","key":"Dmix"},{"id":"37","rhythm":"jig","key":"G"},{"id":"38","rhythm":"reel","key":"D"},{"id":"39","rhythm":"reel","key":"D"},{"id":"40","rhythm":"reel","key":"D"},{"id":"41","rhythm":"reel","key":"D"},{"id":"42","rhythm":"jig","key":"D"},{"id":"43","rhythm":"reel","key":"Ador"},{"id":"44","rhythm":"reel","key":"D"},{"id":"45","rhythm":"reel","key":"Edor"},{"id":"46","rhythm":"reel","key":"D"},{"id":"47","rhythm":"polka","key":"D"},{"id":"48","rhythm":"reel","key":"Edor"},{"id":"49","rhythm":"reel","key":"D"},{"id":"50","rhythm":"jig","key":"G"},{"id":"51","rhythm":"reel","key":"Dmix"},{"id":"52","rhythm":"jig","key":"G"},{"id":"53","rhythm":"reel","key":"Bm"},{"id":"54","rhythm":"reel","key":"Bm"},{"id":"55","rhythm":"barndance","key":"D"},{"id":"56","rhythm":"hornpipe","key":"D"},{"id":"57","rhythm":"reel","key":"G"},{"id":"58","rhythm":"reel","key":"D"},{"id":"59","rhythm":"reel","key":"G"},{"id":"60","rhythm":"jig","key":"G"},{"id":"61","rhythm":"reel","key":"D"},{"id":"62","rhythm":"jig","key":"D"},{"id":"63","rhythm":"reel","key":"G"},{"id":"64","rhythm":"reel","key":"D"},{"id":"65","rhythm":"jig","key":"G"},{"id":"66","rhythm":"jig","key":"Edor"},{"id":"67","rhythm":"jig","key":"G"},{"id":"68","rhythm":"jig","key":"G"},{"id":"69","rhythm":"jig","key":"D"},{"id":"70","rhythm":"jig","key":"G"},{"id":"71","rhythm":"reel","key":"Ador"},{"id":"72","rhythm":"reel","key":"Edor"},{"id":"73","rhythm":"reel","key":"D"},{"id":"74","rhythm":"jig","key":"D"},{"id":"75","rhythm":"jig","key":"Edor"},{"id":"76","rhythm":"reel","key":"Em"},{"id":"77","rhythm":"reel","key":"Em"},{"id":"78","rhythm":"jig","key":"Ador"},{"id":"79","rhythm":"reel","key":"Amix"},{"id":"80","rhythm":"reel","key":"D"},{"id":"81","rhythm":"reel","key":"Am"},{"id":"82","rhythm":"reel","key":"Amix"},{"id":"83","rhythm":"reel","key":"Ador"},{"id":"84","rhythm":"reel","key":"Bm"},{"id":"85","rhythm":"hornpipe","key":"G"},{"id":"86","rhythm":"hornpipe","key":"Edor"},{"id":"87","rhythm":"reel","key":"G"},{"id":"88","rhythm":"reel","key":"D"},{"id":"89","rhythm":"reel","key":"Amix"},{"id":"90","rhythm":"jig","key":"G"},{"id":"91","rhythm":"jig","key":"D"},{"id":"92","rhythm":"jig","key":"G"},{"id":"93","rhythm":"reel","key":"D"},{"id":"94","rhythm":"reel","key":"G"},{"id":"95","rhythm":"reel","key":"Dmix"},{"id":"96","rhythm":"hornpipe","key":"D"},{"id":"97","rhythm":"reel","key":"A"},{"id":"98","rhythm":"reel","key":"Em"},{"id":"99","rhythm":"reel","key":"G"},{"id":"100a","rhythm":"polka","key":"D"},{"id":"100b","rhythm":"polka","key":"G"},{"id":"100c","rhythm":"polka","key":"D"},{"id":"101","rhythm":"reel","key":"D"},{"id":"102","rhythm":"reel","key":"D"},{"id":"103","rhythm":"reel","key":"Bm"},{"id":"104","rhythm":"polka","key":"G"},{"id":"105","rhythm":"polka","key":"G"},{"id":"106","rhythm":"polka","key":"G"},{"id":"107","rhythm":"reel","key":"Ador"},{"id":"108","rhythm":"jig","key":"Ador"},{"id":"109","rhythm":"reel","key":"G"},{"id":"110","rhythm":"jig","key":"Dmix"},{"id":"111a","rhythm":"slide","key":"D"},{"id":"111b","rhythm":"slide","key":"Ador"},{"id":"112","rhythm":"jig","key":"Em"},{"id":"113","rhythm":"jig","key":"Am"},{"id":"114","rhythm":"reel","key":"G"},{"id":"115","rhythm":"reel","key":"D"},{"id":"116","rhythm":"slow reel","key":"Em"},{"id":"117","rhythm":"air","key":"Bm"},{"id":"118","rhythm":"hornpipe","key":"G"},{"id":"119","rhythm":"reel","key":"G"},{"id":"120","rhythm":"reel","key":"G"},{"id":"121","rhythm":"reel","key":"Ador"},{"id":"122a","rhythm":"jig","key":"D"},{"id":"122b","rhythm":"jig","key":"C"},{"id":"123","rhythm":"jig","key":"Ador"},{"id":"124","rhythm":"jig","key":"D"},{"id":"125","rhythm":"reel","key":"Edor"},{"id":"126","rhythm":"reel","key":"Em"},{"id":"127","rhythm":"reel","key":"G"},{"id":"128","rhythm":"waltz","key":"D"},{"id":"129","rhythm":"polka","key":"D"},{"id":"130","rhythm":"polka","key":"G"},{"id":"131","rhythm":"reel","key":"D"},{"id":"132","rhythm":"reel","key":"Ador"},{"id":"133","rhythm":"reel","key":"G"},{"id":"134","rhythm":"waltz","key":"Bm"},{"id":"135","rhythm":"slip jig","key":"Em"},{"id":"136","rhythm":"slip jig","key":"G"},{"id":"137","rhythm":"jig","key":"Dmix"},{"id":"138","rhythm":"reel","key":"Ador"},{"id":"139","rhythm":"reel","key":"D"},{"id":"140","rhythm":"reel","key":"G"},{"id":"141","rhythm":"reel","key":"D"},{"id":"142","rhythm":"jig","key":"A"},{"id":"143","rhythm":"jig","key":"G"},{"id":"144","rhythm":"jig","key":"Edor"},{"id":"145","rhythm":"jig","key":"G"},{"id":"146","rhythm":"polka","key":"Bm"},{"id":"147","rhythm":"polka","key":"A"},{"id":"148","rhythm":"waltz","key":"G"},{"id":"149","rhythm":"reel","key":"D"},{"id":"150","rhythm":"reel","key":"Edor"},{"id":"151","rhythm":"reel","key":"G"},{"id":"152","rhythm":"reel","key":"D"},{"id":"153","rhythm":"reel","key":"Ador"},{"id":"154","rhythm":"reel","key":"Dm"},{"id":"155","rhythm":"reel","key":"D"},{"id":"156","rhythm":"jig","key":"Ador"},{"id":"157","rhythm":"reel","key":"G"},{"id":"158","rhythm":"reel","key":"D"},{"id":"159","rhythm":"reel","key":"A"},{"id":"160","rhythm":"reel","key":"G"},{"id":"161","rhythm":"polka","key":"D"},{"id":"162","rhythm":"jig","key":"G"},{"id":"163","rhythm":"reel","key":"Em"},{"id":"164","rhythm":"jig","key":"Amix"},{"id":"165","rhythm":"reel","key":"Amix"},{"id":"166","rhythm":"reel","key":"G"},{"id":"167","rhythm":"reel","key":"D"},{"id":"168","rhythm":"slide","key":"D"},{"id":"169","rhythm":"reel","key":"G"},{"id":"170","rhythm":"reel","key":"Edor"},{"id":"171","rhythm":"reel","key":"G"},{"id":"172","rhythm":"slide","key":"Edor"},{"id":"173","rhythm":"reel","key":"C"},{"id":"174","rhythm":"slip jig","key":"D"},{"id":"175","rhythm":"slip jig","key":"G"},{"id":"176","rhythm":"slip jig","key":"Edor"},{"id":"177","rhythm":"reel","key":"Bm"},{"id":"178","rhythm":"reel","key":"Edor"},{"id":"179","rhythm":"jig","key":"D"},{"id":"180","rhythm":"slip jig","key":"G"},{"id":"181","rhythm":"polka","key":"Em"},{"id":"182","rhythm":"polka","key":"A"},{"id":"183","rhythm":"reel","key":"Edor"},{"id":"184","rhythm":"jig","key":"Am"},{"id":"185","rhythm":"jig","key":"G"},{"id":"186","rhythm":"reel","key":"G"},{"id":"187","rhythm":"jig","key":"A"},{"id":"187b","rhythm":"reel","key":"Am"},{"id":"188","rhythm":"reel","key":"Dmix"},{"id":"189","rhythm":"slide","key":"G"},{"id":"190","rhythm":"slide","key":"G"},{"id":"191","rhythm":"reel","key":"D"},{"id":"192","rhythm":"reel","key":"Dmix"},{"id":"193","rhythm":"reel","key":"Dmix"},{"id":"194","rhythm":"reel","key":"Em"},{"id":"195","rhythm":"reel","key":"D"},{"id":"196","rhythm":"reel","key":"D"},{"id":"196b","rhythm":"reel","key":"D"},{"id":"197","rhythm":"reel","key":"G"},{"id":"198","rhythm":"reel","key":"D"},{"id":"199","rhythm":"reel","key":"G"},{"id":"200","rhythm":"hornpipe","key":"Ador"},{"id":"201","rhythm":"hornpipe","key":"G"},{"id":"202","rhythm":"jig","key":"Dmix"},{"id":"203","rhythm":"reel","key":"D"},{"id":"204","rhythm":"reel","key":"G"},{"id":"205","rhythm":"jig","key":"D"},{"id":"206","rhythm":"jig","key":"Bm"},{"id":"207","rhythm":"jig","key":"G"},{"id":"208","rhythm":"jig","key":"D"},{"id":"209","rhythm":"reel","key":"D"},{"id":"210","rhythm":"reel","key":"Edor"},{"id":"211a","rhythm":"jig","key":"G"},{"id":"211b","rhythm":"jig","key":"A"},{"id":"212","rhythm":"jig","key":"Em"},{"id":"213","rhythm":"waltz","key":"Em"},{"id":"214","rhythm":"jig","key":"D"},{"id":"215","rhythm":"jig","key":"D"},{"id":"216","rhythm":"polka","key":"G"},{"id":"217a","rhythm":"reel","key":"G"},{"id":"217b","rhythm":"reel","key":"G"},{"id":"218a","rhythm":"polka","key":"G"},{"id":"218b","rhythm":"polka","key":"Ador"},{"id":"219","rhythm":"jig","key":"D"},{"id":"220","rhythm":"reel","key":"G"},{"id":"221","rhythm":"reel","key":"G"},{"id":"222","rhythm":"jig","key":"Bm"},{"id":"223","rhythm":"reel","key":"G"},{"id":"224","rhythm":"reel","key":"G"},{"id":"225","rhythm":"reel","key":"D"},{"id":"226","rhythm":"jig","key":"G"},{"id":"227","rhythm":"reel","key":"Em"},{"id":"228","rhythm":"jig","key":"D"},{"id":"229","rhythm":"reel","key":"A"},{"id":"230","rhythm":"reel","key":"Amix"},{"id":"231a","rhythm":"reel","key":"Bm"},{"id":"231b","rhythm":"reel","key":"Em"},{"id":"232","rhythm":"reel","key":"G"},{"id":"233","rhythm":"waltz","key":"Em"},{"id":"234","rhythm":"polka","key":"Edor"},{"id":"235","rhythm":"polka","key":"Am"},{"id":"236","rhythm":"reel","key":"G"},{"id":"237","rhythm":"polka","key":"A"},{"id":"238","rhythm":"waltz","key":"G"},{"id":"239","rhythm":"reel","key":"D"},{"id":"240","rhythm":"reel","key":"D"},{"id":"241a","rhythm":"polka","key":"G"},{"id":"241b","rhythm":"polka","key":"D"},{"id":"241c","rhythm":"polka","key":"Bm"},{"id":"242","rhythm":"reel","key":"D"},{"id":"243","rhythm":"reel","key":"G"},{"id":"244","rhythm":"reel","key":"Ador"},{"id":"245","rhythm":"reel","key":"Ador"},{"id":"246","key":"Edor"},{"id":"247","rhythm":"reel","key":"D"},{"id":"248","rhythm":"reel","key":"A"},{"id":"248b","rhythm":"reel","key":"A"},{"id":"249","rhythm":"reel","key":"Edor"},{"id":"250","rhythm":"reel","key":"Edor"},{"id":"251","rhythm":"hornpipe","key":"D"},{"id":"252","rhythm":"jig","key":"D"},{"id":"253","rhythm":"jig","key":"D"},{"id":"253b","rhythm":"jig","key":"D"},{"id":"254","rhythm":"jig","key":"G"},{"id":"255","rhythm":"reel","key":"Bm"},{"id":"256","rhythm":"hornpipe","key":"D"},{"id":"257","rhythm":"slip jig","key":"D"},{"id":"258","rhythm":"waltz","key":"G"},{"id":"259","rhythm":"reel","key":"Em"},{"id":"260","rhythm":"jig","key":"Em"},{"id":"261","rhythm":"reel","key":"Bm"},{"id":"262","rhythm":"jig","key":"Dmix"},{"id":"263","rhythm":"jig","key":"D"},{"id":"264","rhythm":"jig","key":"G"},{"id":"265","rhythm":"reel","key":"D"},{"id":"265a","rhythm":"reel","key":"D"},{"id":"266","rhythm":"reel","key":"D"},{"id":"267","rhythm":"reel","key":"Edor"},{"id":"268","rhythm":"reel","key":"Edor"},{"id":"269a","rhythm":"jig","key":"D"},{"id":"269b","rhythm":"jig","key":"G"},{"id":"270","rhythm":"reel","key":"Edor"},{"id":"271","rhythm":"reel","key":"D"},{"id":"272","rhythm":"jig","key":"Edor"},{"id":"273","rhythm":"reel","key":"A"},{"id":"274","rhythm":"reel","key":"Em"},{"id":"275","rhythm":"jig","key":"D"},{"id":"276","rhythm":"jig","key":"D"},{"id":"277","rhythm":"waltz","key":"G"},{"id":"278","rhythm":"slip jig","key":"D"},{"id":"279","rhythm":"hornpipe","key":"G"},{"id":"280","rhythm":"jig","key":"Ador"},{"id":"281","rhythm":"waltz","key":"G"},{"id":"282","rhythm":"polka","key":"Ador"},{"id":"283","rhythm":"polka","key":"Edor"},{"id":"284","rhythm":"slide","key":"G"},{"id":"285","rhythm":"reel","key":"Em"},{"id":"286","rhythm":"waltz","key":"G"},{"id":"287","rhythm":"waltz","key":"G"},{"id":"288","rhythm":"waltz","key":"Em"},{"id":"289","rhythm":"reel","key":"Amix"},{"id":"290","rhythm":"jig","key":"Dmix"},{"id":"291","rhythm":"reel","key":"Bm"},{"id":"292","rhythm":"reel","key":"G"},{"id":"293","rhythm":"reel","key":"A"},{"id":"294","rhythm":"reel","key":"Edor"},{"id":"295","rhythm":"reel","key":"D"},{"id":"296","rhythm":"reel","key":"D"},{"id":"297","rhythm":"march","key":"G"},{"id":"298","rhythm":"jig","key":"G"},{"id":"299","rhythm":"set dance","key":"G"},{"id":"300","rhythm":"jig","key":"Edor"},{"id":"301","rhythm":"jig","key":"Edor"},{"id":"302","rhythm":"barndance","key":"D"},{"id":"303","rhythm":"strathspey","key":"D"},{"id":"304","rhythm":"barndance","key":"G"},{"id":"305","rhythm":"hornpipe","key":"Edor"},{"id":"306","rhythm":"polka","key":"G"},{"id":"307","rhythm":"jig","key":"Dmix"},{"id":"308","rhythm":"reel","key":"Ador"},{"id":"309","rhythm":"slip jig","key":"Dmix"},{"id":"310","rhythm":"slip jig","key":"Dmix"},{"id":"311","rhythm":"slide","key":"Amix"},{"id":"312","key":"D"},{"id":"313","rhythm":"hornpipe","key":"G"},{"id":"314","rhythm":"reel","key":"Bm"},{"id":"315","rhythm":"polka","key":"G"},{"id":"316","rhythm":"jig","key":"Ador"},{"id":"317","rhythm":"slip jig","key":"Fm"},{"id":"318","rhythm":"waltz","key":"G"},{"id":"319","rhythm":"slide","key":"G"},{"id":"320","rhythm":"hornpipe","key":"D"},{"id":"321","rhythm":"reel","key":"G"},{"id":"322","rhythm":"jig","key":"G"},{"id":"323","rhythm":"polka","key":"Ador"},{"id":"324","rhythm":"polka","key":"G"},{"id":"325","rhythm":"strathspey","key":"G"},{"id":"326","rhythm":"slide","key":"D"},{"id":"327","rhythm":"slip jig","key":"Dmix"},{"id":"328","rhythm":"waltz (slow air)","key":"D"},{"id":"329","rhythm":"hornpipe","key":"G"},{"id":"330","rhythm":"polka","key":"D"}]},{"id":"rover","uri":"Rover.abc","name":"Rover Session","description":"Some tunes played at the Hamburg Irish Rover Session on Sundays","storage":"assets","tunes":[{"id":"1","key":"D"},{"id":"2","key":"D"},{"id":"3","rhythm":"reel","key":"D"},{"id":"4","rhythm":"jig","key":"Am"},{"id":"5","rhythm":"jig","key":"D"},{"id":"6","rhythm":"jig","key":"D"},{"id":"7","rhythm":"reel","key":"G"},{"id":"8","rhythm":"set dance","key":"G"},{"id":"9","rhythm":"jig","key":"G"},{"id":"10","rhythm":"reel","key":"Dmix"},{"id":"11","rhythm":"reel","key":"G"},{"id":"12","rhythm":"reel","key":"G"},{"id":"13","rhythm":"reel","key":"D"},{"id":"14","rhythm":"hornpipe","key":"A"},{"id":"15","rhythm":"slide","key":"G"},{"id":"16","rhythm":"reel","key":"Ador"},{"id":"17","rhythm":"reel","key":"D"},{"id":"18","rhythm":"reel","key":"D"},{"id":"19","key":"G"},{"id":"20","rhythm":"jig","key":"Ador"},{"id":"21","rhythm":"reel","key":"C"},{"id":"22","rhythm":"reel","key":"D"},{"id":"23","rhythm":"c|","key":"Am"},{"id":"24","rhythm":"reel","key":"D"},{"id":"25","rhythm":"reel","key":"A"},{"id":"26","rhythm":"reel","key":"G"},{"id":"27","rhythm":"reel","key":"D"},{"id":"28","rhythm":"jig","key":"Em"},{"id":"29","rhythm":"slide","key":"Amix"},{"id":"30","rhythm":"jig","key":"Edor"},{"id":"31","rhythm":"jig","key":"D"},{"id":"32","rhythm":"reel","key":"G"},{"id":"33","rhythm":"slide","key":"D"},{"id":"34","rhythm":"jig","key":"D"},{"id":"35","rhythm":"reel","key":"D"},{"id":"36","rhythm":"polka","key":"A"},{"id":"37","rhythm":"reel","key":"D"},{"id":"38","rhythm":"reel","key":"D"},{"id":"39","rhythm":"reel","key":"Bm"},{"id":"40","rhythm":"jig","key":"D"},{"id":"41","rhythm":"jig","key":"G"},{"id":"42","rhythm":"reel","key":"Ador"},{"id":"43","rhythm":"jig","key":"Dmix"},{"id":"44","rhythm":"jig","key":"Amix"},{"id":"45","rhythm":"reel","key":"Ador"},{"id":"46","rhythm":"jig","key":"Ador"},{"id":"47","rhythm":"reel","key":"D"},{"id":"48","rhythm":"reel","key":"Edor"},{"id":"49","rhythm":"reel","key":"D"},{"id":"50","rhythm":"reel","key":"D"},{"id":"51","rhythm":"hornpipe","key":"Amix"},{"id":"52","rhythm":"reel","key":"Am"},{"id":"53","rhythm":"reel","key":"Edor"},{"id":"54","rhythm":"waltz","key":"D"},{"id":"55","rhythm":"jig","key":"G"},{"id":"56","rhythm":"jig","key":"G"},{"id":"57","rhythm":"jig","key":"D"},{"id":"58","rhythm":"reel","key":"G"},{"id":"59","rhythm":"reel","key":"Ador"},{"id":"60","rhythm":"reel","key":"G"},{"id":"61","rhythm":"reel","key":"Am"},{"id":"62","rhythm":"reel","key":"G"},{"id":"63","rhythm":"jig","key":"G"},{"id":"64","rhythm":"air","key":"G"},{"id":"65","rhythm":"reel","key":"G"},{"id":"66","rhythm":"reel","key":"D"},{"id":"67","rhythm":"reel","key":"D"},{"id":"68","rhythm":"reel","key":"G"},{"id":"69","rhythm":"polka","key":"D"},{"id":"70","rhythm":"march","key":"G"},{"id":"71","rhythm":"polka","key":"G"},{"id":"72","rhythm":"polka","key":"A"},{"id":"73","rhythm":"reel","key":"D"},{"id":"74","rhythm":"reel","key":"Ador"},{"id":"75","rhythm":"jig","key":"Ador"},{"id":"76","rhythm":"slip jig","key":"Ador"},{"id":"77","rhythm":"polka","key":"D"},{"id":"78","rhythm":"waltz","key":"Edor"},{"id":"79","rhythm":"jig","key":"Dmix"},{"id":"80","rhythm":"jig","key":"G"},{"id":"81","rhythm":"jig","key":"Dmix"},{"id":"82","rhythm":"reel","key":"G"},{"id":"83","rhythm":"jig","key":"Em"},{"id":"84","rhythm":"polka","key":"G"},{"id":"85","rhythm":"jig","key":"Am"},{"id":"86","rhythm":"jig","key":"D"},{"id":"87","rhythm":"jig","key":"Dmix"},{"id":"88","rhythm":"barndance","key":"G"},{"id":"89","rhythm":"jig","key":"G"},{"id":"90","rhythm":"jig","key":"Edor"},{"id":"91","rhythm":"hornpipe","key":"D"},{"id":"92","rhythm":"jig","key":"Bm"},{"id":"93","rhythm":"reel","key":"A"},{"id":"94","rhythm":"reel","key":"D"},{"id":"95","rhythm":"jig","key":"Amix"},{"id":"96","rhythm":"hornpipe","key":"G"},{"id":"97","rhythm":"reel","key":"Amix"},{"id":"98","rhythm":"jig","key":"Dmix"},{"id":"99","rhythm":"reel","key":"G"},{"id":"100","rhythm":"hornpipe","key":"D"},{"id":"101","rhythm":"jig","key":"D"},{"id":"102","rhythm":"jig","key":"Edor"},{"id":"103","rhythm":"jig","key":"Amix"},{"id":"104","rhythm":"jig","key":"C"},{"id":"105","rhythm":"reel","key":"Edor"},{"id":"105","rhythm":"reel","key":"C"},{"id":"106","rhythm":"jig","key":"Em"},{"id":"107","rhythm":"jig","key":"Amix"},{"id":"108","rhythm":"slip jig","key":"D"},{"id":"109","rhythm":"jig","key":"G"},{"id":"110","rhythm":"reel","key":"D"},{"id":"111","rhythm":"jig","key":"G"},{"id":"112","rhythm":"reel","key":"G"},{"id":"113","key":"G"},{"id":"114","rhythm":"jig","key":"G"},{"id":"115","rhythm":"jig","key":"A"},{"id":"116","rhythm":"reel","key":"D"},{"id":"117","rhythm":"reel","key":"Bm"},{"id":"118","rhythm":"reel","key":"G"},{"id":"119","rhythm":"waltz","key":"A"},{"id":"120","rhythm":"strathspey","key":"D"},{"id":"121","rhythm":"reel","key":"Em"},{"id":"122","rhythm":"reel","key":"D"},{"id":"123","rhythm":"reel","key":"G"},{"id":"124","rhythm":"slip jig","key":"G"},{"id":"125","rhythm":"slip jig","key":"Fm"},{"id":"126","rhythm":"reel","key":"Ador"},{"id":"127","rhythm":"jig","key":"D"},{"id":"128","rhythm":"jig","key":"Ador"},{"id":"129","rhythm":"reel","key":"Ador"},{"id":"130","rhythm":"reel","key":"Dmix"},{"id":"131","rhythm":"reel","key":"D"},{"id":"132","rhythm":"jig","key":"D"},{"id":"133","rhythm":"reel","key":"G"},{"id":"134","rhythm":"reel","key":"G"},{"id":"135","rhythm":"reel","key":"Am"},{"id":"136","rhythm":"jig","key":"Dmix"},{"id":"137","rhythm":"jig","key":"Am"},{"id":"138","rhythm":"reel","key":"Bm"},{"id":"139","rhythm":"jig","key":"Dmix"},{"id":"140","rhythm":"reel","key":"D"},{"id":"141","rhythm":"reel","key":"D"},{"id":"142","rhythm":"jig","key":"A"},{"id":"143","rhythm":"jig","key":"G"},{"id":"144","rhythm":"jig","key":"D"},{"id":"145","rhythm":"jig","key":"Ddor"},{"id":"146","rhythm":"slip jig","key":"D"},{"id":"147","rhythm":"hornpipe","key":"D"},{"id":"148","rhythm":"jig","key":"Edor"},{"id":"149","rhythm":"jig","key":"D"},{"id":"150","rhythm":"reel","key":"Bm"},{"id":"151","rhythm":"jig","key":"D"},{"id":"152","rhythm":"jig","key":"D"},{"id":"153","rhythm":"slide","key":"D"},{"id":"154","rhythm":"reel","key":"G"},{"id":"155","rhythm":"jig","key":"G"},{"id":"156","rhythm":"jig","key":"Ador"},{"id":"157","rhythm":"reel","key":"G"},{"id":"158","rhythm":"jig","key":"D"},{"id":"159","rhythm":"jig","key":"D"},{"id":"160","rhythm":"reel","key":"Ador"},{"id":"161","rhythm":"reel","key":"Dmix"},{"id":"162","rhythm":"reel","key":"G"},{"id":"163","rhythm":"reel","key":"D"},{"id":"164","rhythm":"reel","key":"G"},{"id":"165","rhythm":"reel","key":"Amix"},{"id":"166","rhythm":"jig","key":"Edor"},{"id":"167","rhythm":"jig","key":"Em"},{"id":"168","rhythm":"reel","key":"D"},{"id":"169","rhythm":"jig","key":"D"},{"id":"170","rhythm":"slip jig","key":"G"},{"id":"171","rhythm":"jig","key":"G"},{"id":"172","rhythm":"jig","key":"Ador"},{"id":"173","rhythm":"jig","key":"Ador"},{"id":"174","rhythm":"reel","key":"Edor"},{"id":"175","rhythm":"jig","key":"Dmix"},{"id":"176","rhythm":"jig","key":"Ador"},{"id":"177","rhythm":"jig","key":"Em"},{"id":"178","rhythm":"march","key":"Ador"},{"id":"179","rhythm":"hornpipe","key":"D"},{"id":"180","rhythm":"reel","key":"Bm"},{"id":"181","rhythm":"slip jig","key":"G"},{"id":"182","rhythm":"jig","key":"D"},{"id":"183","rhythm":"reel","key":"G"},{"id":"184","rhythm":"jig","key":"G"},{"id":"185","rhythm":"reel","key":"D"},{"id":"186","rhythm":"reel","key":"D"},{"id":"187","rhythm":"reel","key":"Edor"},{"id":"188","rhythm":"reel","key":"Dmix"},{"id":"189","rhythm":"reel","key":"D"},{"id":"190","rhythm":"jig","key":"D"},{"id":"191","rhythm":"jig","key":"Ador"},{"id":"192","rhythm":"hornpipe","key":"G"},{"id":"193","rhythm":"reel","key":"D"},{"id":"194","rhythm":"reel","key":"G"},{"id":"195","rhythm":"reel","key":"D"},{"id":"196","rhythm":"reel","key":"D"},{"id":"197","rhythm":"jig","key":"G"},{"id":"198","rhythm":"jig","key":"G"},{"id":"199","rhythm":"reel","key":"G"},{"id":"200","rhythm":"reel","key":"G"},{"id":"201","rhythm":"jig","key":"G"},{"id":"202","rhythm":"reel","key":"G"},{"id":"203","rhythm":"jig","key":"Dmix"},{"id":"204","rhythm":"jig","key":"D"},{"id":"205","rhythm":"jig","key":"Dmix"},{"id":"206","rhythm":"slip jig","key":"Ador"},{"id":"207","rhythm":"barndance","key":"G"},{"id":"208","rhythm":"reel","key":"D"},{"id":"209","rhythm":"reel","key":"Ador"},{"id":"210","rhythm":"reel","key":"C"},{"id":"211","rhythm":"polka","key":"G"},{"id":"212","rhythm":"polka","key":"G"},{"id":"213","rhythm":"reel","key":"D"},{"id":"214","rhythm":"reel","key":"G"},{"id":"215","rhythm":"slip jig","key":"Am"},{"id":"216","rhythm":"slip jig","key":"Bm"},{"id":"217","rhythm":"waltz","key":"G"},{"id":"218","rhythm":"jig","key":"G"},{"id":"219","rhythm":"jig","key":"D"},{"id":"220","rhythm":"jig","key":"G"},{"id":"221","rhythm":"jig","key":"G"},{"id":"222","rhythm":"reel","key":"D"},{"id":"223","rhythm":"reel","key":"D"},{"id":"224","rhythm":"reel","key":"D"},{"id":"225","rhythm":"jig","key":"A"},{"id":"226","rhythm":"polka","key":"G"},{"id":"227","rhythm":"jig","key":"G"},{"id":"228","rhythm":"jig","key":"D"},{"id":"229","rhythm":"reel","key":"G"},{"id":"230","rhythm":"reel","key":"D"},{"id":"231","rhythm":"hornpipe","key":"D"},{"id":"232","rhythm":"reel","key":"Ddor"},{"id":"233","rhythm":"jig","key":"Em"}]},{"id":"oneill1001","uri":"ONeill1001.abc","name":"O'Neill 1001","description":"Francis O'Neill: The Dance Music of Ireland (1907)","storage":"assets","tunes":[{"id":"1","rhythm":"double jig","key":"D"},{"id":"2","rhythm":"double jig","key":"A"},{"id":"3","rhythm":"double jig","key":"G"},{"id":"4","rhythm":"double jig","key":"G"},{"id":"5","rhythm":"double jig","key":"D"},{"id":"6","rhythm":"double jig","key":"D"},{"id":"7","rhythm":"double jig","key":"G"},{"id":"8","rhythm":"double jig","key":"D"},{"id":"9","rhythm":"double jig","key":"Am"},{"id":"10","rhythm":"double jig","key":"Ddor"},{"id":"11","rhythm":"double jig","key":"D"},{"id":"12","rhythm":"double jig","key":"G"},{"id":"13","rhythm":"double jig","key":"G"},{"id":"14","rhythm":"double jig","key":"Am"},{"id":"15","rhythm":"double jig","key":"Amix"},{"id":"16","rhythm":"double jig","key":"D"},{"id":"17","rhythm":"double jig","key":"G"},{"id":"18","rhythm":"double jig","key":"Amix"},{"id":"19","rhythm":"double jig","key":"D"},{"id":"20","rhythm":"double jig","key":"G"},{"id":"21","rhythm":"double jig","key":"D"},{"id":"22","rhythm":"double jig","key":"G"},{"id":"23","rhythm":"double jig","key":"G"},{"id":"24","rhythm":"double jig","key":"G"},{"id":"25","rhythm":"double jig","key":"D"},{"id":"26","rhythm":"double jig","key":"G"},{"id":"27","rhythm":"double jig","key":"D"},{"id":"28","rhythm":"double jig","key":"Am"},{"id":"29","rhythm":"double jig","key":"D"},{"id":"30","rhythm":"double jig","key":"G"},{"id":"31","rhythm":"double jig","key":"D"},{"id":"32","rhythm":"double jig","key":"Em"},{"id":"33","rhythm":"double jig","key":"D"},{"id":"34","rhythm":"double jig","key":"Bm"},{"id":"35","rhythm":"double jig","key":"Am"},{"id":"36","rhythm":"double jig","key":"D"},{"id":"37","rhythm":"double jig","key":"G"},{"id":"38","rhythm":"double jig","key":"D"},{"id":"39","rhythm":"double jig","key":"G"},{"id":"40","rhythm":"double jig","key":"D"},{"id":"41","rhythm":"double jig","key":"Em"},{"id":"42","rhythm":"double jig","key":"G"},{"id":"43","rhythm":"double jig","key":"G"},{"id":"44","rhythm":"double jig","key":"G"},{"id":"45","rhythm":"double jig","key":"Em"},{"id":"46","rhythm":"double jig","key":"G"},{"id":"47","rhythm":"double jig","key":"D"},{"id":"48","rhythm":"double jig","key":"Am"},{"id":"49","rhythm":"double jig","key":"Dmix"},{"id":"50","rhythm":"double jig","key":"D"},{"id":"51","rhythm":"double jig, march","key":"D"},{"id":"52","rhythm":"double jig","key":"D"},{"id":"53","rhythm":"double jig","key":"D"},{"id":"54","rhythm":"double jig","key":"G"},{"id":"55","rhythm":"double jig","key":"G"},{"id":"56","rhythm":"double jig","key":"D"},{"id":"57","rhythm":"double jig","key":"D"},{"id":"58","rhythm":"double jig","key":"G"},{"id":"59","rhythm":"double jig","key":"G"},{"id":"60","rhythm":"double jig","key":"D"},{"id":"61","rhythm":"double jig","key":"D"},{"id":"62","rhythm":"double jig","key":"Amix"},{"id":"63","rhythm":"double jig","key":"G"},{"id":"64","rhythm":"double jig","key":"Am"},{"id":"65","rhythm":"double jig","key":"D"},{"id":"66","rhythm":"double jig","key":"Amix"},{"id":"67","rhythm":"double jig","key":"Dmix"},{"id":"68","rhythm":"double jig","key":"G"},{"id":"69","rhythm":"double jig","key":"G"},{"id":"70","rhythm":"double jig","key":"D"},{"id":"71","rhythm":"double jig","key":"Edor"},{"id":"72","rhythm":"double jig","key":"G"},{"id":"73","rhythm":"double jig","key":"Am"},{"id":"74","rhythm":"double jig","key":"Dmix"},{"id":"75","rhythm":"double jig","key":"Ador"},{"id":"76","rhythm":"double jig","key":"G"},{"id":"77","rhythm":"double jig","key":"Ador"},{"id":"78","rhythm":"double jig","key":"G"},{"id":"79","rhythm":"double jig","key":"G"},{"id":"80","rhythm":"double jig","key":"D"},{"id":"81","rhythm":"double jig","key":"A"},{"id":"82","rhythm":"double jig","key":"A"},{"id":"83","rhythm":"double jig","key":"D"},{"id":"84","rhythm":"double jig","key":"Am"},{"id":"85","rhythm":"double jig","key":"A"},{"id":"86","rhythm":"double jig","key":"A"},{"id":"87","rhythm":"double jig","key":"Ddor"},{"id":"88","rhythm":"double jig","key":"D"},{"id":"89","rhythm":"double jig","key":"G"},{"id":"90","rhythm":"double jig","key":"Am"},{"id":"91","rhythm":"double jig","key":"D"},{"id":"92","rhythm":"double jig","key":"G"},{"id":"93","rhythm":"double jig","key":"Am"},{"id":"94","rhythm":"double jig","key":"G"},{"id":"95","rhythm":"double jig","key":"D"},{"id":"96","rhythm":"double jig","key":"G"},{"id":"97","rhythm":"double jig","key":"D"},{"id":"98","rhythm":"double jig","key":"G"},{"id":"99","rhythm":"double jig","key":"D"},{"id":"100","rhythm":"double jig","key":"Ador"},{"id":"101","rhythm":"double jig","key":"G"},{"id":"102","rhythm":"double jig","key":"A"},{"id":"103","rhythm":"double jig","key":"G"},{"id":"104","rhythm":"double jig","key":"G"},{"id":"105","rhythm":"double jig","key":"Ador"},{"id":"106","rhythm":"double jig","key":"D"},{"id":"107","rhythm":"double jig","key":"G"},{"id":"108","rhythm":"double jig","key":"G"},{"id":"109","rhythm":"double jig","key":"G"},{"id":"110","rhythm":"double jig","key":"Am"},{"id":"111","rhythm":"double jig","key":"G"},{"id":"112","rhythm":"double jig","key":"G"},{"id":"113","rhythm":"double jig","key":"G"},{"id":"114","rhythm":"double jig","key":"G"},{"id":"115","rhythm":"double jig","key":"G"},{"id":"116","rhythm":"double jig","key":"Em"},{"id":"117","rhythm":"double jig","key":"Amix"},{"id":"118","rhythm":"double jig","key":"Em"},{"id":"119","rhythm":"double jig","key":"Em"},{"id":"120","rhythm":"double jig","key":"G"},{"id":"121","rhythm":"double jig","key":"G"},{"id":"122","rhythm":"double jig","key":"G"},{"id":"123","rhythm":"double jig","key":"Em"},{"id":"124","rhythm":"double jig","key":"D"},{"id":"125","rhythm":"double jig","key":"Am"},{"id":"126","rhythm":"double jig","key":"G"},{"id":"127","rhythm":"double jig","key":"G"},{"id":"128","rhythm":"double jig","key":"G"},{"id":"129","rhythm":"double jig","key":"D"},{"id":"130","rhythm":"double jig","key":"G"},{"id":"131","rhythm":"double jig","key":"G"},{"id":"132","rhythm":"double jig","key":"G"},{"id":"133","rhythm":"double jig","key":"Em"},{"id":"134","rhythm":"double jig","key":"D"},{"id":"135","rhythm":"double jig","key":"G"},{"id":"136","rhythm":"double jig","key":"D"},{"id":"137","rhythm":"double jig","key":"Amix"},{"id":"138","rhythm":"double jig","key":"G"},{"id":"139","rhythm":"double jig","key":"A"},{"id":"140","rhythm":"double jig","key":"G"},{"id":"141","rhythm":"double jig","key":"G"},{"id":"142","rhythm":"double jig","key":"Amix"},{"id":"143","rhythm":"double jig","key":"Em"},{"id":"144","rhythm":"double jig","key":"D"},{"id":"145","rhythm":"double jig","key":"Em"},{"id":"146","rhythm":"double jig","key":"D"},{"id":"147","rhythm":"double jig","key":"G"},{"id":"148","rhythm":"double jig","key":"D"},{"id":"149","rhythm":"double jig","key":"Am"},{"id":"150","rhythm":"double jig","key":"D"},{"id":"151","rhythm":"double jig","key":"G"},{"id":"152","rhythm":"double jig","key":"D"},{"id":"153","rhythm":"double jig","key":"Am"},{"id":"154","rhythm":"double jig","key":"A"},{"id":"155","rhythm":"double jig","key":"D"},{"id":"156","rhythm":"double jig","key":"G"},{"id":"157","rhythm":"double jig","key":"A"},{"id":"158","rhythm":"double jig","key":"Am"},{"id":"159","rhythm":"double jig","key":"D"},{"id":"160","rhythm":"double jig","key":"Amix"},{"id":"161","rhythm":"double jig","key":"G"},{"id":"162","rhythm":"double jig","key":"Ador"},{"id":"163","rhythm":"double jig","key":"D"},{"id":"164","rhythm":"double jig","key":"A"},{"id":"165","rhythm":"double jig","key":"A"},{"id":"166","rhythm":"double jig","key":"A"},{"id":"167","rhythm":"double jig","key":"Dmix"},{"id":"168","rhythm":"double jig","key":"G"},{"id":"169","rhythm":"double jig","key":"D"},{"id":"170","rhythm":"double jig","key":"G"},{"id":"171","rhythm":"double jig","key":"G"},{"id":"172","rhythm":"double jig","key":"G"},{"id":"173","rhythm":"double jig","key":"A"},{"id":"174","rhythm":"double jig","key":"D"},{"id":"175","rhythm":"double jig","key":"G"},{"id":"176","rhythm":"double jig","key":"G"},{"id":"177","rhythm":"double jig","key":"G"},{"id":"178","rhythm":"double jig","key":"G"},{"id":"179","rhythm":"double jig","key":"G"},{"id":"180","rhythm":"double jig","key":"Am"},{"id":"181","rhythm":"double jig","key":"A"},{"id":"182","rhythm":"double jig","key":"G"},{"id":"183","rhythm":"double jig","key":"Ador"},{"id":"184","rhythm":"double jig","key":"D"},{"id":"185","rhythm":"double jig","key":"G"},{"id":"186","rhythm":"double jig","key":"G"},{"id":"187","rhythm":"double jig","key":"Am"},{"id":"188","rhythm":"double jig","key":"D"},{"id":"189","rhythm":"double jig","key":"Am"},{"id":"190","rhythm":"double jig","key":"D"},{"id":"191","rhythm":"double jig","key":"Gmix"},{"id":"192","rhythm":"double jig","key":"D"},{"id":"193","rhythm":"double jig","key":"G"},{"id":"194","rhythm":"double jig","key":"G"},{"id":"195","rhythm":"double jig","key":"A"},{"id":"196","rhythm":"double jig","key":"D"},{"id":"197","rhythm":"double jig","key":"C"},{"id":"198","rhythm":"double jig","key":"G"},{"id":"199","rhythm":"double jig","key":"D"},{"id":"200","rhythm":"double jig","key":"D"},{"id":"201","rhythm":"double jig","key":"C"},{"id":"202","rhythm":"double jig","key":"D"},{"id":"203","rhythm":"double jig","key":"D"},{"id":"204","rhythm":"double jig","key":"D"},{"id":"205","rhythm":"double jig","key":"Am"},{"id":"206","rhythm":"double jig","key":"G"},{"id":"207","rhythm":"double jig","key":"G"},{"id":"208","rhythm":"double jig","key":"G"},{"id":"209","rhythm":"double jig","key":"Am"},{"id":"210","rhythm":"double jig","key":"D"},{"id":"211","rhythm":"double jig","key":"Ddor"},{"id":"212","rhythm":"double jig","key":"G"},{"id":"213","rhythm":"double jig","key":"D"},{"id":"214","rhythm":"double jig","key":"Em"},{"id":"215","rhythm":"double jig","key":"G"},{"id":"216","rhythm":"double jig","key":"D"},{"id":"217","rhythm":"double jig","key":"A"},{"id":"218","rhythm":"double jig","key":"Bm"},{"id":"219","rhythm":"double jig","key":"G"},{"id":"220","rhythm":"double jig","key":"G"},{"id":"221","rhythm":"double jig","key":"Am"},{"id":"222","rhythm":"double jig","key":"Dm"},{"id":"223","rhythm":"double jig","key":"Am"},{"id":"224","rhythm":"double jig","key":"D"},{"id":"225","rhythm":"double jig","key":"G"},{"id":"226","rhythm":"double jig","key":"Am"},{"id":"227","rhythm":"double jig","key":"G"},{"id":"228","rhythm":"double jig","key":"Ador"},{"id":"229","rhythm":"double jig","key":"D"},{"id":"230","rhythm":"double jig","key":"D"},{"id":"231","rhythm":"double jig","key":"G"},{"id":"232","rhythm":"double jig","key":"A"},{"id":"233","rhythm":"double jig","key":"A"},{"id":"234","rhythm":"double jig","key":"G"},{"id":"235","rhythm":"double jig","key":"D"},{"id":"236","rhythm":"double jig","key":"Am"},{"id":"237","rhythm":"double jig","key":"G"},{"id":"238","rhythm":"double jig","key":"G"},{"id":"239","rhythm":"double jig","key":"Am"},{"id":"240","rhythm":"double jig","key":"Em"},{"id":"241","rhythm":"double jig","key":"A"},{"id":"242","rhythm":"double jig","key":"A"},{"id":"243","rhythm":"double jig","key":"G"},{"id":"244","rhythm":"double jig","key":"D"},{"id":"245","rhythm":"double jig","key":"Em"},{"id":"246","rhythm":"double jig","key":"Amix"},{"id":"247","rhythm":"double jig","key":"D"},{"id":"248","rhythm":"double jig","key":"G"},{"id":"249","rhythm":"double jig","key":"G"},{"id":"250","rhythm":"double jig","key":"D"},{"id":"251","rhythm":"double jig","key":"G"},{"id":"252","rhythm":"double jig","key":"G"},{"id":"253","rhythm":"double jig","key":"Amix"},{"id":"254","rhythm":"double jig","key":"A"},{"id":"255","rhythm":"double jig","key":"A"},{"id":"256","rhythm":"double jig","key":"C"},{"id":"257","rhythm":"double jig","key":"C"},{"id":"258","rhythm":"double jig","key":"D"},{"id":"259","rhythm":"double jig","key":"D"},{"id":"260","rhythm":"double jig","key":"D"},{"id":"261","rhythm":"double jig","key":"D"},{"id":"262","rhythm":"double jig","key":"D"},{"id":"263","rhythm":"double jig","key":"A"},{"id":"264","rhythm":"double jig","key":"Am"},{"id":"265","rhythm":"double jig","key":"Gmix"},{"id":"266","rhythm":"double jig","key":"D"},{"id":"267","rhythm":"double jig","key":"D"},{"id":"268","rhythm":"double jig","key":"A"},{"id":"269","rhythm":"double jig","key":"F"},{"id":"270","rhythm":"double jig","key":"Em"},{"id":"271","rhythm":"double jig","key":"G"},{"id":"272","rhythm":"double jig","key":"G"},{"id":"273","rhythm":"double jig","key":"D"},{"id":"274","rhythm":"double jig","key":"G"},{"id":"275","rhythm":"double jig","key":"D"},{"id":"276","rhythm":"double jig","key":"G"},{"id":"277","rhythm":"double jig","key":"G"},{"id":"278","rhythm":"double jig","key":"A"},{"id":"279","rhythm":"double jig","key":"D"},{"id":"280","rhythm":"double jig","key":"G"},{"id":"281","rhythm":"double jig","key":"D"},{"id":"282","rhythm":"double jig","key":"G"},{"id":"283","rhythm":"double jig","key":"G"},{"id":"284","rhythm":"double jig","key":"D"},{"id":"285","rhythm":"double jig","key":"G"},{"id":"286","rhythm":"double jig","key":"G"},{"id":"287","rhythm":"double jig","key":"D"},{"id":"288","rhythm":"double jig","key":"G"},{"id":"289","rhythm":"double jig","key":"G"},{"id":"290","rhythm":"double jig","key":"G"},{"id":"291","rhythm":"double jig","key":"G"},{"id":"292","rhythm":"double jig","key":"G"},{"id":"293","rhythm":"double jig","key":"Am"},{"id":"294","rhythm":"double jig","key":"Ador"},{"id":"295","rhythm":"double jig","key":"Gm"},{"id":"296","rhythm":"double jig","key":"D"},{"id":"297","rhythm":"double jig","key":"Ador"},{"id":"298","rhythm":"double jig","key":"D"},{"id":"299","rhythm":"double jig","key":"A"},{"id":"300","rhythm":"double jig","key":"Em"},{"id":"301","rhythm":"double jig","key":"Edor"},{"id":"302","rhythm":"double jig","key":"Em"},{"id":"303","rhythm":"double jig","key":"G"},{"id":"304","rhythm":"double jig","key":"G"},{"id":"305","rhythm":"double jig","key":"Ador"},{"id":"306","rhythm":"double jig","key":"Gm"},{"id":"307","rhythm":"double jig","key":"G"},{"id":"308","rhythm":"double jig","key":"D"},{"id":"309","rhythm":"double jig","key":"D"},{"id":"310","rhythm":"double jig","key":"G"},{"id":"311","rhythm":"double jig","key":"Em"},{"id":"312","rhythm":"double jig","key":"D"},{"id":"313","rhythm":"double jig","key":"D"},{"id":"314","rhythm":"double jig","key":"G"},{"id":"315","rhythm":"double jig","key":"G"},{"id":"316","rhythm":"double jig","key":"G"},{"id":"317","rhythm":"double jig","key":"G"},{"id":"318","rhythm":"double jig","key":"Gdor"},{"id":"319","rhythm":"double jig","key":"G"},{"id":"320","rhythm":"double jig","key":"D"},{"id":"321","rhythm":"double jig","key":"D"},{"id":"322","rhythm":"double jig","key":"D"},{"id":"323","rhythm":"double jig","key":"G"},{"id":"324","rhythm":"double jig","key":"Em"},{"id":"325","rhythm":"double jig","key":"D"},{"id":"326","rhythm":"double jig","key":"D"},{"id":"327","rhythm":"double jig","key":"D"},{"id":"328","rhythm":"double jig","key":"A"},{"id":"329","rhythm":"double jig","key":"Dmix"},{"id":"330","rhythm":"double jig","key":"D"},{"id":"331","rhythm":"double jig","key":"G"},{"id":"332","rhythm":"double jig","key":"D"},{"id":"333","rhythm":"double jig","key":"Em"},{"id":"334","rhythm":"double jig","key":"Dmix"},{"id":"335","rhythm":"double jig","key":"Gm"},{"id":"336","rhythm":"double jig","key":"G"},{"id":"337","rhythm":"double jig","key":"G"},{"id":"338","rhythm":"double jig","key":"D"},{"id":"339","rhythm":"double jig","key":"C"},{"id":"340","rhythm":"double jig","key":"D"},{"id":"341","rhythm":"double jig","key":"Ador"},{"id":"342","rhythm":"double jig","key":"D"},{"id":"343","rhythm":"double jig","key":"D"},{"id":"344","rhythm":"double jig","key":"Glyd"},{"id":"345","rhythm":"double jig","key":"Dm"},{"id":"346","rhythm":"double jig","key":"D"},{"id":"347","rhythm":"double jig","key":"G"},{"id":"348","rhythm":"double jig","key":"D"},{"id":"349","rhythm":"double jig","key":"Am"},{"id":"350","rhythm":"double jig","key":"D"},{"id":"351","rhythm":"double jig","key":"D"},{"id":"352","rhythm":"double jig","key":"G"},{"id":"353","rhythm":"double jig","key":"D"},{"id":"354","rhythm":"double jig","key":"D"},{"id":"355","rhythm":"double jig","key":"D"},{"id":"356","rhythm":"double jig","key":"G"},{"id":"357","rhythm":"double jig","key":"Em"},{"id":"358","rhythm":"double jig","key":"D"},{"id":"359","rhythm":"double jig","key":"G"},{"id":"360","rhythm":"double jig","key":"G"},{"id":"361","rhythm":"double jig","key":"D"},{"id":"362","rhythm":"double jig","key":"D"},{"id":"363","rhythm":"double jig","key":"G"},{"id":"364","rhythm":"double jig","key":"Ador"},{"id":"365","rhythm":"double jig","key":"D"},{"id":"366","rhythm":"single jig","key":"Am"},{"id":"367","rhythm":"single jig","key":"Dmix"},{"id":"368","rhythm":"single jig","key":"G"},{"id":"369","rhythm":"single jig","key":"Gm"},{"id":"370","rhythm":"single jig","key":"Em"},{"id":"371","rhythm":"single jig","key":"Am"},{"id":"372","rhythm":"single jig","key":"G"},{"id":"373","rhythm":"single jig","key":"G"},{"id":"374","rhythm":"single jig","key":"Dmix"},{"id":"375","rhythm":"single jig","key":"Am"},{"id":"376","rhythm":"single jig","key":"G"},{"id":"377","rhythm":"single jig","key":"G"},{"id":"378","rhythm":"single jig","key":"G"},{"id":"379","rhythm":"single jig","key":"Gdor"},{"id":"380","rhythm":"single jig","key":"A"},{"id":"381","rhythm":"single jig","key":"G"},{"id":"382","rhythm":"single jig","key":"C"},{"id":"383","rhythm":"single jig","key":"G"},{"id":"384","rhythm":"single jig","key":"D"},{"id":"385","rhythm":"single jig","key":"D"},{"id":"386","rhythm":"single jig","key":"D"},{"id":"387","rhythm":"single jig","key":"G"},{"id":"388","rhythm":"single jig","key":"Em"},{"id":"389","rhythm":"single jig","key":"D"},{"id":"390","rhythm":"single jig","key":"Gm"},{"id":"391","rhythm":"single jig","key":"Am"},{"id":"392","rhythm":"single jig","key":"G"},{"id":"393","rhythm":"single jig","key":"D"},{"id":"394","rhythm":"single jig","key":"Em"},{"id":"395","rhythm":"single jig","key":"C"},{"id":"396","rhythm":"single jig","key":"D"},{"id":"397","rhythm":"single jig","key":"Em"},{"id":"398","rhythm":"single jig","key":"Am"},{"id":"399","rhythm":"single jig","key":"D"},{"id":"400","rhythm":"single jig","key":"Am"},{"id":"401","rhythm":"single jig","key":"D"},{"id":"402","rhythm":"single jig","key":"G"},{"id":"403","rhythm":"single jig","key":"Dmix"},{"id":"404","rhythm":"single jig","key":"Gm"},{"id":"405","rhythm":"single jig","key":"G"},{"id":"406","rhythm":"single jig","key":"D"},{"id":"407","rhythm":"single jig","key":"D"},{"id":"408","rhythm":"single jig","key":"Am"},{"id":"409","rhythm":"single jig","key":"Dm"},{"id":"410","rhythm":"single jig","key":"Ador"},{"id":"411","rhythm":"slip jig, hop","key":"D"},{"id":"412","rhythm":"slip jig, hop","key":"D"},{"id":"413","rhythm":"slip jig, hop","key":"G"},{"id":"414","rhythm":"slip jig, hop","key":"G"},{"id":"415","rhythm":"slip jig, hop","key":"G"},{"id":"416","rhythm":"slip jig, hop","key":"D"},{"id":"417","rhythm":"slip jig, hop","key":"D"},{"id":"418","rhythm":"slip jig, hop","key":"Dmix"},{"id":"419","rhythm":"slip jig, hop","key":"D"},{"id":"420","rhythm":"slip jig, hop","key":"G"},{"id":"421","rhythm":"slip jig, hop","key":"Em"},{"id":"422","rhythm":"slip jig, hop","key":"D"},{"id":"423","rhythm":"slip jig, hop","key":"G"},{"id":"424","rhythm":"slip jig, hop","key":"G"},{"id":"425","rhythm":"slip jig, hop","key":"Am"},{"id":"426","rhythm":"slip jig, hop","key":"G"},{"id":"427","rhythm":"slip jig, hop","key":"Ador"},{"id":"428","rhythm":"slip jig, hop","key":"D"},{"id":"429","rhythm":"slip jig","key":"D"},{"id":"430","rhythm":"slip jig, hop","key":"D"},{"id":"431","rhythm":"slip jig, hop","key":"Emix"},{"id":"432","rhythm":"slip jig, hop","key":"G"},{"id":"433","rhythm":"slip jig, hop","key":"D"},{"id":"434","rhythm":"slip jig, hop","key":"Em"},{"id":"435","rhythm":"slip jig, hop","key":"G"},{"id":"436","rhythm":"slip jig, hop","key":"Em"},{"id":"437","rhythm":"slip jig, hop","key":"D"},{"id":"438","rhythm":"slip jig, hop","key":"Em"},{"id":"439","rhythm":"slip jig, hop","key":"D"},{"id":"440","rhythm":"slip jig, hop","key":"D"},{"id":"441","rhythm":"slip jig, hop","key":"G"},{"id":"442","rhythm":"slip jig, hop","key":"G"},{"id":"443","rhythm":"slip jig, hop","key":"Em"},{"id":"444","rhythm":"slip jig, hop","key":"D"},{"id":"445","rhythm":"slip jig, hop","key":"G"},{"id":"446","rhythm":"slip jig, hop","key":"Em"},{"id":"447","rhythm":"slip jig, hop","key":"Em"},{"id":"448","rhythm":"slip jig, hop","key":"G"},{"id":"449","rhythm":"slip jig, hop","key":"G"},{"id":"450","rhythm":"slip jig, hop","key":"Dmix"},{"id":"451","rhythm":"slip jig, hop","key":"Em"},{"id":"452","rhythm":"slip jig, hop","key":"Dmix"},{"id":"453","rhythm":"slip jig, hop","key":"G"},{"id":"454","rhythm":"slip jig, hop","key":"G"},{"id":"455","rhythm":"slip jig, hop","key":"G"},{"id":"456","rhythm":"reel","key":"Gm"},{"id":"457","rhythm":"reel","key":"F"},{"id":"458","rhythm":"reel","key":"D"},{"id":"459","rhythm":"reel","key":"D"},{"id":"460","rhythm":"reel","key":"G"},{"id":"461","rhythm":"reel","key":"Am"},{"id":"462","rhythm":"reel","key":"A"},{"id":"463","rhythm":"reel","key":"G"},{"id":"464","rhythm":"reel","key":"D"},{"id":"465","rhythm":"reel","key":"D"},{"id":"466","rhythm":"reel","key":"G"},{"id":"467","rhythm":"reel","key":"G"},{"id":"468","rhythm":"reel","key":"G"},{"id":"469","rhythm":"reel","key":"D"},{"id":"470","rhythm":"reel","key":"G"},{"id":"471","rhythm":"reel","key":"C"},{"id":"472","rhythm":"reel","key":"G"},{"id":"473","rhythm":"reel","key":"Ador"},{"id":"474","rhythm":"reel","key":"Gm"},{"id":"475","rhythm":"reel","key":"Em"},{"id":"476","rhythm":"reel","key":"D"},{"id":"477","rhythm":"reel","key":"G"},{"id":"478","rhythm":"reel","key":"Dmix"},{"id":"479","rhythm":"reel","key":"A"},{"id":"480","rhythm":"reel","key":"D"},{"id":"481","rhythm":"reel","key":"D"},{"id":"482","rhythm":"reel","key":"G"},{"id":"483","rhythm":"reel","key":"G"},{"id":"484","rhythm":"reel","key":"D"},{"id":"485","rhythm":"reel","key":"D"},{"id":"486","rhythm":"reel","key":"G"},{"id":"487","rhythm":"reel","key":"G"},{"id":"488","rhythm":"reel","key":"D"},{"id":"489","rhythm":"reel","key":"D"},{"id":"490","rhythm":"reel","key":"G"},{"id":"491","rhythm":"reel","key":"A"},{"id":"492","rhythm":"reel","key":"G"},{"id":"493","rhythm":"reel","key":"Gm"},{"id":"494","rhythm":"reel","key":"Em"},{"id":"495","rhythm":"reel","key":"Ador"},{"id":"496","rhythm":"reel","key":"A"},{"id":"497","rhythm":"reel","key":"G"},{"id":"498","rhythm":"reel","key":"Em"},{"id":"499","rhythm":"reel","key":"G"},{"id":"500","rhythm":"reel","key":"D"},{"id":"501","rhythm":"reel","key":"G"},{"id":"502","rhythm":"reel","key":"D"},{"id":"503","rhythm":"reel","key":"G"},{"id":"504","rhythm":"reel","key":"G"},{"id":"505","rhythm":"reel","key":"Em"},{"id":"506","rhythm":"reel","key":"G"},{"id":"507","rhythm":"reel","key":"G"},{"id":"508","rhythm":"reel","key":"D"},{"id":"509","rhythm":"reel","key":"G"},{"id":"510","rhythm":"reel","key":"Ador"},{"id":"511","rhythm":"reel","key":"G"},{"id":"512","rhythm":"reel","key":"G"},{"id":"513","rhythm":"reel","key":"G"},{"id":"514","rhythm":"reel","key":"Bm"},{"id":"515","rhythm":"reel","key":"G"},{"id":"516","rhythm":"reel","key":"Em"},{"id":"517","rhythm":"reel","key":"Ador"},{"id":"518","rhythm":"reel","key":"Ador"},{"id":"519","rhythm":"reel","key":"Dmix"},{"id":"520","rhythm":"reel","key":"G"},{"id":"521","rhythm":"reel","key":"G"},{"id":"522","rhythm":"reel","key":"A"},{"id":"523","rhythm":"reel","key":"D"},{"id":"524","rhythm":"reel","key":"A"},{"id":"525","rhythm":"reel","key":"G"},{"id":"526","rhythm":"reel","key":"Am"},{"id":"527","rhythm":"reel","key":"G"},{"id":"528","rhythm":"reel","key":"D"},{"id":"529","rhythm":"reel","key":"G"},{"id":"530","rhythm":"reel","key":"G"},{"id":"531","rhythm":"reel","key":"A"},{"id":"532","rhythm":"reel","key":"Em"},{"id":"533","rhythm":"reel","key":"D"},{"id":"534","rhythm":"reel","key":"G"},{"id":"535","rhythm":"reel","key":"D"},{"id":"536","rhythm":"reel","key":"Ador"},{"id":"537","rhythm":"reel","key":"D"},{"id":"538","rhythm":"reel","key":"D"},{"id":"539","rhythm":"reel","key":"D"},{"id":"540","rhythm":"reel","key":"A"},{"id":"541","rhythm":"reel","key":"D"},{"id":"542","rhythm":"reel","key":"G"},{"id":"543","rhythm":"reel","key":"G"},{"id":"544","rhythm":"reel","key":"Am"},{"id":"545","rhythm":"reel","key":"D"},{"id":"546","rhythm":"reel","key":"G"},{"id":"547","rhythm":"reel","key":"Am"},{"id":"548","rhythm":"reel","key":"A"},{"id":"549","rhythm":"reel","key":"Bm"},{"id":"550","rhythm":"reel","key":"C"},{"id":"551","rhythm":"reel","key":"D"},{"id":"552","rhythm":"reel","key":"D"},{"id":"553","rhythm":"reel","key":"A"},{"id":"554","rhythm":"reel","key":"A"},{"id":"555","rhythm":"reel","key":"G"},{"id":"556","rhythm":"reel","key":"G"},{"id":"557","rhythm":"reel","key":"D"},{"id":"558","rhythm":"reel","key":"D"},{"id":"559","rhythm":"reel","key":"D"},{"id":"560","rhythm":"reel","key":"Ador"},{"id":"561","rhythm":"reel","key":"Em"},{"id":"562","rhythm":"reel","key":"D"},{"id":"563","rhythm":"reel","key":"Em"},{"id":"564","rhythm":"reel","key":"D"},{"id":"565","rhythm":"reel","key":"G"},{"id":"566","rhythm":"reel","key":"G"},{"id":"567","rhythm":"reel","key":"D"},{"id":"568","rhythm":"reel","key":"Am"},{"id":"569","rhythm":"reel","key":"G"},{"id":"570","rhythm":"reel","key":"D"},{"id":"571","rhythm":"reel","key":"G"},{"id":"572","rhythm":"reel","key":"D"},{"id":"573","rhythm":"reel","key":"Em"},{"id":"574","rhythm":"reel","key":"G"},{"id":"575","rhythm":"reel","key":"D"},{"id":"576","rhythm":"reel","key":"A"},{"id":"577","rhythm":"reel","key":"D"},{"id":"578","rhythm":"reel","key":"Em"},{"id":"579","rhythm":"reel","key":"Em"},{"id":"580","rhythm":"reel","key":"A"},{"id":"581","rhythm":"reel","key":"G"},{"id":"582","rhythm":"reel","key":"A"},{"id":"583","rhythm":"reel","key":"D"},{"id":"584","rhythm":"reel","key":"C"},{"id":"585","rhythm":"reel","key":"Amix"},{"id":"586","rhythm":"reel","key":"D"},{"id":"587","rhythm":"reel","key":"Dm"},{"id":"588","rhythm":"reel","key":"G"},{"id":"589","rhythm":"reel","key":"Ador"},{"id":"590","rhythm":"reel","key":"Em"},{"id":"591","rhythm":"reel","key":"Ador"},{"id":"592","rhythm":"reel","key":"D"},{"id":"593","rhythm":"reel","key":"Gm"},{"id":"594","rhythm":"reel","key":"G"},{"id":"595","rhythm":"reel","key":"Em"},{"id":"596","rhythm":"reel","key":"C"},{"id":"597","rhythm":"reel","key":"G"},{"id":"598","rhythm":"reel","key":"A"},{"id":"599","rhythm":"reel","key":"C"},{"id":"600","rhythm":"reel","key":"Am"},{"id":"601","rhythm":"reel","key":"Ador"},{"id":"602","rhythm":"reel","key":"D"},{"id":"603","rhythm":"reel","key":"D"},{"id":"604","rhythm":"reel","key":"Em"},{"id":"605","rhythm":"reel","key":"D"},{"id":"606","rhythm":"reel","key":"G"},{"id":"607","rhythm":"reel","key":"Em"},{"id":"608","rhythm":"reel","key":"D"},{"id":"609","rhythm":"reel","key":"D"},{"id":"610","rhythm":"reel","key":"C"},{"id":"611","rhythm":"reel","key":"Em"},{"id":"612","rhythm":"reel","key":"G"},{"id":"613","rhythm":"reel","key":"G"},{"id":"614","rhythm":"reel","key":"A"},{"id":"615","rhythm":"reel","key":"D"},{"id":"616","rhythm":"reel","key":"Am"},{"id":"617","rhythm":"reel","key":"D"},{"id":"618","rhythm":"reel","key":"D"},{"id":"619","rhythm":"reel","key":"G"},{"id":"620","rhythm":"reel","key":"G"},{"id":"621","rhythm":"reel","key":"D"},{"id":"622","rhythm":"reel","key":"Amix"},{"id":"623","rhythm":"reel","key":"A"},{"id":"624","rhythm":"reel","key":"D"},{"id":"625","rhythm":"reel","key":"Gm"},{"id":"626","rhythm":"reel","key":"G"},{"id":"627","rhythm":"reel","key":"G"},{"id":"628","rhythm":"reel","key":"D"},{"id":"629","rhythm":"reel","key":"G"},{"id":"630","rhythm":"reel","key":"D"},{"id":"631","rhythm":"reel","key":"G"},{"id":"632","rhythm":"reel","key":"Am"},{"id":"633","rhythm":"reel","key":"D"},{"id":"634","rhythm":"reel","key":"D"},{"id":"635","rhythm":"reel","key":"Bm"},{"id":"636","rhythm":"reel","key":"G"},{"id":"637","rhythm":"reel","key":"G"},{"id":"638","rhythm":"reel","key":"G"},{"id":"639","rhythm":"reel","key":"Ador"},{"id":"640","rhythm":"reel","key":"G"},{"id":"641","rhythm":"reel","key":"A"},{"id":"642","rhythm":"reel","key":"Em"},{"id":"643","rhythm":"reel","key":"D"},{"id":"644","rhythm":"reel","key":"Am"},{"id":"645","rhythm":"reel","key":"Em"},{"id":"646","rhythm":"reel","key":"Dmix"},{"id":"647","rhythm":"reel","key":"D"},{"id":"648","rhythm":"reel","key":"G"},{"id":"649","rhythm":"reel","key":"G"},{"id":"650","rhythm":"reel","key":"Dmix"},{"id":"651","rhythm":"reel","key":"G"},{"id":"652","rhythm":"reel","key":"D"},{"id":"653","rhythm":"reel","key":"G"},{"id":"654","rhythm":"reel","key":"G"},{"id":"655","rhythm":"reel","key":"G"},{"id":"656","rhythm":"reel","key":"Ador"},{"id":"657","rhythm":"reel","key":"D"},{"id":"658","rhythm":"reel","key":"Am"},{"id":"659","rhythm":"reel","key":"A"},{"id":"660","rhythm":"reel","key":"Em"},{"id":"661","rhythm":"reel","key":"D"},{"id":"662","rhythm":"reel","key":"Em"},{"id":"663","rhythm":"reel","key":"D"},{"id":"664","rhythm":"reel","key":"Em"},{"id":"665","rhythm":"reel","key":"G"},{"id":"666","rhythm":"reel","key":"Amix"},{"id":"667","rhythm":"reel","key":"D"},{"id":"668","rhythm":"reel","key":"D"},{"id":"669","rhythm":"reel","key":"G"},{"id":"670","rhythm":"reel","key":"D"},{"id":"671","rhythm":"reel","key":"D"},{"id":"672","rhythm":"reel","key":"D"},{"id":"673","rhythm":"reel","key":"G"},{"id":"674","rhythm":"reel","key":"G"},{"id":"675","rhythm":"reel","key":"A"},{"id":"676","rhythm":"reel","key":"A"},{"id":"677","rhythm":"reel","key":"G"},{"id":"678","rhythm":"reel","key":"C"},{"id":"679","rhythm":"reel","key":"Em"},{"id":"680","rhythm":"reel","key":"D"},{"id":"681","rhythm":"reel","key":"D"},{"id":"682","rhythm":"reel","key":"G"},{"id":"683","rhythm":"reel","key":"Em"},{"id":"684","rhythm":"reel","key":"D"},{"id":"685","rhythm":"reel","key":"G"},{"id":"686","rhythm":"reel","key":"D"},{"id":"687","rhythm":"reel","key":"Dmix"},{"id":"688","rhythm":"reel","key":"G"},{"id":"689","rhythm":"reel","key":"G"},{"id":"690","rhythm":"reel","key":"C"},{"id":"691","rhythm":"reel","key":"G"},{"id":"692","rhythm":"reel","key":"G"},{"id":"693","rhythm":"reel","key":"G"},{"id":"694","rhythm":"reel","key":"C"},{"id":"695","rhythm":"reel","key":"Dmix"},{"id":"696","rhythm":"reel","key":"D"},{"id":"697","rhythm":"reel","key":"Am"},{"id":"698","rhythm":"reel","key":"A"},{"id":"699","rhythm":"reel","key":"Am"},{"id":"700","rhythm":"reel","key":"Em"},{"id":"701","rhythm":"reel","key":"D"},{"id":"702","rhythm":"reel","key":"G"},{"id":"703","rhythm":"reel","key":"Gm"},{"id":"704","rhythm":"reel","key":"D"},{"id":"705","rhythm":"reel","key":"G"},{"id":"706","rhythm":"reel","key":"D"},{"id":"707","rhythm":"reel","key":"D"},{"id":"708","rhythm":"reel","key":"D"},{"id":"709","rhythm":"reel","key":"A"},{"id":"710","rhythm":"reel","key":"Am"},{"id":"711","rhythm":"reel","key":"G"},{"id":"712","rhythm":"reel","key":"Ador"},{"id":"713","rhythm":"reel","key":"D"},{"id":"714","rhythm":"reel","key":"D"},{"id":"715","rhythm":"reel","key":"D"},{"id":"716","rhythm":"reel","key":"G"},{"id":"717","rhythm":"reel","key":"D"},{"id":"718","rhythm":"reel","key":"A"},{"id":"719","rhythm":"reel","key":"G"},{"id":"720","rhythm":"reel","key":"G"},{"id":"721","rhythm":"reel","key":"Ador"},{"id":"722","rhythm":"reel","key":"D"},{"id":"723","rhythm":"reel","key":"A"},{"id":"724","rhythm":"reel","key":"A"},{"id":"725","rhythm":"reel","key":"Am"},{"id":"726","rhythm":"reel","key":"D"},{"id":"727","rhythm":"reel","key":"Am"},{"id":"728","rhythm":"reel","key":"D"},{"id":"729","rhythm":"reel","key":"Ador"},{"id":"730","rhythm":"reel","key":"G"},{"id":"731","rhythm":"reel","key":"D"},{"id":"732","rhythm":"reel","key":"G"},{"id":"733","rhythm":"reel","key":"G"},{"id":"734","rhythm":"reel","key":"A"},{"id":"735","rhythm":"reel","key":"G"},{"id":"736","rhythm":"reel","key":"G"},{"id":"737","rhythm":"reel","key":"D"},{"id":"738","rhythm":"reel","key":"Em"},{"id":"739","rhythm":"reel","key":"G"},{"id":"740","rhythm":"reel","key":"C"},{"id":"741","rhythm":"reel","key":"Em"},{"id":"742","rhythm":"reel","key":"Em"},{"id":"743","rhythm":"reel","key":"D"},{"id":"744","rhythm":"reel","key":"D"},{"id":"745","rhythm":"reel","key":"D"},{"id":"746","rhythm":"reel","key":"D"},{"id":"747","rhythm":"reel","key":"G"},{"id":"748","rhythm":"reel","key":"D"},{"id":"749","rhythm":"reel","key":"Dmix"},{"id":"750","rhythm":"reel","key":"D"},{"id":"751","rhythm":"reel","key":"D"},{"id":"752","rhythm":"reel","key":"G"},{"id":"753","rhythm":"reel","key":"Amix"},{"id":"754","rhythm":"reel","key":"Amix"},{"id":"755","rhythm":"reel","key":"Am"},{"id":"756","rhythm":"reel","key":"G"},{"id":"757","rhythm":"reel","key":"G"},{"id":"758","rhythm":"reel","key":"D"},{"id":"759","rhythm":"reel","key":"G"},{"id":"760","rhythm":"reel","key":"G"},{"id":"761","rhythm":"reel","key":"G"},{"id":"762","rhythm":"reel","key":"D"},{"id":"763","rhythm":"reel","key":"Amix"},{"id":"764","rhythm":"reel","key":"G"},{"id":"765","rhythm":"reel","key":"C"},{"id":"766","rhythm":"reel","key":"Dmix"},{"id":"767","rhythm":"reel","key":"G"},{"id":"768","rhythm":"reel","key":"G"},{"id":"769","rhythm":"reel","key":"G"},{"id":"770","rhythm":"reel","key":"G"},{"id":"771","rhythm":"reel","key":"G"},{"id":"772","rhythm":"reel","key":"G"},{"id":"773","rhythm":"reel","key":"D"},{"id":"774","rhythm":"reel","key":"D"},{"id":"775","rhythm":"reel","key":"G"},{"id":"776","rhythm":"reel","key":"Ddor"},{"id":"777","rhythm":"reel","key":"Em"},{"id":"778","rhythm":"reel","key":"D"},{"id":"779","rhythm":"reel","key":"G"},{"id":"780","rhythm":"reel","key":"Em"},{"id":"781","rhythm":"reel","key":"D"},{"id":"782","rhythm":"reel","key":"D"},{"id":"783","rhythm":"reel","key":"A"},{"id":"784","rhythm":"reel","key":"A"},{"id":"785","rhythm":"reel","key":"D"},{"id":"786","rhythm":"reel","key":"G"},{"id":"787","rhythm":"reel","key":"G"},{"id":"788","rhythm":"reel","key":"G"},{"id":"789","rhythm":"reel","key":"G"},{"id":"790","rhythm":"reel","key":"Em"},{"id":"791","rhythm":"reel","key":"G"},{"id":"792","rhythm":"reel","key":"D"},{"id":"793","rhythm":"reel","key":"G"},{"id":"794","rhythm":"reel","key":"G"},{"id":"795","rhythm":"reel","key":"G"},{"id":"796","rhythm":"reel","key":"Dmix"},{"id":"797","rhythm":"reel","key":"Ador"},{"id":"798","rhythm":"reel","key":"Ddor"},{"id":"799","rhythm":"reel","key":"Em"},{"id":"800","rhythm":"reel","key":"Glyd"},{"id":"801","rhythm":"reel","key":"G"},{"id":"802","rhythm":"reel","key":"G"},{"id":"803","rhythm":"reel","key":"A"},{"id":"804","rhythm":"reel","key":"Em"},{"id":"805","rhythm":"reel","key":"Amix"},{"id":"806","rhythm":"hornpipe","key":"D"},{"id":"807","rhythm":"hornpipe","key":"G"},{"id":"808","rhythm":"hornpipe","key":"G"},{"id":"809","rhythm":"hornpipe","key":"D"},{"id":"810","rhythm":"hornpipe","key":"G"},{"id":"811","rhythm":"hornpipe","key":"Em"},{"id":"812","rhythm":"hornpipe","key":"G"},{"id":"813","rhythm":"hornpipe","key":"G"},{"id":"814","rhythm":"hornpipe","key":"G"},{"id":"815","rhythm":"hornpipe","key":"A"},{"id":"816","rhythm":"hornpipe","key":"D"},{"id":"817","rhythm":"hornpipe","key":"G"},{"id":"818","rhythm":"hornpipe","key":"G"},{"id":"819","rhythm":"hornpipe","key":"D"},{"id":"820","rhythm":"hornpipe","key":"D"},{"id":"821","rhythm":"hornpipe","key":"G"},{"id":"822","rhythm":"hornpipe","key":"G"},{"id":"823","rhythm":"hornpipe","key":"G"},{"id":"824","rhythm":"hornpipe","key":"G"},{"id":"825","rhythm":"hornpipe","key":"D"},{"id":"826","rhythm":"hornpipe","key":"D"},{"id":"827","rhythm":"hornpipe","key":"D"},{"id":"828","rhythm":"hornpipe","key":"D"},{"id":"829","rhythm":"hornpipe","key":"D"},{"id":"830","rhythm":"hornpipe","key":"D"},{"id":"831","rhythm":"hornpipe","key":"A"},{"id":"832","rhythm":"hornpipe","key":"Ador"},{"id":"833","rhythm":"hornpipe","key":"G"},{"id":"834","rhythm":"hornpipe","key":"G"},{"id":"835","rhythm":"hornpipe","key":"G"},{"id":"836","rhythm":"hornpipe","key":"Ador"},{"id":"837","rhythm":"hornpipe","key":"D"},{"id":"838","rhythm":"hornpipe","key":"G"},{"id":"839","rhythm":"hornpipe","key":"Dmix"},{"id":"840","rhythm":"hornpipe","key":"G"},{"id":"841","rhythm":"hornpipe","key":"D"},{"id":"842","rhythm":"hornpipe","key":"G"},{"id":"843","rhythm":"hornpipe","key":"G"},{"id":"844","rhythm":"hornpipe","key":"G"},{"id":"845","rhythm":"hornpipe","key":"A"},{"id":"846","rhythm":"hornpipe","key":"D"},{"id":"847","rhythm":"hornpipe","key":"D"},{"id":"848","rhythm":"hornpipe","key":"D"},{"id":"849","rhythm":"hornpipe","key":"D"},{"id":"850","rhythm":"hornpipe","key":"D"},{"id":"851","rhythm":"hornpipe","key":"G"},{"id":"852","rhythm":"hornpipe","key":"D"},{"id":"853","rhythm":"hornpipe","key":"B"},{"id":"854","rhythm":"hornpipe","key":"A"},{"id":"855","rhythm":"hornpipe","key":"A"},{"id":"856","rhythm":"hornpipe","key":"G"},{"id":"857","rhythm":"hornpipe","key":"G"},{"id":"858","rhythm":"hornpipe","key":"G"},{"id":"859","rhythm":"hornpipe","key":"G"},{"id":"860","rhythm":"hornpipe","key":"G"},{"id":"861","rhythm":"hornpipe","key":"G"},{"id":"862","rhythm":"hornpipe","key":"A"},{"id":"863","rhythm":"hornpipe","key":"A"},{"id":"864","rhythm":"hornpipe","key":"D"},{"id":"865","rhythm":"hornpipe","key":"D"},{"id":"866","rhythm":"hornpipe","key":"A"},{"id":"867","rhythm":"hornpipe","key":"D"},{"id":"868","rhythm":"hornpipe","key":"D"},{"id":"869","rhythm":"hornpipe","key":"A"},{"id":"870","rhythm":"hornpipe","key":"G"},{"id":"871","rhythm":"hornpipe","key":"D"},{"id":"872","rhythm":"hornpipe","key":"G"},{"id":"873","rhythm":"hornpipe","key":"D"},{"id":"874","rhythm":"hornpipe","key":"Dmix"},{"id":"875","rhythm":"hornpipe","key":"G"},{"id":"876","rhythm":"hornpipe","key":"D"},{"id":"877","rhythm":"hornpipe","key":"G"},{"id":"878","rhythm":"hornpipe","key":"D"},{"id":"879","rhythm":"hornpipe","key":"D"},{"id":"880","rhythm":"hornpipe","key":"G"},{"id":"881","rhythm":"hornpipe","key":"D"},{"id":"882","rhythm":"hornpipe","key":"D"},{"id":"883","rhythm":"hornpipe","key":"Amix"},{"id":"884","rhythm":"hornpipe","key":"A"},{"id":"885","rhythm":"hornpipe","key":"G"},{"id":"886","rhythm":"hornpipe","key":"G"},{"id":"887","rhythm":"hornpipe","key":"G"},{"id":"888","rhythm":"hornpipe","key":"G"},{"id":"889","rhythm":"hornpipe","key":"G"},{"id":"890","rhythm":"hornpipe","key":"G"},{"id":"891","rhythm":"hornpipe","key":"D"},{"id":"892","rhythm":"hornpipe","key":"D"},{"id":"893","rhythm":"hornpipe","key":"D"},{"id":"894","rhythm":"hornpipe","key":"G"},{"id":"895","rhythm":"hornpipe","key":"G"},{"id":"896","rhythm":"hornpipe","key":"D"},{"id":"897","rhythm":"hornpipe","key":"G"},{"id":"898","rhythm":"hornpipe","key":"D"},{"id":"899","rhythm":"hornpipe","key":"Ador"},{"id":"900","rhythm":"hornpipe","key":"G"},{"id":"901","rhythm":"hornpipe","key":"A"},{"id":"902","rhythm":"hornpipe","key":"Amix"},{"id":"903","rhythm":"hornpipe","key":"G"},{"id":"904","rhythm":"hornpipe","key":"D"},{"id":"905","rhythm":"hornpipe","key":"G"},{"id":"906","rhythm":"hornpipe","key":"G"},{"id":"907","rhythm":"hornpipe","key":"A"},{"id":"908","rhythm":"hornpipe","key":"G"},{"id":"909","rhythm":"hornpipe","key":"G"},{"id":"910","rhythm":"hornpipe","key":"G"},{"id":"911","rhythm":"hornpipe","key":"G"},{"id":"912","rhythm":"hornpipe","key":"G"},{"id":"913","rhythm":"hornpipe","key":"G"},{"id":"914","rhythm":"hornpipe","key":"D"},{"id":"915","rhythm":"hornpipe","key":"D"},{"id":"916","rhythm":"hornpipe","key":"G"},{"id":"917","rhythm":"hornpipe","key":"A"},{"id":"918","rhythm":"hornpipe","key":"D"},{"id":"919","rhythm":"hornpipe","key":"G"},{"id":"920","rhythm":"hornpipe","key":"G"},{"id":"921","rhythm":"hornpipe","key":"A"},{"id":"922","rhythm":"hornpipe","key":"G"},{"id":"923","rhythm":"hornpipe","key":"G"},{"id":"924","rhythm":"hornpipe","key":"G"},{"id":"925","rhythm":"hornpipe","key":"D"},{"id":"926","rhythm":"hornpipe","key":"Ador"},{"id":"927","rhythm":"hornpipe","key":"A"},{"id":"928","rhythm":"hornpipe","key":"A"},{"id":"929","rhythm":"hornpipe","key":"D"},{"id":"930","rhythm":"hornpipe","key":"D"},{"id":"931","rhythm":"hornpipe","key":"G"},{"id":"932","rhythm":"hornpipe","key":"G"},{"id":"933","rhythm":"hornpipe","key":"G"},{"id":"934","rhythm":"hornpipe","key":"G"},{"id":"935","rhythm":"hornpipe","key":"D"},{"id":"936","rhythm":"hornpipe","key":"D"},{"id":"937","rhythm":"hornpipe","key":"G"},{"id":"938","rhythm":"hornpipe","key":"G"},{"id":"939","rhythm":"hornpipe","key":"G"},{"id":"940","rhythm":"hornpipe","key":"G"},{"id":"941","rhythm":"hornpipe","key":"Ador"},{"id":"942","rhythm":"hornpipe","key":"G"},{"id":"943","rhythm":"hornpipe","key":"G"},{"id":"944","rhythm":"hornpipe","key":"G"},{"id":"945","rhythm":"hornpipe","key":"Am"},{"id":"946","rhythm":"hornpipe","key":"Ador"},{"id":"947","rhythm":"hornpipe","key":"D"},{"id":"948","rhythm":"hornpipe","key":"Gm"},{"id":"949","rhythm":"hornpipe","key":"Ador"},{"id":"950","rhythm":"hornpipe","key":"Em"},{"id":"951","rhythm":"hornpipe","key":"G"},{"id":"952","rhythm":"hornpipe","key":"A"},{"id":"953","rhythm":"hornpipe","key":"G"},{"id":"954","rhythm":"hornpipe","key":"Gm"},{"id":"955","rhythm":"hornpipe","key":"D"},{"id":"956","rhythm":"long dance, set dance","key":"G"},{"id":"957","rhythm":"long dance, set dance","key":"G"},{"id":"958","rhythm":"long dance, set dance","key":"Ador"},{"id":"959","rhythm":"long dance, set dance","key":"Ador"},{"id":"960","rhythm":"long dance, set dance","key":"G"},{"id":"961","rhythm":"long dance, set dance","key":"G"},{"id":"962","rhythm":"long dance, set dance","key":"A"},{"id":"963","rhythm":"long dance, set dance","key":"G"},{"id":"964","rhythm":"long dance, set dance","key":"D"},{"id":"965","rhythm":"long dance, set dance","key":"D"},{"id":"966","rhythm":"long dance, set dance","key":"D"},{"id":"967","rhythm":"long dance, set dance","key":"D"},{"id":"968","rhythm":"long dance, set dance","key":"D"},{"id":"969","rhythm":"long dance, set dance","key":"G"},{"id":"970","rhythm":"long dance, set dance, slip jig","key":"Am"},{"id":"971","rhythm":"long dance, set dance","key":"Em"},{"id":"972","rhythm":"long dance, set dance","key":"G"},{"id":"973","rhythm":"long dance, set dance","key":"D"},{"id":"974","rhythm":"long dance, set dance","key":"D"},{"id":"975","rhythm":"long dance, set dance","key":"G"},{"id":"976","rhythm":"long dance, set dance","key":"G"},{"id":"977","rhythm":"long dance, set dance","key":"G"},{"id":"978","rhythm":"long dance, set dance","key":"Em"},{"id":"979","rhythm":"long dance, set dance","key":"Edor"},{"id":"980","rhythm":"long dance, set dance","key":"D"},{"id":"981","rhythm":"long dance, set dance","key":"G"},{"id":"982","rhythm":"long dance, set dance","key":"D"},{"id":"983","rhythm":"long dance, set dance","key":"Ador"},{"id":"984","rhythm":"long dance, set dance","key":"G"},{"id":"985","rhythm":"long dance, set dance","key":"D"},{"id":"986","rhythm":"reel","key":"A"},{"id":"987","key":"D"},{"id":"988","key":"Am"},{"id":"989","key":"G"},{"id":"990","key":"D"},{"id":"991","rhythm":"jig","key":"C"},{"id":"992","key":"G"},{"id":"993","key":"D"},{"id":"994","key":"G"},{"id":"995","key":"Gm"},{"id":"996","key":"G"},{"id":"997","key":"D"},{"id":"998","key":"D"},{"id":"999","key":"Dmix"},{"id":"1000","key":"Em"},{"id":"1001","rhythm":"jig, march","key":"Ador"}]},{"id":"oneill1850","uri":"ONeill1850.abc","name":"O'Neill 1850","description":"Francis O'Neill: Music of Ireland (1903)","storage":"assets","tunes":[{"id":"1","key":"Gm"},{"id":"2","key":"D"},{"id":"3","key":"Gm"},{"id":"4","key":"D"},{"id":"5","key":"Gm"},{"id":"6","key":"G"},{"id":"7","key":"D"},{"id":"8","key":"D"},{"id":"9","key":"G"},{"id":"10","key":"G"},{"id":"11","key":"Am"},{"id":"12","key":"D"},{"id":"13","key":"D"},{"id":"14","key":"Gm"},{"id":"15","key":"Gm"},{"id":"16","key":"D"},{"id":"17","key":"G"},{"id":"18","key":"G"},{"id":"19","key":"G"},{"id":"20","key":"D"},{"id":"21","key":"Cm"},{"id":"22","key":"Gm"},{"id":"23","key":"C"},{"id":"24","key":"G"},{"id":"25","key":"G"},{"id":"26","key":"G"},{"id":"27","key":"Am"},{"id":"28","key":"Am"},{"id":"29","key":"D"},{"id":"30","key":"A"},{"id":"31","key":"G"},{"id":"32","key":"D"},{"id":"33","key":"G"},{"id":"34","key":"Em"},{"id":"35","key":"Amix"},{"id":"36","key":"G"},{"id":"37","key":"Gm"},{"id":"38","key":"G"},{"id":"39","key":"Gm"},{"id":"40","key":"Gm"},{"id":"41","key":"C"},{"id":"42","key":"G"},{"id":"43","key":"Gm"},{"id":"44","key":"G"},{"id":"45","key":"G"},{"id":"46","key":"Dmix"},{"id":"47","key":"Ador"},{"id":"48","key":"D"},{"id":"49","key":"F"},{"id":"50","key":"G"},{"id":"51","key":"Dm"},{"id":"52","key":"D"},{"id":"53","key":"Gm"},{"id":"54","key":"Cm"},{"id":"55","key":"G"},{"id":"56","key":"C"},{"id":"57","key":"D"},{"id":"58","key":"A"},{"id":"59","key":"Dm"},{"id":"60","key":"Am"},{"id":"61","key":"G"},{"id":"62","key":"G"},{"id":"63","key":"D"},{"id":"64","key":"D"},{"id":"65","key":"G"},{"id":"66","key":"D"},{"id":"67","key":"G"},{"id":"68","key":"Dm"},{"id":"69","key":"Dm"},{"id":"70","key":"Cm"},{"id":"71","key":"Cm"},{"id":"72","key":"G"},{"id":"73","key":"Dm"},{"id":"74","key":"G"},{"id":"75","key":"D"},{"id":"76","key":"Em"},{"id":"77","key":"Dm"},{"id":"78","key":"D"},{"id":"79","key":"D"},{"id":"80","key":"D"},{"id":"81","key":"G"},{"id":"82","key":"G"},{"id":"83","key":"Em"},{"id":"84","key":"Em"},{"id":"85","key":"G"},{"id":"86","key":"Dm"},{"id":"87","key":"Em"},{"id":"88","key":"G"},{"id":"89","key":"C"},{"id":"90","key":"D"},{"id":"91","key":"D"},{"id":"92","key":"D"},{"id":"93","key":"D"},{"id":"94","key":"D"},{"id":"95","key":"G"},{"id":"96","key":"A"},{"id":"97","key":"G"},{"id":"98","key":"G"},{"id":"99","key":"G"},{"id":"100","key":"G"},{"id":"101","key":"A"},{"id":"102","key":"C"},{"id":"103","key":"Am"},{"id":"104","key":"G"},{"id":"105","key":"D"},{"id":"106","key":"Gm"},{"id":"107","key":"G"},{"id":"108","key":"D"},{"id":"109","key":"Gm"},{"id":"110","key":"G"},{"id":"111","key":"Dm"},{"id":"112","key":"B"},{"id":"113","key":"G"},{"id":"114","key":"G"},{"id":"115","key":"G"},{"id":"116","key":"G"},{"id":"117","key":"D"},{"id":"118","key":"F"},{"id":"119","key":"G"},{"id":"120","key":"G"},{"id":"121","key":"G"},{"id":"122","key":"G"},{"id":"123","key":"G"},{"id":"124","key":"D"},{"id":"125","key":"G"},{"id":"126","key":"D"},{"id":"127","key":"D"},{"id":"128","key":"C"},{"id":"129","key":"C"},{"id":"130","key":"Em"},{"id":"131","key":"A"},{"id":"132","key":"G"},{"id":"133","key":"G"},{"id":"134","key":"G"},{"id":"135","key":"G"},{"id":"136","key":"F"},{"id":"137","key":"D"},{"id":"138","key":"G"},{"id":"139","key":"G"},{"id":"140","key":"Dmix"},{"id":"141","key":"B"},{"id":"142","key":"Dm"},{"id":"143","key":"G"},{"id":"144","key":"Gm"},{"id":"145","key":"A"},{"id":"146","key":"Gm"},{"id":"147","key":"B"},{"id":"148","key":"F"},{"id":"149","key":"G"},{"id":"150","key":"A"},{"id":"151","key":"A"},{"id":"152","key":"D"},{"id":"153","key":"G"},{"id":"154","key":"F"},{"id":"155","key":"G"},{"id":"156","key":"Em"},{"id":"157","key":"Gm"},{"id":"158","key":"A"},{"id":"159","key":"G"},{"id":"160","key":"G"},{"id":"161","key":"D"},{"id":"162","key":"G"},{"id":"163","key":"Amix"},{"id":"164","key":"G"},{"id":"165","key":"D"},{"id":"166","key":"G"},{"id":"167","key":"C"},{"id":"168","key":"Gm"},{"id":"169","key":"A"},{"id":"170","key":"A"},{"id":"171","key":"A"},{"id":"172","key":"F"},{"id":"173","key":"B"},{"id":"174","key":"D"},{"id":"175","key":"D"},{"id":"176","key":"Bm"},{"id":"177","key":"A"},{"id":"178","key":"D"},{"id":"179","key":"G"},{"id":"180","key":"Gm"},{"id":"181","key":"Gm"},{"id":"182","key":"G"},{"id":"183","key":"G"},{"id":"184","key":"Dmix"},{"id":"185","key":"Em"},{"id":"186","key":"G"},{"id":"187","key":"G"},{"id":"188","key":"Em"},{"id":"189","key":"G"},{"id":"190","key":"Dm"},{"id":"191","key":"D"},{"id":"192","key":"F"},{"id":"193","key":"Am"},{"id":"194","key":"Gmix"},{"id":"195","key":"D"},{"id":"196","key":"D"},{"id":"197","key":"G"},{"id":"198","key":"G"},{"id":"199","key":"D"},{"id":"200","key":"D"},{"id":"201","key":"D"},{"id":"202","key":"A"},{"id":"203","key":"G"},{"id":"204","key":"A"},{"id":"205","key":"G"},{"id":"206","key":"G"},{"id":"207","key":"D"},{"id":"208","key":"A"},{"id":"209","key":"Gdor"},{"id":"210","key":"Am"},{"id":"211","key":"D"},{"id":"212","key":"G"},{"id":"213","key":"G"},{"id":"214","key":"G"},{"id":"215","key":"A"},{"id":"216","key":"Ador"},{"id":"217","key":"G"},{"id":"218","key":"F"},{"id":"219","key":"D"},{"id":"220","key":"Gm"},{"id":"221","key":"G"},{"id":"222","key":"G"},{"id":"223","key":"G"},{"id":"224","key":"G"},{"id":"225","key":"Dm"},{"id":"226","key":"G"},{"id":"227","key":"G"},{"id":"228","key":"G"},{"id":"229","key":"G"},{"id":"230","key":"B"},{"id":"231","key":"D"},{"id":"232","key":"G"},{"id":"233","key":"D"},{"id":"234","key":"G"},{"id":"235","key":"G"},{"id":"236","key":"G"},{"id":"237","key":"G"},{"id":"238","key":"G"},{"id":"239","key":"G"},{"id":"240","key":"Dm"},{"id":"241","key":"D"},{"id":"242","key":"G"},{"id":"243","key":"A"},{"id":"244","key":"C"},{"id":"245","key":"D"},{"id":"246","key":"G"},{"id":"247","key":"G"},{"id":"248","key":"G"},{"id":"249","key":"G"},{"id":"250","key":"G"},{"id":"251","key":"G"},{"id":"252","key":"Gm"},{"id":"253","key":"Gm"},{"id":"254","key":"Gm"},{"id":"255","key":"A"},{"id":"256","key":"F"},{"id":"257","key":"D"},{"id":"258","key":"G"},{"id":"259","key":"D"},{"id":"260","key":"Ador"},{"id":"261","key":"G"},{"id":"262","key":"D"},{"id":"263","key":"G"},{"id":"264","key":"D"},{"id":"265","key":"C"},{"id":"266","key":"Em"},{"id":"267","key":"D"},{"id":"268","key":"G"},{"id":"269","key":"Am"},{"id":"270","key":"Am"},{"id":"271","key":"G"},{"id":"272","key":"G"},{"id":"273","key":"G"},{"id":"274","key":"D"},{"id":"275","key":"G"},{"id":"276","key":"G"},{"id":"277","key":"D"},{"id":"278","key":"Dm"},{"id":"279","key":"G"},{"id":"280","key":"G"},{"id":"281","key":"Gm"},{"id":"282","key":"G"},{"id":"283","key":"Dm"},{"id":"284","key":"Gm"},{"id":"285","key":"D"},{"id":"286","key":"D"},{"id":"287","key":"D"},{"id":"288","key":"Gm"},{"id":"289","key":"D"},{"id":"290","key":"A"},{"id":"291","key":"D"},{"id":"292","key":"F"},{"id":"293","key":"D"},{"id":"294","key":"G"},{"id":"295","key":"D"},{"id":"296","key":"Am"},{"id":"297","key":"Gm"},{"id":"298","key":"G"},{"id":"299","key":"G"},{"id":"300","key":"Amix"},{"id":"301","key":"G"},{"id":"302","key":"G"},{"id":"303","key":"G"},{"id":"304","key":"G"},{"id":"305","key":"D"},{"id":"306","key":"D"},{"id":"307","key":"D"},{"id":"308","key":"F"},{"id":"309","key":"D"},{"id":"310","key":"G"},{"id":"311","key":"C"},{"id":"312","key":"G"},{"id":"313","key":"G"},{"id":"314","key":"C"},{"id":"315","key":"A"},{"id":"316","key":"G"},{"id":"317","key":"G"},{"id":"318","key":"G"},{"id":"319","key":"Am"},{"id":"320","key":"D"},{"id":"321","key":"G"},{"id":"322","key":"D"},{"id":"323","key":"D"},{"id":"324","key":"F"},{"id":"325","key":"F"},{"id":"326","key":"G"},{"id":"327","key":"G"},{"id":"328","key":"Gm"},{"id":"329","key":"D"},{"id":"330","key":"G"},{"id":"331","key":"A"},{"id":"332","key":"Em"},{"id":"333","key":"Em"},{"id":"334","key":"D"},{"id":"335","key":"D"},{"id":"336","key":"D"},{"id":"337","key":"G"},{"id":"338","key":"G"},{"id":"339","key":"G"},{"id":"340","key":"D"},{"id":"341","key":"D"},{"id":"342","key":"A"},{"id":"343","key":"G"},{"id":"344","key":"Gm"},{"id":"345","key":"D"},{"id":"346","key":"G"},{"id":"347","key":"Amix"},{"id":"348","key":"Am"},{"id":"349","key":"Dm"},{"id":"350","key":"G"},{"id":"351","key":"G"},{"id":"352","key":"G"},{"id":"353","key":"G"},{"id":"354","key":"Gm"},{"id":"355","key":"Dm"},{"id":"356","key":"Gm"},{"id":"357","key":"C"},{"id":"358","key":"G"},{"id":"359","key":"G"},{"id":"360","key":"D"},{"id":"361","key":"G"},{"id":"362","key":"D"},{"id":"363","key":"D"},{"id":"364","key":"D"},{"id":"365","key":"D"},{"id":"366","key":"G"},{"id":"367","key":"G"},{"id":"368","key":"G"},{"id":"369","key":"Gm"},{"id":"370","key":"G"},{"id":"371","key":"A"},{"id":"372","key":"G"},{"id":"373","key":"C"},{"id":"374","key":"F"},{"id":"375","key":"G"},{"id":"376","key":"C"},{"id":"377","key":"A"},{"id":"378","key":"Am"},{"id":"379","key":"D"},{"id":"380","key":"G"},{"id":"381","key":"G"},{"id":"382","key":"G"},{"id":"383","key":"F"},{"id":"384","key":"Gm"},{"id":"385","key":"G"},{"id":"386","key":"A"},{"id":"387","key":"F"},{"id":"388","key":"G"},{"id":"389","key":"D"},{"id":"390","key":"G"},{"id":"391","key":"D"},{"id":"392","key":"D"},{"id":"393","key":"B"},{"id":"394","key":"C"},{"id":"395","key":"G"},{"id":"396","key":"Am"},{"id":"397","key":"Am"},{"id":"398","key":"G"},{"id":"399","key":"Dm"},{"id":"400","key":"Dm"},{"id":"401","key":"A"},{"id":"402","key":"A"},{"id":"403","key":"D"},{"id":"404","key":"G"},{"id":"405","key":"Amix"},{"id":"406","key":"G"},{"id":"407","key":"G"},{"id":"408","key":"G"},{"id":"409","key":"D"},{"id":"410","key":"G"},{"id":"411","key":"D"},{"id":"412","key":"G"},{"id":"413","key":"D"},{"id":"414","key":"G"},{"id":"415","key":"Dm"},{"id":"416","key":"D"},{"id":"417","key":"Aphr"},{"id":"418","key":"G"},{"id":"419","key":"F"},{"id":"420","key":"D"},{"id":"421","key":"A"},{"id":"422","key":"G"},{"id":"423","key":"D"},{"id":"424","key":"G"},{"id":"425","key":"Dm"},{"id":"426","key":"G"},{"id":"427","key":"Gm"},{"id":"428","key":"Gm"},{"id":"429","key":"D"},{"id":"430","key":"Dm"},{"id":"431","key":"D"},{"id":"432","key":"D"},{"id":"433","key":"G"},{"id":"434","key":"A"},{"id":"435","key":"G"},{"id":"436","key":"G"},{"id":"437","key":"Gm"},{"id":"438","key":"G"},{"id":"439","key":"G"},{"id":"440","key":"G"},{"id":"441","key":"C"},{"id":"442","key":"F"},{"id":"443","key":"G"},{"id":"444","key":"C"},{"id":"445","key":"G"},{"id":"446","key":"G"},{"id":"447","key":"G"},{"id":"448","key":"G"},{"id":"449","key":"G"},{"id":"450","key":"G"},{"id":"451","key":"D"},{"id":"452","key":"G"},{"id":"453","key":"D"},{"id":"454","key":"Dm"},{"id":"455","key":"C"},{"id":"456","key":"Gm"},{"id":"457","key":"G"},{"id":"458","key":"Dm"},{"id":"459","key":"G"},{"id":"460","key":"G"},{"id":"461","key":"Gm"},{"id":"462","key":"D"},{"id":"463","key":"Dm"},{"id":"464","key":"G"},{"id":"465","key":"A"},{"id":"466","key":"Am"},{"id":"467","key":"G"},{"id":"468","key":"Am"},{"id":"469","key":"Gdor"},{"id":"470","key":"Gdor"},{"id":"471","key":"Em"},{"id":"472","key":"C"},{"id":"473","key":"Gm"},{"id":"474","key":"Gm"},{"id":"475","key":"Am"},{"id":"476","key":"Am"},{"id":"477","key":"D"},{"id":"478","key":"G"},{"id":"479","key":"G"},{"id":"480","key":"Dm"},{"id":"481","key":"Am"},{"id":"482","key":"D"},{"id":"483","key":"G"},{"id":"484","key":"G"},{"id":"485","key":"Gm"},{"id":"486","key":"Gm"},{"id":"487","key":"Gm"},{"id":"488","key":"D"},{"id":"489","key":"F"},{"id":"490","key":"G"},{"id":"491","key":"D"},{"id":"492","key":"Am"},{"id":"493","key":"G"},{"id":"494","key":"G"},{"id":"495","key":"C"},{"id":"496","key":"B"},{"id":"497","key":"C"},{"id":"498","key":"G"},{"id":"499","key":"G"},{"id":"500","key":"D"},{"id":"501","key":"D"},{"id":"502","key":"D"},{"id":"503","key":"F"},{"id":"504","key":"Dm"},{"id":"505","key":"D"},{"id":"506","key":"D"},{"id":"507","key":"G"},{"id":"508","key":"G"},{"id":"509","key":"G"},{"id":"510","key":"A"},{"id":"511","key":"F"},{"id":"512","key":"G"},{"id":"513","key":"Gm"},{"id":"514","key":"A"},{"id":"515","key":"D"},{"id":"516","key":"Gm"},{"id":"517","key":"G"},{"id":"518","key":"G"},{"id":"519","key":"G"},{"id":"520","key":"G"},{"id":"521","key":"G"},{"id":"522","key":"G"},{"id":"523","key":"F"},{"id":"524","key":"G"},{"id":"525","key":"G"},{"id":"526","key":"G"},{"id":"527","key":"Gm"},{"id":"528","key":"G"},{"id":"529","key":"G"},{"id":"530","key":"D"},{"id":"531","key":"G"},{"id":"532","key":"G"},{"id":"533","key":"G"},{"id":"534","key":"G"},{"id":"535","key":"Gm"},{"id":"536","key":"G"},{"id":"537","key":"G"},{"id":"538","key":"D"},{"id":"539","key":"Dphr"},{"id":"540","key":"G"},{"id":"541","key":"D"},{"id":"542","key":"G"},{"id":"543","key":"D"},{"id":"544","key":"E"},{"id":"545","key":"Dm"},{"id":"546","key":"Gm"},{"id":"547","key":"D"},{"id":"548","key":"G"},{"id":"549","key":"D"},{"id":"550","key":"G"},{"id":"551","key":"Gm"},{"id":"552","key":"G"},{"id":"553","rhythm":"jig","key":"C"},{"id":"554","key":"Dm"},{"id":"555","key":"Gm"},{"id":"556","key":"D"},{"id":"557","rhythm":"waltz","key":"D"},{"id":"558","key":"C"},{"id":"559","key":"Dmix"},{"id":"560","rhythm":"air","key":"F"},{"id":"561","rhythm":"waltz","key":"Dm"},{"id":"562","rhythm":"air","key":"Amix"},{"id":"563","rhythm":"air","key":"G"},{"id":"564","rhythm":"jig","key":"G"},{"id":"565","rhythm":"jig","key":"C"},{"id":"566","key":"C"},{"id":"567","rhythm":"jig","key":"G"},{"id":"568","rhythm":"air","key":"G"},{"id":"569","rhythm":"air","key":"Em"},{"id":"570","rhythm":"air","key":"G"},{"id":"571","rhythm":"jig","key":"Em"},{"id":"572","key":"G"},{"id":"573","rhythm":"jig","key":"C"},{"id":"574","rhythm":"jig","key":"D"},{"id":"575","key":"G"},{"id":"576","key":"Gm"},{"id":"577","rhythm":"air","key":"D"},{"id":"578","key":"D"},{"id":"579","key":"D"},{"id":"580","key":"Am"},{"id":"581","key":"D"},{"id":"582","rhythm":"air","key":"G"},{"id":"583","rhythm":"jig","key":"Gm"},{"id":"584","rhythm":"jig","key":"Gmix"},{"id":"585","key":"G"},{"id":"586","key":"D"},{"id":"587","rhythm":"march","key":"D"},{"id":"588","key":"G"},{"id":"589","key":"D"},{"id":"590","key":"G"},{"id":"591","rhythm":"reel","key":"G"},{"id":"592","rhythm":"air","key":"Em"},{"id":"593","rhythm":"waltz","key":"F"},{"id":"594","rhythm":"air","key":"D"},{"id":"595","rhythm":"air","key":"F"},{"id":"596","rhythm":"air","key":"Dm"},{"id":"597","rhythm":"air","key":"Dm"},{"id":"598","rhythm":"air","key":"Dm"},{"id":"599","key":"F"},{"id":"600","rhythm":"air","key":"F"},{"id":"601","rhythm":"air","key":"A"},{"id":"602","rhythm":"air","key":"A"},{"id":"603","key":"D"},{"id":"604","rhythm":"air","key":"D"},{"id":"605","rhythm":"air","key":"G"},{"id":"606","rhythm":"air","key":"G"},{"id":"607","rhythm":"air","key":"Gmix"},{"id":"608","rhythm":"air","key":"C"},{"id":"609","rhythm":"air","key":"Ddor"},{"id":"610","rhythm":"waltz","key":"G"},{"id":"611","rhythm":"air","key":"G"},{"id":"612","rhythm":"air","key":"D"},{"id":"613","key":"A"},{"id":"614","rhythm":"air","key":"G"},{"id":"615","rhythm":"air","key":"G"},{"id":"616","rhythm":"air","key":"Gm"},{"id":"617","rhythm":"air","key":"G"},{"id":"618","rhythm":"air","key":"G"},{"id":"619","rhythm":"air","key":"G"},{"id":"620","rhythm":"air","key":"G"},{"id":"621","rhythm":"air","key":"D"},{"id":"622","rhythm":"waltz","key":"G"},{"id":"623","rhythm":"air","key":"G"},{"id":"624","rhythm":"air","key":"G"},{"id":"625","rhythm":"air","key":"C"},{"id":"626","key":"Gm"},{"id":"627","key":"Em"},{"id":"628","key":"Am"},{"id":"629","key":"Gm"},{"id":"630","key":"Dm"},{"id":"631","key":"Gm"},{"id":"632","key":"A"},{"id":"633","key":"D"},{"id":"634","key":"G"},{"id":"635","key":"D"},{"id":"636","key":"D"},{"id":"637","key":"G"},{"id":"638","key":"D"},{"id":"639","key":"D"},{"id":"640","key":"G"},{"id":"641","key":"Gm"},{"id":"642","key":"A"},{"id":"643","key":"G"},{"id":"644","key":"Dm"},{"id":"645","key":"G"},{"id":"646","key":"F"},{"id":"647","key":"Dm"},{"id":"648","key":"D"},{"id":"649","key":"Gm"},{"id":"650","key":"G"},{"id":"651","key":"G"},{"id":"652","key":"D"},{"id":"653","key":"Am"},{"id":"654","key":"Dm"},{"id":"655","key":"D"},{"id":"656","key":"D"},{"id":"657","key":"G"},{"id":"658","key":"Gm"},{"id":"659","key":"D"},{"id":"660","key":"G"},{"id":"661","key":"G"},{"id":"662","key":"D"},{"id":"663","key":"G"},{"id":"664","key":"Gm"},{"id":"665","key":"D"},{"id":"666","key":"G"},{"id":"667","key":"B"},{"id":"668","key":"G"},{"id":"669","key":"G"},{"id":"670","key":"D"},{"id":"671","key":"C"},{"id":"672","key":"D"},{"id":"673","key":"A"},{"id":"674","key":"G"},{"id":"675","key":"Gm"},{"id":"676","key":"A"},{"id":"677","key":"D"},{"id":"678","key":"Am"},{"id":"679","key":"Gm"},{"id":"680","key":"Gm"},{"id":"681","key":"Dm"},{"id":"682","key":"C"},{"id":"683","key":"D"},{"id":"684","key":"D"},{"id":"685","key":"D"},{"id":"686","key":"G"},{"id":"687","key":"Dm"},{"id":"688","key":"Gm"},{"id":"689","key":"Gm"},{"id":"690","key":"Gm"},{"id":"691","key":"D"},{"id":"692","key":"G"},{"id":"693","key":"C"},{"id":"694","key":"G"},{"id":"695","key":"G"},{"id":"696","rhythm":"","key":"D"},{"id":"697","rhythm":"","key":"Em"},{"id":"698","rhythm":"","key":"Dm"},{"id":"699","rhythm":"","key":"Gm"},{"id":"700","rhythm":"","key":"Am"},{"id":"701","key":"D"},{"id":"702","key":"D"},{"id":"703","key":"G"},{"id":"704","key":"D"},{"id":"705","key":"Am"},{"id":"706","key":"D"},{"id":"707","key":"C"},{"id":"708","key":"G"},{"id":"709","key":"D"},{"id":"710","key":"D"},{"id":"711","key":"G"},{"id":"712","key":"Am"},{"id":"713","key":"A"},{"id":"714","key":"D"},{"id":"715","key":"G"},{"id":"716","key":"Dmix"},{"id":"717","key":"A"},{"id":"718","key":"A"},{"id":"719","key":"D"},{"id":"720","key":"G"},{"id":"721","rhythm":"jig","key":"D"},{"id":"722","rhythm":"jig","key":"G"},{"id":"723","rhythm":"jig","key":"G"},{"id":"724","rhythm":"jig","key":"G"},{"id":"725","rhythm":"jig","key":"D"},{"id":"726","rhythm":"jig","key":"D"},{"id":"727","rhythm":"jig","key":"G"},{"id":"728","rhythm":"jig","key":"D"},{"id":"729","rhythm":"jig","key":"Am"},{"id":"730","rhythm":"jig","key":"D"},{"id":"731","rhythm":"double jig","key":"G"},{"id":"732","rhythm":"jig","key":"D"},{"id":"733","rhythm":"jig","key":"G"},{"id":"734","rhythm":"jig","key":"D"},{"id":"735","rhythm":"jig","key":"Em"},{"id":"736","rhythm":"jig","key":"Dmix"},{"id":"737","rhythm":"jig","key":"Dmix"},{"id":"738","rhythm":"jig","key":"Em"},{"id":"739","rhythm":"jig","key":"A"},{"id":"740","rhythm":"jig","key":"Am"},{"id":"741","rhythm":"jig","key":"D"},{"id":"742","rhythm":"jig","key":"D"},{"id":"743","rhythm":"jig","key":"C"},{"id":"744","rhythm":"jig","key":"Bm"},{"id":"745","rhythm":"jig","key":"B"},{"id":"746","rhythm":"jig","key":"Am"},{"id":"747","rhythm":"jig","key":"A"},{"id":"748","rhythm":"jig","key":"D"},{"id":"749","rhythm":"jig","key":"G"},{"id":"750","rhythm":"jig","key":"D"},{"id":"751","rhythm":"jig","key":"D"},{"id":"752","rhythm":"jig","key":"G"},{"id":"753","rhythm":"jig","key":"G"},{"id":"754","rhythm":"jig","key":"D"},{"id":"755","rhythm":"jig","key":"Em"},{"id":"756","rhythm":"jig","key":"Em"},{"id":"757","rhythm":"jig","key":"G"},{"id":"758","rhythm":"jig","key":"A"},{"id":"759","rhythm":"jig","key":"G"},{"id":"760","rhythm":"jig","key":"G"},{"id":"761","rhythm":"jig","key":"G"},{"id":"762","rhythm":"jig","key":"G"},{"id":"763","rhythm":"jig","key":"G"},{"id":"764","rhythm":"jig","key":"D"},{"id":"765","rhythm":"jig","key":"Am"},{"id":"766","rhythm":"jig","key":"G"},{"id":"767","rhythm":"jig","key":"Dmix"},{"id":"768","rhythm":"jig","key":"A"},{"id":"769","rhythm":"jig","key":"Dmix"},{"id":"770","rhythm":"jig","key":"Gm"},{"id":"771","rhythm":"jig","key":"A"},{"id":"772","rhythm":"jig","key":"C"},{"id":"773","rhythm":"jig","key":"Em"},{"id":"774","rhythm":"jig","key":"G"},{"id":"775","rhythm":"jig","key":"D"},{"id":"776","rhythm":"jig","key":"D"},{"id":"777","rhythm":"jig","key":"G"},{"id":"778","rhythm":"jig","key":"G"},{"id":"779","rhythm":"jig","key":"D"},{"id":"780","rhythm":"jig","key":"D"},{"id":"781","rhythm":"jig","key":"G"},{"id":"782","rhythm":"jig","key":"G"},{"id":"783","rhythm":"jig","key":"D"},{"id":"784","rhythm":"jig","key":"D"},{"id":"785","rhythm":"jig","key":"Amix"},{"id":"786","rhythm":"jig","key":"Em"},{"id":"787","rhythm":"slide","key":"Em"},{"id":"788","rhythm":"jig","key":"G"},{"id":"789","rhythm":"jig","key":"Am"},{"id":"790","rhythm":"jig","key":"D"},{"id":"791","rhythm":"jig","key":"D"},{"id":"792","rhythm":"jig","key":"Am"},{"id":"793","rhythm":"jig","key":"A"},{"id":"794","rhythm":"jig","key":"D"},{"id":"795","rhythm":"jig","key":"G"},{"id":"796","rhythm":"jig","key":"G"},{"id":"797","rhythm":"jig","key":"Dmix"},{"id":"798","rhythm":"jig","key":"Em"},{"id":"799","rhythm":"jig","key":"G"},{"id":"800","rhythm":"jig","key":"G"},{"id":"801","rhythm":"jig","key":"Ddor"},{"id":"802","rhythm":"jig","key":"G"},{"id":"803","rhythm":"jig","key":"A"},{"id":"804","rhythm":"jig","key":"A"},{"id":"805","rhythm":"jig","key":"G"},{"id":"806","rhythm":"jig","key":"A"},{"id":"807","rhythm":"jig","key":"G"},{"id":"808","rhythm":"jig","key":"G"},{"id":"809","rhythm":"jig","key":"D"},{"id":"810","rhythm":"jig","key":"A"},{"id":"811","key":"A"},{"id":"812","key":"D"},{"id":"813","key":"A"},{"id":"814","key":"D"},{"id":"815","key":"A"},{"id":"816","key":"G"},{"id":"817","key":"G"},{"id":"818","key":"G"},{"id":"819","key":"A"},{"id":"820","key":"A"},{"id":"821","key":"G"},{"id":"822","key":"D"},{"id":"823","key":"D"},{"id":"824","key":"G"},{"id":"825","key":"G"},{"id":"826","key":"Am"},{"id":"827","key":"D"},{"id":"828","key":"G"},{"id":"829","key":"Am"},{"id":"830","key":"G"},{"id":"831","key":"D"},{"id":"832","key":"G"},{"id":"833","key":"D"},{"id":"834","key":"G"},{"id":"835","key":"G"},{"id":"836","key":"D"},{"id":"837","key":"Em"},{"id":"838","key":"A"},{"id":"839","key":"G"},{"id":"840","key":"A"},{"id":"841","key":"G"},{"id":"842","key":"G"},{"id":"843","key":"G"},{"id":"844","key":"A"},{"id":"845","key":"D"},{"id":"846","key":"G"},{"id":"847","key":"G"},{"id":"848","key":"G"},{"id":"849","key":"Am"},{"id":"850","key":"G"},{"id":"851","key":"G"},{"id":"852","key":"G"},{"id":"853","key":"G"},{"id":"854","key":"G"},{"id":"855","key":"D"},{"id":"856","key":"G"},{"id":"857","key":"A"},{"id":"858","key":"Em"},{"id":"859","key":"Em"},{"id":"860","key":"G"},{"id":"861","key":"G"},{"id":"862","key":"G"},{"id":"863","key":"Em"},{"id":"864","key":"D"},{"id":"865","key":"Am"},{"id":"866","key":"G"},{"id":"867","key":"G"},{"id":"868","key":"Gm"},{"id":"869","key":"G"},{"id":"870","key":"D"},{"id":"871","key":"D"},{"id":"872","key":"D"},{"id":"873","key":"G"},{"id":"874","key":"Em"},{"id":"875","key":"D"},{"id":"876","key":"G"},{"id":"877","key":"G"},{"id":"878","key":"G"},{"id":"879","key":"G"},{"id":"880","key":"Em"},{"id":"881","key":"Am"},{"id":"882","key":"G"},{"id":"883","key":"D"},{"id":"884","key":"G"},{"id":"885","key":"D"},{"id":"886","key":"D"},{"id":"887","key":"Fm"},{"id":"888","key":"A"},{"id":"889","key":"G"},{"id":"890","key":"A"},{"id":"891","key":"G"},{"id":"892","key":"D"},{"id":"893","key":"G"},{"id":"894","key":"D"},{"id":"895","key":"A"},{"id":"896","key":"Em"},{"id":"897","key":"Bm"},{"id":"898","key":"Em"},{"id":"899","key":"D"},{"id":"900","rhythm":"jig","key":"G"},{"id":"901","rhythm":"jig","key":"D"},{"id":"902","rhythm":"jig","key":"Am"},{"id":"903","rhythm":"jig","key":"D"},{"id":"904","rhythm":"jig","key":"G"},{"id":"905","rhythm":"jig","key":"D"},{"id":"906","rhythm":"jig","key":"D"},{"id":"907","rhythm":"jig","key":"A"},{"id":"908","rhythm":"jig","key":"Am"},{"id":"909","rhythm":"jig","key":"Gmix"},{"id":"910","rhythm":"jig","key":"D"},{"id":"911","rhythm":"jig","key":"A"},{"id":"912","rhythm":"jig","key":"G"},{"id":"913","rhythm":"jig","key":"Em"},{"id":"914","rhythm":"jig","key":"D"},{"id":"915","rhythm":"jig","key":"Em"},{"id":"916","rhythm":"jig","key":"G"},{"id":"917","rhythm":"jig","key":"G"},{"id":"918","rhythm":"jig","key":"G"},{"id":"919","rhythm":"jig","key":"Em"},{"id":"920","rhythm":"jig","key":"D"},{"id":"921","rhythm":"jig","key":"D"},{"id":"922","rhythm":"jig","key":"G"},{"id":"923","rhythm":"jig","key":"A"},{"id":"924","rhythm":"jig","key":"A"},{"id":"925","rhythm":"jig","key":"D"},{"id":"926","rhythm":"jig","key":"D"},{"id":"927","rhythm":"jig","key":"A"},{"id":"928","rhythm":"jig","key":"D"},{"id":"929","rhythm":"jig","key":"Am"},{"id":"930","rhythm":"jig","key":"Am"},{"id":"931","rhythm":"jig","key":"D"},{"id":"932","rhythm":"jig","key":"Dlyd"},{"id":"933","rhythm":"jig","key":"G"},{"id":"934","rhythm":"jig","key":"A"},{"id":"935","rhythm":"jig","key":"A"},{"id":"936","rhythm":"jig","key":"A"},{"id":"937","rhythm":"jig","key":"D"},{"id":"938","rhythm":"jig","key":"D"},{"id":"939","rhythm":"jig","key":"A"},{"id":"940","rhythm":"jig","key":"Em"},{"id":"941","rhythm":"jig","key":"D"},{"id":"942","rhythm":"jig","key":"D"},{"id":"943","rhythm":"jig","key":"G"},{"id":"944","rhythm":"jig","key":"C"},{"id":"945","rhythm":"jig","key":"G"},{"id":"946","rhythm":"jig","key":"G"},{"id":"947","rhythm":"jig","key":"C"},{"id":"948","rhythm":"jig","key":"A"},{"id":"949","rhythm":"jig","key":"D"},{"id":"950","rhythm":"jig","key":"G"},{"id":"951","key":"G"},{"id":"952","key":"A"},{"id":"953","key":"D"},{"id":"954","key":"G"},{"id":"955","key":"G"},{"id":"956","key":"Am"},{"id":"957","key":"Am"},{"id":"958","key":"A"},{"id":"959","key":"Em"},{"id":"960","key":"Am"},{"id":"961","key":"D"},{"id":"962","key":"G"},{"id":"963","key":"G"},{"id":"964","key":"D"},{"id":"965","key":"D"},{"id":"966","key":"C"},{"id":"967","key":"Am"},{"id":"968","key":"D"},{"id":"969","key":"Am"},{"id":"970","key":"Em"},{"id":"971","key":"G"},{"id":"972","key":"G"},{"id":"973","key":"Am"},{"id":"974","key":"D"},{"id":"975","key":"G"},{"id":"976","key":"G"},{"id":"977","key":"Em"},{"id":"978","key":"A"},{"id":"979","key":"G"},{"id":"980","key":"D"},{"id":"981","key":"Am"},{"id":"982","rhythm":"double jig","key":"G"},{"id":"983","rhythm":"double jig","key":"D"},{"id":"984","rhythm":"double jig","key":"D"},{"id":"985","rhythm":"double jig","key":"C"},{"id":"986","rhythm":"double jig","key":"D"},{"id":"987","rhythm":"double jig","key":"D"},{"id":"988","rhythm":"double jig","key":"D"},{"id":"989","rhythm":"double jig","key":"F"},{"id":"990","rhythm":"double jig","key":"Am"},{"id":"991","rhythm":"double jig","key":"G"},{"id":"992","rhythm":"double jig","key":"G"},{"id":"993","rhythm":"double jig","key":"Em"},{"id":"994","rhythm":"double jig","key":"Am"},{"id":"995","rhythm":"double jig","key":"D"},{"id":"996","rhythm":"double jig","key":"D"},{"id":"997","rhythm":"double jig","key":"G"},{"id":"998","rhythm":"double jig","key":"G"},{"id":"999","rhythm":"double jig","key":"D"},{"id":"1000","rhythm":"double jig","key":"Em"},{"id":"1001","key":"D"},{"id":"1002","key":"A"},{"id":"1003","key":"Bm"},{"id":"1004","key":"G"},{"id":"1005","key":"G"},{"id":"1006","key":"G"},{"id":"1007","key":"Am"},{"id":"1008","key":"Dm"},{"id":"1009","key":"Am"},{"id":"1010","key":"D"},{"id":"1011","key":"G"},{"id":"1012","key":"Am"},{"id":"1013","key":"A"},{"id":"1014","key":"D"},{"id":"1015","key":"D"},{"id":"1016","key":"G"},{"id":"1017","key":"A"},{"id":"1018","key":"A"},{"id":"1019","key":"Em"},{"id":"1020","key":"Am"},{"id":"1021","key":"G"},{"id":"1022","key":"D"},{"id":"1023","key":"Am"},{"id":"1024","key":"G"},{"id":"1025","key":"D"},{"id":"1026","key":"G"},{"id":"1027","key":"G"},{"id":"1028","key":"A"},{"id":"1029","key":"A"},{"id":"1030","key":"G"},{"id":"1031","key":"D"},{"id":"1032","rhythm":"double jig","key":"G"},{"id":"1033","rhythm":"double jig","key":"Em"},{"id":"1034","rhythm":"double jig","key":"A"},{"id":"1035","rhythm":"double jig","key":"G"},{"id":"1036","rhythm":"double jig","key":"A"},{"id":"1037","rhythm":"double jig","key":"D"},{"id":"1038","rhythm":"double jig","key":"G"},{"id":"1039","rhythm":"double jig","key":"G"},{"id":"1040","rhythm":"double jig","key":"D"},{"id":"1041","rhythm":"double jig","key":"G"},{"id":"1042","rhythm":"double jig","key":"G"},{"id":"1043","rhythm":"double jig","key":"D"},{"id":"1044","rhythm":"double jig","key":"Amix"},{"id":"1045","rhythm":"double jig","key":"A"},{"id":"1046","rhythm":"double jig","key":"C"},{"id":"1047","rhythm":"double jig","key":"D"},{"id":"1048","rhythm":"double jig","key":"D"},{"id":"1049","rhythm":"double jig","key":"A"},{"id":"1050","rhythm":"double jig","key":"Am"},{"id":"1051","rhythm":"double jig","key":"D"},{"id":"1052","rhythm":"double jig","key":"C"},{"id":"1053","rhythm":"double jig","key":"G"},{"id":"1054","rhythm":"double jig","key":"Gm"},{"id":"1055","rhythm":"double jig","key":"D"},{"id":"1056","rhythm":"double jig","key":"A"},{"id":"1057","rhythm":"double jig","key":"G"},{"id":"1058","rhythm":"double jig","key":"D"},{"id":"1059","rhythm":"double jig","key":"D"},{"id":"1060","rhythm":"double jig","key":"Am"},{"id":"1061","rhythm":"double jig","key":"F"},{"id":"1062","rhythm":"double jig","key":"D"},{"id":"1063","rhythm":"double jig","key":"D"},{"id":"1064","rhythm":"double jig","key":"A"},{"id":"1065","rhythm":"double jig","key":"F"},{"id":"1066","rhythm":"double jig","key":"G"},{"id":"1067","rhythm":"double jig","key":"D"},{"id":"1068","rhythm":"double jig","key":"G"},{"id":"1069","rhythm":"double jig","key":"G"},{"id":"1070","rhythm":"double jig","key":"D"},{"id":"1071","rhythm":"double jig","key":"D"},{"id":"1072","rhythm":"double jig","key":"G"},{"id":"1073","rhythm":"double jig","key":"D"},{"id":"1074","rhythm":"double jig","key":"G"},{"id":"1075","rhythm":"double jig","key":"Dm"},{"id":"1076","rhythm":"double jig","key":"A"},{"id":"1077","rhythm":"double jig","key":"G"},{"id":"1078","rhythm":"double jig","key":"G"},{"id":"1079","rhythm":"double jig","key":"D"},{"id":"1080","rhythm":"double jig","key":"G"},{"id":"1081","rhythm":"double jig","key":"Am"},{"id":"1082","rhythm":"double jig","key":"G"},{"id":"1083","rhythm":"double jig","key":"G"},{"id":"1084","rhythm":"double jig","key":"A"},{"id":"1085","rhythm":"double jig","key":"D"},{"id":"1086","rhythm":"double jig","key":"G"},{"id":"1087","rhythm":"double jig","key":"D"},{"id":"1088","rhythm":"double jig","key":"D"},{"id":"1089","rhythm":"double jig","key":"G"},{"id":"1090","rhythm":"double jig","key":"D"},{"id":"1091","rhythm":"double jig","key":"C"},{"id":"1092","rhythm":"double jig","key":"G"},{"id":"1093","rhythm":"double jig","key":"G"},{"id":"1094","rhythm":"double jig","key":"A"},{"id":"1095","rhythm":"double jig","key":"C"},{"id":"1096","rhythm":"double jig","key":"G"},{"id":"1097","rhythm":"double jig","key":"G"},{"id":"1098","rhythm":"double jig","key":"G"},{"id":"1099","rhythm":"double jig","key":"G"},{"id":"1100","rhythm":"double jig","key":"F"},{"id":"1101","rhythm":"double jig","key":"G"},{"id":"1102","rhythm":"double jig","key":"A"},{"id":"1103","rhythm":"double jig","key":"A"},{"id":"1104","rhythm":"double jig","key":"Em"},{"id":"1105","rhythm":"double jig","key":"Gm"},{"id":"1106","rhythm":"double jig","key":"D"},{"id":"1107","rhythm":"double jig","key":"C"},{"id":"1108","rhythm":"double jig","key":"Edor"},{"id":"1109","rhythm":"double jig","key":"A"},{"id":"1110","rhythm":"double jig","key":"Amix"},{"id":"1111","rhythm":"double jig","key":"Em"},{"id":"1112","rhythm":"double jig","key":"Gm"},{"id":"1113","rhythm":"double jig","key":"Am"},{"id":"1114","rhythm":"double jig","key":"Am"},{"id":"1115","rhythm":"double jig","key":"G"},{"id":"1116","rhythm":"slip jig","key":"A"},{"id":"1117","rhythm":"slip jig","key":"D"},{"id":"1118","rhythm":"slip jig","key":"G"},{"id":"1119","rhythm":"slip jig","key":"A"},{"id":"1120","rhythm":"slip jig","key":"G"},{"id":"1121","rhythm":"slip jig","key":"G"},{"id":"1122","rhythm":"slip jig","key":"G"},{"id":"1123","rhythm":"slip jig","key":"D"},{"id":"1124","rhythm":"slip jig","key":"D"},{"id":"1125","rhythm":"slip jig","key":"D"},{"id":"1126","rhythm":"slip jig","key":"D"},{"id":"1127","rhythm":"slip jig","key":"D"},{"id":"1128","rhythm":"slip jig","key":"G"},{"id":"1129","rhythm":"slip jig","key":"A"},{"id":"1130","rhythm":"slip jig","key":"D"},{"id":"1131","rhythm":"slip jig","key":"G"},{"id":"1132","rhythm":"slip jig","key":"Em"},{"id":"1133","rhythm":"slip jig","key":"D"},{"id":"1134","rhythm":"slip jig","key":"G"},{"id":"1135","rhythm":"slip jig","key":"G"},{"id":"1136","rhythm":"slipjig","key":"G"},{"id":"1137","rhythm":"slipjig","key":"A"},{"id":"1138","rhythm":"slipjig","key":"G"},{"id":"1139","rhythm":"slipjig","key":"G"},{"id":"1140","rhythm":"slipjig","key":"G"},{"id":"1141","rhythm":"slipjig","key":"D"},{"id":"1142","rhythm":"slipjig","key":"D"},{"id":"1143","rhythm":"slipjig","key":"D"},{"id":"1144","rhythm":"slipjig","key":"A"},{"id":"1145","rhythm":"slipjig","key":"D"},{"id":"1146","rhythm":"slipjig","key":"C"},{"id":"1147","rhythm":"slipjig","key":"D"},{"id":"1148","rhythm":"slipjig","key":"D"},{"id":"1149","rhythm":"slipjig","key":"G"},{"id":"1150","rhythm":"slipjig","key":"A"},{"id":"1151","rhythm":"slipjig","key":"G"},{"id":"1152","rhythm":"slipjig","key":"Em"},{"id":"1153","rhythm":"slipjig","key":"D"},{"id":"1154","rhythm":"slipjig","key":"A"},{"id":"1155","rhythm":"slipjig","key":"G"},{"id":"1156","rhythm":"slipjig","key":"G"},{"id":"1157","rhythm":"slipjig","key":"A"},{"id":"1158","rhythm":"slipjig","key":"G"},{"id":"1159","rhythm":"slipjig","key":"G"},{"id":"1160","rhythm":"slipjig","key":"G"},{"id":"1161","rhythm":"slipjig","key":"D"},{"id":"1162","rhythm":"slipjig","key":"G"},{"id":"1163","rhythm":"slipjig","key":"D"},{"id":"1164","rhythm":"slipjig","key":"Em"},{"id":"1165","rhythm":"slipjig","key":"D"},{"id":"1166","rhythm":"slipjig","key":"D"},{"id":"1167","rhythm":"slipjig","key":"D"},{"id":"1168","rhythm":"slipjig","key":"C"},{"id":"1169","rhythm":"slipjig","key":"G"},{"id":"1170","rhythm":"slipjig","key":"F"},{"id":"1171","rhythm":"slipjig","key":"D"},{"id":"1172","rhythm":"slipjig","key":"G"},{"id":"1173","rhythm":"slipjig","key":"Em"},{"id":"1174","rhythm":"slipjig","key":"Em"},{"id":"1175","rhythm":"slipjig","key":"D"},{"id":"1176","rhythm":"reel","key":"Gm"},{"id":"1177","rhythm":"reel","key":"F"},{"id":"1178","rhythm":"reel","key":"D"},{"id":"1179","rhythm":"reel","key":"D"},{"id":"1180","rhythm":"reel","key":"G"},{"id":"1181","rhythm":"reel","key":"Am"},{"id":"1182","rhythm":"reel","key":"Am"},{"id":"1183","rhythm":"reel","key":"A"},{"id":"1184","rhythm":"reel","key":"G"},{"id":"1185","rhythm":"reel","key":"D"},{"id":"1186","rhythm":"reel","key":"D"},{"id":"1187","rhythm":"reel","key":"G"},{"id":"1188","rhythm":"reel","key":"G"},{"id":"1189","rhythm":"reel","key":"G"},{"id":"1190","rhythm":"reel","key":"G"},{"id":"1191","rhythm":"reel","key":"G"},{"id":"1192","rhythm":"reel","key":"Em"},{"id":"1193","rhythm":"reel","key":"G"},{"id":"1194","rhythm":"reel","key":"C"},{"id":"1195","rhythm":"reel","key":"G"},{"id":"1196","rhythm":"reel","key":"A"},{"id":"1197","rhythm":"reel","key":"Gm"},{"id":"1198","rhythm":"reel","key":"D"},{"id":"1199","rhythm":"reel","key":"D"},{"id":"1200","rhythm":"reel","key":"Gm"},{"id":"1201","rhythm":"reel","key":"G"},{"id":"1202","rhythm":"reel","key":"G"},{"id":"1203","rhythm":"reel","key":"A"},{"id":"1204","rhythm":"reel","key":"D"},{"id":"1205","rhythm":"reel","key":"D"},{"id":"1206","rhythm":"reel","key":"G"},{"id":"1207","rhythm":"reel","key":"G"},{"id":"1208","rhythm":"reel","key":"D"},{"id":"1209","rhythm":"reel","key":"D"},{"id":"1210","rhythm":"reel","key":"G"},{"id":"1211","rhythm":"reel","key":"G"},{"id":"1212","rhythm":"reel","key":"D"},{"id":"1213","rhythm":"reel","key":"G"},{"id":"1214","rhythm":"reel","key":"A"},{"id":"1215","rhythm":"reel","key":"G"},{"id":"1216","rhythm":"reel","key":"Gm"},{"id":"1217","rhythm":"reel","key":"Em"},{"id":"1218","rhythm":"reel","key":"C"},{"id":"1219","rhythm":"reel","key":"A"},{"id":"1220","rhythm":"reel","key":"G"},{"id":"1221","rhythm":"reel","key":"Em"},{"id":"1222","rhythm":"reel","key":"G"},{"id":"1223","rhythm":"reel","key":"D"},{"id":"1224","rhythm":"reel","key":"D"},{"id":"1225","rhythm":"reel","key":"D"},{"id":"1226","rhythm":"reel","key":"C"},{"id":"1227","rhythm":"reel","key":"G"},{"id":"1228","rhythm":"reel","key":"G"},{"id":"1229","rhythm":"reel","key":"G"},{"id":"1230","rhythm":"reel","key":"G"},{"id":"1231","rhythm":"reel","key":"G"},{"id":"1232","rhythm":"reel","key":"G"},{"id":"1233","rhythm":"reel","key":"G"},{"id":"1234","rhythm":"reel","key":"D"},{"id":"1235","rhythm":"reel","key":"G"},{"id":"1236","rhythm":"reel","key":"A"},{"id":"1237","rhythm":"reel","key":"G"},{"id":"1238","rhythm":"reel","key":"G"},{"id":"1239","rhythm":"reel","key":"G"},{"id":"1240","rhythm":"reel","key":"G"},{"id":"1241","rhythm":"reel","key":"D"},{"id":"1242","rhythm":"reel","key":"G"},{"id":"1243","rhythm":"reel","key":"Em"},{"id":"1244","rhythm":"reel","key":"G"},{"id":"1245","rhythm":"reel","key":"G"},{"id":"1246","rhythm":"reel","key":"G"},{"id":"1247","rhythm":"reel","key":"A"},{"id":"1248","rhythm":"reel","key":"A"},{"id":"1249","rhythm":"reel","key":"G"},{"id":"1250","rhythm":"reel","key":"D"},{"id":"1251","rhythm":"reel","key":"G"},{"id":"1252","rhythm":"reel","key":"D"},{"id":"1253","rhythm":"reel","key":"G"},{"id":"1254","rhythm":"reel","key":"G"},{"id":"1255","rhythm":"reel","key":"G"},{"id":"1256","rhythm":"reel","key":"Am"},{"id":"1257","rhythm":"reel","key":"G"},{"id":"1258","rhythm":"reel","key":"D"},{"id":"1259","rhythm":"reel","key":"G"},{"id":"1260","rhythm":"reel","key":"G"},{"id":"1261","rhythm":"reel","key":"G"},{"id":"1262","rhythm":"reel","key":"A"},{"id":"1263","rhythm":"reel","key":"A"},{"id":"1264","rhythm":"reel","key":"Em"},{"id":"1265","rhythm":"reel","key":"D"},{"id":"1266","rhythm":"reel","key":"G"},{"id":"1267","rhythm":"reel","key":"Em"},{"id":"1268","rhythm":"reel","key":"A"},{"id":"1269","rhythm":"reel","key":"D"},{"id":"1270","rhythm":"reel","key":"D"},{"id":"1271","rhythm":"reel","key":"D"},{"id":"1272","rhythm":"reel","key":"A"},{"id":"1273","rhythm":"reel","key":"D"},{"id":"1274","rhythm":"reel","key":"G"},{"id":"1275","rhythm":"reel","key":"G"},{"id":"1276","rhythm":"reel","key":"Am"},{"id":"1277","rhythm":"reel","key":"D"},{"id":"1278","rhythm":"reel","key":"G"},{"id":"1279","rhythm":"reel","key":"G"},{"id":"1280","rhythm":"reel","key":"A"},{"id":"1281","rhythm":"reel","key":"Am"},{"id":"1282","rhythm":"reel","key":"Am"},{"id":"1283","rhythm":"reel","key":"A"},{"id":"1284","rhythm":"reel","key":"Bm"},{"id":"1285","rhythm":"reel","key":"Am"},{"id":"1286","rhythm":"reel","key":"D"},{"id":"1287","rhythm":"reel","key":"D"},{"id":"1288","rhythm":"reel","key":"A"},{"id":"1289","rhythm":"reel","key":"A"},{"id":"1290","rhythm":"reel","key":"Ador"},{"id":"1291","rhythm":"reel","key":"G"},{"id":"1292","rhythm":"reel","key":"D"},{"id":"1293","rhythm":"reel","key":"D"},{"id":"1294","rhythm":"reel","key":"D"},{"id":"1295","rhythm":"reel","key":"G"},{"id":"1296","rhythm":"reel","key":"G"},{"id":"1297","rhythm":"reel","key":"D"},{"id":"1298","rhythm":"reel","key":"Em"},{"id":"1299","rhythm":"reel","key":"D"},{"id":"1300","rhythm":"reel","key":"G"},{"id":"1301","rhythm":"reel","key":"G"},{"id":"1302","rhythm":"reel","key":"D"},{"id":"1303","rhythm":"reel","key":"D"},{"id":"1304","rhythm":"reel","key":"Bm"},{"id":"1305","rhythm":"reel","key":"D"},{"id":"1306","rhythm":"reel","key":"G"},{"id":"1307","rhythm":"reel","key":"D"},{"id":"1308","rhythm":"reel","key":"G"},{"id":"1309","rhythm":"reel","key":"D"},{"id":"1310","rhythm":"reel","key":"G"},{"id":"1311","rhythm":"reel","key":"G"},{"id":"1312","rhythm":"reel","key":"D"},{"id":"1313","rhythm":"reel","key":"G"},{"id":"1314","rhythm":"reel","key":"A"},{"id":"1315","rhythm":"reel","key":"D"},{"id":"1316","rhythm":"reel","key":"Em"},{"id":"1317","rhythm":"reel","key":"Em"},{"id":"1318","rhythm":"reel","key":"A"},{"id":"1319","rhythm":"reel","key":"A"},{"id":"1320","rhythm":"reel","key":"G"},{"id":"1321","rhythm":"reel","key":"A"},{"id":"1322","rhythm":"reel","key":"D"},{"id":"1323","rhythm":"reel","key":"C"},{"id":"1324","rhythm":"reel","key":"Em"},{"id":"1325","rhythm":"reel","key":"A"},{"id":"1326","rhythm":"reel","key":"Amix"},{"id":"1327","rhythm":"reel","key":"D"},{"id":"1328","rhythm":"reel","key":"Dm"},{"id":"1329","rhythm":"reel","key":"D"},{"id":"1330","rhythm":"reel","key":"G"},{"id":"1331","rhythm":"reel","key":"D"},{"id":"1332","rhythm":"reel","key":"Ador"},{"id":"1333","rhythm":"reel","key":"D"},{"id":"1334","rhythm":"reel","key":"C"},{"id":"1335","rhythm":"reel","key":"D"},{"id":"1336","rhythm":"reel","key":"G"},{"id":"1337","rhythm":"reel","key":"Gm"},{"id":"1338","rhythm":"reel","key":"G"},{"id":"1339","rhythm":"reel","key":"G"},{"id":"1340","rhythm":"reel","key":"Em"},{"id":"1341","rhythm":"reel","key":"C"},{"id":"1342","rhythm":"reel","key":"D"},{"id":"1343","rhythm":"reel","key":"A"},{"id":"1344","rhythm":"reel","key":"C"},{"id":"1345","rhythm":"reel","key":"Am"},{"id":"1346","rhythm":"reel","key":"A"},{"id":"1347","rhythm":"reel","key":"D"},{"id":"1348","rhythm":"reel","key":"D"},{"id":"1349","rhythm":"reel","key":"Em"},{"id":"1350","rhythm":"reel","key":"G"},{"id":"1351","rhythm":"reel","key":"A"},{"id":"1352","rhythm":"reel","key":"G"},{"id":"1353","rhythm":"reel","key":"D"},{"id":"1354","rhythm":"reel","key":"D"},{"id":"1355","rhythm":"reel","key":"D"},{"id":"1356","rhythm":"reel","key":"C"},{"id":"1357","rhythm":"reel","key":"G"},{"id":"1358","rhythm":"reel","key":"G"},{"id":"1359","rhythm":"reel","key":"G"},{"id":"1360","rhythm":"reel","key":"Em"},{"id":"1361","rhythm":"reel","key":"A"},{"id":"1362","rhythm":"reel","key":"D"},{"id":"1363","rhythm":"reel","key":"Am"},{"id":"1364","rhythm":"reel","key":"D"},{"id":"1365","rhythm":"reel","key":"D"},{"id":"1366","rhythm":"reel","key":"D"},{"id":"1367","rhythm":"reel","key":"G"},{"id":"1368","rhythm":"reel","key":"G"},{"id":"1369","rhythm":"reel","key":"D"},{"id":"1370","rhythm":"reel","key":"A"},{"id":"1371","rhythm":"reel","key":"A"},{"id":"1372","rhythm":"reel","key":"D"},{"id":"1373","rhythm":"reel","key":"A"},{"id":"1374","rhythm":"reel","key":"D"},{"id":"1375","rhythm":"reel","key":"Gm"},{"id":"1376","key":"Bphr"},{"id":"1377","key":"A"},{"id":"1378","key":"G"},{"id":"1379","key":"D"},{"id":"1380","key":"A"},{"id":"1381","key":"A"},{"id":"1382","key":"D"},{"id":"1383","key":"D"},{"id":"1384","key":"G"},{"id":"1385","key":"G"},{"id":"1386","key":"D"},{"id":"1387","key":"G"},{"id":"1388","key":"Am"},{"id":"1389","key":"D"},{"id":"1390","key":"D"},{"id":"1391","key":"D"},{"id":"1392","key":"G"},{"id":"1393","key":"G"},{"id":"1394","key":"G"},{"id":"1395","key":"A"},{"id":"1396","key":"D"},{"id":"1397","key":"A"},{"id":"1398","key":"Em"},{"id":"1399","key":"Em"},{"id":"1400","key":"G"},{"id":"1401","key":"D"},{"id":"1402","key":"Am"},{"id":"1403","key":"Em"},{"id":"1404","key":"D"},{"id":"1405","key":"D"},{"id":"1406","key":"Amix"},{"id":"1407","key":"Em"},{"id":"1408","key":"G"},{"id":"1409","key":"D"},{"id":"1410","key":"D"},{"id":"1411","key":"D"},{"id":"1412","key":"G"},{"id":"1413","key":"D"},{"id":"1414","key":"Em"},{"id":"1415","key":"G"},{"id":"1416","key":"G"},{"id":"1417","key":"G"},{"id":"1418","key":"G"},{"id":"1419","key":"A"},{"id":"1420","key":"D"},{"id":"1421","key":"Am"},{"id":"1422","key":"A"},{"id":"1423","key":"Am"},{"id":"1424","key":"Edor"},{"id":"1425","key":"Em"},{"id":"1426","key":"D"},{"id":"1427","key":"Em"},{"id":"1428","key":"G"},{"id":"1429","key":"A"},{"id":"1430","key":"Glyd"},{"id":"1431","key":"D"},{"id":"1432","key":"G"},{"id":"1433","key":"D"},{"id":"1434","key":"D"},{"id":"1435","key":"G"},{"id":"1436","key":"G"},{"id":"1437","key":"G"},{"id":"1438","key":"A"},{"id":"1439","key":"A"},{"id":"1440","key":"G"},{"id":"1441","key":"C"},{"id":"1442","key":"G"},{"id":"1443","key":"D"},{"id":"1444","key":"Bm"},{"id":"1445","key":"D"},{"id":"1446","key":"D"},{"id":"1447","key":"A"},{"id":"1448","key":"G"},{"id":"1449","key":"Em"},{"id":"1450","key":"G"},{"id":"1451","key":"D"},{"id":"1452","key":"G"},{"id":"1453","key":"C"},{"id":"1454","key":"D"},{"id":"1455","key":"D"},{"id":"1456","key":"D"},{"id":"1457","key":"G"},{"id":"1458","key":"G"},{"id":"1459","key":"C"},{"id":"1460","key":"G"},{"id":"1461","key":"G"},{"id":"1462","key":"G"},{"id":"1463","key":"C"},{"id":"1464","key":"D"},{"id":"1465","key":"D"},{"id":"1466","key":"C"},{"id":"1467","key":"A"},{"id":"1468","key":"G"},{"id":"1469","key":"A"},{"id":"1470","key":"Am"},{"id":"1471","key":"G"},{"id":"1472","key":"Dmix"},{"id":"1473","key":"G"},{"id":"1474","key":"Gm"},{"id":"1475","key":"G"},{"id":"1476","rhythm":"reel","key":"D"},{"id":"1477","rhythm":"reel","key":"G"},{"id":"1478","rhythm":"reel","key":"D"},{"id":"1479","rhythm":"reel","key":"D"},{"id":"1480","key":"D"},{"id":"1481","rhythm":"reel","key":"A"},{"id":"1482","rhythm":"reel","key":"G"},{"id":"1483","rhythm":"reel","key":"D"},{"id":"1484","rhythm":"reel","key":"G"},{"id":"1485","rhythm":"reel","key":"Am"},{"id":"1486","rhythm":"reel","key":"G"},{"id":"1487","rhythm":"reel","key":"D"},{"id":"1488","rhythm":"reel","key":"G"},{"id":"1489","rhythm":"reel","key":"D"},{"id":"1490","rhythm":"reel","key":"D"},{"id":"1491","rhythm":"reel","key":"D"},{"id":"1492","rhythm":"reel","key":"G"},{"id":"1493","rhythm":"reel","key":"D"},{"id":"1494","rhythm":"reel","key":"A"},{"id":"1495","rhythm":"reel","key":"G"},{"id":"1496","rhythm":"reel","key":"G"},{"id":"1497","rhythm":"reel","key":"A"},{"id":"1498","rhythm":"reel","key":"D"},{"id":"1499","rhythm":"reel","key":"D"},{"id":"1500","rhythm":"reel","key":"A"},{"id":"1501","rhythm":"reel","key":"D"},{"id":"1502","rhythm":"reel","key":"D"},{"id":"1503","rhythm":"reel","key":"A"},{"id":"1504","rhythm":"reel","key":"Am"},{"id":"1505","rhythm":"reel","key":"Em"},{"id":"1506","rhythm":"reel","key":"G"},{"id":"1507","rhythm":"reel","key":"D"},{"id":"1508","rhythm":"reel","key":"C"},{"id":"1509","rhythm":"reel","key":"D"},{"id":"1510","rhythm":"reel","key":"Ador"},{"id":"1511","rhythm":"reel","key":"D"},{"id":"1512","rhythm":"reel","key":"D"},{"id":"1513","rhythm":"reel","key":"G"},{"id":"1514","rhythm":"reel","key":"F"},{"id":"1515","rhythm":"reel","key":"A"},{"id":"1516","rhythm":"reel","key":"G"},{"id":"1517","rhythm":"reel","key":"D"},{"id":"1518","rhythm":"reel","key":"D"},{"id":"1519","rhythm":"reel","key":"Em"},{"id":"1520","rhythm":"reel","key":"G"},{"id":"1521","rhythm":"reel","key":"C"},{"id":"1522","rhythm":"reel","key":"Em"},{"id":"1523","rhythm":"reel","key":"G"},{"id":"1524","rhythm":"reel","key":"D"},{"id":"1525","rhythm":"reel","key":"D"},{"id":"1526","rhythm":"reel","key":"D"},{"id":"1527","rhythm":"reel","key":"D"},{"id":"1528","rhythm":"reel","key":"D"},{"id":"1529","rhythm":"reel","key":"D"},{"id":"1530","rhythm":"reel","key":"D"},{"id":"1531","rhythm":"reel","key":"D"},{"id":"1532","rhythm":"reel","key":"G"},{"id":"1533","rhythm":"reel","key":"D"},{"id":"1534","rhythm":"reel","key":"D"},{"id":"1535","rhythm":"reel","key":"D"},{"id":"1536","rhythm":"reel","key":"G"},{"id":"1537","rhythm":"reel","key":"A"},{"id":"1538","rhythm":"reel","key":"A"},{"id":"1539","rhythm":"reel","key":"Am"},{"id":"1540","rhythm":"reel","key":"G"},{"id":"1541","rhythm":"reel","key":"G"},{"id":"1542","rhythm":"reel","key":"Ddor"},{"id":"1543","rhythm":"reel","key":"D"},{"id":"1544","rhythm":"reel","key":"G"},{"id":"1545","rhythm":"reel","key":"G"},{"id":"1546","rhythm":"reel","key":"G"},{"id":"1547","rhythm":"reel","key":"G"},{"id":"1548","rhythm":"reel","key":"D"},{"id":"1549","rhythm":"reel","key":"A"},{"id":"1550","rhythm":"reel","key":"G"},{"id":"1551","rhythm":"reel","key":"D"},{"id":"1552","rhythm":"reel","key":"C"},{"id":"1553","rhythm":"reel","key":"Dmix"},{"id":"1554","rhythm":"reel","key":"G"},{"id":"1555","rhythm":"reel","key":"G"},{"id":"1556","rhythm":"hornpipe","key":"D"},{"id":"1557","rhythm":"hornpipe","key":"G"},{"id":"1558","rhythm":"hornpipe","key":"G"},{"id":"1559","rhythm":"hornpipe","key":"D"},{"id":"1560","rhythm":"hornpipe","key":"G"},{"id":"1561","rhythm":"hornpipe","key":"D"},{"id":"1562","rhythm":"hornpipe","key":"G"},{"id":"1563","rhythm":"hornpipe","key":"G"},{"id":"1564","rhythm":"hornpipe","key":"A"},{"id":"1565","rhythm":"hornpipe","key":"D"},{"id":"1566","rhythm":"hornpipe","key":"G"},{"id":"1567","rhythm":"hornpipe","key":"G"},{"id":"1568","rhythm":"hornpipe","key":"G"},{"id":"1569","rhythm":"hornpipe","key":"A"},{"id":"1570","key":"D"},{"id":"1571","key":"G"},{"id":"1572","key":"G"},{"id":"1573","key":"G"},{"id":"1574","key":"G"},{"id":"1575","key":"D"},{"id":"1576","key":"D"},{"id":"1577","rhythm":"hornpipe","key":"D"},{"id":"1578","rhythm":"hornpipe","key":"D"},{"id":"1579","rhythm":"hornpipe","key":"D"},{"id":"1580","rhythm":"hornpipe","key":"D"},{"id":"1581","rhythm":"hornpipe","key":"D"},{"id":"1582","rhythm":"hornpipe","key":"D"},{"id":"1583","rhythm":"hornpipe","key":"B"},{"id":"1584","rhythm":"hornpipe","key":"G"},{"id":"1585","rhythm":"hornpipe","key":"A"},{"id":"1586","rhythm":"hornpipe","key":"G"},{"id":"1587","rhythm":"hornpipe","key":"G"},{"id":"1588","rhythm":"hornpipe","key":"G"},{"id":"1589","rhythm":"hornpipe","key":"G"},{"id":"1590","rhythm":"hornpipe","key":"A"},{"id":"1591","rhythm":"hornpipe","key":"A"},{"id":"1592","rhythm":"hornpipe","key":"D"},{"id":"1593","rhythm":"hornpipe","key":"G"},{"id":"1594","rhythm":"hornpipe","key":"D"},{"id":"1595","rhythm":"hornpipe","key":"G"},{"id":"1596","rhythm":"hornpipe","key":"D"},{"id":"1597","rhythm":"hornpipe","key":"G"},{"id":"1598","rhythm":"hornpipe","key":"G"},{"id":"1599","rhythm":"hornpipe","key":"G"},{"id":"1600","rhythm":"hornpipe","key":"G"},{"id":"1601","rhythm":"hornpipe","key":"A"},{"id":"1602","rhythm":"hornpipe","key":"D"},{"id":"1603","rhythm":"hornpipe","key":"D"},{"id":"1604","rhythm":"hornpipe","key":"G"},{"id":"1605","rhythm":"hornpipe","key":"D"},{"id":"1606","rhythm":"hornpipe","key":"G"},{"id":"1607","rhythm":"hornpipe","key":"D"},{"id":"1608","rhythm":"hornpipe","key":"G"},{"id":"1609","rhythm":"hornpipe","key":"G"},{"id":"1610","rhythm":"hornpipe","key":"D"},{"id":"1611","rhythm":"hornpipe","key":"G"},{"id":"1612","rhythm":"hornpipe","key":"Fmix"},{"id":"1613","rhythm":"hornpipe","key":"D"},{"id":"1614","rhythm":"hornpipe","key":"A"},{"id":"1615","rhythm":"hornpipe","key":"A"},{"id":"1616","rhythm":"hornpipe","key":"A"},{"id":"1617","rhythm":"hornpipe","key":"G"},{"id":"1618","rhythm":"hornpipe","key":"Gm"},{"id":"1619","rhythm":"hornpipe","key":"Gm"},{"id":"1620","rhythm":"hornpipe","key":"G"},{"id":"1621","rhythm":"hornpipe","key":"A"},{"id":"1622","rhythm":"hornpipe","key":"A"},{"id":"1623","rhythm":"hornpipe","key":"D"},{"id":"1624","rhythm":"hornpipe","key":"G"},{"id":"1625","key":"D"},{"id":"1626","key":"G"},{"id":"1627","key":"G"},{"id":"1628","key":"G"},{"id":"1629","key":"G"},{"id":"1630","key":"G"},{"id":"1631","key":"D"},{"id":"1632","key":"G"},{"id":"1633","key":"G"},{"id":"1634","key":"A"},{"id":"1635","key":"D"},{"id":"1636","key":"A"},{"id":"1637","key":"D"},{"id":"1638","key":"D"},{"id":"1639","key":"A"},{"id":"1640","key":"D"},{"id":"1641","key":"G"},{"id":"1642","key":"D"},{"id":"1643","key":"D"},{"id":"1644","key":"G"},{"id":"1645","key":"G"},{"id":"1647","key":"G"},{"id":"1648","key":"G"},{"id":"1649","key":"D"},{"id":"1650","key":"G"},{"id":"1651","key":"G"},{"id":"1652","key":"D"},{"id":"1653","key":"D"},{"id":"1654","key":"D"},{"id":"1655","key":"G"},{"id":"1656","key":"D"},{"id":"1657","key":"G"},{"id":"1658","key":"G"},{"id":"1659","key":"B"},{"id":"1660","key":"G"},{"id":"1661","key":"D"},{"id":"1662","key":"G"},{"id":"1663","key":"D"},{"id":"1664","key":"A"},{"id":"1665","key":"G"},{"id":"1666","key":"G"},{"id":"1667","key":"A"},{"id":"1668","key":"G"},{"id":"1669","key":"D"},{"id":"1670","key":"A"},{"id":"1671","key":"D"},{"id":"1672","key":"G"},{"id":"1673","key":"D"},{"id":"1674","key":"D"},{"id":"1675","key":"A"},{"id":"1676","key":"A"},{"id":"1677","key":"G"},{"id":"1678","key":"G"},{"id":"1679","key":"G"},{"id":"1680","key":"G"},{"id":"1681","key":"G"},{"id":"1682","key":"G"},{"id":"1683","key":"D"},{"id":"1684","key":"G"},{"id":"1685","key":"G"},{"id":"1686","key":"G"},{"id":"1687","key":"G"},{"id":"1688","key":"A"},{"id":"1689","key":"G"},{"id":"1690","key":"G"},{"id":"1691","key":"G"},{"id":"1692","key":"D"},{"id":"1693","key":"D"},{"id":"1694","key":"G"},{"id":"1695","key":"Am"},{"id":"1696","key":"G"},{"id":"1697","key":"G"},{"id":"1698","key":"D"},{"id":"1699","key":"G"},{"id":"1700","key":"D"},{"id":"1701","rhythm":"hornpipe","key":"G"},{"id":"1702","rhythm":"hornpipe","key":"D"},{"id":"1703","rhythm":"hornpipe","key":"G"},{"id":"1704","rhythm":"hornpipe","key":"D"},{"id":"1705","rhythm":"hornpipe","key":"A"},{"id":"1706","rhythm":"hornpipe","key":"G"},{"id":"1707","rhythm":"hornpipe","key":"G"},{"id":"1708","rhythm":"hornpipe","key":"A"},{"id":"1709","rhythm":"hornpipe","key":"G"},{"id":"1710","rhythm":"hornpipe","key":"A"},{"id":"1711","rhythm":"hornpipe","key":"A"},{"id":"1712","rhythm":"hornpipe","key":"G"},{"id":"1713","rhythm":"hornpipe","key":"G"},{"id":"1714","rhythm":"hornpipe","key":"D"},{"id":"1715","rhythm":"hornpipe","key":"D"},{"id":"1716","rhythm":"hornpipe","key":"D"},{"id":"1717","rhythm":"hornpipe","key":"G"},{"id":"1718","rhythm":"hornpipe","key":"G"},{"id":"1719","rhythm":"hornpipe","key":"A"},{"id":"1720","rhythm":"hornpipe","key":"D"},{"id":"1721","rhythm":"hornpipe","key":"B"},{"id":"1722","rhythm":"hornpipe","key":"A"},{"id":"1723","rhythm":"hornpipe","key":"A"},{"id":"1724","rhythm":"hornpipe","key":"G"},{"id":"1725","rhythm":"hornpipe","key":"G"},{"id":"1726","rhythm":"hornpipe","key":"G"},{"id":"1727","rhythm":"hornpipe","key":"A"},{"id":"1728","rhythm":"hornpipe","key":"G"},{"id":"1729","rhythm":"hornpipe","key":"D"},{"id":"1730","rhythm":"hornpipe","key":"G"},{"id":"1731","rhythm":"hornpipe","key":"G"},{"id":"1732","rhythm":"hornpipe","key":"G"},{"id":"1733","rhythm":"hornpipe","key":"Em"},{"id":"1734","rhythm":"hornpipe","key":"G"},{"id":"1735","rhythm":"hornpipe","key":"B"},{"id":"1736","rhythm":"hornpipe","key":"D"},{"id":"1737","rhythm":"hornpipe","key":"D"},{"id":"1738","rhythm":"hornpipe","key":"D"},{"id":"1739","rhythm":"hornpipe","key":"G"},{"id":"1740","rhythm":"hornpipe","key":"G"},{"id":"1741","rhythm":"hornpipe","key":"A"},{"id":"1742","rhythm":"hornpipe","key":"D"},{"id":"1743","rhythm":"hornpipe","key":"G"},{"id":"1744","rhythm":"hornpipe","key":"D"},{"id":"1745","rhythm":"hornpipe","key":"G"},{"id":"1746","rhythm":"hornpipe","key":"G"},{"id":"1747","rhythm":"hornpipe","key":"B"},{"id":"1748","rhythm":"hornpipe","key":"A"},{"id":"1749","rhythm":"hornpipe","key":"G"},{"id":"1750","rhythm":"hornpipe","key":"A"},{"id":"1751","rhythm":"hornpipe","key":"G"},{"id":"1752","rhythm":"hornpipe","key":"G"},{"id":"1753","rhythm":"hornpipe","key":"D"},{"id":"1754","rhythm":"hornpipe","key":"A"},{"id":"1755","rhythm":"hornpipe","key":"A"},{"id":"1756","rhythm":"hornpipe","key":"A"},{"id":"1757","rhythm":"hornpipe","key":"D"},{"id":"1758","rhythm":"hornpipe","key":"D"},{"id":"1759","rhythm":"hornpipe","key":"Gm"},{"id":"1760","rhythm":"hornpipe","key":"G"},{"id":"1761","rhythm":"hornpipe","key":"F"},{"id":"1762","rhythm":"hornpipe","key":"G"},{"id":"1763","rhythm":"hornpipe","key":"D"},{"id":"1764","rhythm":"hornpipe","key":"G"},{"id":"1765","rhythm":"hornpipe","key":"G"},{"id":"1766","rhythm":"hornpipe","key":"A"},{"id":"1767","rhythm":"hornpipe","key":"F"},{"id":"1768","rhythm":"hornpipe","key":"G"},{"id":"1769","rhythm":"hornpipe","key":"G"},{"id":"1770","rhythm":"hornpipe","key":"D"},{"id":"1771","rhythm":"hornpipe","key":"G"},{"id":"1772","rhythm":"hornpipe","key":"D"},{"id":"1773","rhythm":"hornpipe","key":"D"},{"id":"1774","rhythm":"hornpipe","key":"D"},{"id":"1775","rhythm":"hornpipe","key":"G"},{"id":"1776","rhythm":"hornpipe","key":"G"},{"id":"1777","rhythm":"hornpipe","key":"A"},{"id":"1778","rhythm":"hornpipe","key":"D"},{"id":"1779","rhythm":"hornpipe","key":"G"},{"id":"1780","rhythm":"hornpipe","key":"G"},{"id":"1781","key":"G"},{"id":"1782","rhythm":"hornpipe","key":"A"},{"id":"1783","key":"A"},{"id":"1784","key":"A"},{"id":"1785","key":"A"},{"id":"1786","key":"G"},{"id":"1787","key":"G"},{"id":"1788","key":"A"},{"id":"1789","key":"Em"},{"id":"1790","key":"D"},{"id":"1791","key":"D"},{"id":"1792","key":"D"},{"id":"1793","key":"D"},{"id":"1794","key":"G"},{"id":"1795","key":"D"},{"id":"1796","key":"G"},{"id":"1797","key":"D"},{"id":"1798","key":"D"},{"id":"1799","key":"G"},{"id":"1800","key":"G"},{"id":"1801","key":"Am"},{"id":"1802","key":"D"},{"id":"1803","key":"Bphr"},{"id":"1804","key":"G"},{"id":"1805","key":"D"},{"id":"1806","key":"G"},{"id":"1807","key":"Dm"},{"id":"1808","key":"Gm"},{"id":"1809","key":"D"},{"id":"1810","key":"D"},{"id":"1811","key":"G"},{"id":"1812","key":"A"},{"id":"1813","key":"G"},{"id":"1814","key":"G"},{"id":"1815","key":"A"},{"id":"1816","key":"Em"},{"id":"1817","key":"G"},{"id":"1818","key":"G"},{"id":"1819","key":"G"},{"id":"1820","key":"D"},{"id":"1821","key":"D"},{"id":"1822","key":"G"},{"id":"1823","key":"G"},{"id":"1824","key":"Am"},{"id":"1825","key":"G"},{"id":"1826","key":"G"},{"id":"1827","key":"G"},{"id":"1828","key":"G"},{"id":"1829","key":"D"},{"id":"1830","key":"G"},{"id":"1831","key":"G"},{"id":"1832","key":"D"},{"id":"1833","key":"D"},{"id":"1834","key":"G"},{"id":"1835","key":"G"},{"id":"1836","key":"D"},{"id":"1837","key":"A"},{"id":"1838","key":"F"},{"id":"1839","key":"D"},{"id":"1840","key":"D"},{"id":"1841","key":"D"},{"id":"1842","key":"Em"},{"id":"1843","key":"D"},{"id":"1844","key":"G"},{"id":"1845","key":"G"},{"id":"1846","key":"G"},{"id":"1847","key":"G"},{"id":"1848","key":"G"},{"id":"1849","key":"G"},{"id":"1850","key":"G"}]},{"id":"oswald2","uri":"Oswald2.abc","name":"Oswald Vol. 2","description":"James Oswald: The Caledonian Pocket Companion, Volume 2 (1771)","storage":"assets","tunes":[{"id":"20000","key":""},{"id":"20011","key":"D"},{"id":"20012","key":"D"},{"id":"20021","key":"G"},{"id":"20031","key":"C"},{"id":"20041","key":"Ador"},{"id":"20051","key":"Em"},{"id":"20052","key":"D"},{"id":"20061","key":"D"},{"id":"20062","key":"C"},{"id":"20071","key":"G"},{"id":"20081","key":"G"},{"id":"20082","key":"F"},{"id":"20091","key":"Amix"},{"id":"20101","key":"G"},{"id":"20102","key":"G"},{"id":"20111","key":"Gm"},{"id":"20121","key":"A"},{"id":"20131","key":"G"},{"id":"20132","key":"F"},{"id":"20141","key":"G"},{"id":"20151","key":"G"},{"id":"20161","key":"G"},{"id":"20171","key":"G"},{"id":"20181","key":"G"},{"id":"20201","key":"G"},{"id":"20211","key":"G"},{"id":"20212","key":"Am"},{"id":"20221","key":"G"},{"id":"20231","key":"Dmix"},{"id":"20232","key":"Gmix"},{"id":"20241","key":"D"},{"id":"20242","key":"A"},{"id":"20251","key":"Dmix"},{"id":"20252","key":"G"},{"id":"20261","key":"G"},{"id":"20271","key":"D"},{"id":"20281","key":"Em"},{"id":"20282","key":"D"},{"id":"20301","key":"D"},{"id":"20302","key":"Dm"},{"id":"20311","key":"Ador"},{"id":"20322","key":"D"},{"id":"20322","key":"D"},{"id":"20331","key":"D"},{"id":"20351","key":"Em"},{"id":"20361","key":"D"},{"id":"20362","key":"G"},{"id":"20371","key":"D"},{"id":"20372","key":"G"},{"id":"20381","key":"Gm"},{"id":"20382","key":"G"},{"id":"20391","key":"D"},{"id":"20392","key":"D"},{"id":"20401","key":"G"},{"id":"20402","key":"Am"},{"id":"20411","key":"A"},{"id":"20412","key":"G"},{"id":"20413","key":"G"},{"id":"20421","key":"E"},{"id":"20431","key":"B"},{"id":"20441","key":"G"},{"id":"20442","key":"G"},{"id":"20451","key":"Gm"},{"id":"20452","key":"D"},{"id":"20461","key":"Am"},{"id":"20462","key":"D"},{"id":"20471","key":"A"},{"id":"20481","key":"F"},{"id":"20482","key":"Am"},{"id":"20491","key":"G"},{"id":"20492","key":"G"},{"id":"20501","key":"F"},{"id":"20502","key":"G"},{"id":"20511","key":"Dmix"},{"id":"20512","key":"A"},{"id":"20521","key":"D"},{"id":"20522","key":"D"},{"id":"20531","key":"Gdor"},{"id":"20532","key":"G"},{"id":"20541","key":"A"},{"id":"20551","key":"G"},{"id":"20552","key":"Amix"},{"id":"20561","key":"G"},{"id":"20571","key":"D"},{"id":"20581","key":"G"},{"id":"20591","key":"F"},{"id":"20601","key":"Gmix"},{"id":"20602","key":"Am"},{"id":"20611","key":"G"},{"id":"20612","key":"Em"},{"id":"20611","key":"G"},{"id":"20621","key":"D"},{"id":"20631","key":"D"},{"id":"20641","key":"G"},{"id":"20651","key":"D"},{"id":"20652","key":"Am"},{"id":"20661","key":"Gm"},{"id":"20662","key":"G"},{"id":"20671","key":"D"},{"id":"20680","key":""},{"id":"20681","key":"Dmix"},{"id":"20682","key":"Dmix"},{"id":"20683","key":"Dmix"},{"id":"20684","key":"Dmix"},{"id":"20685","key":"Dmix"},{"id":"20691","key":"Dmix"},{"id":"20692","key":"Dmix"},{"id":"20693","key":"Dmix"},{"id":"20701","key":"A"},{"id":"20702","key":"G"},{"id":"20703","key":"F"},{"id":"20711","key":"D"},{"id":"20712","key":"Amix"},{"id":"20721","key":"C"},{"id":"20722","key":"G"},{"id":"20731","key":"Gm"},{"id":"20741","key":"G"},{"id":"20742","key":"D"},{"id":"20743","key":"F"},{"id":"20751","key":"B"},{"id":"20752","key":"G"},{"id":"20761","key":"Em"},{"id":"20762","key":"Gm"},{"id":"20763","key":"D"},{"id":"20771","key":"Am"},{"id":"20772","key":"D"},{"id":"20781","key":"G"},{"id":"20782","key":"D"},{"id":"20783","key":"G"},{"id":"20791","key":"B"},{"id":"20792","key":"D"},{"id":"20801","key":"D"},{"id":"20802","key":"D"},{"id":"20811","key":"G"},{"id":"20821","key":"Dmix"},{"id":"20822","key":"A"},{"id":"20832","key":"G"},{"id":"20832","key":"G"},{"id":"20841","key":"G"},{"id":"20842","key":"Dm"},{"id":"20851","key":"G"},{"id":"20852","key":"B"},{"id":"20861","key":"G"},{"id":"20862","key":"D"},{"id":"20863","key":"G"},{"id":"20871","key":"D"},{"id":"20872","key":"D"},{"id":"20881","key":"G"},{"id":"20882","key":"Em"},{"id":"20891","key":"Am"},{"id":"20892","key":"D"},{"id":"20901","key":"Edor"},{"id":"20902","key":"Edor"},{"id":"20911","key":"C"},{"id":"20912","key":"G"},{"id":"20913","key":"Em"},{"id":"20921","key":"G"},{"id":"20931","key":"D"},{"id":"20932","key":"D"},{"id":"20941","key":"D"},{"id":"20942","key":"D"},{"id":"20943","key":"G"},{"id":"20944","key":"G"},{"id":"20951","key":"Bm"},{"id":"20952","key":"G"},{"id":"20953","key":"G"},{"id":"20961","key":"G"},{"id":"20962","key":"G"},{"id":"20972","key":"G"},{"id":"20981","key":"Gm"},{"id":"20982","key":"G"},{"id":"20991","key":"G"},{"id":"20992","key":"Gm"},{"id":"20993","key":"G"},{"id":"21001","key":"G"},{"id":"21002","key":"G"},{"id":"21003","key":"D"},{"id":"21011","key":"G"},{"id":"21012","key":"D"},{"id":"21021","key":"Gm"},{"id":"21022","key":"G"},{"id":"21023","key":"G"},{"id":"21031","key":"C"},{"id":"21032","key":"D"},{"id":"21033","key":"D"},{"id":"21041","key":"none"},{"id":"21061","key":"none"},{"id":"21071","key":"none"},{"id":"21080","key":"A"},{"id":"21081","key":"none"},{"id":"21090","key":"A"},{"id":"21091","key":"none"},{"id":"21100","key":"A"},{"id":"21101","key":"none"},{"id":"21111","key":"D"},{"id":"21112","key":"G"},{"id":"21121","key":"none"},{"id":"21131","key":"D"},{"id":"21141","key":"G"},{"id":"21142","key":"D"},{"id":"21151","key":"Em"},{"id":"21152","key":"G"},{"id":"21161","key":"G"},{"id":"21162","key":"Em"},{"id":"21171","key":"G"},{"id":"21172","key":"D"},{"id":"21181","key":"A"},{"id":"21182","key":"D"},{"id":"21191","key":"G"},{"id":"21192","key":"G"},{"id":"21201","key":"D"},{"id":"21202","key":"G"},{"id":"21211","key":"D"},{"id":"21221","key":"Em"},{"id":"21222","key":"D"},{"id":"21231","key":"Amix"},{"id":"21232","key":"G"},{"id":"21241","key":"Ador"},{"id":"21251","key":"Em"},{"id":"21261","key":"D"},{"id":"21262","key":"Gm"},{"id":"21263","key":"A"},{"id":"21271","key":"D"},{"id":"21272","key":"D"},{"id":"21281","key":"G"},{"id":"21282","key":"Amix"},{"id":"21291","key":"Gm"},{"id":"21292","key":"G"},{"id":"21301","key":"D"},{"id":"21302","key":"Gm"},{"id":"21311","key":"A"},{"id":"21312","key":"G"},{"id":"21321","key":"G"},{"id":"21322","key":"G"},{"id":"21331","key":"D"},{"id":"21332","key":"F"},{"id":"21341","key":"G"},{"id":"21342","key":"Ador"},{"id":"21351","key":"G"},{"id":"21352","key":"G"},{"id":"21353","key":"G"},{"id":"21361","key":"D"},{"id":"21362","key":"D"},{"id":"21371","key":"D"},{"id":"21372","key":"D"},{"id":"21381","key":"Ador"},{"id":"21382","key":"G"},{"id":"21391","key":"Gm"},{"id":"21392","key":"Ador"},{"id":"21401","key":"Em"},{"id":"21402","key":"G"},{"id":"21403","key":"D"},{"id":"21411","key":"G"},{"id":"21412","key":"Am"},{"id":"21413","key":"Gmix"},{"id":"21421","key":"Dm"},{"id":"21422","key":"Ddor"},{"id":"21431","key":"Am"},{"id":"21432","key":"Gm"},{"id":"21451","key":"G"},{"id":"21451","key":"F"},{"id":"21452","key":"D"},{"id":"21461","key":"Gm"},{"id":"21462","key":"G"},{"id":"21463","key":"A"},{"id":"21471","key":"Dm"},{"id":"21472","key":"G"},{"id":"21481","key":"Am"},{"id":"21482","key":"D"},{"id":"21483","key":"D"},{"id":"21484","key":"B"},{"id":"21491","key":"A"},{"id":"21492","key":"D"},{"id":"21501","key":"G"},{"id":"21502","key":"A"},{"id":"21511","key":"D"},{"id":"21512","key":"A"},{"id":"21521","key":"Amix"},{"id":"21522","key":"Gm"},{"id":"21531","key":"G"},{"id":"21532","key":"A"},{"id":"21541","key":"Em"},{"id":"21542","key":"D"},{"id":"21551","key":"Ddor"},{"id":"21552","key":"G"},{"id":"21561","key":"Gm"},{"id":"21562","key":"D"},{"id":"21563","key":"Gm"},{"id":"21564","key":"G"},{"id":"21571","key":"G"},{"id":"21572","key":"A"},{"id":"21573","key":"A"},{"id":"21581","key":"C"},{"id":"21582","key":"G"},{"id":"21591","key":"Am"},{"id":"21592","key":"G"},{"id":"21601","key":"G"},{"id":"21602","key":"G"},{"id":"21611","key":"Gm"},{"id":"21621","key":"D"},{"id":"21621","key":"E"}]},{"id":"wandsbek","uri":"Wandsbek.abc","name":"Balfolk Wandsbek","description":"Tunes from the monthly Balfolk Session at Kulturschloss Wandsbek","storage":"assets","tunes":[{"id":"1","rhythm":"jig","key":"Am"},{"id":"2","rhythm":"waltz","key":"G"},{"id":"3","rhythm":"waltz","key":"Am"},{"id":"4","rhythm":"waltz","key":"Am"},{"id":"5","rhythm":"waltz","key":"Am"},{"id":"6","rhythm":"mazurka","key":"Am"},{"id":"7","rhythm":"bourree","key":"Gm"},{"id":"8","rhythm":"bourrée","key":"Gm"},{"id":"9","rhythm":"waltz","key":"Am"},{"id":"10","key":"Dm"},{"id":"11","rhythm":"branle","key":"Am"},{"id":"12","rhythm":"branle","key":"Am"},{"id":"13","rhythm":"branle","key":"Am"},{"id":"14","rhythm":"waltz","key":"Am"},{"id":"15","rhythm":"mazurka","key":"Dm"},{"id":"16","rhythm":"waltz","key":"Bm"},{"id":"17","rhythm":"waltz","key":"G"},{"id":"18","rhythm":"waltz","key":"Em"},{"id":"19","rhythm":"polka","key":"Gdor"},{"id":"20","rhythm":"waltz","key":"Ador"},{"id":"21","rhythm":"waltz","key":"Am"},{"id":"22","rhythm":"polka","key":"Ddor"},{"id":"23","rhythm":"mazurka","key":"Gm"},{"id":"24","rhythm":"gånglåt","key":"G"},{"id":"25","rhythm":"gånglåt","key":"D"},{"id":"26","rhythm":"waltz","key":"D"},{"id":"27","rhythm":"waltz","key":"G"},{"id":"28","rhythm":"polka","key":"G"},{"id":"29","rhythm":"mazurka","key":"C"},{"id":"30","rhythm":"waltz","key":"Am"},{"id":"31","key":"D"},{"id":"32","key":"C"},{"id":"33","rhythm":"waltz","key":"Am"},{"id":"34","rhythm":"polska","key":"Am"},{"id":"35","key":"G"},{"id":"36","rhythm":"mazurka","key":"Am"},{"id":"37","key":"Am"},{"id":"38","rhythm":"schottisch","key":"Cm"},{"id":"39","key":"G"},{"id":"40","rhythm":"waltz","key":"Am"},{"id":"41","rhythm":"waltz","key":"G"},{"id":"42","rhythm":"schottisch","key":"D"},{"id":"43","key":"Edor"},{"id":"44","rhythm":"waltz","key":"Am"},{"id":"45","key":"Am"},{"id":"46","key":"Am"},{"id":"47","key":"Em"},{"id":"48","key":"C"},{"id":"49","rhythm":"waltz","key":"Am"},{"id":"50","rhythm":"reel","key":"C"},{"id":"51","rhythm":"chapelloise","key":"Am"},{"id":"52","rhythm":"schottisch","key":"D"},{"id":"53","key":"Am"},{"id":"54","rhythm":"waltz","key":"C"}]}]} \ No newline at end of file diff --git a/tunebook/index.html b/tunebook/index.html index 896a36f..72887b4 100644 --- a/tunebook/index.html +++ b/tunebook/index.html @@ -26,6 +26,6 @@ - + \ No newline at end of file diff --git a/tunebook/main.d6ecd478f98669bb.js b/tunebook/main.e19bcf950f0b0547.js similarity index 99% rename from tunebook/main.d6ecd478f98669bb.js rename to tunebook/main.e19bcf950f0b0547.js index 7c1a8ab..d5c73b1 100644 --- a/tunebook/main.d6ecd478f98669bb.js +++ b/tunebook/main.e19bcf950f0b0547.js @@ -1 +1 @@ -(self.webpackChunkfolkies=self.webpackChunkfolkies||[]).push([[179],{9378:(Z,H,M)=>{Object.defineProperty(H,"__esModule",{value:!0});var A=M(5189),I=M(9826),D=function(){function p(b,c){this._config=c,this._appender=new b(c.config),this._appender.setLayout(c.layout),this._isPassThrough=!c||!c.filters||0===c.filters.length,this._filters=this._isPassThrough?[]:c.filters.map(function(f){return{filter:f.filter instanceof Function?new f.filter(f.config):new(A.getFilter(f.filter))(f.config),config:f.config,onMatch:f.onMatch,onMismatch:f.onMismatch}})}return Object.defineProperty(p.prototype,"appender",{get:function(){return this._appender},enumerable:!0,configurable:!0}),p.prototype.append=function(b){this.isMatch(b)&&this._appender.append(b)},p.prototype.isMatch=function(b){return this._isPassThrough||this._isMatch(b)},p.prototype._isMatch=function(b){for(var c,f=this._filters.length,m=0;m=0;w--)(h=m[w])&&(l=(g<3?h(l):g>3?h(_,y,l):h(_,y))||l);return g>3&&l&&Object.defineProperty(_,y,l),l};Object.defineProperty(H,"__esModule",{value:!0});var D=M(7800),p=M(3188),b=M(2427),f=function(m){function _(){return null!==m&&m.apply(this,arguments)||this}return A(_,m),_.prototype.append=function(y){y.level<=this.getLogLevel()&&this._appendToConsole(y)},_.prototype._appendToConsole=function(y){var E=this.format(y);switch(y.level){case D.LogLevel.FATAL:case D.LogLevel.ERROR:y.error?b.getVirtualConsole().error(E,y.error):b.getVirtualConsole().error(E);break;case D.LogLevel.WARN:b.getVirtualConsole().warn(E);break;case D.LogLevel.INFO:b.getVirtualConsole().info(E);break;case D.LogLevel.DEBUG:case D.LogLevel.TRACE:b.getVirtualConsole().debug(E)}},I([p.Appender("Console")],_)}(M(5716).LogAppender);H.ConsoleAppender=f},6934:(Z,H,M)=>{Object.defineProperty(H,"__esModule",{value:!0});var A=M(6570),I=M(9378),D=M(5716),p=new Set;p.add("append"),p.add("isActive"),p.add("setLogLevel"),p.add("setLayout"),p.add("getLayout"),p.add("format");var b=new Map,c=new Map;H.getAppenderName=function(m){return m.name||A.getFunctionName(m)},H.addAppender=function(m,_){!function(m){m instanceof D.LogAppender&&p.forEach(function(_){if(!(m.prototype[_]&&m.prototype[_]instanceof Function))throw new Error("Invalid appender: missing/invalid method: "+_)})}(m);var y=_||H.getAppenderName(m);return b.has(y)||b.set(y,m),m},H.registerAppender=function(m){var _=H.getAppenderName(m);return b.has(_)&&H.addAppender(m),b.set(_,m),m},H.getAppender=function(m){return b.get(m)},H.getLoggerAppenderInstances=function(m){if(m&&m.length>0)return m.map(function(y){if(c.has(y)){var E=c.get(y);return new I.AppenderWrapper(E.appender,E)}throw new Error("Invalid appender reference '"+y+"'")});var _=[];return c.forEach(function(y){return _.push(new I.AppenderWrapper(y.appender,y))}),_},H.setLoggerAppenderConfig=function(m,_){c.set(m,_)}},5716:(Z,H,M)=>{Object.defineProperty(H,"__esModule",{value:!0});var A=M(9059),I=function(){function D(p){}return D.prototype.isActive=function(){return!0===this.active},D.prototype.append=function(p){},D.prototype.getLogLevel=function(){return this.logLevel},D.prototype.setLogLevel=function(p){this.logLevel=p},D.prototype.setLayout=function(p){this.layout=p},D.prototype.getLayout=function(){return this.layout},D.prototype.format=function(p){return A.format(this.getLayout(),p)},D}();H.LogAppender=I},7800:(Z,H)=>{var A;Object.defineProperty(H,"__esModule",{value:!0}),(A=H.LogLevel||(H.LogLevel={}))[A.OFF=0]="OFF",A[A.FATAL=100]="FATAL",A[A.ERROR=200]="ERROR",A[A.WARN=300]="WARN",A[A.INFO=400]="INFO",A[A.DEBUG=500]="DEBUG",A[A.TRACE=600]="TRACE",A[A.ALL=2147483647]="ALL"},3188:(Z,H,M)=>{Object.defineProperty(H,"__esModule",{value:!0});var A=M(6934);H.Appender=function I(D){return function(p){return A.addAppender(p,D),p}}},1027:(Z,H,M)=>{Object.defineProperty(H,"__esModule",{value:!0});var A=M(5189);H.Filter=function I(D){return function(p){return A.addFilter(p,D),p}}},9626:(Z,H,M)=>{Object.defineProperty(H,"__esModule",{value:!0});var A=M(9186);M(3037);var I=Symbol("logMarker");H.LogMarker=function D(b){return function(c,f){Reflect.defineMetadata(I,b,c,f)}},H.Log=function p(b,c){for(var f=[],m=2;m{Object.defineProperty(H,"__esModule",{value:!0});var A=M(9186),I=new Set;I.add("isMatch");var D=new Map;H.addFilter=function(b,c){return function(b){if(b instanceof A.LogFilter){var c=new b;I.forEach(function(f){if(!(c[f]&&c[f]instanceof Function))throw new Error("Invalid filter: missing/invalid method: "+f)})}}(b),D.has(c)||D.set(c,b),b},H.getFilter=function(b){return D.get(b)}},9826:(Z,H)=>{var A;Object.defineProperty(H,"__esModule",{value:!0}),(A=H.LogFilterAction||(H.LogFilterAction={})).ALLOW="ALLOW",A.NEUTRAL="NEUTRAL",A.DENY="DENY"},6558:(Z,H)=>{Object.defineProperty(H,"__esModule",{value:!0}),H.LogFilter=function A(I){this.configuration=I}},3585:function(Z,H,M){var c,A=this&&this.__extends||(c=function(f,m){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,y){_.__proto__=y}||function(_,y){for(var E in y)y.hasOwnProperty(E)&&(_[E]=y[E])})(f,m)},function(f,m){function _(){this.constructor=f}c(f,m),f.prototype=null===m?Object.create(m):(_.prototype=m.prototype,new _)}),I=this&&this.__decorate||function(c,f,m,_){var g,y=arguments.length,E=y<3?f:null===_?_=Object.getOwnPropertyDescriptor(f,m):_;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)E=Reflect.decorate(c,f,m,_);else for(var l=c.length-1;l>=0;l--)(g=c[l])&&(E=(y<3?g(E):y>3?g(f,m,E):g(f,m))||E);return y>3&&E&&Object.defineProperty(f,m,E),E};Object.defineProperty(H,"__esModule",{value:!0});var D=M(1027),b=function(c){function f(){return null!==c&&c.apply(this,arguments)||this}return A(f,c),f.prototype.isMatch=function(m){return!!m.marker&&(m.marker.name===this.configuration.marker||this._isParentMarkerMatch(m.marker))},f.prototype._isParentMarkerMatch=function(m){var _=this;return!!m.hasParents()&&m.getParents().every(function(y){return y.name===_.configuration.marker||_._isParentMarkerMatch(y)})},I([D.Filter("Marker")],f)}(M(6558).LogFilter);H.MarkerFilter=b},7378:function(Z,H,M){var c,A=this&&this.__extends||(c=function(f,m){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,y){_.__proto__=y}||function(_,y){for(var E in y)y.hasOwnProperty(E)&&(_[E]=y[E])})(f,m)},function(f,m){function _(){this.constructor=f}c(f,m),f.prototype=null===m?Object.create(m):(_.prototype=m.prototype,new _)}),I=this&&this.__decorate||function(c,f,m,_){var g,y=arguments.length,E=y<3?f:null===_?_=Object.getOwnPropertyDescriptor(f,m):_;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)E=Reflect.decorate(c,f,m,_);else for(var l=c.length-1;l>=0;l--)(g=c[l])&&(E=(y<3?g(E):y>3?g(f,m,E):g(f,m))||E);return y>3&&E&&Object.defineProperty(f,m,E),E};Object.defineProperty(H,"__esModule",{value:!0});var D=M(1027),b=function(c){function f(){return null!==c&&c.apply(this,arguments)||this}return A(f,c),f.prototype.isMatch=function(m){return m.level<=this.configuration.level},I([D.Filter("Threshold")],f)}(M(6558).LogFilter);H.ThresholdFilter=b},9186:(Z,H,M)=>{Object.defineProperty(H,"__esModule",{value:!0}),M(3037),function A(h){for(var w in h)H.hasOwnProperty(w)||(H[w]=h[w])}(M(6122));var I=M(1160);H.Logger=I.Logger;var D=M(7800);H.LogLevel=D.LogLevel;var p=M(5716);H.LogAppender=p.LogAppender;var b=M(1115);H.ConsoleAppender=b.ConsoleAppender;var c=M(123);H.Marker=c.Marker;var f=M(3188);H.Appender=f.Appender;var m=M(1027);H.Filter=m.Filter;var _=M(9626);H.Log=_.Log,H.LogMarker=_.LogMarker;var y=M(9826);H.LogFilterAction=y.LogFilterAction;var E=M(6558);H.LogFilter=E.LogFilter;var g=M(3585);H.MarkerFilter=g.MarkerFilter;var l=M(7378);H.ThresholdFilter=l.ThresholdFilter},9749:(Z,H)=>{Object.defineProperty(H,"__esModule",{value:!0});var I,f,M=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,A=/[^-+\dA-Z]/g;H.padLeft=function(f,m,_){void 0===_&&(_=" ");for(var y=String(f);y.length0?"-":"+")+H.padLeft(100*Math.floor(Math.abs(_)/60)+Math.abs(_)%60,4,"0")}};H.formatDate=function(f,m){f instanceof Date||(f=new Date(f));var _="UTC:"===(m=String(m||I.DEFAULT)).slice(0,4);return _&&(m=m.slice(4)),function c(f){if(p[f]instanceof Array)return p[f];for(var E,g,m=[],_=/(.)\1+|(.)/,y=f;E=y.match(_);)m.push(b[g=E[0]]||g),y=y.substring(g.length);return p[f]=m,m}(m).map(function(y){return y instanceof Function?y(f,_):y}).join("")}},9059:(Z,H,M)=>{Object.defineProperty(H,"__esModule",{value:!0});var A=M(7800),I=M(6570),D=M(9749);H.format=function p(z,L){return function U(z,L){for(var P,$="",Q=z.length,T=0;T{Object.defineProperty(H,"__esModule",{value:!0});var A=M(6934),I=M(1160);H.MAIN_LOGGER="main";var D=new Map;H.addLogger=function(p,b){D.set(p,b)},H.getLogger=function(p,b){if(D.has(p))return D.get(p);var c=A.getLoggerAppenderInstances(b.appenders).map(function(f){return f.appender.setLogLevel(b.level),f.appender.setLayout(b.layout),f});return new I.Logger(p,c)}},1160:(Z,H,M)=>{Object.defineProperty(H,"__esModule",{value:!0});var A=M(9186),I=M(123),D=function(){function p(b,c){this._appenders=c,this._logContext=b,this._logSequence=0,this._relative=(new Date).getTime()}return p.prototype.log=function(b,c){for(var f=this,m=[],_=2;_{Object.defineProperty(H,"__esModule",{value:!0});var M=function(){function A(I){this._parents=new Set,this._name=I}return A.getMarker=function(I){return A._markers.hasOwnProperty(I)||(A._markers[I]=new A(I)),A._markers[I]},Object.defineProperty(A.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),A.prototype.getParents=function(){var I=[];return this._parents.forEach(function(D){return I.push(D)}),I},A.prototype.hasParents=function(){return this._parents.size>0},A.prototype.remove=function(I){return this._parents.delete(I),this},A.prototype.setParents=function(){for(var I=[],D=0;D{Object.defineProperty(H,"__esModule",{value:!0}),H.getFunctionName=function(M){if(""!==M.name)return M.name;var A=M.toString().substring(9);return(A=A.substring(0,A.indexOf("(")))&&A.trim()?A:"anonymous"},H.isArray=function(M){return"object"==typeof M&&M instanceof Array}},2427:(Z,H)=>{Object.defineProperty(H,"__esModule",{value:!0});var M,A=!0;H.useVirtualConsole=function(I){A=I},H.getVirtualConsole=function(I){if(!A)return console;var D=function(){function p(){this.isVirtual=!0,this.memory={}}return p.prototype.assert=function(b,c){for(var f=[],m=2;m{"use strict";function A(n){return"function"==typeof n}let I=!1;const D={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else I&&console.log("RxJS: Back to a better error behavior. Thank you. <3");I=n},get useDeprecatedSynchronousErrorHandling(){return I}};function p(n){setTimeout(()=>{throw n},0)}const b={closed:!0,next(n){},error(n){if(D.useDeprecatedSynchronousErrorHandling)throw n;p(n)},complete(){}},c=Array.isArray||(n=>n&&"number"==typeof n.length);function f(n){return null!==n&&"object"==typeof n}const _=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class y{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof y)e.remove(this);else if(null!==e)for(let o=0;ot.concat(e instanceof _?e.errors:e),[])}y.EMPTY=((n=new y).closed=!0,n);const g="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class h extends y{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=b;break;case 1:if(!t){this.destination=b;break}if("object"==typeof t){t instanceof h?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new w(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new w(this,t,e,i)}}[g](){return this}static create(t,e,i){const r=new h(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class w extends h{constructor(t,e,i,r){super(),this._parentSubscriber=t;let s,o=this;A(e)?s=e:e&&(s=e.next,i=e.error,r=e.complete,e!==b&&(o=Object.create(e),A(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;D.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=D;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):p(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;p(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);D.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),D.useDeprecatedSynchronousErrorHandling)throw i;p(i)}}__tryOrSetError(t,e,i){if(!D.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return D.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(p(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const S="function"==typeof Symbol&&Symbol.observable||"@@observable";function x(n){return n}let j=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:s}=this,o=function v(n,t,e){if(n){if(n instanceof h)return n;if(n[g])return n[g]()}return n||t||e?new h(n,t,e):new h(b)}(e,i,r);if(o.add(s?s.call(o,this.source):this.source||D.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),D.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){D.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function u(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof h?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Y(i))((r,s)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(d){s(d),o&&o.unsubscribe()}},s,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[S](){return this}pipe(...e){return 0===e.length?this:function B(n){return 0===n.length?x:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=Y(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=t=>new n(t),n})();function Y(n){if(n||(n=D.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const W=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class q extends y{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class ee extends h{constructor(t){super(t),this.destination=t}}let U=(()=>{class n extends j{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[g](){return new ee(this)}lift(e){const i=new ne(this,this);return i.operator=e,i}next(e){if(this.closed)throw new W;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;onew ne(t,e),n})();class ne extends U{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):y.EMPTY}}function z(n){return n&&"function"==typeof n.schedule}function L(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new P(n,t))}}class P{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new $(t,this.project,this.thisArg))}}class $ extends h{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Q=n=>t=>{for(let e=0,i=n.length;en&&"number"==typeof n.length&&"function"!=typeof n;function ye(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Fe=n=>{if(n&&"function"==typeof n[S])return(n=>t=>{const e=n[S]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(ie(n))return Q(n);if(ye(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,p),t))(n);if(n&&"function"==typeof n[F])return(n=>t=>{const e=n[F]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${f(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function et(n,t){return new j(e=>{const i=new y;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function Re(n,t){return t?function st(n,t){if(null!=n){if(function Be(n){return n&&"function"==typeof n[S]}(n))return function me(n,t){return new j(e=>{const i=new y;return i.add(t.schedule(()=>{const r=n[S]();i.add(r.subscribe({next(s){i.add(t.schedule(()=>e.next(s)))},error(s){i.add(t.schedule(()=>e.error(s)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(ye(n))return function Ve(n,t){return new j(e=>{const i=new y;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(ie(n))return et(n,t);if(function $e(n){return n&&"function"==typeof n[F]}(n)||"string"==typeof n)return function qe(n,t){if(!n)throw new Error("Iterable cannot be null");return new j(e=>{const i=new y;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[F](),i.add(t.schedule(function(){if(e.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(s),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof j?n:new j(Fe(n))}class ut extends h{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Jt extends h{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function kt(n,t){if(t.closed)return;if(n instanceof j)return n.subscribe(t);let e;try{e=Fe(n)(t)}catch(i){t.error(i)}return e}function Rt(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(Rt((r,s)=>Re(n(r,s)).pipe(L((o,a)=>t(r,o,s,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new yn(n,e)))}class yn{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new fe(t,this.project,this.concurrent))}}class fe extends Jt{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function be(n=Number.POSITIVE_INFINITY){return Rt(x,n)}function Ce(n,t){return t?et(n,t):new j(Q(n))}function Ae(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return z(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof j?n[0]:be(t)(Ce(n,e))}function Yt(){return function(t){return t.lift(new tt(t))}}class tt{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new Ct(t,i),s=e.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class Ct extends h{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class rt extends j{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new y,t.add(this.source.subscribe(new Pt(this.getSubject(),this))),t.closed&&(this._connection=null,t=y.EMPTY)),t}refCount(){return Yt()(this)}}const Ft=(()=>{const n=rt.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class Pt extends ee{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function Dr(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new Ln(r,t));const s=Object.create(i,Ft);return s.source=i,s.subjectFactory=r,s}}class Ln{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(t);return s.add(e.subscribe(r)),s}}function Tn(){return new U}function Ni(){return n=>Yt()(Dr(Tn)(n))}function gt(n){for(let t in n)if(n[t]===gt)return t;throw Error("Could not find renamed property on target object.")}function Jn(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function vt(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(vt).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Mi(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const Wi=gt({__forward_ref__:gt});function Ot(n){return n.__forward_ref__=Ot,n.toString=function(){return vt(this())},n}function Dt(n){return _i(n)?n():n}function _i(n){return"function"==typeof n&&n.hasOwnProperty(Wi)&&n.__forward_ref__===Ot}class Ke extends Error{constructor(t,e){super(function Bl(n,t){return`NG0${Math.abs(n)}${t?": "+t:""}`}(t,e)),this.code=t}}function ae(n){return"string"==typeof n?n:null==n?"":String(n)}function _e(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():ae(n)}function Ze(n,t){const e=t?` in ${t}`:"";throw new Ke(-201,`No provider for ${_e(n)} found${e}`)}function tn(n,t){null==n&&function pn(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function xe(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function dt(n){return{providers:n.providers||[],imports:n.imports||[]}}function zf(n){return x_(n,Ru)||x_(n,A_)}function x_(n,t){return n.hasOwnProperty(t)?n[t]:null}function k_(n){return n&&(n.hasOwnProperty(Uf)||n.hasOwnProperty(Qx))?n[Uf]:null}const Ru=gt({\u0275prov:gt}),Uf=gt({\u0275inj:gt}),A_=gt({ngInjectableDef:gt}),Qx=gt({ngInjectorDef:gt});var xt=(()=>((xt=xt||{})[xt.Default=0]="Default",xt[xt.Host=1]="Host",xt[xt.Self=2]="Self",xt[xt.SkipSelf=4]="SkipSelf",xt[xt.Optional=8]="Optional",xt))();let $f;function Fs(n){const t=$f;return $f=n,t}function T_(n,t,e){const i=zf(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&xt.Optional?null:void 0!==t?t:void Ze(vt(n),"Injector")}function Ps(n){return{toString:n}.toString()}var Er=(()=>((Er=Er||{})[Er.OnPush=0]="OnPush",Er[Er.Default=1]="Default",Er))(),Sr=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Sr||(Sr={})),Sr))();const Jx="undefined"!=typeof globalThis&&globalThis,ek="undefined"!=typeof window&&window,tk="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,vn=Jx||"undefined"!=typeof global&&global||ek||tk,da={},bn=[],Ou=gt({\u0275cmp:gt}),Gf=gt({\u0275dir:gt}),Wf=gt({\u0275pipe:gt}),I_=gt({\u0275mod:gt}),fs=gt({\u0275fac:gt}),Vl=gt({__NG_ELEMENT_ID__:gt});let nk=0;function Ge(n){return Ps(()=>{const e={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Er.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||bn,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Sr.Emulated,id:"c",styles:n.styles||bn,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=nk++,i.inputs=P_(n.inputs,e),i.outputs=P_(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(R_):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(O_):null,i})}function R_(n){return bi(n)||function Ns(n){return n[Gf]||null}(n)}function O_(n){return function go(n){return n[Wf]||null}(n)}const F_={};function mt(n){return Ps(()=>{const t={type:n.type,bootstrap:n.bootstrap||bn,declarations:n.declarations||bn,imports:n.imports||bn,exports:n.exports||bn,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(F_[n.id]=n.type),t})}function P_(n,t){if(null==n)return da;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,t&&(t[r]=s)}return e}const De=Ge;function bi(n){return n[Ou]||null}function ar(n,t){const e=n[I_]||null;if(!e&&!0===t)throw new Error(`Type ${vt(n)} does not have '\u0275mod' property.`);return e}function $r(n){return Array.isArray(n)&&"object"==typeof n[1]}function kr(n){return Array.isArray(n)&&!0===n[1]}function Kf(n){return 0!=(8&n.flags)}function Lu(n){return 2==(2&n.flags)}function Bu(n){return 1==(1&n.flags)}function Ar(n){return null!==n.template}function lk(n){return 0!=(512&n[2])}function bo(n,t){return n.hasOwnProperty(fs)?n[fs]:null}class dk{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function on(){return L_}function L_(n){return n.type.prototype.ngOnChanges&&(n.setInput=fk),hk}function hk(){const n=V_(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===da)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function fk(n,t,e,i){const r=V_(n)||function pk(n,t){return n[B_]=t}(n,{previous:da,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],d=o[a];s[a]=new dk(d&&d.currentValue,t,o===da),n[i]=t}on.ngInherit=!0;const B_="__ngSimpleChanges__";function V_(n){return n[B_]||null}let e0;function Bn(n){return!!n.listen}const H_={createRenderer:(n,t)=>function t0(){return void 0!==e0?e0:"undefined"!=typeof document?document:void 0}()};function Wn(n){for(;Array.isArray(n);)n=n[0];return n}function Vu(n,t){return Wn(t[n])}function ur(n,t){return Wn(t[n.index])}function n0(n,t){return n.data[t]}function qi(n,t){const e=t[n];return $r(e)?e:e[0]}function j_(n){return 4==(4&n[2])}function r0(n){return 128==(128&n[2])}function Ls(n,t){return null==t?null:n[t]}function z_(n){n[18]=0}function s0(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const Tt={lFrame:Q_(null),bindingsEnabled:!0};function $_(){return Tt.bindingsEnabled}function ke(){return Tt.lFrame.lView}function cn(){return Tt.lFrame.tView}function Qt(n){return Tt.lFrame.contextLView=n,n[8]}function ei(){let n=G_();for(;null!==n&&64===n.type;)n=n.parent;return n}function G_(){return Tt.lFrame.currentTNode}function Gr(n,t){const e=Tt.lFrame;e.currentTNode=n,e.isParent=t}function o0(){return Tt.lFrame.isParent}function a0(){Tt.lFrame.isParent=!1}function va(){return Tt.lFrame.bindingIndex++}function ms(n){const t=Tt.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function Ik(n,t){const e=Tt.lFrame;e.bindingIndex=e.bindingRootIndex=n,l0(t)}function l0(n){Tt.lFrame.currentDirectiveIndex=n}function c0(n){const t=Tt.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function q_(){return Tt.lFrame.currentQueryIndex}function u0(n){Tt.lFrame.currentQueryIndex=n}function Ok(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function K_(n,t,e){if(e&xt.SkipSelf){let r=t,s=n;for(;!(r=r.parent,null!==r||e&xt.Host||(r=Ok(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,n=s}const i=Tt.lFrame=X_();return i.currentTNode=t,i.lView=n,!0}function ju(n){const t=X_(),e=n[1];Tt.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function X_(){const n=Tt.lFrame,t=null===n?null:n.child;return null===t?Q_(n):t}function Q_(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function Z_(){const n=Tt.lFrame;return Tt.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const J_=Z_;function zu(){const n=Z_();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Si(){return Tt.lFrame.selectedIndex}function Bs(n){Tt.lFrame.selectedIndex=n}function Vn(){const n=Tt.lFrame;return n0(n.tView,n.selectedIndex)}function $l(){Tt.lFrame.currentNamespace="svg"}function d0(){!function Lk(){Tt.lFrame.currentNamespace=null}()}function Uu(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[d]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Gl{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Wu(n,t,e){const i=Bn(n);let r=0;for(;rt){o=s-1;break}}}for(;s>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let m0=!0;function qu(n){const t=m0;return m0=n,t}let Wk=0;function Yl(n,t){const e=v0(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,g0(i.data,n),g0(t,null),g0(i.blueprint,null));const r=Ku(n,t),s=n.injectorIndex;if(r1(r)){const o=_a(r),a=ya(r,t),d=a[1].data;for(let C=0;C<8;C++)t[s+C]=a[o+C]|d[o+C]}return t[s+8]=r,s}function g0(n,t){n.push(0,0,0,0,0,0,0,0,t)}function v0(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Ku(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Xu(n,t,e){!function Yk(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Vl)&&(i=e[Vl]),null==i&&(i=e[Vl]=Wk++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:Kk:t}(e);if("function"==typeof s){if(!K_(t,n,i))return i&xt.Host?a1(r,e,i):l1(t,e,i,r);try{const o=s(i);if(null!=o||i&xt.Optional)return o;Ze(e)}finally{J_()}}else if("number"==typeof s){let o=null,a=v0(n,t),d=-1,C=i&xt.Host?t[16][6]:null;for((-1===a||i&xt.SkipSelf)&&(d=-1===a?Ku(n,t):t[a+8],-1!==d&&h1(i,!1)?(o=t[1],a=_a(d),t=ya(d,t)):a=-1);-1!==a;){const k=t[1];if(d1(s,a,k.data)){const N=Xk(a,t,e,o,i,C);if(N!==u1)return N}d=t[a+8],-1!==d&&h1(i,t[1].data[a+8]===C)&&d1(s,a,t)?(o=k,a=_a(d),t=ya(d,t)):a=-1}}}return l1(t,e,i,r)}const u1={};function Kk(){return new ba(ei(),ke())}function Xk(n,t,e,i,r,s){const o=t[1],a=o.data[n+8],k=Qu(a,o,e,null==i?Lu(a)&&m0:i!=o&&0!=(3&a.type),r&xt.Host&&s===a);return null!==k?ql(t,o,k,a):u1}function Qu(n,t,e,i,r){const s=n.providerIndexes,o=t.data,a=1048575&s,d=n.directiveStart,k=s>>20,G=r?a+k:n.directiveEnd;for(let X=i?a:a+k;X=d&&re.type===e)return X}if(r){const X=o[d];if(X&&Ar(X)&&X.type===e)return d}return null}function ql(n,t,e,i){let r=n[e];const s=t.data;if(function jk(n){return n instanceof Gl}(r)){const o=r;o.resolving&&function Te(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new Ke(-200,`Circular dependency in DI detected for ${n}${e}`)}(_e(s[e]));const a=qu(o.canSeeViewProviders);o.resolving=!0;const d=o.injectImpl?Fs(o.injectImpl):null;K_(n,i,xt.Default);try{r=n[e]=o.factory(void 0,s,n,i),t.firstCreatePass&&e>=i.directiveStart&&function Vk(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const o=L_(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==d&&Fs(d),qu(a),o.resolving=!1,J_()}}return r}function d1(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[fs]||_0(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[fs]||_0(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function _0(n){return _i(n)?()=>{const t=_0(Dt(n));return t&&t()}:bo(n)}function dr(n){return function qk(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function y0(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(d,C,k){const N=d.hasOwnProperty(Ca)?d[Ca]:Object.defineProperty(d,Ca,{value:[]})[Ca];for(;N.length<=k;)N.push(null);return(N[k]=N[k]||[]).push(o),d}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class Ie{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=xe({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Jk=new Ie("AnalyzeForEntryComponents");function hr(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?Wr(e,t):t(e))}function p1(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Zu(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Ql(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function nA(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function w0(n,t){const e=Ea(n,t);if(e>=0)return n[1|e]}function Ea(n,t){return function v1(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=n[s<t?r=s:i=s+1}return~(r<({token:n})),-1),xi=tc(Ma("Optional"),8),Yr=tc(Ma("SkipSelf"),4);let id;function xa(n){var t;return(null===(t=function S0(){if(void 0===id&&(id=null,vn.trustedTypes))try{id=vn.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return id}())||void 0===t?void 0:t.createHTML(n))||n}class wo{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class SA extends wo{getTypeName(){return"HTML"}}class xA extends wo{getTypeName(){return"Style"}}class kA extends wo{getTypeName(){return"Script"}}class AA extends wo{getTypeName(){return"URL"}}class TA extends wo{getTypeName(){return"ResourceURL"}}function Xi(n){return n instanceof wo?n.changingThisBreaksApplicationSecurity:n}function qr(n,t){const e=A1(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function A1(n){return n instanceof wo&&n.getTypeName()||null}class NA{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(xa(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class LA{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=xa(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=xa(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0ic(t.trim())).join(", ")}function Kr(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function rc(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const R1=Kr("area,br,col,hr,img,wbr"),O1=Kr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),F1=Kr("rp,rt"),k0=rc(R1,rc(O1,Kr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),rc(F1,Kr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),rc(F1,O1)),A0=Kr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),T0=Kr("srcset"),P1=rc(A0,T0,Kr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Kr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),jA=Kr("script,style,template");class zA{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!k0.hasOwnProperty(e))return this.sanitizedSomething=!0,!jA.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();k0.hasOwnProperty(e)&&!R1.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(N1(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const UA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$A=/([^\#-~ |!])/g;function N1(n){return n.replace(/&/g,"&").replace(UA,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace($A,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let sd;function L1(n,t){let e=null;try{sd=sd||function T1(n){const t=new LA(n);return function BA(){try{return!!(new window.DOMParser).parseFromString(xa(""),"text/html")}catch(n){return!1}}()?new NA(t):t}(n);let i=t?String(t):"";e=sd.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=e.innerHTML,e=sd.getInertBodyElement(i)}while(i!==s);return xa((new zA).sanitizeChildren(I0(e)||e))}finally{if(e){const i=I0(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function I0(n){return"content"in n&&function GA(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var dn=(()=>((dn=dn||{})[dn.NONE=0]="NONE",dn[dn.HTML=1]="HTML",dn[dn.STYLE=2]="STYLE",dn[dn.SCRIPT=3]="SCRIPT",dn[dn.URL=4]="URL",dn[dn.RESOURCE_URL=5]="RESOURCE_URL",dn))();function od(n){const t=function sc(){const n=ke();return n&&n[12]}();return t?t.sanitize(dn.URL,n)||"":qr(n,"URL")?Xi(n):ic(ae(n))}const H1="__ngContext__";function Ci(n,t){n[H1]=t}function O0(n){const t=function oc(n){return n[H1]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function P0(n){return n.ngOriginalError}function lT(n,...t){n.error(...t)}class Hs{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=function aT(n){return n&&n.ngErrorLogger||lT}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&P0(t);for(;e&&P0(e);)e=P0(e);return e||null}}const _T=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(vn))();function Xr(n){return n instanceof Function?n():n}var Qi=(()=>((Qi=Qi||{})[Qi.Important=1]="Important",Qi[Qi.DashCase=2]="DashCase",Qi))();function L0(n,t){return undefined(n,t)}function ac(n){const t=n[3];return kr(t)?t[3]:t}function B0(n){return K1(n[13])}function V0(n){return K1(n[4])}function K1(n){for(;null!==n&&!kr(n);)n=n[4];return n}function Aa(n,t,e,i,r){if(null!=i){let s,o=!1;kr(i)?s=i:$r(i)&&(o=!0,i=i[0]);const a=Wn(i);0===n&&null!==e?null==r?ty(t,e,a):Co(t,e,a,r||null,!0):1===n&&null!==e?Co(t,e,a,r||null,!0):2===n?function ly(n,t,e){const i=ad(n,t);i&&function RT(n,t,e,i){Bn(n)?n.removeChild(t,e,i):t.removeChild(e)}(n,i,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function PT(n,t,e,i,r){const s=e[7];s!==Wn(e)&&Aa(t,n,i,s,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const s=Zu(n,10+t);!function MT(n,t){lc(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Z1(n,t){if(!(256&t[2])){const e=t[11];Bn(e)&&e.destroyNode&&lc(n,t,e,3,null,null),function xT(n){let t=n[13];if(!t)return U0(n[1],n);for(;t;){let e=null;if($r(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)$r(t)&&U0(t[1],t),t=t[3];null===t&&(t=n),$r(t)&&U0(t[1],t),e=t&&t[4]}t=e}}(t)}}function U0(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function IT(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=C]():i[r=-C].unsubscribe(),s+=2}else{const o=i[r=e[s+1]];e[s].call(o)}if(null!==i){for(let s=r+1;ss?"":r[N+1].toLowerCase();const X=8&i?G:null;if(X&&-1!==dy(X,C,0)||2&i&&C!==G){if(Tr(i))return!1;o=!0}}}}else{if(!o&&!Tr(i)&&!Tr(d))return!1;if(o&&Tr(d))continue;o=!1,i=d|1&i}}return Tr(i)||o}function Tr(n){return 0==(1&n)}function HT(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let s=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Tr(o)&&(t+=my(s,r),r=""),i=o,s=s||!Tr(i);e++}return""!==r&&(t+=my(s,r)),t}const It={};function he(n){gy(cn(),ke(),Si()+n,!1)}function gy(n,t,e,i){if(!i)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&$u(t,s,e)}else{const s=n.preOrderHooks;null!==s&&Gu(t,s,0,e)}Bs(e)}function ud(n,t){return n<<17|t<<2}function Ir(n){return n>>17&32767}function q0(n){return 2|n}function gs(n){return(131068&n)>>2}function K0(n,t){return-131069&n|t<<2}function X0(n){return 1|n}function xy(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i20&&gy(n,t,20,!1),e(i,r)}finally{Bs(s)}}function Ay(n,t,e){if(Kf(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=d&&a.push(d),a.push(i,r,o)}}function Ly(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function By(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function b6(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&up(e)}}function up(n){for(let i=B0(n);null!==i;i=V0(i))for(let r=10;r0&&up(s)}const e=n[1].components;if(null!==e)for(let i=0;i0&&up(r)}}function x6(n,t){const e=qi(t,n),i=e[1];(function k6(n,t){for(let e=t.length;ePromise.resolve(null))();function Uy(n){return n[7]||(n[7]=[])}function $y(n){return n.cleanup||(n.cleanup=[])}function Gy(n,t,e){return(null===n||Ar(n))&&(e=function wk(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function Wy(n,t){const e=n[9],i=e?e.get(Hs,null):null;i&&i.handleError(t)}function Yy(n,t,e,i,r){for(let s=0;sthis.processProvider(a,t,e)),Wr([t],a=>this.processInjectorType(a,[],s)),this.records.set(mp,Oa(void 0,this));const o=this.records.get(gp);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:vt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Zl,i=xt.Default){this.assertNotDestroyed();const r=b1(this),s=Fs(void 0);try{if(!(i&xt.SkipSelf)){let a=this.records.get(t);if(void 0===a){const d=function z6(n){return"function"==typeof n||"object"==typeof n&&n instanceof Ie}(t)&&zf(t);a=d&&this.injectableDefInScope(d)?Oa(_p(t),dc):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&xt.Self?Ky():this.parent).get(t,e=i&xt.Optional&&e===Zl?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[ed]=o[ed]||[]).unshift(vt(t)),r)throw o;return function pA(n,t,e,i){const r=n[ed];throw t[y1]&&r.unshift(t[y1]),n.message=function mA(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=vt(t);if(Array.isArray(t))r=t.map(vt).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):vt(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(cA,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[ed]=null,n}(o,t,"R3InjectorError",this.source)}throw o}finally{Fs(s),b1(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(vt(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ke(205,!1)}processInjectorType(t,e,i){if(!(t=Dt(t)))return!1;let r=k_(t);const s=null==r&&t.ngModule||void 0,o=void 0===s?t:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=k_(s)),null==r)return!1;if(null!=r.imports&&!a){let k;i.push(o);try{Wr(r.imports,N=>{this.processInjectorType(N,e,i)&&(void 0===k&&(k=[]),k.push(N))})}finally{}if(void 0!==k)for(let N=0;Nthis.processProvider(re,G,X||bn))}}this.injectorDefTypes.add(o);const d=bo(o)||(()=>new o);this.records.set(o,Oa(d,dc));const C=r.providers;if(null!=C&&!a){const k=t;Wr(C,N=>this.processProvider(N,k,C))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let r=Fa(t=Dt(t))?t:Dt(t&&t.provide);const s=function N6(n,t,e){return Jy(n)?Oa(void 0,n.useValue):Oa(Zy(n),dc)}(t);if(Fa(t)||!0!==t.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Oa(void 0,dc,!0),o.factory=()=>M0(o.multi),this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,s)}hydrate(t,e){return e.value===dc&&(e.value=O6,e.value=e.factory()),"object"==typeof e.value&&e.value&&function j6(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=Dt(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function _p(n){const t=zf(n),e=null!==t?t.factory:bo(n);if(null!==e)return e;if(n instanceof Ie)throw new Ke(204,!1);if(n instanceof Function)return function P6(n){const t=n.length;if(t>0)throw Ql(t,"?"),new Ke(204,!1);const e=function Kx(n){const t=n&&(n[Ru]||n[A_]);if(t){const e=function Xx(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Ke(204,!1)}function Zy(n,t,e){let i;if(Fa(n)){const r=Dt(n);return bo(r)||_p(r)}if(Jy(n))i=()=>Dt(n.useValue);else if(function B6(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...M0(n.deps||[]));else if(function L6(n){return!(!n||!n.useExisting)}(n))i=()=>ue(Dt(n.useExisting));else{const r=Dt(n&&(n.useClass||n.provide));if(!function H6(n){return!!n.deps}(n))return bo(r)||_p(r);i=()=>new r(...M0(n.deps))}return i}function Oa(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function Jy(n){return null!==n&&"object"==typeof n&&dA in n}function Fa(n){return"function"==typeof n}let Dn=(()=>{class n{static create(e,i){var r;if(Array.isArray(e))return Xy({name:""},i,e,"");{const s=null!==(r=e.name)&&void 0!==r?r:"";return Xy({name:s},e.parent,e.providers,s)}}}return n.THROW_IF_NOT_FOUND=Zl,n.NULL=new qy,n.\u0275prov=xe({token:n,providedIn:"any",factory:()=>ue(mp)}),n.__NG_ELEMENT_ID__=-1,n})();function X6(n,t){Uu(O0(n)[1],ei())}function Pe(n){let t=function db(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(Ar(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Ke(903,"");r=t.\u0275dir}if(r){if(e){i.push(r);const o=n;o.inputs=wp(n.inputs),o.declaredInputs=wp(n.declaredInputs),o.outputs=wp(n.outputs);const a=r.hostBindings;a&&e5(n,a);const d=r.viewQuery,C=r.contentQueries;if(d&&Z6(n,d),C&&J6(n,C),Jn(n.inputs,r.inputs),Jn(n.declaredInputs,r.declaredInputs),Jn(n.outputs,r.outputs),Ar(r)&&r.data.animation){const k=n.data;k.animation=(k.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Yu(r.hostAttrs,e=Yu(e,r.hostAttrs))}}(i)}function wp(n){return n===da?{}:n===bn?[]:n}function Z6(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function J6(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,s)=>{t(i,r,s),e(i,r,s)}:t}function e5(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let gd=null;function Pa(){if(!gd){const n=vn.Symbol;if(n&&n.iterator)gd=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Wn(it[i.index])):i.index;if(Bn(e)){let it=null;if(!a&&d&&(it=function T5(n,t,e,i){const r=n.cleanup;if(null!=r)for(let s=0;sd?a[d]:null}"string"==typeof o&&(s+=2)}return null}(n,t,r,i.index)),null!==it)(it.__ngLastListenerFn__||it).__ngNextListenerFn__=s,it.__ngLastListenerFn__=s,X=!1;else{s=Ap(i,t,N,s,!1);const Wt=e.listen(Me,r,s);G.push(s,Wt),k&&k.push(r,Ne,pe,pe+1)}}else s=Ap(i,t,N,s,!0),Me.addEventListener(r,s,o),G.push(s),k&&k.push(r,Ne,pe,o)}else s=Ap(i,t,N,s,!1);const re=i.outputs;let de;if(X&&null!==re&&(de=re[r])){const ve=de.length;if(ve)for(let Me=0;Me0;)t=t[15],n--;return t}(n,Tt.lFrame.contextLView))[8]}(n)}function I5(n,t){let e=null;const i=function jT(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r=0}const ni={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function zb(n){return n.substring(ni.key,ni.keyEnd)}function Ub(n,t){const e=ni.textEnd;return e===t?-1:(t=ni.keyEnd=function B5(n,t,e){for(;t32;)t++;return t}(n,ni.key=t,e),Ka(n,t,e))}function Ka(n,t,e){for(;t=0;e=Ub(t,e))Ki(n,zb(t),!0)}function Pr(n,t,e,i){const r=ke(),s=cn(),o=ms(2);s.firstUpdatePass&&Kb(s,n,o,i),t!==It&&Di(r,o,t)&&Qb(s,s.data[Si()],r,r[11],n,r[o+1]=function K5(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=vt(Xi(n)))),n}(t,e),i,o)}function qb(n,t){return t>=n.expandoStartIndex}function Kb(n,t,e,i){const r=n.data;if(null===r[e+1]){const s=r[Si()],o=qb(n,e);Jb(s,i)&&null===t&&!o&&(t=!1),t=function U5(n,t,e,i){const r=c0(n);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=mc(e=Ip(null,n,t,e,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==r)if(e=Ip(r,n,t,e,i),null===s){let d=function $5(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==gs(i))return n[Ir(i)]}(n,t,i);void 0!==d&&Array.isArray(d)&&(d=Ip(null,n,t,d[1],i),d=mc(d,t.attrs,i),function G5(n,t,e,i){n[Ir(e?t.classBindings:t.styleBindings)]=i}(n,t,i,d))}else s=function W5(n,t,e){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(C=!0)}else k=e;if(r)if(0!==d){const G=Ir(n[a+1]);n[i+1]=ud(G,a),0!==G&&(n[G+1]=K0(n[G+1],i)),n[a+1]=function qT(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=ud(a,0),0!==a&&(n[a+1]=K0(n[a+1],i)),a=i;else n[i+1]=ud(d,0),0===a?a=i:n[d+1]=K0(n[d+1],i),d=i;C&&(n[i+1]=q0(n[i+1])),jb(n,k,i,!0),jb(n,k,i,!1),function O5(n,t,e,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&Ea(s,t)>=0&&(e[i+1]=X0(e[i+1]))}(t,k,n,i,s),o=ud(a,d),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,i)}}function Ip(n,t,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const d=n[r],C=Array.isArray(d),k=C?d[1]:d,N=null===k;let G=e[r+1];G===It&&(G=N?bn:void 0);let X=N?w0(G,i):k===i?G:void 0;if(C&&!yd(X)&&(X=w0(d,i)),yd(X)&&(a=X,o))return a;const re=n[r+1];r=o?Ir(re):gs(re)}if(null!==t){let d=s?t.residualClasses:t.residualStyles;null!=d&&(a=w0(d,i))}return a}function yd(n){return void 0!==n}function Jb(n,t){return 0!=(n.flags&(t?16:32))}function we(n,t=""){const e=ke(),i=cn(),r=n+20,s=i.firstCreatePass?Ta(i,r,1,t,null):i.data[r],o=e[r]=function H0(n,t){return Bn(n)?n.createText(t):n.createTextNode(t)}(e[11],t);ld(i,e,o,s),Gr(s,!1)}function xn(n){return Rn("",n,""),xn}function Rn(n,t,e){const i=ke(),r=La(i,n,t,e);return r!==It&&vs(i,Si(),r),Rn}function Rp(n,t,e,i,r){const s=ke(),o=Ba(s,n,t,e,i,r);return o!==It&&vs(s,Si(),o),Rp}function aw(n,t,e){!function Nr(n,t,e,i){const r=cn(),s=ms(2);r.firstUpdatePass&&Kb(r,null,s,i);const o=ke();if(e!==It&&Di(o,s,e)){const a=r.data[Si()];if(Jb(a,i)&&!qb(r,s)){let d=i?a.classesWithoutHost:a.stylesWithoutHost;null!==d&&(e=Mi(d,e||"")),xp(r,a,o,e,i)}else!function q5(n,t,e,i,r,s,o,a){r===It&&(r=bn);let d=0,C=0,k=0>20;if(Fa(n)||!n.multi){const X=new Gl(d,r,V),re=Lp(a,t,r?k:k+G,N);-1===re?(Xu(Yl(C,o),s,a),Np(s,n,t.length),t.push(a),C.directiveStart++,C.directiveEnd++,r&&(C.providerIndexes+=1048576),e.push(X),o.push(X)):(e[re]=X,o[re]=X)}else{const X=Lp(a,t,k+G,N),re=Lp(a,t,k,k+G),de=X>=0&&e[X],ve=re>=0&&e[re];if(r&&!ve||!r&&!de){Xu(Yl(C,o),s,a);const Me=function fI(n,t,e,i,r){const s=new Gl(n,e,V);return s.multi=[],s.index=t,s.componentProviders=0,Uw(s,r,i&&!e),s}(r?hI:dI,e.length,r,i,d);!r&&ve&&(e[re].providerFactory=Me),Np(s,n,t.length,0),t.push(a),C.directiveStart++,C.directiveEnd++,r&&(C.providerIndexes+=1048576),e.push(Me),o.push(Me)}else Np(s,n,X>-1?X:re,Uw(e[r?re:X],d,!r&&i));!r&&i&&ve&&e[re].componentProviders++}}}function Np(n,t,e,i){const r=Fa(t),s=function V6(n){return!!n.useClass}(t);if(r||s){const d=(s?Dt(t.useClass):t).prototype.ngOnDestroy;if(d){const C=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const k=C.indexOf(e);-1===k?C.push(e,[i,d]):C[k+1].push(i,d)}else C.push(e,d)}}}function Uw(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Lp(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function uI(n,t,e){const i=cn();if(i.firstCreatePass){const r=Ar(n);Pp(e,i.data,i.blueprint,r,!0),Pp(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class $w{}class gI{resolveComponentFactory(t){throw function mI(n){const t=Error(`No component factory found for ${vt(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Eo=(()=>{class n{}return n.NULL=new gI,n})();function vI(){return Ja(ei(),ke())}function Ja(n,t){return new nt(ur(n,t))}let nt=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=vI,n})();function _I(n){return n instanceof nt?n.nativeElement:n}class bc{}let _s=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function bI(){const n=ke(),e=qi(ei().index,n);return function yI(n){return n[11]}($r(e)?e:n)}(),n})(),wI=(()=>{class n{}return n.\u0275prov=xe({token:n,providedIn:"root",factory:()=>null}),n})();class So{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const CI=new So("13.3.10"),Vp={};function Ed(n,t,e,i,r=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&i.push(Wn(s)),kr(s))for(let a=10;a-1&&(z0(t,i),Zu(e,i))}this._attachedToViewContainer=!1}Z1(this._lView[1],this._lView)}onDestroy(t){Oy(this._lView[1],this._lView,null,t)}markForCheck(){dp(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function fp(n,t,e){const i=t[10];i.begin&&i.begin();try{Ra(n,t,n.template,e)}catch(r){throw Wy(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ke(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ST(n,t){lc(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Ke(902,"");this._appRef=t}}class DI extends wc{constructor(t){super(t),this._view=t}detectChanges(){zy(this._view)}checkNoChanges(){}get context(){return null}}class Ww extends Eo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=bi(t);return new Hp(e,this.ngModule)}}function Yw(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class Hp extends $w{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function WT(n){return n.map(GT).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Yw(this.componentDef.inputs)}get outputs(){return Yw(this.componentDef.outputs)}create(t,e,i,r){const s=(r=r||this.ngModule)?function EI(n,t){return{get:(e,i,r)=>{const s=n.get(e,Vp,r);return s!==Vp||i===Vp?s:t.get(e,i,r)}}}(t,r.injector):t,o=s.get(bc,H_),a=s.get(wI,null),d=o.createRenderer(null,this.componentDef),C=this.componentDef.selectors[0][0]||"div",k=i?function Ry(n,t,e){if(Bn(n))return n.selectRootElement(t,e===Sr.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(d,i,this.componentDef.encapsulation):j0(o.createRenderer(null,this.componentDef),C,function MI(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(C)),N=this.componentDef.onPush?576:528,G=function ub(n,t){return{components:[],scheduler:n||_T,clean:T6,playerHandler:t||null,flags:0}}(),X=fd(0,null,null,1,0,null,null,null,null,null),re=cc(null,X,G,N,null,null,o,d,a,s);let de,ve;ju(re);try{const Me=function lb(n,t,e,i,r,s){const o=e[1];e[20]=n;const d=Ta(o,20,2,"#host",null),C=d.mergedAttrs=t.hostAttrs;null!==C&&(md(d,C,!0),null!==n&&(Wu(r,n,C),null!==d.classes&&Y0(r,n,d.classes),null!==d.styles&&uy(r,n,d.styles)));const k=i.createRenderer(n,t),N=cc(e,Ty(t),null,t.onPush?64:16,e[20],d,i,k,s||null,null);return o.firstCreatePass&&(Xu(Yl(d,e),o,t.type),By(o,d),Vy(d,e.length,1)),pd(e,N),e[20]=N}(k,this.componentDef,re,o,d);if(k)if(i)Wu(d,k,["ng-version",CI.full]);else{const{attrs:pe,classes:Ne}=function YT(n){const t=[],e=[];let i=1,r=2;for(;i0&&Y0(d,k,Ne.join(" "))}if(ve=n0(X,20),void 0!==e){const pe=ve.projection=[];for(let Ne=0;Ned(o,t)),t.contentQueries){const d=ei();t.contentQueries(1,o,d.directiveStart)}const a=ei();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Bs(a.index),Ny(e[1],a,0,a.directiveStart,a.directiveEnd,t),Ly(t,o)),o}(Me,this.componentDef,re,G,[X6]),uc(X,re,null)}finally{zu()}return new xI(this.componentType,de,Ja(ve,re),re,ve)}}class xI extends class pI{}{constructor(t,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new DI(r),this.componentType=t}get injector(){return new ba(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class ys{}class qw{}const el=new Map;class Qw extends ys{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ww(this);const i=ar(t);this._bootstrapComponents=Xr(i.bootstrap),this._r3Injector=Qy(t,e,[{provide:ys,useValue:this},{provide:Eo,useValue:this.componentFactoryResolver}],vt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Dn.THROW_IF_NOT_FOUND,i=xt.Default){return t===Dn||t===ys||t===mp?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class jp extends qw{constructor(t){super(),this.moduleType=t,null!==ar(t)&&function AI(n){const t=new Set;!function e(i){const r=ar(i,!0),s=r.id;null!==s&&(function Kw(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${vt(t)} vs ${vt(t.name)}`)}(s,el.get(s),i),el.set(s,i));const o=Xr(r.imports);for(const a of o)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new Qw(this.moduleType,t)}}function zp(n){return t=>{setTimeout(n,void 0,t)}}const Le=class YI extends U{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,s,o;let a=t,d=e||(()=>null),C=i;if(t&&"object"==typeof t){const N=t;a=null===(r=N.next)||void 0===r?void 0:r.bind(N),d=null===(s=N.error)||void 0===s?void 0:s.bind(N),C=null===(o=N.complete)||void 0===o?void 0:o.bind(N)}this.__isAsync&&(d=zp(d),a&&(a=zp(a)),C&&(C=zp(C)));const k=super.subscribe({next:a,error:d,complete:C});return t instanceof y&&t.add(k),k}};function qI(){return this._results[Pa()]()}class xo{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Pa(),i=xo.prototype;i[e]||(i[e]=qI)}get changes(){return this._changes||(this._changes=new Le)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=hr(t);(this._changesDetected=!function eA(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=QI,n})();const KI=kn,XI=class extends KI{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=cc(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(e)),uc(e,i,t),new wc(i)}};function QI(){return Sd(ei(),ke())}function Sd(n,t){return 4&n.type?new XI(t,n,Ja(n,t)):null}let On=(()=>{class n{}return n.__NG_ELEMENT_ID__=ZI,n})();function ZI(){return o2(ei(),ke())}const JI=On,r2=class extends JI{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Ja(this._hostTNode,this._hostLView)}get injector(){return new ba(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ku(this._hostTNode,this._hostLView);if(r1(t)){const e=ya(t,this._hostLView),i=_a(t);return new ba(e[1].data[i+8],e)}return new ba(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=s2(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const r=t.createEmbeddedView(e||{});return this.insert(r,i),r}createComponent(t,e,i,r,s){const o=t&&!function Xl(n){return"function"==typeof n}(t);let a;if(o)a=e;else{const N=e||{};a=N.index,i=N.injector,r=N.projectableNodes,s=N.ngModuleRef}const d=o?t:new Hp(bi(t)),C=i||this.parentInjector;if(!s&&null==d.ngModule){const G=(o?C:this.parentInjector).get(ys,null);G&&(s=G)}const k=d.create(C,r,void 0,s);return this.insert(k.hostView,a),k}insert(t,e){const i=t._lView,r=i[1];if(function Dk(n){return kr(n[3])}(i)){const k=this.indexOf(t);if(-1!==k)this.detach(k);else{const N=i[3],G=new r2(N,N[6],N[3]);G.detach(G.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function kT(n,t,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=t),i0)i.push(o[a/2]);else{const C=s[a+1],k=t[-d];for(let N=10;N{class n{constructor(e){this.appInits=e,this.resolve=Ad,this.reject=Ad,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{s.subscribe({complete:a,error:d})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(ue(Td,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ec=new Ie("AppId",{providedIn:"root",factory:function k2(){return`${tm()}${tm()}${tm()}`}});function tm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const A2=new Ie("Platform Initializer"),nl=new Ie("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),T2=new Ie("appBootstrapListener");let ER=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const bs=new Ie("LocaleId",{providedIn:"root",factory:()=>ec(bs,xt.Optional|xt.SkipSelf)||function SR(){return"undefined"!=typeof $localize&&$localize.locale||bd}()});class kR{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let I2=(()=>{class n{compileModuleSync(e){return new jp(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),s=Xr(ar(e).declarations).reduce((o,a)=>{const d=bi(a);return d&&o.push(new Hp(d)),o},[]);return new kR(i,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const TR=(()=>Promise.resolve(0))();function nm(n){"undefined"==typeof Zone?TR.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ct{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Le(!1),this.onMicrotaskEmpty=new Le(!1),this.onStable=new Le(!1),this.onError=new Le(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function IR(){let n=vn.requestAnimationFrame,t=vn.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function FR(n){const t=()=>{!function OR(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(vn,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,rm(n),n.isCheckStableRunning=!0,im(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),rm(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return R2(n),e.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),O2(n)}},onInvoke:(e,i,r,s,o,a,d)=>{try{return R2(n),e.invoke(r,s,o,a,d)}finally{n.shouldCoalesceRunChangeDetection&&t(),O2(n)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,rm(n),im(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ct.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ct.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,RR,Ad,Ad);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const RR={};function im(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function rm(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function R2(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function O2(n){n._nesting--,im(n)}class PR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Le,this.onMicrotaskEmpty=new Le,this.onStable=new Le,this.onError=new Le}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}let sm=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ct.assertNotInAngularZone(),nm(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())nm(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(ue(ct))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),NR=(()=>{class n{constructor(){this._applications=new Map,om.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return om.findTestabilityInTree(this,e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class LR{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let om=new LR,ko=null;const F2=new Ie("AllowMultipleToken"),P2=new Ie("PlatformOnDestroy");class N2{constructor(t,e){this.name=t,this.token=e}}function L2(n,t,e=[]){const i=`Platform: ${t}`,r=new Ie(i);return(s=[])=>{let o=am();if(!o||o.injector.get(F2,!1)){const a=[...e,...s,{provide:r,useValue:!0}];n?n(a):function jR(n){if(ko&&!ko.get(F2,!1))throw new Ke(400,"");ko=n;const t=n.get(B2),e=n.get(A2,null);e&&e.forEach(i=>i())}(function UR(n=[],t){return Dn.create({name:t,providers:[{provide:gp,useValue:"platform"},{provide:P2,useValue:()=>ko=null},...n]})}(a,i))}return function zR(n){const t=am();if(!t)throw new Ke(401,"");return t}()}}function am(){var n;return null!==(n=null==ko?void 0:ko.get(B2))&&void 0!==n?n:null}let B2=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function $R(n,t){let e;return e="noop"===n?new PR:("zone.js"===n?void 0:n)||new ct({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),d=[{provide:ct,useValue:a}];return a.run(()=>{const C=Dn.create({providers:d,parent:this.injector,name:e.moduleType.name}),k=e.create(C),N=k.injector.get(Hs,null);if(!N)throw new Ke(402,"");return a.runOutsideAngular(()=>{const G=a.onError.subscribe({next:X=>{N.handleError(X)}});k.onDestroy(()=>{lm(this._modules,k),G.unsubscribe()})}),function GR(n,t,e){try{const i=e();return pc(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(N,a,()=>{const G=k.injector.get(em);return G.runInitializers(),G.donePromise.then(()=>(function y4(n){tn(n,"Expected localeId to be defined"),"string"==typeof n&&(yw=n.toLowerCase().replace(/_/g,"-"))}(k.injector.get(bs,bd)||bd),this._moduleDoBootstrap(k),k))})})}bootstrapModule(e,i=[]){const r=V2({},i);return function VR(n,t,e){const i=new jp(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(Sc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Ke(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ke(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(P2,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(ue(Dn))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function V2(n,t){return Array.isArray(t)?t.reduce(V2,n):Object.assign(Object.assign({},n),t)}let Sc=(()=>{class n{constructor(e,i,r,s){this._zone=e,this._injector=i,this._exceptionHandler=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new j(d=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{d.next(this._stable),d.complete()})}),a=new j(d=>{let C;this._zone.runOutsideAngular(()=>{C=this._zone.onStable.subscribe(()=>{ct.assertNotInAngularZone(),nm(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,d.next(!0))})})});const k=this._zone.onUnstable.subscribe(()=>{ct.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{d.next(!1)}))});return()=>{C.unsubscribe(),k.unsubscribe()}});this.isStable=Ae(o,a.pipe(Ni()))}bootstrap(e,i){if(!this._initStatus.done)throw new Ke(405,"");let r;r=e instanceof $w?e:this._injector.get(Eo).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const s=function HR(n){return n.isBoundToModule}(r)?void 0:this._injector.get(ys),a=r.create(Dn.NULL,[],i||r.selector,s),d=a.location.nativeElement,C=a.injector.get(sm,null),k=C&&a.injector.get(NR);return C&&k&&k.registerApplication(d,C),a.onDestroy(()=>{this.detachView(a.hostView),lm(this.components,a),k&&k.unregisterApplication(d)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Ke(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;lm(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(T2,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(ue(ct),ue(Dn),ue(Hs),ue(em))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function lm(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let j2=!0,an=(()=>{class n{}return n.__NG_ELEMENT_ID__=qR,n})();function qR(n){return function KR(n,t,e){if(Lu(n)&&!e){const i=qi(n.index,t);return new wc(i,i)}return 47&n.type?new wc(t[16],t):null}(ei(),ke(),16==(16&n))}class W2{constructor(){}supports(t){return hc(t)}create(t){return new tO(t)}}const eO=(n,t)=>t;class tO{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||eO}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new nO(e,i),s,r),t}_verifyReinsertion(t,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Y2),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Y2),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class nO{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class iO{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Y2{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new iO,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function q2(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new sO(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class sO{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function X2(){return new ns([new W2])}let ns=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||X2()),deps:[[n,new Yr,new xi]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Ke(901,"")}}return n.\u0275prov=xe({token:n,providedIn:"root",factory:X2}),n})();function Q2(){return new xc([new K2])}let xc=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||Q2()),deps:[[n,new Yr,new xi]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(i)return i;throw new Ke(901,"")}}return n.\u0275prov=xe({token:n,providedIn:"root",factory:Q2}),n})();const lO=L2(null,"core",[]);let cO=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(ue(Sc))},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})(),Od=null;function is(){return Od}const Et=new Ie("DocumentToken");let To=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:function(){return function fO(){return ue(Z2)}()},providedIn:"platform"}),n})();const pO=new Ie("Location Initialized");let Z2=(()=>{class n extends To{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return is().getBaseHref(this._doc)}onPopState(e){const i=is().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=is().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,r){J2()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){J2()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(ue(Et))},n.\u0275prov=xe({token:n,factory:function(){return function mO(){return new Z2(ue(Et))}()},providedIn:"platform"}),n})();function J2(){return!!window.history.pushState}function fm(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function eC(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function ws(n){return n&&"?"!==n[0]?"?"+n:n}let il=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:function(){return function gO(n){const t=ue(Et).location;return new tC(ue(To),t&&t.origin||"")}()},providedIn:"root"}),n})();const pm=new Ie("appBaseHref");let tC=(()=>{class n extends il{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return fm(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+ws(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+ws(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+ws(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(ue(To),ue(pm,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),vO=(()=>{class n extends il{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=fm(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,s){let o=this.prepareExternalUrl(r+ws(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){let o=this.prepareExternalUrl(r+ws(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(ue(To),ue(pm,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),kc=(()=>{class n{constructor(e,i){this._subject=new Le,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=eC(nC(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+ws(i))}normalize(e){return n.stripTrailingSlash(function yO(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,nC(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._platformStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ws(i)),r)}replaceState(e,i="",r=null){this._platformStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ws(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=ws,n.joinWithSlash=fm,n.stripTrailingSlash=eC,n.\u0275fac=function(e){return new(e||n)(ue(il),ue(To))},n.\u0275prov=xe({token:n,factory:function(){return function _O(){return new kc(ue(il),ue(To))}()},providedIn:"root"}),n})();function nC(n){return n.replace(/\/index.html$/,"")}function dC(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}let rl=(()=>{class n{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(hc(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${vt(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(V(ns),V(xc),V(nt),V(_s))},n.\u0275dir=De({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class r8{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let rs=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new r8(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),hC(a,r)}});for(let r=0,s=i.length;r{hC(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(V(On),V(kn),V(ns))},n.\u0275dir=De({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function hC(n,t){n.context.$implicit=t.item}let hi=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new s8,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){fC("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){fC("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(V(On),V(kn))},n.\u0275dir=De({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class s8{constructor(){this.$implicit=null,this.ngIf=null}}function fC(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${vt(t)}'.`)}class Mm{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let sl=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new Mm(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(V(On),V(kn),V(sl,9))},n.\u0275dir=De({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),pC=(()=>{class n{constructor(e,i,r){r._addDefault(new Mm(e,i))}}return n.\u0275fac=function(e){return new(e||n)(V(On),V(kn),V(sl,9))},n.\u0275dir=De({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),Em=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,s]=e.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(xc),V(_s))},n.\u0275dir=De({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),Ri=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();const vC="browser";function km(n){return n===vC}let R8=(()=>{class n{}return n.\u0275prov=xe({token:n,providedIn:"root",factory:()=>new O8(ue(Et),window)}),n})();class O8{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function F8(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const s=r.shadowRoot;if(s){const o=s.getElementById(t)||s.querySelector(`[name="${t}"]`);if(o)return o}r=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],r-s[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=_C(this.window.history)||_C(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function _C(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class yC{}class Am extends class P8 extends class hO{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function dO(n){Od||(Od=n)}(new Am)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function N8(){return Ic=Ic||document.querySelector("base"),Ic?Ic.getAttribute("href"):null}();return null==e?null:function L8(n){$d=$d||document.createElement("a"),$d.setAttribute("href",n);const t=$d.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Ic=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return dC(document.cookie,t)}}let $d,Ic=null;const bC=new Ie("TRANSITION_ID"),V8=[{provide:Td,useFactory:function B8(n,t,e){return()=>{e.get(em).donePromise.then(()=>{const i=is(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s{const s=t.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},vn.getAllAngularTestabilities=()=>t.getAllTestabilities(),vn.getAllAngularRootElements=()=>t.getAllRootElements(),vn.frameworkStabilizers||(vn.frameworkStabilizers=[]),vn.frameworkStabilizers.push(i=>{const r=vn.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(d){o=o||d,s--,0==s&&i(o)};r.forEach(function(d){d.whenStable(a)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?is().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let H8=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const Gd=new Ie("EventManagerPlugins");let Wd=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let s=0;s{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),Rc=(()=>{class n extends CC{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(DC),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(DC))}}return n.\u0275fac=function(e){return new(e||n)(ue(Et))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();function DC(n){is().remove(n)}const Im={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Rm=/%COMP%/g;function Yd(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let qd=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Om(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Sr.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new W8(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Sr.ShadowDom:return new Y8(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Yd(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(ue(Wd),ue(Rc),ue(Ec))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();class Om{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(Im[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const s=Im[r];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=Im[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(Qi.DashCase|Qi.Important)?t.style.setProperty(e,i,r&Qi.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Qi.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,SC(i)):this.eventManager.addEventListener(t,e,SC(i))}}class W8 extends Om{constructor(t,e,i,r){super(t),this.component=i;const s=Yd(r+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr=function U8(n){return"_ngcontent-%COMP%".replace(Rm,n)}(r+"-"+i.id),this.hostAttr=function $8(n){return"_nghost-%COMP%".replace(Rm,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class Y8 extends Om{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Yd(r.id,r.styles,[]);for(let o=0;o{class n extends wC{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(ue(Et))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const kC=["alt","control","meta","shift"],X8={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},AC={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Q8={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let Z8=(()=>{class n extends wC{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>is().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(kC.forEach(d=>{const C=i.indexOf(d);C>-1&&(i.splice(C,1),o+=d+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(e){let i="",r=function J8(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&AC.hasOwnProperty(t)&&(t=AC[t]))}return X8[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),kC.forEach(s=>{s!=r&&Q8[s](e)&&(i+=s+".")}),i+=r,i}static eventCallback(e,i,r){return s=>{n.getEventFullKey(s)===e&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(ue(Et))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const iF=L2(lO,"browser",[{provide:nl,useValue:vC},{provide:A2,useValue:function eF(){Am.makeCurrent(),Tm.init()},multi:!0},{provide:Et,useFactory:function nF(){return function yk(n){e0=n}(document),document},deps:[]}]),rF=[{provide:gp,useValue:"root"},{provide:Hs,useFactory:function tF(){return new Hs},deps:[]},{provide:Gd,useClass:q8,multi:!0,deps:[Et,ct,nl]},{provide:Gd,useClass:Z8,multi:!0,deps:[Et]},{provide:qd,useClass:qd,deps:[Wd,Rc,Ec]},{provide:bc,useExisting:qd},{provide:CC,useExisting:Rc},{provide:Rc,useClass:Rc,deps:[Et]},{provide:sm,useClass:sm,deps:[ct]},{provide:Wd,useClass:Wd,deps:[Gd,ct]},{provide:yC,useClass:H8,deps:[]}];let TC=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:Ec,useValue:e.appId},{provide:bC,useExisting:Ec},V8]}}}return n.\u0275fac=function(e){return new(e||n)(ue(n,12))},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:rF,imports:[Ri,cO]}),n})();"undefined"!=typeof window&&window;let Pm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:function(e){let i=null;return i=e?new(e||n):ue(OC),i},providedIn:"root"}),n})(),OC=(()=>{class n extends Pm{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case dn.NONE:return i;case dn.HTML:return qr(i,"HTML")?Xi(i):L1(this._doc,String(i)).toString();case dn.STYLE:return qr(i,"Style")?Xi(i):i;case dn.SCRIPT:if(qr(i,"Script"))return Xi(i);throw new Error("unsafe value used in a script context");case dn.URL:return A1(i),qr(i,"URL")?Xi(i):ic(String(i));case dn.RESOURCE_URL:if(qr(i,"ResourceURL"))return Xi(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function IA(n){return new SA(n)}(e)}bypassSecurityTrustStyle(e){return function RA(n){return new xA(n)}(e)}bypassSecurityTrustScript(e){return function OA(n){return new kA(n)}(e)}bypassSecurityTrustUrl(e){return function FA(n){return new AA(n)}(e)}bypassSecurityTrustResourceUrl(e){return function PA(n){return new TA(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(ue(Et))},n.\u0275prov=xe({token:n,factory:function(e){let i=null;return i=e?new e:function pF(n){return new OC(n.get(Et))}(ue(Dn)),i},providedIn:"root"}),n})();var Kd=M(9186);function ht(n){return null!=n&&"false"!=`${n}`}function gr(n,t=0){return FC(n)?Number(n):t}function FC(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Xd(n){return Array.isArray(n)?n:[n]}function Kn(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Ds(n){return n instanceof nt?n.nativeElement:n}function PC(n,t=/\s+/){const e=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(t);for(const r of i){const s=`${r}`.trim();s&&e.push(s)}}return e}class mF extends h{notifyNext(t,e,i,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class gF extends h{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function vF(n,t,e,i,r=new gF(n,e,i)){if(!r.closed)return t instanceof j?t.subscribe(r):Fe(t)(r)}const NC={};function Oc(...n){let t,e;return z(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&c(n[0])&&(n=n[0]),Ce(n,e).lift(new _F(t))}class _F{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new yF(t,this.resultSelector))}}class yF extends mF{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(NC),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),Ys=new j(n=>n.complete());function Qd(n){return n?function wF(n){return new j(t=>n.schedule(()=>t.complete()))}(n):Ys}function ln(n){return t=>0===n?Qd():t.lift(new CF(n))}class CF{constructor(t){if(this.total=t,this.total<0)throw new LC}call(t,e){return e.subscribe(new DF(t,this.total))}}class DF extends h{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function BC(n){return t=>t.lift(new MF(n))}class MF{constructor(t){this.total=t}call(t,e){return e.subscribe(new EF(t,this.total))}}class EF extends h{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}class SF extends y{constructor(t,e){super()}schedule(t,e=0){return this}}class Zd extends SF{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let VC=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class Vr extends VC{constructor(t,e=VC.now){super(t,()=>Vr.delegate&&Vr.delegate!==this?Vr.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Vr.delegate&&Vr.delegate!==this?Vr.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const ol=new Vr(Zd);function Pc(n,t=ol){return e=>e.lift(new xF(n,t))}class xF{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new kF(t,this.dueTime,this.scheduler))}}class kF extends h{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(AF,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function AF(n){n.debouncedNext()}function jn(...n){const t=n[n.length-1];return z(t)?(n.pop(),e=>Fc(n,e,t)):e=>Fc(n,e)}function Ut(n){return t=>t.lift(new TF(n))}class TF{constructor(t){this.notifier=t}call(t,e){const i=new IF(t),r=kt(this.notifier,new ut(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class IF extends Jt{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let Nm;try{Nm="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Nm=!1}let al,$n=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?km(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Nm)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(ue(nl))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const HC=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function jC(){if(al)return al;if("object"!=typeof document||!document)return al=new Set(HC),al;let n=document.createElement("input");return al=new Set(HC.filter(t=>(n.setAttribute("type",t),n.type===t))),al}let Nc,Jd,Io,Lm;function ll(n){return function RF(){if(null==Nc&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Nc=!0}))}finally{Nc=Nc||!1}return Nc}()?n:!!n.capture}function zC(){if(null==Io){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Io=!1,Io;if("scrollBehavior"in document.documentElement.style)Io=!0;else{const n=Element.prototype.scrollTo;Io=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Io}function Lc(){if("object"!=typeof document||!document)return 0;if(null==Jd){const n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",n.appendChild(e),document.body.appendChild(n),Jd=0,0===n.scrollLeft&&(n.scrollLeft=1,Jd=0===n.scrollLeft?1:2),n.remove()}return Jd}function Bc(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function qs(n){return n.composedPath?n.composedPath()[0]:n.target}function Bm(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}let PF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();const UC=new Set;let cl,NF=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):BF}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function LF(n){if(!UC.has(n))try{cl||(cl=document.createElement("style"),cl.setAttribute("type","text/css"),document.head.appendChild(cl)),cl.sheet&&(cl.sheet.insertRule(`@media ${n} {body{ }}`,0),UC.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(ue($n))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function BF(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let Vm=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new U}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return $C(Xd(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let s=Oc($C(Xd(e)).map(o=>this._registerQuery(o).observable));return s=Fc(s.pipe(ln(1)),s.pipe(BC(1),Pc(0))),s.pipe(L(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:d,query:C})=>{a.matches=a.matches||d,a.breakpoints[C]=d}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),s={observable:new j(o=>{const a=d=>this._zone.run(()=>o.next(d));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(jn(i),L(({matches:o})=>({query:e,matches:o})),Ut(this._destroySubject)),mql:i};return this._queries.set(e,s),s}}return n.\u0275fac=function(e){return new(e||n)(ue(NF),ue(ct))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function $C(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function Hr(n,t,e,i){return A(e)&&(i=e,e=void 0),i?Hr(n,t,e).pipe(L(r=>c(r)?i(...r):i(r))):new j(r=>{WC(n,t,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,e)})}function WC(n,t,e,i,r){let s;if(function jF(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(t,e,r),s=()=>o.removeEventListener(t,e,r)}else if(function HF(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(t,e),s=()=>o.off(t,e)}else if(function VF(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(t,e),s=()=>o.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let GF=1;const WF=Promise.resolve(),eh={};function YC(n){return n in eh&&(delete eh[n],!0)}const qC={setImmediate(n){const t=GF++;return eh[t]=!0,WF.then(()=>YC(t)&&n()),t},clearImmediate(n){YC(n)}},Hm=new class qF extends Vr{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=qC.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(qC.clearImmediate(e),t.scheduled=void 0)}});function jm(n){return!!n&&(n instanceof j||"function"==typeof n.lift&&"function"==typeof n.subscribe)}function Vc(n,t){return e=>e.lift(new KF(n,t))}class KF{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new XF(t,this.compare,this.keySelector))}}class XF extends h{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}class ZF{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new JF(t,this.durationSelector))}}class JF extends Jt{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=kt(e,new ut(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function zm(n){return!c(n)&&n-parseFloat(n)+1>=0}function KC(n=0,t,e){let i=-1;return zm(t)?i=Number(t)<1?1:Number(t):z(t)&&(e=t),z(e)||(e=ol),new j(r=>{const s=zm(n)?n:+n-e.now();return e.schedule(eP,s,{index:0,period:i,subscriber:r})})}function eP(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}function Um(n,t=ol){return function QF(n){return function(e){return e.lift(new ZF(n))}}(()=>KC(n,t))}function $t(n,t){return function(i){return i.lift(new tP(n,t))}}class tP{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new nP(t,this.predicate,this.thisArg))}}class nP extends h{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class rP{call(t,e){return e.subscribe(new sP(t))}}class sP extends h{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}function Xn(n,t){return"function"==typeof t?e=>e.pipe(Xn((i,r)=>Re(n(i,r)).pipe(L((s,o)=>t(i,s,r,o))))):e=>e.lift(new oP(n))}class oP{constructor(t){this.project=t}call(t,e){return e.subscribe(new aP(t,this.project))}}class aP extends Jt{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new ut(this),r=this.destination;r.add(i),this.innerSubscription=kt(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const uP=new class cP extends Vr{}(class lP extends Zd{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}});function Ro(n,t){return new j(t?e=>t.schedule(dP,0,{error:n,subscriber:e}):e=>e.error(n))}function dP({error:n,subscriber:t}){t.error(n)}class Hi{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Qe(this.value);case"E":return Ro(this.error);case"C":return Qd()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new Hi("N",t):Hi.undefinedValueNotification}static createError(t){return new Hi("E",void 0,t)}static createComplete(){return Hi.completeNotification}}Hi.completeNotification=new Hi("C"),Hi.undefinedValueNotification=new Hi("N",void 0);class th extends h{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(th.dispatch,this.delay,new fP(t,this.destination)))}_next(t){this.scheduleMessage(Hi.createNext(t))}_error(t){this.scheduleMessage(Hi.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Hi.createComplete()),this.unsubscribe()}}class fP{constructor(t,e){this.notification=t,this.destination=e}}class Oo extends U{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new pP(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new W;if(this.isStopped||this.hasError?o=y.EMPTY:(this.observers.push(t),o=new q(this,t)),r&&t.add(t=new th(t,r)),e)for(let a=0;ae&&(o=Math.max(o,s-e)),o>0&&r.splice(0,o),r}}class pP{constructor(t,e){this.time=t,this.value=e}}const vP=new Ie("cdk-dir-doc",{providedIn:"root",factory:function _P(){return ec(Et)}}),yP=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let fi=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new Le,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function bP(n){const t=(null==n?void 0:n.toLowerCase())||"";return"auto"===t&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?yP.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(ue(vP,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();class XC{}function nh(n){return n&&"function"==typeof n.connect}class wP extends XC{constructor(t){super(),this._data=t}connect(){return jm(this._data)?this._data:Qe(this._data)}disconnect(){}}class QC{applyChanges(t,e,i,r,s){t.forEachOperation((o,a,d)=>{let C,k;if(null==o.previousIndex){const N=i(o,a,d);C=e.createEmbeddedView(N.templateRef,N.context,N.index),k=1}else null==d?(e.remove(a),k=3):(C=e.get(a),e.move(C,d),k=2);s&&s({context:null==C?void 0:C.context,operation:k,record:o})})}detach(){}}class $m{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,i,r,s){t.forEachOperation((o,a,d)=>{let C,k;null==o.previousIndex?(C=this._insertView(()=>i(o,a,d),d,e,r(o)),k=C?1:0):null==d?(this._detachAndCacheView(a,e),k=3):(C=this._moveView(a,d,e,r(o)),k=2),s&&s({context:null==C?void 0:C.context,operation:k,record:o})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,i,r){const s=this._insertViewFromCache(e,i);if(s)return void(s.context.$implicit=r);const o=t();return i.createEmbeddedView(o.templateRef,o.context,o.index)}_detachAndCacheView(t,e){const i=e.detach(t);this._maybeCacheView(i,e)}_moveView(t,e,i,r){const s=i.get(t);return i.move(s,e),s.context.$implicit=r,s}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let ZC=(()=>{class n{constructor(){this._listeners=[]}notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Fo=new Ie("_ViewRepeater"),CP=["contentWrapper"],DP=["*"],JC=new Ie("VIRTUAL_SCROLL_STRATEGY");let ul=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new U,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new j(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Um(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Qe()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe($t(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Ds(i),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Hr(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(ue(ct),ue($n),ue(Et,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ks=(()=>{class n{constructor(e,i,r,s){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=s,this._destroyed=new U,this._elementScrolled=new j(o=>this.ngZone.runOutsideAngular(()=>Hr(this.elementRef.nativeElement,"scroll").pipe(Ut(this._destroyed)).subscribe(o)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&0!=Lc()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==Lc()?e.left=e.right:1==Lc()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;zC()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",r="right",s=this.elementRef.nativeElement;if("top"==e)return s.scrollTop;if("bottom"==e)return s.scrollHeight-s.clientHeight-s.scrollTop;const o=this.dir&&"rtl"==this.dir.value;return"start"==e?e=o?r:i:"end"==e&&(e=o?i:r),o&&2==Lc()?e==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:o&&1==Lc()?e==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:e==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(ul),V(ct),V(fi,8))},n.\u0275dir=De({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),Po=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new U,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Um(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(ue($n),ue(ct),ue(Et,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const kP="undefined"!=typeof requestAnimationFrame?$F:Hm;let eD=(()=>{class n extends Ks{constructor(e,i,r,s,o,a,d){super(e,a,r,o),this.elementRef=e,this._changeDetectorRef=i,this._scrollStrategy=s,this._detachedSubject=new U,this._renderedRangeSubject=new U,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new j(C=>this._scrollStrategy.scrolledIndexChange.subscribe(k=>Promise.resolve().then(()=>this.ngZone.run(()=>C.next(k))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=y.EMPTY,this._viewportChanges=d.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=ht(e)}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe(jn(null),Um(0,kP)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(Ut(this._detachedSubject)).subscribe(i=>{const r=i.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function xP(n,t){return n.start==t.start&&n.end==t.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,i="to-start"){const s="horizontal"==this.orientation,o=s?"X":"Y";let d=`translate${o}(${Number((s&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e=this.appendOnly&&"to-start"===i?0:e,"to-end"===i&&(d+=` translate${o}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=d&&(this._renderedContentTransform=d,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,i="auto"){const r={behavior:i};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollTo(r)}scrollToIndex(e,i="auto"){this._scrollStrategy.scrollToIndex(e,i)}measureScrollOffset(e){return super.measureScrollOffset(e||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const e=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?e.clientWidth:e.clientHeight}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const i of e)i()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(an),V(ct),V(JC,8),V(fi,8),V(ul),V(Po))},n.\u0275cmp=Ge({type:n,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,i){if(1&e&&jt(CP,7),2&e){let r;He(r=je())&&(i._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,i){2&e&&Nt("cdk-virtual-scroll-orientation-horizontal","horizontal"===i.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==i.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[lt([{provide:Ks,useExisting:n}]),Pe],ngContentSelectors:DP,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,i){1&e&&(mn(),oe(0,"div",0,1),bt(2),le(),yt(3,"div",2)),2&e&&(he(3),Ai("width",i._totalContentWidth)("height",i._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),n})();function tD(n,t,e){if(!e.getBoundingClientRect)return 0;const r=e.getBoundingClientRect();return"horizontal"===n?"start"===t?r.left:r.right:"start"===t?r.top:r.bottom}let AP=(()=>{class n{constructor(e,i,r,s,o,a){this._viewContainerRef=e,this._template=i,this._differs=r,this._viewRepeater=s,this._viewport=o,this.viewChange=new U,this._dataSourceChanges=new U,this.dataStream=this._dataSourceChanges.pipe(jn(null),function iP(){return n=>n.lift(new rP)}(),Xn(([d,C])=>this._changeDataSource(d,C)),function mP(n,t,e){let i;return i=n&&"object"==typeof n?n:{bufferSize:n,windowTime:t,refCount:!1,scheduler:e},r=>r.lift(function gP({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:e,scheduler:i}){let r,o,s=0,a=!1,d=!1;return function(k){let N;s++,!r||a?(a=!1,r=new Oo(n,t,i),N=r.subscribe(this),o=k.subscribe({next(G){r.next(G)},error(G){a=!0,r.error(G)},complete(){d=!0,o=void 0,r.complete()}}),d&&(o=void 0)):N=r.subscribe(this),this.add(()=>{s--,N.unsubscribe(),N=void 0,o&&!d&&e&&0===s&&(o.unsubscribe(),o=void 0,r=void 0)})}}(i))}(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new U,this.dataStream.subscribe(d=>{this._data=d,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(Ut(this._destroyed)).subscribe(d=>{this._renderedRange=d,this.viewChange.observers.length&&a.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,nh(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new wP(jm(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(i,r)=>e(i+(this._renderedRange?this._renderedRange.start:0),r):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=gr(e)}measureRangeSize(e,i){if(e.start>=e.end)return 0;const r=e.start-this._renderedRange.start,s=e.end-e.start;let o,a;for(let d=0;d-1;d--){const C=this._viewContainerRef.get(d+r);if(C&&C.rootNodes.length){a=C.rootNodes[C.rootNodes.length-1];break}}return o&&a?tD(i,"end",a)-tD(i,"start",o):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,i)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,i):i)),this._needsUpdate=!0)}_changeDataSource(e,i){return e&&e.disconnect(this),this._needsUpdate=!0,i?i.connect(this):Qe()}_updateContext(){const e=this._data.length;let i=this._viewContainerRef.length;for(;i--;){const r=this._viewContainerRef.get(i);r.context.index=this._renderedRange.start+i,r.context.count=e,this._updateComputedContextProperties(r.context),r.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(s,o,a)=>this._getEmbeddedViewArgs(s,a),s=>s.item),e.forEachIdentityChange(s=>{this._viewContainerRef.get(s.currentIndex).context.$implicit=s.item});const i=this._data.length;let r=this._viewContainerRef.length;for(;r--;){const s=this._viewContainerRef.get(r);s.context.index=this._renderedRange.start+r,s.context.count=i,this._updateComputedContextProperties(s.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,i){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:i}}}return n.\u0275fac=function(e){return new(e||n)(V(On),V(kn),V(ns),V(Fo),V(eD,4),V(ct))},n.\u0275dir=De({type:n,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[lt([{provide:Fo,useClass:$m}])]}),n})(),Xs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})(),ih=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Hc,Xs],Hc,Xs]}),n})();function dl(n,t){return Rt(n,t,1)}class nD{}class iD{}class Ms{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),s=r.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Ms?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Ms;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Ms?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class TP{encodeKey(t){return rD(t)}encodeValue(t){return rD(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const RP=/%(\d[a-f0-9])/gi,OP={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function rD(n){return encodeURIComponent(n).replace(RP,(t,e)=>{var i;return null!==(i=OP[e])&&void 0!==i?i:t})}function sD(n){return`${n}`}class Qs{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new TP,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function IP(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,s)),t.decodeValue(r.slice(s+1))],d=e.get(o)||[];d.push(a),e.set(o,d)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(s=>{e.push({param:i,value:s,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Qs({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(sD(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(sD(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class FP{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function oD(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function aD(n){return"undefined"!=typeof Blob&&n instanceof Blob}function lD(n){return"undefined"!=typeof FormData&&n instanceof FormData}class jc{constructor(t,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function PP(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Ms),this.context||(this.context=new FP),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":aG.set(X,t.setHeaders[X]),C)),t.setParams&&(k=Object.keys(t.setParams).reduce((G,X)=>G.set(X,t.setParams[X]),k)),new jc(i,r,o,{params:k,headers:C,context:N,reportProgress:d,responseType:s,withCredentials:a})}}var Qn=(()=>((Qn=Qn||{})[Qn.Sent=0]="Sent",Qn[Qn.UploadProgress=1]="UploadProgress",Qn[Qn.ResponseHeader=2]="ResponseHeader",Qn[Qn.DownloadProgress=3]="DownloadProgress",Qn[Qn.Response=4]="Response",Qn[Qn.User=5]="User",Qn))();class Wm{constructor(t,e=200,i="OK"){this.headers=t.headers||new Ms,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Ym extends Wm{constructor(t={}){super(t),this.type=Qn.ResponseHeader}clone(t={}){return new Ym({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class rh extends Wm{constructor(t={}){super(t),this.type=Qn.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new rh({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class cD extends Wm{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function qm(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let hl=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof jc)s=e;else{let d,C;d=r.headers instanceof Ms?r.headers:new Ms(r.headers),r.params&&(C=r.params instanceof Qs?r.params:new Qs({fromObject:r.params})),s=new jc(e,i,void 0!==r.body?r.body:null,{headers:d,context:r.context,params:C,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=Qe(s).pipe(dl(d=>this.handler.handle(d)));if(e instanceof jc||"events"===r.observe)return o;const a=o.pipe($t(d=>d instanceof rh));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(L(d=>{if(null!==d.body&&!(d.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return d.body}));case"blob":return a.pipe(L(d=>{if(null!==d.body&&!(d.body instanceof Blob))throw new Error("Response is not a Blob.");return d.body}));case"text":return a.pipe(L(d=>{if(null!==d.body&&"string"!=typeof d.body)throw new Error("Response is not a string.");return d.body}));default:return a.pipe(L(d=>d.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Qs).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,qm(r,i))}post(e,i,r={}){return this.request("POST",e,qm(r,i))}put(e,i,r={}){return this.request("PUT",e,qm(r,i))}}return n.\u0275fac=function(e){return new(e||n)(ue(nD))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();class uD{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const dD=new Ie("HTTP_INTERCEPTORS");let LP=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const BP=/^\)\]\}',?\n/;let hD=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new j(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((X,re)=>r.setRequestHeader(X,re.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const X=e.detectContentTypeHeader();null!==X&&r.setRequestHeader("Content-Type",X)}if(e.responseType){const X=e.responseType.toLowerCase();r.responseType="json"!==X?X:"text"}const s=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const X=r.statusText||"OK",re=new Ms(r.getAllResponseHeaders()),de=function VP(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return o=new Ym({headers:re,status:r.status,statusText:X,url:de}),o},d=()=>{let{headers:X,status:re,statusText:de,url:ve}=a(),Me=null;204!==re&&(Me=void 0===r.response?r.responseText:r.response),0===re&&(re=Me?200:0);let pe=re>=200&&re<300;if("json"===e.responseType&&"string"==typeof Me){const Ne=Me;Me=Me.replace(BP,"");try{Me=""!==Me?JSON.parse(Me):null}catch(it){Me=Ne,pe&&(pe=!1,Me={error:it,text:Me})}}pe?(i.next(new rh({body:Me,headers:X,status:re,statusText:de,url:ve||void 0})),i.complete()):i.error(new cD({error:Me,headers:X,status:re,statusText:de,url:ve||void 0}))},C=X=>{const{url:re}=a(),de=new cD({error:X,status:r.status||0,statusText:r.statusText||"Unknown Error",url:re||void 0});i.error(de)};let k=!1;const N=X=>{k||(i.next(a()),k=!0);let re={type:Qn.DownloadProgress,loaded:X.loaded};X.lengthComputable&&(re.total=X.total),"text"===e.responseType&&!!r.responseText&&(re.partialText=r.responseText),i.next(re)},G=X=>{let re={type:Qn.UploadProgress,loaded:X.loaded};X.lengthComputable&&(re.total=X.total),i.next(re)};return r.addEventListener("load",d),r.addEventListener("error",C),r.addEventListener("timeout",C),r.addEventListener("abort",C),e.reportProgress&&(r.addEventListener("progress",N),null!==s&&r.upload&&r.upload.addEventListener("progress",G)),r.send(s),i.next({type:Qn.Sent}),()=>{r.removeEventListener("error",C),r.removeEventListener("abort",C),r.removeEventListener("load",d),r.removeEventListener("timeout",C),e.reportProgress&&(r.removeEventListener("progress",N),null!==s&&r.upload&&r.upload.removeEventListener("progress",G)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(ue(yC))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const Km=new Ie("XSRF_COOKIE_NAME"),Xm=new Ie("XSRF_HEADER_NAME");class fD{}let HP=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=dC(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(ue(Et),ue(nl),ue(Km))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),Qm=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const s=this.tokenService.getToken();return null!==s&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,s)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(ue(fD),ue(Xm))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),jP=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(dD,[]);this.chain=i.reduceRight((r,s)=>new uD(r,s),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(ue(iD),ue(Dn))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),zP=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:Qm,useClass:LP}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:Km,useValue:e.cookieName}:[],e.headerName?{provide:Xm,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[Qm,{provide:dD,useExisting:Qm,multi:!0},{provide:fD,useClass:HP},{provide:Km,useValue:"XSRF-TOKEN"},{provide:Xm,useValue:"X-XSRF-TOKEN"}]}),n})(),UP=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[hl,{provide:nD,useClass:jP},hD,{provide:iD,useExisting:hD}],imports:[[zP.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),n})();function Zm(...n){if(1===n.length){const t=n[0];if(c(t))return sh(t,null);if(f(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return sh(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return sh(n=1===n.length&&c(n[0])?n[0]:n,null).pipe(L(e=>t(...e)))}return sh(n,null)}function sh(n,t){return new j(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a{C||(C=!0,o++),r[a]=k},error:k=>e.error(k),complete:()=>{s++,(s===i||!C)&&(o===i&&e.next(t?t.reduce((k,N,G)=>(k[N]=r[G],k),{}):r),e.complete())}}))}})}let pD=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(V(_s),V(nt))},n.\u0275dir=De({type:n}),n})(),No=(()=>{class n extends pD{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,features:[Pe]}),n})();const ji=new Ie("NgValueAccessor"),GP={provide:ji,useExisting:Ot(()=>ss),multi:!0},YP=new Ie("CompositionEventMode");let ss=(()=>{class n extends pD{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function WP(){const n=is()?is().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(V(_s),V(nt),V(YP,8))},n.\u0275dir=De({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&Oe("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[lt([GP]),Pe]}),n})();function Zs(n){return null==n||0===n.length}function gD(n){return null!=n&&"number"==typeof n.length}const pi=new Ie("NgValidators"),Js=new Ie("NgAsyncValidators"),qP=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Jm{static min(t){return function vD(n){return t=>{if(Zs(t.value)||Zs(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(Zs(t.value)||Zs(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function yD(n){return Zs(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function bD(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function wD(n){return Zs(n.value)||qP.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function CD(n){return t=>Zs(t.value)||!gD(t.value)?null:t.value.lengthgD(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function MD(n){if(!n)return oh;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(Zs(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return TD(t)}static composeAsync(t){return ID(t)}}function oh(n){return null}function ED(n){return null!=n}function SD(n){const t=pc(n)?Re(n):n;return kp(t),t}function xD(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function kD(n,t){return t.map(e=>e(n))}function AD(n){return n.map(t=>function KP(n){return!n.validate}(t)?t:e=>t.validate(e))}function TD(n){if(!n)return null;const t=n.filter(ED);return 0==t.length?null:function(e){return xD(kD(e,t))}}function eg(n){return null!=n?TD(AD(n)):null}function ID(n){if(!n)return null;const t=n.filter(ED);return 0==t.length?null:function(e){return Zm(kD(e,t).map(SD)).pipe(L(xD))}}function tg(n){return null!=n?ID(AD(n)):null}function RD(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function OD(n){return n._rawValidators}function FD(n){return n._rawAsyncValidators}function ng(n){return n?Array.isArray(n)?n:[n]:[]}function ah(n,t){return Array.isArray(n)?n.includes(t):n===t}function PD(n,t){const e=ng(t);return ng(n).forEach(r=>{ah(e,r)||e.push(r)}),e}function ND(n,t){return ng(t).filter(e=>!ah(n,e))}class LD{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=eg(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=tg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class os extends LD{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Oi extends LD{get formDirective(){return null}get path(){return null}}class BD{constructor(t){this._cd=t}is(t){var e,i,r;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[t])}}let eo=(()=>{class n extends BD{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(V(os,2))},n.\u0275dir=De({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Nt("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[Pe]}),n})(),zc=(()=>{class n extends BD{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(V(Oi,10))},n.\u0275dir=De({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Nt("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))("ng-submitted",i.is("submitted"))},features:[Pe]}),n})();function Uc(n,t){sg(n,t),t.valueAccessor.writeValue(n.value),function i9(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&HD(n,t)})}(n,t),function s9(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function r9(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&HD(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function n9(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function uh(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),hh(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function dh(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function sg(n,t){const e=OD(n);null!==t.validator?n.setValidators(RD(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=FD(n);null!==t.asyncValidator?n.setAsyncValidators(RD(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();dh(t._rawValidators,r),dh(t._rawAsyncValidators,r)}function hh(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=OD(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.validator);s.length!==r.length&&(e=!0,n.setValidators(s))}}if(null!==t.asyncValidator){const r=FD(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.asyncValidator);s.length!==r.length&&(e=!0,n.setAsyncValidators(s))}}}const i=()=>{};return dh(t._rawValidators,i),dh(t._rawAsyncValidators,i),e}function HD(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function jD(n,t){sg(n,t)}function og(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function UD(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function ag(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(s=>{s.constructor===ss?e=s:function l9(n){return Object.getPrototypeOf(n.constructor)===No}(s)?i=s:r=s}),r||i||e||null}function lg(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const $c="VALID",fh="INVALID",fl="PENDING",Gc="DISABLED";function ug(n){return(ph(n)?n.validators:n)||null}function $D(n){return Array.isArray(n)?eg(n):n||null}function dg(n,t){return(ph(t)?t.asyncValidators:n)||null}function GD(n){return Array.isArray(n)?tg(n):n||null}function ph(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const WD=n=>n instanceof Lo,hg=n=>n instanceof pg;function YD(n){return WD(n)?n.value:n.getRawValue()}function qD(n,t){const e=hg(n),i=n.controls;if(!(e?Object.keys(i):i).length)throw new Ke(1e3,"");if(!i[t])throw new Ke(1001,"")}function KD(n,t){hg(n),n._forEachChild((i,r)=>{if(void 0===t[r])throw new Ke(1002,"")})}class fg{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=$D(this._rawValidators),this._composedAsyncValidatorFn=GD(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===$c}get invalid(){return this.status===fh}get pending(){return this.status==fl}get disabled(){return this.status===Gc}get enabled(){return this.status!==Gc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=$D(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=GD(t)}addValidators(t){this.setValidators(PD(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(PD(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(ND(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(ND(t,this._rawAsyncValidators))}hasValidator(t){return ah(this._rawValidators,t)}hasAsyncValidator(t){return ah(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=fl,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Gc,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=$c,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===$c||this.status===fl)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gc:$c}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=fl,this._hasOwnPendingAsyncValidator=!0;const e=SD(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function c9(n,t,e){if(null==t||(Array.isArray(t)||(t=t.split(e)),Array.isArray(t)&&0===t.length))return null;let i=n;return t.forEach(r=>{i=hg(i)?i.controls.hasOwnProperty(r)?i.controls[r]:null:(n=>n instanceof d9)(i)&&i.at(r)||null}),i}(this,t,".")}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Le,this.statusChanges=new Le}_calculateStatus(){return this._allControlsDisabled()?Gc:this.errors?fh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(fl)?fl:this._anyControlsHaveStatus(fh)?fh:$c}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ph(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Lo extends fg{constructor(t=null,e,i){super(ug(e),dg(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ph(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){lg(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){lg(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class pg extends fg{constructor(t,e,i){super(ug(e),dg(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){KD(this,t),Object.keys(t).forEach(i=>{qD(this,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=YD(e),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class d9 extends fg{constructor(t,e,i){super(ug(e),dg(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){KD(this,t),t.forEach((i,r)=>{qD(this,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>YD(t))}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const h9={provide:Oi,useExisting:Ot(()=>Es)},Wc=(()=>Promise.resolve(null))();let Es=(()=>{class n extends Oi{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new Le,this.form=new pg({},eg(e),tg(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Wc.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Uc(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Wc.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Wc.then(()=>{const i=this._findContainer(e.path),r=new pg({});jD(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Wc.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Wc.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,UD(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(V(pi,10),V(Js,10))},n.\u0275dir=De({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&Oe("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[lt([h9]),Pe]}),n})();const p9={provide:os,useExisting:Ot(()=>Bo)},ZD=(()=>Promise.resolve(null))();let Bo=(()=>{class n extends os{constructor(e,i,r,s,o){super(),this._changeDetectorRef=o,this.control=new Lo,this._registered=!1,this.update=new Le,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=ag(0,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),og(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Uc(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){ZD.then(()=>{var i;this.control.setValue(e,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=""===i||i&&"false"!==i;ZD.then(()=>{var s;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(s=this._changeDetectorRef)||void 0===s||s.markForCheck()})}_getPath(e){return this._parent?function ch(n,t){return[...t.path,n]}(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(V(Oi,9),V(pi,10),V(Js,10),V(ji,10),V(an,8))},n.\u0275dir=De({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[lt([p9]),Pe,on]}),n})(),Yc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const m9={provide:ji,useExisting:Ot(()=>mg),multi:!0};let mg=(()=>{class n extends No{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&Oe("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[lt([m9]),Pe]}),n})(),JD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();const gg=new Ie("NgModelWithFormControlWarning"),y9={provide:os,useExisting:Ot(()=>mh)};let mh=(()=>{class n extends os{constructor(e,i,r,s){super(),this._ngModelWarningConfig=s,this.update=new Le,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=ag(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&uh(i,this,!1),Uc(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}og(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&uh(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(V(pi,10),V(Js,10),V(ji,10),V(gg,8))},n.\u0275dir=De({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[lt([y9]),Pe,on]}),n})();const b9={provide:Oi,useExisting:Ot(()=>qc)};let qc=(()=>{class n extends Oi{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Le,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(hh(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Uc(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){uh(e.control||null,e,!1),lg(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,UD(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(uh(i||null,e),WD(r)&&(Uc(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);jD(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function o9(n,t){return hh(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){sg(this.form,this),this._oldForm&&hh(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(V(pi,10),V(Js,10))},n.\u0275dir=De({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&Oe("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[lt([b9]),Pe,on]}),n})(),m3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[JD]]}),n})(),V9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[m3]}),n})(),H9=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:gg,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[m3]}),n})();class oi extends U{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new W;return this._value}next(t){super.next(this._value=t)}}function ai(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function Ss(){}function ri(n,t,e){return function(r){return r.lift(new K9(n,t,e))}}class K9{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new X9(t,this.nextOrObserver,this.error,this.complete))}}class X9 extends h{constructor(t,e,i,r){super(t),this._tapNext=Ss,this._tapError=Ss,this._tapComplete=Ss,this._tapError=i||Ss,this._tapComplete=r||Ss,A(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Ss,this._tapError=e.error||Ss,this._tapComplete=e.complete||Ss)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}let v3=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Q9=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Ds(e);return new j(r=>{const o=this._observeElement(i).subscribe(r);return()=>{o.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new U,r=this._mutationObserverFactory.create(s=>i.next(s));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(ue(v3))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Z9=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Le,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ht(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=gr(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Pc(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(V(Q9),V(nt),V(ct))},n.\u0275dir=De({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),_3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[v3]}),n})();function _h(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const b3="cdk-describedby-message",yh="cdk-describedby-host";let w3=0,t7=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+w3++,this._document=e}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const s=Dg(i,r);"string"!=typeof i?(C3(i),this._messageRegistry.set(s,{messageElement:i,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,s)||this._addMessageReference(e,s)}removeDescription(e,i,r){var s;if(!i||!this._isElementNode(e))return;const o=Dg(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===(null===(s=this._messagesContainer)||void 0===s?void 0:s.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const i=this._document.querySelectorAll(`[${yh}="${this._id}"]`);for(let r=0;r0!=r.indexOf(b3));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function J9(n,t,e){const i=_h(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(yh,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function e7(n,t,e){const r=_h(n,t).filter(s=>s!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(yh)}_isElementDescribedByMessage(e,i){const r=_h(e,"aria-describedby"),s=this._messageRegistry.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=e.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(ue(Et),ue($n))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Dg(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function C3(n){n.id||(n.id=`${b3}-${w3++}`)}class D3{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new U,this._typeaheadSubscription=y.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new U,this.change=new U,t instanceof xo&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ri(e=>this._pressedLetters.push(e)),Pc(t),$t(()=>this._pressedLetters.length>0),L(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||ai(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),r=e[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof xo?this._items.toArray():this._items}}class M3 extends D3{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class E3 extends D3{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Mg=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function i7(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function n7(n){try{return n.frameElement}catch(t){return null}}(function d7(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===x3(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),s=x3(e);return e.hasAttribute("contenteditable")?-1!==s:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function c7(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==s:"video"===r?-1!==s&&(null!==s||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function u7(n){return!function s7(n){return function a7(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function r7(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function o7(n){return function l7(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||S3(n))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(ue($n))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function S3(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function x3(n){if(!S3(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class h7{constructor(t,e,i,r,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return null==i||i.focus(t),!!i}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let i=0;i=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(ln(1)).subscribe(t)}}let Eg=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new h7(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(ue(Mg),ue(ct),ue(Et))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),f7=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=ht(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=ht(e)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Bc(),this.focusTrap.focusInitialElementWhenReady()}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(Eg),V(Et))},n.\u0275dir=De({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[on]}),n})();function Sg(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function xg(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const p7=new Ie("cdk-input-modality-detector-options"),m7={ignoreKeys:[18,17,224,91,16]},pl=ll({passive:!0,capture:!0});let g7=(()=>{class n{constructor(e,i,r,s){this._platform=e,this._mostRecentTarget=null,this._modality=new oi(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,d;(null===(d=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===d?void 0:d.some(C=>C===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=qs(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Sg(o)?"keyboard":"mouse"),this._mostRecentTarget=qs(o))},this._onTouchstart=o=>{xg(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=qs(o))},this._options=Object.assign(Object.assign({},m7),s),this.modalityDetected=this._modality.pipe(BC(1)),this.modalityChanged=this.modalityDetected.pipe(Vc()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,pl),r.addEventListener("mousedown",this._onMousedown,pl),r.addEventListener("touchstart",this._onTouchstart,pl)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,pl),document.removeEventListener("mousedown",this._onMousedown,pl),document.removeEventListener("touchstart",this._onTouchstart,pl))}}return n.\u0275fac=function(e){return new(e||n)(ue($n),ue(ct),ue(Et),ue(p7,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const v7=new Ie("liveAnnouncerElement",{providedIn:"root",factory:function _7(){return null}}),y7=new Ie("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let kg=(()=>{class n{constructor(e,i,r,s){this._ngZone=i,this._defaultOptions=s,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let s,o;return 1===i.length&&"number"==typeof i[0]?o=i[0]:[s,o]=i,this.clear(),clearTimeout(this._previousTimeout),s||(s=r&&r.politeness?r.politeness:"polite"),null==o&&r&&(o=r.duration),this._liveElement.setAttribute("aria-live",s),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof o&&(this._previousTimeout=setTimeout(()=>this.clear(),o)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,i;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(i=this._currentResolve)||void 0===i||i.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let s=0;s{class n{constructor(e,i,r,s,o){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new U,this._rootNodeFocusAndBlurListener=a=>{const d=qs(a),C="focus"===a.type?this._onFocus:this._onBlur;for(let k=d;k;k=k.parentElement)C.call(this,a,k)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,i=!1){const r=Ds(e);if(!this._platform.isBrowser||1!==r.nodeType)return Qe(null);const s=function FF(n){if(function OF(){if(null==Lm){const n="undefined"!=typeof document?document.head:null;Lm=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Lm}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new U,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Ds(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const s=Ds(e);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,d])=>this._originChanged(a,i,d)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),s=qs(e);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,bh),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,bh)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ut(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,bh),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,bh),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,s)=>{(s===e||r.checkChildren&&s.contains(e))&&i.push([s,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(ue(ct),ue($n),ue(g7),ue(Et,8),ue(b7,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),w7=(()=>{class n{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this.cdkFocusChange=new Le}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>this.cdkFocusChange.emit(i))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(as))},n.\u0275dir=De({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),n})();const A3="cdk-high-contrast-black-on-white",T3="cdk-high-contrast-white-on-black",Ag="cdk-high-contrast-active";let I3=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Ag),e.remove(A3),e.remove(T3),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(Ag),e.add(A3)):2===i&&(e.add(Ag),e.add(T3))}}}return n.\u0275fac=function(e){return new(e||n)(ue($n),ue(Et))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),C7=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(ue(I3))},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[_3]]}),n})();class O3{}const xs="*";function li(n,t){return{type:7,name:n,definitions:t,options:{}}}function wn(n,t=null){return{type:4,styles:t,timings:n}}function F3(n,t=null){return{type:3,steps:n,options:t}}function P3(n,t=null){return{type:2,steps:n,options:t}}function ft(n){return{type:6,styles:n,offset:null}}function fn(n,t,e){return{type:0,name:n,styles:t,options:e}}function ml(n){return{type:5,steps:n}}function gn(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function wh(n=null){return{type:9,options:n}}function Ch(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function N3(n){Promise.resolve(null).then(n)}class Qc{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){N3(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class L3{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const s=this.players.length;0==s?N3(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const nn=!1;function B3(n){return new Ke(3e3,nn)}function iN(){return"undefined"!=typeof window&&void 0!==window.document}function Ig(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ro(n){switch(n.length){case 0:return new Qc;case 1:return n[0];default:return new L3(n)}}function V3(n,t,e,i,r={},s={}){const o=[],a=[];let d=-1,C=null;if(i.forEach(k=>{const N=k.offset,G=N==d,X=G&&C||{};Object.keys(k).forEach(re=>{let de=re,ve=k[re];if("offset"!==re)switch(de=t.normalizePropertyName(de,o),ve){case"!":ve=r[re];break;case xs:ve=s[re];break;default:ve=t.normalizeStyleValue(re,de,ve,o)}X[de]=ve}),G||a.push(X),C=X,d=N}),o.length)throw function W7(n){return new Ke(3502,nn)}();return a}function Rg(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Og(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Og(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Og(e,"destroy",n)))}}function Og(n,t,e){const i=e.totalTime,s=Fg(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function Fg(n,t,e,i,r="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function er(n,t,e){let i;return n instanceof Map?(i=n.get(t),i||n.set(t,i=e)):(i=n[t],i||(i=n[t]=e)),i}function H3(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let Pg=(n,t)=>!1,j3=(n,t,e)=>[],z3=null;function Ng(n){const t=n.parentNode||n.host;return t===z3?null:t}(Ig()||"undefined"!=typeof Element)&&(iN()?(z3=(()=>document.documentElement)(),Pg=(n,t)=>{for(;t;){if(t===n)return!0;t=Ng(t)}return!1}):Pg=(n,t)=>n.contains(t),j3=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let Ho=null,U3=!1;function $3(n){Ho||(Ho=function sN(){return"undefined"!=typeof document?document.body:null}()||{},U3=!!Ho.style&&"WebkitAppearance"in Ho.style);let t=!0;return Ho.style&&!function rN(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Ho.style,!t&&U3&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Ho.style)),t}const G3=Pg,W3=j3;let Y3=(()=>{class n{validateStyleProperty(e){return $3(e)}matchesElement(e,i){return!1}containsElement(e,i){return G3(e,i)}getParentElement(e){return Ng(e)}query(e,i,r){return W3(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],d){return new Qc(r,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),Lg=(()=>{class n{}return n.NOOP=new Y3,n})();const Bg="ng-enter",Mh="ng-leave",Eh="ng-trigger",Sh=".ng-trigger",K3="ng-animating",Vg=".ng-animating";function jo(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Hg(parseFloat(t[1]),t[2])}function Hg(n,t){return"s"===t?1e3*n:n}function xh(n,t,e){return n.hasOwnProperty("duration")?n:function lN(n,t,e){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(B3()),{duration:0,delay:0,easing:""};r=Hg(parseFloat(a[1]),a[2]);const d=a[3];null!=d&&(s=Hg(parseFloat(d),a[4]));const C=a[5];C&&(o=C)}else r=n;if(!e){let a=!1,d=t.length;r<0&&(t.push(function M7(){return new Ke(3100,nn)}()),a=!0),s<0&&(t.push(function E7(){return new Ke(3101,nn)}()),a=!0),a&&t.splice(d,0,B3())}return{duration:r,delay:s,easing:o}}(n,t,e)}function gl(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function so(n,t,e={}){if(t)for(let i in n)e[i]=n[i];else gl(n,e);return e}function Q3(n,t,e){return e?t+":"+e+";":""}function Z3(n){let t="";for(let e=0;e{const r=zg(i);e&&!e.hasOwnProperty(i)&&(e[i]=n.style[r]),n.style[r]=t[i]}),Ig()&&Z3(n))}function zo(n,t){n.style&&(Object.keys(t).forEach(e=>{const i=zg(e);n.style[i]=""}),Ig()&&Z3(n))}function Zc(n){return Array.isArray(n)?1==n.length?n[0]:P3(n):n}const jg=new RegExp("{{\\s*(.+?)\\s*}}","g");function J3(n){let t=[];if("string"==typeof n){let e;for(;e=jg.exec(n);)t.push(e[1]);jg.lastIndex=0}return t}function kh(n,t,e){const i=n.toString(),r=i.replace(jg,(s,o)=>{let a=t[o];return t.hasOwnProperty(o)||(e.push(function x7(n){return new Ke(3003,nn)}()),a=""),a.toString()});return r==i?n:r}function Ah(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const uN=/-+([a-z0-9])/g;function zg(n){return n.replace(uN,(...t)=>t[1].toUpperCase())}function dN(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function tr(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function k7(n){return new Ke(3004,nn)}()}}function eM(n,t){return window.getComputedStyle(n)[t]}function vN(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function _N(n,t,e){if(":"==n[0]){const d=function yN(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof d)return void t.push(d);n=d}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function j7(n){return new Ke(3015,nn)}()),t;const r=i[1],s=i[2],o=i[3];t.push(tM(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&t.push(tM(o,r))}(i,e,t)):e.push(n),e}const Oh=new Set(["true","1"]),Fh=new Set(["false","0"]);function tM(n,t){const e=Oh.has(n)||Fh.has(n),i=Oh.has(t)||Fh.has(t);return(r,s)=>{let o="*"==n||n==r,a="*"==t||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?Oh.has(n):Fh.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?Oh.has(t):Fh.has(t)),o&&a}}const bN=new RegExp("s*:selfs*,?","g");function Ug(n,t,e,i){return new wN(n).build(t,e,i)}class wN{constructor(t){this._driver=t}build(t,e,i){const r=new MN(e);this._resetContextStyleTimingState(r);const s=tr(this,Zc(t),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push(function T7(){return new Ke(3006,nn)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const d=a,C=d.name;C.toString().split(/\s*,\s*/).forEach(k=>{d.name=k,s.push(this.visitState(d,e))}),d.name=C}else if(1==a.type){const d=this.visitTransition(a,e);i+=d.queryCount,r+=d.depCount,o.push(d)}else e.errors.push(function I7(){return new Ke(3007,nn)}())}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(Ph(a)){const d=a;Object.keys(d).forEach(C=>{J3(d[C]).forEach(k=>{o.hasOwnProperty(k)||s.add(k)})})}}),s.size&&(Ah(s.values()),e.errors.push(function R7(n,t){return new Ke(3008,nn)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=tr(this,Zc(t.animation),e);return{type:1,matchers:vN(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Uo(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>tr(this,i,e)),options:Uo(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=i;const a=tr(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:Uo(t.options)}}visitAnimate(t,e){const i=function SN(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return $g(xh(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=$g(0,0,"");return s.dynamic=!0,s.strValue=e,s}const r=xh(e,t);return $g(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:ft({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const C={};i.easing&&(C.easing=i.easing),o=ft(C)}e.currentTime+=i.duration+i.delay;const d=this.visitStyle(o,e);d.isEmptyStep=a,r=d}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(o=>{"string"==typeof o?o==xs?i.push(o):e.errors.push(function O7(n){return new Ke(3002,nn)}()):i.push(o)}):i.push(t.styles);let r=!1,s=null;return i.forEach(o=>{if(Ph(o)){const a=o,d=a.easing;if(d&&(s=d,delete a.easing),!r)for(let C in a)if(a[C].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void e.unsupportedCSSPropertiesFound.add(a);const d=e.collectedStyles[e.currentQuerySelector],C=d[a];let k=!0;C&&(s!=r&&s>=C.startTime&&r<=C.endTime&&(e.errors.push(function F7(n,t,e,i,r){return new Ke(3010,nn)}()),k=!1),s=C.startTime),k&&(d[a]={startTime:s,endTime:r}),e.options&&function cN(n,t,e){const i=t.params||{},r=J3(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(function S7(n){return new Ke(3001,nn)}())})}(o[a],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function P7(){return new Ke(3011,nn)}()),i;let s=0;const o=[];let a=!1,d=!1,C=0;const k=t.steps.map(Me=>{const pe=this._makeStyleAst(Me,e);let Ne=null!=pe.offset?pe.offset:function EN(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(Ph(e)&&e.hasOwnProperty("offset")){const i=e;t=parseFloat(i.offset),delete i.offset}});else if(Ph(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(pe.styles),it=0;return null!=Ne&&(s++,it=pe.offset=Ne),d=d||it<0||it>1,a=a||it0&&s{const Ne=G>0?pe==X?1:G*pe:o[pe],it=Ne*ve;e.currentTime=re+de.delay+it,de.duration=it,this._validateStyleAst(Me,e),Me.offset=Ne,i.styles.push(Me)}),i}visitReference(t,e){return{type:8,animation:tr(this,Zc(t.animation),e),options:Uo(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Uo(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Uo(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function CN(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(bN,"")),n=n.replace(/@\*/g,Sh).replace(/@\w+/g,e=>Sh+"-"+e.substr(1)).replace(/:animating/g,Vg),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,er(e.collectedStyles,e.currentQuerySelector,{});const a=tr(this,Zc(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:Uo(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function V7(){return new Ke(3013,nn)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:xh(t.timings,e.errors,!0);return{type:12,animation:tr(this,Zc(t.animation),e),timings:i,options:null}}}class MN{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Ph(n){return!Array.isArray(n)&&"object"==typeof n}function Uo(n){return n?(n=gl(n)).params&&(n.params=function DN(n){return n?gl(n):null}(n.params)):n={},n}function $g(n,t,e){return{duration:n,delay:t,easing:e}}function Gg(n,t,e,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class Nh{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const AN=new RegExp(":enter","g"),IN=new RegExp(":leave","g");function Wg(n,t,e,i,r,s={},o={},a,d,C=[]){return(new RN).buildKeyframes(n,t,e,i,r,s,o,a,d,C)}class RN{buildKeyframes(t,e,i,r,s,o,a,d,C,k=[]){C=C||new Nh;const N=new Yg(t,e,C,r,s,k,[]);N.options=d,N.currentTimeline.setStyles([o],null,N.errors,d),tr(this,i,N);const G=N.timelines.filter(X=>X.containsAnimation());if(Object.keys(a).length){let X;for(let re=G.length-1;re>=0;re--){const de=G[re];if(de.element===e){X=de;break}}X&&!X.allowOnlyTimelineStyles()&&X.setStyles([a],null,N.errors,d)}return G.length?G.map(X=>X.buildKeyframes()):[Gg(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?jo(i.duration):null,a=null!=i.delay?jo(i.delay):null;return 0!==o&&t.forEach(d=>{const C=e.appendInstructionToTimeline(d,o,a);s=Math.max(s,C.duration+C.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),tr(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Lh);const o=jo(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>tr(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?jo(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),tr(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return xh(e.params?kh(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(d=>{a.forwardTime((d.offset||0)*s),a.setStyles(d.styles,d.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?jo(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Lh);let o=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let d=null;a.forEach((C,k)=>{e.currentQueryIndex=k;const N=e.createSubContext(t.options,C);s&&N.delayNextStep(s),C===e.element&&(d=N.currentTimeline),tr(this,t.animation,N),N.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,N.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),d&&(e.currentTimeline.mergeTimelineCollectedStyles(d),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let d=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":d=a-d;break;case"full":d=i.currentStaggerTime}const k=e.currentTimeline;d&&k.delayNextStep(d);const N=k.currentTime;tr(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-N+(r.startTime-i.currentTimeline.startTime)}}const Lh={};class Yg{constructor(t,e,i,r,s,o,a,d){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Lh,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=d||new Bh(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=jo(i.duration)),null!=i.delay&&(r.delay=jo(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=kh(s[a],o,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,s=new Yg(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Lh,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new ON(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(AN,"."+this._enterClassName)).replace(IN,"."+this._leaveClassName);let C=this._driver.query(this.element,t,1!=i);0!==i&&(C=i<0?C.slice(C.length+i,C.length):C.slice(0,i)),a.push(...C)}return!s&&0==a.length&&o.push(function H7(n){return new Ke(3014,nn)}()),a}}class Bh{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Bh(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||xs,this._currentKeyframe[e]=xs}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},o=function FN(n,t){const e={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(t),i.forEach(s=>{e[s]=xs})):so(r,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const d=kh(o[a],s,i);this._pendingStyles[a]=d,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:xs),this._updateStyle(a,d)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=t[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],r=t._styleSummary[e];(!i||r.time>i.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,d)=>{const C=so(a,!0);Object.keys(C).forEach(k=>{const N=C[k];"!"==N?t.add(k):N==xs&&e.add(k)}),i||(C.offset=d/this.duration),r.push(C)});const s=t.size?Ah(t.values()):[],o=e.size?Ah(e.values()):[];if(i){const a=r[0],d=gl(a);a.offset=0,d.offset=1,r=[a,d]}return Gg(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class ON extends Bh{constructor(t,e,i,r,s,o,a=!1){super(t,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,d=so(t[0],!1);d.offset=0,s.push(d);const C=so(t[0],!1);C.offset=rM(a),s.push(C);const k=t.length-1;for(let N=1;N<=k;N++){let G=so(t[N],!1);G.offset=rM((e+G.offset*i)/o),s.push(G)}i=o,e=0,r="",t=s}return Gg(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function rM(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class qg{}class PN extends qg{normalizePropertyName(t,e){return zg(t)}normalizeStyleValue(t,e,i,r){let s="";const o=i.toString().trim();if(NN[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function A7(n,t){return new Ke(3005,nn)}())}return o+s}}const NN=(()=>function LN(n){const t={};return n.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function sM(n,t,e,i,r,s,o,a,d,C,k,N,G){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:d,preStyleProps:C,postStyleProps:k,totalTime:N,errors:G}}const Kg={};class oM{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function BN(n,t,e,i,r){return n.some(s=>s(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){const r=this._stateStyles["*"],s=this._stateStyles[t],o=r?r.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,r,s,o,a,d,C,k){const N=[],G=this.ast.options&&this.ast.options.params||Kg,re=this.buildStyles(i,a&&a.params||Kg,N),de=d&&d.params||Kg,ve=this.buildStyles(r,de,N),Me=new Set,pe=new Map,Ne=new Map,it="void"===r,Wt={params:Object.assign(Object.assign({},G),de)},An=k?[]:Wg(t,e,this.ast.animation,s,o,re,ve,Wt,C,N);let Pn=0;if(An.forEach(rr=>{Pn=Math.max(rr.duration+rr.delay,Pn)}),N.length)return sM(e,this._triggerName,i,r,it,re,ve,[],[],pe,Ne,Pn,N);An.forEach(rr=>{const sr=rr.element,Pl=er(pe,sr,{});rr.preStyleProps.forEach(Ur=>Pl[Ur]=!0);const Os=er(Ne,sr,{});rr.postStyleProps.forEach(Ur=>Os[Ur]=!0),sr!==e&&Me.add(sr)});const ir=Ah(Me.values());return sM(e,this._triggerName,i,r,it,re,ve,An,ir,pe,Ne,Pn)}}class VN{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i={},r=gl(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let d=o[a];d.length>1&&(d=kh(d,r,e));const C=this.normalizer.normalizePropertyName(a,e);d=this.normalizer.normalizeStyleValue(a,C,d,e),i[C]=d})}}),i}}class jN{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new VN(r.style,r.options&&r.options.params||{},i)}),aM(this.states,"true","1"),aM(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new oM(t,r,this.states))}),this.fallbackTransition=function zN(n,t,e){return new oM(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function aM(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const UN=new Nh;class $N{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],s=Ug(this._driver,e,i,[]);if(i.length)throw function Y7(n){return new Ke(3503,nn)}();this._animations[t]=s}_buildPlayer(t,e,i){const r=t.element,s=V3(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],s=this._animations[t];let o;const a=new Map;if(s?(o=Wg(this._driver,e,s,Bg,Mh,{},{},i,UN,r),o.forEach(k=>{const N=er(a,k.element,{});k.postStyleProps.forEach(G=>N[G]=null)})):(r.push(function q7(){return new Ke(3300,nn)}()),o=[]),r.length)throw function K7(n){return new Ke(3504,nn)}();a.forEach((k,N)=>{Object.keys(k).forEach(G=>{k[G]=this._driver.computeStyle(N,G,xs)})});const C=ro(o.map(k=>{const N=a.get(k.element);return this._buildPlayer(k,{},N)}));return this._playersById[t]=C,C.onDestroy(()=>this.destroy(t)),this.players.push(C),C}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw function X7(n){return new Ke(3301,nn)}();return e}listen(t,e,i,r){const s=Fg(e,"","","");return Rg(this._getPlayer(t),i,s,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const lM="ng-animate-queued",Xg="ng-animate-disabled",KN=[],cM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},XN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},_r="__ng_removed";class Qg{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function eL(n){return null!=n?n:null}(i?t.value:t),i){const s=gl(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Jc="void",Zg=new Qg(Jc);class QN{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,yr(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.hasOwnProperty(e))throw function Q7(n,t){return new Ke(3302,nn)}();if(null==i||0==i.length)throw function Z7(n){return new Ke(3303,nn)}();if(!function tL(n){return"start"==n||"done"==n}(i))throw function J7(n,t){return new Ke(3400,nn)}();const s=er(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};s.push(o);const a=er(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(yr(t,Eh),yr(t,Eh+"-"+e),a[e]=Zg),()=>{this._engine.afterFlush(()=>{const d=s.indexOf(o);d>=0&&s.splice(d,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw function eN(n){return new Ke(3401,nn)}();return e}trigger(t,e,i,r=!0){const s=this._getTrigger(e),o=new Jg(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(yr(t,Eh),yr(t,Eh+"-"+e),this._engine.statesByElement.set(t,a={}));let d=a[e];const C=new Qg(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&d&&C.absorbOptions(d.options),a[e]=C,d||(d=Zg),C.value!==Jc&&d.value===C.value){if(!function rL(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{zo(t,ve),ls(t,Me)})}return}const G=er(this._engine.playersByElement,t,[]);G.forEach(de=>{de.namespaceId==this.id&&de.triggerName==e&&de.queued&&de.destroy()});let X=s.matchTransition(d.value,C.value,t,C.params),re=!1;if(!X){if(!r)return;X=s.fallbackTransition,re=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:X,fromState:d,toState:C,player:o,isFallbackTransition:re}),re||(yr(t,lM),o.onStart(()=>{vl(t,lM)})),o.onDone(()=>{let de=this.players.indexOf(o);de>=0&&this.players.splice(de,1);const ve=this._engine.playersByElement.get(t);if(ve){let Me=ve.indexOf(o);Me>=0&&ve.splice(Me,1)}}),this.players.push(o),G.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Sh,!0);i.forEach(r=>{if(r[_r])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const s=this._engine.statesByElement.get(t),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(d=>{if(o.set(d,s[d].value),this._triggers[d]){const C=this.trigger(t,d,Jc,r);C&&a.push(C)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),i&&ro(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const d=this._triggers[o].fallbackTransition,C=i[o]||Zg,k=new Qg(Jc),N=new Jg(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:d,fromState:C,toState:k,player:N,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const s=t[_r];(!s||s===cM)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){yr(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const d=Fg(s,i.triggerName,i.fromState.value,i.toState.value);d._data=t,Rg(i.player,a.phase,d,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class ZN{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new QN(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const d=r.get(a);if(d){const C=i.indexOf(d);i.splice(C+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,e)){i.splice(a+1,0,t),o=!0;break}o||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const r=Object.keys(i);for(let s=0;s=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),yr(t,Xg)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),vl(t,Xg))}removeNode(t,e,i,r){if(Vh(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,s){this.collectedLeaveElements.push(e),e[_r]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,r,s){return Vh(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Sh,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Vg,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return ro(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const i=t[_r];if(i&&i.setForRemoval){if(t[_r]=cM,i.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}(null===(e=t.classList)||void 0===e?void 0:e.contains(Xg))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?ro(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function tN(n){return new Ke(3402,nn)}()}_flushAnimations(t,e){const i=new Nh,r=[],s=new Map,o=[],a=new Map,d=new Map,C=new Map,k=new Set;this.disabledNodes.forEach(Je=>{k.add(Je);const pt=this.driver.query(Je,".ng-animate-queued",!0);for(let St=0;St{const St=Bg+de++;re.set(pt,St),Je.forEach(un=>yr(un,St))});const ve=[],Me=new Set,pe=new Set;for(let Je=0;JeMe.add(un)):pe.add(pt))}const Ne=new Map,it=hM(G,Array.from(Me));it.forEach((Je,pt)=>{const St=Mh+de++;Ne.set(pt,St),Je.forEach(un=>yr(un,St))}),t.push(()=>{X.forEach((Je,pt)=>{const St=re.get(pt);Je.forEach(un=>vl(un,St))}),it.forEach((Je,pt)=>{const St=Ne.get(pt);Je.forEach(un=>vl(un,St))}),ve.forEach(Je=>{this.processLeaveNode(Je)})});const Wt=[],An=[];for(let Je=this._namespaceList.length-1;Je>=0;Je--)this._namespaceList[Je].drainQueuedTransitions(e).forEach(St=>{const un=St.player,ui=St.element;if(Wt.push(un),this.collectedEnterElements.length){const Pi=ui[_r];if(Pi&&Pi.setForMove){if(Pi.previousTriggersValues&&Pi.previousTriggersValues.has(St.triggerName)){const la=Pi.previousTriggersValues.get(St.triggerName),mo=this.statesByElement.get(St.element);mo&&mo[St.triggerName]&&(mo[St.triggerName].value=la)}return void un.destroy()}}const ds=!N||!this.driver.containsElement(N,ui),or=Ne.get(ui),po=re.get(ui),Nn=this._buildInstruction(St,i,po,or,ds);if(Nn.errors&&Nn.errors.length)return void An.push(Nn);if(ds)return un.onStart(()=>zo(ui,Nn.fromStyles)),un.onDestroy(()=>ls(ui,Nn.toStyles)),void r.push(un);if(St.isFallbackTransition)return un.onStart(()=>zo(ui,Nn.fromStyles)),un.onDestroy(()=>ls(ui,Nn.toStyles)),void r.push(un);const qx=[];Nn.timelines.forEach(Pi=>{Pi.stretchStartingKeyframe=!0,this.disabledNodes.has(Pi.element)||qx.push(Pi)}),Nn.timelines=qx,i.append(ui,Nn.timelines),o.push({instruction:Nn,player:un,element:ui}),Nn.queriedElements.forEach(Pi=>er(a,Pi,[]).push(un)),Nn.preStyleProps.forEach((Pi,la)=>{const mo=Object.keys(Pi);if(mo.length){let ca=d.get(la);ca||d.set(la,ca=new Set),mo.forEach(E_=>ca.add(E_))}}),Nn.postStyleProps.forEach((Pi,la)=>{const mo=Object.keys(Pi);let ca=C.get(la);ca||C.set(la,ca=new Set),mo.forEach(E_=>ca.add(E_))})});if(An.length){const Je=[];An.forEach(pt=>{Je.push(function nN(n,t){return new Ke(3505,nn)}())}),Wt.forEach(pt=>pt.destroy()),this.reportError(Je)}const Pn=new Map,ir=new Map;o.forEach(Je=>{const pt=Je.element;i.has(pt)&&(ir.set(pt,pt),this._beforeAnimationBuild(Je.player.namespaceId,Je.instruction,Pn))}),r.forEach(Je=>{const pt=Je.element;this._getPreviousPlayers(pt,!1,Je.namespaceId,Je.triggerName,null).forEach(un=>{er(Pn,pt,[]).push(un),un.destroy()})});const rr=ve.filter(Je=>pM(Je,d,C)),sr=new Map;dM(sr,this.driver,pe,C,xs).forEach(Je=>{pM(Je,d,C)&&rr.push(Je)});const Os=new Map;X.forEach((Je,pt)=>{dM(Os,this.driver,new Set(Je),d,"!")}),rr.forEach(Je=>{const pt=sr.get(Je),St=Os.get(Je);sr.set(Je,Object.assign(Object.assign({},pt),St))});const Ur=[],Nl=[],Ll={};o.forEach(Je=>{const{element:pt,player:St,instruction:un}=Je;if(i.has(pt)){if(k.has(pt))return St.onDestroy(()=>ls(pt,un.toStyles)),St.disabled=!0,St.overrideTotalTime(un.totalTime),void r.push(St);let ui=Ll;if(ir.size>1){let or=pt;const po=[];for(;or=or.parentNode;){const Nn=ir.get(or);if(Nn){ui=Nn;break}po.push(or)}po.forEach(Nn=>ir.set(Nn,ui))}const ds=this._buildAnimation(St.namespaceId,un,Pn,s,Os,sr);if(St.setRealPlayer(ds),ui===Ll)Ur.push(St);else{const or=this.playersByElement.get(ui);or&&or.length&&(St.parentPlayer=ro(or)),r.push(St)}}else zo(pt,un.fromStyles),St.onDestroy(()=>ls(pt,un.toStyles)),Nl.push(St),k.has(pt)&&r.push(St)}),Nl.forEach(Je=>{const pt=s.get(Je.element);if(pt&&pt.length){const St=ro(pt);Je.setRealPlayer(St)}}),r.forEach(Je=>{Je.parentPlayer?Je.syncPlayerEvents(Je.parentPlayer):Je.destroy()});for(let Je=0;Je!ds.destroyed);ui.length?nL(this,pt,ui):this.processLeaveNode(pt)}return ve.length=0,Ur.forEach(Je=>{this.players.push(Je),Je.onDone(()=>{Je.destroy();const pt=this.players.indexOf(Je);this.players.splice(pt,1)}),Je.play()}),Ur}elementContainsData(t,e){let i=!1;const r=e[_r];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const d=!s||s==Jc;a.forEach(C=>{C.queued||!d&&C.triggerName!=r||o.push(C)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,i){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const d of e.timelines){const C=d.element,k=C!==s,N=er(i,C,[]);this._getPreviousPlayers(C,k,o,a,e.toState).forEach(X=>{const re=X.getRealPlayer();re.beforeDestroy&&re.beforeDestroy(),X.destroy(),N.push(X)})}zo(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,o){const a=e.triggerName,d=e.element,C=[],k=new Set,N=new Set,G=e.timelines.map(re=>{const de=re.element;k.add(de);const ve=de[_r];if(ve&&ve.removedBeforeQueried)return new Qc(re.duration,re.delay);const Me=de!==d,pe=function iL(n){const t=[];return fM(n,t),t}((i.get(de)||KN).map(Pn=>Pn.getRealPlayer())).filter(Pn=>!!Pn.element&&Pn.element===de),Ne=s.get(de),it=o.get(de),Wt=V3(0,this._normalizer,0,re.keyframes,Ne,it),An=this._buildPlayer(re,Wt,pe);if(re.subTimeline&&r&&N.add(de),Me){const Pn=new Jg(t,a,de);Pn.setRealPlayer(An),C.push(Pn)}return An});C.forEach(re=>{er(this.playersByQueriedElement,re.element,[]).push(re),re.onDone(()=>function JN(n,t,e){let i;if(n instanceof Map){if(i=n.get(t),i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}}else if(i=n[t],i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&delete n[t]}return i}(this.playersByQueriedElement,re.element,re))}),k.forEach(re=>yr(re,K3));const X=ro(G);return X.onDestroy(()=>{k.forEach(re=>vl(re,K3)),ls(d,e.toStyles)}),N.forEach(re=>{er(r,re,[]).push(X)}),X}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Qc(t.duration,t.delay)}}class Jg{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Qc,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>Rg(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){er(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Vh(n){return n&&1===n.nodeType}function uM(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function dM(n,t,e,i,r){const s=[];e.forEach(d=>s.push(uM(d)));const o=[];i.forEach((d,C)=>{const k={};d.forEach(N=>{const G=k[N]=t.computeStyle(C,N,r);(!G||0==G.length)&&(C[_r]=XN,o.push(C))}),n.set(C,k)});let a=0;return e.forEach(d=>uM(d,s[a++])),o}function hM(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),s=new Map;function o(a){if(!a)return 1;let d=s.get(a);if(d)return d;const C=a.parentNode;return d=e.has(C)?C:r.has(C)?1:o(C),s.set(a,d),d}return t.forEach(a=>{const d=o(a);1!==d&&e.get(d).push(a)}),e}function yr(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function vl(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function nL(n,t,e){ro(e).onDone(()=>n.processLeaveNode(t))}function fM(n,t){for(let e=0;er.add(s)):t.set(n,i),e.delete(n),!0}class Hh{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new ZN(t,e,i),this._timelineEngine=new $N(t,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const d=[],k=Ug(this._driver,s,d,[]);if(d.length)throw function G7(n,t){return new Ke(3404,nn)}();a=function HN(n,t,e){return new jN(n,t,e)}(r,k,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[s,o]=H3(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=H3(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let oL=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ls(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ls(this._element,this._initialStyles),this._endStyles&&(ls(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(zo(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(zo(this._element,this._endStyles),this._endStyles=null),ls(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ev(n){let t=null;const e=Object.keys(n);for(let i=0;it()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(t[i]=this._finished?e[i]:eM(this.element,i))})}this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class lL{validateStyleProperty(t){return $3(t)}matchesElement(t,e){return!1}containsElement(t,e){return G3(t,e)}getParentElement(t){return Ng(t)}query(t,e,i){return W3(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,s,o=[]){const d={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(d.easing=s);const C={},k=o.filter(G=>G instanceof mM);(function hN(n,t){return 0===n||0===t})(i,r)&&k.forEach(G=>{let X=G.currentSnapshot;Object.keys(X).forEach(re=>C[re]=X[re])}),e=function fN(n,t,e){const i=Object.keys(e);if(i.length&&t.length){let s=t[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var r=1;rso(G,!1)),C);const N=function sL(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=ev(t[0]),t.length>1&&(i=ev(t[t.length-1]))):t&&(e=ev(t)),e||i?new oL(n,e,i):null}(t,e);return new mM(t,e,d,N)}}let cL=(()=>{class n extends O3{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Sr.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?P3(e):e;return gM(this._renderer,null,i,"register",[r]),new uL(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(ue(bc),ue(Et))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();class uL extends class D7{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new dL(this._id,t,e||{},this._renderer)}}class dL{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return gM(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function gM(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const vM="@.disabled";let hL=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let k=this._rendererCache.get(s);return k||(k=new _M("",s,this.engine),this._rendererCache.set(s,k)),k}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const d=k=>{Array.isArray(k)?k.forEach(d):this.engine.registerTrigger(o,a,e,k.name,k)};return i.data.animation.forEach(d),new fL(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(ue(bc),ue(Hh),ue(ct))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();class _M{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==vM?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class fL extends _M{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==vM?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function pL(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function mL(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let gL=(()=>{class n extends Hh{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(ue(Et),ue(Lg),ue(qg))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const br=new Ie("AnimationModuleType"),yM=[{provide:O3,useClass:cL},{provide:qg,useFactory:function vL(){return new PN}},{provide:Hh,useClass:gL},{provide:bc,useFactory:function _L(n,t,e){return new hL(n,t,e)},deps:[qd,Hh,ct]}],bM=[{provide:Lg,useFactory:()=>new lL},{provide:br,useValue:"BrowserAnimations"},...yM],yL=[{provide:Lg,useClass:Y3},{provide:br,useValue:"NoopAnimations"},...yM];let bL=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?yL:bM}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:bM,imports:[TC]}),n})();function wL(n,t){if(1&n&&yt(0,"mat-pseudo-checkbox",4),2&n){const e=Ue();ge("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function CL(n,t){if(1&n&&(oe(0,"span",5),we(1),le()),2&n){const e=Ue();he(1),Rn("(",e.group.label,")")}}const DL=["*"];let ML=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),EL=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const xL=new Ie("mat-sanity-checks",{providedIn:"root",factory:function SL(){return!0}});let Gt=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Bm()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(ue(I3),ue(xL,8),ue(Et))},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Hc],Hc]}),n})();function $o(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=ht(t)}}}function Go(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function oo(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=ht(t)}}}function tv(n,t=0){return class extends n{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?gr(e):this.defaultTabIndex}}}function CM(n){return class extends n{constructor(...t){super(...t),this.stateChanges=new U,this.errorState=!1}updateErrorState(){const t=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==t&&(this.errorState=s,this.stateChanges.next())}}}function kL(n){return class extends n{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new j(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const AL=new Ie("MAT_DATE_LOCALE",{providedIn:"root",factory:function TL(){return ec(bs)}});class mi{constructor(){this._localeChanges=new U,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),r=this.isValid(e);return i&&r?!this.compareDate(t,e):i==r}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const Wo=new Ie("mat-date-formats"),IL=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function nv(n,t){const e=Array(n);for(let i=0;i{class n extends mi{constructor(e,i){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return nv(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return nv(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){const i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return nv(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){const i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let s=this._createDateWithOverflow(e,i,r);return s.getMonth(),s}today(){return new Date}parse(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},i),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,12*i)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(IL.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,i,r){const s=new Date;return s.setFullYear(e,i,r),s.setHours(0,0,0,0),s}_2digit(e){return("00"+e).slice(-2)}_format(e,i){const r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}}return n.\u0275fac=function(e){return new(e||n)(ue(AL,8),ue($n))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const OL={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let FL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[{provide:mi,useClass:RL}]}),n})(),PL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[{provide:Wo,useValue:OL}],imports:[[FL]]}),n})(),iv=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),DM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function eu(n,t,e){n.nativeElement.classList.toggle(t,e)}let EM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Gt],Gt]}),n})();class NL{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const SM={enterDuration:225,exitDuration:150},rv=ll({passive:!0}),xM=["mousedown","touchstart"],kM=["mouseup","mouseleave","touchend","touchcancel"];class BL{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Ds(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},SM),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=i.radius||function HL(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,d=e-r.top,C=s.enterDuration,k=document.createElement("div");k.classList.add("mat-ripple-element"),k.style.left=a-o+"px",k.style.top=d-o+"px",k.style.height=2*o+"px",k.style.width=2*o+"px",null!=i.color&&(k.style.backgroundColor=i.color),k.style.transitionDuration=`${C}ms`,this._containerElement.appendChild(k),function VL(n){window.getComputedStyle(n).getPropertyValue("opacity")}(k),k.style.transform="scale(1)";const N=new NL(this,k,i);return N.state=0,this._activeRipples.add(N),i.persistent||(this._mostRecentTransientRipple=N),this._runTimeoutOutsideZone(()=>{const G=N===this._mostRecentTransientRipple;N.state=1,!i.persistent&&(!G||!this._isPointerDown)&&N.fadeOut()},C),N}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,r=Object.assign(Object.assign({},SM),t.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Ds(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(xM))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(kM),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Sg(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,rv)})})}_removeTriggerEvents(){this._triggerElement&&(xM.forEach(t=>{this._triggerElement.removeEventListener(t,this,rv)}),this._pointerUpEventsRegistered&&kM.forEach(t=>{this._triggerElement.removeEventListener(t,this,rv)}))}}const jL=new Ie("mat-ripple-global-options");let _l=(()=>{class n{constructor(e,i,r,s,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new BL(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(ct),V($n),V(jL,8),V(br,8))},n.\u0275dir=De({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&Nt("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),zh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Gt],Gt]}),n})(),AM=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(V(br,8))},n.\u0275cmp=Ge({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&Nt("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),sv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Gt]]}),n})();const ov=new Ie("MAT_OPTION_PARENT_COMPONENT"),av=new Ie("MatOptgroup");let zL=0;class TM{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let UL=(()=>{class n{constructor(e,i,r,s){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+zL++,this.onSelectionChange=new Le,this._stateChanges=new U}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=ht(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!ai(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new TM(this,e))}}return n.\u0275fac=function(e){Wa()},n.\u0275dir=De({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),tu=(()=>{class n extends UL{constructor(e,i,r,s){super(e,i,r,s)}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(an),V(ov,8),V(av,8))},n.\u0275cmp=Ge({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&Oe("click",function(){return i._selectViaInteraction()})("keydown",function(s){return i._handleKeydown(s)}),2&e&&(Gs("id",i.id),_t("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),Nt("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[Pe],ngContentSelectors:DL,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(mn(),ze(0,wL,1,2,"mat-pseudo-checkbox",0),oe(1,"span",1),bt(2),le(),ze(3,CL,2,1,"span",2),yt(4,"div",3)),2&e&&(ge("ngIf",i.multiple),he(3),ge("ngIf",i.group&&i.group._inert),he(1),ge("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[AM,hi,_l],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function lv(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),s=0;for(let o=0;oe+i?Math.max(0,n-i+t):e}let Uh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[zh,Ri,Gt,sv]]}),n})();function Yo(n){return new j(t=>{let e;try{e=n()}catch(r){return void t.error(r)}return(e?Re(e):Qd()).subscribe(t)})}class cv{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class qo extends cv{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class Ko extends cv{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class $L extends cv{constructor(t){super(),this.element=t instanceof nt?t.nativeElement:t}}class $h{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof qo?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ko?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof $L?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class GL extends $h{constructor(t,e,i,r,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,d=this._document.createComment("dom-portal");a.parentNode.insertBefore(d,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{d.parentNode&&d.parentNode.replaceChild(a,d)})},this._document=s}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector||Dn.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Xo=(()=>{class n extends $h{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Le,this.attachDomPortal=s=>{const o=s.element,a=this._document.createComment("dom-portal");s.setAttachedHost(this),o.parentNode.insertBefore(a,o),this._getRootNode().appendChild(o),this._attachedPortal=s,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(o,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,s=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),o=i.createComponent(s,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(V(Eo),V(On),V(Et))},n.\u0275dir=De({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Pe]}),n})(),nu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();class YL{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new qL(t,this.predicate,this.inclusive))}}class qL extends h{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const RM=zC();class KL{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Kn(-this._previousScrollPosition.left),t.style.top=Kn(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),RM&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),RM&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class XL{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class OM{enable(){}disable(){}attach(){}}function uv(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function FM(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class QL{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();uv(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let ZL=(()=>{class n{constructor(e,i,r,s){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new OM,this.close=o=>new XL(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new KL(this._viewportRuler,this._document),this.reposition=o=>new QL(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(e){return new(e||n)(ue(ul),ue(Po),ue(ct),ue(Et))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Qo{constructor(t){if(this.scrollStrategy=new OM,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class JL{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}class eB{constructor(t,e,i,r,s,o,a,d,C){this._portalOutlet=t,this._host=e,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=d,this._outsideClickDispatcher=C,this._backdropElement=null,this._backdropClick=new U,this._attachments=new U,this._detachments=new U,this._locationChanges=y.EMPTY,this._backdropClickHandler=k=>this._backdropClick.next(k),this._backdropTransitionendHandler=k=>{this._disposeBackdrop(k.target)},this._keydownEvents=new U,this._outsidePointerEvents=new U,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(ln(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){var t;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(t=this._host)||void 0===t||t.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Kn(this._config.width),t.height=Kn(this._config.height),t.minWidth=Kn(this._config.minWidth),t.minHeight=Kn(this._config.minHeight),t.maxWidth=Kn(this._config.maxWidth),t.maxHeight=Kn(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;!t||(t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500)))}_toggleClasses(t,e,i){const r=Xd(e||[]).filter(s=>!!s);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Ut(Ae(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let dv=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Bm()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let d=this._getOriginPoint(t,r,a),C=this._getOverlayPoint(d,e,a),k=this._getOverlayFit(C,e,i,a);if(k.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,d);this._canFitWithFlexibleDimensions(k,C,i)?s.push({position:a,origin:d,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(d,a)}):(!o||o.overlayFit.visibleAread&&(d=k,a=C)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Zo(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(PM),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,s;if("center"==i.originX)r=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?o:a}return e.left<0&&(r-=e.left),s="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(s-=e.top),{x:r,y:s}}_getOverlayPoint(t,e,i){let r,s;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,i,r){const s=BM(e);let{x:o,y:a}=t,d=this._getOffset(r,"x"),C=this._getOffset(r,"y");d&&(o+=d),C&&(a+=C);let G=0-a,X=a+s.height-i.height,re=this._subtractOverflows(s.width,0-o,o+s.width-i.width),de=this._subtractOverflows(s.height,G,X),ve=re*de;return{visibleArea:ve,isCompletelyWithinViewport:s.width*s.height===ve,fitsInViewportVertically:de===s.height,fitsInViewportHorizontally:re==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,s=i.right-e.x,o=LM(this._overlayRef.getConfig().minHeight),a=LM(this._overlayRef.getConfig().minWidth),C=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=o&&o<=r)&&C}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=BM(e),s=this._viewportRect,o=Math.max(t.x+r.width-s.width,0),a=Math.max(t.y+r.height-s.height,0),d=Math.max(s.top-i.top-t.y,0),C=Math.max(s.left-i.left-t.x,0);let k=0,N=0;return k=r.width<=s.width?C||-o:t.xre&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-re/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)G=i.width-t.x+this._viewportMargin,k=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)N=t.x,k=i.right-t.x;else{const X=Math.min(i.right-t.x+i.left,t.x),re=this._lastBoundingBoxSize.width;k=2*X,N=t.x-X,k>re&&!this._isInitialRender&&!this._growAfterOpen&&(N=t.x-re/2)}return{top:o,left:N,bottom:a,right:G,width:k,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Kn(i.height),r.top=Kn(i.top),r.bottom=Kn(i.bottom),r.width=Kn(i.width),r.left=Kn(i.left),r.right=Kn(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=Kn(s)),o&&(r.maxWidth=Kn(o))}this._lastBoundingBoxSize=i,Zo(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Zo(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Zo(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const k=this._viewportRuler.getViewportScrollPosition();Zo(i,this._getExactOverlayY(e,t,k)),Zo(i,this._getExactOverlayX(e,t,k))}else i.position="static";let a="",d=this._getOffset(e,"x"),C=this._getOffset(e,"y");d&&(a+=`translateX(${d}px) `),C&&(a+=`translateY(${C}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=Kn(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=Kn(o.maxWidth):s&&(i.maxWidth="")),Zo(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=Kn(s.y),r}_getExactOverlayX(t,e,i){let o,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Kn(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:FM(t,i),isOriginOutsideView:uv(t,i),isOverlayClipped:FM(e,i),isOverlayOutsideView:uv(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Xd(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof nt)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Zo(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function LM(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(tB);return e&&"px"!==e?null:parseFloat(t)}return n||null}function BM(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const VM="cdk-global-overlay-wrapper";class nB{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(VM),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,d=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),C=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=d?"0":this._leftOffset,t.marginTop=C?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,d?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=C?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(VM),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let iB=(()=>{class n{constructor(e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new nB}flexibleConnectedTo(e){return new NM(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(ue(Po),ue(Et),ue($n),ue(dv))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),HM=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(ue(Et))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rB=(()=>{class n extends HM{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const s=this._attachedOverlays;for(let o=s.length-1;o>-1;o--)if(s[o]._keydownEvents.observers.length>0){const a=s[o]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(ue(Et),ue(ct,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sB=(()=>{class n extends HM{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=qs(s)},this._clickListener=s=>{const o=qs(s),a="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;this._pointerDownEventTarget=null;const d=this._attachedOverlays.slice();for(let C=d.length-1;C>-1;C--){const k=d[C];if(k._outsidePointerEvents.observers.length<1||!k.hasAttached())continue;if(k.overlayElement.contains(o)||k.overlayElement.contains(a))break;const N=k._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>N.next(s)):N.next(s)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(ue(Et),ue($n),ue(ct,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),oB=0,Ui=(()=>{class n{constructor(e,i,r,s,o,a,d,C,k,N,G){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=d,this._document=C,this._directionality=k,this._location=N,this._outsideClickDispatcher=G}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new Qo(e);return o.direction=o.direction||this._directionality.value,new eB(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+oB++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Sc)),new GL(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(ue(ZL),ue(dv),ue(Eo),ue(iB),ue(rB),ue(Dn),ue(ct),ue(Et),ue(fi),ue(kc),ue(sB))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const aB=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],jM=new Ie("cdk-connected-overlay-scroll-strategy");let zM=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(V(nt))},n.\u0275dir=De({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),UM=(()=>{class n{constructor(e,i,r,s,o){this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=y.EMPTY,this._attachSubscription=y.EMPTY,this._detachSubscription=y.EMPTY,this._positionSubscription=y.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Le,this.positionChange=new Le,this.attach=new Le,this.detach=new Le,this.overlayKeydown=new Le,this.overlayOutsideClick=new Le,this._templatePortal=new Ko(i,r),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ht(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=ht(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=ht(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=ht(e)}get push(){return this._push}set push(e){this._push=ht(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=aB);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!ai(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Qo({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof zM?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function WL(n,t=!1){return e=>e.lift(new YL(n,t))}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(V(Ui),V(kn),V(On),V(jM),V(fi,8))},n.\u0275dir=De({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[on]}),n})();const cB={provide:jM,deps:[Ui],useFactory:function lB(n){return()=>n.scrollStrategies.reposition()}};let yl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[Ui,cB],imports:[[Hc,nu,ih],ih]}),n})();const uB=["connectionContainer"],dB=["inputContainer"],hB=["label"];function fB(n,t){1&n&&(Or(0),oe(1,"div",14),yt(2,"div",15)(3,"div",16)(4,"div",17),le(),oe(5,"div",18),yt(6,"div",15)(7,"div",16)(8,"div",17),le(),Fr())}function pB(n,t){if(1&n){const e=In();oe(0,"div",19),Oe("cdkObserveContent",function(){return Qt(e),Ue().updateOutlineGap()}),bt(1,1),le()}2&n&&ge("cdkObserveContentDisabled","outline"!=Ue().appearance)}function mB(n,t){if(1&n&&(Or(0),bt(1,2),oe(2,"span"),we(3),le(),Fr()),2&n){const e=Ue(2);he(3),xn(e._control.placeholder)}}function gB(n,t){1&n&&bt(0,3,["*ngSwitchCase","true"])}function vB(n,t){1&n&&(oe(0,"span",23),we(1," *"),le())}function _B(n,t){if(1&n){const e=In();oe(0,"label",20,21),Oe("cdkObserveContent",function(){return Qt(e),Ue().updateOutlineGap()}),ze(2,mB,4,1,"ng-container",12),ze(3,gB,1,0,"ng-content",12),ze(4,vB,2,0,"span",22),le()}if(2&n){const e=Ue();Nt("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),ge("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),_t("for",e._control.id)("aria-owns",e._control.id),he(2),ge("ngSwitchCase",!1),he(1),ge("ngSwitchCase",!0),he(1),ge("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function yB(n,t){1&n&&(oe(0,"div",24),bt(1,4),le())}function bB(n,t){if(1&n&&(oe(0,"div",25),yt(1,"span",26),le()),2&n){const e=Ue();he(1),Nt("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function wB(n,t){1&n&&(oe(0,"div"),bt(1,5),le()),2&n&&ge("@transitionMessages",Ue()._subscriptAnimationState)}function CB(n,t){if(1&n&&(oe(0,"div",30),we(1),le()),2&n){const e=Ue(2);ge("id",e._hintLabelId),he(1),xn(e.hintLabel)}}function DB(n,t){if(1&n&&(oe(0,"div",27),ze(1,CB,2,2,"div",28),bt(2,6),yt(3,"div",29),bt(4,7),le()),2&n){const e=Ue();ge("@transitionMessages",e._subscriptAnimationState),he(1),ge("ngIf",e.hintLabel)}}const MB=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],EB=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],SB=new Ie("MatError"),xB={transitionMessages:li("transitionMessages",[fn("enter",ft({opacity:1,transform:"translateY(0%)"})),gn("void => enter",[ft({opacity:0,transform:"translateY(-5px)"}),wn("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Gh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n}),n})();const kB=new Ie("MatHint");let bl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["mat-label"]]}),n})(),AB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["mat-placeholder"]]}),n})();const TB=new Ie("MatPrefix"),$M=new Ie("MatSuffix");let IB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["","matSuffix",""]],features:[lt([{provide:$M,useExisting:n}])]}),n})(),GM=0;const OB=Go(class{constructor(n){this._elementRef=n}},"primary"),FB=new Ie("MAT_FORM_FIELD_DEFAULT_OPTIONS"),iu=new Ie("MatFormField");let Jo=(()=>{class n extends OB{constructor(e,i,r,s,o,a,d){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=s,this._platform=o,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new U,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+GM++,this._labelId="mat-form-field-label-"+GM++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==d,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ht(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(jn(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ut(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ut(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Ae(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(jn(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(jn(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ut(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Hr(this._label.nativeElement,"transitionend").pipe(ln(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,r=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",s=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const k=i.querySelectorAll(`${r}, ${s}`);for(let N=0;N0?.75*re+10:0}for(let k=0;k{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Ri,Gt,_3],Gt]}),n})();function Yh(n,t=ol){const i=function PB(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-t.now():Math.abs(n);return r=>r.lift(new NB(i,t))}class NB{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new hv(t,this.delay,this.scheduler))}}class hv extends h{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,r=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const o=Math.max(0,i[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(hv.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new LB(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Hi.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Hi.createComplete()),this.unsubscribe()}}class LB{constructor(t,e){this.time=t,this.notification=e}}const BB=["panel"];function VB(n,t){if(1&n&&(oe(0,"div",0,1),bt(2),le()),2&n){const e=t.id,i=Ue();ge("id",i.id)("ngClass",i._classList),_t("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const HB=["*"];let jB=0;class zB{constructor(t,e){this.source=t,this.option=e}}const UB=oo(class{}),YM=new Ie("mat-autocomplete-default-options",{providedIn:"root",factory:function $B(){return{autoActiveFirstOption:!1}}});let GB=(()=>{class n extends UB{constructor(e,i,r,s){super(),this._changeDetectorRef=e,this._elementRef=i,this._activeOptionChanges=y.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Le,this.opened=new Le,this.closed=new Le,this.optionActivated=new Le,this._classList={},this.id="mat-autocomplete-"+jB++,this.inertGroups=(null==s?void 0:s.SAFARI)||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=ht(e)}set classList(e){this._classList=e&&e.length?PC(e).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new M3(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new zB(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return n.\u0275fac=function(e){return new(e||n)(V(an),V(nt),V(YM),V($n))},n.\u0275dir=De({type:n,viewQuery:function(e,i){if(1&e&&(jt(kn,7),jt(BB,5)),2&e){let r;He(r=je())&&(i.template=r.first),He(r=je())&&(i.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Pe]}),n})(),WB=(()=>{class n extends GB{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,i,r){if(1&e&&(Lt(r,av,5),Lt(r,tu,5)),2&e){let s;He(s=je())&&(i.optionGroups=s),He(s=je())&&(i.options=s)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[lt([{provide:ov,useExisting:n}]),Pe],ngContentSelectors:HB,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,i){1&e&&(mn(),ze(0,VB,3,4,"ng-template"))},directives:[rl],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),n})();const qM=new Ie("mat-autocomplete-scroll-strategy"),qB={provide:qM,deps:[Ui],useFactory:function YB(n){return()=>n.scrollStrategies.reposition()}},KB={provide:ji,useExisting:Ot(()=>KM),multi:!0};let XB=(()=>{class n{constructor(e,i,r,s,o,a,d,C,k,N,G){this._element=e,this._overlay=i,this._viewContainerRef=r,this._zone=s,this._changeDetectorRef=o,this._dir=d,this._formField=C,this._document=k,this._viewportRuler=N,this._defaults=G,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=y.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new U,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Yo(()=>{const X=this.autocomplete?this.autocomplete.options:null;return X?X.changes.pipe(jn(X),Xn(()=>Ae(...X.map(re=>re.onSelectionChange)))):this._zone.onStable.pipe(ln(1),Xn(()=>this.optionSelections))}),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=ht(e)}ngAfterViewInit(){const e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Ae(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe($t(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe($t(()=>this._overlayAttached)):Qe()).pipe(L(e=>e instanceof TM?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Ae(Hr(this._document,"click"),Hr(this._document,"auxclick"),Hr(this._document,"touchend")).pipe($t(e=>{const i=qs(e),r=this._formField?this._formField._elementRef.nativeElement:null,s=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(i))&&(!s||!s.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve().then(()=>this._setTriggerValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode,r=ai(e);if(27===i&&!r&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const s=this.autocomplete._keyManager.activeItem,o=38===i||40===i;9===i||o&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):o&&this._canOpen()&&this.openPanel(),(o||this.autocomplete._keyManager.activeItem!==s)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(e){let i=e.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return Ae(this._zone.onStable.pipe(ln(1)),this.autocomplete.options.changes.pipe(ri(()=>this._positionStrategy.reapplyLastPosition()),Yh(0))).pipe(Xn(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&(this._overlayRef.updatePosition(),r!==this.panelOpen&&this.autocomplete.opened.emit())}),this.panelClosingActions)),ln(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,r=null!=i?i:"";this._formField?this._formField._control.value=r:this._element.nativeElement.value=r,this._previousValue=r}_setValueAndClose(e){const i=e&&e.source;i&&(this._clearPreviousSelectedOption(i),this._setTriggerValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(i=>{i!==e&&i.selected&&i.deselect()})}_attachOverlay(){var e;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new Ko(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,i.keydownEvents().subscribe(s=>{(27===s.keyCode&&!ai(s)||38===s.keyCode&&ai(s,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),s.stopPropagation(),s.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var e;return new Qo({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,s=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let o;o="above"===this.position?s:"below"===this.position?i:[...i,...s],e.withPositions(o)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}_scrollToOption(e){const i=this.autocomplete,r=lv(e,i.options,i.optionGroups);if(0===e&&1===r)i._setScrollTop(0);else if(i.panel){const s=i.options.toArray()[e];if(s){const o=s._getHostElement(),a=IM(o.offsetTop,o.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(a)}}}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(Ui),V(On),V(ct),V(an),V(qM),V(fi,8),V(iu,9),V(Et,8),V(Po),V(YM,8))},n.\u0275dir=De({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[on]}),n})(),KM=(()=>{class n extends XB{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,i){1&e&&Oe("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(s){return i._handleInput(s)})("keydown",function(s){return i._handleKeydown(s)})("click",function(){return i._handleClick()}),2&e&&_t("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[lt([KB]),Pe]}),n})(),QB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[qB],imports:[[yl,Uh,Gt,Ri],Xs,Uh,Gt]}),n})();const ZB=["mat-button",""],JB=["*"],tV=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],nV=Go($o(oo(class{constructor(n){this._elementRef=n}})));let Fi=(()=>{class n extends nV{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of tV)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(as),V(br,8))},n.\u0275cmp=Ge({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&jt(_l,5),2&e){let r;He(r=je())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(_t("disabled",i.disabled||null),Nt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Pe],attrs:ZB,ngContentSelectors:JB,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(mn(),oe(0,"span",0),bt(1),le(),yt(2,"span",1)(3,"span",2)),2&e&&(he(2),Nt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),ge("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[_l],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),fv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[zh,Gt],Gt]}),n})();const XM=ll({passive:!0});let iV=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ys;const i=Ds(e),r=this._monitoredElements.get(i);if(r)return r.subject;const s=new U,o="cdk-text-field-autofilled",a=d=>{"cdk-text-field-autofill-start"!==d.animationName||i.classList.contains(o)?"cdk-text-field-autofill-end"===d.animationName&&i.classList.contains(o)&&(i.classList.remove(o),this._ngZone.run(()=>s.next({target:d.target,isAutofilled:!1}))):(i.classList.add(o),this._ngZone.run(()=>s.next({target:d.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,XM),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:s,unlisten:()=>{i.removeEventListener("animationstart",a,XM)}}),s}stopMonitoring(e){const i=Ds(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(ue($n),ue(ct))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),QM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();const ZM=new Ie("MAT_INPUT_VALUE_ACCESSOR"),rV=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let sV=0;const oV=CM(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i}});let ea=(()=>{class n extends oV{constructor(e,i,r,s,o,a,d,C,k,N){super(a,s,o,r),this._elementRef=e,this._platform=i,this._autofillMonitor=C,this._formField=N,this._uid="mat-input-"+sV++,this.focused=!1,this.stateChanges=new U,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(re=>jC().has(re)),this._iOSKeyupListener=re=>{const de=re.target;!de.value&&0===de.selectionStart&&0===de.selectionEnd&&(de.setSelectionRange(1,1),de.setSelectionRange(0,0))};const G=this._elementRef.nativeElement,X=G.nodeName.toLowerCase();this._inputValueAccessor=d||G,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&k.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===X,this._isTextarea="textarea"===X,this._isInFormField=!!N,this._isNativeSelect&&(this.controlType=G.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ht(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,i,r,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(Jm.required))&&void 0!==s&&s}set required(e){this._required=ht(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&jC().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ht(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,i;const r=(null===(i=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===i?void 0:i.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=r,r?s.setAttribute("placeholder",r):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){rV.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V($n),V(os,10),V(Es,8),V(qc,8),V(iv),V(ZM,10),V(iV),V(ct),V(iu,8))},n.\u0275dir=De({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,i){1&e&&Oe("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Gs("disabled",i.disabled)("required",i.required),_t("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),Nt("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[lt([{provide:Gh,useExisting:n}]),Pe,on]}),n})(),aV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[iv],imports:[[QM,Wh,Gt],QM,Wh]}),n})();const lV=["mat-calendar-body",""];function cV(n,t){if(1&n&&(oe(0,"tr",2)(1,"td",3),we(2),le()()),2&n){const e=Ue();he(1),Ai("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),_t("colspan",e.numCols),he(1),Rn(" ",e.label," ")}}function uV(n,t){if(1&n&&(oe(0,"td",3),we(1),le()),2&n){const e=Ue(2);Ai("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),_t("colspan",e._firstRowOffset),he(1),Rn(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function dV(n,t){if(1&n){const e=In();oe(0,"td",7)(1,"button",8),Oe("click",function(r){const o=Qt(e).$implicit;return Ue(2)._cellClicked(o,r)}),oe(2,"div",9),we(3),le(),yt(4,"div",10),le()()}if(2&n){const e=t.$implicit,i=t.index,r=Ue().index,s=Ue();Ai("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),_t("data-mat-row",r)("data-mat-col",i),he(1),Nt("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",s._isActiveCell(r,i))("mat-calendar-body-range-start",s._isRangeStart(e.compareValue))("mat-calendar-body-range-end",s._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",s._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",s._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",s._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",s._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",s._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",s._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",s._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",s._isInPreview(e.compareValue)),ge("ngClass",e.cssClasses)("tabindex",s._isActiveCell(r,i)?0:-1),_t("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",s._isSelected(e.compareValue))("aria-current",s.todayValue===e.compareValue?"date":null),he(1),Nt("mat-calendar-body-selected",s._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",s._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",s.todayValue===e.compareValue),he(1),Rn(" ",e.displayValue," ")}}function hV(n,t){if(1&n&&(oe(0,"tr",4),ze(1,uV,2,6,"td",5),ze(2,dV,5,47,"td",6),le()),2&n){const e=t.$implicit,i=t.index,r=Ue();he(1),ge("ngIf",0===i&&r._firstRowOffset),he(1),ge("ngForOf",e)}}function fV(n,t){if(1&n&&(oe(0,"th",5)(1,"span",6),we(2),le(),oe(3,"span",7),we(4),le()()),2&n){const e=t.$implicit;he(2),xn(e.long),he(2),xn(e.narrow)}}const pV=["*"];function mV(n,t){}function gV(n,t){if(1&n){const e=In();oe(0,"mat-month-view",5),Oe("activeDateChange",function(r){return Qt(e),Ue().activeDate=r})("_userSelection",function(r){return Qt(e),Ue()._dateSelected(r)}),le()}if(2&n){const e=Ue();ge("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function vV(n,t){if(1&n){const e=In();oe(0,"mat-year-view",6),Oe("activeDateChange",function(r){return Qt(e),Ue().activeDate=r})("monthSelected",function(r){return Qt(e),Ue()._monthSelectedInYearView(r)})("selectedChange",function(r){return Qt(e),Ue()._goToDateInView(r,"month")}),le()}if(2&n){const e=Ue();ge("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function _V(n,t){if(1&n){const e=In();oe(0,"mat-multi-year-view",7),Oe("activeDateChange",function(r){return Qt(e),Ue().activeDate=r})("yearSelected",function(r){return Qt(e),Ue()._yearSelectedInMultiYearView(r)})("selectedChange",function(r){return Qt(e),Ue()._goToDateInView(r,"year")}),le()}if(2&n){const e=Ue();ge("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function yV(n,t){}const bV=["button"];function wV(n,t){1&n&&($l(),oe(0,"svg",3),yt(1,"path",4),le())}const CV=[[["","matDatepickerToggleIcon",""]]],DV=["[matDatepickerToggleIcon]"];class pv{constructor(t,e,i,r,s={},o=t,a){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=s,this.compareValue=o,this.rawValue=a}}let wl=(()=>{class n{constructor(e,i){this._elementRef=e,this._ngZone=i,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new Le,this.previewChange=new Le,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const s=this._getCellFromElement(r.target);s&&this._ngZone.run(()=>this.previewChange.emit({value:s.enabled?s:null,event:r}))}},this._leaveHandler=r=>{null!==this.previewEnd&&this.isRange&&r.target&&this._getCellFromElement(r.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r}))},i.runOutsideAngular(()=>{const r=e.nativeElement;r.addEventListener("mouseenter",this._enterHandler,!0),r.addEventListener("focus",this._enterHandler,!0),r.addEventListener("mouseleave",this._leaveHandler,!0),r.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(e,i){e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const i=e.numCols,{rows:r,numCols:s}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?s-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/s+"%"),(i||!this._cellWidth)&&(this._cellWidth=100/s+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ln(1)).subscribe(()=>{setTimeout(()=>{const i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})})})}_isRangeStart(e){return mv(e,this.startValue,this.endValue)}_isRangeEnd(e){return gv(e,this.startValue,this.endValue)}_isInRange(e){return vv(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return mv(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let s=this.rows[i][r-1];if(!s){const o=this.rows[i-1];s=o&&o[o.length-1]}return s&&!this._isRangeEnd(s.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let s=this.rows[i][r+1];if(!s){const o=this.rows[i+1];s=o&&o[0]}return s&&!this._isRangeStart(s.compareValue)}_isComparisonEnd(e){return gv(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return vv(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return mv(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return gv(e,this.previewStart,this.previewEnd)}_isInPreview(e){return vv(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let i;if(JM(e)?i=e:JM(e.parentNode)&&(i=e.parentNode),i){const r=i.getAttribute("data-mat-row"),s=i.getAttribute("data-mat-col");if(r&&s)return this.rows[parseInt(r)][parseInt(s)]}return null}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(ct))},n.\u0275cmp=Ge({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[on],attrs:lV,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,i){1&e&&(ze(0,cV,3,6,"tr",0),ze(1,hV,3,2,"tr",1)),2&e&&(ge("ngIf",i._firstRowOffset.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),n})();function JM(n){return"TD"===n.nodeName}function mv(n,t,e){return null!==e&&t!==e&&n=t&&n===e}function vv(n,t,e,i){return i&&null!==t&&null!==e&&t!==e&&n>=t&&n<=e}class $i{constructor(t,e){this.start=t,this.end=e}}let ao=(()=>{class n{constructor(e,i){this.selection=e,this._adapter=i,this._selectionChanged=new U,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,i){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return n.\u0275fac=function(e){Wa()},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),MV=(()=>{class n extends ao{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new n(this._adapter);return e.updateSelection(this.selection,this),e}}return n.\u0275fac=function(e){return new(e||n)(ue(mi))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const eE={provide:ao,deps:[[new xi,new Yr,ao],mi],useFactory:function SV(n,t){return n||new MV(t)}},qh=new Ie("MAT_DATE_RANGE_SELECTION_STRATEGY");let tE=(()=>{class n{constructor(e,i,r,s,o){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=s,this._rangeStrategy=o,this._rerenderSubscription=y.EMPTY,this.selectedChange=new Le,this._userSelection=new Le,this.activeDateChange=new Le,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof $i?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(jn(null)).subscribe(()=>this._init())}ngOnChanges(e){const i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const i=e.value,r=this._dateAdapter.getYear(this.activeDate),s=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.createDate(r,s,i);let a,d;this._selected instanceof $i?(a=this._getDateInCurrentMonth(this._selected.start),d=this._getDateInCurrentMonth(this._selected.end)):a=d=this._getDateInCurrentMonth(this._selected),(a!==i||d!==i)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!ai(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_previewChanged({event:e,value:i}){if(this._rangeStrategy){const s=this._rangeStrategy.createPreview(i?i.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow");let s=this._dateAdapter.getDayOfWeekNames("long").map((o,a)=>({long:o,narrow:i[a]}));this._weekdays=s.slice(e).concat(s.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,s=this._firstWeekOffset;r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!(!e||!i||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(i)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){const i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),s=this._dateAdapter.getDate(e);return new Date(i,r,s).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof $i?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return n.\u0275fac=function(e){return new(e||n)(V(an),V(Wo,8),V(mi,8),V(fi,8),V(qh,8))},n.\u0275cmp=Ge({type:n,selectors:[["mat-month-view"]],viewQuery:function(e,i){if(1&e&&jt(wl,5),2&e){let r;He(r=je())&&(i._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[on],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,i){1&e&&(oe(0,"table",0)(1,"thead",1)(2,"tr"),ze(3,fV,5,2,"th",2),le(),oe(4,"tr"),yt(5,"th",3),le()(),oe(6,"tbody",4),Oe("selectedValueChange",function(s){return i._dateSelected(s)})("previewChange",function(s){return i._previewChanged(s)})("keyup",function(s){return i._handleCalendarBodyKeyup(s)})("keydown",function(s){return i._handleCalendarBodyKeydown(s)}),le()()),2&e&&(he(3),ge("ngForOf",i._weekdays),he(3),ge("label",i._monthLabel)("rows",i._weeks)("todayValue",i._todayDate)("startValue",i._rangeStart)("endValue",i._rangeEnd)("comparisonStart",i._comparisonRangeStart)("comparisonEnd",i._comparisonRangeEnd)("previewStart",i._previewStart)("previewEnd",i._previewEnd)("isRange",i._isRange)("labelMinRequiredCells",3)("activeCell",i._dateAdapter.getDate(i.activeDate)-1))},directives:[wl,rs],encapsulation:2,changeDetection:0}),n})(),nE=(()=>{class n{constructor(e,i,r){this._changeDetectorRef=e,this._dateAdapter=i,this._dir=r,this._rerenderSubscription=y.EMPTY,this.selectedChange=new Le,this.yearSelected=new Le,this.activeDateChange=new Le,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),iE(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof $i?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(jn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const i=this._dateAdapter.getYear(this._activeDate)-ru(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,s=[];r<24;r++)s.push(i+r),4==s.length&&(this._years.push(s.map(o=>this._createCellForYear(o))),s=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const i=e.value;this.yearSelected.emit(this._dateAdapter.createDate(i,0,1));let r=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(i,r,1));this.selectedChange.emit(this._dateAdapter.createDate(i,r,Math.min(this._dateAdapter.getDate(this.activeDate),s)))}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ru(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-ru(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return ru(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(e){const i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),s=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new pv(e,r,r,this._shouldEnableYear(e),s)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class n{constructor(e,i,r,s){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=s,this._rerenderSubscription=y.EMPTY,this.selectedChange=new Le,this.monthSelected=new Le,this.activeDateChange=new Le,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof $i?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(jn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);const s=this._dateAdapter.getNumDaysInMonth(r);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,Math.min(this._dateAdapter.getDate(this.activeDate),s)))}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_createCellForMonth(e,i){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),s=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),o=this.dateClass?this.dateClass(r,"year"):void 0;return new pv(e,i.toLocaleUpperCase(),s,this._shouldEnableMonth(e),o)}_shouldEnableMonth(e){const i=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;for(let s=this._dateAdapter.createDate(i,e,1);this._dateAdapter.getMonth(s)==e;s=this._dateAdapter.addCalendarDays(s,1))if(this.dateFilter(s))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),s=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>s}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),s=this._dateAdapter.getMonth(this.minDate);return e{class n{constructor(){this.changes=new U,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(e,i){return`${e} \u2013 ${i}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),IV=0,RV=(()=>{class n{constructor(e,i,r,s,o){this._intl=e,this.calendar=i,this._dateAdapter=r,this._dateFormats=s,this._buttonDescriptionId="mat-calendar-button-"+IV++,this.calendar.stateChanges.subscribe(()=>o.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const i=this._dateAdapter.getYear(this.calendar.activeDate)-ru(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+24-1,s=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),o=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return this._intl.formatYearRange(s,o)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,i){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):iE(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}}return n.\u0275fac=function(e){return new(e||n)(V(su),V(Ot(()=>bv)),V(mi,8),V(Wo,8),V(an))},n.\u0275cmp=Ge({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:pV,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,i){1&e&&(mn(),oe(0,"div",0)(1,"div",1)(2,"button",2),Oe("click",function(){return i.currentPeriodClicked()}),oe(3,"span"),we(4),le(),$l(),oe(5,"svg",3),yt(6,"polygon",4),le()(),d0(),yt(7,"div",5),bt(8),oe(9,"button",6),Oe("click",function(){return i.previousClicked()}),le(),oe(10,"button",7),Oe("click",function(){return i.nextClicked()}),le()()()),2&e&&(he(2),_t("aria-label",i.periodButtonLabel)("aria-describedby",i._buttonDescriptionId),he(1),_t("id",i._buttonDescriptionId),he(1),xn(i.periodButtonText),he(1),Nt("mat-calendar-invert","month"!==i.calendar.currentView),he(4),ge("disabled",!i.previousEnabled()),_t("aria-label",i.prevButtonLabel),he(1),ge("disabled",!i.nextEnabled()),_t("aria-label",i.nextButtonLabel))},directives:[Fi],encapsulation:2,changeDetection:0}),n})(),bv=(()=>{class n{constructor(e,i,r,s){this._dateAdapter=i,this._dateFormats=r,this._changeDetectorRef=s,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new Le,this.yearSelected=new Le,this.monthSelected=new Le,this.viewChanged=new Le(!0),this._userSelection=new Le,this.stateChanges=new U,this._intlChanges=e.changes.subscribe(()=>{s.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof $i?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&this.viewChanged.emit(i)}ngAfterContentInit(){this._calendarHeaderPortal=new qo(this.headerComponent||RV),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,s=i||r||e.dateFilter;if(s&&!s.firstChange){const o=this._getCurrentViewComponent();o&&(this._changeDetectorRef.detectChanges(),o._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const i=e.value;(this.selected instanceof $i||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return n.\u0275fac=function(e){return new(e||n)(V(su),V(mi,8),V(Wo,8),V(an))},n.\u0275cmp=Ge({type:n,selectors:[["mat-calendar"]],viewQuery:function(e,i){if(1&e&&(jt(tE,5),jt(sE,5),jt(nE,5)),2&e){let r;He(r=je())&&(i.monthView=r.first),He(r=je())&&(i.yearView=r.first),He(r=je())&&(i.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[lt([eE]),on],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,i){1&e&&(ze(0,mV,0,0,"ng-template",0),oe(1,"div",1),ze(2,gV,1,8,"mat-month-view",2),ze(3,vV,1,6,"mat-year-view",3),ze(4,_V,1,6,"mat-multi-year-view",4),le()),2&e&&(ge("cdkPortalOutlet",i._calendarHeaderPortal),he(1),ge("ngSwitch",i.currentView),he(1),ge("ngSwitchCase","month"),he(1),ge("ngSwitchCase","year"),he(1),ge("ngSwitchCase","multi-year"))},directives:[tE,sE,nE,Xo,w7,sl,Ud],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),n})();const oE={transformPanel:li("transformPanel",[gn("void => enter-dropdown",wn("120ms cubic-bezier(0, 0, 0.2, 1)",ml([ft({opacity:0,transform:"scale(1, 0.8)"}),ft({opacity:1,transform:"scale(1, 1)"})]))),gn("void => enter-dialog",wn("150ms cubic-bezier(0, 0, 0.2, 1)",ml([ft({opacity:0,transform:"scale(0.7)"}),ft({transform:"none",opacity:1})]))),gn("* => void",wn("100ms linear",ft({opacity:0})))]),fadeInCalendar:li("fadeInCalendar",[fn("void",ft({opacity:0})),fn("enter",ft({opacity:1})),gn("void => *",wn("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let OV=0;const aE=new Ie("mat-datepicker-scroll-strategy"),PV={provide:aE,deps:[Ui],useFactory:function FV(n){return()=>n.scrollStrategies.reposition()}},NV=Go(class{constructor(n){this._elementRef=n}});let LV=(()=>{class n extends NV{constructor(e,i,r,s,o,a){super(e),this._changeDetectorRef=i,this._globalModel=r,this._dateAdapter=s,this._rangeSelectionStrategy=o,this._subscriptions=new y,this._animationDone=new U,this._actionsPortal=null,this._closeButtonText=a.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const i=this._model.selection,r=e.value,s=i instanceof $i;if(s&&this._rangeSelectionStrategy){const o=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(o,this)}else r&&(s||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(an),V(ao),V(mi),V(qh,8),V(su))},n.\u0275cmp=Ge({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(e,i){if(1&e&&jt(bv,5),2&e){let r;He(r=je())&&(i._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,i){1&e&&Ya("@transformPanel.done",function(){return i._animationDone.next()}),2&e&&(Xa("@transformPanel",i._animationState),Nt("mat-datepicker-content-touch",i.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[Pe],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,i){if(1&e&&(oe(0,"div",0)(1,"mat-calendar",1),Oe("yearSelected",function(s){return i.datepicker._selectYear(s)})("monthSelected",function(s){return i.datepicker._selectMonth(s)})("viewChanged",function(s){return i.datepicker._viewChanged(s)})("_userSelection",function(s){return i._handleUserSelection(s)}),le(),ze(2,yV,0,0,"ng-template",2),oe(3,"button",3),Oe("focus",function(){return i._closeButtonFocused=!0})("blur",function(){return i._closeButtonFocused=!1})("click",function(){return i.datepicker.close()}),we(4),le()()),2&e){let r;Nt("mat-datepicker-content-container-with-custom-header",i.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",i._actionsPortal),_t("aria-modal",!0)("aria-labelledby",null!==(r=i._dialogLabelId)&&void 0!==r?r:void 0),he(1),ge("id",i.datepicker.id)("ngClass",i.datepicker.panelClass)("startAt",i.datepicker.startAt)("startView",i.datepicker.startView)("minDate",i.datepicker._getMinDate())("maxDate",i.datepicker._getMaxDate())("dateFilter",i.datepicker._getDateFilter())("headerComponent",i.datepicker.calendarHeaderComponent)("selected",i._getSelected())("dateClass",i.datepicker.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)("@fadeInCalendar","enter"),he(1),ge("cdkPortalOutlet",i._actionsPortal),he(1),Nt("cdk-visually-hidden",!i._closeButtonFocused),ge("color",i.color||"primary"),he(1),xn(i._closeButtonText)}},directives:[bv,Fi,f7,rl,Xo],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[oE.transformPanel,oE.fadeInCalendar]},changeDetection:0}),n})(),lE=(()=>{class n{constructor(e,i,r,s,o,a,d){this._overlay=e,this._ngZone=i,this._viewContainerRef=r,this._dateAdapter=o,this._dir=a,this._model=d,this._inputStateChanges=y.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new Le,this.monthSelected=new Le,this.viewChanged=new Le(!0),this.openedStream=new Le,this.closedStream=new Le,this._opened=!1,this.id="mat-datepicker-"+OV++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new U,this._scrollStrategy=s}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=ht(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const i=ht(e);i!==this._disabled&&(this._disabled=i,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=ht(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=PC(e)}get opened(){return this._opened}set opened(e){ht(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(e){const i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;r instanceof NM&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Bc(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const i=this._componentRef.instance;i._startExitAnimation(),i._animationDone.pipe(ln(1)).subscribe(()=>this._destroyOverlay())}const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_applyPendingSelection(){var e,i;null===(i=null===(e=this._componentRef)||void 0===e?void 0:e.instance)||void 0===i||i._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._actionsPortal=this._actionsPortal,e._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const e=this.touchUi,i=new qo(LV,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new Qo({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(r).subscribe(s=>{s&&s.preventDefault(),this.close()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(ln(1)).subscribe(()=>r.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const i="end"===this.xPosition?"end":"start",r="start"===i?"end":"start",s="above"===this.yPosition?"bottom":"top",o="top"===s?"bottom":"top";return e.withPositions([{originX:i,originY:o,overlayX:i,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:s},{originX:r,originY:s,overlayX:r,overlayY:o}])}_getCloseStream(e){return Ae(e.backdropClick(),e.detachments(),e.keydownEvents().pipe($t(i=>27===i.keyCode&&!ai(i)||this.datepickerInput&&ai(i,"altKey")&&38===i.keyCode)))}}return n.\u0275fac=function(e){return new(e||n)(V(Ui),V(ct),V(On),V(aE),V(mi,8),V(fi,8),V(ao))},n.\u0275dir=De({type:n,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[on]}),n})(),BV=(()=>{class n extends lE{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[lt([eE,{provide:lE,useExisting:n}]),Pe],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0}),n})();class Kh{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let VV=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._dateAdapter=i,this._dateFormats=r,this.dateChange=new Le,this.dateInput=new Le,this.stateChanges=new U,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=y.EMPTY,this._localeSubscription=y.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=s=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value));return!o||this._matchesFilter(o)?null:{matDatepickerFilter:!0}},this._minValidator=s=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),a=this._getMinDate();return!a||!o||this._dateAdapter.compareDate(a,o)<=0?null:{matDatepickerMin:{min:a,actual:o}}},this._maxValidator=s=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),a=this._getMaxDate();return!a||!o||this._dateAdapter.compareDate(a,o)>=0?null:{matDatepickerMax:{max:a,actual:o}}},this._lastValueValid=!1,this._localeSubscription=i.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const i=ht(e),r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){const r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new Kh(this,this._elementRef.nativeElement)),this.dateChange.emit(new Kh(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function HV(n,t){const e=Object.keys(n);for(let i of e){const{previousValue:r,currentValue:s}=n[i];if(!t.isDateInstance(r)||!t.isDateInstance(s))return!0;if(!t.sameDate(r,s))return!0}return!1})(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const i=this._lastValueValid;let r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);const s=!this._dateAdapter.sameDate(r,this.value);!r||s?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),i!==this._lastValueValid&&this._validatorOnChange()),s&&(this._assignValue(r),this.dateInput.emit(new Kh(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Kh(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const i=this._getDateFilter();return!i||i(e)}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(mi,8),V(Wo,8))},n.\u0275dir=De({type:n,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[on]}),n})();const jV={provide:ji,useExisting:Ot(()=>wv),multi:!0},zV={provide:pi,useExisting:Ot(()=>wv),multi:!0};let wv=(()=>{class n extends VV{constructor(e,i,r,s){super(e,i,r),this._formField=s,this._closedSubscription=y.EMPTY,this._validator=Jm.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}get max(){return this._max}set max(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(mi,8),V(Wo,8),V(iu,8))},n.\u0275dir=De({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,i){1&e&&Oe("input",function(s){return i._onInput(s.target.value)})("change",function(){return i._onChange()})("blur",function(){return i._onBlur()})("keydown",function(s){return i._onKeydown(s)}),2&e&&(Gs("disabled",i.disabled),_t("aria-haspopup",i._datepicker?"dialog":null)("aria-owns",(null==i._datepicker?null:i._datepicker.opened)&&i._datepicker.id||null)("min",i.min?i._dateAdapter.toIso8601(i.min):null)("max",i.max?i._dateAdapter.toIso8601(i.max):null)("data-mat-calendar",i._datepicker?i._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[lt([jV,zV,{provide:ZM,useExisting:n}]),Pe]}),n})(),UV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["","matDatepickerToggleIcon",""]]}),n})(),$V=(()=>{class n{constructor(e,i,r){this._intl=e,this._changeDetectorRef=i,this._stateChanges=y.EMPTY;const s=Number(r);this.tabIndex=s||0===s?s:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=ht(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:Qe(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Qe(),r=this.datepicker?Ae(this.datepicker.openedStream,this.datepicker.closedStream):Qe();this._stateChanges.unsubscribe(),this._stateChanges=Ae(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(V(su),V(an),dr("tabindex"))},n.\u0275cmp=Ge({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,i,r){if(1&e&&Lt(r,UV,5),2&e){let s;He(s=je())&&(i._customIcon=s.first)}},viewQuery:function(e,i){if(1&e&&jt(bV,5),2&e){let r;He(r=je())&&(i._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,i){1&e&&Oe("click",function(s){return i._open(s)}),2&e&&(_t("tabindex",null)("data-mat-calendar",i.datepicker?i.datepicker.id:null),Nt("mat-datepicker-toggle-active",i.datepicker&&i.datepicker.opened)("mat-accent",i.datepicker&&"accent"===i.datepicker.color)("mat-warn",i.datepicker&&"warn"===i.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[on],ngContentSelectors:DV,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,i){1&e&&(mn(CV),oe(0,"button",0,1),ze(2,wV,2,0,"svg",2),bt(3),le()),2&e&&(ge("disabled",i.disabled)("disableRipple",i.disableRipple),_t("aria-haspopup",i.datepicker?"dialog":null)("aria-label",i.ariaLabel||i._intl.openCalendarLabel)("tabindex",i.disabled?-1:i.tabIndex),he(2),ge("ngIf",!i._customIcon))},directives:[Fi,hi],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),n})(),GV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[su,PV],imports:[[Ri,fv,yl,C7,nu,Gt],Xs]}),n})();function WV(n,t){}class Cv{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const YV={dialogContainer:li("dialogContainer",[fn("void, exit",ft({opacity:0,transform:"scale(0.7)"})),fn("enter",ft({transform:"none"})),gn("* => enter",F3([wn("150ms cubic-bezier(0, 0, 0.2, 1)",ft({transform:"none",opacity:1})),Ch("@*",wh(),{optional:!0})])),gn("* => void, * => exit",F3([wn("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",ft({opacity:0})),Ch("@*",wh(),{optional:!0})]))])};let qV=(()=>{class n extends $h{constructor(e,i,r,s,o,a,d,C){super(),this._elementRef=e,this._focusTrapFactory=i,this._changeDetectorRef=r,this._config=o,this._interactivityChecker=a,this._ngZone=d,this._focusMonitor=C,this._animationStateChanged=new Le,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=k=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(k)),this._ariaLabelledBy=o.ariaLabelledBy||null,this._document=s}_initializeWithAttachedContent(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Bc())}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const i=Bc(),r=this._elementRef.nativeElement;(!i||i===this._document.body||i===r||r.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=Bc();return e===i||e.contains(i)}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(Eg),V(an),V(Et,8),V(Cv),V(Mg),V(ct),V(as))},n.\u0275dir=De({type:n,viewQuery:function(e,i){if(1&e&&jt(Xo,7),2&e){let r;He(r=je())&&(i._portalOutlet=r.first)}},features:[Pe]}),n})(),KV=(()=>{class n extends qV{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:i}))}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_initializeWithAttachedContent(){super._initializeWithAttachedContent(),this._config.delayFocusTrap||this._trapFocus()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,i){1&e&&Ya("@dialogContainer.start",function(s){return i._onAnimationStart(s)})("@dialogContainer.done",function(s){return i._onAnimationDone(s)}),2&e&&(Gs("id",i._id),_t("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),Xa("@dialogContainer",i._state))},features:[Pe],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&ze(0,WV,0,0,"ng-template",0)},directives:[Xo],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[YV.dialogContainer]}}),n})(),XV=0;class ou{constructor(t,e,i="mat-dialog-"+XV++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new U,this._afterClosed=new U,this._beforeClosed=new U,this._state=0,e._id=i,e._animationStateChanged.pipe($t(r=>"opened"===r.state),ln(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe($t(r=>"closed"===r.state),ln(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe($t(r=>27===r.keyCode&&!this.disableClose&&!ai(r))).subscribe(r=>{r.preventDefault(),Dv(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Dv(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe($t(e=>"closing"===e.state),ln(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Dv(n,t,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=t),n.close(e)}const QV=new Ie("MatDialogData"),ZV=new Ie("mat-dialog-default-options"),cE=new Ie("mat-dialog-scroll-strategy"),eH={provide:cE,deps:[Ui],useFactory:function JV(n){return()=>n.scrollStrategies.block()}};let tH=(()=>{class n{constructor(e,i,r,s,o,a,d,C,k,N){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=s,this._overlayContainer=o,this._dialogRefConstructor=d,this._dialogContainerType=C,this._dialogDataToken=k,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new U,this._afterOpenedAtThisLevel=new U,this._ariaHiddenElements=new Map,this.afterAllClosed=Yo(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(jn(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){i=function nH(n,t){return Object.assign(Object.assign({},t),n)}(i,this._defaultOptions||new Cv),i.id&&this.getDialogById(i.id);const r=this._createOverlay(i),s=this._attachDialogContainer(r,i),o=this._attachDialogContent(e,s,r,i);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(()=>this._removeOpenDialog(o)),this.afterOpened.next(o),s._initializeWithAttachedContent(),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const i=this._getOverlayConfig(e);return this._overlay.create(i)}_getOverlayConfig(e){const i=new Qo({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachDialogContainer(e,i){const s=Dn.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Cv,useValue:i}]}),o=new qo(this._dialogContainerType,i.viewContainerRef,s,i.componentFactoryResolver);return e.attach(o).instance}_attachDialogContent(e,i,r,s){const o=new this._dialogRefConstructor(r,i,s.id);if(e instanceof kn)i.attachTemplatePortal(new Ko(e,null,{$implicit:s.data,dialogRef:o}));else{const a=this._createInjector(s,o,i),d=i.attachComponentPortal(new qo(e,s.viewContainerRef,a,s.componentFactoryResolver));o.componentInstance=d.instance}return o.updateSize(s.width,s.height).updatePosition(s.position),o}_createInjector(e,i,r){const s=e&&e.viewContainerRef&&e.viewContainerRef.injector,o=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:i}];return e.direction&&(!s||!s.get(fi,null,xt.Optional))&&o.push({provide:fi,useValue:{value:e.direction,change:Qe()}}),Dn.create({parent:s||this._injector,providers:o})}_removeOpenDialog(e){const i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,s)=>{r?s.setAttribute("aria-hidden",r):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let s=i[r];s!==e&&"SCRIPT"!==s.nodeName&&"STYLE"!==s.nodeName&&!s.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){Wa()},n.\u0275dir=De({type:n}),n})(),au=(()=>{class n extends tH{constructor(e,i,r,s,o,a,d,C){super(e,i,s,a,d,o,ou,KV,QV,C)}}return n.\u0275fac=function(e){return new(e||n)(ue(Ui),ue(Dn),ue(kc,8),ue(ZV,8),ue(cE),ue(n,12),ue(dv),ue(br,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),iH=0,uE=(()=>{class n{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=pE(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){Dv(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return n.\u0275fac=function(e){return new(e||n)(V(ou,8),V(nt),V(au))},n.\u0275dir=De({type:n,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,i){1&e&&Oe("click",function(s){return i._onButtonClick(s)}),2&e&&_t("aria-label",i.ariaLabel||null)("type",i.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[on]}),n})(),dE=(()=>{class n{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r,this.id="mat-dialog-title-"+iH++}ngOnInit(){this._dialogRef||(this._dialogRef=pE(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(V(ou,8),V(nt),V(au))},n.\u0275dir=De({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,i){2&e&&Gs("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),hE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),fE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n})();function pE(n,t){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?t.find(i=>i.id===e.id):null}let rH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[au,eH],imports:[[yl,nu,Gt],Gt]}),n})();const mE=new Ie("CdkAccordion");let sH=0,oH=(()=>{class n{constructor(e,i,r){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=r,this._openCloseAllSubscription=y.EMPTY,this.closed=new Le,this.opened=new Le,this.destroyed=new Le,this.expandedChange=new Le,this.id="cdk-accordion-child-"+sH++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((s,o)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===o&&this.id!==s&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=ht(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=ht(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(V(mE,12),V(an),V(ZC))},n.\u0275dir=De({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[lt([{provide:mE,useValue:void 0}])]}),n})(),aH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();const lH=["body"];function cH(n,t){}const uH=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],dH=["mat-expansion-panel-header","*","mat-action-row"];function hH(n,t){1&n&&yt(0,"span",2),2&n&&ge("@indicatorRotate",Ue()._getExpandedState())}const fH=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],pH=["mat-panel-title","mat-panel-description","*"],gE=new Ie("MAT_ACCORDION"),vE="225ms cubic-bezier(0.4,0.0,0.2,1)",_E={indicatorRotate:li("indicatorRotate",[fn("collapsed, void",ft({transform:"rotate(0deg)"})),fn("expanded",ft({transform:"rotate(180deg)"})),gn("expanded <=> collapsed, void => collapsed",wn(vE))]),bodyExpansion:li("bodyExpansion",[fn("collapsed, void",ft({height:"0px",visibility:"hidden"})),fn("expanded",ft({height:"*",visibility:"visible"})),gn("expanded <=> collapsed, void => collapsed",wn(vE))])};let mH=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(V(kn))},n.\u0275dir=De({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),gH=0;const yE=new Ie("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let bE=(()=>{class n extends oH{constructor(e,i,r,s,o,a,d){super(e,i,r),this._viewContainerRef=s,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new Le,this.afterCollapse=new Le,this._inputChanges=new U,this._headerId="mat-expansion-panel-header-"+gH++,this._bodyAnimationDone=new U,this.accordion=e,this._document=o,this._bodyAnimationDone.pipe(Vc((C,k)=>C.fromState===k.fromState&&C.toState===k.toState)).subscribe(C=>{"void"!==C.fromState&&("expanded"===C.toState?this.afterExpand.emit():"collapsed"===C.toState&&this.afterCollapse.emit())}),d&&(this.hideToggle=d.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=ht(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(jn(null),$t(()=>this.expanded&&!this._portal),ln(1)).subscribe(()=>{this._portal=new Ko(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(V(gE,12),V(an),V(ZC),V(On),V(Et),V(br,8),V(yE,8))},n.\u0275cmp=Ge({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,i,r){if(1&e&&Lt(r,mH,5),2&e){let s;He(s=je())&&(i._lazyContent=s.first)}},viewQuery:function(e,i){if(1&e&&jt(lH,5),2&e){let r;He(r=je())&&(i._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,i){2&e&&Nt("mat-expanded",i.expanded)("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[lt([{provide:gE,useValue:void 0}]),Pe,on],ngContentSelectors:dH,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,i){1&e&&(mn(uH),bt(0),oe(1,"div",0,1),Oe("@bodyExpansion.done",function(s){return i._bodyAnimationDone.next(s)}),oe(3,"div",2),bt(4,1),ze(5,cH,0,0,"ng-template",3),le(),bt(6,2),le()),2&e&&(he(1),ge("@bodyExpansion",i._getExpandedState())("id",i.id),_t("aria-labelledby",i._headerId),he(4),ge("cdkPortalOutlet",i._portal))},directives:[Xo],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}\n'],encapsulation:2,data:{animation:[_E.bodyExpansion]},changeDetection:0}),n})(),vH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),n})();class _H{}const yH=tv(_H);let bH=(()=>{class n extends yH{constructor(e,i,r,s,o,a,d){super(),this.panel=e,this._element=i,this._focusMonitor=r,this._changeDetectorRef=s,this._animationMode=a,this._parentChangeSubscription=y.EMPTY;const C=e.accordion?e.accordion._stateChanges.pipe($t(k=>!(!k.hideToggle&&!k.togglePosition))):Ys;this.tabIndex=parseInt(d||"")||0,this._parentChangeSubscription=Ae(e.opened,e.closed,C,e._inputChanges.pipe($t(k=>!!(k.hideToggle||k.disabled||k.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe($t(()=>e._containsFocus())).subscribe(()=>r.focusVia(i,"program")),o&&(this.expandedHeight=o.expandedHeight,this.collapsedHeight=o.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:ai(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(V(bE,1),V(nt),V(as),V(an),V(yE,8),V(br,8),dr("tabindex"))},n.\u0275cmp=Ge({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&Oe("click",function(){return i._toggle()})("keydown",function(s){return i._keydown(s)}),2&e&&(_t("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),Ai("height",i._getHeaderHeight()),Nt("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after","after"===i._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===i._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[Pe],ngContentSelectors:pH,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,i){1&e&&(mn(fH),oe(0,"span",0),bt(1),bt(2,1),bt(3,2),le(),ze(4,hH,1,1,"span",1)),2&e&&(he(4),ge("ngIf",i._showToggle()))},directives:[hi],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[_E.indicatorRotate]},changeDetection:0}),n})(),wH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),CH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Ri,Gt,aH,nu]]}),n})();function lo(n){return function(e){const i=new DH(n),r=e.lift(i);return i.caught=r}}class DH{constructor(t){this.selector=t}call(t,e){return e.subscribe(new MH(t,this.selector,this.caught))}}class MH extends Jt{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new ut(this);this.add(i);const r=kt(e,i);r!==i&&this.add(r)}}}function wE(n){return t=>t.lift(new EH(n))}class EH{constructor(t){this.callback=t}call(t,e){return e.subscribe(new SH(t,this.callback))}}class SH extends h{constructor(t,e){super(t),this.add(new y(e))}}const xH=["*"];let Xh;function lu(n){var t;return(null===(t=function kH(){if(void 0===Xh&&(Xh=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(Xh=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Xh}())||void 0===t?void 0:t.createHTML(n))||n}function CE(n){return Error(`Unable to find icon with the name "${n}"`)}function DE(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function ME(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class ta{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Qh=(()=>{class n{constructor(e,i,r,s){this._httpClient=e,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,s){return this._addSvgIconConfig(e,i,new ta(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,s){const o=this._sanitizer.sanitize(dn.HTML,r);if(!o)throw ME(r);const a=lu(o);return this._addSvgIconConfig(e,i,new ta("",a,s))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new ta(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const s=this._sanitizer.sanitize(dn.HTML,i);if(!s)throw ME(i);const o=lu(s);return this._addSvgIconSetConfig(e,new ta("",o,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(dn.RESOURCE_URL,e);if(!i)throw DE(e);const r=this._cachedIconsByUrl.get(i);return r?Qe(Zh(r)):this._loadSvgIconFromConfig(new ta(e,null)).pipe(ri(s=>this._cachedIconsByUrl.set(i,s)),L(s=>Zh(s)))}getNamedSvgIcon(e,i=""){const r=EE(i,e);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(e,o):Ro(CE(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Qe(Zh(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(L(i=>Zh(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?Qe(r):Zm(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(lo(a=>{const C=`Loading icon set URL: ${this._sanitizer.sanitize(dn.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(C)),Qe(null)})))).pipe(L(()=>{const o=this._extractIconWithNameFromAnySet(e,i);if(!o)throw CE(e);return o}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,e,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(ri(i=>e.svgText=i),L(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Qe(null):this._fetchIcon(e).pipe(ri(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const s=e.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(lu(""));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(lu("")),r=e.attributes;for(let s=0;slu(k)),wE(()=>this._inProgressUrlFetches.delete(a)),Ni());return this._inProgressUrlFetches.set(a,C),C}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(EE(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}}),SE=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],PH=SE.map(n=>`[${n}]`).join(", "),NH=/^url\(['"]?#(.*?)['"]?\)$/;let cu=(()=>{class n extends RH{constructor(e,i,r,s,o){super(e),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=y.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ht(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),i&&e.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(PH),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{const a=i[s],d=a.getAttribute(o),C=d?d.match(NH):null;if(C){let k=r.get(a);k||(k=[],r.set(a,k)),k.push({name:o,value:C[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(ln(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(Qh),dr("aria-hidden"),V(OH),V(Hs))},n.\u0275cmp=Ge({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(_t("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),Nt("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Pe],ngContentSelectors:xH,decls:1,vars:0,template:function(e,i){1&e&&(mn(),bt(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),LH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Gt],Gt]}),n})(),BH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Gt],Gt]}),n})();const Mv=["*"],VH=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],HH=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],kE=$o(oo(class{})),GH=oo(class{}),AE=new Ie("MatList"),TE=new Ie("MatNavList");let WH=(()=>{class n extends kE{constructor(){super(...arguments),this._stateChanges=new U}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[lt([{provide:TE,useExisting:n}]),Pe,on],ngContentSelectors:Mv,decls:1,vars:0,template:function(e,i){1&e&&(mn(),bt(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),n})(),Jh=(()=>{class n extends kE{constructor(e){super(),this._elementRef=e,this._stateChanges=new U,"action-list"===this._getListType()&&e.nativeElement.classList.add("mat-action-list")}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(V(nt))},n.\u0275cmp=Ge({type:n,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[lt([{provide:AE,useExisting:n}]),Pe,on],ngContentSelectors:Mv,decls:1,vars:0,template:function(e,i){1&e&&(mn(),bt(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),n})(),IE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),RE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),uu=(()=>{class n extends GH{constructor(e,i,r,s){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new U,this._disabled=!1,this._isInteractiveList=!!(r||s&&"action-list"===s._getListType()),this._list=r||s;const o=this._getHostElement();"button"===o.nodeName.toLowerCase()&&!o.hasAttribute("type")&&o.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Ut(this._destroyed)).subscribe(()=>{i.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=ht(e)}ngAfterContentInit(){!function MM(n,t,e="mat"){n.changes.pipe(jn(n)).subscribe(({length:i})=>{eu(t,`${e}-2-line`,!1),eu(t,`${e}-3-line`,!1),eu(t,`${e}-multi-line`,!1),2===i||3===i?eu(t,`${e}-${i}-line`,!0):i>3&&eu(t,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(an),V(TE,8),V(AE,8))},n.\u0275cmp=Ge({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,i,r){if(1&e&&(Lt(r,IE,5),Lt(r,RE,5),Lt(r,DM,5)),2&e){let s;He(s=je())&&(i._avatar=s.first),He(s=je())&&(i._icon=s.first),He(s=je())&&(i._lines=s)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,i){2&e&&Nt("mat-list-item-disabled",i.disabled)("mat-list-item-avatar",i._avatar||i._icon)("mat-list-item-with-avatar",i._avatar||i._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[Pe],ngContentSelectors:HH,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,i){1&e&&(mn(VH),oe(0,"span",0),yt(1,"span",1),bt(2),oe(3,"span",2),bt(4,1),le(),bt(5,2),le()),2&e&&(he(1),ge("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()))},directives:[_l],encapsulation:2,changeDetection:0}),n})(),ZH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[EM,zh,Gt,sv,Ri],EM,Gt,sv,BH]}),n})();const JH=["mat-menu-item",""];function ej(n,t){1&n&&($l(),oe(0,"svg",2),yt(1,"polygon",3),le())}const FE=["*"];function tj(n,t){if(1&n){const e=In();oe(0,"div",0),Oe("keydown",function(r){return Qt(e),Ue()._handleKeydown(r)})("click",function(){return Qt(e),Ue().closed.emit("click")})("@transformMenu.start",function(r){return Qt(e),Ue()._onAnimationStart(r)})("@transformMenu.done",function(r){return Qt(e),Ue()._onAnimationDone(r)}),oe(1,"div",1),bt(2),le()()}if(2&n){const e=Ue();ge("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),_t("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const ef={transformMenu:li("transformMenu",[fn("void",ft({opacity:0,transform:"scale(0.8)"})),gn("void => enter",wn("120ms cubic-bezier(0, 0, 0.2, 1)",ft({opacity:1,transform:"scale(1)"}))),gn("* => void",wn("100ms 25ms linear",ft({opacity:0})))]),fadeInItems:li("fadeInItems",[fn("showing",ft({opacity:1})),gn("void => *",[ft({opacity:0}),wn("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},nj=new Ie("MatMenuContent"),Ev=new Ie("MAT_MENU_PANEL"),ij=oo($o(class{}));let tf=(()=>{class n extends ij{constructor(e,i,r,s,o){var a;super(),this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=s,this._changeDetectorRef=o,this.role="menuitem",this._hovered=new U,this._focused=new U,this._highlighted=!1,this._triggersSubmenu=!1,null===(a=null==s?void 0:s.addItem)||void 0===a||a.call(s,this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const i=this._elementRef.nativeElement.cloneNode(!0),r=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class n{constructor(e,i,r,s){this._elementRef=e,this._ngZone=i,this._defaultOptions=r,this._changeDetectorRef=s,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new xo,this._tabSubscription=y.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new U,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Le,this.close=this.closed,this.panelId="mat-menu-panel-"+sj++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=ht(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ht(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new E3(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(jn(this._directDescendantItems),Xn(e=>Ae(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var i;const r=this._keyManager;if("enter"===this._panelAnimationState&&(null===(i=r.activeItem)||void 0===i?void 0:i._hasFocus())){const s=e.toArray(),o=Math.max(0,Math.min(s.length-1,r.activeItemIndex||0));s[o]&&!s[o].disabled?r.setActiveItem(o):r.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(jn(this._directDescendantItems),Xn(i=>Ae(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:ai(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe(ln(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,s=Object.keys(this._classList).find(o=>o.startsWith(this._elevationPrefix));(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){var r;const s=this._classList;s["mat-menu-before"]="before"===e,s["mat-menu-after"]="after"===e,s["mat-menu-above"]="above"===i,s["mat-menu-below"]="below"===i,null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(jn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(ct),V(PE),V(an))},n.\u0275dir=De({type:n,contentQueries:function(e,i,r){if(1&e&&(Lt(r,nj,5),Lt(r,tf,5),Lt(r,tf,4)),2&e){let s;He(s=je())&&(i.lazyContent=s.first),He(s=je())&&(i._allItems=s),He(s=je())&&(i.items=s)}},viewQuery:function(e,i){if(1&e&&jt(kn,5),2&e){let r;He(r=je())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),oj=(()=>{class n extends du{constructor(e,i,r,s){super(e,i,r,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(ct),V(PE),V(an))},n.\u0275cmp=Ge({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&_t("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[lt([{provide:Ev,useExisting:n}]),Pe],ngContentSelectors:FE,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,i){1&e&&(mn(),ze(0,tj,3,6,"ng-template"))},directives:[rl],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[ef.transformMenu,ef.fadeInItems]},changeDetection:0}),n})();const NE=new Ie("mat-menu-scroll-strategy"),lj={provide:NE,deps:[Ui],useFactory:function aj(n){return()=>n.scrollStrategies.reposition()}},BE=ll({passive:!0});let cj=(()=>{class n{constructor(e,i,r,s,o,a,d,C,k){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=d,this._focusMonitor=C,this._ngZone=k,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=y.EMPTY,this._hoverSubscription=y.EMPTY,this._menuCloseSubscription=y.EMPTY,this._handleTouchStart=N=>{xg(N)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Le,this.onMenuOpen=this.menuOpened,this.menuClosed=new Le,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=o instanceof du?o:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,BE),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,BE),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),i=e.getConfig(),r=i.positionStrategy;this._setPosition(r),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof du&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(Ut(this.menu.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof du?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe($t(r=>"void"===r.toState),ln(1),Ut(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,i=this.menu.parentMenu;for(;i;)e++,i=i.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Qo({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(i=>{const r="start"===i.connectionPair.overlayX?"after":"before",s="top"===i.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(r,s)):this.menu.setPositionClasses(r,s)})}_setPosition(e){let[i,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[s,o]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,d]=[s,o],[C,k]=[i,r],N=0;this.triggersSubmenu()?(k=i="before"===this.menu.xPosition?"start":"end",r=C="end"===i?"start":"end",N="bottom"===s?8:-8):this.menu.overlapTrigger||(a="top"===s?"bottom":"top",d="top"===o?"bottom":"top"),e.withPositions([{originX:i,originY:a,overlayX:C,overlayY:s,offsetY:N},{originX:r,originY:a,overlayX:k,overlayY:s,offsetY:N},{originX:i,originY:d,overlayX:C,overlayY:o,offsetY:-N},{originX:r,originY:d,overlayX:k,overlayY:o,offsetY:-N}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Ae(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Qe(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe($t(o=>o!==this._menuItemInstance),$t(()=>this._menuOpen)):Qe(),i)}_handleMousedown(e){Sg(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe($t(e=>e===this._menuItemInstance&&!e.disabled),Yh(0,Hm)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof du&&this.menu._isAnimating?this.menu._animationDone.pipe(ln(1),Yh(0,Hm),Ut(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Ko(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(V(Ui),V(nt),V(On),V(NE),V(Ev,8),V(tf,10),V(fi,8),V(as),V(ct))},n.\u0275dir=De({type:n,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(e,i){1&e&&Oe("click",function(s){return i._handleClick(s)})("mousedown",function(s){return i._handleMousedown(s)})("keydown",function(s){return i._handleKeydown(s)}),2&e&&_t("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),uj=(()=>{class n extends cj{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Pe]}),n})(),dj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[lj],imports:[[Ri,Gt,zh,yl],Xs,Gt]}),n})();const hj=["primaryValueBar"],fj=Go(class{constructor(n){this._elementRef=n}},"primary"),pj=new Ie("mat-progress-bar-location",{providedIn:"root",factory:function mj(){const n=ec(Et),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),gj=new Ie("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let vj=0,VE=(()=>{class n extends fj{constructor(e,i,r,s,o,a){super(e),this._ngZone=i,this._animationMode=r,this._changeDetectorRef=a,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new Le,this._animationEndSubscription=y.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+vj++;const d=s?s.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${d}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===r,o&&(o.color&&(this.color=this.defaultColor=o.color),this.mode=o.mode||this.mode)}get value(){return this._value}set value(e){var i;this._value=HE(gr(e)||0),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(e){var i;this._bufferValue=HE(e||0),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=this._primaryValueBar.nativeElement;this._animationEndSubscription=Hr(e,"transitionend").pipe($t(i=>i.target===e)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(ct),V(br,8),V(pj,8),V(gj,8),V(an))},n.\u0275cmp=Ge({type:n,selectors:[["mat-progress-bar"]],viewQuery:function(e,i){if(1&e&&jt(hj,5),2&e){let r;He(r=je())&&(i._primaryValueBar=r.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(e,i){2&e&&(_t("aria-valuenow","indeterminate"===i.mode||"query"===i.mode?null:i.value)("mode",i.mode),Nt("_mat-animation-noopable",i._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[Pe],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(e,i){1&e&&(oe(0,"div",0),$l(),oe(1,"svg",1)(2,"defs")(3,"pattern",2),yt(4,"circle",3),le()(),yt(5,"rect",4),le(),d0(),yt(6,"div",5)(7,"div",6,7)(9,"div",8),le()),2&e&&(he(3),ge("id",i.progressbarId),he(2),_t("fill",i._rectangleFillValue),he(1),ge("ngStyle",i._bufferTransform()),he(1),ge("ngStyle",i._primaryTransform()))},directives:[Em],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),n})();function HE(n,t=0,e=100){return Math.max(t,Math.min(e,n))}let _j=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Ri,Gt],Gt]}),n})();const yj=["trigger"],bj=["panel"];function wj(n,t){if(1&n&&(oe(0,"span",8),we(1),le()),2&n){const e=Ue();he(1),xn(e.placeholder)}}function Cj(n,t){if(1&n&&(oe(0,"span",12),we(1),le()),2&n){const e=Ue(2);he(1),xn(e.triggerValue)}}function Dj(n,t){1&n&&bt(0,0,["*ngSwitchCase","true"])}function Mj(n,t){1&n&&(oe(0,"span",9),ze(1,Cj,2,1,"span",10),ze(2,Dj,1,0,"ng-content",11),le()),2&n&&(ge("ngSwitch",!!Ue().customTrigger),he(2),ge("ngSwitchCase",!0))}function Ej(n,t){if(1&n){const e=In();oe(0,"div",13)(1,"div",14,15),Oe("@transformPanel.done",function(r){return Qt(e),Ue()._panelDoneAnimatingStream.next(r.toState)})("keydown",function(r){return Qt(e),Ue()._handleKeydown(r)}),bt(3,1),le()()}if(2&n){const e=Ue();ge("@transformPanelWrap",void 0),he(1),aw("mat-select-panel ",e._getPanelTheme(),""),Ai("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),ge("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),_t("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const Sj=[[["mat-select-trigger"]],"*"],xj=["mat-select-trigger","*"],jE={transformPanelWrap:li("transformPanelWrap",[gn("* => void",Ch("@transformPanel",[wh()],{optional:!0}))]),transformPanel:li("transformPanel",[fn("void",ft({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),fn("showing",ft({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),fn("showing-multiple",ft({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),gn("void => *",wn("120ms cubic-bezier(0, 0, 0.2, 1)")),gn("* => void",wn("100ms 25ms linear",ft({opacity:0})))])};let zE=0;const $E=new Ie("mat-select-scroll-strategy"),Ij=new Ie("MAT_SELECT_CONFIG"),Rj={provide:$E,deps:[Ui],useFactory:function Tj(n){return()=>n.scrollStrategies.reposition()}};class Oj{constructor(t,e){this.source=t,this.value=e}}const Fj=oo(tv($o(CM(class{constructor(n,t,e,i,r){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r}})))),Pj=new Ie("MatSelectTrigger");let Nj=(()=>{class n extends Fj{constructor(e,i,r,s,o,a,d,C,k,N,G,X,re,de){var ve,Me,pe;super(o,s,d,C,N),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=a,this._parentFormField=k,this._liveAnnouncer=re,this._defaultOptions=de,this._panelOpen=!1,this._compareWith=(Ne,it)=>Ne===it,this._uid="mat-select-"+zE++,this._triggerAriaLabelledBy=null,this._destroy=new U,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+zE++,this._panelDoneAnimatingStream=new U,this._overlayPanelClass=(null===(ve=this._defaultOptions)||void 0===ve?void 0:ve.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(pe=null===(Me=this._defaultOptions)||void 0===Me?void 0:Me.disableOptionCentering)&&void 0!==pe&&pe,this.ariaLabel="",this.optionSelectionChanges=Yo(()=>{const Ne=this.options;return Ne?Ne.changes.pipe(jn(Ne),Xn(()=>Ae(...Ne.map(it=>it.onSelectionChange)))):this._ngZone.onStable.pipe(ln(1),Xn(()=>this.optionSelectionChanges))}),this.openedChange=new Le,this._openedStream=this.openedChange.pipe($t(Ne=>Ne),L(()=>{})),this._closedStream=this.openedChange.pipe($t(Ne=>!Ne),L(()=>{})),this.selectionChange=new Le,this.valueChange=new Le,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==de?void 0:de.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=de.typeaheadDebounceInterval),this._scrollStrategyFactory=X,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(G)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,i,r,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(Jm.required))&&void 0!==s&&s}set required(e){this._required=ht(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=ht(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=ht(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=gr(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Gm(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Vc(),Ut(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Ut(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(jn(null),Ut(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,s=13===i||32===i,o=this._keyManager;if(!o.isTyping()&&s&&!ai(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;o.onKeydown(e);const d=this.selected;d&&a!==d&&this._liveAnnouncer.announce(d.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,s=40===r||38===r,o=i.isTyping();if(s&&e.altKey)e.preventDefault(),this.close();else if(o||13!==r&&32!==r||!i.activeItem||ai(e))if(!o&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(d=>!d.disabled&&!d.selected);this.options.forEach(d=>{d.disabled||(a?d.select():d.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&s&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(ln(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch(s){return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new M3(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ut(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Ut(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=Ae(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ut(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Ae(...this.options.map(i=>i._stateChanges)).pipe(Ut(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(V(Po),V(an),V(ct),V(iv),V(nt),V(fi,8),V(Es,8),V(qc,8),V(iu,8),V(os,10),dr("tabindex"),V($E),V(kg),V(Ij,8))},n.\u0275dir=De({type:n,viewQuery:function(e,i){if(1&e&&(jt(yj,5),jt(bj,5),jt(UM,5)),2&e){let r;He(r=je())&&(i.trigger=r.first),He(r=je())&&(i.panel=r.first),He(r=je())&&(i._overlayDir=r.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Pe,on]}),n})(),GE=(()=>{class n extends Nj{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,r){const s=this._getItemHeight();return Math.min(Math.max(0,s*e-i+s/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Ut(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(ln(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=lv(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:IM((e+i)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new Oj(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),r=this._isRtl(),s=this.multiple?56:32;let o;if(this.multiple)o=40;else if(this.disableOptionCentering)o=16;else{let C=this._selectionModel.selected[0]||this.options.first;o=C&&C.group?32:16}r||(o*=-1);const a=0-(e.left+o-(r?s:0)),d=e.right+o-i.width+(r?0:s);a>0?o+=a+8:d>0&&(o-=d+8),this._overlayDir.offsetX=Math.round(o),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,r){const s=this._getItemHeight(),o=(s-this._triggerRect.height)/2,a=Math.floor(256/s);let d;return this.disableOptionCentering?0:(d=0===this._scrollTop?e*s:this._scrollTop===r?(e-(this._getItemCount()-a))*s+(s-(this._getItemCount()*s-256)%s):i-s/2,Math.round(-1*d-o))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),s=this._triggerRect.top-8,o=r.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),C=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;C>o?this._adjustPanelUp(C,o):a>s?this._adjustPanelDown(a,s,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const r=Math.round(e-i);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,r){const s=Math.round(e-i);if(this._scrollTop+=s,this._offsetY+=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),r=Math.min(i*e,256),o=i*e-r;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=lv(a,this.options,this.optionGroups);const d=r/2;this._scrollTop=this._calculateOverlayScroll(a,d,o),this._offsetY=this._calculateOverlayOffsetY(a,d,o),this._checkOverlayWithinViewport(o)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(Lt(r,Pj,5),Lt(r,tu,5),Lt(r,av,5)),2&e){let s;He(s=je())&&(i.customTrigger=s.first),He(s=je())&&(i.options=s),He(s=je())&&(i.optionGroups=s)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,i){1&e&&Oe("keydown",function(s){return i._handleKeydown(s)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(_t("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-describedby",i._ariaDescribedby||null)("aria-activedescendant",i._getAriaActiveDescendant()),Nt("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[lt([{provide:Gh,useExisting:n},{provide:ov,useExisting:n}]),Pe],ngContentSelectors:xj,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(mn(Sj),oe(0,"div",0,1),Oe("click",function(){return i.toggle()}),oe(3,"div",2),ze(4,wj,2,1,"span",3),ze(5,Mj,3,2,"span",4),le(),oe(6,"div",5),yt(7,"div",6),le()(),ze(8,Ej,4,14,"ng-template",7),Oe("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=Us(1);_t("aria-owns",i.panelOpen?i.id+"-panel":null),he(3),ge("ngSwitch",i.empty),_t("id",i._valueId),he(1),ge("ngSwitchCase",!0),he(1),ge("ngSwitchCase",!1),he(3),ge("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},directives:[zM,sl,Ud,pC,UM,rl],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[jE.transformPanelWrap,jE.transformPanel]},changeDetection:0}),n})(),Lj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[Rj],imports:[[Ri,yl,Uh,Gt],Xs,Wh,Uh,Gt]}),n})();function WE(n){return t=>t.lift(new Bj(n))}class Bj{constructor(t){this.value=t}call(t,e){return e.subscribe(new Vj(t,this.value))}}class Vj extends h{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}const rf=["*"],Hj=["content"];function jj(n,t){if(1&n){const e=In();oe(0,"div",2),Oe("click",function(){return Qt(e),Ue()._onBackdropClicked()}),le()}2&n&&Nt("mat-drawer-shown",Ue()._isShowingBackdrop())}function zj(n,t){1&n&&(oe(0,"mat-drawer-content"),bt(1,2),le())}const Uj=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],$j=["mat-drawer","mat-drawer-content","*"];function Gj(n,t){if(1&n){const e=In();oe(0,"div",2),Oe("click",function(){return Qt(e),Ue()._onBackdropClicked()}),le()}2&n&&Nt("mat-drawer-shown",Ue()._isShowingBackdrop())}function Wj(n,t){1&n&&(oe(0,"mat-sidenav-content"),bt(1,2),le())}const Yj=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],qj=["mat-sidenav","mat-sidenav-content","*"],YE={transformDrawer:li("transform",[fn("open, open-instant",ft({transform:"none",visibility:"visible"})),fn("void",ft({"box-shadow":"none",visibility:"hidden"})),gn("void => open-instant",wn("0ms")),gn("void <=> open, open-instant => void",wn("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Xj=new Ie("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Qj(){return!1}}),Sv=new Ie("MAT_DRAWER_CONTAINER");let sf=(()=>{class n extends Ks{constructor(e,i,r,s,o){super(r,s,o),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(V(an),V(Ot(()=>KE)),V(nt),V(ul),V(ct))},n.\u0275cmp=Ge({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,i){2&e&&Ai("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[lt([{provide:Ks,useExisting:n}]),Pe],ngContentSelectors:rf,decls:1,vars:0,template:function(e,i){1&e&&(mn(),bt(0))},encapsulation:2,changeDetection:0}),n})(),qE=(()=>{class n{constructor(e,i,r,s,o,a,d,C){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=r,this._platform=s,this._ngZone=o,this._interactivityChecker=a,this._doc=d,this._container=C,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new U,this._animationEnd=new U,this._animationState="void",this.openedChange=new Le(!0),this._openedStream=this.openedChange.pipe($t(k=>k),L(()=>{})),this.openedStart=this._animationStarted.pipe($t(k=>k.fromState!==k.toState&&0===k.toState.indexOf("open")),WE(void 0)),this._closedStream=this.openedChange.pipe($t(k=>!k),L(()=>{})),this.closedStart=this._animationStarted.pipe($t(k=>k.fromState!==k.toState&&"void"===k.toState),WE(void 0)),this._destroyed=new U,this.onPositionChanged=new Le,this._modeChanged=new U,this.openedChange.subscribe(k=>{k?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Hr(this._elementRef.nativeElement,"keydown").pipe($t(k=>27===k.keyCode&&!this.disableClose&&!ai(k)),Ut(this._destroyed)).subscribe(k=>this._ngZone.run(()=>{this.close(),k.stopPropagation(),k.preventDefault()}))}),this._animationEnd.pipe(Vc((k,N)=>k.fromState===N.fromState&&k.toState===N.toState)).subscribe(k=>{const{fromState:N,toState:G}=k;(0===G.indexOf("open")&&"void"===N||"void"===G&&0===N.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=ht(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=ht(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(ht(e))}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{!i&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,i){e&&i&&(this._openedVia=i);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(s=>{this.openedChange.pipe(ln(1)).subscribe(o=>s(o?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const i=this._elementRef.nativeElement,r=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(Eg),V(as),V($n),V(ct),V(Mg),V(Et,8),V(Sv,8))},n.\u0275cmp=Ge({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,i){if(1&e&&jt(Hj,5),2&e){let r;He(r=je())&&(i._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,i){1&e&&Ya("@transform.start",function(s){return i._animationStarted.next(s)})("@transform.done",function(s){return i._animationEnd.next(s)}),2&e&&(_t("align",null),Xa("@transform",i._animationState),Nt("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:rf,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(mn(),oe(0,"div",0,1),bt(2),le())},directives:[Ks],encapsulation:2,data:{animation:[YE.transformDrawer]},changeDetection:0}),n})(),KE=(()=>{class n{constructor(e,i,r,s,o,a=!1,d){this._dir=e,this._element=i,this._ngZone=r,this._changeDetectorRef=s,this._animationMode=d,this._drawers=new xo,this.backdropClick=new Le,this._destroyed=new U,this._doCheckSubject=new U,this._contentMargins={left:null,right:null},this._contentMarginChanges=new U,e&&e.change.pipe(Ut(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),o.change().pipe(Ut(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=a}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=ht(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:ht(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(jn(this._allDrawers),Ut(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(jn(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Pc(10),Ut(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,i-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();i+=r,e-=r}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe($t(i=>i.fromState!==i.toState),Ut(this._drawers.changes)).subscribe(i=>{"open-instant"!==i.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Ut(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(Ut(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(ln(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Ut(Ae(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return n.\u0275fac=function(e){return new(e||n)(V(fi,8),V(nt),V(ct),V(an),V(Po),V(Xj),V(br,8))},n.\u0275cmp=Ge({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,i,r){if(1&e&&(Lt(r,sf,5),Lt(r,qE,5)),2&e){let s;He(s=je())&&(i._content=s.first),He(s=je())&&(i._allDrawers=s)}},viewQuery:function(e,i){if(1&e&&jt(sf,5),2&e){let r;He(r=je())&&(i._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,i){2&e&&Nt("mat-drawer-container-explicit-backdrop",i._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[lt([{provide:Sv,useExisting:n}])],ngContentSelectors:$j,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(mn(Uj),ze(0,jj,1,2,"div",0),bt(1),bt(2,1),ze(3,zj,2,0,"mat-drawer-content",1)),2&e&&(ge("ngIf",i.hasBackdrop),he(3),ge("ngIf",!i._content))},directives:[sf,hi],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),n})(),xv=(()=>{class n extends sf{constructor(e,i,r,s,o){super(e,i,r,s,o)}}return n.\u0275fac=function(e){return new(e||n)(V(an),V(Ot(()=>QE)),V(nt),V(ul),V(ct))},n.\u0275cmp=Ge({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,i){2&e&&Ai("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[lt([{provide:Ks,useExisting:n}]),Pe],ngContentSelectors:rf,decls:1,vars:0,template:function(e,i){1&e&&(mn(),bt(0))},encapsulation:2,changeDetection:0}),n})(),XE=(()=>{class n extends qE{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=ht(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=gr(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=gr(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,i){2&e&&(_t("align",null),Ai("top",i.fixedInViewport?i.fixedTopGap:null,"px")("bottom",i.fixedInViewport?i.fixedBottomGap:null,"px"),Nt("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened)("mat-sidenav-fixed",i.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Pe],ngContentSelectors:rf,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(mn(),oe(0,"div",0,1),bt(2),le())},directives:[Ks],encapsulation:2,data:{animation:[YE.transformDrawer]},changeDetection:0}),n})(),QE=(()=>{class n extends KE{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,i,r){if(1&e&&(Lt(r,xv,5),Lt(r,XE,5)),2&e){let s;He(s=je())&&(i._content=s.first),He(s=je())&&(i._allDrawers=s)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,i){2&e&&Nt("mat-drawer-container-explicit-backdrop",i._backdropOverride)},exportAs:["matSidenavContainer"],features:[lt([{provide:Sv,useExisting:n}]),Pe],ngContentSelectors:qj,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(mn(Yj),ze(0,Gj,1,2,"div",0),bt(1),bt(2,1),ze(3,Wj,2,0,"mat-sidenav-content",1)),2&e&&(ge("ngIf",i.hasBackdrop),he(3),ge("ngIf",!i._content))},directives:[xv,hi],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),n})(),Zj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Ri,Gt,Xs],Xs,Gt]}),n})();const Jj=["sliderWrapper"],wr=ll({passive:!1}),rz={provide:ji,useExisting:Ot(()=>ZE),multi:!0};class sz{}const oz=tv(Go($o(class{constructor(n){this._elementRef=n}}),"accent"));let ZE=(()=>{class n extends oz{constructor(e,i,r,s,o,a,d,C){super(e),this._focusMonitor=i,this._changeDetectorRef=r,this._dir=s,this._ngZone=a,this._animationMode=C,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new Le,this.input=new Le,this.valueChange=new Le,this.onTouched=()=>{},this._percent=0,this._isSliding=null,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=y.EMPTY,this._pointerDown=k=>{this.disabled||this._isSliding||!fu(k)&&0!==k.button||this._ngZone.run(()=>{this._touchId=fu(k)?function az(n,t){for(let e=0;e{if("pointer"===this._isSliding){const N=eS(k,this._touchId);if(N){k.preventDefault();const G=this.value;this._lastPointerEvent=k,this._updateValueFromPosition(N),G!=this.value&&this._emitInputEvent()}}},this._pointerUp=k=>{"pointer"===this._isSliding&&(!fu(k)||"number"!=typeof this._touchId||kv(k.changedTouches,this._touchId))&&(k.preventDefault(),this._removeGlobalEvents(),this._isSliding=null,this._touchId=void 0,this._valueOnSlideStart!=this.value&&!this.disabled&&this._emitChangeEvent(),this._valueOnSlideStart=this._lastPointerEvent=null)},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=d,this.tabIndex=parseInt(o)||0,a.runOutsideAngular(()=>{const k=e.nativeElement;k.addEventListener("mousedown",this._pointerDown,wr),k.addEventListener("touchstart",this._pointerDown,wr)})}get invert(){return this._invert}set invert(e){this._invert=ht(e)}get max(){return this._max}set max(e){this._max=gr(e,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(e){this._min=gr(e,this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(e){this._step=gr(e,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(e){this._thumbLabel=ht(e)}get tickInterval(){return this._tickInterval}set tickInterval(e){this._tickInterval="auto"===e?"auto":"number"==typeof e||"string"==typeof e?gr(e,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(e){if(e!==this._value){let i=gr(e,0);this._roundToDecimal&&i!==this.min&&i!==this.max&&(i=parseFloat(i.toFixed(this._roundToDecimal))),this._value=i,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(e){this._vertical=ht(e)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(e){this._focusHostElement(e)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const i=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${i})`}}_getTrackFillStyles(){const e=this.percent,r=this.vertical?`1, ${e}, 1`:`${e}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${r})`,display:0===e?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let e=100*this._tickIntervalPercent,a={backgroundSize:this.vertical?`2px ${e}%`:`${e}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${e/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const d=this._shouldInvertAxis();let C;C=this.vertical?d?"Bottom":"Top":d?"Right":"Left",a[`padding${C}`]=`${this._getThumbGap()}px`}return a}_getThumbContainerStyles(){const e=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?e:!e)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const e=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?e:!e}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{this._isActive=!!e&&"keyboard"!==e,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mousedown",this._pointerDown,wr),e.removeEventListener("touchstart",this._pointerDown,wr),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(e){if(this.disabled||ai(e)||this._isSliding&&"keyboard"!==this._isSliding)return;const i=this.value;switch(e.keyCode){case 33:this._increment(10);break;case 34:this._increment(-10);break;case 35:this.value=this.max;break;case 36:this.value=this.min;break;case 37:this._increment("rtl"==this._getDirection()?1:-1);break;case 38:this._increment(1);break;case 39:this._increment("rtl"==this._getDirection()?-1:1);break;case 40:this._increment(-1);break;default:return}i!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding="keyboard",e.preventDefault()}_onKeyup(){"keyboard"===this._isSliding&&(this._isSliding=null)}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(e){const i=this._document,r=fu(e),o=r?"touchend":"mouseup";i.addEventListener(r?"touchmove":"mousemove",this._pointerMove,wr),i.addEventListener(o,this._pointerUp,wr),r&&i.addEventListener("touchcancel",this._pointerUp,wr);const a=this._getWindow();void 0!==a&&a&&a.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const e=this._document;e.removeEventListener("mousemove",this._pointerMove,wr),e.removeEventListener("mouseup",this._pointerUp,wr),e.removeEventListener("touchmove",this._pointerMove,wr),e.removeEventListener("touchend",this._pointerUp,wr),e.removeEventListener("touchcancel",this._pointerUp,wr);const i=this._getWindow();void 0!==i&&i&&i.removeEventListener("blur",this._windowBlur)}_increment(e){const i=this._clamp(this.value||0,this.min,this.max);this.value=this._clamp(i+this.step*e,this.min,this.max)}_updateValueFromPosition(e){if(!this._sliderDimensions)return;let o=this._clamp(((this.vertical?e.y:e.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(o=1-o),0===o)this.value=this.min;else if(1===o)this.value=this.max;else{const a=this._calculateValue(o),d=Math.round((a-this.min)/this.step)*this.step+this.min;this.value=this._clamp(d,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(!this.tickInterval||!this._sliderDimensions)return;let e;if("auto"==this.tickInterval){let i=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width;e=Math.ceil(30/(i*this.step/(this.max-this.min)))*this.step/i}else e=this.tickInterval*this.step/(this.max-this.min);this._tickIntervalPercent=JE(e)?e:0}_createChangeEvent(e=this.value){let i=new sz;return i.source=this,i.value=e,i}_calculatePercentage(e){const i=((e||0)-this.min)/(this.max-this.min);return JE(i)?i:0}_calculateValue(e){return this.min+e*(this.max-this.min)}_clamp(e,i=0,r=1){return Math.max(i,Math.min(e,r))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(e){this._elementRef.nativeElement.focus(e)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(e){this.value=e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(as),V(an),V(fi,8),dr("tabindex"),V(ct),V(Et),V(br,8))},n.\u0275cmp=Ge({type:n,selectors:[["mat-slider"]],viewQuery:function(e,i){if(1&e&&jt(Jj,5),2&e){let r;He(r=je())&&(i._sliderWrapper=r.first)}},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:29,hostBindings:function(e,i){1&e&&Oe("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()})("keydown",function(s){return i._onKeydown(s)})("keyup",function(){return i._onKeyup()})("mouseenter",function(){return i._onMouseenter()})("selectstart",function(s){return s.preventDefault()}),2&e&&(Gs("tabIndex",i.tabIndex),_t("aria-disabled",i.disabled)("aria-valuemax",i.max)("aria-valuemin",i.min)("aria-valuenow",i.value)("aria-valuetext",null==i.valueText?i.displayValue:i.valueText)("aria-orientation",i.vertical?"vertical":"horizontal"),Nt("mat-slider-disabled",i.disabled)("mat-slider-has-ticks",i.tickInterval)("mat-slider-horizontal",!i.vertical)("mat-slider-axis-inverted",i._shouldInvertAxis())("mat-slider-invert-mouse-coords",i._shouldInvertMouseCoords())("mat-slider-sliding",i._isSliding)("mat-slider-thumb-label-showing",i.thumbLabel)("mat-slider-vertical",i.vertical)("mat-slider-min-value",i._isMinValue())("mat-slider-hide-last-tick",i.disabled||i._isMinValue()&&i._getThumbGap()&&i._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",value:"value",displayWith:"displayWith",valueText:"valueText",vertical:"vertical"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[lt([rz]),Pe],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(e,i){1&e&&(oe(0,"div",0,1)(2,"div",2),yt(3,"div",3)(4,"div",4),le(),oe(5,"div",5),yt(6,"div",6),le(),oe(7,"div",7),yt(8,"div",8)(9,"div",9),oe(10,"div",10)(11,"span",11),we(12),le()()()()),2&e&&(he(3),ge("ngStyle",i._getTrackBackgroundStyles()),he(1),ge("ngStyle",i._getTrackFillStyles()),he(1),ge("ngStyle",i._getTicksContainerStyles()),he(1),ge("ngStyle",i._getTicksStyles()),he(1),ge("ngStyle",i._getThumbContainerStyles()),he(5),xn(i.displayValue))},directives:[Em],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:grabbing}.mat-slider-wrapper{-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{-webkit-background-clip:content-box;background-clip:content-box;background-repeat:repeat;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\n'],encapsulation:2,changeDetection:0}),n})();function JE(n){return!isNaN(n)&&isFinite(n)}function fu(n){return"t"===n.type[0]}function eS(n,t){let e;return e=fu(n)?"number"==typeof t?kv(n.touches,t)||kv(n.changedTouches,t):n.touches[0]||n.changedTouches[0]:n,e?{x:e.clientX,y:e.clientY}:void 0}function kv(n,t){for(let e=0;e{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Ri,Gt],Gt]}),n})();function cz(n,t){if(1&n){const e=In();oe(0,"div",2)(1,"button",3),Oe("click",function(){return Qt(e),Ue().action()}),we(2),le()()}if(2&n){const e=Ue();he(2),xn(e.data.action)}}function uz(n,t){}const tS=new Ie("MatSnackBarData");class of{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const dz=Math.pow(2,31)-1;class Av{constructor(t,e){this._overlayRef=e,this._afterDismissed=new U,this._afterOpened=new U,this._onAction=new U,this._dismissedByAction=!1,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,dz))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let hz=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return n.\u0275fac=function(e){return new(e||n)(V(Av),V(tS))},n.\u0275cmp=Ge({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(oe(0,"span",0),we(1),le(),ze(2,cz,3,1,"div",1)),2&e&&(he(1),xn(i.data.message),he(1),ge("ngIf",i.hasAction))},directives:[Fi,hi],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),n})();const fz={snackBarState:li("state",[fn("void, hidden",ft({transform:"scale(0.8)",opacity:0})),fn("visible",ft({transform:"scale(1)",opacity:1})),gn("* => visible",wn("150ms cubic-bezier(0, 0, 0.2, 1)")),gn("* => void, * => hidden",wn("75ms cubic-bezier(0.4, 0.0, 1, 1)",ft({opacity:0})))])};let pz=(()=>{class n extends $h{constructor(e,i,r,s,o){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=s,this.snackBarConfig=o,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new U,this._onExit=new U,this._onEnter=new U,this._animationState="void",this.attachDomPortal=a=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(a)),this._live="assertive"!==o.politeness||o.announcementMessage?"off"===o.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const s=this._onEnter;this._ngZone.run(()=>{s.next(),s.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(ln(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_applySnackBarClasses(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),null==r||r.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return n.\u0275fac=function(e){return new(e||n)(V(ct),V(nt),V(an),V($n),V(of))},n.\u0275cmp=Ge({type:n,selectors:[["snack-bar-container"]],viewQuery:function(e,i){if(1&e&&jt(Xo,7),2&e){let r;He(r=je())&&(i._portalOutlet=r.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&Ya("@state.done",function(s){return i.onAnimationEnd(s)}),2&e&&Xa("@state",i._animationState)},features:[Pe],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(oe(0,"div",0),ze(1,uz,0,0,"ng-template",1),le(),yt(2,"div")),2&e&&(he(2),_t("aria-live",i._live)("role",i._role))},directives:[Xo],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[fz.snackBarState]}}),n})(),nS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[yl,nu,Ri,fv,Gt],Gt]}),n})();const iS=new Ie("mat-snack-bar-default-options",{providedIn:"root",factory:function mz(){return new of}});let gz=(()=>{class n{constructor(e,i,r,s,o,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=s,this._parentSnackBar=o,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const s=Object.assign(Object.assign({},this._defaultConfig),r);return s.data={message:e,action:i},s.announcementMessage===e&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const s=Dn.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:of,useValue:i}]}),o=new qo(this.snackBarContainerComponent,i.viewContainerRef,s),a=e.attach(o);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r=Object.assign(Object.assign(Object.assign({},new of),this._defaultConfig),i),s=this._createOverlay(r),o=this._attachSnackBarContainer(s,r),a=new Av(o,s);if(e instanceof kn){const d=new Ko(e,null,{$implicit:r.data,snackBarRef:a});a.instance=o.attachTemplatePortal(d)}else{const d=this._createInjector(r,a),C=new qo(e,void 0,d),k=o.attachComponentPortal(C);a.instance=k.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Ut(s.detachments())).subscribe(d=>{s.overlayElement.classList.toggle(this.handsetCssClass,d.matches)}),r.announcementMessage&&o._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new Qo;i.direction=e.direction;let r=this._overlay.position().global();const s="rtl"===e.direction,o="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!s||"end"===e.horizontalPosition&&s,a=!o&&"center"!==e.horizontalPosition;return o?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return Dn.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Av,useValue:i},{provide:tS,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(ue(Ui),ue(kg),ue(Dn),ue(Vm),ue(n,12),ue(iS))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),af=(()=>{class n extends gz{constructor(e,i,r,s,o,a){super(e,i,r,s,o,a),this.simpleSnackBarComponent=hz,this.snackBarContainerComponent=pz,this.handsetCssClass="mat-snack-bar-handset"}}return n.\u0275fac=function(e){return new(e||n)(ue(Ui),ue(kg),ue(Dn),ue(Vm),ue(n,12),ue(iS))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:nS}),n})();const vz=["mat-sort-header",""];function _z(n,t){if(1&n){const e=In();oe(0,"div",3),Oe("@arrowPosition.start",function(){return Qt(e),Ue()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Qt(e),Ue()._disableViewStateAnimation=!1}),yt(1,"div",4),oe(2,"div",5),yt(3,"div",6)(4,"div",7)(5,"div",8),le()()}if(2&n){const e=Ue();ge("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),he(2),ge("@indicator",e._getArrowDirectionState()),he(1),ge("@leftPointer",e._getArrowDirectionState()),he(1),ge("@rightPointer",e._getArrowDirectionState())}}const yz=["*"],co=EL.ENTERING+" "+ML.STANDARD_CURVE,Dl={indicator:li("indicator",[fn("active-asc, asc",ft({transform:"translateY(0px)"})),fn("active-desc, desc",ft({transform:"translateY(10px)"})),gn("active-asc <=> active-desc",wn(co))]),leftPointer:li("leftPointer",[fn("active-asc, asc",ft({transform:"rotate(-45deg)"})),fn("active-desc, desc",ft({transform:"rotate(45deg)"})),gn("active-asc <=> active-desc",wn(co))]),rightPointer:li("rightPointer",[fn("active-asc, asc",ft({transform:"rotate(45deg)"})),fn("active-desc, desc",ft({transform:"rotate(-45deg)"})),gn("active-asc <=> active-desc",wn(co))]),arrowOpacity:li("arrowOpacity",[fn("desc-to-active, asc-to-active, active",ft({opacity:1})),fn("desc-to-hint, asc-to-hint, hint",ft({opacity:.54})),fn("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",ft({opacity:0})),gn("* => asc, * => desc, * => active, * => hint, * => void",wn("0ms")),gn("* <=> *",wn(co))]),arrowPosition:li("arrowPosition",[gn("* => desc-to-hint, * => desc-to-active",wn(co,ml([ft({transform:"translateY(-25%)"}),ft({transform:"translateY(0)"})]))),gn("* => hint-to-desc, * => active-to-desc",wn(co,ml([ft({transform:"translateY(0)"}),ft({transform:"translateY(25%)"})]))),gn("* => asc-to-hint, * => asc-to-active",wn(co,ml([ft({transform:"translateY(25%)"}),ft({transform:"translateY(0)"})]))),gn("* => hint-to-asc, * => active-to-asc",wn(co,ml([ft({transform:"translateY(0)"}),ft({transform:"translateY(-25%)"})]))),fn("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",ft({transform:"translateY(0)"})),fn("hint-to-desc, active-to-desc, desc",ft({transform:"translateY(-25%)"})),fn("hint-to-asc, active-to-asc, asc",ft({transform:"translateY(25%)"}))]),allowChildren:li("allowChildren",[gn("* <=> *",[Ch("@*",wh(),{optional:!0})])])};let lf=(()=>{class n{constructor(){this.changes=new U}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const wz={provide:lf,deps:[[new xi,new Yr,lf]],useFactory:function bz(n){return n||new lf}},Cz=new Ie("MAT_SORT_DEFAULT_OPTIONS"),Dz=kL($o(class{}));let Tv=(()=>{class n extends Dz{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new U,this.start="asc",this._direction="",this.sortChange=new Le}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=ht(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var i,r,s;if(!e)return"";const o=null!==(r=null!==(i=null==e?void 0:e.disableClear)&&void 0!==i?i:this.disableClear)&&void 0!==r?r:!!(null===(s=this._defaultOptions)||void 0===s?void 0:s.disableClear);let a=function Mz(n,t){let e=["asc","desc"];return"desc"==n&&e.reverse(),t||e.push(""),e}(e.start||this.start,o),d=a.indexOf(this.direction)+1;return d>=a.length&&(d=0),a[d]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(V(Cz,8))},n.\u0275dir=De({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Pe,on]}),n})();const Ez=$o(class{});let Sz=(()=>{class n extends Ez{constructor(e,i,r,s,o,a,d){super(),this._intl=e,this._changeDetectorRef=i,this._sort=r,this._columnDef=s,this._focusMonitor=o,this._elementRef=a,this._ariaDescriber=d,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=ht(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=!!e;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var i,r;this._sortButton&&(null===(i=this._ariaDescriber)||void 0===i||i.removeDescription(this._sortButton,this._sortActionDescription),null===(r=this._ariaDescriber)||void 0===r||r.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=Ae(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(V(lf),V(an),V(Tv,8),V("MAT_SORT_HEADER_COLUMN_DEF",8),V(as),V(nt),V(t7,8))},n.\u0275cmp=Ge({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,i){1&e&&Oe("click",function(){return i._handleClick()})("keydown",function(s){return i._handleKeydown(s)})("mouseenter",function(){return i._setIndicatorHintVisible(!0)})("mouseleave",function(){return i._setIndicatorHintVisible(!1)}),2&e&&(_t("aria-sort",i._getAriaSortAttribute()),Nt("mat-sort-header-disabled",i._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[Pe],attrs:vz,ngContentSelectors:yz,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,i){1&e&&(mn(),oe(0,"div",0)(1,"div",1),bt(2),le(),ze(3,_z,6,6,"div",2),le()),2&e&&(Nt("mat-sort-header-sorted",i._isSorted())("mat-sort-header-position-before","before"==i.arrowPosition),_t("tabindex",i._isDisabled()?null:0)("role",i._isDisabled()?null:"button"),he(3),ge("ngIf",i._renderArrow()))},directives:[hi],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[Dl.indicator,Dl.leftPointer,Dl.rightPointer,Dl.arrowOpacity,Dl.arrowPosition,Dl.allowChildren]},changeDetection:0}),n})(),xz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[wz],imports:[[Ri,Gt]]}),n})();const kz=[[["caption"]],[["colgroup"],["col"]]],Az=["caption","colgroup, col"];function Iv(n){return class extends n{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=ht(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const Ml=new Ie("CDK_TABLE");let El=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(V(kn))},n.\u0275dir=De({type:n,selectors:[["","cdkCellDef",""]]}),n})(),Sl=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(V(kn))},n.\u0275dir=De({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),cf=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(V(kn))},n.\u0275dir=De({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class Oz{}const Fz=Iv(Oz);let ks=(()=>{class n extends Fz{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=ht(e),this._hasStickyChanged=i!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(V(Ml,8))},n.\u0275dir=De({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,r){if(1&e&&(Lt(r,El,5),Lt(r,Sl,5),Lt(r,cf,5)),2&e){let s;He(s=je())&&(i.cell=s.first),He(s=je())&&(i.headerCell=s.first),He(s=je())&&(i.footerCell=s.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[lt([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),Pe]}),n})();class Rv{constructor(t,e){e.nativeElement.classList.add(...t._columnCssClassName)}}let Ov=(()=>{class n extends Rv{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(V(ks),V(nt))},n.\u0275dir=De({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Pe]}),n})(),Fv=(()=>{class n extends Rv{constructor(e,i){var r;if(super(e,i),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const s=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===s||"treegrid"===s?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(V(ks),V(nt))},n.\u0275dir=De({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Pe]}),n})();class sS{constructor(){this.tasks=[],this.endTasks=[]}}const Pv=new Ie("_COALESCED_STYLE_SCHEDULER");let oS=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new U}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new sS,this._getScheduleObservable().pipe(Ut(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new sS;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Re(Promise.resolve(void 0)):this._ngZone.onStable.pipe(ln(1))}}return n.\u0275fac=function(e){return new(e||n)(ue(ct))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),Nv=(()=>{class n{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof pu?e.headerCell.template:this instanceof mu?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(V(kn),V(ns))},n.\u0275dir=De({type:n,features:[on]}),n})();class Pz extends Nv{}const Nz=Iv(Pz);let pu=(()=>{class n extends Nz{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(V(kn),V(ns),V(Ml,8))},n.\u0275dir=De({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[Pe,on]}),n})();class Lz extends Nv{}const Bz=Iv(Lz);let mu=(()=>{class n extends Bz{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(V(kn),V(ns),V(Ml,8))},n.\u0275dir=De({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[Pe,on]}),n})(),uf=(()=>{class n extends Nv{constructor(e,i,r){super(e,i),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(V(kn),V(ns),V(Ml,8))},n.\u0275dir=De({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[Pe]}),n})(),As=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(V(On))},n.\u0275dir=De({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),Lv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ge({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Jr(0,0)},directives:[As],encapsulation:2}),n})(),Vv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ge({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Jr(0,0)},directives:[As],encapsulation:2}),n})(),df=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(V(kn))},n.\u0275dir=De({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const aS=["top","bottom","left","right"];class Vz{constructor(t,e,i,r,s=!0,o=!0,a){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=s,this._needsPositionStickyOnElement=o,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const r of t)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let s=0;s{for(const r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(t,e,i,r=!0){if(!t.length||!this._isBrowser||!e.some(G=>G)&&!i.some(G=>G))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],o=s.children.length,a=this._getCellWidths(s,r),d=this._getStickyStartColumnPositions(a,e),C=this._getStickyEndColumnPositions(a,i),k=e.lastIndexOf(!0),N=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const G="rtl"===this.direction,X=G?"right":"left",re=G?"left":"right";for(const de of t)for(let ve=0;vee[ve]?de:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===N?[]:a.slice(N).map((de,ve)=>i[ve+N]?de:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const r="bottom"===i?t.slice().reverse():t,s="bottom"===i?e.slice().reverse():e,o=[],a=[],d=[];for(let k=0,N=0;k{var k,N;for(let G=0;G{e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const r of e)t.style[r]="",t.classList.remove(this._borderCellCss[r]);aS.some(r=>-1===e.indexOf(r)&&t.style[r])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,r){t.classList.add(this._stickCellCss),r&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const r of aS)t.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],r=t.children;for(let s=0;s0;s--)e[s]&&(i[s]=r,r+=t[s]);return i}}const Hv=new Ie("CDK_SPL");let hf=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(V(On),V(nt))},n.\u0275dir=De({type:n,selectors:[["","rowOutlet",""]]}),n})(),ff=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(V(On),V(nt))},n.\u0275dir=De({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),pf=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(V(On),V(nt))},n.\u0275dir=De({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),mf=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(V(On),V(nt))},n.\u0275dir=De({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),gf=(()=>{class n{constructor(e,i,r,s,o,a,d,C,k,N,G,X){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=o,this._platform=d,this._viewRepeater=C,this._coalescedStyleScheduler=k,this._viewportRuler=N,this._stickyPositioningListener=G,this._ngZone=X,this._onDestroy=new U,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new Le,this.viewChange=new oi({start:0,end:Number.MAX_VALUE}),s||this._elementRef.nativeElement.setAttribute("role","table"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=ht(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=ht(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Ut(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),nh(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,s,o)=>this._getEmbeddedViewArgs(r.item,o),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{i.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&ct.isInAngularZone()?this._ngZone.onStable.pipe(ln(1),Ut(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const s=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,s,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const s=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,s,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,s),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((s,o)=>{this._addStickyColumnStyles([s],this._headerRowDefs[o])}),this._rowDefs.forEach(s=>{const o=[];for(let a=0;a{this._addStickyColumnStyles([s],this._footerRowDefs[o])}),Array.from(this._columnDefsByName.values()).forEach(s=>s.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const a=r&&r.has(o)?r.get(o):[];if(a.length){const d=a.shift();return d.dataIndex=i,d}return{data:e,rowDef:o,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),vf(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=vf(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=vf(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=vf(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(o,a)=>o||!!a.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const s=this._footerRowDefs.reduce(e,!1);return s&&this._forceRenderFooterRows(),i||r||s}_switchDataSource(e){this._data=[],nh(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;nh(this.dataSource)?e=this.dataSource.connect(this):jm(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Qe(this.dataSource)),this._renderChangeSubscription=e.pipe(Ut(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const r=Array.from(i.columns||[]).map(a=>this._columnDefsByName.get(a)),s=r.map(a=>a.sticky),o=r.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,s,o,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let r=0;r!s.when||s.when(i,e));else{let s=this._rowDefs.find(o=>o.when&&o.when(i,e))||this._defaultRowDef;s&&r.push(s)}return r}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,r,s={}){const o=e.viewContainer.createEmbeddedView(i.template,s,r);return this._renderCellTemplateForItem(i,s),o}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))As.mostRecentCellOutlet&&As.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{const r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of i){const s=this._document.createElement(r.tag);s.setAttribute("role","rowgroup");for(const o of r.outlets)s.appendChild(o.elementRef.nativeElement);e.appendChild(s)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Vz(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Qe()).pipe(Ut(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(i){const s=r.createEmbeddedView(e.templateRef),o=s.rootNodes[0];1===s.rootNodes.length&&(null==o?void 0:o.nodeType)===this._document.ELEMENT_NODE&&(o.setAttribute("role","row"),o.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=i}}return n.\u0275fac=function(e){return new(e||n)(V(ns),V(an),V(nt),dr("role"),V(fi,8),V(Et),V($n),V(Fo),V(Pv),V(Po),V(Hv,12),V(ct,8))},n.\u0275cmp=Ge({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,r){if(1&e&&(Lt(r,df,5),Lt(r,ks,5),Lt(r,uf,5),Lt(r,pu,5),Lt(r,mu,5)),2&e){let s;He(s=je())&&(i._noDataRow=s.first),He(s=je())&&(i._contentColumnDefs=s),He(s=je())&&(i._contentRowDefs=s),He(s=je())&&(i._contentHeaderRowDefs=s),He(s=je())&&(i._contentFooterRowDefs=s)}},viewQuery:function(e,i){if(1&e&&(jt(hf,7),jt(ff,7),jt(pf,7),jt(mf,7)),2&e){let r;He(r=je())&&(i._rowOutlet=r.first),He(r=je())&&(i._headerRowOutlet=r.first),He(r=je())&&(i._footerRowOutlet=r.first),He(r=je())&&(i._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&&Nt("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[lt([{provide:Ml,useExisting:n},{provide:Fo,useClass:QC},{provide:Pv,useClass:oS},{provide:Hv,useValue:null}])],ngContentSelectors:Az,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(mn(kz),bt(0),bt(1,1),Jr(2,0)(3,1)(4,2)(5,3))},directives:[ff,hf,mf,pf],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})();function vf(n,t){return n.concat(Array.from(t))}let jz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[ih]]}),n})();const zz=[[["caption"]],[["colgroup"],["col"]]],Uz=["caption","colgroup, col"];let cS=(()=>{class n extends gf{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&&Nt("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[lt([{provide:Fo,useClass:QC},{provide:gf,useExisting:n},{provide:Ml,useExisting:n},{provide:Pv,useClass:oS},{provide:Hv,useValue:null}]),Pe],ngContentSelectors:Uz,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(mn(zz),bt(0),bt(1,1),Jr(2,0)(3,1)(4,2)(5,3))},directives:[ff,hf,mf,pf],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})(),jv=(()=>{class n extends El{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["","matCellDef",""]],features:[lt([{provide:El,useExisting:n}]),Pe]}),n})(),zv=(()=>{class n extends Sl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["","matHeaderCellDef",""]],features:[lt([{provide:Sl,useExisting:n}]),Pe]}),n})(),Uv=(()=>{class n extends ks{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[lt([{provide:ks,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),Pe]}),n})(),$v=(()=>{class n extends Ov{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[Pe]}),n})(),Gv=(()=>{class n extends Fv{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[Pe]}),n})(),uS=(()=>{class n extends pu{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[lt([{provide:pu,useExisting:n}]),Pe]}),n})(),dS=(()=>{class n extends uf{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[lt([{provide:uf,useExisting:n}]),Pe]}),n})(),hS=(()=>{class n extends Lv{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[lt([{provide:Lv,useExisting:n}]),Pe],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Jr(0,0)},directives:[As],encapsulation:2}),n})(),fS=(()=>{class n extends Vv{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[lt([{provide:Vv,useExisting:n}]),Pe],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Jr(0,0)},directives:[As],encapsulation:2}),n})(),Jz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[jz,Gt],Gt]}),n})();class tU extends XC{constructor(t=[]){super(),this._renderData=new oi([]),this._filter=new oi(""),this._internalPageChanges=new U,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const r=e[i];if(FC(r)){const s=Number(r);return s<9007199254740991?s:r}return r},this.sortData=(e,i)=>{const r=i.active,s=i.direction;return r&&""!=s?e.sort((o,a)=>{let d=this.sortingDataAccessor(o,r),C=this.sortingDataAccessor(a,r);const k=typeof d,N=typeof C;k!==N&&("number"===k&&(d+=""),"number"===N&&(C+=""));let G=0;return null!=d&&null!=C?d>C?G=1:d{const r=Object.keys(e).reduce((o,a)=>o+e[a]+"\u25ec","").toLowerCase(),s=i.trim().toLowerCase();return-1!=r.indexOf(s)},this._data=new oi(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){t=Array.isArray(t)?t:[],this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?Ae(this._sort.sortChange,this._sort.initialized):Qe(null),i=this._paginator?Ae(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Qe(null),s=Oc([this._data,this._filter]).pipe(L(([d])=>this._filterData(d))),o=Oc([s,e]).pipe(L(([d])=>this._orderData(d))),a=Oc([o,i]).pipe(L(([d])=>this._pageData(d)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=a.subscribe(d=>this._renderData.next(d))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}class nU extends tU{}const iU=["*",[["mat-toolbar-row"]]],rU=["*","mat-toolbar-row"],sU=Go(class{constructor(n){this._elementRef=n}});let oU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),aU=(()=>{class n extends sU{constructor(e,i,r){super(e),this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V($n),V(Et))},n.\u0275cmp=Ge({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,i,r){if(1&e&&Lt(r,oU,5),2&e){let s;He(s=je())&&(i._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&Nt("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Pe],ngContentSelectors:rU,decls:2,vars:0,template:function(e,i){1&e&&(mn(iU),bt(0),bt(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),lU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Gt],Gt]}),n})();const _f=(()=>{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();function pS(n,t){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new cU(n,t,e))}}class cU{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new uU(t,this.accumulator,this.seed,this.hasSeed))}}class uU extends h{constructor(t,e,i,r){super(t),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function Wv(n){return function(e){return 0===n?Qd():e.lift(new dU(n))}}class dU{constructor(t){if(this.total=t,this.total<0)throw new LC}call(t,e){return e.subscribe(new hU(t,this.total))}}class hU extends h{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;st.lift(new fU(n))}class fU{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new pU(t,this.errorFactory))}}class pU extends h{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function mU(){return new _f}function gS(n=null){return t=>t.lift(new gU(n))}class gU{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new vU(t,this.defaultValue))}}class vU extends h{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function xl(n,t){const e=arguments.length>=2;return i=>i.pipe(n?$t((r,s)=>n(r,s,i)):x,ln(1),e?gS(t):mS(()=>new _f))}class Ts{constructor(t,e){this.id=t,this.url=e}}class Yv extends Ts{constructor(t,e,i="imperative",r=null){super(t,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class gu extends Ts{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class vS extends Ts{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class yU extends Ts{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class bU extends Ts{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wU extends Ts{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class CU extends Ts{constructor(t,e,i,r,s){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class DU extends Ts{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class MU extends Ts{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _S{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class yS{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class EU{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class SU{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xU{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kU{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bS{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Kt="primary";class AU{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function kl(n){return new AU(n)}const wS="ngNavigationCancelingError";function qv(n){const t=Error("NavigationCancelingError: "+n);return t[wS]=!0,t}function IU(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[s]===r)}return n===t}function DS(n){return Array.prototype.concat.apply([],n)}function MS(n){return n.length>0?n[n.length-1]:null}function gi(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function us(n){return kp(n)?n:pc(n)?Re(Promise.resolve(n)):Qe(n)}const FU={exact:function xS(n,t,e){if(!ia(n.segments,t.segments)||!yf(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!xS(n.children[i],t.children[i],e))return!1;return!0},subset:kS},ES={exact:function PU(n,t){return cs(n,t)},subset:function NU(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>CS(n[e],t[e]))},ignored:()=>!0};function SS(n,t,e){return FU[e.paths](n.root,t.root,e.matrixParams)&&ES[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function kS(n,t,e){return AS(n,t,t.segments,e)}function AS(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!ia(r,e)||t.hasChildren()||!yf(r,e,i))}if(n.segments.length===e.length){if(!ia(n.segments,e)||!yf(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!kS(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),s=e.slice(n.segments.length);return!!(ia(n.segments,r)&&yf(n.segments,r,i)&&n.children[Kt])&&AS(n.children[Kt],t,s,i)}}function yf(n,t,e){return t.every((i,r)=>ES[e](n[r].parameters,i.parameters))}class na{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=kl(this.queryParams)),this._queryParamMap}toString(){return VU.serialize(this)}}class rn{constructor(t,e){this.segments=t,this.children=e,this.parent=null,gi(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bf(this)}}class vu{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=kl(this.parameters)),this._parameterMap}toString(){return FS(this)}}function ia(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}class TS{}class IS{parse(t){const e=new qU(t);return new na(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${_u(t.root,!0)}`,i=function zU(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${wf(e)}=${wf(r)}`).join("&"):`${wf(e)}=${wf(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams),r="string"==typeof t.fragment?`#${function HU(n){return encodeURI(n)}(t.fragment)}`:"";return`${e}${i}${r}`}}const VU=new IS;function bf(n){return n.segments.map(t=>FS(t)).join("/")}function _u(n,t){if(!n.hasChildren())return bf(n);if(t){const e=n.children[Kt]?_u(n.children[Kt],!1):"",i=[];return gi(n.children,(r,s)=>{s!==Kt&&i.push(`${s}:${_u(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function BU(n,t){let e=[];return gi(n.children,(i,r)=>{r===Kt&&(e=e.concat(t(i,r)))}),gi(n.children,(i,r)=>{r!==Kt&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===Kt?[_u(n.children[Kt],!1)]:[`${r}:${_u(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Kt]?`${bf(n)}/${e[0]}`:`${bf(n)}/(${e.join("//")})`}}function RS(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wf(n){return RS(n).replace(/%3B/gi,";")}function Kv(n){return RS(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Cf(n){return decodeURIComponent(n)}function OS(n){return Cf(n.replace(/\+/g,"%20"))}function FS(n){return`${Kv(n.path)}${function jU(n){return Object.keys(n).map(t=>`;${Kv(t)}=${Kv(n[t])}`).join("")}(n.parameters)}`}const UU=/^[^\/()?;=#]+/;function Df(n){const t=n.match(UU);return t?t[0]:""}const $U=/^[^=?&#]+/,WU=/^[^&#]+/;class qU{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new rn([],{}):new rn([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[Kt]=new rn(t,e)),i}parseSegment(){const t=Df(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new vu(Cf(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Df(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Df(this.remaining);r&&(i=r,this.capture(i))}t[Cf(e)]=Cf(i)}parseQueryParam(t){const e=function GU(n){const t=n.match($U);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=function YU(n){const t=n.match(WU);return t?t[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const r=OS(e),s=OS(i);if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)||(o=[o],t[r]=o),o.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Df(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=Kt);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o[Kt]:new rn([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class PS{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Xv(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=Xv(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Qv(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return Qv(t,this._root).map(e=>e.value)}}function Xv(n,t){if(n===t.value)return t;for(const e of t.children){const i=Xv(n,e);if(i)return i}return null}function Qv(n,t){if(n===t.value)return[t];for(const e of t.children){const i=Qv(n,e);if(i.length)return i.unshift(t),i}return[]}class Is{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Al(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class NS extends PS{constructor(t,e){super(t),this.snapshot=e,Zv(this,t)}toString(){return this.snapshot.toString()}}function LS(n,t){const e=function KU(n,t){const o=new Mf([],{},{},"",{},Kt,t,null,n.root,-1,{});return new VS("",new Is(o,[]))}(n,t),i=new oi([new vu("",{})]),r=new oi({}),s=new oi({}),o=new oi({}),a=new oi(""),d=new Gi(i,r,o,a,s,Kt,t,e.root);return d.snapshot=e.root,new NS(new Is(d,[]),e)}class Gi{constructor(t,e,i,r,s,o,a,d){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this._futureSnapshot=d}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(L(t=>kl(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(L(t=>kl(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function BS(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],s=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(s.component)break;i--}}return function XU(n){return n.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(i))}class Mf{constructor(t,e,i,r,s,o,a,d,C,k,N){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=d,this._urlSegment=C,this._lastPathIndex=k,this._resolve=N}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=kl(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=kl(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class VS extends PS{constructor(t,e){super(e),this.url=t,Zv(this,e)}toString(){return HS(this._root)}}function Zv(n,t){t.value._routerState=n,t.children.forEach(e=>Zv(n,e))}function HS(n){const t=n.children.length>0?` { ${n.children.map(HS).join(", ")} } `:"";return`${n.value}${t}`}function Jv(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,cs(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),cs(t.params,e.params)||n.params.next(e.params),function RU(n,t){if(n.length!==t.length)return!1;for(let e=0;ecs(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||e_(n.parent,t.parent))}function yu(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function ZU(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return yu(n,i,r);return yu(n,i)})}(n,t,e);return new Is(i,r)}{if(n.shouldAttach(t.value)){const s=n.retrieve(t.value);if(null!==s){const o=s.route;return o.value._futureSnapshot=t.value,o.children=t.children.map(a=>yu(n,a)),o}}const i=function JU(n){return new Gi(new oi(n.url),new oi(n.params),new oi(n.queryParams),new oi(n.fragment),new oi(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(s=>yu(n,s));return new Is(i,r)}}function Ef(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function bu(n){return"object"==typeof n&&null!=n&&n.outlets}function t_(n,t,e,i,r){let s={};if(i&&gi(i,(a,d)=>{s[d]=Array.isArray(a)?a.map(C=>`${C}`):`${a}`}),n===t)return new na(e,s,r);const o=jS(n,t,e);return new na(o,s,r)}function jS(n,t,e){const i={};return gi(n.children,(r,s)=>{i[s]=r===t?e:jS(r,t,e)}),new rn(n.segments,i)}class zS{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Ef(i[0]))throw new Error("Root segment cannot have matrix parameters");const r=i.find(bu);if(r&&r!==MS(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class n_{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function US(n,t,e){if(n||(n=new rn([],{})),0===n.segments.length&&n.hasChildren())return Sf(n,t,e);const i=function s$(n,t,e){let i=0,r=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return s;const o=n.segments[r],a=e[i];if(bu(a))break;const d=`${a}`,C=i0&&void 0===d)break;if(d&&C&&"object"==typeof C&&void 0===C.outlets){if(!GS(d,C,o))return s;i+=2}else{if(!GS(d,{},o))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=US(n.children[o],t,s))}),gi(n.children,(s,o)=>{void 0===i[o]&&(r[o]=s)}),new rn(n.segments,r)}}function i_(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=i_(new rn([],{}),0,e))}),t}function $S(n){const t={};return gi(n,(e,i)=>t[i]=`${e}`),t}function GS(n,t,e){return n==e.path&&cs(t,e.parameters)}class l${constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Jv(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=Al(e);t.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,r[o],i),delete r[o]}),gi(r,(s,o)=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(t,e,i){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const o=i.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=Al(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);if(i&&i.outlet){const o=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=Al(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=Al(e);t.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],i),this.forwardEvent(new kU(s.value.snapshot))}),t.children.length&&this.forwardEvent(new SU(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,s=e?e.value:null;if(Jv(r),r===s)if(r.component){const o=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,i);else if(r.component){const o=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Jv(a.route.value),this.activateChildRoutes(t,null,o.children)}else{const a=function c$(n){for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),d=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=d,o.outlet&&o.outlet.activateWith(r,d),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,i)}}class r_{constructor(t,e){this.routes=t,this.module=e}}function uo(n){return"function"==typeof n}function ra(n){return n instanceof na}const wu=Symbol("INITIAL_VALUE");function Cu(){return Xn(n=>Oc(n.map(t=>t.pipe(ln(1),jn(wu)))).pipe(pS((t,e)=>{let i=!1;return e.reduce((r,s,o)=>r!==wu?r:(s===wu&&(i=!0),i||!1!==s&&o!==e.length-1&&!ra(s)?r:s),t)},wu),$t(t=>t!==wu),L(t=>ra(t)?t:!0===t),ln(1)))}class m${constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Du,this.attachRef=null}}class Du{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new m$,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let s_=(()=>{class n{constructor(e,i,r,s,o){this.parentContexts=e,this.location=i,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new Le,this.deactivateEvents=new Le,this.attachEvents=new Le,this.detachEvents=new Le,this.name=s||Kt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const o=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,d=new g$(e,a,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,d),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(V(Du),V(On),V(Eo),dr("name"),V(an))},n.\u0275dir=De({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class g${constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Gi?this.route:t===Du?this.childContexts:this.parent.get(t,e)}}let WS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ge({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&yt(0,"router-outlet")},directives:[s_],encapsulation:2}),n})();function YS(n,t=""){for(let e=0;eCr(i)===t);return e.push(...n.filter(i=>Cr(i)!==t)),e}const KS={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function xf(n,t,e){var i;if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},KS):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const s=(t.matcher||IU)(e,n,t);if(!s)return Object.assign({},KS);const o={};gi(s.posParams,(d,C)=>{o[C]=d.path});const a=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,remainingSegments:e.slice(s.consumed.length),parameters:a,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function kf(n,t,e,i,r="corrected"){if(e.length>0&&function w$(n,t,e){return e.some(i=>Af(n,t,i)&&Cr(i)!==Kt)}(n,e,i)){const o=new rn(t,function b$(n,t,e,i){const r={};r[Kt]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const s of e)if(""===s.path&&Cr(s)!==Kt){const o=new rn([],{});o._sourceSegment=n,o._segmentIndexShift=t.length,r[Cr(s)]=o}return r}(n,t,i,new rn(e,n.children)));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function C$(n,t,e){return e.some(i=>Af(n,t,i))}(n,e,i)){const o=new rn(n.segments,function y$(n,t,e,i,r,s){const o={};for(const a of i)if(Af(n,e,a)&&!r[Cr(a)]){const d=new rn([],{});d._sourceSegment=n,d._segmentIndexShift="legacy"===s?n.segments.length:t.length,o[Cr(a)]=d}return Object.assign(Object.assign({},r),o)}(n,t,e,i,n.children,r));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}const s=new rn(n.segments,n.children);return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}function Af(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function XS(n,t,e,i){return!!(Cr(n)===i||i!==Kt&&Af(t,e,n))&&("**"===n.path||xf(t,n,e).matched)}function QS(n,t,e){return 0===t.length&&!n.children[e]}class Tf{constructor(t){this.segmentGroup=t||null}}class ZS{constructor(t){this.urlTree=t}}function Mu(n){return Ro(new Tf(n))}function JS(n){return Ro(new ZS(n))}function D$(n){return Ro(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`))}class S${constructor(t,e,i,r,s){this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(ys)}apply(){const t=kf(this.urlTree.root,[],[],this.config).segmentGroup,e=new rn(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Kt).pipe(L(s=>this.createUrlTree(a_(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(lo(s=>{if(s instanceof ZS)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof Tf?this.noMatchError(s):s}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Kt).pipe(L(r=>this.createUrlTree(a_(r),t.queryParams,t.fragment))).pipe(lo(r=>{throw r instanceof Tf?this.noMatchError(r):r}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const r=t.segments.length>0?new rn([],{[Kt]:t}):t;return new na(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(L(s=>new rn([],s))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const s of Object.keys(i.children))"primary"===s?r.unshift(s):r.push(s);return Re(r).pipe(dl(s=>{const o=i.children[s],a=qS(e,s);return this.expandSegmentGroup(t,a,o,s).pipe(L(d=>({segment:d,outlet:s})))}),pS((s,o)=>(s[o.outlet]=o.segment,s),{}),function _U(n,t){const e=arguments.length>=2;return i=>i.pipe(n?$t((r,s)=>n(r,s,i)):x,Wv(1),e?gS(t):mS(()=>new _f))}())}expandSegment(t,e,i,r,s,o){return Re(i).pipe(dl(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,s,o).pipe(lo(C=>{if(C instanceof Tf)return Qe(null);throw C}))),xl(a=>!!a),lo((a,d)=>{if(a instanceof _f||"EmptyError"===a.name)return QS(e,r,s)?Qe(new rn([],{})):Mu(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,s,o,a){return XS(r,e,s,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o):Mu(e):Mu(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?JS(s):this.lineralizeSegments(i,s).pipe(Rt(o=>{const a=new rn(o,{});return this.expandSegment(t,a,e,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o){const{matched:a,consumedSegments:d,remainingSegments:C,positionalParamSegments:k}=xf(e,r,s);if(!a)return Mu(e);const N=this.applyRedirectCommands(d,r.redirectTo,k);return r.redirectTo.startsWith("/")?JS(N):this.lineralizeSegments(r,N).pipe(Rt(G=>this.expandSegment(t,e,i,G.concat(C),o,!1)))}matchSegmentAgainstRoute(t,e,i,r,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?Qe(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(L(N=>(i._loadedConfig=N,new rn(r,{})))):Qe(new rn(r,{}));const{matched:o,consumedSegments:a,remainingSegments:d}=xf(e,i,r);return o?this.getChildConfig(t,i,r).pipe(Rt(k=>{const N=k.module,G=k.routes,{segmentGroup:X,slicedSegments:re}=kf(e,a,d,G),de=new rn(X.segments,X.children);if(0===re.length&&de.hasChildren())return this.expandChildren(N,G,de).pipe(L(Ne=>new rn(a,Ne)));if(0===G.length&&0===re.length)return Qe(new rn(a,{}));const ve=Cr(i)===s;return this.expandSegment(N,de,G,re,ve?Kt:s,!0).pipe(L(pe=>new rn(a.concat(pe.segments),pe.children)))})):Mu(e)}getChildConfig(t,e,i){return e.children?Qe(new r_(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Qe(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(Rt(r=>r?this.configLoader.load(t.injector,e).pipe(L(s=>(e._loadedConfig=s,s))):function M$(n){return Ro(qv(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`))}(e))):Qe(new r_([],t))}runCanLoadGuards(t,e,i){const r=e.canLoad;if(!r||0===r.length)return Qe(!0);const s=r.map(o=>{const a=t.get(o);let d;if(function d$(n){return n&&uo(n.canLoad)}(a))d=a.canLoad(e,i);else{if(!uo(a))throw new Error("Invalid CanLoad guard");d=a(e,i)}return us(d)});return Qe(s).pipe(Cu(),ri(o=>{if(!ra(o))return;const a=qv(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw a.url=o,a}),L(o=>!0===o))}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Qe(i);if(r.numberOfChildren>1||!r.children[Kt])return D$(t.redirectTo);r=r.children[Kt]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,r){const s=this.createSegmentGroup(t,e.root,i,r);return new na(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return gi(t,(r,s)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[s]=e[a]}else i[s]=r}),i}createSegmentGroup(t,e,i,r){const s=this.createSegments(t,e.segments,i,r);let o={};return gi(e.children,(a,d)=>{o[d]=this.createSegmentGroup(t,a,i,r)}),new rn(s,o)}createSegments(t,e,i,r){return e.map(s=>s.path.startsWith(":")?this.findPosParam(t,s,r):this.findOrReturn(s,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}function a_(n){const t={};for(const i of Object.keys(n.children)){const s=a_(n.children[i]);(s.segments.length>0||s.hasChildren())&&(t[i]=s)}return function x$(n){if(1===n.numberOfChildren&&n.children[Kt]){const t=n.children[Kt];return new rn(n.segments.concat(t.segments),t.children)}return n}(new rn(n.segments,t))}class ex{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class If{constructor(t,e){this.component=t,this.route=e}}function A$(n,t,e){const i=n._root;return Eu(i,t?t._root:null,e,[i.value])}function Rf(n,t,e){const i=function I$(n){if(!n)return null;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:e).get(n)}function Eu(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Al(t);return n.children.forEach(o=>{(function R$(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=n.value,o=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const d=function O$(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!ia(n.url,t.url);case"pathParamsOrQueryParamsChange":return!ia(n.url,t.url)||!cs(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!e_(n,t)||!cs(n.queryParams,t.queryParams);default:return!e_(n,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);d?r.canActivateChecks.push(new ex(i)):(s.data=o.data,s._resolvedData=o._resolvedData),Eu(n,t,s.component?a?a.children:null:e,i,r),d&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new If(a.outlet.component,o))}else o&&Su(t,a,r),r.canActivateChecks.push(new ex(i)),Eu(n,null,s.component?a?a.children:null:e,i,r)})(o,s[o.value.outlet],e,i.concat([o.value]),r),delete s[o.value.outlet]}),gi(s,(o,a)=>Su(o,e.getContext(a),r)),r}function Su(n,t,e){const i=Al(n),r=n.value;gi(i,(s,o)=>{Su(s,r.component?t?t.children.getContext(o):null:t,e)}),e.canDeactivateChecks.push(new If(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}class z${}function tx(n){return new j(t=>t.error(n))}class $${constructor(t,e,i,r,s,o){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=kf(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Kt);if(null===e)return null;const i=new Mf([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Kt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Is(i,e),s=new VS(this.url,r);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=BS(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const o=e.children[s],a=qS(t,s),d=this.processSegmentGroup(a,o,s);if(null===d)return null;i.push(...d)}const r=nx(i);return function G$(n){n.sort((t,e)=>t.value.outlet===Kt?-1:e.value.outlet===Kt?1:t.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(t,e,i,r){for(const s of t){const o=this.processSegmentAgainstRoute(s,e,i,r);if(null!==o)return o}return QS(e,i,r)?[]:null}processSegmentAgainstRoute(t,e,i,r){if(t.redirectTo||!XS(t,e,i,r))return null;let s,o=[],a=[];if("**"===t.path){const X=i.length>0?MS(i).parameters:{};s=new Mf(i,X,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,sx(t),Cr(t),t.component,t,ix(e),rx(e)+i.length,ox(t))}else{const X=xf(e,t,i);if(!X.matched)return null;o=X.consumedSegments,a=X.remainingSegments,s=new Mf(o,X.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,sx(t),Cr(t),t.component,t,ix(e),rx(e)+o.length,ox(t))}const d=function W$(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(t),{segmentGroup:C,slicedSegments:k}=kf(e,o,a,d.filter(X=>void 0===X.redirectTo),this.relativeLinkResolution);if(0===k.length&&C.hasChildren()){const X=this.processChildren(d,C);return null===X?null:[new Is(s,X)]}if(0===d.length&&0===k.length)return[new Is(s,[])];const N=Cr(t)===r,G=this.processSegment(d,C,k,N?Kt:r);return null===G?null:[new Is(s,G)]}}function Y$(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function nx(n){const t=[],e=new Set;for(const i of n){if(!Y$(i)){t.push(i);continue}const r=t.find(s=>i.value.routeConfig===s.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=nx(i.children);t.push(new Is(i.value,r))}return t.filter(i=>!e.has(i))}function ix(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function rx(n){let t=n,e=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift?t._segmentIndexShift:0;return e-1}function sx(n){return n.data||{}}function ox(n){return n.resolve||{}}function ax(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function l_(n){return Xn(t=>{const e=n(t);return e?Re(e).pipe(L(()=>t)):Qe(t)})}class lx{}class eG extends class J${shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const c_=new Ie("ROUTES");class cx{constructor(t,e,i,r){this.injector=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=r}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe(L(s=>{this.onLoadEndListener&&this.onLoadEndListener(e);const o=s.create(t);return new r_(DS(o.injector.get(c_,void 0,xt.Self|xt.Optional)).map(o_),o)}),lo(s=>{throw e._loader$=void 0,s}));return e._loader$=new rt(r,()=>new U).pipe(Yt()),e._loader$}loadModuleFactory(t){return us(t()).pipe(Rt(e=>e instanceof qw?Qe(e):Re(this.compiler.compileModuleAsync(e))))}}class nG{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function iG(n){throw n}function rG(n,t,e){return t.parse("/")}function ux(n,t){return Qe(null)}const sG={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},oG={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ci=(()=>{class n{constructor(e,i,r,s,o,a,d){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=s,this.config=d,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new U,this.errorHandler=iG,this.malformedUriErrorHandler=rG,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ux,afterPreactivation:ux},this.urlHandlingStrategy=new nG,this.routeReuseStrategy=new eG,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(ys),this.console=o.get(ER);const N=o.get(ct);this.isNgZoneEnabled=N instanceof ct&&ct.isInAngularZone(),this.resetConfig(d),this.currentUrlTree=function OU(){return new na(new rn([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new cx(o,a,G=>this.triggerEvent(new _S(G)),G=>this.triggerEvent(new yS(G))),this.routerState=LS(this.currentUrlTree,this.rootComponentType),this.transitions=new oi({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe($t(r=>0!==r.id),L(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Xn(r=>{let s=!1,o=!1;return Qe(r).pipe(ri(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Xn(a=>{const d=this.browserUrlTree.toString(),C=!this.navigated||a.extractedUrl.toString()!==d||d!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||C)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return dx(a.source)&&(this.browserUrlTree=a.extractedUrl),Qe(a).pipe(Xn(N=>{const G=this.transitions.getValue();return i.next(new Yv(N.id,this.serializeUrl(N.extractedUrl),N.source,N.restoredState)),G!==this.transitions.getValue()?Ys:Promise.resolve(N)}),function k$(n,t,e,i){return Xn(r=>function E$(n,t,e,i,r){return new S$(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(L(s=>Object.assign(Object.assign({},r),{urlAfterRedirects:s}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),ri(N=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:N.urlAfterRedirects})}),function q$(n,t,e,i,r){return Rt(s=>function U$(n,t,e,i,r="emptyOnly",s="legacy"){try{const o=new $$(n,t,e,i,r,s).recognize();return null===o?tx(new z$):Qe(o)}catch(o){return tx(o)}}(n,t,s.urlAfterRedirects,e(s.urlAfterRedirects),i,r).pipe(L(o=>Object.assign(Object.assign({},s),{targetSnapshot:o}))))}(this.rootComponentType,this.config,N=>this.serializeUrl(N),this.paramsInheritanceStrategy,this.relativeLinkResolution),ri(N=>{if("eager"===this.urlUpdateStrategy){if(!N.extras.skipLocationChange){const X=this.urlHandlingStrategy.merge(N.urlAfterRedirects,N.rawUrl);this.setBrowserUrl(X,N)}this.browserUrlTree=N.urlAfterRedirects}const G=new bU(N.id,this.serializeUrl(N.extractedUrl),this.serializeUrl(N.urlAfterRedirects),N.targetSnapshot);i.next(G)}));if(C&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:G,extractedUrl:X,source:re,restoredState:de,extras:ve}=a,Me=new Yv(G,this.serializeUrl(X),re,de);i.next(Me);const pe=LS(X,this.rootComponentType).snapshot;return Qe(Object.assign(Object.assign({},a),{targetSnapshot:pe,urlAfterRedirects:X,extras:Object.assign(Object.assign({},ve),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),Ys}),l_(a=>{const{targetSnapshot:d,id:C,extractedUrl:k,rawUrl:N,extras:{skipLocationChange:G,replaceUrl:X}}=a;return this.hooks.beforePreactivation(d,{navigationId:C,appliedUrlTree:k,rawUrlTree:N,skipLocationChange:!!G,replaceUrl:!!X})}),ri(a=>{const d=new wU(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(d)}),L(a=>Object.assign(Object.assign({},a),{guards:A$(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function F$(n,t){return Rt(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return 0===o.length&&0===s.length?Qe(Object.assign(Object.assign({},e),{guardsResult:!0})):function P$(n,t,e,i){return Re(n).pipe(Rt(r=>function j$(n,t,e,i,r){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?Qe(s.map(a=>{const d=Rf(a,t,r);let C;if(function p$(n){return n&&uo(n.canDeactivate)}(d))C=us(d.canDeactivate(n,t,e,i));else{if(!uo(d))throw new Error("Invalid CanDeactivate guard");C=us(d(n,t,e,i))}return C.pipe(xl())})).pipe(Cu()):Qe(!0)}(r.component,r.route,e,t,i)),xl(r=>!0!==r,!0))}(o,i,r,n).pipe(Rt(a=>a&&function u$(n){return"boolean"==typeof n}(a)?function N$(n,t,e,i){return Re(t).pipe(dl(r=>Fc(function B$(n,t){return null!==n&&t&&t(new EU(n)),Qe(!0)}(r.route.parent,i),function L$(n,t){return null!==n&&t&&t(new xU(n)),Qe(!0)}(r.route,i),function H$(n,t,e){const i=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>function T$(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(o)).filter(o=>null!==o).map(o=>Yo(()=>Qe(o.guards.map(d=>{const C=Rf(d,o.node,e);let k;if(function f$(n){return n&&uo(n.canActivateChild)}(C))k=us(C.canActivateChild(i,n));else{if(!uo(C))throw new Error("Invalid CanActivateChild guard");k=us(C(i,n))}return k.pipe(xl())})).pipe(Cu())));return Qe(s).pipe(Cu())}(n,r.path,e),function V$(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Qe(!0);const r=i.map(s=>Yo(()=>{const o=Rf(s,t,e);let a;if(function h$(n){return n&&uo(n.canActivate)}(o))a=us(o.canActivate(t,n));else{if(!uo(o))throw new Error("Invalid CanActivate guard");a=us(o(t,n))}return a.pipe(xl())}));return Qe(r).pipe(Cu())}(n,r.route,e))),xl(r=>!0!==r,!0))}(i,s,n,t):Qe(a)),L(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),ri(a=>{if(ra(a.guardsResult)){const C=qv(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw C.url=a.guardsResult,C}const d=new CU(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(d)}),$t(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),l_(a=>{if(a.guards.canActivateChecks.length)return Qe(a).pipe(ri(d=>{const C=new DU(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);this.triggerEvent(C)}),Xn(d=>{let C=!1;return Qe(d).pipe(function K$(n,t){return Rt(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Qe(e);let s=0;return Re(r).pipe(dl(o=>function X$(n,t,e,i){return function Q$(n,t,e,i){const r=ax(n);if(0===r.length)return Qe({});const s={};return Re(r).pipe(Rt(o=>function Z$(n,t,e,i){const r=Rf(n,t,i);return us(r.resolve?r.resolve(t,e):r(t,e))}(n[o],t,e,i).pipe(ri(a=>{s[o]=a}))),Wv(1),Rt(()=>ax(s).length===r.length?Qe(s):Ys))}(n._resolve,n,t,i).pipe(L(s=>(n._resolvedData=s,n.data=Object.assign(Object.assign({},n.data),BS(n,e).resolve),null)))}(o.route,i,n,t)),ri(()=>s++),Wv(1),Rt(o=>s===r.length?Qe(e):Ys))})}(this.paramsInheritanceStrategy,this.ngModule.injector),ri({next:()=>C=!0,complete:()=>{C||(this.restoreHistory(d),this.cancelNavigationTransition(d,"At least one route resolver didn't emit any value."))}}))}),ri(d=>{const C=new MU(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);this.triggerEvent(C)}))}),l_(a=>{const{targetSnapshot:d,id:C,extractedUrl:k,rawUrl:N,extras:{skipLocationChange:G,replaceUrl:X}}=a;return this.hooks.afterPreactivation(d,{navigationId:C,appliedUrlTree:k,rawUrlTree:N,skipLocationChange:!!G,replaceUrl:!!X})}),L(a=>{const d=function QU(n,t,e){const i=yu(n,t._root,e?e._root:void 0);return new NS(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:d})}),ri(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>L(i=>(new l$(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),ri({next(){s=!0},complete(){s=!0}}),wE(()=>{var a;s||o||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===r.id&&(this.currentNavigation=null)}),lo(a=>{if(o=!0,function TU(n){return n&&n[wS]}(a)){const d=ra(a.url);d||(this.navigated=!0,this.restoreHistory(r,!0));const C=new vS(r.id,this.serializeUrl(r.extractedUrl),a.message);i.next(C),d?setTimeout(()=>{const k=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),N={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||dx(r.source)};this.scheduleNavigation(k,"imperative",null,N,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const d=new yU(r.id,this.serializeUrl(r.extractedUrl),a);i.next(d);try{r.resolve(this.errorHandler(a))}catch(C){r.reject(C)}}return Ys}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var r;const s={replaceUrl:!0},o=(null===(r=e.state)||void 0===r?void 0:r.navigationId)?e.state:null;if(o){const d=Object.assign({},o);delete d.navigationId,delete d.\u0275routerPageId,0!==Object.keys(d).length&&(s.state=d)}const a=this.parseUrl(e.url);this.scheduleNavigation(a,i,o,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){YS(e),this.config=e.map(o_),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:d}=i,C=r||this.routerState.root,k=d?this.currentUrlTree.fragment:o;let N=null;switch(a){case"merge":N=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":N=this.currentUrlTree.queryParams;break;default:N=s||null}return null!==N&&(N=this.removeEmptyProps(N)),function e$(n,t,e,i,r){if(0===e.length)return t_(t.root,t.root,t.root,i,r);const s=function t$(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new zS(!0,0,n);let t=0,e=!1;const i=n.reduce((r,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return gi(s.outlets,(d,C)=>{a[C]="string"==typeof d?d.split("/"):d}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return"string"!=typeof s?[...r,s]:0===o?(s.split("/").forEach((a,d)=>{0==d&&"."===a||(0==d&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,s]},[]);return new zS(e,t,i)}(e);if(s.toRoot())return t_(t.root,t.root,new rn([],{}),i,r);const o=function n$(n,t,e){if(n.isAbsolute)return new n_(t.root,!0,0);if(-1===e.snapshot._lastPathIndex){const s=e.snapshot._urlSegment;return new n_(s,s===t.root,0)}const i=Ef(n.commands[0])?0:1;return function i$(n,t,e){let i=n,r=t,s=e;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new n_(i,!1,r-s)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,n.numberOfDoubleDots)}(s,t,n),a=o.processChildren?Sf(o.segmentGroup,o.index,s.commands):US(o.segmentGroup,o.index,s.commands);return t_(t.root,o.segmentGroup,a,i,r)}(C,this.currentUrlTree,e,N,null!=k?k:null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=ra(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function aG(n){for(let t=0;t{const s=e[r];return null!=s&&(i[r]=s),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new gu(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,s,o){var a,d;if(this.disposed)return Promise.resolve(!1);let C,k,N;o?(C=o.resolve,k=o.reject,N=o.promise):N=new Promise((re,de)=>{C=re,k=de});const G=++this.navigationId;let X;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),X=r&&r.\u0275routerPageId?r.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(d=this.browserPageId)&&void 0!==d?d:0)+1):X=0,this.setTransition({id:G,targetPageId:X,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:s,resolve:C,reject:k,promise:N,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),N.catch(re=>Promise.reject(re))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),s=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",s):this.location.go(r,"",s)}restoreHistory(e,i=!1){var r,s;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===o?this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const r=new vS(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){Wa()},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();function dx(n){return"imperative"!==n}let ho=(()=>{class n{constructor(e,i,r,s,o){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=s,this.el=o,this.commands=null,this.onChanges=new U,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const i=this.renderer,r=this.el.nativeElement;null!==e?i.setAttribute(r,"tabindex",e):i.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:Tl(this.skipLocationChange),replaceUrl:Tl(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Tl(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(V(ci),V(Gi),dr("tabindex"),V(_s),V(nt))},n.\u0275dir=De({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,i){1&e&&Oe("click",function(){return i.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[on]}),n})(),Of=(()=>{class n{constructor(e,i,r){this.router=e,this.route=i,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new U,this.subscription=e.events.subscribe(s=>{s instanceof gu&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,r,s,o){if(0!==e||i||r||s||o||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const a={skipLocationChange:Tl(this.skipLocationChange),replaceUrl:Tl(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Tl(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(V(ci),V(Gi),V(il))},n.\u0275dir=De({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&Oe("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&e&&_t("target",i.target)("href",i.href,od)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[on]}),n})();function Tl(n){return""===n||!!n}class hx{}class fx{preload(t,e){return Qe(null)}}let px=(()=>{class n{constructor(e,i,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new cx(r,i,d=>e.triggerEvent(new _S(d)),d=>e.triggerEvent(new yS(d)))}setUpPreloading(){this.subscription=this.router.events.pipe($t(e=>e instanceof gu),dl(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(ys);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const s of i)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const o=s._loadedConfig;r.push(this.processRoutes(o.module,o.routes))}else s.loadChildren&&!s.canLoad?r.push(this.preloadConfig(e,s)):s.children&&r.push(this.processRoutes(e,s.children));return Re(r).pipe(be(),L(s=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?Qe(i._loadedConfig):this.loader.load(e.injector,i)).pipe(Rt(s=>(i._loadedConfig=s,this.processRoutes(s.module,s.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(ue(ci),ue(I2),ue(Dn),ue(hx))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),u_=(()=>{class n{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Yv?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof gu&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof bS&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new bS(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){Wa()},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const sa=new Ie("ROUTER_CONFIGURATION"),mx=new Ie("ROUTER_FORROOT_GUARD"),dG=[kc,{provide:TS,useClass:IS},{provide:ci,useFactory:function vG(n,t,e,i,r,s,o={},a,d){const C=new ci(null,n,t,e,i,r,DS(s));return a&&(C.urlHandlingStrategy=a),d&&(C.routeReuseStrategy=d),function _G(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(t.canceledNavigationResolution=n.canceledNavigationResolution)}(o,C),o.enableTracing&&C.events.subscribe(k=>{var N,G;null===(N=console.group)||void 0===N||N.call(console,`Router Event: ${k.constructor.name}`),console.log(k.toString()),console.log(k),null===(G=console.groupEnd)||void 0===G||G.call(console)}),C},deps:[TS,Du,kc,Dn,I2,c_,sa,[class tG{},new xi],[lx,new xi]]},Du,{provide:Gi,useFactory:function yG(n){return n.routerState.root},deps:[ci]},px,fx,class uG{preload(t,e){return e().pipe(lo(()=>Qe(null)))}},{provide:sa,useValue:{enableTracing:!1}}];function hG(){return new N2("Router",ci)}let fG=(()=>{class n{constructor(e,i){}static forRoot(e,i){return{ngModule:n,providers:[dG,gx(e),{provide:mx,useFactory:gG,deps:[[ci,new xi,new Yr]]},{provide:sa,useValue:i||{}},{provide:il,useFactory:mG,deps:[To,[new td(pm),new xi],sa]},{provide:u_,useFactory:pG,deps:[ci,R8,sa]},{provide:hx,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:fx},{provide:N2,multi:!0,useFactory:hG},[d_,{provide:Td,multi:!0,useFactory:bG,deps:[d_]},{provide:vx,useFactory:wG,deps:[d_]},{provide:T2,multi:!0,useExisting:vx}]]}}static forChild(e){return{ngModule:n,providers:[gx(e)]}}}return n.\u0275fac=function(e){return new(e||n)(ue(mx,8),ue(ci,8))},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();function pG(n,t,e){return e.scrollOffset&&t.setOffset(e.scrollOffset),new u_(n,t,e)}function mG(n,t,e={}){return e.useHash?new vO(n,t):new tC(n,t)}function gG(n){return"guarded"}function gx(n){return[{provide:Jk,multi:!0,useValue:n},{provide:c_,multi:!0,useValue:n}]}let d_=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new U}appInitializer(){return this.injector.get(pO,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const r=new Promise(a=>i=a),s=this.injector.get(ci),o=this.injector.get(sa);return"disabled"===o.initialNavigation?(s.setUpLocationChangeListener(),i(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(s.hooks.afterPreactivation=()=>this.initNavigation?Qe(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),s.initialNavigation()):i(!0),r})}bootstrapListener(e){const i=this.injector.get(sa),r=this.injector.get(px),s=this.injector.get(u_),o=this.injector.get(ci),a=this.injector.get(Sc);e===a.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&o.initialNavigation(),r.setUpPreloading(),s.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(ue(Dn))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();function bG(n){return n.appInitializer.bind(n)}function wG(n){return n.bootstrapListener.bind(n)}const vx=new Ie("Router Initializer"),fo=new j(Ss),xu="Service workers are disabled or not supported by this browser";class Ff{constructor(t){if(this.serviceWorker=t,t){const i=Hr(t,"controllerchange").pipe(L(()=>t.controller)),s=Fc(Yo(()=>Qe(t.controller)),i);this.worker=s.pipe($t(k=>!!k)),this.registration=this.worker.pipe(Xn(()=>t.getRegistration()));const C=Hr(t,"message").pipe(L(k=>k.data)).pipe($t(k=>k&&k.type)).pipe(function DG(n){return n?Dr(()=>new U,n):Dr(new U)}());C.connect(),this.events=C}else this.worker=this.events=this.registration=function MG(n){return Yo(()=>Ro(new Error(n)))}(xu)}postMessage(t,e){return this.worker.pipe(ln(1),ri(i=>{i.postMessage(Object.assign({action:t},e))})).toPromise().then(()=>{})}postMessageWithOperation(t,e,i){const r=this.waitForOperationCompleted(i),s=this.postMessage(t,e);return Promise.all([s,r]).then(([,o])=>o)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(t){let e;return e="string"==typeof t?i=>i.type===t:i=>t.includes(i.type),this.events.pipe($t(e))}nextEventOfType(t){return this.eventsOfType(t).pipe(ln(1))}waitForOperationCompleted(t){return this.eventsOfType("OPERATION_COMPLETED").pipe($t(e=>e.nonce===t),ln(1),L(e=>{if(void 0!==e.result)return e.result;throw new Error(e.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let EG=(()=>{class n{constructor(e){if(this.sw=e,this.subscriptionChanges=new U,!e.isEnabled)return this.messages=fo,this.notificationClicks=fo,void(this.subscription=fo);this.messages=this.sw.eventsOfType("PUSH").pipe(L(r=>r.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(L(r=>r.data)),this.pushManager=this.sw.registration.pipe(L(r=>r.pushManager));const i=this.pushManager.pipe(Xn(r=>r.getSubscription()));this.subscription=Ae(i,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(e){if(!this.sw.isEnabled)return Promise.reject(new Error(xu));const i={userVisibleOnly:!0};let r=this.decodeBase64(e.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),s=new Uint8Array(new ArrayBuffer(r.length));for(let o=0;oo.subscribe(i)),ln(1)).toPromise().then(o=>(this.subscriptionChanges.next(o),o))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe(ln(1),Xn(i=>{if(null===i)throw new Error("Not subscribed to push notifications.");return i.unsubscribe().then(r=>{if(!r)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(xu))}decodeBase64(e){return atob(e)}}return n.\u0275fac=function(e){return new(e||n)(ue(Ff))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),SG=(()=>{class n{constructor(e){if(this.sw=e,!e.isEnabled)return this.versionUpdates=fo,this.available=fo,this.activated=fo,void(this.unrecoverable=fo);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY"]),this.available=this.versionUpdates.pipe($t(i=>"VERSION_READY"===i.type),L(i=>({type:"UPDATE_AVAILABLE",current:i.currentVersion,available:i.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(xu));const e=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:e},e)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(xu));const e=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:e},e)}}return n.\u0275fac=function(e){return new(e||n)(ue(Ff))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();class h_{}const _x=new Ie("NGSW_REGISTER_SCRIPT");function xG(n,t,e,i){return()=>{if(!km(i)||!("serviceWorker"in navigator)||!1===e.enabled)return;let s;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof e.registrationStrategy)s=e.registrationStrategy();else{const[a,...d]=(e.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":s=Qe(null);break;case"registerWithDelay":s=yx(+d[0]||0);break;case"registerWhenStable":s=d[0]?Ae(bx(n),yx(+d[0])):bx(n);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${e.registrationStrategy}`)}}n.get(ct).runOutsideAngular(()=>s.pipe(ln(1)).subscribe(()=>navigator.serviceWorker.register(t,{scope:e.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function yx(n){return Qe(null).pipe(Yh(n))}function bx(n){return n.get(Sc).isStable.pipe($t(e=>e))}function kG(n,t){return new Ff(km(t)&&!1!==n.enabled?navigator.serviceWorker:void 0)}let AG=(()=>{class n{static register(e,i={}){return{ngModule:n,providers:[{provide:_x,useValue:e},{provide:h_,useValue:i},{provide:Ff,useFactory:kG,deps:[h_,nl]},{provide:Td,useFactory:xG,deps:[Dn,_x,h_,nl],multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[EG,SG]}),n})(),wx=(()=>{class n{constructor(){this.gsiLoadedSource=new Oo(1);const e=document.createElement("script");e.src="https://accounts.google.com/gsi/client",e.type="text/javascript",e.onload=()=>{this.gsiLoadedSource.next(!0),this.gsiLoadedSource.complete()},document.getElementsByTagName("head")[0].appendChild(e)}onLoad(){return this.gsiLoadedSource}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const Cx=new Ie("gsi.config");let f_=(()=>{class n{constructor(e,i){this.gsiLoader=i,this.clientLoaded=new Oo(1),this.gapiLoaded=new Oo(1),this.loadGapi(),Zm([this.onLoad(),this.gsiLoader.onLoad()]).subscribe(()=>{this.client=google.accounts.oauth2.initTokenClient({client_id:e.client_id,scope:e.scope,callback:()=>{},prompt:e.prompt||""}),this.clientLoaded.next(this.client),this.clientLoaded.complete()})}onClientLoaded(){return this.clientLoaded}onLoad(){return this.gapiLoaded}loadGapi(){const e=document.createElement("script");e.src="https://apis.google.com/js/api.js",e.type="text/javascript",e.onload=()=>{gapi.load("client",()=>{gapi.client.init({}).then(()=>{this.gapiLoaded.next(!0),this.gapiLoaded.complete()})})},document.getElementsByTagName("head")[0].appendChild(e)}}return n.\u0275fac=function(e){return new(e||n)(ue(Cx),ue(wx))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();function At(n,t,e,i){return new(e||(e=Promise))(function(s,o){function a(k){try{C(i.next(k))}catch(N){o(N)}}function d(k){try{C(i.throw(k))}catch(N){o(N)}}function C(k){k.done?s(k.value):function r(s){return s instanceof e?s:new e(function(o){o(s)})}(k.value).then(a,d)}C((i=i.apply(n,t||[])).next())})}const Nf="accessToken",m_="accessTokenRefresh";let g_=(()=>{class n{constructor(e){this.googleApiLoader=e,this.accessTokenSource=new Oo(1),this.googleApiLoader.onClientLoaded().subscribe(i=>this.checkStoredAccessToken(i))}checkStoredAccessToken(e){this.tokenClient=e;const i=localStorage.getItem(Nf);i&&(this.isTokenValid()?(console.log("reusing stored access token"),this.accessToken||(this.accessToken=i,gapi.client.setToken({access_token:this.accessToken}),this.accessTokenSource.next(this.accessToken))):this.fetchAccessToken())}isTokenValid(){const e=localStorage.getItem(Nf),i=parseInt(localStorage.getItem(m_)),r=(new Date).getTime();return e&&r{this.isTokenValid()?e(this.accessToken):this.googleApiLoader.onClientLoaded().subscribe(i=>{this.tokenClient=i,i.callback=r=>{e(this.handleAccessToken(r))},i.requestAccessToken()})})})}handleAccessToken(e){this.accessToken=e.access_token;const i=800*e.expires_in;return localStorage.setItem(Nf,this.accessToken),localStorage.setItem(m_,((new Date).getTime()+i).toString()),this.accessTokenSource.next(this.accessToken),this.accessToken}invalidate(){this.accessToken&&this.tokenClient&&(localStorage.removeItem(Nf),localStorage.removeItem(m_),this.accessToken="",this.accessTokenSource.next(this.accessToken))}}return n.\u0275fac=function(e){return new(e||n)(ue(f_))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),oa=(()=>{class n{constructor(e){this.accessTokenService=e,this.authState.subscribe(i=>{this.signedIn=!!i,this.signInPending=!1})}get authState(){return this.accessTokenService.accessTokenSource}signIn(){this.signInPending=!0,this.accessTokenService.fetchAccessToken()}refresh(){return this.accessTokenService.fetchAccessToken()}signOut(){this.accessTokenService.invalidate()}isSignedIn(){return this.signedIn}isSignInPending(){return this.signInPending}}return n.\u0275fac=function(e){return new(e||n)(ue(g_))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),FG=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[e,g_,f_,oa,wx]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Ri]]}),n})();var ku=M(1259),Il=M.n(ku);class Lf{constructor(t,e,i){this.tuneBook=t,this.descriptor=e,this.abc=i}}let xx=(()=>{class n{constructor(e){this.httpClient=e}loadTuneBook(e){return At(this,void 0,void 0,function*(){const i=yield this.httpClient.get(`assets/${e.uri}`,{responseType:"text"}).toPromise(),r=new ku.TuneBook(i);return new Lf(r,e,i)})}loadTuneBookCollection(){return At(this,void 0,void 0,function*(){return this.httpClient.get("assets/tunebook-collection.json").toPromise()})}}return n.\u0275fac=function(e){return new(e||n)(ue(hl))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();class PG{constructor(){this.boundary=Math.random().toString(36).slice(2),this.mimeType='multipart/related; boundary="'+this.boundary+'"',this.parts=[]}append(t,e){if(void 0!==this.body)throw new Error("Builder has already been finalized.");return this.parts.push("\r\n--",this.boundary,"\r\n","Content-Type: ",t,"\r\n\r\n",e),this}finish(){if(0===this.parts.length)throw new Error("No parts have been added.");return void 0===this.body&&(this.parts.push("\r\n--",this.boundary,"--"),this.body=this.parts.join("")),{type:this.mimeType,body:this.body}}}let Rl=(()=>{class n{constructor(e,i){this.googleApiLoader=e,this.googleAuth=i,this.driveApiLoaded=new Oo(1),this.log=(0,Kd.getLogger)("GoogleDriveService"),this.googleAuth.authState.subscribe(r=>{this.signedIn=!!r}),this.googleApiLoader.onClientLoaded().subscribe(r=>{gapi.client.load("drive","v3").then(()=>{this.log.info("Google Drive client initialized"),this.driveApiLoaded.next(!0),this.driveApiLoaded.complete()})})}isSignedIn(){return At(this,void 0,void 0,function*(){return!(!this.signedIn&&!this.googleAuth.isSignInPending())&&this.googleAuth.refresh().then(()=>!0)})}createTextFile(e,i){return At(this,void 0,void 0,function*(){if(yield this.isSignedIn())try{const r=yield this.findOrCreateFolder("Tune Browser"),s={name:e,mimeType:"text/plain",parents:[r]},o=(new PG).append("application/json",JSON.stringify(s)).append("text/plain",i).finish(),a=yield gapi.client.request({path:"/upload/drive/v3/files",method:"POST",params:{uploadType:"multipart"},headers:{"Content-Type":o.type},body:o.body});return this.log.info("Created file with id = {}",a.result.id),a.result.id}catch(r){return this.log.error("Error creating file",r),null}})}updateTextFile(e,i){return At(this,void 0,void 0,function*(){if(yield this.isSignedIn()){try{const r=yield gapi.client.request({path:"/upload/drive/v3/files/"+e,method:"PATCH",params:{uploadType:"media"},headers:{"Content-Type":"text/plain"},body:i});if(200===r.status)return this.log.info("Updated file with id = {}",r.result.id),r.result.id}catch(r){this.log.error("Error updating file",r)}return null}})}getTextFile(e){return At(this,void 0,void 0,function*(){return(yield gapi.client.drive.files.get({fileId:e,alt:"media"})).body})}listTextFiles(e){return At(this,void 0,void 0,function*(){return(yield this.isSignedIn())?(yield gapi.client.drive.files.list({q:`'${e}' in parents`,pageSize:100})).result.files.map(r=>this.toRef(r)):[]})}toRef(e){return{id:e.id,name:e.name}}createFolder(e){return At(this,void 0,void 0,function*(){const i=yield gapi.client.drive.files.create({resource:{name:e,mimeType:"application/vnd.google-apps.folder"}});return this.log.info(`Created folder ${e} with id = ${i.result.id}`),i.result.id})}findOrCreateFolder(e){return At(this,void 0,void 0,function*(){if(!(yield this.isSignedIn()))return;const r=(yield gapi.client.drive.files.list({q:`name = "${e}" and "root" in parents`})).result.files;return 1===r.length?r[0].id:this.createFolder(e)})}}return n.\u0275fac=function(e){return new(e||n)(ue(f_),ue(oa))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const kx="tunebook-collection.json";let Ax=(()=>{class n{constructor(e){this.googleDrive=e}loadTuneBook(e){return At(this,void 0,void 0,function*(){const i=yield this.googleDrive.getTextFile(e.uri),r=new ku.TuneBook(i);return new Lf(r,e,i)})}loadTuneBookCollection(){return At(this,void 0,void 0,function*(){const e=yield this.googleDrive.findOrCreateFolder("Tune Browser");if(!e)return{books:[]};const r=(yield this.googleDrive.listTextFiles(e)).find(o=>o.name===kx);let s;return void 0===r?(s='{"books": []}',this.collectionFileId=yield this.googleDrive.createTextFile(kx,s)):(this.collectionFileId=r.id,s=yield this.googleDrive.getTextFile(r.id)),JSON.parse(s)})}updateTuneBookCollection(e){return At(this,void 0,void 0,function*(){return this.googleDrive.updateTextFile(this.collectionFileId,JSON.stringify(e))})}}return n.\u0275fac=function(e){return new(e||n)(ue(Rl))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();class BG{constructor(t,e,i,r,s,o,a,d){this.id=t,this.pos=e,this.book=i,this.title=r,this.titleNormalized=s,this.rhythm=o,this.key=a,this.tags=d}hasTag(t){return this.tags&&this.tags.indexOf(t)>=0}}let Rs=(()=>{class n{constructor(){this.logger=(0,Kd.getLogger)("TuneBookIndex"),this.idToBookMap=new Map,this.entries=[],this.tuneBookReadySource=new U,this.allReadySource=new oi(!1),this.tuneBookReady=this.tuneBookReadySource.asObservable(),this.allReady=this.allReadySource.asObservable(),this.defaultBook="learner"}isReady(){return this.entries.length>0}fireAllReady(){this.allReadySource.next(!0)}addTuneBook(e){this.idToBookMap.set(e.descriptor.id,e),e.tuneBook.tunes.forEach((i,r)=>{this.entries.push(this.createEntry(i,r,e))}),this.tuneBookReadySource.next(e.descriptor.id)}updateTuneBook(e){this.deleteTuneBook(e),this.addTuneBook(e)}deleteTuneBook(e){this.idToBookMap.delete(e.descriptor.id),this.entries=this.entries.filter(i=>i.book!==e.descriptor.id)}createEntry(e,i,r){const s=this.findTuneDescriptor(e.id,r.descriptor),o=s&&s.tags,a=s&&s.rhythm,d=s&&s.key;return new BG(e.id,i,r.descriptor.id,e.title,this.normalize(e.title),a,d,o)}findTuneDescriptor(e,i){if(void 0!==i.tunes)return i.tunes.find(r=>r.id===e)}normalize(e){return e&&e.trim().toLocaleLowerCase()}findTunes(e){const i=e.title&&e.title.trim();if(this.startsWithDigit(i))return Array.from(this.idToBookMap.values()).filter(s=>e.matchesRef(s)).map(s=>this.findEntryById(s,i)).filter(s=>void 0!==s);{const r=this.normalize(i);return this.entries.filter(s=>this.matchesEntry(e,r,s))}}findEntryById(e,i){return this.entries.find(r=>r.book===e.descriptor.id&&r.id===i)}findEntryByTuneReference(e){return this.entries.find(i=>i.book===e.bookId&&i.id===e.tuneId)}setTagsForTune(e,i,r){const s=this.getBookById(i),o=this.findEntryById(s,e);s&&o?o.tags=r:this.logger.error(`Index entry not found for ${i}/${e}`)}matchesEntry(e,i,r){return!(!e.matchesName(r.book)||e.rhythm&&r.rhythm!==e.rhythm||e.key&&r.key!==e.key||e.tags&&!e.tags.find(s=>r.hasTag(s)))&&(!e.title||r.titleNormalized.includes(i))}getAbc(e){return this.idToBookMap.get(e.book).tuneBook.getTuneById(e.id).abc}findAllTunesInBook(e){var i;return null===(i=this.idToBookMap.get(e))||void 0===i?void 0:i.tuneBook.tunes}getBooks(){return Array.from(this.idToBookMap.values())}getBook(e){return this.idToBookMap.get(e.book)}getBookById(e){return this.idToBookMap.get(e)}startsWithDigit(e){if(!e)return!1;const i=e.charAt(0);return"0"<=i&&i<="9"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),Ol=(()=>{class n{constructor(e,i,r){this.websiteLoader=e,this.driveLoader=i,this.index=r,this.collection={books:[]},this.loadedBookIds=[],this.collectionLoadedSource=new Oo(1),this.loaders=[this.websiteLoader,this.driveLoader],this.collectionLoaded=this.collectionLoadedSource.asObservable()}loadCollections(){this.collection.books=[],this.loaders.forEach(e=>this.loadCollection(e))}getBooks(){return this.collection.books.map(e=>new Lf(null,e,""))}addBook(e){return At(this,void 0,void 0,function*(){this.collection.books.push(e);const i=new Lf(new ku.TuneBook(""),e,"");this.index.addTuneBook(i);const r=yield this.driveLoader.updateTuneBookCollection(this.extractUserCollection(this.collection));return this.collectionLoadedSource.next(""),r})}removeBook(e){return At(this,void 0,void 0,function*(){this.collection.books.forEach((r,s)=>{r.id===e&&this.collection.books.splice(s,1)});const i=yield this.driveLoader.updateTuneBookCollection(this.extractUserCollection(this.collection));return this.collectionLoadedSource.next(""),i})}setTagsForTune(e,i,r){return At(this,void 0,void 0,function*(){const s=this.collection.books.find(d=>d.id===i);void 0===s.tunes&&(s.tunes=[]);const o=s.tunes.find(d=>d.id===e);void 0===o?s.tunes.push({id:e,tags:r}):o.tags=r,this.index.setTagsForTune(e,i,r);const a=yield this.driveLoader.updateTuneBookCollection(this.extractUserCollection(this.collection));return this.collectionLoadedSource.next(""),a})}extractUserCollection(e){const i={books:[]};for(const r of e.books)if("googledrive"===r.storage)i.books.push(r);else{const s=this.extractTaggedTunes(r);i.books.push(s)}return i}extractTaggedTunes(e){const i={id:e.id,storage:e.storage,uri:e.uri,name:e.name,description:e.description,tunes:[]};for(const r of e.tunes)r.tags&&i.tunes.push({id:r.id,tags:r.tags});return i}loadCollection(e){return At(this,void 0,void 0,function*(){const i=yield e.loadTuneBookCollection();this.loadAndMergeCollections(this.collection,i),this.collectionLoadedSource.next("")})}loadAndMergeCollections(e,i){i.books.forEach(r=>{const s=this.mergeBooks(e.books,r);this.loadBook(s)})}mergeCollections(e,i){i.books.forEach(r=>this.mergeBooks(e.books,r))}mergeBooks(e,i){const r=e.find(s=>s.id===i.id);return void 0===r?(e.push(i),i):(i.tunes&&(void 0===r.tunes?r.tunes=i.tunes:this.mergeTunes(r.tunes,i.tunes)),r)}mergeTunes(e,i){i.forEach(r=>{const s=e.find(o=>o.id===r.id);void 0===s?e.push(r):this.mergeTune(s,r)})}mergeTune(e,i){if(void 0===e.key&&(e.key=i.key),void 0===e.rhythm&&(e.rhythm=i.rhythm),void 0===e.tags)e.tags=i.tags;else if(i.tags){const r=new Set(e.tags);i.tags.forEach(s=>r.add(s)),e.tags=Array.from(r.keys())}}addTagsToIndex(){for(const e of this.collection.books)if(e.tunes)for(const i of e.tunes)i.tags&&this.index.setTagsForTune(i.id,e.id,i.tags);this.index.fireAllReady()}loadBook(e){return At(this,void 0,void 0,function*(){if(this.loadedBookIds.indexOf(e.id)>=0)return;const r=yield this.selectLoader(e).loadTuneBook(e);return this.loadedBookIds.push(e.id),this.index.addTuneBook(r),this.loadedBookIds.length===this.collection.books.length&&this.addTagsToIndex(),r})}selectLoader(e){return"googledrive"===e.storage?this.driveLoader:this.websiteLoader}}return n.\u0275fac=function(e){return new(e||n)(ue(xx),ue(Ax),ue(Rs))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const VG=["snav"];function HG(n,t){if(1&n){const e=In();oe(0,"button",18),Oe("click",function(){return Qt(e),Ue(2),Us(3).toggle()}),oe(1,"mat-icon"),we(2,"menu"),le()()}}function jG(n,t){if(1&n&&(oe(0,"mat-toolbar",15),ze(1,HG,3,0,"button",16),oe(2,"h1",17),we(3,"Tune Browser"),le()()),2&n){const e=Ue();he(1),ge("ngIf",e.isHandset)}}function zG(n,t){if(1&n){const e=In();oe(0,"a",19),Oe("click",function(){return Qt(e),Ue().onClick()}),oe(1,"mat-icon"),we(2,"music_note"),le(),oe(3,"span",5),we(4,"Practice"),le()()}}function UG(n,t){if(1&n){const e=In();oe(0,"a",20),Oe("click",function(){return Qt(e),Ue().onClick()}),oe(1,"mat-icon"),we(2,"work"),le(),oe(3,"span",5),we(4,"Repertoire"),le()()}}function $G(n,t){if(1&n){const e=In();oe(0,"a",21),Oe("click",function(){return Qt(e),Ue().onClick()}),oe(1,"mat-icon"),we(2,"exit_to_app"),le(),oe(3,"span",5),we(4,"Log in"),le()()}}function GG(n,t){if(1&n){const e=In();oe(0,"a",22),Oe("click",function(){return Qt(e),Ue().onClick()}),oe(1,"mat-icon"),we(2,"cancel"),le(),oe(3,"span",5),we(4,"Log out"),le()()}}let WG=(()=>{class n{constructor(e,i,r,s,o,a){this.breakpointObserver=e,this.collectionService=i,this.accessTokenService=r,this.googleDriveService=s,this.zone=o,this.scroll=a,this.isHandset=!1,this.toolbarVisible=!0,this.breakpointObserver.observe(["(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"]).subscribe(d=>{this.isHandset=d.matches}),this.scroll.scrolled().subscribe(d=>{this.zone.run(()=>this.onWindowScroll(d))}),this.googleDriveService.driveApiLoaded.subscribe(d=>{this.accessTokenService.accessTokenSource.subscribe(C=>{this.zone.run(()=>{this.signedIn=!!C,this.collectionService.loadCollections()})})})}sidenavMode(){return this.isHandset?"over":"side"}onClick(){this.isHandset&&this.sidenav.close()}ngOnInit(){return At(this,void 0,void 0,function*(){this.collectionService.loadCollections()})}onWindowScroll(e){const i=e.getElementRef().nativeElement.scrollTop||0;let r=this.toolbarVisible;this.lastOffset>i+10||i<10?r=!0:i>50&&(r=!1),this.lastOffset=i,this.toolbarVisible=!this.isHandset||r}}return n.\u0275fac=function(e){return new(e||n)(V(Vm),V(Ol),V(g_),V(Rl),V(ct),V(ul))},n.\u0275cmp=Ge({type:n,selectors:[["app-root"]],viewQuery:function(e,i){if(1&e&&jt(VG,5),2&e){let r;He(r=je())&&(i.sidenav=r.first)}},decls:33,vars:7,consts:[["color","primary",4,"ngIf"],[1,"full-height"],[3,"mode","opened"],["snav",""],["mat-list-item","","routerLink","/search",3,"click"],[1,"nav-caption"],["mat-list-item","","routerLink","/record",3,"click"],["mat-list-item","","routerLink","/books",3,"click"],["mat-list-item","","routerLink","/practice",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/repertoire",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/login",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/logout",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/about",3,"click"],["cdkScrollable",""],[1,"main-content"],["color","primary"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"irish"],["mat-icon-button","",3,"click"],["mat-list-item","","routerLink","/practice",3,"click"],["mat-list-item","","routerLink","/repertoire",3,"click"],["mat-list-item","","routerLink","/login",3,"click"],["mat-list-item","","routerLink","/logout",3,"click"]],template:function(e,i){1&e&&(ze(0,jG,4,1,"mat-toolbar",0),oe(1,"mat-sidenav-container",1)(2,"mat-sidenav",2,3)(4,"mat-nav-list")(5,"a",4),Oe("click",function(){return i.onClick()}),oe(6,"mat-icon"),we(7,"search"),le(),oe(8,"span",5),we(9,"Search"),le()(),oe(10,"a",6),Oe("click",function(){return i.onClick()}),oe(11,"mat-icon"),we(12,"mic"),le(),oe(13,"span",5),we(14,"Recognize"),le()(),oe(15,"a",7),Oe("click",function(){return i.onClick()}),oe(16,"mat-icon"),we(17,"list"),le(),oe(18,"span",5),we(19,"Browse"),le()(),ze(20,zG,5,0,"a",8),ze(21,UG,5,0,"a",9),ze(22,$G,5,0,"a",10),ze(23,GG,5,0,"a",11),oe(24,"a",12),Oe("click",function(){return i.onClick()}),oe(25,"mat-icon"),we(26,"info"),le(),oe(27,"span",5),we(28,"About"),le()()()(),oe(29,"mat-sidenav-content",13)(30,"div")(31,"div",14),yt(32,"router-outlet"),le()()()()),2&e&&(ge("ngIf",i.toolbarVisible),he(2),ge("mode",i.sidenavMode())("opened",!i.isHandset),he(18),ge("ngIf",i.signedIn),he(1),ge("ngIf",i.signedIn),he(1),ge("ngIf",!i.signedIn),he(1),ge("ngIf",i.signedIn))},directives:[hi,aU,Fi,cu,QE,XE,WH,uu,Of,xv,Ks,s_],styles:[""]}),n})(),YG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ge({type:n,selectors:[["app-about"]],decls:61,vars:0,consts:[[1,"mat-body"],[1,"mat-h2"],[1,"mat-h3"],["href","https://tunepal.org"],["href","https://thesession.org"]],template:function(e,i){1&e&&(oe(0,"div",0)(1,"h2",1),we(2,"About Tune Browser"),le(),oe(3,"h3",2),we(4,"Release"),le(),oe(5,"p"),we(6,"Version: 0.28.2 (2023-11-08)"),le(),oe(7,"h3",2),we(8,"Features"),le(),oe(9,"ul")(10,"li"),we(11,"Browse tune books in ABC notation"),le(),oe(12,"li"),we(13,"Create PDF files of tunes or books for printing"),le(),oe(14,"li"),we(15,"Create and edit your own tune books on Google Drive"),le(),oe(16,"li"),we(17,"Add tags to tunes (requires Google Drive)"),le(),oe(18,"li"),we(19,"Find tunes by title or number, key, rhythm, books or tags"),le(),oe(20,"li"),we(21,"Play tunes and adjust tempo"),le(),oe(22,"li"),we(23,"Create repertoires and get practice assignments (requires Google Drive)"),le(),oe(24,"li"),we(25,"Record audio samples and recognize tunes from thesession.org"),le()(),oe(26,"h3",2),we(27,"Getting started"),le(),oe(28,"p"),we(29," Tune Browser is a web application which should work in any modern web browser, including mobile browsers on smartphones or tablets. "),le(),oe(30,"p"),we(31," On mobile devices, you can create a shortcut on your home screen which makes Tune Browser work in full screen mode, almost like a native app, without requiring installation from Play Store or App Store. "),le(),oe(32,"p"),we(33," If you have a Google account, you can create and edit your own tune books and store them on Google Drive. Before you can do so, you will have to log in to your Google account from Tune Browser. The login dialogue uses a separate browser window which directly communicates with Google. Tune Browser will create a folder "),oe(34,"code"),we(35,"Tune Browser"),le(),we(36," containing your tune books. "),le(),oe(37,"h3",2),we(38,"Practicing"),le(),oe(39,"p"),we(40," With a Google account, you can create one or more repertoires (e.g. for different instruments) with tunes from existing books and generate daily practice assignments. "),le(),oe(41,"p"),we(42," For each tune in a given repertoire, Tune Browser records the date you last practiced the tune and the date you added it. Based on this information, new tunes will be included in your assignment every day for the first week, and then in longer intervals in the following weeks. Older tunes will be rescheduled once a month. Some randomness gets applied to avoid repetitive assignments. "),le(),oe(43,"h3",2),we(44,"Recognize tunes"),le(),oe(45,"p"),we(46," You can record audio snippets and recognize tunes based on Bryan Duggan's MATT2 matching algorithm as published in "),oe(47,"a",3),we(48,"tunepal.org"),le(),we(49,". "),le(),oe(50,"p"),we(51," Tune Browser matches your audio against the tune corpus of "),oe(52,"a",4),we(53,"thesession.org"),le(),we(54,". The best matches are listed by confidence level and are linked to the corresponding pages on thesession.org. "),le(),oe(55,"h3",2),we(56,"Privacy"),le(),oe(57,"p"),we(58,"Tune Browser does not collect any personal data from its users."),le(),oe(59,"p"),we(60," Tune Browser is hosted on GitHub Pages and on Google Cloud Run. It optionally uses Google Drive for storing your tune books. If you are worried about privacy, please review the terms of service of these providers. Tune Browser has no influence on user tracking performed by these services. "),le()())},encapsulation:2}),n})(),Bf=(()=>{class n{constructor(e){this.httpClient=e}saveAsPdf(e){this.httpClient.post("https://abc2pdf-vkhoermztq-ew.a.run.app/print",'\n%%header "$P0\t\t$P1"\n%%titleformat "T, R-1 C1"\n%%pagewidth 21cm\n%%pageheight 29.7cm\n%%topmargin 1.5cm\n%%botmargin 1.5cm\n%%leftmargin 1.5cm\n%%rightmargin 1.5cm\n%%topspace 0cm\n'+e,{responseType:"arraybuffer"}).subscribe(i=>this.downloadFile(i,"application/pdf"))}downloadFile(e,i){const r=document.createElement("a");r.href=window.URL.createObjectURL(new Blob([e],{type:i})),r.target="pdf",document.body.appendChild(r),r.click(),r.parentNode.removeChild(r)}}return n.\u0275fac=function(e){return new(e||n)(ue(hl))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),KG=(()=>{class n{constructor(e,i,r,s){this.route=e,this.router=i,this.index=r,this.pdfService=s,this.index.tuneBookReady.subscribe(o=>this.onReady(o)),this.route.paramMap.subscribe(o=>{this.bookId=o.get("id"),this.onReady(this.bookId)})}onReady(e){const i=this.index.findAllTunesInBook(e).map(s=>s.abc).join("\n"),r=this.index.getBookById(e).descriptor.name;this.pdfService.saveAsPdf(`%%footer ${r}\n${i}`),this.router.navigate(["/books"])}}return n.\u0275fac=function(e){return new(e||n)(V(Gi),V(ci),V(Rs),V(Bf))},n.\u0275cmp=Ge({type:n,selectors:[["app-book-print"]],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})();function XG(n,t){1&n&&(oe(0,"mat-icon"),we(1,"edit"),le())}function QG(n,t){if(1&n&&(oe(0,"mat-list-item")(1,"div",4)(2,"button",5),ze(3,XG,2,0,"mat-icon",6),le()(),oe(4,"div",4)(5,"button",7)(6,"mat-icon"),we(7,"print"),le()()(),oe(8,"div",8)(9,"div",9),we(10),le(),oe(11,"div",10),we(12),le()()()),2&n){const e=t.$implicit,i=Ue();he(2),$s("routerLink","../edit/",e.descriptor.id,""),ge("disabled",!i.isEditable(e)),he(1),ge("ngIf",i.isEditable(e)),he(2),$s("routerLink","../print/",e.descriptor.id,""),he(4),$s("routerLink","../book/",e.descriptor.id,""),he(1),xn(e.descriptor.name),he(2),xn(e.descriptor.description)}}let ZG=(()=>{class n{constructor(e,i){this.collectionService=e,this.googleAuth=i,this.books=[],this.signedIn=!1,this.googleAuth.authState.subscribe(r=>{this.signedIn=!!r}),this.collectionService.collectionLoaded.subscribe(()=>this.books=this.collectionService.getBooks())}isEditable(e){return"googledrive"===e.descriptor.storage}}return n.\u0275fac=function(e){return new(e||n)(V(Ol),V(oa))},n.\u0275cmp=Ge({type:n,selectors:[["app-books-list"]],decls:7,vars:2,consts:[[1,"mat-h2"],[1,"tunebook-list"],[4,"ngFor","ngForOf"],["mat-raised-button","","routerLink","../createBook","color","primary",1,"create-book-button",3,"disabled"],[1,"tunebook-button"],["mat-icon-button","",3,"routerLink","disabled"],[4,"ngIf"],["mat-icon-button","",3,"routerLink"],[1,"tunebook-item"],[1,"tunebook-link",3,"routerLink"],[1,"tunebook-description"]],template:function(e,i){1&e&&(oe(0,"div")(1,"h2",0),we(2,"Tunebooks"),le(),oe(3,"mat-list",1),ze(4,QG,13,7,"mat-list-item",2),le(),oe(5,"button",3),we(6,"New Book"),le()()),2&e&&(he(4),ge("ngForOf",i.books),he(1),ge("disabled",!i.signedIn))},directives:[Jh,rs,uu,Fi,ho,hi,cu],encapsulation:2}),n})(),JG=(()=>{class n{constructor(e,i,r){this.snackBar=e,this.googleDrive=i,this.tuneBookCollectionService=r}createBook(){return At(this,void 0,void 0,function*(){const e=`${this.id}.abc`,i=yield this.googleDrive.createTextFile(e,""),r={description:this.description,id:this.id,name:this.title,storage:"googledrive",uri:i};yield this.tuneBookCollectionService.addBook(r),this.snackBar.open(`Created ${e} on Google Drive`,"Dismiss",{duration:3e3})})}}return n.\u0275fac=function(e){return new(e||n)(V(af),V(Rl),V(Ol))},n.\u0275cmp=Ge({type:n,selectors:[["app-create-book"]],decls:13,vars:3,consts:[[1,"mat-h2"],[1,"create-book-panel"],[1,"query"],["matInput","","name","title","type","text","placeholder","Title",3,"ngModel","ngModelChange"],["matInput","","name","description","type","text","placeholder","Description",3,"ngModel","ngModelChange"],["matInput","","name","id","type","text","placeholder","ID used in URL or file name",3,"ngModel","ngModelChange"],["mat-raised-button","","label","Create","color","primary",1,"create-book-button",3,"click"]],template:function(e,i){1&e&&(oe(0,"div")(1,"h2",0),we(2,"New tunebook"),le()(),oe(3,"div",1)(4,"form")(5,"mat-form-field",2)(6,"input",3),Oe("ngModelChange",function(s){return i.title=s}),le()(),oe(7,"mat-form-field",2)(8,"input",4),Oe("ngModelChange",function(s){return i.description=s}),le()(),oe(9,"mat-form-field",2)(10,"input",5),Oe("ngModelChange",function(s){return i.id=s}),le()(),oe(11,"button",6),Oe("click",function(){return i.createBook()}),we(12,"Create Book"),le()()()),2&e&&(he(6),ge("ngModel",i.title),he(2),ge("ngModel",i.description),he(2),ge("ngModel",i.id))},directives:[Yc,zc,Es,Jo,ea,ss,eo,Bo,Fi],encapsulation:2}),n})(),eW=(()=>{class n{constructor(e,i,r,s){this.route=e,this.router=i,this.zone=r,this.googleAuth=s,this.loginPending=!1,this.route.url.subscribe(o=>this.onAction()),this.googleAuth.authState.subscribe(o=>{this.loginPending&&(this.loginPending=!1,this.zone.run(()=>this.router.navigate(["/books"])))})}onAction(){this.loginPending=!0,this.googleAuth.signIn()}}return n.\u0275fac=function(e){return new(e||n)(V(Gi),V(ci),V(ct),V(oa))},n.\u0275cmp=Ge({type:n,selectors:[["app-login"]],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),tW=(()=>{class n{constructor(e,i,r){this.route=e,this.router=i,this.googleAuth=r,this.route.url.subscribe(()=>this.onAction())}onAction(){this.googleAuth.signOut(),this.router.navigate(["/books"])}}return n.\u0275fac=function(e){return new(e||n)(V(Gi),V(ci),V(oa))},n.\u0275cmp=Ge({type:n,selectors:[["app-logout"]],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})();function Au(n){let t=n.replace(/^\d+[a-z]?\s*/,"");return t.endsWith(", The")&&(t=t.replace(/, The$/,""),t="The "+t),t}let Tx=(()=>{class n{constructor(e){this.httpClient=e}findBestMatches(e){return At(this,void 0,void 0,function*(){return this.httpClient.get("https://matt-vkhoermztq-ew.a.run.app/match/"+e).toPromise()})}}return n.\u0275fac=function(e){return new(e||n)(ue(hl))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();function oW(n,t){1&n&&yt(0,"mat-progress-bar",5)}function aW(n,t){if(1&n&&(oe(0,"mat-list-item")(1,"div",6)(2,"a",7),we(3),le(),oe(4,"div",8),we(5),le()(),oe(6,"div",9),we(7),le()()),2&n){const e=t.$implicit,i=Ue();he(2),qa("href","https://thesession.org/tunes/",e.tune,"#setting",e.setting,"",od),he(1),xn(i.title(e)),he(2),xn(i.getRhythmAndKey(e)),he(2),Rn(" ",i.confidencePercentage(e)," % ")}}let lW=(()=>{class n{constructor(e,i){this.route=e,this.tuneMatcher=i,this.route.paramMap.subscribe(r=>this.matchTranscription(r))}matchTranscription(e){return At(this,void 0,void 0,function*(){const i=e.get("transcription");this.tunes=yield this.tuneMatcher.findBestMatches(i)})}confidencePercentage(e){return Math.round(100*e.confidence)}title(e){return Au(e.name)}getRhythmAndKey(e){return`${e.rhythm} in ${e.key}`}}return n.\u0275fac=function(e){return new(e||n)(V(Gi),V(Tx))},n.\u0275cmp=Ge({type:n,selectors:[["app-matcher"]],decls:6,vars:2,consts:[[1,"mat-h2"],["id","progress"],["mode","indeterminate",4,"ngIf"],[1,"tune-list"],[4,"ngFor","ngForOf"],["mode","indeterminate"],[1,"tune-item"],["target","thesession",1,"tune-link","md-accent",3,"href"],[1,"mat-small"],[1,"confidence"]],template:function(e,i){1&e&&(oe(0,"h2",0),we(1,"Matching tunes"),le(),oe(2,"div",1),ze(3,oW,1,0,"mat-progress-bar",2),le(),oe(4,"mat-list",3),ze(5,aW,8,5,"mat-list-item",4),le()),2&e&&(he(3),ge("ngIf",!i.tunes),he(2),ge("ngForOf",i.tunes))},directives:[hi,VE,Jh,rs,uu],encapsulation:2}),n})();const Ix="repertoire-collection.json",v_=[1,1,1,1,1,1,2,2,2,3,3,6,6,15];function uW(n,t){return"added"===n||"due"===n||"lastPracticed"===n?new Date(t):"items"===n?t.map(e=>new Rx(e.tune,e.added,e.timesPracticed,e.lastPracticed)):"instrument"!==n?t:void(this.name=t)}function dW(n,t){if("due"!==n)return t}class Rx{constructor(t,e,i,r){this.tune=t,this.added=e,this.timesPracticed=i,this.lastPracticed=r}practicedOn(t){this.lastPracticed=t,this.timesPracticed++}referencedBy(t){return!!t&&this.tune.bookId===t.bookId&&this.tune.tuneId===t.tuneId}}let Tu=(()=>{class n{constructor(e){this.googleDrive=e}load(){return At(this,void 0,void 0,function*(){if(!(yield this.googleDrive.isSignedIn()))return{repertoires:[]};if(this.repertoireCollection)return this.repertoireCollection;const e=yield this.googleDrive.findOrCreateFolder("Tune Browser"),r=(yield this.googleDrive.listTextFiles(e)).find(o=>o.name===Ix);let s;return void 0===r?(s='{"repertoires": []}',this.collectionFileId=yield this.googleDrive.createTextFile(Ix,s)):(this.collectionFileId=r.id,s=yield this.googleDrive.getTextFile(r.id)),this.repertoireCollection=JSON.parse(s,uW),this.repertoireCollection})}saveCollection(e){return At(this,void 0,void 0,function*(){return this.googleDrive.updateTextFile(this.collectionFileId,JSON.stringify(e,dW))})}save(){return At(this,void 0,void 0,function*(){return this.repertoireCollection?this.saveCollection(this.repertoireCollection):null})}addRepertoireItem(e,i){return At(this,void 0,void 0,function*(){const r=yield this.load();let s=yield this.findRepertoire(i.name);void 0===s&&(s={name:i.name,maxAge:30,numTunesPerAssignment:10,items:[]},r.repertoires.push(s),r.current=i.name);const o=s.items.find(a=>a.referencedBy(e));return o?o.added=i.added:s.items.push(new Rx(e,i.added,0)),this.saveCollection(r)})}findRepertoire(e){return At(this,void 0,void 0,function*(){const i=yield this.load();return e||(e=i.current),e?i.repertoires.find(r=>r.name===e):i.repertoires[0]})}}return n.\u0275fac=function(e){return new(e||n)(ue(Rl))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();function hW(n){if(null===n||!0===n||!1===n)return NaN;var t=Number(n);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Iu(n,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Vf(n){Iu(1,arguments);var t=Object.prototype.toString.call(n);return n instanceof Date||"object"==typeof n&&"[object Date]"===t?new Date(n.getTime()):"number"==typeof n||"[object Number]"===t?new Date(n):(("string"==typeof n||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function __(n,t){Iu(2,arguments);var e=Vf(n),i=hW(t);return isNaN(i)?new Date(NaN):(i&&e.setDate(e.getDate()+i),e)}function Ox(n){var t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),n.getTime()-t.getTime()}function Fx(n){Iu(1,arguments);var t=Vf(n);return t.setHours(0,0,0,0),t}function pW(n,t){Iu(2,arguments);var e=Fx(n),i=Fx(t),r=e.getTime()-Ox(e),s=i.getTime()-Ox(i);return Math.round((r-s)/864e5)}function Px(n,t){var e=n.getFullYear()-t.getFullYear()||n.getMonth()-t.getMonth()||n.getDate()-t.getDate()||n.getHours()-t.getHours()||n.getMinutes()-t.getMinutes()||n.getSeconds()-t.getSeconds()||n.getMilliseconds()-t.getMilliseconds();return e<0?-1:e>0?1:e}function Hf(n,t){Iu(2,arguments);var e=Vf(n),i=Vf(t),r=Px(e,i),s=Math.abs(pW(e,i));e.setDate(e.getDate()-r*s);var o=Number(Px(e,i)===-r),a=r*(s-o);return 0===a?0:a}function y_(n){return __(n,Math.trunc(3*Math.random())-1)}let Nx=(()=>{class n{buildPracticeAssignment(e,i){const r=[...e.items];r.forEach(a=>this.computeDueDate(a,e,i)),r.sort((a,d)=>Hf(a.due,d.due));const s=r.filter(a=>this.isDueOnDay(a,i));if(s.length>=e.numTunesPerAssignment){const a=s.slice(0,e.numTunesPerAssignment),C=s.slice(e.numTunesPerAssignment+1).filter(k=>k.timesPracticed<=v_.length);if(C.length>0){const k=C.slice(0,e.numTunesPerAssignment/2),N=a.slice(0,e.numTunesPerAssignment-k.length);return k.concat(N)}return s.slice(0,e.numTunesPerAssignment)}const o=r.filter(a=>!this.isDueOnDay(a,i)&&!this.isRecentOnDay(a,i));return s.concat(o.slice(0,e.numTunesPerAssignment-s.length))}isDueOnDay(e,i){return Hf(e.due,i)<=0}isRecentOnDay(e,i){return Hf(i,e.added)<=30}computeDueDate(e,i,r){if(Hf(y_(r||new Date),e.added)>i.maxAge||e.timesPracticed>=v_.length)e.due=__(y_(e.lastPracticed||e.added),i.maxAge);else if(e.timesPracticed>0){const o=v_[e.timesPracticed];e.due=__(y_(e.lastPracticed),o)}else e.due=e.added}markAsPracticed(e,i){e.forEach(r=>r.practicedOn(i))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();function mW(n,t){if(1&n&&(oe(0,"mat-option",12),we(1),le()),2&n){const e=t.$implicit;ge("value",e.name),he(1),Rn(" ",e.name," ")}}function gW(n,t){if(1&n){const e=In();oe(0,"div",3)(1,"div",4)(2,"mat-form-field")(3,"mat-label"),we(4,"Repertoire"),le(),oe(5,"mat-select",5),Oe("valueChange",function(r){return Qt(e),Ue().repertoire=r}),ze(6,mW,2,2,"mat-option",6),le()(),oe(7,"mat-form-field",7)(8,"input",8),Oe("ngModelChange",function(r){return Qt(e),Ue().maxAge=r}),le()(),oe(9,"mat-form-field",9)(10,"input",10),Oe("ngModelChange",function(r){return Qt(e),Ue().numTunes=r}),le()()(),oe(11,"button",11),Oe("click",function(){return Qt(e),Ue().buildAssignment()}),we(12,"Get assignment"),le()()}if(2&n){const e=Ue();he(5),ge("value",e.repertoire),he(1),ge("ngForOf",e.repertoires()),he(2),ge("ngModel",e.maxAge),he(2),ge("ngModel",e.numTunes)}}function vW(n,t){if(1&n&&(oe(0,"mat-list-item")(1,"div",16),we(2),le()()),2&n){const e=t.$implicit,i=Ue(2);he(1),qa("routerLink","../tune/",e.book,"/",e.id,""),he(1),Rn(" ",i.titleWithoutNumber(e.title),"")}}function _W(n,t){if(1&n){const e=In();oe(0,"div",13)(1,"mat-list"),ze(2,vW,3,3,"mat-list-item",14),le(),oe(3,"button",15),Oe("click",function(){return Qt(e),Ue().markAsPracticed()}),we(4,"All done"),le()()}if(2&n){const e=Ue();he(2),ge("ngForOf",e.entries),he(1),ge("disabled",e.saved)}}let yW=(()=>{class n{constructor(e,i,r,s,o){this.snackBar=e,this.repertoireRepository=i,this.googleAuth=r,this.practiceService=s,this.index=o,this.saved=!1,this.titleWithoutNumber=Au,this.googleAuth.authState.subscribe(()=>this.loadRepertoires())}loadRepertoires(){return At(this,void 0,void 0,function*(){this.repertoireCollection=yield this.repertoireRepository.load(),this.repertoireCollection.current&&(this.repertoire=this.repertoireCollection.current);const e=yield this.repertoireRepository.findRepertoire();!e||(this.numTunes=e.numTunesPerAssignment,this.maxAge=e.maxAge,this.repertoireRepository.currentAssignment&&(this.assignment=this.repertoireRepository.currentAssignment,this.entries=this.assignment.map(i=>this.index.findEntryByTuneReference(i.tune))))})}hasAssignment(){return void 0!==this.entries}buildAssignment(){return At(this,void 0,void 0,function*(){const e=yield this.repertoireRepository.findRepertoire(this.repertoire);this.numTunes>0&&(e.numTunesPerAssignment=this.numTunes,e.maxAge=this.maxAge,this.repertoireCollection.current=this.repertoire),this.assignment=this.practiceService.buildPracticeAssignment(e,new Date),this.repertoireRepository.currentAssignment=this.assignment,this.entries=this.assignment.map(i=>this.index.findEntryByTuneReference(i.tune))})}markAsPracticed(){return At(this,void 0,void 0,function*(){this.practiceService.markAsPracticed(this.assignment,new Date),(yield this.repertoireRepository.save())?(this.saved=!0,this.snackBar.open("Updated repertoire on Google Drive","Dismiss",{duration:3e3})):this.snackBar.open("ERROR SAVING REPERTOIRE","Dismiss",{duration:3e3})})}repertoires(){return void 0===this.repertoireCollection?[]:this.repertoireCollection.repertoires}}return n.\u0275fac=function(e){return new(e||n)(V(af),V(Tu),V(oa),V(Nx),V(Rs))},n.\u0275cmp=Ge({type:n,selectors:[["app-practice"]],decls:5,vars:2,consts:[[1,"mat-h2"],["id","initial",4,"ngIf"],["id","assignment",4,"ngIf"],["id","initial"],[1,"form-container"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"max-age"],["matInput","","name","maxAge","type","number","placeholder","Maximum age in days",3,"ngModel","ngModelChange"],[1,"num-tunes"],["matInput","","name","numTunes","type","number","placeholder","Number of tunes",3,"ngModel","ngModelChange"],["mat-raised-button","","color","primary",1,"search-button",3,"click"],[3,"value"],["id","assignment"],[4,"ngFor","ngForOf"],["mat-raised-button","","label","All done","color","primary",1,"search-button",3,"disabled","click"],[1,"tune-link",3,"routerLink"]],template:function(e,i){1&e&&(oe(0,"div")(1,"h2",0),we(2,"Practice"),le(),ze(3,gW,13,4,"div",1),ze(4,_W,5,2,"div",2),le()),2&e&&(he(3),ge("ngIf",!i.hasAssignment()),he(1),ge("ngIf",i.hasAssignment()))},directives:[hi,Jo,bl,GE,rs,tu,ea,mg,ss,eo,Bo,Fi,Jh,uu,ho],encapsulation:2}),n})();function wW(n){const{subscriber:t,counter:e,period:i}=n;t.next(e),this.schedule({subscriber:t,counter:e+1,period:i},i)}let Lx=(()=>{class n{audioContext(){return At(this,void 0,void 0,function*(){if(!this.instance){const e=window.AudioContext||window.webkitAudioContext;this.instance=new e,"suspended"===this.instance.state&&(yield this.instance.resume())}return this.instance})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const Bx=Symbol("Comlink.proxy"),CW=Symbol("Comlink.endpoint"),DW=Symbol("Comlink.releaseProxy"),b_=Symbol("Comlink.thrown"),Vx=n=>"object"==typeof n&&null!==n||"function"==typeof n,MW={canHandle:n=>Vx(n)&&n[Bx],serialize(n){const{port1:t,port2:e}=new MessageChannel;return jx(n,t),[e,[e]]},deserialize:n=>(n.start(),Ux(n))},EW={canHandle:n=>Vx(n)&&b_ in n,serialize({value:n}){let t;return t=n instanceof Error?{isError:!0,value:{message:n.message,name:n.name,stack:n.stack}}:{isError:!1,value:n},[t,[]]},deserialize(n){throw n.isError?Object.assign(new Error(n.value.message),n.value):n.value}},Hx=new Map([["proxy",MW],["throw",EW]]);function jx(n,t=self){t.addEventListener("message",function e(i){if(!i||!i.data)return;const{id:r,type:s,path:o}=Object.assign({path:[]},i.data),a=(i.data.argumentList||[]).map(aa);let d;try{const C=o.slice(0,-1).reduce((N,G)=>N[G],n),k=o.reduce((N,G)=>N[G],n);switch(s){case"GET":d=k;break;case"SET":C[o.slice(-1)[0]]=aa(i.data.value),d=!0;break;case"APPLY":d=k.apply(C,a);break;case"CONSTRUCT":d=function AW(n){return Object.assign(n,{[Bx]:!0})}(new k(...a));break;case"ENDPOINT":{const{port1:N,port2:G}=new MessageChannel;jx(n,G),d=function kW(n,t){return Gx.set(n,t),n}(N,[N])}break;case"RELEASE":d=void 0;break;default:return}}catch(C){d={value:C,[b_]:0}}Promise.resolve(d).catch(C=>({value:C,[b_]:0})).then(C=>{const[k,N]=C_(C);t.postMessage(Object.assign(Object.assign({},k),{id:r}),N),"RELEASE"===s&&(t.removeEventListener("message",e),zx(t))})}),t.start&&t.start()}function zx(n){(function SW(n){return"MessagePort"===n.constructor.name})(n)&&n.close()}function Ux(n,t){return w_(n,[],t)}function jf(n){if(n)throw new Error("Proxy has been released and is not useable")}function w_(n,t=[],e=function(){}){let i=!1;const r=new Proxy(e,{get(s,o){if(jf(i),o===DW)return()=>Fl(n,{type:"RELEASE",path:t.map(a=>a.toString())}).then(()=>{zx(n),i=!0});if("then"===o){if(0===t.length)return{then:()=>r};const a=Fl(n,{type:"GET",path:t.map(d=>d.toString())}).then(aa);return a.then.bind(a)}return w_(n,[...t,o])},set(s,o,a){jf(i);const[d,C]=C_(a);return Fl(n,{type:"SET",path:[...t,o].map(k=>k.toString()),value:d},C).then(aa)},apply(s,o,a){jf(i);const d=t[t.length-1];if(d===CW)return Fl(n,{type:"ENDPOINT"}).then(aa);if("bind"===d)return w_(n,t.slice(0,-1));const[C,k]=$x(a);return Fl(n,{type:"APPLY",path:t.map(N=>N.toString()),argumentList:C},k).then(aa)},construct(s,o){jf(i);const[a,d]=$x(o);return Fl(n,{type:"CONSTRUCT",path:t.map(C=>C.toString()),argumentList:a},d).then(aa)}});return r}function xW(n){return Array.prototype.concat.apply([],n)}function $x(n){const t=n.map(C_);return[t.map(e=>e[0]),xW(t.map(e=>e[1]))]}const Gx=new WeakMap;function C_(n){for(const[t,e]of Hx)if(e.canHandle(n)){const[i,r]=e.serialize(n);return[{type:"HANDLER",name:t,value:i},r]}return[{type:"RAW",value:n},Gx.get(n)||[]]}function aa(n){switch(n.type){case"HANDLER":return Hx.get(n.name).deserialize(n.value);case"RAW":return n.value}}function Fl(n,t,e){return new Promise(i=>{const r=function TW(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}();n.addEventListener("message",function s(o){!o.data||!o.data.id||o.data.id!==r||(n.removeEventListener("message",s),i(o.data))}),n.start&&n.start(),n.postMessage(Object.assign({id:r},t),e)})}let Wx=(()=>{class n{transcriber(){if(!this.instance){const e=new Worker(M.tu(new URL(M.p+M.u(911),M.b)),{name:"transcriber",type:void 0});this.instance=Ux(e)}return this.instance}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),Yx=(()=>{class n{constructor(e,i,r){this.audioContextProvider=e,this.transcriberProvider=i,this.zone=r,this.timeRecorded=0,this.tickTime=.01,this.progressSource=new oi(0),this.transcriptionResultSource=new U,this.progress=this.progressSource.asObservable(),this.transcriptionResult=this.transcriptionResultSource.asObservable(),this.transcriber=this.transcriberProvider.transcriber(),this.status=zr.STOPPED}get sampleTime(){return 12}get blankTime(){return 0}get fundamental(){return"D"}get sampleRate(){return this.audioContext.sampleRate}get progressPercentage(){return 100*this.timeRecorded/(this.blankTime+this.sampleTime)}onTranscribed(e){this.zone.run(()=>this.transcriptionResultSource.next(e.transcription))}initAudio(){return At(this,void 0,void 0,function*(){this.audioContext=yield this.audioContextProvider.audioContext();try{if(this.stream=yield navigator.mediaDevices.getUserMedia({audio:!0}),this.stream){this.status=zr.INIT_SUCCEEDED;const e=4096;this.input=this.audioContext.createMediaStreamSource(this.stream),this.analyser=this.audioContext.createAnalyser(),this.analyser.fftSize=e,this.input.connect(this.analyser)}}catch(e){this.status=zr.INIT_FAILED}})}start(){this.stream&&(this.transcriber.initialize({inputSampleRate:this.audioContext.sampleRate,sampleTime:this.sampleTime,blankTime:this.blankTime,tickTime:this.tickTime,fundamental:this.fundamental}).then(()=>this.status=zr.RECORDING),this.fftBuffer=new Float32Array(this.analyser.frequencyBinCount),this.timer=KC(0,1e3*this.tickTime),this.subscription=this.timer.subscribe(()=>this.pushSpectrum()))}pushSpectrum(){return At(this,void 0,void 0,function*(){this.status==zr.RECORDING&&(this.analyser.getFloatFrequencyData(this.fftBuffer),this.transcriber.pushSignal(this.fftBuffer),this.timeRecorded+=this.tickTime,this.zone.run(()=>this.progressSource.next(this.progressPercentage)),this.recordingComplete()&&(this.subscription.unsubscribe(),yield this.analyzeSignal()))})}recordingComplete(){return this.timeRecorded>=this.sampleTime}stop(){this.status=zr.STOPPED,this.timeRecorded=0,this.stream&&(this.stream.getTracks().forEach(e=>e.stop()),this.stream=null),this.input.disconnect(this.analyser)}destroy(){this.stop()}analyzeSignal(){return At(this,void 0,void 0,function*(){this.stop(),this.status=zr.ANALYZING;const e=yield this.transcriber.transcribe();this.status=zr.ANALYSIS_SUCCEEDED,this.onTranscribed(e)})}}return n.\u0275fac=function(e){return new(e||n)(ue(Lx),ue(Wx),ue(ct))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();var zr=(()=>(function(n){n.STOPPED="STOPPED",n.INIT="INIT",n.INIT_SUCCEEDED="INIT_SUCCEEDED",n.INIT_FAILED="INIT_FAILED",n.RECORDING="RECORDING",n.ANALYZING="ANALYZING",n.ANALYSIS_SUCCEEDED="ANALYSIS_SUCCEEDED",n.API_MISSING="API_MISSING"}(zr||(zr={})),zr))();let OW=(()=>{class n{constructor(e,i){this.router=e,this.recorder=i,this.recorder.progress.subscribe(r=>this.progress=r),this.recorder.transcriptionResult.subscribe(r=>{this.progress=0,this.progressbarValue=0,r&&this.router.navigate([`/match/${r}`])})}startRecording(){return At(this,void 0,void 0,function*(){const i=function bW(n=0,t=ol){return(!zm(n)||n<0)&&(n=0),(!t||"function"!=typeof t.schedule)&&(t=ol),new j(e=>(e.add(t.schedule(wW,n,{subscriber:e,counter:0,period:n})),e))}(100).subscribe(r=>{this.progressbarValue=this.progress,this.progressbarValue>=100&&i.unsubscribe()});yield this.recorder.initAudio(),this.recorder.start()})}}return n.\u0275fac=function(e){return new(e||n)(V(ci),V(Yx))},n.\u0275cmp=Ge({type:n,selectors:[["app-record"]],decls:8,vars:1,consts:[[1,"mat-h2"],["id","progress"],["mode","determinate",3,"value"],["id","button-container"],["mat-raised-button","","color","primary",1,"search-button",3,"click"]],template:function(e,i){1&e&&(oe(0,"div")(1,"h2",0),we(2,"Recognize"),le(),oe(3,"div",1),yt(4,"mat-progress-bar",2),le(),oe(5,"div",3)(6,"button",4),Oe("click",function(){return i.startRecording()}),we(7,"Start"),le()()()),2&e&&(he(4),ge("value",i.progressbarValue))},directives:[VE,Fi],encapsulation:2}),n})(),FW=(()=>{class n{constructor(e){this.dialogRef=e,this.instrument=new Lo,this.maxAge=new Lo(30),this.numTunesPerAssignment=new Lo(10)}onNoClick(){this.dialogRef.close(void 0)}repertoire(){return{name:this.instrument.value,maxAge:this.maxAge.value,numTunesPerAssignment:this.numTunesPerAssignment.value,items:[]}}}return n.\u0275fac=function(e){return new(e||n)(V(ou))},n.\u0275cmp=Ge({type:n,selectors:[["app-new-repertoire"]],decls:14,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"form-container"],["matInput","","name","name","placeholder","Name",3,"formControl"],["matInput","","name","maxAge","placeholder","Maximum age in days",3,"formControl"],["matInput","","name","numTunes","placeholder","Number of tunes per assignment",3,"formControl"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(e,i){1&e&&(oe(0,"h1",0),we(1,"New repertoire"),le(),oe(2,"div",1)(3,"mat-form-field"),yt(4,"input",2),le(),oe(5,"mat-form-field"),yt(6,"input",3),le(),oe(7,"mat-form-field"),yt(8,"input",4),le()(),oe(9,"div",5)(10,"button",6),Oe("click",function(){return i.onNoClick()}),we(11,"Cancel"),le(),oe(12,"button",7),we(13,"Ok"),le()()),2&e&&(he(4),ge("formControl",i.instrument),he(2),ge("formControl",i.maxAge),he(2),ge("formControl",i.numTunesPerAssignment),he(4),ge("mat-dialog-close",i.repertoire()))},directives:[dE,hE,Jo,ea,ss,eo,mh,fE,Fi,uE],encapsulation:2}),n})();function PW(n,t){if(1&n){const e=In();oe(0,"button",5),Oe("click",function(){const s=Qt(e).$implicit;return Ue().selectRepertoire(s)}),we(1),le()}if(2&n){const e=t.$implicit;he(1),xn(e.name)}}function NW(n,t){1&n&&(oe(0,"th",16),we(1,"Title"),le())}function LW(n,t){if(1&n&&(oe(0,"td",17)(1,"div",18),we(2),le()()),2&n){const e=t.$implicit;he(1),Tp("routerLink",e.uri),he(1),xn(e.title)}}function BW(n,t){1&n&&(oe(0,"th",16),we(1,"Times practiced"),le())}function VW(n,t){if(1&n&&(oe(0,"td",17),we(1),le()),2&n){const e=t.$implicit;he(1),Rn(" ",e.timesPracticed," ")}}function HW(n,t){1&n&&(oe(0,"th",16),we(1,"Last practiced"),le())}function jW(n,t){if(1&n&&(oe(0,"td",17),we(1),le()),2&n){const e=t.$implicit;he(1),Rn(" ",e.lastPracticed?e.lastPracticed.toLocaleDateString():""," ")}}function zW(n,t){1&n&&(oe(0,"th",16),we(1,"Added"),le())}function UW(n,t){if(1&n&&(oe(0,"td",17),we(1),le()),2&n){const e=t.$implicit;he(1),Rn(" ",e.added.toLocaleDateString()," ")}}function $W(n,t){1&n&&yt(0,"tr",19)}function GW(n,t){1&n&&yt(0,"tr",20)}let WW=(()=>{class n{constructor(e,i,r){this.dialog=e,this.repertoireRepository=i,this.index=r,this.tunes=[],this.displayedColumns=["title","timesPracticed","lastPracticed","added"],this.titleWithoutNumber=Au}ngOnInit(){this.index.allReady.subscribe(()=>this.loadRepertoire())}newRepertoire(e){this.repertoireCollection.repertoires.push(e),this.selectRepertoire(e)}openDialog(){this.dialog.open(FW).afterClosed().subscribe(i=>this.newRepertoire(i))}selectRepertoire(e){this.currentRepertoire=e,this.prepareTunes()}repertoires(){return void 0===this.repertoireCollection?[]:this.repertoireCollection.repertoires}loadRepertoire(){return At(this,void 0,void 0,function*(){this.repertoireCollection=yield this.repertoireRepository.load();const e=yield this.repertoireRepository.findRepertoire();this.currentRepertoire=e,e&&this.prepareTunes()})}prepareTunes(){this.tunes=this.currentRepertoire.items.map(e=>this.toRepertoireTune(e)),this.dataSource=new nU(this.tunes),this.dataSource.sort=this.sort}toRepertoireTune(e){const i=this.index.findEntryByTuneReference(e.tune);return{added:e.added,lastPracticed:e.lastPracticed,timesPracticed:e.timesPracticed,title:Au(i.title),uri:`../tune/${e.tune.bookId}/${e.tune.tuneId}`}}}return n.\u0275fac=function(e){return new(e||n)(V(au),V(Tu),V(Rs))},n.\u0275cmp=Ge({type:n,selectors:[["app-repertoire"]],viewQuery:function(e,i){if(1&e&&jt(Tv,7),2&e){let r;He(r=je())&&(i.sort=r.first)}},decls:29,vars:7,consts:[[1,"repertoire-header"],[1,"mat-h2"],["mat-mini-fab","","color","accent",3,"matMenuTriggerFor"],["repertoireMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[1,"mat-body"],["mat-table","","matSort","",1,"repertoire",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","timesPracticed"],["matColumnDef","lastPracticed"],["matColumnDef","added"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"tune-link",3,"routerLink"],["mat-header-row",""],["mat-row",""]],template:function(e,i){if(1&e&&(oe(0,"div")(1,"div",0)(2,"h2",1),we(3),le(),oe(4,"button",2)(5,"mat-icon"),we(6,"more_vert"),le()(),oe(7,"mat-menu",null,3),ze(9,PW,2,1,"button",4),oe(10,"button",5),Oe("click",function(){return i.openDialog()}),we(11,"New repertoire"),le()()(),oe(12,"p",6),we(13),le(),oe(14,"table",7),Or(15,8),ze(16,NW,2,0,"th",9),ze(17,LW,3,2,"td",10),Fr(),Or(18,11),ze(19,BW,2,0,"th",9),ze(20,VW,2,1,"td",10),Fr(),Or(21,12),ze(22,HW,2,0,"th",9),ze(23,jW,2,1,"td",10),Fr(),Or(24,13),ze(25,zW,2,0,"th",9),ze(26,UW,2,1,"td",10),Fr(),ze(27,$W,1,0,"tr",14),ze(28,GW,1,0,"tr",15),le()()),2&e){const r=Us(8);he(3),Rn("",i.currentRepertoire?i.currentRepertoire.name+" ":"","Repertoire"),he(1),ge("matMenuTriggerFor",r),he(5),ge("ngForOf",i.repertoires()),he(4),Rn("",i.tunes.length," tunes"),he(1),ge("dataSource",i.dataSource),he(13),ge("matHeaderRowDef",i.displayedColumns),he(1),ge("matRowDefColumns",i.displayedColumns)}},directives:[Fi,uj,cu,oj,rs,tf,cS,Tv,Uv,zv,$v,Sz,jv,Gv,ho,uS,hS,dS,fS],encapsulation:2}),n})();function D_(n){if(n)return n.split(/\s*,\s*/).filter(t=>t.length>0)}class M_{constructor(t,e,i,r,s){this.title=t,this.rhythm=e,this.key=i,this.books=r,this.tags=s}matchesRef(t){return!!this.allBooks()||this.books.includes(t.descriptor.id)}matchesName(t){return!!this.allBooks()||this.books.includes(t)}allBooks(){return!this.books||0===this.books.length}}const YW=["snippet"];let qW=(()=>{class n{constructor(e){this.zone=e,this.tune="",this.rendered=!1}ngAfterViewInit(){this.renderSnippet()}ngOnChanges(){this.rendered=!1,this.zone.runOutsideAngular(()=>this.renderSnippet())}renderSnippet(){if(void 0!==this.div&&this.tune&&!this.rendered){const e=function sW(n){const t=n.split("\n"),e=[],i=[];for(const r of t)if(/^[A-Za-z]:/.test(r))/^[XMLK]:/.test(r)&&e.push(r);else if(i.push(...r.split("|")),i.length>2){e.push(i.slice(0,3).join("|"));break}return e.join("\n")}(this.tune);Il().renderAbc(this.div.nativeElement,e,{scale:.8,paddingtop:0,paddingbottom:0}),this.rendered=!0}}}return n.\u0275fac=function(e){return new(e||n)(V(ct))},n.\u0275cmp=Ge({type:n,selectors:[["app-snippet-view"]],viewQuery:function(e,i){if(1&e&&jt(YW,5),2&e){let r;He(r=je())&&(i.div=r.first)}},inputs:{tune:"tune"},features:[on],decls:2,vars:0,consts:[["snippet",""]],template:function(e,i){1&e&&yt(0,"div",null,0)},encapsulation:2}),n})();function KW(n,t){if(1&n&&(oe(0,"mat-option",16),we(1),le()),2&n){const e=t.$implicit;ge("value",e.descriptor.id),he(1),Rn("",e.descriptor.name," ")}}function XW(n,t){1&n&&(oe(0,"div",17)(1,"p",18),we(2,"No matching tunes"),le()())}function QW(n,t){if(1&n&&(oe(0,"div",25),we(1),le()),2&n){const e=Ue().$implicit,i=Ue(2);he(1),Rn("Tags: ",i.getTags(e),"")}}function ZW(n,t){if(1&n){const e=In();oe(0,"tr",22)(1,"td",23)(2,"div")(3,"span",24),Oe("click",function(){const s=Qt(e).$implicit;return Ue(2).navigateToTune(s)}),we(4),le()(),oe(5,"div",25),we(6),le(),oe(7,"div",25),we(8),le(),ze(9,QW,2,1,"div",26),le(),oe(10,"td",27),Oe("click",function(){const s=Qt(e).$implicit;return Ue(2).navigateToTune(s)}),yt(11,"app-snippet-view",28),le()()}if(2&n){const e=t.$implicit,i=Ue(2);he(4),xn(e.title),he(2),Rp("",i.getBookName(e)," #",e.id,""),he(2),xn(i.getRhythmAndKey(e)),he(1),ge("ngIf",i.hasTags(e)),he(2),ge("tune",i.getAbc(e))}}function JW(n,t){if(1&n&&(oe(0,"div",19)(1,"p",18),we(2),le(),oe(3,"cdk-virtual-scroll-viewport",20)(4,"table")(5,"tbody"),ze(6,ZW,12,6,"tr",21),le()()()()),2&n){const e=Ue();he(2),Rn("",e.tunes.length," tunes"),he(4),ge("cdkVirtualForOf",e.tunes)("cdkVirtualForTemplateCacheSize",0)}}let eY=(()=>{class n extends class MP{constructor(t,e,i){this._scrolledIndexChange=new U,this.scrolledIndexChange=this._scrolledIndexChange.pipe(Vc()),this._viewport=null,this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=i}attach(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(t,e,i){this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=i,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(t,e){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const t=this._viewport.getRenderedRange(),e={start:t.start,end:t.end},i=this._viewport.getViewportSize(),r=this._viewport.getDataLength();let s=this._viewport.measureScrollOffset(),o=this._itemSize>0?s/this._itemSize:0;if(e.end>r){const d=Math.ceil(i/this._itemSize),C=Math.max(0,Math.min(o,r-d));o!=C&&(o=C,s=C*this._itemSize,e.start=Math.floor(o)),e.end=Math.max(0,Math.min(r,e.start+d))}const a=s-e.start*this._itemSize;if(a0&&(e.end=Math.min(r,e.end+C),e.start=Math.max(0,Math.floor(o-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(o))}}{constructor(){super(100,800,1200),this.contentScrolledSource=new U,this.contentScrolledSource.asObservable().pipe(Pc(200)).subscribe(()=>{super.onContentScrolled()})}onContentScrolled(){this.contentScrolledSource.next("")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),tY=(()=>{class n{constructor(e,i,r){this.tuneBookIndex=e,this.route=i,this.router=r,this.tunes=[],this.selectedBooks=[],this.searchCompleted=!1,this.indexReady=!1}ngOnInit(){this.selectedBooks=[this.tuneBookIndex.defaultBook],this.route.queryParamMap.subscribe(e=>this.consumeParameters(e)),this.tuneBookIndex.allReady.subscribe(e=>{this.indexReady=e,this.extractParamsAndRunQuery()})}extractParamsAndRunQuery(){this.indexReady&&this.queryParams.keys.length>0&&(this.query=this.queryParams.get("q"),this.key=this.queryParams.get("key"),this.rhythm=this.queryParams.get("rhythm"),this.selectedBooks=this.queryParams.getAll("book"),this.tags=this.queryParams.getAll("tag").join(", "),this.runQuery())}consumeParameters(e){this.queryParams=e,this.extractParamsAndRunQuery()}noResults(){return this.searchCompleted&&0===this.tunes.length}uniqueResult(){return 1===this.tunes.length}multipleResults(){return this.tunes.length>=2}currentTune(){return this.uniqueResult()?this.tuneBookIndex.getAbc(this.tunes[0]):""}findTunes(){this.router.navigate(["/search"],{queryParams:{q:this.query,rhythm:this.rhythm,key:this.key,book:this.selectedBooks,tag:D_(this.tags)}})}runQuery(){(void 0===this.selectedBooks||0===this.selectedBooks.length)&&(this.selectedBooks=[this.tuneBookIndex.getBooks()[0].descriptor.id]);const e=this.rhythm&&this.rhythm.toLowerCase(),i=new M_(this.query,e,this.key,this.selectedBooks,D_(this.tags));this.tunes=this.tuneBookIndex.findTunes(i),this.searchCompleted=!0,this.uniqueResult()&&this.navigateToTune(this.tunes[0])}navigateToTune(e){this.router.navigate([`/tune/${e.book}/${e.id}`])}getAbc(e){return this.tuneBookIndex.getAbc(e)}getBookName(e){return this.tuneBookIndex.getBook(e).descriptor.name}getRhythmAndKey(e){return void 0===e.rhythm&&void 0===e.key?"":void 0===e.key?e.rhythm:void 0===e.rhythm?e.key:`${e.rhythm} in ${e.key}`}hasTags(e){return e.tags&&e.tags.length>0}getTags(e){return e.tags.join(", ")}books(){return this.tuneBookIndex.getBooks()}}return n.\u0275fac=function(e){return new(e||n)(V(Rs),V(Gi),V(ci))},n.\u0275cmp=Ge({type:n,selectors:[["app-search"]],features:[lt([{provide:JC,useClass:eY}])],decls:24,vars:9,consts:[[1,"search-panel"],[3,"expanded"],[1,"query"],["matInput","","name","query","type","text","placeholder","Tune number or part of title",3,"ngModel","ngModelChange"],[1,"rhythm"],["matInput","","name","rhythm","type","text","placeholder","Rhythm",3,"ngModel","ngModelChange"],[1,"key"],["matInput","","name","key","type","text","placeholder","Key",3,"ngModel","ngModelChange"],[1,"tunebooks"],["multiple","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"tags"],["matInput","","name","tags","type","text","placeholder","Tags",3,"ngModel","ngModelChange"],["mat-raised-button","","label","Search","color","primary",1,"search-button",3,"click"],["id","noMatches",4,"ngIf"],["id","overview",4,"ngIf"],[3,"value"],["id","noMatches"],[1,"mat-body"],["id","overview"],[1,"search-result-viewport"],["class","tune-preview",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTemplateCacheSize"],[1,"tune-preview"],[1,"tune-link","tune-title"],[1,"tune-link","mat-body",3,"click"],[1,"mat-small"],["class","mat-small",4,"ngIf"],[1,"tune-link",3,"click"],[3,"tune"]],template:function(e,i){1&e&&(oe(0,"div",0)(1,"mat-expansion-panel",1)(2,"mat-expansion-panel-header")(3,"mat-panel-title"),we(4,"Find tunes"),le()(),oe(5,"form")(6,"mat-form-field",2)(7,"input",3),Oe("ngModelChange",function(s){return i.query=s}),le()(),oe(8,"mat-form-field",4)(9,"input",5),Oe("ngModelChange",function(s){return i.rhythm=s}),le()(),oe(10,"mat-form-field",6)(11,"input",7),Oe("ngModelChange",function(s){return i.key=s}),le()(),oe(12,"mat-form-field",8)(13,"mat-label"),we(14,"Tune books"),le(),oe(15,"mat-select",9),Oe("valueChange",function(s){return i.selectedBooks=s}),ze(16,KW,2,2,"mat-option",10),le()(),oe(17,"mat-form-field",11)(18,"input",12),Oe("ngModelChange",function(s){return i.tags=s}),le()(),oe(19,"mat-action-row")(20,"button",13),Oe("click",function(){return i.findTunes()}),we(21,"Search"),le()()()()(),ze(22,XW,3,0,"div",14),ze(23,JW,7,3,"div",15)),2&e&&(he(1),ge("expanded",!i.searchCompleted),he(6),ge("ngModel",i.query),he(2),ge("ngModel",i.rhythm),he(2),ge("ngModel",i.key),he(4),ge("value",i.selectedBooks),he(1),ge("ngForOf",i.books()),he(2),ge("ngModel",i.tags),he(4),ge("ngIf",i.noResults()),he(1),ge("ngIf",i.multipleResults()))},directives:[bE,bH,wH,Yc,zc,Es,Jo,ea,ss,eo,Bo,bl,GE,rs,tu,vH,Fi,hi,eD,AP,qW],encapsulation:2}),n})(),nY=(()=>{class n{constructor(e){this.element=e,this.caret=new Le}ngAfterViewInit(){if(this.$element=this.element.nativeElement,!this.contentEditable()&&!this.isTextarea())throw new Error("appCaretTracker directive can be used either on textarea or contenteditable element only")}contentEditable(){return this.$element.isContentEditable&&"true"===this.$element.getAttribute("contenteditable")}onFocus(e){this.emitEvent(e)}onKeyup(e){this.emitEvent(e)}onMouseup(e){this.onFocus(e)}emitEvent(e){this.caret.emit({textPos:this.getTextPos(),event:e})}getTextPos(){return this.isTextarea()?this.$element.selectionStart:-1}isTextarea(e){const i=e||this.$element;return"TEXTAREA"===i.tagName&&i instanceof HTMLTextAreaElement}}return n.\u0275fac=function(e){return new(e||n)(V(nt))},n.\u0275dir=De({type:n,selectors:[["","appCaretTracker",""]],hostBindings:function(e,i){1&e&&Oe("focus",function(s){return i.onFocus(s)})("keyup",function(s){return i.onKeyup(s)})("mouseup",function(s){return i.onMouseup(s)})},outputs:{caret:"caret"}}),n})();const iY=["notation"];let rY=(()=>{class n{constructor(e,i,r,s,o,a){this.index=e,this.collectionService=i,this.googleDrive=r,this.pdfService=s,this.route=o,this.snackBar=a,this.abc="",this.route.paramMap.subscribe(d=>{this.bookId=d.get("id"),this.bookRef=this.index.getBookById(this.bookId),this.tune=this.bookRef.abc}),this.index.tuneBookReady.subscribe(d=>{d===this.bookId&&(this.bookRef=this.index.getBookById(this.bookId),this.tune=this.bookRef.abc,this.renderNotation(this.abc))})}set tune(e){this.abc=e}get tune(){return this.abc}ngAfterViewInit(){this.renderNotation(this.abc)}onCaret(e){this.renderNotation(this.extractTuneAtCaret(e.textPos))}save(){return At(this,void 0,void 0,function*(){yield this.googleDrive.updateTextFile(this.bookRef.descriptor.uri,this.tune),this.bookRef.abc=this.tune,this.bookRef.tuneBook=new ku.TuneBook(this.tune),this.index.updateTuneBook(this.bookRef),this.snackBar.open(`Updated ${this.bookRef.descriptor.name} on Google Drive`,"Dismiss",{duration:3e3})})}delete(){return At(this,void 0,void 0,function*(){yield this.collectionService.removeBook(this.bookId),this.snackBar.open(`Removed ${this.bookRef.descriptor.name} from collection`,"Dismiss",{duration:3e3})})}exportAsPdf(){return At(this,void 0,void 0,function*(){this.pdfService.saveAsPdf(this.tune),this.snackBar.open("PDF will be displayed in separate window","Dismiss",{duration:3e3})})}renderNotation(e){void 0!==this.div&&e.length>0&&Il().renderAbc(this.div.nativeElement,e,{paddingleft:0,paddingright:0,paddingtop:0,paddingbottom:0,staffwidth:1e3,responsive:"resize"})}extractTuneAtCaret(e){const i=Math.max(0,this.abc.lastIndexOf("X:",e));let r=this.abc.indexOf("X:",i+2);return-1===r&&(r=this.abc.length),this.abc.substring(i,r)}}return n.\u0275fac=function(e){return new(e||n)(V(Rs),V(Ol),V(Rl),V(Bf),V(Gi),V(af))},n.\u0275cmp=Ge({type:n,selectors:[["app-tune-editor"]],viewQuery:function(e,i){if(1&e&&jt(iY,5),2&e){let r;He(r=je())&&(i.div=r.first)}},inputs:{tune:"tune"},decls:12,vars:1,consts:[[1,"example-form"],[1,"editor"],["appCaretTracker","","name","abc-area","matInput","","placeholder","Enter ABC notation",3,"ngModel","caret","ngModelChange"],["mat-raised-button","","label","Save","color","primary",1,"search-button",3,"click"],["mat-raised-button","","label","Delete","color","primary",1,"pdf-button",3,"click"],["mat-raised-button","","color","primary",1,"pdf-button",3,"click"],[1,"tune-view"],["notation",""]],template:function(e,i){1&e&&(oe(0,"form",0)(1,"mat-form-field",1)(2,"textarea",2),Oe("caret",function(s){return i.onCaret(s)})("ngModelChange",function(s){return i.tune=s}),le()(),oe(3,"button",3),Oe("click",function(){return i.save()}),we(4,"Save"),le(),oe(5,"button",4),Oe("click",function(){return i.delete()}),we(6,"Delete"),le(),oe(7,"button",5),Oe("click",function(){return i.exportAsPdf()}),oe(8,"mat-icon"),we(9,"print"),le()()(),yt(10,"div",6,7)),2&e&&(he(2),ge("ngModel",i.tune))},directives:[Yc,zc,Es,Jo,ea,ss,nY,eo,Bo,Fi,cu],encapsulation:2}),n})();function sY(n,t){if(1&n&&(oe(0,"mat-option",11),we(1),le()),2&n){const e=t.$implicit;ge("value",e.name),he(1),Rn(" ",e.name," ")}}let oY=(()=>{class n{constructor(e,i){this.dialogRef=e,this.repertoireRepository=i,this.added=new Lo(new Date),this.repertoire=new Lo}ngOnInit(){return At(this,void 0,void 0,function*(){this.repertoireCollection=yield this.repertoireRepository.load()})}onNoClick(){this.dialogRef.close(void 0)}repertoires(){return void 0===this.repertoireCollection?[]:this.repertoireCollection.repertoires}repertoireName(e){return e.name}selection(){return{name:this.repertoire.value,added:this.added.value}}}return n.\u0275fac=function(e){return new(e||n)(V(ou),V(Tu))},n.\u0275cmp=Ge({type:n,selectors:[["app-add-to-repertoire"]],decls:20,vars:7,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"form-container"],["type","text","matInput","",3,"formControl","matAutocomplete"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","added","placeholder","Added on",3,"matDatepicker","formControl"],["myDatepicker",""],["matSuffix","",3,"for"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close"],[3,"value"]],template:function(e,i){if(1&e&&(oe(0,"h1",0),we(1,"Add to repertoire"),le(),oe(2,"div",1)(3,"mat-form-field")(4,"mat-label"),we(5,"Repertoire"),le(),yt(6,"input",2),le(),oe(7,"mat-autocomplete",null,3),ze(9,sY,2,2,"mat-option",4),le(),oe(10,"mat-form-field"),yt(11,"input",5)(12,"mat-datepicker",null,6)(14,"mat-datepicker-toggle",7),le()(),oe(15,"div",8)(16,"button",9),Oe("click",function(){return i.onNoClick()}),we(17,"Cancel"),le(),oe(18,"button",10),we(19,"Ok"),le()()),2&e){const r=Us(8),s=Us(13);he(6),ge("formControl",i.repertoire)("matAutocomplete",r),he(3),ge("ngForOf",i.repertoires()),he(2),ge("matDatepicker",s)("formControl",i.added),he(3),ge("for",s),he(4),ge("mat-dialog-close",i.selection())}},directives:[dE,hE,Jo,bl,ea,ss,KM,eo,mh,WB,rs,tu,wv,BV,$V,IB,fE,Fi,uE],encapsulation:2}),n})();const aY=["midiplayer"];let lY=(()=>{class n{constructor(){this.bpm=100,this.abc="",this.synthControl=new(Il().synth.SynthController)}set tune(e){this.abc=e,this.parsedTune=Il().renderAbc("*",this.abc)[0]}get tune(){return this.abc}set tempo(e){this.bpm=e,this.synthControl.setWarp(e)}get tempo(){return this.bpm}ngAfterViewInit(){this.renderMidiPlayer()}ngOnChanges(){this.renderMidiPlayer()}renderMidiPlayer(){return At(this,void 0,void 0,function*(){if(void 0!==this.div&&this.tune.length>0)return this.synthControl.load(this.div.nativeElement,null,{displayLoop:!0,displayRestart:!0,displayPlay:!0,displayProgress:!0,displayWarp:!0}),this.parsedTune.metaText.tempo={bpm:this.bpm,startChar:0,endChar:0},this.synthControl.setTune(this.parsedTune,!0,{chordsOff:!0,program:this.instrumentByName("flute")})})}instrumentByName(e){return Il().synth.instrumentIndexToName.indexOf(e.toLowerCase())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ge({type:n,selectors:[["app-tune-player"]],viewQuery:function(e,i){if(1&e&&jt(aY,5),2&e){let r;He(r=je())&&(i.div=r.first)}},inputs:{tune:"tune",tempo:"tempo"},features:[on],decls:2,vars:0,consts:[[1,"midi-player"],["midiplayer",""]],template:function(e,i){1&e&&yt(0,"div",0,1)},encapsulation:2}),n})();const cY=["notation"];let uY=(()=>{class n{constructor(){this.tune=""}ngAfterViewInit(){this.renderNotation()}ngOnChanges(){this.renderNotation()}renderNotation(){void 0!==this.div&&this.tune.length>0&&Il().renderAbc(this.div.nativeElement,this.includeNumberInTitle(this.tune),{paddingleft:0,paddingright:0,paddingtop:0,paddingbottom:0,staffwidth:1e3,responsive:"resize"})}includeNumberInTitle(e){if(e.match(/^T:(\s*)(\d+[a-z]?\s*)/m))return e;const r=e.match(/^X:(\s*)(\w+)/m);if(!r)return;const s=r[2],o=e.match(/^T:(\s*)(.+?)(, The)?$/m);return e.replace(o[0],`T: ${s} ${o[3]?"The ":""}${o[2]}`)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ge({type:n,selectors:[["app-tune-view"]],viewQuery:function(e,i){if(1&e&&jt(cY,5),2&e){let r;He(r=je())&&(i.div=r.first)}},inputs:{tune:"tune"},features:[on],decls:2,vars:0,consts:[[1,"tune-view"],["notation",""]],template:function(e,i){1&e&&yt(0,"div",0,1)},encapsulation:2}),n})(),dY=(()=>{class n{constructor(e,i,r,s,o,a,d,C){this.index=e,this.googleAuth=i,this.pdfService=r,this.route=s,this.snackBar=o,this.dialog=a,this.collectionService=d,this.repertoireRepository=C,this.tune="",this.allTags="",this.signedIn=!1,this.googleAuth.authState.subscribe(k=>{this.signedIn=!!k})}ngOnInit(){this.route.paramMap.subscribe(e=>this.consumeRef(e)),this.index.tuneBookReady.subscribe(()=>{this.displayTune(this.bookId,this.ref)})}save(){return At(this,void 0,void 0,function*(){const e=D_(this.allTags),i=yield this.collectionService.setTagsForTune(this.ref,this.bookId,e);return this.snackBar.open("Updated tags on Google Drive","Dismiss",{duration:3e3}),i})}openDialog(){return At(this,void 0,void 0,function*(){this.dialog.open(oY).afterClosed().subscribe(i=>this.addToRepertoire(i))})}exportAsPdf(){return At(this,void 0,void 0,function*(){this.pdfService.saveAsPdf(this.tune),this.snackBar.open("PDF will be displayed in separate window","Dismiss",{duration:3e3})})}tuneForDisplay(){return"%%stretchlast\n"+this.tune}addToRepertoire(e){return At(this,void 0,void 0,function*(){if(!e)return;const i={bookId:this.bookId,tuneId:this.ref};yield this.repertoireRepository.addRepertoireItem(i,e),this.snackBar.open("Added to repertoire on Google Drive","Dismiss",{duration:3e3})})}consumeRef(e){this.ref=e.get("ref"),this.bookId=e.get("bookId"),this.displayTune(this.bookId,this.ref)}displayTune(e,i){if(void 0!==i&&this.index.isReady()){const r=this.index.findEntryByTuneReference({bookId:e,tuneId:i});if(r){this.tune=this.index.getAbc(r),r.tags&&(this.allTags=r.tags.join(", "));const s=this.index.getBookById(e);this.prevRef=void 0,this.nextRef=void 0;const o=r.pos-1;o>=0&&(this.prevRef=s.tuneBook.tunes[o].id);const a=r.pos+1;a{class n{constructor(e,i){this.index=e,this.route=i,this.entries=[],this.titleWithoutNumber=Au,this.index.tuneBookReady.subscribe(r=>this.onReady(r)),this.route.paramMap.subscribe(r=>{this.bookId=r.get("id"),this.onReady(this.bookId)})}bookName(){var e;return null===(e=this.index.getBookById(this.bookId))||void 0===e?void 0:e.descriptor.name}onReady(e){e==this.bookId&&(this.entries=this.index.findAllTunesInBook(e))}}return n.\u0275fac=function(e){return new(e||n)(V(Rs),V(Gi))},n.\u0275cmp=Ge({type:n,selectors:[["app-tunes-list"]],decls:5,vars:2,consts:[[1,"mat-h2"],[4,"ngFor","ngForOf"],[1,"tune-id",3,"routerLink"],[1,"tune-link",3,"routerLink"]],template:function(e,i){1&e&&(oe(0,"div")(1,"h2",0),we(2),le(),oe(3,"mat-list"),ze(4,hY,5,6,"mat-list-item",1),le()()),2&e&&(he(2),xn(i.bookName()),he(2),ge("ngForOf",i.entries))},directives:[Jh,rs,uu,ho],encapsulation:2}),n})(),pY=(()=>{class n{constructor(){this.handlers={}}shouldDetach(e){return!0}store(e,i){this.handlers[e.url.join("/")||e.parent.url.join("/")]=i}shouldAttach(e){return!!this.handlers[e.url.join("/")||e.parent.url.join("/")]}retrieve(e){return this.handlers[e.url.join("/")||e.parent.url.join("/")]}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const mY=[{path:"about",component:YG},{path:"books",component:ZG},{path:"createBook",component:JG},{path:"edit/:id",component:rY},{path:"book/:id",component:fY},{path:"print/:id",component:KG},{path:"login",component:eW},{path:"logout",component:tW},{path:"match/:transcription",component:lW},{path:"practice",component:yW},{path:"record",component:OW},{path:"repertoire",component:WW},{path:"search",component:tY},{path:"tune/:bookId/:ref",component:dY},{path:"",redirectTo:"/search",pathMatch:"full"}],gY={client_id:"98237286064-bf0vbgpqqklhj434vifvfafvtckaja12.apps.googleusercontent.com",discoveryDocs:["https://www.googleapis.com/discovery/v1/apis/drive/v3/rest"],scope:"https://www.googleapis.com/auth/drive.appfolder https://www.googleapis.com/auth/drive.file",prompt:""};let vY=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n,bootstrap:[WG]}),n.\u0275inj=dt({providers:[Lx,Yx,Rl,Ax,Bf,Nx,Tu,Tx,{provide:lx,useClass:pY},Wx,Ol,Rs,xx],imports:[[bL,TC,FG.forRoot({provide:Cx,useValue:gY}),UP,V9,PF,QB,fv,GV,rH,CH,Wh,LH,aV,ZH,dj,PL,_j,Lj,Zj,lz,nS,xz,Jz,lU,H9,fG.forRoot(mY,{relativeLinkResolution:"legacy"}),ih,AG.register("ngsw-worker.js",{enabled:true})]]}),n})();(0,Kd.configure)({level:Kd.LogLevel.INFO,virtualConsole:!1}),function YR(){j2=!1}(),iF().bootstrapModule(vY).catch(n=>console.error(n))},1259:(Z,H,M)=>{var A=M(9866),I=M(5970),D=M(7927),p=M(652),b=M(1091),c={};c.signature="abcjs-basic v"+A,Object.keys(I).forEach(function(x){c[x]=I[x]}),Object.keys(D).forEach(function(x){c[x]=D[x]}),c.renderAbc=M(4255),c.TimingCallbacks=M(7233);var f=M(6547);c.setGlyph=f.setSymbol,c.strTranspose=b;var m=M(6142),_=M(7657),y=M(7977),E=M(974),g=M(8720),l=M(5921),h=M(9938),w=M(4053),u=M(9435),v=M(6221),S=M(3294);c.synth={CreateSynth:m,instrumentIndexToName:_,pitchToNoteName:y,SynthController:v,SynthSequence:E,CreateSynthControl:g,registerAudioContext:l,activeAudioContext:h,supportsAudio:w,playEvent:u,getMidiFile:S,sequence:p},c.Editor=M(1318),c.EditArea=M(9527),Z.exports=c},5970:(Z,H,M)=>{var A=M(7233),I={};(function(){"use strict";var D,p;I.startAnimation=function(b,c,f){function m(w){for(var u=0;u{var A=M(7374),I=M(3597),D={violin:"ViolinTab",fiddle:"ViolinTab",mandolin:"ViolinTab",guitar:"GuitarTab"};Z.exports={inited:!1,plugins:{},register:function(b){this.plugins[b.name]=b.tablature},setError:function(b,c){b.warnings?b.warning.push(c):b.warnings=[c]},preparePlugins:function(b,c,f){var m=null;if(f.tablature){var y=f.tablature;m=[];for(var E=0;E{Z.exports=function(A,I){var D=this;I||(I={}),D.qpm=I.qpm?parseInt(I.qpm,10):null,D.qpm||(D.qpm=A.getBpm(A.metaText?A.metaText.tempo:null)),D.extraMeasuresAtBeginning=I.extraMeasuresAtBeginning?parseInt(I.extraMeasuresAtBeginning,10):0,D.beatCallback=I.beatCallback,D.eventCallback=I.eventCallback,D.lineEndCallback=I.lineEndCallback,D.lineEndAnticipation=I.lineEndAnticipation?parseInt(I.lineEndAnticipation,10):0,D.beatSubdivisions=I.beatSubdivisions?parseInt(I.beatSubdivisions,10):1,D.joggerTimer=null,D.replaceTarget=function(c){D.noteTimings=c.setTiming(D.qpm,D.extraMeasuresAtBeginning),0===c.noteTimings.length&&(D.noteTimings=c.setTiming(0,0)),D.lineEndCallback&&(D.lineEndTimings=function M(A,I){for(var D=[],p=null,b=0;bD.currentEvent&&D.noteTimings[D.currentEvent].millisecondsD.currentLine&&D.lineEndTimings[D.currentLine].milliseconds=D.lastMoment)if(D.eventCallback){var E=D.eventCallback(null);D.shouldStop(E).then(function(g){g&&D.stop()})}else D.stop()}},D.shouldStop=function(c){return new Promise(function(f){return c?"continue"===c?f(!1):void(c.then&&c.then(function(m){f("continue"!==m)})):f(!0)})},D.doBeatCallback=function(c){if(D.beatCallback){for(var f=D.currentEvent;f=0&&null===D.noteTimings[f].left;)f--;_=D.noteTimings[f]}var y={},E={};if(_){y.top=_.top,y.height=_.height;var g=Math.max(0,c-D.startTime-_.milliseconds),l=m-_.milliseconds,h=_.endX-_.left,w=l?g*h/l:0;y.left=_.left+w,0===D.currentEvent&&_.milliseconds>c-D.startTime&&(y.left=void 0),E={timestamp:c,startTime:D.startTime,ev:_,endMs:m,offMs:g,offPx:w,gapMs:l,gapPx:h}}else E={timestamp:c,startTime:D.startTime};var u=D.startTime;if(D.beatCallback(D.currentBeat/D.beatSubdivisions,D.totalBeats/D.beatSubdivisions,D.lastMoment,y,E),u!==D.startTime)return c-D.startTime;D.currentBeat++}return null},D.animationJogger=function(){D.isRunning&&(D.doTiming(performance.now()),D.joggerTimer=setTimeout(D.animationJogger,60))},D.start=function(c,f){if(D.isRunning=!0,D.isPaused&&(D.isPaused=!1,void 0===c&&(D.justUnpaused=!0)),c)D.setProgress(c,f);else if(0===c)D.reset();else if(null!==D.pausedPercent){var m=performance.now();D.currentTime=D.lastMoment*D.pausedPercent,D.startTime=m-D.currentTime,D.pausedPercent=null,D.reportNext=!0}requestAnimationFrame(D.doTiming),D.joggerTimer=setTimeout(D.animationJogger,60)},D.pause=function(){D.isPaused=!0;var c=performance.now();D.pausedPercent=(c-D.startTime)/D.lastMoment,D.isRunning=!1,D.joggerTimer&&(clearTimeout(D.joggerTimer),D.joggerTimer=null)},D.currentMillisecond=function(){return D.currentTime},D.reset=function(){D.currentBeat=0,D.currentEvent=0,D.currentLine=0,D.startTime=null,D.pausedPercent=null},D.stop=function(){D.pause(),D.reset()},D.setProgress=function(c,f){var m;switch(f){case"seconds":D.currentTime=1e3*c,D.currentTime<0&&(D.currentTime=0),D.currentTime>D.lastMoment&&(D.currentTime=D.lastMoment),m=D.currentTime/D.lastMoment;break;case"beats":D.currentTime=c*D.millisecondsPerBeat*D.beatSubdivisions,D.currentTime<0&&(D.currentTime=0),D.currentTime>D.lastMoment&&(D.currentTime=D.lastMoment),m=D.currentTime/D.lastMoment;break;default:(m=c)<0&&(m=0),m>1&&(m=1),D.currentTime=D.lastMoment*m}D.isRunning||(D.pausedPercent=m);var _=performance.now();for(D.startTime=_-D.currentTime,D.currentEvent=0;D.noteTimings.length>D.currentEvent&&D.noteTimings[D.currentEvent].millisecondsD.currentLine&&D.lineEndTimings[D.currentLine].milliseconds+D.lineEndAnticipation=0&&"event"===D.noteTimings[D.currentEvent].type&&D.eventCallback(D.noteTimings[D.currentEvent]),D.lineEndCallback&&D.lineEndCallback(D.lineEndTimings[D.currentLine],D.noteTimings[D.currentEvent],{line:D.currentLine,endTimings:D.lineEndTimings}),D.joggerTimer=setTimeout(D.animationJogger,60)}}},7927:(Z,H,M)=>{var A=M(1041),I=M(5802),D=M(1975),p={};(function(){"use strict";p.numberOfTunes=function(m){var y=m.split("\nX:").length;return 0===y&&(y=1),y};var b=p.TuneBook=function(m){var _=I(m);this.header=_.header,this.tunes=_.tunes};b.prototype.getTuneById=function(m){for(var _=0;_=0&&h0,Y=0;Y=0&&(S=z.startChar,v=void 0===z.chord?u:null),z.chord&&(u=z),"bar"===z.el_type){if(O){var P={abc:g.abc.substring(S,z.endChar)};(u=v&&v.chord&&v.chord.length>0?v.chord[0].name:null)&&(P.lastChord=u),z.startEnding&&(P.startEnding=z.startEnding),z.endEnding&&(P.endEnding=z.endEnding),x.push(P),S=null,O=!1}}else"note"===z.el_type&&(O=!0)}}_.push({header:w,measures:x,hasPickup:j})}return _}})(),Z.exports=p},4255:(Z,H,M)=>{var A=M(7927),D=(M(2334),M(9923)),p=M(1041),b=M(7102),c={};function f(){var E=window.innerWidth;for(var g in c)if(c.hasOwnProperty(g)){var l=c[g];l.style.width=(E-=2*l.offsetLeft)+"px"}}try{window.addEventListener("resize",f),window.addEventListener("orientationChange",f)}catch(E){}function m(E,g,l,h,w){l.viewportHorizontal?(E.innerHTML='
',l.scrollHorizontal?(E.style.overflowX="auto",E.style.overflowY="hidden"):E.style.overflow="hidden",c[E.id]=E,E=E.children[0]):l.viewportVertical?(E.innerHTML='
',E.style.overflowX="hidden",E.style.overflowY="auto",E=E.children[0]):E.innerHTML="";var u=new D(E,l);u.engraveABC(g,h,w),g.engraver=u,(l.viewportVertical||l.viewportHorizontal)&&(E.parentNode.style.width=E.style.width)}Z.exports=function(E,g,l,h,w){var v,u={};if(l){for(v in l)l.hasOwnProperty(v)&&(u[v]=l[v]);u.warnings_id&&u.tablature&&(u.tablature.warning_id=u.warnings_id)}if(h)for(v in h)h.hasOwnProperty(v)&&("listener"===v?h[v].highlight&&(u.clickListener=h[v].highlight):u[v]=h[v]);if(w)for(v in w)w.hasOwnProperty(v)&&(u[v]=w[v]);return A.renderEngine(function S(x,O,B,j){var Y=!1;return"*"===x&&(Y=!0,(x=document.createElement("div")).setAttribute("style","visibility: hidden;"),document.body.appendChild(x)),u.afterParsing&&u.afterParsing(O,B,j),!Y&&u.wrap&&u.staffwidth?(O=function y(E,g,l,h,w){var v=new D(E,w).getMeasureWidths(g),S=b.calcLineWraps(g,v,w);if(S.reParse){var x=new p;x.parse(h,S.revisedParams),g=x.getTune();var O=x.getWarnings();O&&(g.warnings=O)}return m(E,g,S.revisedParams,l,0),g.explanation=S.explanation,g}(x,O,B,j,u),O):(m(x,O,u,B,0),Y&&x.parentNode.removeChild(x),null)},E,g,u)}},3463:(Z,H,M)=>{var{relativeMajor:A}=M(9285),I={acc:"sharp",note:"f"},D={acc:"sharp",note:"c"},p={acc:"sharp",note:"g"},b={acc:"sharp",note:"d"},c={acc:"sharp",note:"A"},f={acc:"sharp",note:"e"},_={acc:"flat",note:"B"},y={acc:"flat",note:"e"},E={acc:"flat",note:"A"},g={acc:"flat",note:"d"},l={acc:"flat",note:"G"},h={acc:"flat",note:"c"},u={"C#":[I,D,p,b,c,f,{acc:"sharp",note:"B"}],"F#":[I,D,p,b,c,f],B:[I,D,p,b,c],E:[I,D,p,b],A:[I,D,p],D:[I,D],G:[I],C:[],F:[_],Bb:[_,y],Eb:[_,y,E],Cm:[_,y,E],Ab:[_,y,E,g],Db:[_,y,E,g,l],Gb:[_,y,E,g,l,h],Cb:[_,y,E,g,l,h,{acc:"flat",note:"F"}],"A#":[_,y],"B#":[],"D#":[_,y,E],"E#":[_],"G#":[_,y,E,g],none:[]};Z.exports=function v(S){var x=u[A(S)];return x?JSON.parse(JSON.stringify(x)):null}},9285:Z=>{var H={C:{modes:["CMaj","Amin","Am","GMix","DDor","EPhr","FLyd","BLoc"],stepsFromC:0},Db:{modes:["DbMaj","Bbmin","Bbm","AbMix","EbDor","FPhr","GbLyd","CLoc"],stepsFromC:1},D:{modes:["DMaj","Bmin","Bm","AMix","EDor","F#Phr","GLyd","C#Loc"],stepsFromC:2},Eb:{modes:["EbMaj","Cmin","Cm","BbMix","FDor","GPhr","AbLyd","DLoc"],stepsFromC:3},E:{modes:["EMaj","C#min","C#m","BMix","F#Dor","G#Phr","ALyd","D#Loc"],stepsFromC:4},F:{modes:["FMaj","Dmin","Dm","CMix","GDor","APhr","BbLyd","ELoc"],stepsFromC:5},Gb:{modes:["GbMaj","Ebmin","Ebm","DbMix","AbDor","BbPhr","CbLyd","FLoc"],stepsFromC:6},G:{modes:["GMaj","Emin","Em","DMix","ADor","BPhr","CLyd","F#Loc"],stepsFromC:7},Ab:{modes:["AbMaj","Fmin","Fm","EbMix","BbDor","CPhr","DbLyd","GLoc"],stepsFromC:8},A:{modes:["AMaj","F#min","F#m","EMix","BDor","C#Phr","DLyd","G#Loc"],stepsFromC:9},Bb:{modes:["BbMaj","Gmin","Gm","FMix","CDor","DPhr","EbLyd","ALoc"],stepsFromC:10},B:{modes:["BMaj","G#min","G#m","F#Mix","C#Dor","D#Phr","ELyd","A#Loc"],stepsFromC:11},"C#":{modes:["C#Maj","A#min","A#m","G#Mix","D#Dor","E#Phr","F#Lyd","B#Loc"],stepsFromC:1},"F#":{modes:["F#Maj","D#min","D#m","C#Mix","G#Dor","A#Phr","BLyd","E#Loc"],stepsFromC:6},Cb:{modes:["CbMaj","Abmin","Abm","GbMix","DbDor","EbPhr","FbLyd","BbLoc"],stepsFromC:11}},M=null;Z.exports={relativeMajor:function I(b){M||function A(){M={};for(var b=Object.keys(H),c=0;c{var A=M(5339),I=M(2866),D=M(652),p=M(6470),b=M(1618);Z.exports=function(){function f(l,h,w,u){for(var v=0;v=h&&(w-=h),"bar"===x[B].el_type)return w;return w}(this.lines,l);return h<1e-8||l-h<1e-8?0:h},this.getBarLength=function(){var l=this.getMeterFraction();return l.num/l.den},this.getTotalTime=function(){return this.totalTime},this.getTotalBeats=function(){return this.totalBeats},this.millisecondsPerMeasure=function(l){var h;return(h=l||this.getBpm(this.metaText?this.metaText.tempo:null))<=0&&(h=1),this.getBeatsPerMeasure()/h*6e4},this.getBeatsPerMeasure=function(){var l=this.getBeatLength();return this.getBarLength()/l},this.getMeter=function(){for(var l=0;ll)return B}}return null},this.addElementToEvents=function(l,h,w,u,v,S,x,O,B,j){if(h.hint)return{isTiedState:void 0,duration:0};var Y=h.durationClass?h.durationClass:h.duration;if(h.abcelem.rest&&"spacer"===h.abcelem.rest.type&&(Y=0),Y>0){for(var te=[],W=0;W0)for(var S=v.staffs[0],x=S.absoluteY,O=x-S.top*I.STEP,B=v.staffs[v.staffs.length-1],Y=(x=B.absoluteY)-B.bottom*I.STEP-O,te=v.voices,W=0;W0&&S["event"+q]&&(R="event"+q),q=Math.round(1e3*W),"bar"===Q.type){var F=Q.abcelem.type,J="1"===Q.abcelem.startEnding,se="bar_left_repeat"===F||"bar_dbl_repeat"===F||"bar_right_repeat"===F;if("bar_right_repeat"===F||"bar_dbl_repeat"===F){P>0&&(S[R].endX=Q.x),-1===U&&(U=P);var ie=0;L=-1;for(var ye=ee;ye=0;S--){var x=l[S];"bar"===x.type?(x.top=u,x.nextTop=h,h=u,x.bottom=v,x.nextBottom=w,w=v):"event"===x.type&&(u=x.top,v=x.top+x.height)}}(v),function g(l,h){if(!(h.length<1)){for(var w=0;wu.left&&(u.endX=Math.min(u.endX,S)):u.endX=S}}var x=h[h.length-1];x.endX=l[x.line].staffGroup.w}}(this.lines,v),v.push({type:"end",milliseconds:Y}),this.addUsefulCallbackInfo(v,z*u),v},this.addUsefulCallbackInfo=function(l,h){for(var w=this.millisecondsPerMeasure(h),u=0;u0?l.duration[0]:w)/w}if(!h){h=180;var v=this.getMeterFraction();v&&3!==v.num&&v.num%3==0&&(h=120)}return h},this.setTiming=function(l,h){if(h=h||0,!this.engraver||!this.engraver.staffgroups)return console.log("setTiming cannot be called before the tune is drawn."),this.noteTimings=[],this.noteTimings;var w=this.metaText?this.metaText.tempo:null,u=this.getBpm(w),v=1;l?w&&(v=l/u):l=u;var S=this.getBeatLength(),x=l/60,B=this.getBarLength()/S*h/x;return B&&(B-=this.getPickupLength()/S/x),this.noteTimings=this.setupEvents(B,S*x,l,v),this.noteTimings.length>0?(this.totalTime=this.noteTimings[this.noteTimings.length-1].milliseconds/1e3,this.totalBeats=this.totalTime*x):(this.totalTime=void 0,this.totalBeats=void 0),this.noteTimings},this.setUpAudio=function(l){l||(l={});var h=D(this,l);return p(h,l,this.formatting.percmap,this.formatting.midi)},this.deline=function(l){return b(this.lines,l)}}},1618:Z=>{function M(f,m){return"abselem"===f?"abselem":m}function A(f,m){f.el_type="meter",f.startChar=-1,f.endChar=-1;for(var _=0;_{try{if("function"!=typeof window.CustomEvent){var H=function(A,I){I=I||{bubbles:!1,cancelable:!1,detail:void 0};var D=document.createEvent("CustomEvent");return D.initCustomEvent(A,I.bubbles,I.cancelable,I.detail),D};H.prototype=window.Event.prototype,window.CustomEvent=H}}catch(A){}var M=function(A){this.textarea=document.getElementById(A),this.initialText=this.textarea.value,this.isDragging=!1};M.prototype.addSelectionListener=function(A){this.textarea.onmousemove=function(I){this.isDragging&&A.fireSelectionChanged()}},M.prototype.addChangeListener=function(A){this.changelistener=A,this.textarea.onkeyup=function(){A.fireChanged()},this.textarea.onmousedown=function(){this.isDragging=!0,A.fireSelectionChanged()},this.textarea.onmouseup=function(){this.isDragging=!1,A.fireChanged()},this.textarea.onchange=function(){A.fireChanged()}},M.prototype.getSelection=function(){return{start:this.textarea.selectionStart,end:this.textarea.selectionEnd}},M.prototype.setSelection=function(A,I){if(this.textarea.setSelectionRange)this.textarea.setSelectionRange(A,I);else if(this.textarea.createTextRange){var D=this.textarea.createTextRange();D.collapse(!0),D.moveEnd("character",I),D.moveStart("character",A),D.select()}this.textarea.focus()},M.prototype.getString=function(){return this.textarea.value},M.prototype.setString=function(A){this.textarea.value=A,this.initialText=this.getString(),this.changelistener&&this.changelistener.fireChanged()},M.prototype.getElem=function(){return this.textarea},Z.exports=M},1318:(Z,H,M)=>{var A=M(5339),I=M(6221),D=M(4053),p=M(4255),b=M(9527),f=function(m,_){this.abcjsParams=function c(m){var y,_={};if(m.abcjsParams)for(y in m.abcjsParams)m.abcjsParams.hasOwnProperty(y)&&(_[y]=m.abcjsParams[y]);if(m.midi_options)for(y in m.midi_options)m.midi_options.hasOwnProperty(y)&&(_[y]=m.midi_options[y]);if(m.parser_options)for(y in m.parser_options)m.parser_options.hasOwnProperty(y)&&(_[y]=m.parser_options[y]);if(m.render_options)for(y in m.render_options)m.render_options.hasOwnProperty(y)&&(_[y]=m.render_options[y]);return _.tablature&&m.warnings_id&&(_.tablature.warnings_id=m.warnings_id),_}(_),_.indicate_changed&&(this.indicate_changed=!0),this.editarea="string"==typeof m?new b(m):m,this.editarea.addSelectionListener(this),this.editarea.addChangeListener(this),_.canvas_id?this.div=_.canvas_id:_.paper_id?this.div=_.paper_id:(this.div=document.createElement("DIV"),this.editarea.getElem().parentNode.insertBefore(this.div,this.editarea.getElem())),"string"==typeof this.div&&(this.div=document.getElementById(this.div)),_.selectionChangeCallback&&(this.selectionChangeCallback=_.selectionChangeCallback),this.clientClickListener=this.abcjsParams.clickListener,this.abcjsParams.clickListener=this.highlight.bind(this),_.synth&&D()&&(this.synth={el:_.synth.el,cursorControl:_.synth.cursorControl,options:_.synth.options}),_.generate_midi&&(this.generate_midi=_.generate_midi,this.abcjsParams.generateDownload&&("string"==typeof _.midi_download_id?this.downloadMidi=document.getElementById(_.midi_download_id):_.midi_download_id&&(this.downloadMidi=_.midi_download_id)),!1!==this.abcjsParams.generateInline&&("string"==typeof _.midi_id?this.inlineMidi=document.getElementById(_.midi_id):_.midi_id&&(this.inlineMidi=_.midi_id))),_.warnings_id?this.warningsdiv="string"==typeof _.warnings_id?document.getElementById(_.warnings_id):_.warnings_id:_.generate_warnings&&(this.warningsdiv=document.createElement("div"),this.div.parentNode.insertBefore(this.warningsdiv,this.div)),this.onchangeCallback=_.onchange,this.currentAbc="",this.tunes=[],this.bReentry=!1,this.parseABC(),this.modelChanged(),this.addClassName=function(y,E){var h,w;return h=E,(w=y.className).length>0&&(w===h||new RegExp("(^|\\s)"+h+"(\\s|$)").test(w))||(y.className+=(y.className?" ":"")+E),y},this.removeClassName=function(y,E){return y.className=A.strip(y.className.replace(new RegExp("(^|\\s+)"+E+"(\\s+|$)")," ")),y},this.setReadOnly=function(y){var E="abc_textarea_readonly",g=this.editarea.getElem();y?(g.setAttribute("readonly","yes"),this.addClassName(g,E)):(g.removeAttribute("readonly"),this.removeClassName(g,E))}};f.prototype.redrawMidi=function(){if(this.generate_midi&&!this.midiPause){var m=new window.CustomEvent("generateMidi",{detail:{tunes:this.tunes,abcjsParams:this.abcjsParams,downloadMidiEl:this.downloadMidi,inlineMidiEl:this.inlineMidi,engravingEl:this.div}});window.dispatchEvent(m)}if(this.synth){var _=this.synth.synthControl;this.synth.synthControl||(this.synth.synthControl=new I,this.synth.synthControl.load(this.synth.el,this.synth.cursorControl,this.synth.options)),this.synth.synthControl.setTune(this.tunes[0],_,this.synth.options)}},f.prototype.modelChanged=function(){if(!this.bReentry){this.bReentry=!0;try{this.timerId=null,this.synth&&this.synth.synthControl&&this.synth.synthControl.disable(!0),this.tunes=p(this.div,this.currentAbc,this.abcjsParams),this.tunes.length>0&&(this.warnings=this.tunes[0].warnings),this.redrawMidi()}catch(m){console.error("ABCJS error: ",m),this.warnings||(this.warnings=[]),this.warnings.push(m.message)}this.warningsdiv&&(this.warningsdiv.innerHTML=this.warnings?this.warnings.join("
"):"No errors"),this.updateSelection(),this.bReentry=!1}},f.prototype.paramChanged=function(m){if(m)for(var _ in m)m.hasOwnProperty(_)&&(this.abcjsParams[_]=m[_]);this.currentAbc="",this.fireChanged()},f.prototype.synthParamChanged=function(m){if(this.synth){if(this.synth.options={},m)for(var _ in m)m.hasOwnProperty(_)&&(this.synth.options[_]=m[_]);this.currentAbc="",this.fireChanged()}},f.prototype.parseABC=function(){var m=this.editarea.getString();return m===this.currentAbc?(this.updateSelection(),!1):(this.currentAbc=m,!0)},f.prototype.updateSelection=function(){var m=this.editarea.getSelection();try{this.tunes.length>0&&this.tunes[0].engraver&&this.tunes[0].engraver.rangeHighlight(m.start,m.end)}catch(_){}this.selectionChangeCallback&&this.selectionChangeCallback(m.start,m.end)},f.prototype.fireSelectionChanged=function(){this.updateSelection()},f.prototype.setDirtyStyle=function(m){if(void 0!==this.indicate_changed){var E="abc_textarea_dirty",g=this.editarea.getElem();m?(v=E,(S=(l=g).className).length>0&&(S===v||new RegExp("(^|\\s)"+v+"(\\s|$)").test(S))||(l.className+=(l.className?" ":"")+"abc_textarea_dirty")):function(l,h){l.className=A.strip(l.className.replace(new RegExp("(^|\\s+)abc_textarea_dirty(\\s+|$)")," "))}(g)}var l,v,S},f.prototype.fireChanged=function(){if(!this.bIsPaused&&this.parseABC()){var m=this;this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){m.modelChanged()},300);var _=this.isDirty();this.wasDirty!==_&&(this.wasDirty=_,this.setDirtyStyle(_)),this.onchangeCallback&&this.onchangeCallback(this)}},f.prototype.setNotDirty=function(){this.editarea.initialText=this.editarea.getString(),this.wasDirty=!1,this.setDirtyStyle(!1)},f.prototype.isDirty=function(){return void 0!==this.indicate_changed&&this.editarea.initialText!==this.editarea.getString()},f.prototype.highlight=function(m,_,y,E,g,l){this.editarea.setSelection(m.startChar,m.endChar),this.selectionChangeCallback&&this.selectionChangeCallback(m.startChar,m.endChar),this.clientClickListener&&this.clientClickListener(m,_,y,E,g,l)},f.prototype.pause=function(m){this.bIsPaused=m,m||this.fireChanged()},f.prototype.millisecondsPerMeasure=function(){return this.synth&&this.synth.synthControl&&this.synth.synthControl.visualObj?this.synth.synthControl.visualObj.millisecondsPerMeasure():0},f.prototype.pauseMidi=function(m){this.midiPause=m,m||this.redrawMidi()},Z.exports=f},3538:(Z,H,M)=>{var I,A=M(9237);(function(){"use strict";function p(b,c,f){for(var m=Object.keys(c),_=0;_y&&(b.addRest((m[E]-y)*f),y=m[E]);for(var h=0;h128&&(_=_.substring(0,124)+"...");var y=b.getKeySignature(),E=b.getMeterFraction(),g=f.tempo/60;m.setGlobalInfo(f.tempo,_,y,E);for(var l=0;ll&&(v=c.pan[l]),128===u.instrument?(m.setChannel(9,v),m.setInstrument(0)):(m.setChannel(u.channel,v),m.setInstrument(u.instrument));break;case"note":var x=u.start,O=x+u.duration-u.gap*g;h[x]||(h[x]=[]),h[x].push({pitch:u.pitch,volume:u.volume,cents:u.cents}),h[O]||(h[O]=[]),h[O].push({pitch:u.pitch,volume:0});break;default:console.log("MIDI create Unknown: "+u.cmd)}}p(m,h,1920),m.endTrack()}return m.getData()}})(),Z.exports=I},5339:Z=>{var H={clone:function(M){var A={};for(var I in M)M.hasOwnProperty(I)&&(A[I]=M[I]);return A},cloneArray:function(M){for(var A=[],I=0;I=0&&M.lastIndexOf(A)===I},last:function(M){return 0===M.length?null:M[M.length-1]}};Z.exports=H},1041:(Z,H,M)=>{var A=M(5339),I=M(467),D=M(9085),p=M(1380),b=M(7701),c=M(7102),f=M(2334),m=M(5399);Z.exports=function(){"use strict";var g,y=new f,E=new m(y),l="",h="";function w(z,L,P){z.positioning||(z.positioning={}),z.positioning[L]=P}function u(z,L,P){z.fonts||(z.fonts={}),z.fonts[L]=P}this.getTune=function(){var z={formatting:y.formatting,lines:y.lines,media:y.media,metaText:y.metaText,metaTextInfo:y.metaTextInfo,version:y.version,addElementToEvents:y.addElementToEvents,addUsefulCallbackInfo:y.addUsefulCallbackInfo,getTotalTime:y.getTotalTime,getTotalBeats:y.getTotalBeats,getBarLength:y.getBarLength,getBeatLength:y.getBeatLength,getBeatsPerMeasure:y.getBeatsPerMeasure,getBpm:y.getBpm,getMeter:y.getMeter,getMeterFraction:y.getMeterFraction,getPickupLength:y.getPickupLength,getKeySignature:y.getKeySignature,getElementFromChar:y.getElementFromChar,makeVoicesArray:y.makeVoicesArray,millisecondsPerMeasure:y.millisecondsPerMeasure,setupEvents:y.setupEvents,setTiming:y.setTiming,setUpAudio:y.setUpAudio,deline:y.deline};return y.lineBreaks&&(z.lineBreaks=y.lineBreaks),y.visualTranspose&&(z.visualTranspose=y.visualTranspose),z};var j,Y,v={reset:function(){for(var z in this)this.hasOwnProperty(z)&&"function"!=typeof this[z]&&delete this[z];this.iChar=0,this.key={accidentals:[],root:"none",acc:"",mode:""},this.meter=null,this.origMeter=null,this.hasMainTitle=!1,this.default_length=.125,this.clef={type:"treble",verticalPos:0},this.octave=0,this.next_note_duration=0,this.start_new_line=!0,this.is_in_header=!0,this.partForNextLine={},this.tempoForNextLine=[],this.havent_set_length=!0,this.voices={},this.staves=[],this.macros={},this.currBarNumber=1,this.barCounter={},this.ignoredDecorations=[],this.score_is_present=!1,this.inEnding=!1,this.inTie=[],this.inTieChord={},this.vocalPosition="auto",this.dynamicPosition="auto",this.chordPosition="auto",this.ornamentPosition="auto",this.volumePosition="auto",this.openSlurs=[],this.freegchord=!1,this.endingHoldOver={}},differentFont:function(z,L){return this[z].decoration!==L[z].decoration||this[z].face!==L[z].face||this[z].size!==L[z].size||this[z].style!==L[z].style||this[z].weight!==L[z].weight},addFormattingOptions:function(z,L,P){"note"===P?("auto"!==this.vocalPosition&&w(z,"vocalPosition",this.vocalPosition),"auto"!==this.dynamicPosition&&w(z,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&w(z,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&w(z,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&w(z,"volumePosition",this.volumePosition),this.differentFont("annotationfont",L)&&u(z,"annotationfont",this.annotationfont),this.differentFont("gchordfont",L)&&u(z,"gchordfont",this.gchordfont),this.differentFont("vocalfont",L)&&u(z,"vocalfont",this.vocalfont),this.differentFont("tripletfont",L)&&u(z,"tripletfont",this.tripletfont)):"bar"===P&&("auto"!==this.dynamicPosition&&w(z,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&w(z,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&w(z,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&w(z,"volumePosition",this.volumePosition),this.differentFont("measurefont",L)&&u(z,"measurefont",this.measurefont),this.differentFont("repeatfont",L)&&u(z,"repeatfont",this.repeatfont))},duplicateStartEndingHoldOvers:function(){this.endingHoldOver={inTie:[],inTieChord:{}};for(var z=0;z/g,">")},B=function(z,L,P){L||(L=" ");var $=L[P];(" "===$||!$)&&($="SPACE");var Q=O(L.substring(P-64,P))+''+$+""+O(L.substring(P+1).substring(0,64));(function(z){v.warnings||(v.warnings=[]),v.warnings.push(z)})("Music Line:"+g.lineIndex+":"+(P+1)+": "+z+": "+Q),function(z){v.warningObjects||(v.warningObjects=[]),v.warningObjects.push(z)}({message:z,line:L,startChar:v.iChar+P,column:P})};this.getWarnings=function(){return v.warnings},this.getWarningObjects=function(){return v.warningObjects};var te=function(z,L){if(L.indexOf("\x12")>=0)l+=L;else if(L=l+L,l="",z){"-"!==(L=A.strip(L))[L.length-1]&&(L+=" ");for(var P=[],$=0,Q=!1,T=function(J){var se=A.strip(L.substring($,J));if(se=se.replace(/\\([-_*|~])/g,"$1"),$=J+1,se.length>0){Q&&(se=se.replace(/~/g," "));var ie=L[J];return"_"!==ie&&"-"!==ie&&(ie=" "),P.push({syllable:g.translateString(se),divider:ie}),Q=!1,!0}return!1},R=!1,F=0;F0&&(A.last(P).divider="-",P.push({skip:!0,to:"next"}));break;case"_":R||(T(F),P.push({skip:!0,to:"slur"}));break;case"*":R||(T(F),P.push({skip:!0,to:"next"}));break;case"|":R||(T(F),P.push({skip:!0,to:"bar"}));break;case"~":R||(Q=!0)}R="\\"===L[F]}z.forEach(function(J){if(0!==P.length)if(P[0].skip){switch(P[0].to){case"next":case"slur":"note"===J.el_type&&null!==J.pitches&&P.shift();break;case"bar":"bar"===J.el_type&&P.shift()}"bar"!==J.el_type&&(void 0===J.lyric?J.lyric=[{syllable:"",divider:" "}]:J.lyric.push({syllable:"",divider:" "}))}else if("note"===J.el_type&&void 0===J.rest){var se=P.shift();se.syllable&&(se.syllable=se.syllable.replace(/ +/g,"\xa0")),void 0===J.lyric?J.lyric=[se]:J.lyric.push(se)}})}else B("Can't add words before the first line of music",z,0)},W=function(z,L){if(L.indexOf("\x12")>=0)h+=L;else if(L=h+L,h="",z){"-"!==(L=A.strip(L))[L.length-1]&&(L+=" ");for(var P=[],$=0,Q=!1,T=function(K){var J=A.strip(L.substring($,K));if($=K+1,J.length>0){Q&&(J=J.replace(/~/g," "));var se=L[K];return"_"!==se&&"-"!==se&&(se=" "),P.push({syllable:g.translateString(J),divider:se}),Q=!1,!0}return!1},R=0;R0&&(A.last(P).divider="-",P.push({skip:!0,to:"next"}));break;case"_":T(R),P.push({skip:!0,to:"slur"});break;case"*":T(R),P.push({skip:!0,to:"next"});break;case"|":T(R),P.push({skip:!0,to:"bar"});break;case"~":Q=!0}z.forEach(function(K){if(0!==P.length)if(P[0].skip)switch(P[0].to){case"next":case"slur":"note"===K.el_type&&null!==K.pitches&&P.shift();break;case"bar":"bar"===K.el_type&&P.shift()}else if("note"===K.el_type&&void 0===K.rest){var J=P.shift();void 0===K.lyric?K.lyric=[J]:K.lyric.push(J)}})}else B("Can't add symbols before the first line of music",z,0)},q=function(z){if(A.startsWith(z,"%%")){var L=I.addDirective(z.substring(2));L&&B(L,z,2)}else{var P=z.indexOf("%");if(P>=0&&(z=z.substring(0,P)),0!==(z=z.replace(/\s+$/,"")).length){if(l)return void te(E.getCurrentVoice(),z.substring(2));if(h)return void W(E.getCurrentVoice(),z.substring(2));if(z.length<2||":"!==z[1]||Y.lineContinuation)return void Y.parseMusic(z);var $=j.parseHeader(z);$.regular&&Y.parseMusic(z),$.newline&&Y.startNewLine(),$.words&&te(E.getCurrentVoice(),z.substring(2)),$.symbols&&W(E.getCurrentVoice(),z.substring(2))}}};function ee(z,L){z.push({el_type:"hint"});for(var P=0;P1){for(var Q=1;Q<$.length;Q++)for(;$[Q].length>0&&"\n"!==$[Q][0];)$[Q]=$[Q].substr(1),$[Q-1]+=" ";z=$.join(" ")}var T=(z=z.replace(/\\([ \t]*)(%.*)*\n/g,function(ie,ye,Fe){return ye+"\x12"+(Fe?Array(Fe.length+1).join(" "):"")+"\n"})).split("\n");0===A.last(T).length&&T.pop(),g=new b(T,v),j=new D(g,B,v,y,E),Y=new p(g,B,v,y,E,j),L.print&&(y.media="print"),v.reset(),v.iChar=P,L.visualTranspose?(v.globalTranspose=parseInt(L.visualTranspose),0===v.globalTranspose?v.globalTranspose=void 0:E.setVisualTranspose(L.visualTranspose)):v.globalTranspose=void 0,L.lineBreaks&&(v.lineBreaks=L.lineBreaks),j.reset(g,B,v,y);try{L.format&&I.globalFormatting(L.format);for(var R=g.nextLine();R;){if(L.header_only&&!1===v.is_in_header||L.stop_on_warning&&v.warnings)throw"normal_abort";var F=v.is_in_header;q(R),F&&!v.is_in_header&&(E.setRunningFont("annotationfont",v.annotationfont),E.setRunningFont("gchordfont",v.gchordfont),E.setRunningFont("tripletfont",v.tripletfont),E.setRunningFont("vocalfont",v.vocalfont)),R=g.nextLine()}l&&te(E.getCurrentVoice(),""),h&&W(E.getCurrentVoice(),""),v.openSlurs=E.cleanUp(v.barsperstaff,v.staffnonote,v.openSlurs)}catch(ie){if("normal_abort"!==ie)throw ie}var K=792,J=612;switch(v.papersize){case"legal":K=1008,J=612;break;case"A4":K=842.4,J=597.6}if(v.landscape){var se=K;K=J,J=se}y.formatting.pagewidth||(y.formatting.pagewidth=J),y.formatting.pageheight||(y.formatting.pageheight=K),L.hint_measures&&function ne(){for(var z=0;z{var A=M(5339);Z.exports=function(D){"use strict";for(var p="",b=D.match(/(\s*)/),c=(D=A.strip(D)).split("\nX:"),f=1;f1&&!A.startsWith(_[0].abc,"X:")&&_.shift().abc.split("\n").forEach(function(l){A.startsWith(l,"%%")&&(p+=l+"\n")});var g=p;return _.forEach(function(l){var h=l.abc.indexOf("\n\n");h>0&&(l.abc=l.abc.substring(0,h)),l.pure=l.abc,l.abc=p+l.abc,l.title="";var w=l.pure.split("T:");w.length>1&&(w=w[1].split("\n"),l.title=A.strip(w[0]));var u=l.pure.substring(2,l.pure.indexOf("\n"));l.id=A.strip(u)}),{header:g,tunes:_}}},467:(Z,H,M)=>{var A=M(5339),I={};(function(){"use strict";var D,p,b,c,f;I.initialize=function(T,R,F,K,J){D=T,p=R,b=F,c=K,f=J,function m(){b.annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},b.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},b.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},b.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},b.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},b.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},b.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},b.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},b.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},b.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},b.wordsfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},c.formatting.composerfont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},c.formatting.subtitlefont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},c.formatting.tempofont={face:'"Times New Roman"',size:15,weight:"bold",style:"normal",decoration:"none"},c.formatting.titlefont={face:'"Times New Roman"',size:20,weight:"normal",style:"normal",decoration:"none"},c.formatting.footerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},c.formatting.headerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},c.formatting.voicefont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},c.formatting.tablabelfont={face:'"Trebuchet MS"',size:16,weight:"normal",style:"normal",decoration:"none"},c.formatting.tabnumberfont={face:'"Arial"',size:11,weight:"normal",style:"normal",decoration:"none"},c.formatting.tabgracefont={face:'"Arial"',size:8,weight:"normal",style:"normal",decoration:"none"},c.formatting.annotationfont=b.annotationfont,c.formatting.gchordfont=b.gchordfont,c.formatting.historyfont=b.historyfont,c.formatting.infofont=b.infofont,c.formatting.measurefont=b.measurefont,c.formatting.partsfont=b.partsfont,c.formatting.repeatfont=b.repeatfont,c.formatting.textfont=b.textfont,c.formatting.tripletfont=b.tripletfont,c.formatting.vocalfont=b.vocalfont,c.formatting.wordsfont=b.wordsfont}()};var _={gchordfont:!0,measurefont:!0,partsfont:!0,annotationfont:!0,composerfont:!0,historyfont:!0,infofont:!0,subtitlefont:!0,textfont:!0,titlefont:!0,voicefont:!0},E=function(T,R,F,K,J){function se(){var Bt=parseInt(T[0].token);return T.shift(),R?0===T.length?{face:R.face,weight:R.weight,style:R.style,decoration:R.decoration,size:Bt}:1===T.length&&"box"===T[0].token&&_[J]?{face:R.face,weight:R.weight,style:R.style,decoration:R.decoration,size:Bt,box:!0}:(p("Extra parameters in font definition.",F,K),{face:R.face,weight:R.weight,style:R.style,decoration:R.decoration,size:Bt}):(p("Can't set just the size of the font since there is no default value.",F,K),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:Bt})}if("*"===T[0].token){if(T.shift(),"number"===T[0].type)return se();p("Expected font size number after *.",F,K)}if("number"===T[0].type)return se();for(var ye,ie=[],Fe="normal",me="normal",Ve="none",et=!1,qe="face",Be=!1;T.length;){var $e=T.shift(),st=$e.token.toLowerCase();switch(qe){case"face":Be||"utf"!==st&&"number"!==$e.type&&"bold"!==st&&"italic"!==st&&"underline"!==st&&"box"!==st?ie.length>0&&"-"===$e.token?(Be=!0,ie[ie.length-1]=ie[ie.length-1]+$e.token):Be?(Be=!1,ie[ie.length-1]=ie[ie.length-1]+$e.token):ie.push($e.token):"number"===$e.type?(ye?p("Font size specified twice in font definition.",F,K):ye=$e.token,qe="modifier"):"bold"===st?Fe="bold":"italic"===st?me="italic":"underline"===st?Ve="underline":"box"===st?(_[J]?et=!0:p('This font style doesn\'t support "box"',F,K),qe="finished"):"utf"===st?($e=T.shift(),qe="size"):p("Unknown parameter "+$e.token+" in font definition.",F,K);break;case"size":"number"===$e.type?ye?p("Font size specified twice in font definition.",F,K):ye=$e.token:p("Expected font size in font definition.",F,K),qe="modifier";break;case"modifier":"bold"===st?Fe="bold":"italic"===st?me="italic":"underline"===st?Ve="underline":"box"===st?(_[J]?et=!0:p('This font style doesn\'t support "box"',F,K),qe="finished"):p("Unknown parameter "+$e.token+" in font definition.",F,K);break;case"finished":p('Extra characters found after "box" in font definition.',F,K)}}void 0===ye?R?ye=R.size:(p("Must specify the size of the font since there is no default value.",F,K),ye=12):ye=parseFloat(ye),""===(ie=ie.join(" "))&&(R?ie=R.face:(p("Must specify the name of the font since there is no default value.",F,K),ie="sans-serif"));var Re=function(T){switch(T){case"Arial-Italic":return{face:"Arial",weight:"normal",style:"italic",decoration:"none"};case"Arial-Bold":return{face:"Arial",weight:"bold",style:"normal",decoration:"none"};case"Bookman-Demi":return{face:"Bookman,serif",weight:"bold",style:"normal",decoration:"none"};case"Bookman-DemiItalic":return{face:"Bookman,serif",weight:"bold",style:"italic",decoration:"none"};case"Bookman-Light":return{face:"Bookman,serif",weight:"normal",style:"normal",decoration:"none"};case"Bookman-LightItalic":return{face:"Bookman,serif",weight:"normal",style:"italic",decoration:"none"};case"Courier":return{face:'"Courier New"',weight:"normal",style:"normal",decoration:"none"};case"Courier-Oblique":return{face:'"Courier New"',weight:"normal",style:"italic",decoration:"none"};case"Courier-Bold":return{face:'"Courier New"',weight:"bold",style:"normal",decoration:"none"};case"Courier-BoldOblique":return{face:'"Courier New"',weight:"bold",style:"italic",decoration:"none"};case"AvantGarde-Book":return{face:"AvantGarde,Arial",weight:"normal",style:"normal",decoration:"none"};case"AvantGarde-BookOblique":return{face:"AvantGarde,Arial",weight:"normal",style:"italic",decoration:"none"};case"AvantGarde-Demi":case"Avant-Garde-Demi":return{face:"AvantGarde,Arial",weight:"bold",style:"normal",decoration:"none"};case"AvantGarde-DemiOblique":return{face:"AvantGarde,Arial",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Oblique":return{face:"Helvetica",weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Bold":return{face:"Helvetica",weight:"bold",style:"normal",decoration:"none"};case"Helvetica-BoldOblique":return{face:"Helvetica",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Narrow":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"normal",decoration:"none"};case"Helvetica-Narrow-Oblique":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Narrow-Bold":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"normal",decoration:"none"};case"Helvetica-Narrow-BoldOblique":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"italic",decoration:"none"};case"Palatino-Roman":return{face:"Palatino",weight:"normal",style:"normal",decoration:"none"};case"Palatino-Italic":return{face:"Palatino",weight:"normal",style:"italic",decoration:"none"};case"Palatino-Bold":return{face:"Palatino",weight:"bold",style:"normal",decoration:"none"};case"Palatino-BoldItalic":return{face:"Palatino",weight:"bold",style:"italic",decoration:"none"};case"NewCenturySchlbk-Roman":return{face:'"New Century",serif',weight:"normal",style:"normal",decoration:"none"};case"NewCenturySchlbk-Italic":return{face:'"New Century",serif',weight:"normal",style:"italic",decoration:"none"};case"NewCenturySchlbk-Bold":return{face:'"New Century",serif',weight:"bold",style:"normal",decoration:"none"};case"NewCenturySchlbk-BoldItalic":return{face:'"New Century",serif',weight:"bold",style:"italic",decoration:"none"};case"Times":case"Times-Roman":case"Times-Narrow":case"Times-Courier":case"Times-New-Roman":return{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none"};case"Times-Italic":case"Times-Italics":return{face:'"Times New Roman"',weight:"normal",style:"italic",decoration:"none"};case"Times-Bold":return{face:'"Times New Roman"',weight:"bold",style:"normal",decoration:"none"};case"Times-BoldItalic":return{face:'"Times New Roman"',weight:"bold",style:"italic",decoration:"none"};case"ZapfChancery-MediumItalic":return{face:'"Zapf Chancery",cursive,serif',weight:"normal",style:"normal",decoration:"none"};default:return null}}(ie),ut={};return Re?(ut.face=Re.face,ut.weight=Re.weight,ut.style=Re.style,ut.decoration=Re.decoration,ut.size=ye,et&&(ut.box=!0),ut):(ut.face=ie,ut.weight=Fe,ut.style=me,ut.decoration=Ve,ut.size=ye,et&&(ut.box=!0),ut)},g=function(T,R,F){return 0===R.length?'Directive "'+T+'" requires a font as a parameter.':(b[T]=E(R,b[T],F,0,T),b.is_in_header&&(c.formatting[T]=b[T]),null)},h=function(T,R){var F="";R.forEach(function(J){F+=J.token});var K=parseFloat(F);if(isNaN(K)||0===K)return'Directive "'+T+'" requires a number as a parameter.';c.formatting.scale=K},w=["acoustic-bass-drum","bass-drum-1","side-stick","acoustic-snare","hand-clap","electric-snare","low-floor-tom","closed-hi-hat","high-floor-tom","pedal-hi-hat","low-tom","open-hi-hat","low-mid-tom","hi-mid-tom","crash-cymbal-1","high-tom","ride-cymbal-1","chinese-cymbal","ride-bell","tambourine","splash-cymbal","cowbell","crash-cymbal-2","vibraslap","ride-cymbal-2","hi-bongo","low-bongo","mute-hi-conga","open-hi-conga","low-conga","high-timbale","low-timbale","high-agogo","low-agogo","cabasa","maracas","short-whistle","long-whistle","short-guiro","long-guiro","claves","hi-wood-block","low-wood-block","mute-cuica","open-cuica","mute-triangle","open-triangle"],x=function(T,R,F,K,J){if(1!==F.length||"number"!==F[0].type)return'Directive "'+R+'" requires a number as a parameter.';var se=F[0].intt;return void 0!==K&&seJ?'Directive "'+R+'" requires a number less than or equal to '+J+" as a parameter.":(b[T]=se,null)},O=function(T,R,F){if(1===F.length&&("true"===F[0].token||"false"===F[0].token))return b[T]="true"===F[0].token,null;var K=x(T,R,F,0,1);return null!==K?K:(b[T]=1===b[T],null)},B=function(T,R,F,K){if(1!==F.length)return'Directive "'+R+'" requires one of [ '+K.join(", ")+" ] as a parameter.";for(var J=F[0].token,se=!1,ie=0;!se&&ie1&&b.setfont){for(var F=[{text:R[0]}],K=1;K1)return F}return T};var $=["auto","above","below","hidden"];function Q(T){if(0===T.length)return{value:1};if(1===T.length)if("number"===T[0].type){if(T[0].floatt>=0||T[0].floatt<=1)return{value:T[0].floatt}}else{if("false"===T[0].token)return{value:0};if("true"===T[0].token)return{value:1}}return{error:"Directive stretchlast requires zero or one parameter: false, true, or number between 0 and 1 (received "+T[0].token+")"}}I.addDirective=function(T){var R=D.tokenize(T,0,T.length);if(0===R.length||"alpha"!==R[0].type)return null;var F=T.substring(T.indexOf(R[0].token)+R[0].token.length);F=D.stripComment(F);var se,K=R.shift().token.toLowerCase(),J="";switch(K){case"bagpipes":c.formatting.bagpipes=!0;break;case"flatbeams":c.formatting.flatbeams=!0;break;case"jazzchords":c.formatting.jazzchords=!0;break;case"germanAlphabet":c.formatting.germanAlphabet=!0;break;case"landscape":b.landscape=!0;break;case"papersize":b.papersize=F;break;case"graceslurs":if(1!==R.length)return"Directive graceslurs requires one parameter: 0 or 1";if("0"===R[0].token||"false"===R[0].token)c.formatting.graceSlurs=!1;else{if("1"!==R[0].token&&"true"!==R[0].token)return"Directive graceslurs requires one parameter: 0 or 1 (received "+R[0].token+")";c.formatting.graceSlurs=!0}break;case"lineThickness":var ie=Q(R);if(void 0!==ie.value&&(c.formatting.lineThickness=ie.value),ie.error)return ie.error;break;case"stretchlast":var ye=Q(R);if(void 0!==ye.value&&(c.formatting.stretchlast=ye.value),ye.error)return ye.error;break;case"titlecaps":b.titlecaps=!0;break;case"titleleft":c.formatting.titleleft=!0;break;case"measurebox":c.formatting.measurebox=!0;break;case"vocal":return B("vocalPosition",K,R,$);case"dynamic":return B("dynamicPosition",K,R,$);case"gchord":return B("chordPosition",K,R,$);case"ornament":return B("ornamentPosition",K,R,$);case"volume":return B("volumePosition",K,R,$);case"botmargin":case"botspace":case"composerspace":case"indent":case"leftmargin":case"linesep":case"musicspace":case"partsspace":case"pageheight":case"pagewidth":case"rightmargin":case"staffsep":case"staffwidth":case"subtitlespace":case"sysstaffsep":case"systemsep":case"textspace":case"titlespace":case"topmargin":case"topspace":case"vocalspace":case"wordsspace":return function(T,R){var F=D.getMeasurement(R);return 0===F.used||0!==R.length?'Directive "'+T+'" requires a measurement as a parameter.':(c.formatting[T]=F.value,null)}(K,R);case"voicescale":if(1!==R.length||"number"!==R[0].type)return"voicescale requires one float as a parameter";var Fe=R.shift();return b.currentVoice&&(b.currentVoice.scale=Fe.floatt,f.changeVoiceScale(b.currentVoice.scale)),null;case"voicecolor":if(1!==R.length)return"voicecolor requires one string as a parameter";var me=R.shift();return b.currentVoice&&(b.currentVoice.color=me.token,f.changeVoiceColor(b.currentVoice.color)),null;case"vskip":var Ve=Math.round(function(T,R){var F=D.getMeasurement(R);return 0===F.used||0!==R.length?{error:'Directive "'+T+'" requires a measurement as a parameter.'}:F.value}(K,R));return Ve.error?Ve.error:(f.addSpacing(Ve),null);case"scale":h(K,R);break;case"sep":if(0===R.length)f.addSeparator(14,14,85,{startChar:b.iChar,endChar:b.iChar+5});else{var et=D.getMeasurement(R);if(0===et.used)return'Directive "'+K+'" requires 3 numbers: space above, space below, length of line';var qe=et.value;if(0===(et=D.getMeasurement(R)).used)return'Directive "'+K+'" requires 3 numbers: space above, space below, length of line';var Be=et.value;if(0===(et=D.getMeasurement(R)).used||0!==R.length)return'Directive "'+K+'" requires 3 numbers: space above, space below, length of line';f.addSeparator(qe,Be,et.value,{startChar:b.iChar,endChar:b.iChar+F.length})}break;case"barsperstaff":if(null!==(J=x("barsperstaff",K,R)))return J;break;case"staffnonote":if(1!==R.length)return"Directive staffnonote requires one parameter: 0 or 1";if("0"===R[0].token)b.staffnonote=!0;else{if("1"!==R[0].token)return"Directive staffnonote requires one parameter: 0 or 1 (received "+R[0].token+")";b.staffnonote=!1}break;case"printtempo":if(null!==(J=O("printTempo",K,R)))return J;break;case"partsbox":if(null!==(J=O("partsBox",K,R)))return J;b.partsfont.box=b.partsBox;break;case"freegchord":if(null!==(J=O("freegchord",K,R)))return J;break;case"measurenb":case"barnumbers":if(null!==(J=x("barNumbers",K,R)))return J;break;case"setbarnb":if(1!==R.length||"number"!==R[0].type)return"Directive setbarnb requires a number as a parameter.";b.currBarNumber=f.setBarNumberImmediate(R[0].intt);break;case"begintext":var st="";for(se=D.nextLine();se&&0!==se.indexOf("%%endtext");)A.startsWith(se,"%%")?st+=se.substring(2)+"\n":st+=se+"\n",se=D.nextLine();f.addText(st,{startChar:b.iChar,endChar:b.iChar+st.length+7});break;case"continueall":b.continueall=!0;break;case"beginps":for(se=D.nextLine();se&&0!==se.indexOf("%%endps");)D.nextLine();p("Postscript ignored",T,0);break;case"deco":F.length>0&&b.ignoredDecorations.push(F.substring(0,F.indexOf(" "))),p("Decoration redefinition ignored",T,0);break;case"text":var Re=D.translateString(F);f.addText(I.parseFontChangeLine(Re),{startChar:b.iChar,endChar:b.iChar+F.length+7});break;case"center":var ut=D.translateString(F);f.addCentered(I.parseFontChangeLine(ut));break;case"font":break;case"setfont":var Bt=D.tokenize(F,0,F.length);if(Bt.length>=4&&"-"===Bt[0].token&&"number"===Bt[1].type){var Jt=parseInt(Bt[1].token);Jt>=1&&Jt<=4&&(b.setfont||(b.setfont=[]),Bt.shift(),Bt.shift(),b.setfont[Jt]=E(Bt,b.setfont[Jt],T,0,"setfont"))}break;case"gchordfont":case"partsfont":case"tripletfont":case"vocalfont":case"textfont":case"annotationfont":case"historyfont":case"infofont":case"measurefont":case"repeatfont":case"wordsfont":return g(K,R,T);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return function(T,R,F){return 0===R.length?'Directive "'+T+'" requires a font as a parameter.':(c.formatting[T]=E(R,c.formatting[T],F,0,T),null)}(K,R,T);case"barlabelfont":case"barnumberfont":case"barnumfont":return g("measurefont",R,T);case"staves":case"score":b.score_is_present=!0;for(var Ae,_n=function(vt,Mi,Wi,Ot,Dt){(Mi||0===b.staves.length)&&b.staves.push({index:b.staves.length,numVoices:0});var _i=A.last(b.staves);void 0!==Wi&&void 0===_i.bracket&&(_i.bracket=Wi),void 0!==Ot&&void 0===_i.brace&&(_i.brace=Ot),Dt&&(_i.connectBarLines="end"),void 0===b.voices[vt]&&(b.voices[vt]={staffNum:_i.index,index:_i.numVoices},_i.numVoices++)},kt=!1,Rt=!1,yn=!1,fe=!1,ce=!1,be=!1,Ce=!1,Yt=function(){if(Ce=!0,Ae){var vt="start";Ae.staffNum>0&&("start"===b.staves[Ae.staffNum-1].connectBarLines||"continue"===b.staves[Ae.staffNum-1].connectBarLines)&&(vt="continue"),b.staves[Ae.staffNum].connectBarLines=vt}};R.length;){var tt=R.shift();switch(tt.token){case"(":kt?p("Can't nest parenthesis in %%score",T,tt.start):(kt=!0,fe=!0);break;case")":!kt||fe?p("Unexpected close parenthesis in %%score",T,tt.start):kt=!1;break;case"[":Rt?p("Can't nest brackets in %%score",T,tt.start):(Rt=!0,ce=!0);break;case"]":!Rt||ce?p("Unexpected close bracket in %%score",T,tt.start):(Rt=!1,b.staves[Ae.staffNum].bracket="end");break;case"{":yn?p("Can't nest braces in %%score",T,tt.start):(yn=!0,be=!0);break;case"}":!yn||be?p("Unexpected close brace in %%score",T,tt.start):(yn=!1,b.staves[Ae.staffNum].brace="end");break;case"|":Yt();break;default:for(var Ct="";("alpha"===tt.type||"number"===tt.type)&&(Ct+=tt.token,tt.continueId);)tt=R.shift();_n(Ct,!kt||fe,ce?"start":Rt?"continue":void 0,be?"start":yn?"continue":void 0,Ce),fe=!1,ce=!1,be=!1,Ce=!1,Ae=b.voices[Ct],"staves"===K&&Yt()}}break;case"newpage":var Zn=D.getInt(F);f.addNewPage(0===Zn.digits?-1:Zn.value);break;case"abc":var vi=F.split(" ");switch(vi[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var Dr=vi.shift();f.addMetaText(K+Dr,vi.join(" "),{startChar:b.iChar,endChar:b.iChar+F.length+5});break;default:return"Unknown directive: "+K+vi[0]}break;case"header":case"footer":var Ln=D.getMeat(F,0,F.length);'"'===(Ln=F.substring(Ln.start,Ln.end))[0]&&'"'===Ln[Ln.length-1]&&(Ln=Ln.substring(1,Ln.length-1));var Ni,Tn=Ln.split("\t");Ni=1===Tn.length?{left:"",center:Tn[0],right:""}:2===Tn.length?{left:Tn[0],center:Tn[1],right:""}:{left:Tn[0],center:Tn[1],right:Tn[2]},Tn.length>3&&p("Too many tabs in "+K+": "+Tn.length+" found.",F,0),f.addMetaTextObj(K,Ni,{startChar:b.iChar,endChar:b.iChar+T.length});break;case"midi":var gt=D.tokenize(F,0,F.length,!0);gt.length>0&&"="===gt[0].token&>.shift(),0===gt.length?p("Expected midi command",F,0):function(T,R,F){var K=T.shift().token,J=[];if(j.indexOf(K)>=0)0!==T.length&&p("Unexpected parameter in MIDI "+K,F,0);else if(Y.indexOf(K)>=0)1!==T.length?p("Expected one parameter in MIDI "+K,F,0):J.push(T[0].token);else if(te.indexOf(K)>=0)1!==T.length?p("Expected one parameter in MIDI "+K,F,0):"number"!==T[0].type?p("Expected one integer parameter in MIDI "+K,F,0):J.push(T[0].intt);else if(W.indexOf(K)>=0)1!==T.length&&2!==T.length?p("Expected one or two parameters in MIDI "+K,F,0):"number"!==T[0].type||2===T.length&&"number"!==T[1].type?p("Expected integer parameter in MIDI "+K,F,0):(J.push(T[0].intt),2===T.length&&J.push(T[1].intt));else if(q.indexOf(K)>=0)2!==T.length?p("Expected two parameters in MIDI "+K,F,0):"number"!==T[0].type||"number"!==T[1].type?p("Expected two integer parameters in MIDI "+K,F,0):(J.push(T[0].intt),J.push(T[1].intt));else if(ne.indexOf(K)>=0)2!==T.length?p("Expected two parameters in MIDI "+K,F,0):"alpha"!==T[0].type||"number"!==T[1].type?p("Expected one string and one integer parameters in MIDI "+K,F,0):(J.push(T[0].token),J.push(T[1].intt));else if("drummap"===K)2===T.length&&"alpha"===T[0].type&&"number"===T[1].type?(R.formatting||(R.formatting={}),R.formatting.midi||(R.formatting.midi={}),R.formatting.midi.drummap||(R.formatting.midi.drummap={}),R.formatting.midi.drummap[T[0].token]=T[1].intt,J=R.formatting.midi.drummap):3===T.length&&"punct"===T[0].type&&"alpha"===T[1].type&&"number"===T[2].type?(R.formatting||(R.formatting={}),R.formatting.midi||(R.formatting.midi={}),R.formatting.midi.drummap||(R.formatting.midi.drummap={}),R.formatting.midi.drummap[T[0].token+T[1].token]=T[2].intt,J=R.formatting.midi.drummap):p("Expected one note name and one integer parameter in MIDI "+K,F,0);else if(z.indexOf(K)>=0)3!==T.length||"number"!==T[0].type||"/"!==T[1].token||"number"!==T[2].type?p("Expected fraction parameter in MIDI "+K,F,0):(J.push(T[0].intt),J.push(T[2].intt));else if(ee.indexOf(K)>=0)4!==T.length?p("Expected four parameters in MIDI "+K,F,0):"number"!==T[0].type||"number"!==T[1].type||"number"!==T[2].type||"number"!==T[3].type?p("Expected four integer parameters in MIDI "+K,F,0):(J.push(T[0].intt),J.push(T[1].intt),J.push(T[2].intt),J.push(T[3].intt));else if(U.indexOf(K)>=0)5!==T.length?p("Expected five parameters in MIDI "+K,F,0):"number"!==T[0].type||"number"!==T[1].type||"number"!==T[2].type||"number"!==T[3].type||"number"!==T[4].type?p("Expected five integer parameters in MIDI "+K,F,0):(J.push(T[0].intt),J.push(T[1].intt),J.push(T[2].intt),J.push(T[3].intt),J.push(T[4].intt));else if(W.indexOf(K)>=0)1!==T.length||4!==T.length?p("Expected one or two parameters in MIDI "+K,F,0):"number"!==T[0].type?p("Expected integer parameter in MIDI "+K,F,0):4===T.length?("octave"!==T[1].token&&p("Expected octave parameter in MIDI "+K,F,0),"="!==T[2].token&&p("Expected octave parameter in MIDI "+K,F,0),"number"!==T[3].type&&p("Expected integer parameter for octave in MIDI "+K,F,0)):(J.push(T[0].intt),4===T.length&&J.push(T[3].intt));else if(L.indexOf(K)>=0)if(T.length<2)p("Expected string parameter and at least one integer parameter in MIDI "+K,F,0);else if("alpha"!==T[0].type)p("Expected string parameter and at least one integer parameter in MIDI "+K,F,0);else{var se=T.shift();for(J.push(se.token);T.length>0;)"number"!==(se=T.shift()).type&&p("Expected integer parameter in MIDI "+K,F,0),J.push(se.intt)}f.hasBeginMusic()?f.appendElement("midi",-1,-1,{cmd:K,params:J}):(void 0===R.formatting.midi&&(R.formatting.midi={}),R.formatting.midi[K]=J)}(gt,c,F);break;case"percmap":var Jn=function(T){var R=T.split(/\s+/);if(2!==R.length&&3!==R.length)return{error:'Expected parameters "abc-note", "drum-sound", and optionally "note-head"'};var F=R[0],K=parseInt(R[1],10);if((isNaN(K)||K<35||K>81)&&R[1]&&(K=w.indexOf(R[1].toLowerCase())+35),isNaN(K)||K<35||K>81)return{error:'Expected drum name, received "'+R[1]+'"'};var J={sound:K};return 3===R.length&&(J.noteHead=R[2]),{key:F,value:J}}(F);Jn.error?p(Jn.error,T,8):(c.formatting.percmap||(c.formatting.percmap={}),c.formatting.percmap[Jn.key]=Jn.value);break;case"map":case"playtempo":case"auquality":case"continuous":case"nobarcheck":c.formatting[K]=F;break;default:return"Unknown directive: "+K}return null},I.globalFormatting=function(T){for(var R in T)if(T.hasOwnProperty(R)){var J,F=""+T[R],K=D.tokenize(F,0,F.length);switch(R){case"titlefont":case"gchordfont":case"composerfont":case"footerfont":case"headerfont":case"historyfont":case"infofont":case"measurefont":case"partsfont":case"repeatfont":case"subtitlefont":case"tempofont":case"textfont":case"voicefont":case"tripletfont":case"vocalfont":case"wordsfont":case"annotationfont":case"tablabelfont":case"tabnumberfont":case"tabgracefont":g(R,K,F);break;case"scale":h(R,K);break;case"partsbox":null!==(J=O("partsBox",R,K))&&p(J),b.partsfont.box=b.partsBox;break;case"freegchord":null!==(J=O("freegchord",R,K))&&p(J);break;case"fontboxpadding":(1!==K.length||"number"!==K[0].type)&&p('Directive "'+R+'" requires a number as a parameter.'),c.formatting.fontboxpadding=K[0].floatt;break;case"stretchlast":var se=Q(K);if(void 0!==se.value&&(c.formatting.stretchlast=se.value),se.error)return se.error;break;default:p("Formatting directive unrecognized: ",R,0)}}}})(),Z.exports=I},9085:(Z,H,M)=>{var A=M(5339),I=M(467),D=M(1875);Z.exports=function(b,c,f,m,_){this.reset=function(g,l,h,w){D.initialize(g,l,h,w,_),I.initialize(g,l,h,w,_)},this.reset(b,c,f,m),this.setTitle=function(g){if(f.hasMainTitle)_.addSubtitle(b.translateString(b.stripComment(g)),{startChar:f.iChar,endChar:f.iChar+g.length+2});else{var l=b.translateString(b.theReverser(b.stripComment(g)));f.titlecaps&&(l=l.toUpperCase()),_.addMetaText("title",l,{startChar:f.iChar,endChar:f.iChar+g.length+2}),f.hasMainTitle=!0}},this.setMeter=function(g){if("C"===(g=b.stripComment(g)))return!0===f.havent_set_length&&(f.default_length=.125,f.havent_set_length=!1),{type:"common_time"};if("C|"===g)return!0===f.havent_set_length&&(f.default_length=.125,f.havent_set_length=!1),{type:"cut_time"};if("o"===g)return!0===f.havent_set_length&&(f.default_length=.125,f.havent_set_length=!1),{type:"tempus_perfectum"};if("c"===g)return!0===f.havent_set_length&&(f.default_length=.125,f.havent_set_length=!1),{type:"tempus_imperfectum"};if("o."===g)return!0===f.havent_set_length&&(f.default_length=.125,f.havent_set_length=!1),{type:"tempus_perfectum_prolatio"};if("c."===g)return!0===f.havent_set_length&&(f.default_length=.125,f.havent_set_length=!1),{type:"tempus_imperfectum_prolatio"};if(0===g.length||"none"===g.toLowerCase())return!0===f.havent_set_length&&(f.default_length=.125,f.havent_set_length=!1),null;var l=b.tokenize(g,0,g.length);try{var w=function(){var O=function(){var O={value:0,num:""},B=l.shift();for("("===B.token&&(B=l.shift());;){if("number"!==B.type)throw"Expected top number of meter";if(O.value+=parseInt(B.token),O.num+=B.token,0===l.length||"/"===l[0].token)return O;if(")"===(B=l.shift()).token){if(0===l.length||"/"===l[0].token)return O;throw"Unexpected paren in meter"}if("."!==B.token&&"+"!==B.token||(O.num+=B.token,0===l.length))throw"Expected top number of meter";B=l.shift()}return O}();if(0===l.length)return O;var B=l.shift();if("/"!==B.token)throw"Expected slash in meter";if("number"!==(B=l.shift()).type)throw"Expected bottom number of meter";return O.den=B.token,O.value=O.value/parseInt(O.den),O};if(0===l.length)throw"Expected meter definition in M: line";for(var u={type:"specified",value:[]},v=0;;){var S=w();v+=S.value;var x={num:S.num};if(void 0!==S.den&&(x.den=S.den),u.value.push(x),0===l.length)break}return!0===f.havent_set_length&&(f.default_length=v<.75?.0625:.125,f.havent_set_length=!1),u}catch(O){c(O,g,0)}return null},this.calcTempo=function(g){var l=.25;f.meter&&"specified"===f.meter.type?l=1/parseInt(f.meter.value[0].den):f.origMeter&&"specified"===f.origMeter.type&&(l=1/parseInt(f.origMeter.value[0].den));for(var h=0;h0&&(f.default_length=v/S,f.havent_set_length=!1)}else 1===u.length&&"1"===u[0]&&(f.default_length=1,f.havent_set_length=!1)};var y={larghissimo:20,adagissimo:24,sostenuto:28,grave:32,largo:40,lento:50,larghetto:60,adagio:68,adagietto:74,andante:80,andantino:88,"marcia moderato":84,"andante moderato":100,moderato:112,allegretto:116,"allegro moderato":120,allegro:126,animato:132,agitato:140,veloce:148,"mosso vivo":156,vivace:164,vivacissimo:172,allegrissimo:176,presto:184,prestissimo:210};this.setTempo=function(g,l,h,w){try{var u=b.tokenize(g,l,h);if(0===u.length)throw"Missing parameter in Q: field";var v={startChar:w+l-2,endChar:w+h},S=!0,x=u.shift();if("quote"===x.type&&(v.preString=x.token,x=u.shift(),0===u.length))return y[v.preString.toLowerCase()]&&(v.bpm=y[v.preString.toLowerCase()],v.suppressBpm=!0),{type:"immediate",tempo:v};if("alpha"===x.type&&"C"===x.token){if(0===u.length)throw"Missing tempo after C in Q: field";if("punct"===(x=u.shift()).type&&"="===x.token){if(0===u.length)throw"Missing tempo after = in Q: field";if("number"!==(x=u.shift()).type)throw"Expected number after = in Q: field";v.duration=[1],v.bpm=parseInt(x.token)}else{if("number"!==x.type)throw"Expected number or equal after C in Q: field";if(v.duration=[parseInt(x.token)],0===u.length)throw"Missing = after duration in Q: field";if("punct"!==(x=u.shift()).type||"="!==x.token)throw"Expected = after duration in Q: field";if(0===u.length)throw"Missing tempo after = in Q: field";if("number"!==(x=u.shift()).type)throw"Expected number after = in Q: field";v.bpm=parseInt(x.token)}}else{if("number"!==x.type)throw"Unknown value in Q: field";var O=parseInt(x.token);if(0===u.length||"quote"===u[0].type)v.duration=[1],v.bpm=O;else{if(S=!1,"punct"!==(x=u.shift()).type&&"/"!==x.token||"number"!==(x=u.shift()).type)throw"Expected fraction in Q: field";var B=parseInt(x.token);for(v.duration=[O/B];u.length>0&&"="!==u[0].token&&"quote"!==u[0].type;){if("number"!==(x=u.shift()).type||(O=parseInt(x.token),"punct"!==(x=u.shift()).type&&"/"!==x.token)||"number"!==(x=u.shift()).type)throw"Expected fraction in Q: field";B=parseInt(x.token),v.duration.push(O/B)}if("punct"!==(x=u.shift()).type&&"="!==x.token)throw"Expected = in Q: field";if("number"!==(x=u.shift()).type)throw"Expected tempo in Q: field";v.bpm=parseInt(x.token)}}if(0!==u.length&&("quote"===(x=u.shift()).type&&(v.postString=x.token,x=u.shift()),0!==u.length))throw"Unexpected string at end of Q: field";return!1===f.printTempo&&(v.suppress=!0),{type:S?"delaySet":"immediate",tempo:v}}catch(j){return c(j,g,l),{type:"none"}}},this.letter_to_inline_header=function(g,l,h){var w=b.eatWhiteSpace(g,l);if(g.length>=(l+=w)+5&&"["===g[l]&&":"===g[l+2]){var u=g.indexOf("]",l),v=f.iChar+l,S=f.iChar+u+1;switch(g.substring(l,l+3)){case"[I:":var x=I.addDirective(g.substring(l+3,u));return x&&c(x,g,l),[u-l+1+w];case"[M:":var O=this.setMeter(g.substring(l+3,u));return _.hasBeginMusic()&&O?_.appendStartingElement("meter",v,S,O):f.meter=O,[u-l+1+w];case"[K:":var B=D.parseKey(g.substring(l+3,u),!0);return B.foundClef&&_.hasBeginMusic()&&_.appendStartingElement("clef",v,S,f.clef),B.foundKey&&_.hasBeginMusic()&&_.appendStartingElement("key",v,S,D.fixKey(f.clef,f.key)),[u-l+1+w];case"[P:":return h||m.lines.length<=m.lineNum?f.partForNextLine={title:g.substring(l+3,u),startChar:v,endChar:S}:_.appendElement("part",v,S,{title:g.substring(l+3,u)}),[u-l+1+w];case"[L:":return this.setDefaultLength(g,l+3,u),[u-l+1+w];case"[Q:":if(u>0){var j=this.setTempo(g,l+3,u,f.iChar);return"delaySet"===j.type?_.hasBeginMusic()?_.appendElement("tempo",v,S,this.calcTempo(j.tempo)):f.tempoForNextLine=["tempo",v,S,this.calcTempo(j.tempo)]:"immediate"===j.type&&(!h&&_.hasBeginMusic()?_.appendElement("tempo",v,S,j.tempo):f.tempoForNextLine=["tempo",v,S,j.tempo]),[u-l+1+w,g[l+1],g.substring(l+3,u)]}break;case"[V:":if(u>0)return D.parseVoice(g,l+3,u),[u-l+1+w,g[l+1],g.substring(l+3,u)];break;case"[r:":return[u-l+1+w]}}return[0]},this.letter_to_body_header=function(g,l){if(g.length>=l+3)switch(g.substring(l,l+2)){case"I:":var h=I.addDirective(g.substring(l+2));return h&&c(h,g,l),[g.length];case"M:":var w=this.setMeter(g.substring(l+2));return _.hasBeginMusic()&&w&&_.appendStartingElement("meter",f.iChar+l,f.iChar+g.length,w),[g.length];case"K:":var u=D.parseKey(g.substring(l+2),_.hasBeginMusic());return u.foundClef&&_.hasBeginMusic()&&_.appendStartingElement("clef",f.iChar+l,f.iChar+g.length,f.clef),u.foundKey&&_.hasBeginMusic()&&_.appendStartingElement("key",f.iChar+l,f.iChar+g.length,D.fixKey(f.clef,f.key)),[g.length];case"P:":return _.hasBeginMusic()&&_.appendElement("part",f.iChar+l,f.iChar+g.length,{title:g.substring(l+2)}),[g.length];case"L:":return this.setDefaultLength(g,l+2,g.length),[g.length];case"Q:":var v=g.indexOf("\x12",l+2);-1===v&&(v=g.length);var S=this.setTempo(g,l+2,v,f.iChar);return"delaySet"===S.type?_.appendElement("tempo",f.iChar+l,f.iChar+g.length,this.calcTempo(S.tempo)):"immediate"===S.type&&_.appendElement("tempo",f.iChar+l,f.iChar+g.length,S.tempo),[v,g[l],A.strip(g.substring(l+2))];case"V:":return D.parseVoice(g,l+2,g.length),[g.length,g[l],A.strip(g.substring(l+2))]}return[0]};var E={A:"author",B:"book",C:"composer",D:"discography",F:"url",G:"group",I:"instruction",N:"notes",O:"origin",R:"rhythm",S:"source",W:"unalignedWords",Z:"transcription"};this.parseHeader=function(g){var l=E[g[0]];if(void 0!==l)return"unalignedWords"===l?_.addMetaTextArray(l,I.parseFontChangeLine(b.translateString(b.stripComment(g.substring(2)))),{startChar:f.iChar,endChar:f.iChar+g.length}):_.addMetaText(l,b.translateString(b.stripComment(g.substring(2))),{startChar:f.iChar,endChar:f.iChar+g.length}),{};var h=f.iChar,w=h+g.length;switch(g[0]){case"H":for(_.addMetaText("history",b.translateString(b.stripComment(g.substring(2))),{startChar:f.iChar,endChar:f.iChar+g.length}),g=b.peekLine();g&&":"!==g[1];)b.nextLine(),_.addMetaText("history",b.translateString(b.stripComment(g)),{startChar:f.iChar,endChar:f.iChar+g.length}),g=b.peekLine();break;case"K":this.resolveTempo();var u=D.parseKey(g.substring(2),!1);!f.is_in_header&&_.hasBeginMusic()&&(u.foundClef&&_.appendStartingElement("clef",h,w,f.clef),u.foundKey&&_.appendStartingElement("key",h,w,D.fixKey(f.clef,f.key))),f.is_in_header=!1;break;case"L":this.setDefaultLength(g,2,g.length);break;case"M":f.origMeter=f.meter=this.setMeter(g.substring(2));break;case"P":f.is_in_header?_.addMetaText("partOrder",b.translateString(b.stripComment(g.substring(2))),{startChar:f.iChar,endChar:f.iChar+g.length}):f.partForNextLine={title:b.translateString(b.stripComment(g.substring(2))),startChar:h,endChar:w};break;case"Q":var v=this.setTempo(g,2,g.length,f.iChar);"delaySet"===v.type?f.tempo=v.tempo:"immediate"===v.type&&(m.metaText.tempo?f.tempoForNextLine=["tempo",h,w,v.tempo]:m.metaText.tempo=v.tempo);break;case"T":this.setTitle(g.substring(2));break;case"U":this.addUserDefinition(g,2,g.length);break;case"V":if(D.parseVoice(g,2,g.length),!f.is_in_header)return{newline:!0};break;case"s":return{symbols:!0};case"w":return{words:!0};case"X":break;case"E":case"m":c("Ignored header",g,0);break;default:return{regular:!0}}return{}}}},1875:(Z,H,M)=>{var A=M(5339),I=M(467),D=M(7704),p={};(function(){var b,c,f,_;p.initialize=function(u,v,S,x,O){b=u,c=v,f=S,_=O},p.standardKey=function(u,v,S,x){return D.keySignature(f,u,v,S,x)};var y={treble:{clef:"treble",pitch:4,mid:0},"treble+8":{clef:"treble+8",pitch:4,mid:0},"treble-8":{clef:"treble-8",pitch:4,mid:0},"treble^8":{clef:"treble+8",pitch:4,mid:0},treble_8:{clef:"treble-8",pitch:4,mid:0},treble1:{clef:"treble",pitch:2,mid:2},treble2:{clef:"treble",pitch:4,mid:0},treble3:{clef:"treble",pitch:6,mid:-2},treble4:{clef:"treble",pitch:8,mid:-4},treble5:{clef:"treble",pitch:10,mid:-6},perc:{clef:"perc",pitch:6,mid:0},none:{clef:"none",mid:0},bass:{clef:"bass",pitch:8,mid:-12},"bass+8":{clef:"bass+8",pitch:8,mid:-12},"bass-8":{clef:"bass-8",pitch:8,mid:-12},"bass^8":{clef:"bass+8",pitch:8,mid:-12},bass_8:{clef:"bass-8",pitch:8,mid:-12},"bass+16":{clef:"bass",pitch:8,mid:-12},"bass-16":{clef:"bass",pitch:8,mid:-12},"bass^16":{clef:"bass",pitch:8,mid:-12},bass_16:{clef:"bass",pitch:8,mid:-12},bass1:{clef:"bass",pitch:2,mid:-6},bass2:{clef:"bass",pitch:4,mid:-8},bass3:{clef:"bass",pitch:6,mid:-10},bass4:{clef:"bass",pitch:8,mid:-12},bass5:{clef:"bass",pitch:10,mid:-14},tenor:{clef:"alto",pitch:8,mid:-8},tenor1:{clef:"alto",pitch:2,mid:-2},tenor2:{clef:"alto",pitch:4,mid:-4},tenor3:{clef:"alto",pitch:6,mid:-6},tenor4:{clef:"alto",pitch:8,mid:-8},tenor5:{clef:"alto",pitch:10,mid:-10},alto:{clef:"alto",pitch:6,mid:-6},alto1:{clef:"alto",pitch:2,mid:-2},alto2:{clef:"alto",pitch:4,mid:-4},alto3:{clef:"alto",pitch:6,mid:-6},alto4:{clef:"alto",pitch:8,mid:-8},alto5:{clef:"alto",pitch:10,mid:-10},"alto+8":{clef:"alto+8",pitch:6,mid:-6},"alto-8":{clef:"alto-8",pitch:6,mid:-6},"alto^8":{clef:"alto+8",pitch:6,mid:-6},alto_8:{clef:"alto-8",pitch:6,mid:-6}},E=function(u,v){var S=y[u];return(S?S.mid:0)+v};p.fixClef=function(u){var v=y[u.type];v&&(u.clefPos=v.pitch,u.type=v.clef)},p.deepCopyKey=function(u){var v={accidentals:[],root:u.root,acc:u.acc,mode:u.mode};return u.accidentals.forEach(function(S){v.accidentals.push(A.clone(S))}),v};var g={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11};p.addPosToKey=function(u,v){var S=u.verticalPos;v.accidentals.forEach(function(x){var O=g[x.note];x.verticalPos=O-=S}),v.impliedNaturals&&v.impliedNaturals.forEach(function(x){var O=g[x.note];x.verticalPos=O-=S}),S<-10?(v.accidentals.forEach(function(x){x.verticalPos-=7,(x.verticalPos>=11||10===x.verticalPos&&"flat"===x.acc)&&(x.verticalPos-=7),"A"===x.note&&"sharp"===x.acc&&(x.verticalPos-=7),("G"===x.note||"F"===x.note)&&"flat"===x.acc&&(x.verticalPos-=7)}),v.impliedNaturals&&v.impliedNaturals.forEach(function(x){x.verticalPos-=7,(x.verticalPos>=11||10===x.verticalPos&&"flat"===x.acc)&&(x.verticalPos-=7),"A"===x.note&&"sharp"===x.acc&&(x.verticalPos-=7),("G"===x.note||"F"===x.note)&&"flat"===x.acc&&(x.verticalPos-=7)})):S<-4?(v.accidentals.forEach(function(x){x.verticalPos-=7,-8===S&&("f"===x.note||"g"===x.note)&&"sharp"===x.acc&&(x.verticalPos-=7)}),v.impliedNaturals&&v.impliedNaturals.forEach(function(x){x.verticalPos-=7,-8===S&&("f"===x.note||"g"===x.note)&&"sharp"===x.acc&&(x.verticalPos-=7)})):S>=7&&(v.accidentals.forEach(function(x){x.verticalPos+=7}),v.impliedNaturals&&v.impliedNaturals.forEach(function(x){x.verticalPos+=7}))},p.fixKey=function(u,v){var S=A.clone(v);return p.addPosToKey(u,S),S};var l=function(u){var v=0,S=u[v++];("^"===S||"_"===S)&&(S=u[v++]);var x=g[S];for(void 0===x&&(x=6);v0){x.foundKey=!0;var B="",j="";S[0].token.length>1?S[0].token=S[0].token.substring(1):S.shift();var Y=O.token;if(S.length>0){var te=b.getSharpFlat(S[0].token);if(te.len>0&&(S[0].token.length>1?S[0].token=S[0].token.substring(1):S.shift(),Y+=te.token,B=te.token),S.length>0){var W=b.getMode(S[0].token);W.len>0&&(S.shift(),Y+=W.token,j=W.token)}if(void 0===p.standardKey(Y,O.token,B,0))return c("Unsupported key signature: "+Y,u,0),x}var U,q=p.deepCopyKey(f.key);if(v&&(U=f.globalTransposeOrigKeySig),f.key=p.deepCopyKey(p.standardKey(Y,O.token,B,!v&&f.globalTranspose?-f.globalTranspose:0)),v&&(f.globalTransposeOrigKeySig=U),f.key.mode=j,q){for(var ne,z=0;z0;)switch(S[0].token){case"m":case"middle":if(S.shift(),0===S.length)return c("Expected = after middle",u,0),x;if("="!==(R=S.shift()).token){c("Expected = after middle",u,R.start);break}if(0===S.length)return c("Expected parameter after middle=",u,0),x;var F=b.getPitchFromTokens(S);F.warn&&c(F.warn,u,0),F.position&&(f.clef.verticalPos=F.position-6);break;case"transpose":if(S.shift(),0===S.length)return c("Expected = after transpose",u,0),x;if("="!==(R=S.shift()).token){c("Expected = after transpose",u,R.start);break}if(0===S.length)return c("Expected parameter after transpose=",u,0),x;if("number"!==S[0].type){c("Expected number after transpose",u,S[0].start);break}f.clef.transpose=S[0].intt,S.shift();break;case"stafflines":if(S.shift(),0===S.length)return c("Expected = after stafflines",u,0),x;if("="!==(R=S.shift()).token){c("Expected = after stafflines",u,R.start);break}if(0===S.length)return c("Expected parameter after stafflines=",u,0),x;if("number"!==S[0].type){c("Expected number after stafflines",u,S[0].start);break}f.clef.stafflines=S[0].intt,S.shift();break;case"staffscale":if(S.shift(),0===S.length)return c("Expected = after staffscale",u,0),x;if("="!==(R=S.shift()).token){c("Expected = after staffscale",u,R.start);break}if(0===S.length)return c("Expected parameter after staffscale=",u,0),x;if("number"!==S[0].type){c("Expected number after staffscale",u,S[0].start);break}f.clef.staffscale=S[0].floatt,S.shift();break;case"octave":if(S.shift(),0===S.length)return c("Expected = after octave",u,0),x;if("="!==(R=S.shift()).token){c("Expected = after octave",u,R.start);break}if(0===S.length)return c("Expected parameter after octave=",u,0),x;if("number"!==S[0].type){c("Expected number after octave",u,S[0].start);break}f.octave=S[0].intt,S.shift();break;case"style":if(S.shift(),0===S.length)return c("Expected = after style",u,0),x;if("="!==(R=S.shift()).token){c("Expected = after style",u,R.start);break}if(0===S.length)return c("Expected parameter after style=",u,0),x;switch(S[0].token){case"normal":case"harmonic":case"rhythm":case"x":case"triangle":f.style=S[0].token,S.shift();break;default:c("error parsing style element: "+S[0].token,u,S[0].start)}break;case"clef":if(S.shift(),0===S.length)return c("Expected = after clef",u,0),x;if("="!==(R=S.shift()).token){c("Expected = after clef",u,R.start);break}if(0===S.length)return c("Expected parameter after clef=",u,0),x;case"treble":case"bass":case"alto":case"tenor":case"perc":case"none":var K=S.shift();switch(K.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":case"c":K.token="alto";break;case"F":case"f":K.token="bass";break;case"G":case"g":K.token="treble";break;default:c("Expected clef name. Found "+K.token,u,K.start)}S.length>0&&"number"===S[0].type&&(K.token+=S[0].token,S.shift()),S.length>1&&("-"===S[0].token||"+"===S[0].token||"^"===S[0].token||"_"===S[0].token)&&"8"===S[1].token&&(K.token+=S[0].token+S[1].token,S.shift(),S.shift()),f.clef={type:K.token,verticalPos:E(K.token,0)},f.currentVoice&&void 0!==f.currentVoice.transpose&&(f.clef.transpose=f.currentVoice.transpose),x.foundClef=!0;break;default:c("Unknown parameter: "+S[0].token,u,S[0].start),S.shift()}return x},p.parseVoice=function(u,v,S){var x=b.getMeat(u,v,S),O=x.start,B=x.end,j=b.getToken(u,O,B);if(0!==j.length){var Y=!1;void 0===f.voices[j]&&(f.voices[j]={},Y=!0,f.score_is_present&&c("Can't have an unknown V: id when the %score directive is present",u,O)),O+=j.length,O+=b.eatWhiteSpace(u,O);for(var te={startStaff:Y},W=function(F){var K=b.getVoiceToken(u,O,B);void 0!==K.warn?c("Expected value for "+F+" in voice: "+K.warn,u,O):void 0!==K.err?c("Expected value for "+F+" in voice: "+K.err,u,O):0===K.token.length&&'"'!==u[O]?c("Expected value for "+F+" in voice",u,O):te[F]=K.token,O+=K.len},q=function(F,K,J){var se=b.getVoiceToken(u,O,B);void 0!==se.warn?c("Expected value for "+K+" in voice: "+se.warn,u,O):void 0!==se.err?c("Expected value for "+K+" in voice: "+se.err,u,O):0===se.token.length&&'"'!==u[O]?c("Expected value for "+K+" in voice",u,O):("number"===J&&(se.token=parseFloat(se.token)),f.voices[F][K]=se.token),O+=se.len},ee=function(F,K){var J=b.getVoiceToken(u,O,B);if(void 0!==J.warn)c("Expected value for "+F+" in voice: "+J.warn,u,O);else if(void 0!==J.err)c("Expected value for "+F+" in voice: "+J.err,u,O);else{if(0!==J.token.length||'"'===u[O])return"number"===K&&(J.token=parseFloat(J.token)),J.token;c("Expected value for "+F+" in voice",u,O)}O+=J.len},U=function(F,K){var se=b.getVoiceToken(u,O,B);if(void 0!==se.warn)c("Expected one of (_B, _E, _b, _e) for "+K+" in voice: "+se.warn,u,O);else if(0===se.token.length&&'"'!==u[O])c("Expected one of (_B, _E, _b, _e) for "+K+" in voice",u,O);else{var ie={_B:2,_E:9,_b:-10,_e:-3}[se.token];ie?f.voices[F][K]=ie:c("Expected one of (_B, _E, _b, _e) for "+K+" in voice",u,O)}O+=se.len};O{var p,b,c,f,m,_,A=M(5339),I=M(1875),D=M(7704),y=function(T,R,F,K,J,se){p=T,b=R,c=F,f=K,m=J,_=se,this.lineContinuation=!1},g=function(T,R,F){return void 0!==T.inTie[R]&&!(!T.inTie[R][T.currentVoice?100*T.currentVoice.staffNum+T.currentVoice.index:0]||void 0===F.pitches&&"spacer"===F.rest.type)},l={};y.prototype.parseMusic=function(T){_.resolveTempo(),c.is_in_header=!1;for(var R=0,F=c.iChar;p.isWhiteSpace(T[R])&&R0&&(R+=se[0],"V"===se[1]&&this.startNewLine());for(var ie=0;R0)R+=Fe[0],"V"===Fe[1]&&(K=!0);else{(!m.hasBeginMusic()||K&&!this.lineContinuation)&&(this.startNewLine(),K=!1);for(var me;;)if((me=p.eatWhiteSpace(T,R))>0&&(R+=me),R>0&&"\x12"===T[R-1]&&(me=_.letter_to_body_header(T,R))[0]>0&&("V"===me[1]&&this.startNewLine(),R=me[0],c.start_new_line=!1),(me=W(T,R))[0]>0&&(R+=me[0]),(me=w(T,R))[0]>0){l.chord||(l.chord=[]);var Ve=p.translateString(me[1]);Ve=Ve.replace(/;/g,"\n");for(var et=!1,qe=0;qe0&&(l.force_end_beam_last=!0),R+=Be}else if((me=-1==="ABCDEFGabcdefgxyzZ[]|^_{".indexOf(T[R])?te(T,R):[0])[0]>0)null===me[1]?R+10&&(0===me[1].indexOf("style=")?l.style=me[1].substr(6):(void 0===l.decoration&&(l.decoration=[]),"beambr1"===me[1]?l.beambr=1:"beambr2"===me[1]?l.beambr=2:l.decoration.push(me[1]))),R+=me[0];else{if(!((me=u(T,R))[0]>0))break;l.gracenotes=me[1],R+=me[0]}if((me=q(T,R))[0]>0){ie=0,void 0!==l.gracenotes&&(l.rest={type:"spacer"},l.duration=.125,c.addFormattingOptions(l,f.formatting,"note"),m.appendElement("note",F+R,F+R+me[0],l),c.measureNotEmpty=!0,l={});var $e={type:me[1]};0===$e.type.length?b("Unknown bar type",T,R):(c.inEnding&&"bar_thin"!==$e.type&&($e.endEnding=!0,c.inEnding=!1),me[2]&&($e.startEnding=me[2],c.inEnding&&($e.endEnding=!0),c.inEnding=!0,"bar_right_repeat"===me[1]?c.restoreStartEndingHoldOvers():c.duplicateStartEndingHoldOvers()),void 0!==l.decoration&&($e.decoration=l.decoration),void 0!==l.chord&&($e.chord=l.chord),$e.startEnding&&void 0===c.barFirstEndingNum?c.barFirstEndingNum=c.currBarNumber:$e.startEnding&&$e.endEnding&&c.barFirstEndingNum?c.currBarNumber=c.barFirstEndingNum:$e.endEnding&&(c.barFirstEndingNum=void 0),"bar_invisible"!==$e.type&&c.measureNotEmpty&&(void 0===c.currentVoice||0===c.currentVoice.staffNum&&0===c.currentVoice.index)&&(c.currBarNumber++,c.barNumbers&&c.currBarNumber%c.barNumbers==0&&($e.barNumber=c.currBarNumber)),c.addFormattingOptions(l,f.formatting,"bar"),m.appendElement("bar",F+ye,F+R+me[0],$e),c.measureNotEmpty=!1,l={}),R+=me[0]}else if("&"===T[R])(me=v(T,R))[0]>0&&(m.appendElement("overlay",F,F+1,{}),R+=1,ie++);else{if((me=U(T,R)).consumed>0&&(void 0!==me.startSlur&&(l.startSlur=me.startSlur),me.dottedSlur&&(l.dottedSlur=!0),void 0!==me.triplet&&(J>0?b("Can't nest triplets",T,R):(l.startTriplet=me.triplet,l.tripletMultiplier=me.tripletQ/me.triplet,l.tripletR=me.num_notes,J=void 0===me.num_notes?me.triplet:me.num_notes)),R+=me.consumed),"["===T[R]){R++;for(var ut=null,Bt=!1,Jt=!1;!Jt;){var _n=te(T,R);_n[0]>0&&(R+=_n[0]);var kt=$(T,R,{},!1);if(null!==kt&&void 0!==kt.pitch)_n[0]>0&&0!==_n[1].indexOf("style=")&&(void 0===l.decoration&&(l.decoration=[]),l.decoration.push(_n[1])),kt.end_beam&&(l.end_beam=!0,delete kt.end_beam),void 0===l.pitches?(l.duration=kt.duration,l.pitches=[kt]):l.pitches.push(kt),delete kt.duration,_n[0]>0&&0===_n[1].indexOf("style=")&&(l.pitches[l.pitches.length-1].style=_n[1].substr(6)),c.inTieChord[l.pitches.length]&&(kt.endTie=!0,c.inTieChord[l.pitches.length]=void 0),kt.startTie&&(c.inTieChord[l.pitches.length]=!0),R=kt.endChar,delete kt.endChar;else if(" "===T[R])b("Spaces are not allowed in chords",T,R),R++;else{if(R0&&(!l.rest||"spacer"!==l.rest.type)&&0==--J&&(l.endTriplet=!0);for(var Rt=!1;R":case"<":var yn=Q(T,R);R+=yn[0]-1,c.next_note_duration=yn[2],ut?ut*=yn[1]:ut=yn[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var fe=p.getFraction(T,R);ut=fe.value;var ce=T[R=fe.index];" "===ce&&(Bt=!0),"-"===ce||")"===ce||" "===ce||"<"===ce||">"===ce?R--:Rt=!0;break;default:Rt=!0}Rt||R++}}else b("Expected ']' to end the chords",T,R);void 0!==l.pitches&&(null!==ut&&(l.duration=l.duration*ut,Bt&&ne(l)),c.addFormattingOptions(l,f.formatting,"note"),m.appendElement("note",F+ye,F+R,l),c.measureNotEmpty=!0,l={}),Jt=!0}}}else{var be={},Ce=$(T,R,be,!0);void 0!==be.endTie&&h(c,ie,!0),null!==Ce&&(void 0!==Ce.pitch?(l.pitches=[{}],void 0!==Ce.accidental&&(l.pitches[0].accidental=Ce.accidental),l.pitches[0].pitch=Ce.pitch,l.pitches[0].name=Ce.name,(Ce.midipitch||0===Ce.midipitch)&&(l.pitches[0].midipitch=Ce.midipitch),void 0!==Ce.endSlur&&(l.pitches[0].endSlur=Ce.endSlur),void 0!==Ce.endTie&&(l.pitches[0].endTie=Ce.endTie),void 0!==Ce.startSlur&&(l.pitches[0].startSlur=Ce.startSlur),void 0!==l.startSlur&&(l.pitches[0].startSlur=l.startSlur),void 0!==l.dottedSlur&&(l.pitches[0].dottedSlur=!0),void 0!==Ce.startTie&&(l.pitches[0].startTie=Ce.startTie),void 0!==l.startTie&&(l.pitches[0].startTie=l.startTie)):(l.rest=Ce.rest,void 0!==Ce.endSlur&&(l.endSlur=Ce.endSlur),void 0!==Ce.endTie&&(l.rest.endTie=Ce.endTie),void 0!==Ce.startSlur&&(l.startSlur=Ce.startSlur),void 0!==Ce.startTie&&(l.rest.startTie=Ce.startTie),void 0!==l.startTie&&(l.rest.startTie=l.startTie)),void 0!==Ce.chord&&(l.chord=Ce.chord),void 0!==Ce.duration&&(l.duration=Ce.duration),void 0!==Ce.decoration&&(l.decoration=Ce.decoration),void 0!==Ce.graceNotes&&(l.graceNotes=Ce.graceNotes),delete l.startSlur,delete l.dottedSlur,g(c,ie,l)&&(void 0!==l.pitches?l.pitches[0].endTie=!0:"spacer"!==l.rest.type&&(l.rest.endTie=!0),h(c,ie,!1)),(Ce.startTie||l.startTie)&&h(c,ie,!0),R=Ce.endChar,J>0&&!(Ce.rest&&"spacer"===Ce.rest.type)&&0==--J&&(l.endTriplet=!0),Ce.end_beam&&ne(l),l.rest&&"rest"===l.rest.type&&1===l.duration&&S(c)<=1&&(l.rest.type="whole",l.duration=S(c)),l.duration<1&&-1===[.5,.75,.875,.9375,.96875,.984375,.25,.375,.4375,.46875,.484375,.4921875,.125,.1875,.21875,.234375,.2421875,.24609375,.0625,.09375,.109375,.1171875,.12109375,.123046875,.03125,.046875,.0546875,.05859375,.060546875,.0615234375,.015625,.0234375,.02734375,.029296875,.0302734375,.03076171875].indexOf(l.duration)&&0!==l.duration&&(!l.rest||"spacer"!==l.rest.type)&&b("Duration not representable: "+T.substring(ye,R),T,R),c.addFormattingOptions(l,f.formatting,"note"),m.appendElement("note",F+ye,F+R,l),c.measureNotEmpty=!0,l={})}R===ye&&(" "!==T[R]&&"`"!==T[R]&&b("Unknown character ignored",T,R),R++)}}}this.lineContinuation=T.indexOf("\x12")>=0||se[0]>0,this.lineContinuation||(l={})}};var h=function(T,R,F){var K=T.currentVoice?100*T.currentVoice.staffNum+T.currentVoice.index:0;void 0===T.inTie[R]&&(T.inTie[R]=[]),T.inTie[R][K]=F},w=function(T,R){if('"'===T[R]){var F=p.getBrackettedSubstring(T,R,5);if(F[2]||b("Missing the closing quote while parsing the chord symbol",T,R),F[0]>0&&F[1].length>0&&"^"===F[1][0])F[1]=F[1].substring(1),F[2]="above";else if(F[0]>0&&F[1].length>0&&"_"===F[1][0])F[1]=F[1].substring(1),F[2]="below";else if(F[0]>0&&F[1].length>0&&"<"===F[1][0])F[1]=F[1].substring(1),F[2]="left";else if(F[0]>0&&F[1].length>0&&">"===F[1][0])F[1]=F[1].substring(1),F[2]="right";else if(F[0]>0&&F[1].length>0&&"@"===F[1][0]){F[1]=F[1].substring(1);var K=p.getFloat(F[1]);0===K.digits&&b("Missing first position in absolutely positioned annotation.",T,R),F[1]=F[1].substring(K.digits),","!==F[1][0]&&b("Missing comma absolutely positioned annotation.",T,R),F[1]=F[1].substring(1);var J=p.getFloat(F[1]);0===J.digits&&b("Missing second position in absolutely positioned annotation.",T,R),F[1]=F[1].substring(J.digits);var se=p.skipWhiteSpace(F[1]);F[1]=F[1].substring(se),F[2]=null,F[3]={x:K.value,y:J.value}}else!0!==c.freegchord&&(F[1]=F[1].replace(/([ABCDEFG0-9])b/g,"$1\u266d"),F[1]=F[1].replace(/([ABCDEFG0-9])#/g,"$1\u266f"),F[1]=F[1].replace(/^([ABCDEFG])([\u266f\u266d]?)o([^A-Za-z])/g,"$1$2\xb0$3"),F[1]=F[1].replace(/^([ABCDEFG])([\u266f\u266d]?)o$/g,"$1$2\xb0"),F[1]=F[1].replace(/^([ABCDEFG])([\u266f\u266d]?)0([^A-Za-z])/g,"$1$2\xf8$3"),F[1]=F[1].replace(/^([ABCDEFG])([\u266f\u266d]?)\^([^A-Za-z])/g,"$1$2\u2206$3")),F[2]="default",F[1]=D.chordName(c,F[1]);return F}return[0,""]},u=function(T,R){if("{"===T[R]){var F=p.getBrackettedSubstring(T,R,1,"}");F[2]||b("Missing the closing '}' while parsing grace note",T,R),")"===T[R+F[0]]&&(F[0]++,F[1]+=")");for(var K=[],J=0,se=!1;J0&&(K[K.length-1].endBeam=!0):b("Unknown character '"+F[1][J]+"' while parsing grace note",T,R),J++)}if(K.length)return[F[0],K]}return[0]};function v(T,R){if("&"===T[R]){for(var F=R;T[R]&&":"!==T[R]&&"|"!==T[R];)R++;return[R-F,T.substring(F+1,R)]}return[0]}function S(T){var R=T.origMeter;return R&&"specified"===R.type&&R.value&&0!==R.value.length?parseInt(R.value[0].num,10)/parseInt(R.value[0].den,10):1}var x=["trill","lowermordent","uppermordent","mordent","pralltriller","accent","fermata","invertedfermata","tenuto","0","1","2","3","4","5","+","wedge","open","thumb","snap","turn","roll","breath","shortphrase","mediumphrase","longphrase","segno","coda","D.S.","D.C.","fine","beambr1","beambr2","slide","marcato","upbow","downbow","/","//","///","////","trem1","trem2","trem3","trem4","turnx","invertedturn","invertedturnx","trill(","trill)","arpeggio","xstem","mark","umarcato","style=normal","style=harmonic","style=rhythm","style=x","style=triangle","D.C.alcoda","D.C.alfine","D.S.alcoda","D.S.alfine","editorial","courtesy"],O=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz"],B=["crescendo(","crescendo)","diminuendo(","diminuendo)","glissando(","glissando)"],j=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]],Y=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]],te=function(T,R){var F=c.macros[T[R]];if(void 0!==F)return("!"===F[0]||"+"===F[0])&&(F=F.substring(1)),("!"===F[F.length-1]||"+"===F[F.length-1])&&(F=F.substring(0,F.length-1)),x.includes(F)?[1,F]:O.includes(F)?("hidden"===c.volumePosition&&(F=""),[1,F]):B.includes(F)?("hidden"===c.dynamicPosition&&(F=""),[1,F]):(c.ignoredDecorations.includes(F)||b("Unknown macro: "+F,T,R),[1,""]);switch(T[R]){case".":if("("===T[R+1]||"-"===T[R+1])break;return[1,"staccato"];case"u":return[1,"upbow"];case"v":return[1,"downbow"];case"~":return[1,"irishroll"];case"!":case"+":var K=p.getBrackettedSubstring(T,R,5);if(K[1].length>1&&("^"===K[1][0]||"_"===K[1][0])&&(K[1]=K[1].substring(1)),x.includes(K[1]))return K;if(O.includes(K[1]))return"hidden"===c.volumePosition&&(K[1]=""),K;if(B.includes(K[1]))return"hidden"===c.dynamicPosition&&(K[1]=""),K;var J=j.findIndex(function(se){return K[1]===se[0]});return J>=0?(K[1]=j[J][1],K):(J=Y.findIndex(function(se){return K[1]===se[0]}))>=0?(K[1]=Y[J][1],"hidden"===c.dynamicPosition&&(K[1]=""),K):"!"!==T[R]||1!==K[0]&&"!"===T[R+K[0]-1]?(b("Unknown decoration: "+K[1],T,R),K[1]="",K):[1,null];case"H":return[1,"fermata"];case"J":return[1,"slide"];case"L":return[1,"accent"];case"M":return[1,"mordent"];case"O":return[1,"coda"];case"P":return[1,"pralltriller"];case"R":return[1,"roll"];case"S":return[1,"segno"];case"T":return[1,"trill"]}return[0,0]},W=function(T,R){for(var F=R;p.isWhiteSpace(T[R]);)R++;return[R-F]},q=function(T,R){var F=p.getBarLine(T,R);if(0===F.len)return[0,""];if(F.warn)return b(F.warn,T,R),[F.len,""];for(var K=0;K="2"&&T[R+1]<="9"?(void 0!==F.triplet?b("Can't nest triplets",T,R):(F.triplet=T[R+1]-"0",F.tripletQ=ee[F.triplet],F.num_notes=F.triplet,R+2="1"&&T[R+4]<="9"?(F.num_notes=T[R+4]-"0",R+=3):b("expected number after the two colons after the triplet to mark the duration",T,R):R+3="1"&&T[R+3]<="9"?(F.tripletQ=T[R+3]-"0",R+4="1"&&T[R+5]<="9"&&(F.num_notes=T[R+5]-"0",R+=4):R+=2):b("expected number after the triplet to mark the duration",T,R))),R++):void 0===F.startSlur?F.startSlur=1:F.startSlur++),R++;return F.consumed=R-K,F};y.prototype.startNewLine=function(){var T={startChar:-1,endChar:-1};if(c.partForNextLine.title&&(T.part=c.partForNextLine),T.clef=A.clone(c.currentVoice&&void 0!==c.staves[c.currentVoice.staffNum].clef?c.staves[c.currentVoice.staffNum].clef:c.clef),T.key=I.standardKey(c.key.root+c.key.acc+c.key.mode,c.key.root,c.key.acc,c.currentVoice?c.currentVoice.scoreTranspose:0),T.key.mode=c.key.mode,c.key.impliedNaturals&&(T.key.impliedNaturals=c.key.impliedNaturals),c.key.explicitAccidentals)for(var F=0;F=0?(F.duration=f.getBarLength(),F.rest.text=1,ie="Zduration"):(K&&0!==c.next_note_duration?(F.duration=c.default_length*c.next_note_duration,c.next_note_duration=0,ye=!0):F.duration=c.default_length,ie="duration");break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"0":case"/":if("octave"===ie||"duration"===ie){var me=p.getFraction(T,R);for(F.duration=F.duration*me.value,F.endChar=me.index;me.index"!==T[R])return F;R--,ie="broken_rhythm";break;case">":case"<":if(!J(ie))return null;if(!K)return F.endChar=R,F;var et=Q(T,R);R+=et[0]-1,c.next_note_duration=et[2],F.duration=et[1]*F.duration,ie="end_slur";break;default:return J(ie)?(F.endChar=R,F):null}if(++R===T.length)return J(ie)?(F.endChar=R,F):null}return null},Q=function(T,R){switch(T[R]){case">":return R"===T[R+1]&&">"===T[R+2]?[3,1.875,.125]:R"===T[R+1]?[2,1.75,.25]:[1,1.5,.5];case"<":return R{var A=M(5339),I=function(D,p){this.lineIndex=0,this.lines=D,this.multilineVars=p,this.skipWhiteSpace=function(g){for(var l=0;l=g.length};this.eatWhiteSpace=function(g,l){for(var h=l;h="a"&&u[v]<="z"||u[v]>="A"&&u[v]<="Z");)v++;return v},h=this.skipWhiteSpace(g);if(b(g,h))return{len:0};var w=g.substring(h,h+3).toLowerCase();switch((w.length>1&&" "===w[1]||"^"===w[1]||"_"===w[1]||"="===w[1])&&(w=w[0]),w){case"mix":return{len:l(g,h),token:"Mix"};case"dor":return{len:l(g,h),token:"Dor"};case"phr":return{len:l(g,h),token:"Phr"};case"lyd":return{len:l(g,h),token:"Lyd"};case"loc":return{len:l(g,h),token:"Loc"};case"aeo":case"min":case"m":return{len:l(g,h),token:"m"};case"maj":case"ion":return{len:l(g,h),token:""}}return{len:0}},this.getClef=function(g,l){var h=g,w=this.skipWhiteSpace(g);if(b(g,w))return{len:0};var u=!1,v=g.substring(w);if(A.startsWith(v,"clef=")&&(u=!0,v=v.substring(5),w+=5),0===v.length&&u)return{len:w+5,warn:"No clef specified: "+h};var S=this.skipWhiteSpace(v);if(b(v,S))return{len:0};S>0&&(w+=S,v=v.substring(S));var x=null;if(A.startsWith(v,"treble"))x="treble";else if(A.startsWith(v,"bass3"))x="bass3";else if(A.startsWith(v,"bass"))x="bass";else if(A.startsWith(v,"tenor"))x="tenor";else if(A.startsWith(v,"alto2"))x="alto2";else if(A.startsWith(v,"alto1"))x="alto1";else if(A.startsWith(v,"alto"))x="alto";else if(!l&&u&&A.startsWith(v,"none"))x="none";else if(A.startsWith(v,"perc"))x="perc";else if(!l&&u&&A.startsWith(v,"C"))x="tenor";else if(!l&&u&&A.startsWith(v,"F"))x="bass";else{if(l||!u||!A.startsWith(v,"G"))return{len:w+5,warn:"Unknown clef specified: "+h};x="treble"}return v=v.substring(x.length),(S=this.isMatch(v,"+8"))>0?x+="+8":(S=this.isMatch(v,"-8"))>0&&(x+="-8"),{len:w+x.length,token:x,explicit:u}},this.getBarLine=function(g,l){switch(g[l]){case"]":switch(g[++l]){case"|":return{len:2,token:"bar_thick_thin"};case"[":return g[++l]>="1"&&g[l]<="9"||'"'===g[l]?{len:2,token:"bar_invisible"}:{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}break;case":":switch(g[++l]){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(g[++l]){case"]":return"|"===g[++l]&&":"===g[++l]?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};case"|":return":"===g[++l]?{len:4,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:2,token:"bar_right_repeat"}}break;default:return{len:1,warn:"Unknown bar symbol"}}break;case"[":if("|"!==g[++l])return g[l]>="1"&&g[l]<="9"||'"'===g[l]?{len:1,token:"bar_invisible"}:{len:0};switch(g[++l]){case":":return{len:3,token:"bar_left_repeat"};case"]":return{len:3,token:"bar_invisible"};default:return{len:2,token:"bar_thick_thin"}}break;case"|":switch(g[++l]){case"]":return{len:2,token:"bar_thin_thick"};case"|":return":"===g[++l]?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var h=0;":"===g[l+h];)h++;return{len:1+h,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(g,l){for(var h=0;h0;){var h;if("^"===g[0].token){if(h="sharp",g.shift(),0===g.length)return{accs:l,warn:"Expected note name after "+h};switch(g[0].token){case"^":h="dblsharp",g.shift();break;case"/":h="quartersharp",g.shift()}}else if("="===g[0].token)h="natural",g.shift();else{if("_"!==g[0].token)return{accs:l};if(h="flat",g.shift(),0===g.length)return{accs:l,warn:"Expected note name after "+h};switch(g[0].token){case"_":h="dblflat",g.shift();break;case"/":h="quarterflat",g.shift()}}if(0===g.length)return{accs:l,warn:"Expected note name after "+h};switch(g[0].token[0]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":void 0===l&&(l=[]),l.push({acc:h,note:g[0].token[0]}),1===g[0].token.length?g.shift():g[0].token=g[0].token.substring(1);break;default:return{accs:l,warn:"Expected note name after "+h+" Found: "+g[0].token}}}return{accs:l}},this.getKeyAccidental=function(g){var l={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},h=this.skipWhiteSpace(g);if(b(g,h))return{len:0};var w=null;switch(g[h]){case"^":case"_":case"=":w=g[h];break;default:return{len:0}}if(h++,b(g,h))return{len:1,warn:"Expected note name after accidental"};switch(g[h]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:h+1,token:{acc:l[w],note:g[h]}};case"^":case"_":case"/":if(w+=g[h],h++,b(g,h))return{len:2,warn:"Expected note name after accidental"};switch(g[h]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:h+1,token:{acc:l[w],note:g[h]}};default:return{len:2,warn:"Expected note name after accidental"}}break;default:return{len:1,warn:"Expected note name after accidental"}}},this.isWhiteSpace=function(g){return" "===g||"\t"===g||"\x12"===g},this.getMeat=function(g,l,h){var w=g.indexOf("%",l);for(w>=0&&w="A"&&g<="Z"||g>="a"&&g<="z"},f=function(g){return g>="0"&&g<="9"};this.tokenize=function(g,l,h,w){var u=this.getMeat(g,l,h);l=u.start,h=u.end;for(var S,v=[];l=h?{len:1,err:"Missing close quote"}:{len:u-l+1,token:this.translateString(g.substring(w+1,u))}}for(var v=w;v=0?g.substring(0,l):g)},this.getInt=function(g){var l=parseInt(g);if(isNaN(l))return{digits:0};var h=""+l;return{value:l,digits:g.indexOf(h)+h.length}},this.getFloat=function(g){var l=parseFloat(g);if(isNaN(l))return{digits:0};var h=""+l;return{value:l,digits:g.indexOf(h)+h.length}},this.getMeasurement=function(g){if(0===g.length)return{used:0};var l=1,h="";if("-"===g[0].token)g.shift(),h="-",l++;else if("number"!==g[0].type)return{used:0};if(h+=g.shift().token,0===g.length)return{used:1,value:parseInt(h)};var w=g.shift();if("."===w.token){if(l++,0===g.length)return{used:l,value:parseInt(h)};if("number"===g[0].type&&(h=h+"."+(w=g.shift()).token,l++,0===g.length))return{used:l,value:parseFloat(h)};w=g.shift()}switch(w.token){case"pt":case"px":return{used:l+1,value:parseFloat(h)};case"cm":return{used:l+1,value:parseFloat(h)/2.54*72};case"in":return{used:l+1,value:72*parseFloat(h)};default:return g.unshift(w),{used:l,value:parseFloat(h)}}};var E=function(g){return(g=g.replace(/\\n/g,"\n")).replace(/\\"/g,'"')};this.getBrackettedSubstring=function(g,l,h,w){for(var u=w||g[l],v=l+1,S=!1;vg.length-1&&(v=g.length-1),[v-l+1,E(g.substring(l+1,v)),!1])}};I.prototype.peekLine=function(){return this.lines[this.lineIndex]},I.prototype.nextLine=function(){if(this.lineIndex>0&&(this.multilineVars.iChar+=this.lines[this.lineIndex-1].length+1),this.lineIndex{var A=M(6682),I=M(7658),D=M(3463),p={},b={C:0,"C#":1,Db:1,D:2,"D#":3,Eb:3,E:4,F:5,"F#":6,Gb:6,G:7,"G#":8,Ab:8,A:9,"A#":10,Bb:10,B:11},c=["C","Db","D","Eb","E","F","F#","G","Ab","A","Bb","B"],f=["C","C#","D","D#","E","F","F#","G","G#","A","Bb","B"];p.keySignature=function(l,h,w,u,v){if("perc"===l.clef.type||"none"===l.clef.type)return{accidentals:D(h),root:w,acc:u};v||(v=0),l.localTransposeVerticalMovement=0,l.localTransposePreferFlats=!1;var S=D(h);if(!S)return l.key;if(l.localTranspose=(l.globalTranspose?l.globalTranspose:0)+v,!l.localTranspose)return{accidentals:S,root:w,acc:u};if(l.globalTransposeOrigKeySig=S,l.localTranspose%12==0)return l.localTransposeVerticalMovement=l.localTranspose/12*7,{accidentals:S,root:w,acc:u};var x=h[0];"b"===h[1]||"#"===h[1]?(x+=h[1],h=h.substr(2)):h=h.substr(1);var O=b[x],B=void 0!==O;B||(O=0,x="C",h="");for(var j=O+l.localTranspose;j<0;)j+=12;j>11&&(j%=12);var Y="m"===h[0]?f[j]:c[j],te=Y+h,W=D(te);W.length>0&&"flat"===W[0].acc&&(l.localTransposePreferFlats=!0);var q=te.charCodeAt(0)-x.charCodeAt(0);return l.localTranspose>0?(q<0||0===q&&("#"===x[1]||"b"===te[1]))&&(q+=7):l.localTranspose<0&&(q>0||0===q&&("b"===x[1]||"#"===te[1]))&&(q-=7),l.localTransposeVerticalMovement=l.localTranspose>0?q+7*Math.floor(l.localTranspose/12):q+7*Math.ceil(l.localTranspose/12),B?{accidentals:W,root:Y[0],acc:Y.length>1?Y[1]:""}:{accidentals:[],root:w,acc:u}},p.chordName=function(l,h){return I(h,l.localTranspose,l.localTransposePreferFlats,l.freegchord)};var m=["c","d","e","f","g","a","b"],y={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},E={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"},g={"-2":"__","-1":"_",0:"=",1:"^",2:"^^"};p.note=function(l,h){if(l.localTranspose&&"perc"!==l.clef.type){var w=h.pitch;if(l.localTransposeVerticalMovement&&(h.pitch=h.pitch+l.localTransposeVerticalMovement,h.name)){var u=h.accidental?h.name.substring(1):h.name,v=h.accidental?h.name[0]:"",S=A.pitchIndex(u);h.name=v+A.noteName(S+l.localTransposeVerticalMovement)}if(h.accidental){var x=function _(l,h,w,u,v){for(var S=m[(l+49)%7],x=0,O=0;O2&&(h++,q-="b"===Y||"e"===Y?1:2),[h,q]}(w,h.pitch,h.accidental,l.globalTransposeOrigKeySig,l.targetKey);h.pitch=x[0],h.accidental=E[x[1]],h.name&&(h.name=g[x[1]]+h.name.replace(/[_^=]/g,""))}}},Z.exports=p},6682:Z=>{var H={};const M=["C,,,","D,,,","E,,,","F,,,","G,,,","A,,,","B,,,","C,,","D,,","E,,","F,,","G,,","A,,","B,,","C,","D,","E,","F,","G,","A,","B,","C","D","E","F","G","A","B","c","d","e","f","g","a","b","c'","d'","e'","f'","g'","a'","b'","c''","d''","e''","f''","g''","a''","b''","c'''","d'''","e'''","f'''","g'''","a'''","b'''"];H.pitchIndex=function(A){return M.indexOf(A)},H.noteName=function(A){return M[A]},Z.exports=H},7658:Z=>{var H=["C","C\u266f","D","D\u266f","E","F","F\u266f","G","G\u266f","A","A\u266f","B"],M=["C","D\u266d","D","E\u266d","E","F","G\u266d","G","A\u266d","A","B\u266d","B"],A=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],I=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"];Z.exports=function D(p,b,c,f){if(!b||b%12==0)return p;for(;b<0;)b+=12;b>11&&(b%=12);var m=p.match(/^([A-G][b#\u266d\u266f]?)([^\/]+)?\/?([A-G][b#\u266d\u266f]?)?(.+)?/);if(!m)return p;var l,_=m[1],y=m[2],E=m[3],g=m[4];return(l=H.indexOf(_))<0&&(l=M.indexOf(_)),l<0&&(l=A.indexOf(_)),l<0&&(l=I.indexOf(_)),l<0||(l+=b,l%=12,p=c?f?I[l]:M[l]:f?A[l]:H[l],y&&(p+=y),E&&((l=H.indexOf(E))<0&&(l=M.indexOf(E)),l<0&&(l=A.indexOf(E)),l<0&&(l=I.indexOf(E)),p+="/",l>=0?(l+=b,l%=12,p+=c?f?I[l]:M[l]:f?A[l]:H[l]):p+=E),g&&(p+=g)),p}},5399:(Z,H,M)=>{var A=M(1875),I=M(5339);Z.exports=function(p){var b=this;function c(m,_){for(var y=_-1;y>0&&"bar"!==m[y].el_type;y--);return y}this.setVisualTranspose=function(m){m&&(p.visualTranspose=m)},this.resolveOverlays=function(){for(var m=!1,_=[],y=0;y0&&h[w].voice.push({el_type:"note",duration:v,rest:{type:"invisible"},startChar:j.startChar,endChar:j.endChar}),h[w].voice.push(j)),v=0):"note"===j.el_type?S?h[w].voice.push(j):(v+=j.duration,_[y]+=j.duration):("scale"===j.el_type||"stem"===j.el_type||"overlay"===j.el_type||"style"===j.el_type||"transpose"===j.el_type||"color"===j.el_type)&&h[w].voice.push(j);else{m=!0,S=!0,O=B,h[w].hasOverlay=!0,0===x&&(x=_[y]);for(var Y=0;Y=p.lines[Y].staff[0].voices.length&&p.lines[Y].staff[0].voices.push([{el_type:"note",duration:_[Y],rest:{type:"invisible"},startChar:j.startChar,endChar:j.endChar}])}}h[w].hasOverlay&&0===h[w].snip.length&&h[w].snip.push({start:O,len:u.length-O})}for(w=0;w=0;W--){var q=te.snip[W];l.voices[w].splice(q.start,q.len),l.voices[w].splice(q.start+1,0,{el_type:"stem",direction:"auto"});var ee=c(l.voices[w],q.start);l.voices[w].splice(ee,0,{el_type:"stem",direction:"up"})}for(W=0;W=q&&zq;){if(W[q].staff)return W[q];q++}return null}for(p.lineNum=0;p.lineNum0&&j[j.length-1].barNumber){var te=O(p.lines,p.lineNum);te&&(te.staff[0].barNumber=j[j.length-1].barNumber),delete j[j.length-1].barNumber}}}return delete p.staffNum,delete p.voiceNum,delete p.lineNum,delete p.potentialStartBeam,delete p.potentialEndBeam,delete p.vskipPending,y},p.reset(),this.getLastNote=function(){if(p.lines[p.lineNum]&&p.lines[p.lineNum].staff&&p.lines[p.lineNum].staff[p.staffNum]&&p.lines[p.lineNum].staff[p.staffNum].voices[p.voiceNum])for(var m=p.lines[p.lineNum].staff[p.staffNum].voices[p.voiceNum].length-1;m>=0;m--){var _=p.lines[p.lineNum].staff[p.staffNum].voices[p.voiceNum][m];if("note"===_.el_type)return _}return null},this.addTieToLastNote=function(m){var _=this.getLastNote();return!!(_&&_.pitches&&_.pitches.length>0)&&(_.pitches[0].startTie={},m&&(_.pitches[0].startTie.style="dotted"),!0)},this.getDuration=function(m){return m.duration?m.duration:0},this.closeLine=function(){p.potentialStartBeam&&p.potentialEndBeam&&(p.potentialStartBeam.startBeam=!0,p.potentialEndBeam.endBeam=!0),delete p.potentialStartBeam,delete p.potentialEndBeam},this.appendElement=function(m,_,y,E){var g=p;E.el_type=m,null!==_&&(E.startChar=_),null!==y&&(E.endChar=y);var w=function(){void 0!==g.potentialStartBeam&&void 0!==g.potentialEndBeam&&(g.potentialStartBeam.startBeam=!0,g.potentialEndBeam.endBeam=!0),delete g.potentialStartBeam,delete g.potentialEndBeam};"note"===m?b.getDuration(E)>=.25||E.force_end_beam_last&&void 0!==g.potentialStartBeam?w():E.end_beam&&void 0!==g.potentialStartBeam?void 0===E.rest?(g.potentialStartBeam.startBeam=!0,E.endBeam=!0,delete g.potentialStartBeam,delete g.potentialEndBeam):w():void 0===E.rest&&(void 0===g.potentialStartBeam?E.end_beam||(g.potentialStartBeam=E,delete g.potentialEndBeam):g.potentialEndBeam=E):w(),delete E.end_beam,delete E.force_end_beam_last,function(v){var S=g.lines[g.lineNum].staff[g.staffNum];if(S){if(void 0!==v.pitches){var x=S.workingClef.verticalPos;v.pitches.forEach(function(B){B.verticalPos=B.pitch-x})}if(void 0!==v.gracenotes){var O=S.workingClef.verticalPos;v.gracenotes.forEach(function(B){B.verticalPos=B.pitch-O})}S.voices[g.voiceNum].push(v)}}(E)},this.appendStartingElement=function(m,_,y,E){var g;this.closeLine(),"key"===m&&(g=E.impliedNaturals,delete E.impliedNaturals,delete E.explicitAccidentals);var l=I.clone(E);if(p.lines[p.lineNum]&&p.lines[p.lineNum].staff){p.lines[p.lineNum].staff.length<=p.staffNum&&(p.lines[p.lineNum].staff[p.staffNum]={},p.lines[p.lineNum].staff[p.staffNum].clef=I.clone(p.lines[p.lineNum].staff[0].clef),p.lines[p.lineNum].staff[p.staffNum].key=I.clone(p.lines[p.lineNum].staff[0].key),p.lines[p.lineNum].staff[0].meter&&(p.lines[p.lineNum].staff[p.staffNum].meter=I.clone(p.lines[p.lineNum].staff[0].meter)),p.lines[p.lineNum].staff[p.staffNum].workingClef=I.clone(p.lines[p.lineNum].staff[0].workingClef),p.lines[p.lineNum].staff[p.staffNum].voices=[[]]),"clef"===m&&(p.lines[p.lineNum].staff[p.staffNum].workingClef=l);for(var h=p.lines[p.lineNum].staff[p.staffNum].voices[p.voiceNum],w=0;w0){if(void 0!==h.voices[0]){for(var w=!1,u=0;u0){var y=_[_.length-1];if("bar"!==y.el_type)return m-1;void 0!==y.barNumber&&(y.barNumber=m)}return m},this.hasBeginMusic=function(){for(var m=0;m=0;_--)if(void 0!==p.lines[_].staff)return!1;return!0},this.getCurrentVoice=function(){var m=p.lines[p.lineNum];if(!m)return null;var _=m.staff[p.staffNum];return _&&void 0!==_.voices[p.voiceNum]?_.voices[p.voiceNum]:null},this.setCurrentVoice=function(m,_){p.staffNum=m,p.voiceNum=_;for(var y=0;y{function I(_,y){for(var E=[],g=[],l=0,h=0;h<_.length;h++){var w=_[h],u=l+w;u0?(E.push(h-1),g.push(Math.round(l-w)),l=w):h<_.length-1&&(E.push(h),g.push(Math.round(l)),l=0)}return g.push(Math.round(l)),{lineBreaks:E,totals:g}}function D(_){for(var y=[],E=0;E<_.length;E++)y.push(_[E]);return y}function p(_,y,E,g,l,h,w,u,v,S,x){for(var O=S;O<_.length;O++){var B=_[O];E+=B,g+=B;var j=Math.abs(E-y[u]);if(Math.abs(j-h)h&&O<_.length-1&&(te=D(l),W=D(v),x.push({accumulator:E,lineAccumulator:g,lineWidths:te,lastVariance:j,highestVariance:Math.max(w,j),currLine:u,lineBreaks:W,startIndex:O+1}));j>h?(v.push(O-1),u++,w=Math.max(w,h),h=Math.abs(E-y[u]),l.push(g-B),g=B):h=j}l.push(g)}function b(_,y,E,g){for(var l=Math.ceil(_.total/y),h=Math.floor(_.total/l),w=[],u=0;uy&&(w=!0),u%E==E-1&&(u!==_.length-1&&g.push(u),l.push(Math.round(h)),h=0);return{failed:w,totals:l,lineBreaks:g}}Z.exports={wrapLines:function H(_,y,E){if(y&&0!==_.lines.length){var g=_.deline({lineBreaks:!1}),l=function A(_,y){for(var E=[],g=0,l=0,h=0,w=0;w<_.length;w++){var u=_[w];if(u.staff){var v=l,S=y[g];g++;for(var x=0;x0&&(g[v.line].staff[v.staff].barNumber=w);for(var x=Object.keys(S),O=0;O=0;Y--)if("key"===j[Y].el_type){l[v.staff]={root:j[Y].root,acc:j[Y].acc,mode:j[Y].mode,accidentals:j[Y].accidentals.filter(function(W){return"natural"!==W.acc})};break}for(Y=j.length-1;Y>=0;Y--)if("stem"===j[Y].el_type){h[10*v.staff+v.voice]={direction:j[Y].direction};break}if(void 0!==E&&0===v.staff&&0===v.voice)for(Y=0;Y0&&O.measureWidths.length<25&&(U=b(O,j,0,W),W.attempts.push({type:"Optimize",failed:U.failed,reason:U.reason,lineBreaks:U.lineBreaks,totals:U.totals}),U.failed||(q=U.lineBreaks))}v.push(q),S.push(W)}var z=function f(_,y,E){var g={lineBreaks:_,staffwidth:y};for(var l in E)E.hasOwnProperty(l)&&"wrap"!==l&&"staffwidth"!==l&&(g[l]=E[l]);return{revisedParams:g}}(v,E.staffwidth,E);return z.explanation=S,z.reParse=!0,z}}},1091:(Z,H,M)=>{var c,A=M(3463),{relativeMajor:I,transposeKey:D,relativeMode:p}=M(9285),b=M(7658);(function(){"use strict";function f(q,ee,U){var ne=[],z=ee.getKeySignature();if("Hp"===z.root||"HP"===z.root)return ne;ne=ne.concat(function m(q,ee){for(var U=[],ne=q.split("K:"),z=ne[0].length,L=1;L2?ne+=7:-12===U&&(ne-=7):U>0&&ne<0?ne+=7:U<0&&ne>0&&(ne-=7),U>12?ne+=7:U<-12&&(ne-=7),ne}function g(q,ee,U,ne,z,L){for(var P=[],$=E(z,U,L),Q={},T={},R=0;R1?z[1]:"",accidentals:L}}function u(q,ee,U,ne){for(var z=q.pitch,L=l.indexOf(q.name),$=(l.indexOf(ee.root)+z)%7,Q=L+U,T=q.oct;Q>6;)T++,Q-=7;for(;Q<0;)T--,Q+=7;for(var R=l[$],F="",K=q.adj,J="=",se=0;se4&&(R=R.toLowerCase()),{acc:F,name:R,upper:R.toUpperCase()}}var v=/([_^=]*)([A-Ga-g])([,']*)/,S=/([_^=]*[A-Ga-g][,']*)(\d*\/*\d*)([\>\<\-\)\.\s\\]*)/,x=/([_^=]*[A-Ga-g][,']*)?(\d*\/*\d*)?([\>\<\-\)]*)?/,O=/(\s*)$/;function B(q,ee,U,ne){var z="none"===ee?0:l.indexOf(ee),L=q.match(v),P=L[2].toUpperCase(),$=l.indexOf(P)-z;$<0&&($+=7);var Q=h.indexOf(L[3]);P===L[2]&&Q--;var T=ne[P]||U[P]||"=";return{acc:L[1],name:P,pitch:$,oct:Q,adj:W(L[1],U[P],ne[P]),courtesy:L[1]===T}}function j(q,ee,U,ne,z){var L=q.substring(ee,U),P=L.match(new RegExp(S.source+O.source),"");if(P){var Q=P[2].length+P[3].length+P[4].length;ee+=U-ee-P[1].length-Q,U-=Q}else if(P=L.match(new RegExp(/([^\[]*)/.source+/\[/.source+x.source+x.source+x.source+x.source+x.source+x.source+x.source+x.source+/\-?](\d*\/*\d*)?([\>\<\-\)]*)/.source+O.source))){for(var J=1+P[1].length,se=0;se{var A,I=M(5339),D=M(6515);(function(){"use strict";var p,b,c,m,_,y,g,l,h,u,v,x,O,B,j,U,ne,z,L,J,se,ye,Ve,qe,E=1,S={num:4,den:4},Y=0,te=0,W=128,q=64,ee=48,P=!1,$=!1,Q=!0,T=105,R=95,F=85,K=.25,ie=0,me={},et=0;function Re(ae){for(var _e=h.length-1;_e>=0;_e--)if("program"===h[_e].cmd)return void(h[_e].channel=ae)}function ut(){for(var ae=!0,_e=0;_e0&&ae[0].length>0&&(et=ae[0][0].pickupLength),function _n(ae,_e){for(var Te=0;Te=0)&&(Xe=!0);for(var ot=0;ot0&&(!1===O||Se===O)&&(Dt(L,Bt(at.time)),U=[]),p=[],0===Se&&Ke(ae.length+1),$=!1,z=ne,L=Bt(at.time);break;case"bagpipes":break;case"instrument":if(void 0===g&&(g=at.program),l=at.program,h.length>0&&"program"===h[h.length-1].cmd)h[h.length-1].instrument=at.program;else{var Xt;for(Xt=h.length-1;Xt>=0&&"program"!==h[Xt].cmd;Xt--);(Xt<0||h[Xt].instrument!==at.program)&&h.push({cmd:"program",channel:0,instrument:at.program})}break;case"channel":Re(at.channel);break;case"drum":me=_i(at.params),ua();break;case"gchord":_e.chordsOff||(P=at.tacet);break;case"beat":T=at.beats[0],R=at.beats[1],F=at.beats[2];break;case"vol":J=at.volume;break;case"volinc":se=at.volume;break;case"beataccents":Q=at.value;break;default:console.log("MIDI creation. Unknown el_type: "+at.el_type+"\n")}}void 0===h[0].instrument&&(h[0].instrument=g||0),u&&h.unshift(u),m.push(h),ut()||(B=!0)}return _e.detuneOctave&&function Bl(ae,_e){for(var Te={},Ee=0;Ee1){var at=(ot=ot.sort(function(en,En){return en.pitch-En.pitch}))[ot.length-1],sn=at.pitch%12,Xt=!1;for(Se=0;!Xt&&Se0&&m.push(ye),{tempo:_,instrument:g,tracks:m,totalDuration:v}};var Rt=["break","(break)","no chord","n.c.","tacet"];function fe(ae,_e,Te){return(Te-ae)/_e}function Ae(ae,_e){var Se=_e.start,Xe=_e.duration,ot=Jt(1/32);switch(ae){case"trill":for(var at=1;Xe>0;)h.push({cmd:"note",pitch:_e.pitch+at,volume:_e.volume,start:Se,duration:ot,gap:0,instrument:l,style:"decoration"}),at=1===at?0:1,Xe-=ot,Se+=ot;break;case"mordent":h.push({cmd:"note",pitch:_e.pitch,volume:_e.volume,start:Se,duration:ot,gap:0,instrument:l,style:"decoration"}),Xe-=ot,h.push({cmd:"note",pitch:_e.pitch+1,volume:_e.volume,start:Se+=ot,duration:ot,gap:0,instrument:l,style:"decoration"}),h.push({cmd:"note",pitch:_e.pitch,volume:_e.volume,start:Se+=ot,duration:Xe-=ot,gap:0,instrument:l});break;case"lowermordent":h.push({cmd:"note",pitch:_e.pitch,volume:_e.volume,start:Se,duration:ot,gap:0,instrument:l,style:"decoration"}),Xe-=ot,h.push({cmd:"note",pitch:_e.pitch-1,volume:_e.volume,start:Se+=ot,duration:ot,gap:0,instrument:l,style:"decoration"}),h.push({cmd:"note",pitch:_e.pitch,volume:_e.volume,start:Se+=ot,duration:Xe-=ot,gap:0,instrument:l});break;case"turn":h.push({cmd:"note",pitch:_e.pitch,volume:_e.volume,start:Se,duration:ot=_e.duration/5,gap:0,instrument:l,style:"decoration"}),h.push({cmd:"note",pitch:_e.pitch+1,volume:_e.volume,start:Se+ot,duration:ot,gap:0,instrument:l,style:"decoration"}),h.push({cmd:"note",pitch:_e.pitch,volume:_e.volume,start:Se+2*ot,duration:ot,gap:0,instrument:l,style:"decoration"}),h.push({cmd:"note",pitch:_e.pitch+1,volume:_e.volume,start:Se+3*ot,duration:ot,gap:0,instrument:l,style:"decoration"}),h.push({cmd:"note",pitch:_e.pitch,volume:_e.volume,start:Se+4*ot,duration:ot,gap:0,instrument:l});break;case"roll":for(;Xe>0;)h.push({cmd:"note",pitch:_e.pitch,volume:_e.volume,start:Se,duration:ot,gap:0,instrument:l,style:"decoration"}),Xe-=2*ot,Se+=2*ot}}function Yt(ae,_e){var Ze,Ee=function ce(ae,_e){if(_e)return 0;var Te;if(J)Te=J,J=void 0;else if(Q)if(et>ae)Te=F;else{var Se=fe(L,kt(S),ae);Te=0===Se?T:parseInt(Se,10)===Se?R:F}else Te=R;return se&&(Te+=se,se=void 0),Te<0&&(Te=0),Te>127&&(Te=127),_e?0:Te}(Bt(ae.time),_e),Se=function be(ae){var _e=!1,Te=function yn(ae){if(P)return"break";if(B||!ae.chord||0===ae.chord.length)return null;for(var _e=0;_e=0)return"break"}return null}(ae);if(Te){var Ee=function gt(ae){if(0!==ae.length){if("break"===ae)return{chick:[]};var _e=ae.substring(0,1);if("("===_e){if(0===(ae=ae.substring(1,ae.length-2)).length)return;_e=ae.substring(0,1)}var Te=Ni[_e];if(Te){for(var Ee=c;Ee<-8;)Ee+=12;for(;Ee>8;)Ee-=12;var Ze,Se=(Te+=Ee)-5;1===ae.length&&(Ze=vt(Te,""));var Xe=ae.substring(1),ot=Xe.substring(0,1);"b"===ot||"\u266d"===ot?(Te--,Se--,Xe=Xe.substring(1)):("#"===ot||"\u266f"===ot)&&(Te++,Se++,Xe=Xe.substring(1));var at=Xe.split("/");if((Ze=vt(Te,at[0])).length>=3&&(Se=Se+(Ze[2]-Ze[0])-7),2===at.length&&Ni[at[1].substring(0,1)]){var en={"#":1,"\u266f":1,b:-1,"\u266d":-1}[at[1].substring(1)]||0;Se=Te=Ni[at[1].substring(0,1)]+en+Ee}return{boom:Te,boom2:Se,chick:Ze}}}}(Te);if(Ee){0===x.length&&(_e=!0,x.push({cmd:"program",channel:j,instrument:te})),ne=Ee;var Se=fe(L,kt(S),Bt(ae.time));U.push({chord:ne,beat:Se,start:Bt(ae.time)})}}return _e}(ae);if(ae.gracenotes&&ae.pitches&&ae.pitches.length>0&&ae.pitches[0]&&(Ze=function Pt(ae,_e){for(var Se,Te=0,Ee=[],Ze=0;Ze0?tn.endType="tenuto":Xt&&(tn.endType=Xt),tn.endType){case"tenuto":tn.gap=-.001;break;case"staccato":tn.gap=_/60*(.4*tn.duration);break;default:tn.gap=0}h.push(tn)}}}}var S_=function tt(ae){return ae.pitches&&ae.pitches.length>0&&ae.pitches[0]?ae.pitches[0].duration:ae.elem?ae.elem.duration:ae.duration}(ae);return v=Math.max(v,Bt(ae.time)+Jt(S_)),Se}var Ct=[0,2,4,5,7,9,11];function rt(ae){if(void 0!==ae.midipitch)return ae.midipitch;var _e=ae.pitch;if(ae.accidental)switch(ae.accidental){case"sharp":p[_e]=1;break;case"flat":p[_e]=-1;break;case"natural":p[_e]=0;break;case"dblsharp":p[_e]=2;break;case"dblflat":p[_e]=-2;break;case"quartersharp":p[_e]=.25;break;case"quarterflat":p[_e]=-.25}var Te=12*function Ln(ae){return Math.floor(ae/7)}(_e)+Ct[Tn(_e)]+60;return(Te+=void 0!==p[_e]?p[_e]:b[Tn(_e)])+c}function Ft(ae){var _e=[0,0,0,0,0,0,0];if(!ae.accidentals)return _e;for(var Te=0;Te=0?(ae.pitch=Math.round(ae.pitch),ae.cents=-50):_e.indexOf(".25")>=0&&(ae.pitch=Math.round(ae.pitch),ae.cents=50),ae}function Tn(ae){return(ae%=7)<0&&(ae+=7),ae}var Ni={A:33,B:35,C:36,D:38,E:40,F:41,G:43},Jn={dim:[0,3,6],"\xb0":[0,3,6],"\u02da":[0,3,6],dim7:[0,3,6,9],"\xb07":[0,3,6,9],"\u02da7":[0,3,6,9],\u00f87:[0,3,6,10],"m7(b5)":[0,3,6,10],m7b5:[0,3,6,10],"m7\u266d5":[0,3,6,10],"-7(b5)":[0,3,6,10],"-7b5":[0,3,6,10],"7b5":[0,4,6,10],"7(b5)":[0,4,6,10],"7\u266d5":[0,4,6,10],"7(b9,b5)":[0,4,6,10,13],"7b9,b5":[0,4,6,10,13],"7(#9,b5)":[0,4,6,10,15],"7#9b5":[0,4,6,10,15],"maj7(b5)":[0,4,6,11],maj7b5:[0,4,6,11],"13(b5)":[0,4,6,10,14,21],"13b5":[0,4,6,10,14,21],m:[0,3,7],"-":[0,3,7],m6:[0,3,7,9],"-6":[0,3,7,9],m7:[0,3,7,10],"-7":[0,3,7,10],"-(b6)":[0,3,7,8],"-b6":[0,3,7,8],"-6/9":[0,3,7,9,14],"-7(b9)":[0,3,7,10,13],"-7b9":[0,3,7,10,13],"-maj7":[0,3,7,11],"-9+7":[0,3,7,11,13],"-11":[0,3,7,11,14,17],m11:[0,3,7,11,14,17],"-maj9":[0,3,7,11,14],"-\u22069":[0,3,7,11,14],mM9:[0,3,7,11,14],M:[0,4,7],6:[0,4,7,9],"6/9":[0,4,7,9,14],"6add9":[0,4,7,9,14],69:[0,4,7,9,14],7:[0,4,7,10],9:[0,4,7,10,14],11:[0,7,10,14,17],13:[0,4,7,10,14,21],"7b9":[0,4,7,10,13],"7\u266d9":[0,4,7,10,13],"7(b9)":[0,4,7,10,13],"7(#9)":[0,4,7,10,15],"7#9":[0,4,7,10,15],"(13)":[0,4,7,10,14,21],"7(9,13)":[0,4,7,10,14,21],"7(#9,b13)":[0,4,7,10,15,20],"7(#11)":[0,4,7,10,14,18],"7#11":[0,4,7,10,14,18],"7(b13)":[0,4,7,10,20],"7b13":[0,4,7,10,20],"9(#11)":[0,4,7,10,14,18],"9#11":[0,4,7,10,14,18],"13(#11)":[0,4,7,10,18,21],"13#11":[0,4,7,10,18,21],maj7:[0,4,7,11],"\u22067":[0,4,7,11],\u03947:[0,4,7,11],maj9:[0,4,7,11,14],"maj7(9)":[0,4,7,11,14],"maj7(11)":[0,4,7,11,17],"maj7(#11)":[0,4,7,11,18],"maj7(13)":[0,4,7,14,21],"maj7(9,13)":[0,4,7,11,14,21],"7sus4":[0,5,7,10],m7sus4:[0,3,7,10,17],sus4:[0,5,7],sus2:[0,2,7],"7sus2":[0,2,7,10],"9sus4":[0,5,7,10,14],"13sus4":[0,5,7,10,14,21],aug7:[0,4,8,10],"+7":[0,4,8,10],"+":[0,4,8],"7#5":[0,4,8,10],"7\u266f5":[0,4,8,10],"7+5":[0,4,8,10],"9#5":[0,4,8,10,14],"9\u266f5":[0,4,8,10,14],"9+5":[0,4,8,10,14],"-7(#5)":[0,3,8,10],"-7#5":[0,3,8,10],"7(#5)":[0,4,8,10],"7(b9,#5)":[0,4,8,10,13],"7b9#5":[0,4,8,10,13],"maj7(#5)":[0,4,8,11],"maj7#5":[0,4,8,11],"maj7(#5,#11)":[0,4,8,11,18],"maj7#5#11":[0,4,8,11,18],"9(#5)":[0,4,8,10,14],"13(#5)":[0,4,8,10,14,21],"13#5":[0,4,8,10,14,21]};function vt(ae,_e){var Te=Jn[_e];Te||(Te="ma"===_e.slice(0,2).toLowerCase()||"M"===_e[0]?Jn.M:"m"===_e[0]||"-"===_e[0]?Jn.m:Jn.M),ae+=12;for(var Ee=[],Se=0;Se{var I,A=M(6793);(function(){"use strict";function D(l,h){for(var w in h)h.hasOwnProperty(w)&&l.setAttribute(w,h[w]);return l}function p(){this.trackstrings="",this.trackcount=0,this.noteOnAndChannel="%90",this.noteOffAndChannel="%80"}function c(l,h){for(var w="",u=0;uh&&(w=w.substring(0,h)),function _(l){for(var h="",w=0;w>=7;for(var u=w.length-1;u>=0;u--){h<<=8;var v=w[u];0!==u&&(v|=128),h|=v}var S=h.toString(16).length;return y(h,S+=S%2)}p.prototype.setTempo=function(l){0===this.trackcount&&(this.startTrack(),this.track+="%00%FF%51%03"+y(Math.round(6e7/l),6),this.endTrack())},p.prototype.setGlobalInfo=function(l,h,w,u){if(0===this.trackcount){this.startTrack();var v=Math.round(6e7/l);this.track+="%00%FF%51%03"+y(v,6),w&&(this.track+=function f(l){if(!l||!l.accidentals)return"";for(var w=0,u=256,v=0;v{var A,I=M(5339);(function(){"use strict";var D=1,p=128;function b(u,v,S){for(var x=0,O=v+1;O=0)return x;return x}function c(u,v,S){for(var x=Math.min(u.length,v+3),O=v;O=0)return u[O].decoration[B];return null}function m(u){for(var v=0;v=0&&"bar"!==S[x].el_type;)S[x].noChordVoice=!0,x--}function _(u,v){if(u&&!(u.length<=v)&&u[v].title)return u[v].title.join(" ")}function y(u,v){var S=.25;u.duration&&(S=u.duration[0]);var x=60;return u.bpm&&(x=u.bpm),S*x/v}function E(u){var v;switch(u.type){case"common_time":v={el_type:"meter",num:4,den:4};break;case"cut_time":v={el_type:"meter",num:2,den:2};break;case"specified":v={el_type:"meter",num:u.value[0].num,den:u.value[0].den};break;default:v={el_type:"meter"}}return D=v.num/v.den,v}function g(u){for(var v=[],S=0;S=0;S--)if(u[S].el_type===v.el_type)return void(JSON.stringify(u[S])!==JSON.stringify(v)&&u.push(v));u.push(v)}A=function(u,v){var S,x=(v=v||{}).program||0,O=v.midiTranspose||0;u.visualTranspose&&(O-=u.visualTranspose);var B=v.channel||0,j=!1,Y=v.drum||"",te=v.drumBars||1,W=v.drumIntro||0,q=""!==Y,ee=[];x=parseInt(x,10),O=parseInt(O,10),10===(B=parseInt(B,10))&&(x=p),Y=Y.split(" "),te=parseInt(te,10),W=parseInt(W,10);var z=u.formatting.bagpipes;z&&(x=71);var L=[];if(u.formatting.midi){var P=u.formatting.midi;P.program&&P.program.length>0&&(x=P.program[0],P.program.length>1&&(x=P.program[1],B=P.program[0]),j=!0),P.transpose&&(O=P.transpose[0]),P.channel&&(B=P.channel[0],j=!0),P.drum&&(Y=P.drum),P.drumbars&&(te=P.drumbars[0]),P.drumon&&(q=!0),10===B&&(x=p),P.beat&&L.push({el_type:"beat",beats:P.beat}),P.nobeataccents&&L.push({el_type:"beataccents",value:!1})}S=v.qpm?parseInt(v.qpm,10):u.metaText.tempo?y(u.metaText.tempo,u.getBeatLength()):v.defaultQpm?v.defaultQpm:180;var $=[];z&&$.push({el_type:"bagpipes"}),$.push({el_type:"instrument",program:x}),B&&$.push({el_type:"channel",channel:B}),O&&$.push({el_type:"transpose",transpose:O}),$.push({el_type:"tempo",qpm:S});for(var Q=0;Q=0?vt="pppp":gt.decoration.indexOf("ppp")>=0?vt="ppp":gt.decoration.indexOf("pp")>=0?vt="pp":gt.decoration.indexOf("p")>=0?vt="p":gt.decoration.indexOf("mp")>=0?vt="mp":gt.decoration.indexOf("mf")>=0?vt="mf":gt.decoration.indexOf("f")>=0?vt="f":gt.decoration.indexOf("ff")>=0?vt="ff":gt.decoration.indexOf("fff")>=0?vt="fff":gt.decoration.indexOf("ffff")>=0&&(vt="ffff"),vt&&(se=Jn[vt].slice(0),T[Be].push({el_type:"beat",beats:se.slice(0)}),R[Re]=!1,F[Re]=!1),gt.decoration.indexOf("crescendo(")>=0){var Mi=b(ut,fe,"crescendo)"),Wi=Math.min(127,se[0]+50),Ot=c(ut,fe+Mi+1,Object.keys(Jn));Ot&&(Wi=Jn[Ot][0]),R[Re]=Mi>0&&Math.floor((Wi-se[0])/Mi),F[Re]=!1}else if(gt.decoration.indexOf("crescendo)")>=0)R[Re]=!1;else if(gt.decoration.indexOf("diminuendo(")>=0){var Dt=b(ut,fe,"diminuendo)"),_i=Math.max(15,se[0]-50),ua=c(ut,fe+Dt+1,Object.keys(Jn));ua&&(_i=Jn[ua][0]),R[Re]=!1,F[Re]=Dt>0&&Math.floor((_i-se[0])/Dt)}else gt.decoration.indexOf("diminuendo)")>=0&&(F[Re]=!1)};for(var qe=et.staff,Be=0,$e=0;$e=0?T[Be].push({el_type:"transpose",transpose:-12}):st.clef.type.indexOf("+8")>=0&&T[Be].push({el_type:"transpose",transpose:12})),u.formatting.midi&&u.formatting.midi.drumoff&&(T[Be].push({el_type:"bar"}),T[Be].push({el_type:"drum",params:{pattern:"",on:!1}}));var _n=0,kt=0,Rt=0,yn=0;se=[105,95,85,1];for(var fe=0;fe=0?T[Be].push({el_type:"transpose",transpose:-12}):ce.type.indexOf("+8")>=0&&T[Be].push({el_type:"transpose",transpose:12}));break;case"tempo":S=y(ce,u.getBeatLength()),T[Be].push({el_type:"tempo",qpm:S,timing:K[Be]}),J[""+K[Be]]={el_type:"tempo",qpm:S,timing:K[Be]};break;case"bar":_n>0&&T[Be].push({el_type:"bar"}),Ni(ce),_n=0;var tt="1"===ce.startEnding,Ct="bar_left_repeat"===ce.type||"bar_dbl_repeat"===ce.type||"bar_right_repeat"===ce.type;if("bar_right_repeat"===ce.type||"bar_dbl_repeat"===ce.type){var rt=ie[Be];rt||(rt=0);var Ft=ye[Be];Ft||(Ft=T[Be].length);for(var Pt=rt;Pt=0&&B!==v[""+Y.timing].qpm&&(B=v[""+Y.timing].qpm,"tempo"===Y.el_type?(Y.qpm=v[""+Y.timing].qpm,j++):(u[x].splice(j,0,{el_type:"tempo",qpm:v[""+Y.timing].qpm,timing:Y.timing}),j+=2))}}(T,J),W)for(var Dr=u.getPickupLength(),Ln=0;LnTn;)Tn++;if(T[Ln].length>Tn)for(Ae=0;Ae0&&T[0].length>0&&(T[0][0].pickupLength=u.getPickupLength()),T}})(),Z.exports=A},9938:(Z,H,M)=>{var A=M(5921);Z.exports=function I(){return window.abcjsAudioContext||A(),window.abcjsAudioContext}},6793:Z=>{Z.exports=function H(M){return Math.pow(2,M/1200)}},9849:(Z,H,M)=>{var A=M(7657);Z.exports=function(D){for(var p=[],b=0;b0){var E=y.gap?y.gap:0,g=y.duration;E=Math.min(E,2*g/3);var l={pitch:y.pitch,instrument:f,start:Math.round(1e6*y.start)/1e6,end:Math.round(1e6*(y.start+g-E))/1e6,volume:y.volume};y.startChar&&(l.startChar=y.startChar),y.endChar&&(l.endChar=y.endChar),y.style&&(l.style=y.style),y.cents&&(l.cents=y.cents),p[_].push(l)}break;case"program":f=A[y.instrument];break;case"text":break;default:console.log("Unhandled midi event",y)}})}),p}},8720:(Z,H,M)=>{var A=M(4053),I=M(5921),D=M(9938),p=M(5339),b=M(4413),c=M(2712),f=M(8109),m=M(5808),_=M(1208);function g(w,u,v,S,x){var O=!0;if(D()?O="suspended"===D().state:I(),!A())throw{status:"NotSupported",message:"This browser does not support audio."};(O||x)&&v&&v.classList.add("abcjs-loading"),O?D().resume().then(function(){S?S().then(function(B){l(w,u,v,x)}):l(w,u,v,x)}):l(w,u,v,x)}function l(w,u,v,S){S?w(u).then(function(){v&&v.classList.remove("abcjs-loading")}):(w(u),v&&v.classList.remove("abcjs-loading"))}Z.exports=function y(w,u){var v=this;if("string"==typeof w){var S=w;if(!(w=document.querySelector(S)))throw new Error('Cannot find element "'+S+'" in the DOM.')}else if(!(w instanceof HTMLElement))throw new Error("The first parameter must be a valid element or selector in the DOM.");if(v.parent=w,v.options={},u&&(v.options=p.clone(u)),v.options.ac&&I(v.options.ac),function E(w,u){var Y='
\n';if(u.loopHandler){var te=u.repeatTitle?u.repeatTitle:"Click to toggle play once/repeat.";Y+='\n"}if(u.restartHandler){var q=u.restartTitle?u.restartTitle:"Click to go to beginning.";Y+='\n"}if(u.playHandler||u.playPromiseHandler){var U=u.playTitle?u.playTitle:"Click to play/pause.";Y+='\n"}if(u.progressHandler){var z=u.randomTitle?u.randomTitle:"Click to change the playback position.";Y+='\n'}if(!1!==u.hasClock&&(Y+='\n'),u.warpHandler){var P=u.warpTitle?u.warpTitle:"Change the playback speed.";Y+=' ( '+(u.bpm?u.bpm:"BPM")+")\n"}Y+='
CSS required: load abcjs-audio.css
',w.innerHTML=Y+="
\n"}(v.parent,v.options),function h(w){var u=!!w.options.loopHandler,v=!!w.options.restartHandler,S=!!w.options.playHandler||!!w.options.playPromiseHandler,x=!!w.options.progressHandler,O=!!w.options.warpHandler,B=w.parent.querySelector(".abcjs-midi-start");u&&w.parent.querySelector(".abcjs-midi-loop").addEventListener("click",function(j){g(w.options.loopHandler,j,B,w.options.afterResume)}),v&&w.parent.querySelector(".abcjs-midi-reset").addEventListener("click",function(j){g(w.options.restartHandler,j,B,w.options.afterResume)}),S&&B.addEventListener("click",function(j){g(w.options.playPromiseHandler||w.options.playHandler,j,B,w.options.afterResume,!!w.options.playPromiseHandler)}),x&&w.parent.querySelector(".abcjs-midi-progress-background").addEventListener("click",function(j){g(w.options.progressHandler,j,B,w.options.afterResume)}),O&&w.parent.querySelector(".abcjs-midi-tempo").addEventListener("change",function(j){g(w.options.warpHandler,j,B,w.options.afterResume)})}(v),v.disable=function(O){var B=v.parent.querySelector(".abcjs-inline-audio");O?B.classList.add("abcjs-disabled"):B.classList.remove("abcjs-disabled")},v.setWarp=function(O,B){v.parent.querySelector(".abcjs-midi-tempo").value=Math.round(B),v.setTempo(O)},v.setTempo=function(O){var B=v.parent.querySelector(".abcjs-midi-current-tempo");B&&(B.innerHTML=Math.round(O))},v.resetAll=function(){for(var O=v.parent.querySelectorAll(".abcjs-pushed"),B=0;B{var A=M(9443),I=M(9849),D=M(5921),p=M(9938),b=M(4053),c=M(7977),f=M(7657),m=M(6247),_=M(8637),y=M(3627),E="MIDI is not supported in this browser.",g="https://paulrosen.github.io/midi-js-soundfonts/abcjs/",l="https://paulrosen.github.io/midi-js-soundfonts/FluidR3_GM/";Z.exports=function w(){var u=this;u.audioBufferPossible=void 0,u.directSource=[],u.startTimeSec=void 0,u.pausedTimeSec=void 0,u.audioBuffers=[],u.duration=void 0,u.isRunning=!1,u.init=function(S){S||(S={}),D(S.audioContext);var x=p().currentTime;if(u.debugCallback=S.debugCallback,u.debugCallback&&u.debugCallback("init called"),u.audioBufferPossible=u._deviceCapable(),!u.audioBufferPossible)return Promise.reject({status:"NotSupported",message:E});var O=S.options?S.options:{};u.soundFontUrl=O.soundFontUrl?O.soundFontUrl:l,"/"!==u.soundFontUrl[u.soundFontUrl.length-1]&&(u.soundFontUrl+="/"),u.soundFontVolumeMultiplier=O.soundFontVolumeMultiplier||0===O.soundFontVolumeMultiplier?O.soundFontVolumeMultiplier:u.soundFontUrl===l||"https://paulrosen.github.io/midi-js-soundfonts/MusyngKite/"===u.soundFontUrl?3:u.soundFontUrl===g?.4:1,u.programOffsets=O.programOffsets?O.programOffsets:u.soundFontUrl===g?{bright_acoustic_piano:20,honkytonk_piano:20,electric_piano_1:30,electric_piano_2:30,harpsichord:40,clavinet:20,celesta:20,glockenspiel:40,vibraphone:30,marimba:35,xylophone:30,tubular_bells:35,dulcimer:30,drawbar_organ:20,percussive_organ:25,rock_organ:20,church_organ:40,reed_organ:40,accordion:40,harmonica:40,acoustic_guitar_nylon:20,acoustic_guitar_steel:30,electric_guitar_jazz:25,electric_guitar_clean:15,electric_guitar_muted:35,overdriven_guitar:25,distortion_guitar:20,guitar_harmonics:30,electric_bass_finger:15,electric_bass_pick:30,fretless_bass:40,violin:105,viola:50,cello:40,contrabass:60,trumpet:10,trombone:90,alto_sax:20,tenor_sax:20,clarinet:20,flute:50,banjo:50,woodblock:20}:{};var B=void 0!==O.fadeLength?parseInt(O.fadeLength,10):NaN;if(u.fadeLength=isNaN(B)?200:B,B=void 0!==O.noteEnd?parseInt(O.noteEnd,10):NaN,u.noteEnd=isNaN(B)?0:B,u.pan=O.pan,u.meterSize=1,S.visualObj)u.flattened=S.visualObj.setUpAudio(O),S.visualObj.getMeterFraction().den&&(u.meterSize=S.visualObj.getMeterFraction().num/S.visualObj.getMeterFraction().den);else{if(!S.sequence)return Promise.reject(new Error("Must pass in either a visualObj or a sequence"));u.flattened=S.sequence}u.millisecondsPerMeasure=S.millisecondsPerMeasure?S.millisecondsPerMeasure:S.visualObj?S.visualObj.millisecondsPerMeasure(u.flattened.tempo):1e3,u.beatsPerMeasure=S.visualObj?S.visualObj.getBeatsPerMeasure():4,u.sequenceCallback=O.sequenceCallback,u.callbackContext=O.callbackContext,u.onEnded=O.onEnded;var Y={},te=[],W=[],q=f[0];u.flattened.tracks.forEach(function(L){L.forEach(function(P){if("program"===P.cmd&&f[P.instrument]&&(q=f[P.instrument]),void 0!==P.pitch){var $=P.pitch,Q=c[$];if(Q)if(Y[q]||(Y[q]={}),y[q]&&y[q][Q]){var T=q+":"+Q;te.indexOf(T)<0&&te.push(T)}else Y[q][Q]=!0;else{var R=q+":"+Q;console.log("Can't find note: ",$,R),W.indexOf(R)<0&&W.push(R)}}})}),u.debugCallback&&u.debugCallback("note gathering time = "+Math.floor(1e3*(p().currentTime-x))+"ms"),x=p().currentTime;var ee=[];Object.keys(Y).forEach(function(L){Object.keys(Y[L]).forEach(function(P){ee.push({instrument:L,note:P})})}),u.debugCallback&&u.debugCallback("notes "+JSON.stringify(ee));for(var U=[],z=0;z0){if(u.debugCallback&&u.debugCallback("pending "+JSON.stringify(q)),B?B*=2:B=50,B<9e4)return new Promise(function($,Q){setTimeout(function(){var T=[];for(U=0;U1&&(j=1),O.push(j)}else O.push(0);return O}var Y=parseFloat(x);if(Y*(S-1)>2)return null;for(var te=S%2==0,W=te?0-Y/2:0,q=W+Y,ee=0;eeQ?te[Q]:0;$.forEach(function(R){var F=R.instrument+":"+R.pitch+":"+R.volume+":"+Math.round(1e3*(R.end-R.start))/1e3+":"+T+":"+B+":"+(R.cents?R.cents:0);u.debugCallback&&u.debugCallback("noteMapTrack "+F),W[F]||(W[F]=[]),W[F].push(R.start)})});for(var q=[],ee=p().createBuffer(2,j,p().sampleRate),U=0;U0?$.audioBuffers[0].duration:0;return{status:p().state,duration:Q}}u.audioBuffers=[ee],u.debugCallback&&(u.debugCallback("sampleRate = "+p().sampleRate),u.debugCallback("totalSamples = "+j),u.debugCallback("creationTime = "+Math.floor(1e3*(p().currentTime-O))+"ms")),Promise.all(q).then(function(){"suspended"===p().state?p().resume().then(function(){x(P(u))}):"interrupted"===p().state?p().suspend().then(function(){p().resume().then(function(){x(P(u))})}):x(P(u))})})):Promise.reject(new Error(E))},u.start=function(){if(!u.audioBufferPossible)throw new Error(E);u.debugCallback&&u.debugCallback("start called");var S=u.pausedTimeSec?u.pausedTimeSec:0;u._kickOffSound(S),u.startTimeSec=p().currentTime-S,u.pausedTimeSec=void 0,u.debugCallback&&u.debugCallback("MIDI STARTED",u.startTimeSec)},u.pause=function(){if(!u.audioBufferPossible)throw new Error(E);return u.debugCallback&&u.debugCallback("pause called"),u.pausedTimeSec=u.stop(),u.pausedTimeSec},u.resume=function(){u.start()},u.seek=function(S,x){var O;switch(x){case"seconds":O=S;break;case"beats":O=S*u.millisecondsPerMeasure/u.beatsPerMeasure/1e3;break;default:O=(u.duration-u.fadeLength/1e3)*S}if(!u.audioBufferPossible)throw new Error(E);u.debugCallback&&u.debugCallback("seek called sec="+O),u.isRunning?(u.stop(),u._kickOffSound(O)):u.pausedTimeSec=O,u.pausedTimeSec=O},u.stop=function(){return u.isRunning=!1,u.pausedTimeSec=void 0,u.directSource.forEach(function(x){try{x.stop()}catch(O){console.log("direct source didn't stop:",O)}}),u.directSource=[],p().currentTime-u.startTimeSec},u.finished=function(){u.startTimeSec=void 0,u.pausedTimeSec=void 0,u.isRunning=!1},u.download=function(){return m(u)},u.getAudioBuffer=function(){return u.audioBuffers[0]},u._deviceCapable=function(){return!!b()||(console.warn(E),u.debugCallback&&u.debugCallback(E),!1)},u._kickOffSound=function(S){u.isRunning=!0,u.directSource=[],u.audioBuffers.forEach(function(x,O){u.directSource[O]=p().createBufferSource(),u.directSource[O].buffer=x,u.directSource[O].connect(p().destination)}),u.directSource.forEach(function(x){x.start(0,S)}),u.onEnded&&(u.directSource[0].onended=function(){u.onEnded(u.callbackContext)})}}},6247:Z=>{Z.exports=function(A){return window.URL.createObjectURL(function M(A){var m,_,I=A[0],D=I.numberOfChannels,p=I.length*D*2+44,b=new ArrayBuffer(p),c=new DataView(b),f=[],y=0,E=0;for(l(1179011410),l(p-8),l(1163280727),l(544501094),l(16),g(1),g(D),l(I.sampleRate),l(2*I.sampleRate*D),g(2*D),g(16),l(1635017060),l(p-E-4),m=0;m{var A=M(7927),I=M(3538);Z.exports=function(c,f){var m={};if(f)for(var _ in f)f.hasOwnProperty(_)&&(m[_]=f[_]);function y(E,g,l){var h=I(g,m);switch(m.midiOutputType){case"encoded":return h;case"binary":var w=h.replace("data:audio/midi,","");w=(w=w.replace(/MThd/g,"%4d%54%68%64")).replace(/MTrk/g,"%4d%54%72%6b");for(var u=new ArrayBuffer(w.length/3),v=new Uint8Array(u),S=0;S';f.preTextDownload&&(E+=f.preTextDownload);var l,g=c.metaText&&c.metaText.title?c.metaText.title:"Untitled";return l=f.downloadLabel&&function p(c){return c&&"[object Function]"==={}.toString.call(c)}(f.downloadLabel)?f.downloadLabel(c,_):f.downloadLabel?f.downloadLabel.replace(/%T/,g):'Download MIDI for "'+g+'"',g=g.toLowerCase().replace(/'/g,"").replace(/\W/g,"_").replace(/__/g,"_"),E+=''+l+"",f.postTextDownload&&(E+=f.postTextDownload),E+""}(g,m,h,l)}}return m.generateInline=!1,"string"==typeof c?A.renderEngine(y,"*",c,m):y(0,c,0)}},5808:Z=>{Z.exports='\n\n \n\n'},4413:Z=>{Z.exports='\n\n\t\n\t\n\t\n\t\n\n'},8109:Z=>{Z.exports='\n\n \n \n \n \n\n'},2712:Z=>{Z.exports='\n\n \n \n \n\n'},1208:Z=>{Z.exports='\n\n \n \n \n \n\n'},7657:Z=>{Z.exports=["acoustic_grand_piano","bright_acoustic_piano","electric_grand_piano","honkytonk_piano","electric_piano_1","electric_piano_2","harpsichord","clavinet","celesta","glockenspiel","music_box","vibraphone","marimba","xylophone","tubular_bells","dulcimer","drawbar_organ","percussive_organ","rock_organ","church_organ","reed_organ","accordion","harmonica","tango_accordion","acoustic_guitar_nylon","acoustic_guitar_steel","electric_guitar_jazz","electric_guitar_clean","electric_guitar_muted","overdriven_guitar","distortion_guitar","guitar_harmonics","acoustic_bass","electric_bass_finger","electric_bass_pick","fretless_bass","slap_bass_1","slap_bass_2","synth_bass_1","synth_bass_2","violin","viola","cello","contrabass","tremolo_strings","pizzicato_strings","orchestral_harp","timpani","string_ensemble_1","string_ensemble_2","synth_strings_1","synth_strings_2","choir_aahs","voice_oohs","synth_choir","orchestra_hit","trumpet","trombone","tuba","muted_trumpet","french_horn","brass_section","synth_brass_1","synth_brass_2","soprano_sax","alto_sax","tenor_sax","baritone_sax","oboe","english_horn","bassoon","clarinet","piccolo","flute","recorder","pan_flute","blown_bottle","shakuhachi","whistle","ocarina","lead_1_square","lead_2_sawtooth","lead_3_calliope","lead_4_chiff","lead_5_charang","lead_6_voice","lead_7_fifths","lead_8_bass_lead","pad_1_new_age","pad_2_warm","pad_3_polysynth","pad_4_choir","pad_5_bowed","pad_6_metallic","pad_7_halo","pad_8_sweep","fx_1_rain","fx_2_soundtrack","fx_3_crystal","fx_4_atmosphere","fx_5_brightness","fx_6_goblins","fx_7_echoes","fx_8_scifi","sitar","banjo","shamisen","koto","kalimba","bagpipe","fiddle","shanai","tinkle_bell","agogo","steel_drums","woodblock","taiko_drum","melodic_tom","synth_drum","reverse_cymbal","guitar_fret_noise","breath_noise","seashore","bird_tweet","telephone_ring","helicopter","applause","gunshot","percussion"]},9443:(Z,H,M)=>{var A=M(3627);Z.exports=function(D,p,b,c){A[p]||(A[p]={});var f=A[p];return f[b]||(f[b]=new Promise(function(m,_){var y=new XMLHttpRequest;let E=D+p+"-mp3/"+b+".mp3";y.open("GET",E,!0),y.responseType="arraybuffer",y.onload=function(){if(200===y.status){var l=c.decodeAudioData(y.response,function(h){m({instrument:p,name:b,status:"loaded",audioBuffer:h})},function(){_(Error("Can't decode sound at "+E))});l&&"function"==typeof l.catch&&l.catch(_)}else _(Error("Can't load sound at "+E+" status="+y.status))},y.onerror=function(){_(Error("Can't load sound at "+E))},y.send()}).catch(m=>{throw console.error("Didn't load note",p,b,":",m.message),m})),f[b]}},8167:Z=>{var H={__:-2,_:-1,"_/":-.5,"=":0,"":0,"^/":.5,"^":1,"^^":2},M=["C","-","D","-","E","F","-","G","-","A","-","B","c","-","d","-","e","f","-","g","-","a","-","b"];Z.exports={noteToMidi:function A(D){var p=D.match(/([_^\/]*)([ABCDEFGabcdefg])(,*)('*)/);if(p&&5===p.length){var b=H[p[1]];return 48+M.indexOf(p[2])+b+12*(p[4].length-p[3].length)}return 0},midiToNote:function I(D){D=parseInt(D,10);var p=Math.floor(D/12),b=D%12,c=M[b];if("-"===c&&(c="^"+M[b-1]),p>4)for(c=c.toLowerCase(),p-=5;p>0;)c+="'",p--;else for(;p<4;)c+=",",p++;return c}}},7977:Z=>{Z.exports={21:"A0",22:"Bb0",23:"B0",24:"C1",25:"Db1",26:"D1",27:"Eb1",28:"E1",29:"F1",30:"Gb1",31:"G1",32:"Ab1",33:"A1",34:"Bb1",35:"B1",36:"C2",37:"Db2",38:"D2",39:"Eb2",40:"E2",41:"F2",42:"Gb2",43:"G2",44:"Ab2",45:"A2",46:"Bb2",47:"B2",48:"C3",49:"Db3",50:"D3",51:"Eb3",52:"E3",53:"F3",54:"Gb3",55:"G3",56:"Ab3",57:"A3",58:"Bb3",59:"B3",60:"C4",61:"Db4",62:"D4",63:"Eb4",64:"E4",65:"F4",66:"Gb4",67:"G4",68:"Ab4",69:"A4",70:"Bb4",71:"B4",72:"C5",73:"Db5",74:"D5",75:"Eb5",76:"E5",77:"F5",78:"Gb5",79:"G5",80:"Ab5",81:"A5",82:"Bb5",83:"B5",84:"C6",85:"Db6",86:"D6",87:"Eb6",88:"E6",89:"F6",90:"Gb6",91:"G6",92:"Ab6",93:"A6",94:"Bb6",95:"B6",96:"C7",97:"Db7",98:"D7",99:"Eb7",100:"E7",101:"F7",102:"Gb7",103:"G7",104:"Ab7",105:"A7",106:"Bb7",107:"B7",108:"C8",109:"Db8",110:"D8",111:"Eb8",112:"E8",113:"F8",114:"Gb8",115:"G8",116:"Ab8",117:"A8",118:"Bb8",119:"B8",120:"C9",121:"Db9"}},6515:Z=>{var H={f0:"_C",n0:"=C",s0:"^C",x0:"C",f1:"_D",n1:"=D",s1:"^D",x1:"D",f2:"_E",n2:"=E",s2:"^E",x2:"E",f3:"_F",n3:"=F",s3:"^F",x3:"F",f4:"_G",n4:"=G",s4:"^G",x4:"G",f5:"_A",n5:"=A",s5:"^A",x5:"A",f6:"_B",n6:"=B",s6:"^B",x6:"B",f7:"_c",n7:"=c",s7:"^c",x7:"c",f8:"_d",n8:"=d",s8:"^d",x8:"d",f9:"_e",n9:"=e",s9:"^e",x9:"e",f10:"_f",n10:"=f",s10:"^f",x10:"f",f11:"_g",n11:"=g",s11:"^g",x11:"g",f12:"_a",n12:"=a",s12:"^a",x12:"a",f13:"_b",n13:"=b",s13:"^b",x13:"b",f14:"_c'",n14:"=c'",s14:"^c'",x14:"c'",f15:"_d'",n15:"=d'",s15:"^d'",x15:"d'",f16:"_e'",n16:"=e'",s16:"^e'",x16:"e'"};Z.exports=function M(A){return H[(A.accidental?A.accidental[0]:"x")+A.verticalPos]}},8637:(Z,H,M)=>{var A=M(3627),I=M(7977),D=M(6793),b=function(c,f,m){for(var _=0;_<2;_++)for(var y=f.getChannelData(_),E=c.getChannelData(_),g=0;g{var A=M(974),I=M(6142),D=M(9938);function b(c,f){var m=new I;return m.init({sequence:c,millisecondsPerMeasure:f}).then(function(){return m.prime()}).then(function(){return m.start(),Promise.resolve()})}Z.exports=function p(c,f,m){for(var _=new A,y=0;y{Z.exports=function H(M){if(M)window.abcjsAudioContext=M;else if(!window.abcjsAudioContext){var A=window.AudioContext||window.webkitAudioContext;if(!A)return!1;window.abcjsAudioContext=new A}return"suspended"!==window.abcjsAudioContext.state}},3627:Z=>{Z.exports={}},4053:(Z,H,M)=>{var A=M(9938);Z.exports=function I(){if(!window.Promise||!window.AudioContext&&!window.webkitAudioContext&&!navigator.mozAudioContext&&!navigator.msAudioContext)return!1;var D=A();return D?void 0!==D.resume:void 0}},6221:(Z,H,M)=>{var A=M(8720),I=M(6142),D=M(7233),p=M(9938);Z.exports=function b(){var c=this;c.warp=100,c.cursorControl=null,c.visualObj=null,c.timer=null,c.midiBuffer=null,c.options=null,c.currentTempo=null,c.control=null,c.isLooping=!1,c.isStarted=!1,c.isLoaded=!1,c.isLoading=!1,c.load=function(m,_,y){y||(y={}),c.control=new A(m,{loopHandler:y.displayLoop?c.toggleLoop:void 0,restartHandler:y.displayRestart?c.restart:void 0,playPromiseHandler:y.displayPlay?c.play:void 0,progressHandler:y.displayProgress?c.randomAccess:void 0,warpHandler:y.displayWarp?c.onWarp:void 0,afterResume:c.init}),c.cursorControl=_,c.disable(!0)},c.disable=function(m){c.control&&c.control.disable(m)},c.setTune=function(m,_,y){return c.visualObj=m,c.disable(!1),c.options=y,c.control&&(c.pause(),c.setProgress(0,1),c.control.resetAll(),c.restart(),c.isStarted=!1),c.isLooping=!1,_?c.go():Promise.resolve({status:"no-audio-context"})},c.go=function(){c.isLoading=!0;var _,m=100*c.visualObj.millisecondsPerMeasure()/c.warp;return c.currentTempo=Math.round(c.visualObj.getBeatsPerMeasure()/m*6e4),c.control&&c.control.setTempo(c.currentTempo),c.percent=0,c.midiBuffer||(c.midiBuffer=new I),p().resume().then(function(y){return c.midiBuffer.init({visualObj:c.visualObj,options:c.options,millisecondsPerMeasure:m})}).then(function(y){return _=y,c.midiBuffer.prime()}).then(function(){var y=16;return c.cursorControl&&void 0!==c.cursorControl.beatSubdivisions&&parseInt(c.cursorControl.beatSubdivisions,10)>=1&&parseInt(c.cursorControl.beatSubdivisions,10)<=64&&(y=parseInt(c.cursorControl.beatSubdivisions,10)),c.timer=new D(c.visualObj,{beatCallback:c.beatCallback,eventCallback:c.eventCallback,lineEndCallback:c.lineEndCallback,qpm:c.currentTempo,extraMeasuresAtBeginning:c.cursorControl?c.cursorControl.extraMeasuresAtBeginning:void 0,lineEndAnticipation:c.cursorControl?c.cursorControl.lineEndAnticipation:0,beatSubdivisions:y}),c.cursorControl&&c.cursorControl.onReady&&"function"==typeof c.cursorControl.onReady&&c.cursorControl.onReady(c),c.isLoaded=!0,c.isLoading=!1,Promise.resolve({status:"created",notesStatus:_})})},c.destroy=function(){c.timer&&(c.timer.reset(),c.timer.stop(),c.timer=null),c.midiBuffer&&(c.midiBuffer.stop(),c.midiBuffer=null),c.setProgress(0,1),c.control&&c.control.resetAll()},c.play=function(){return c.runWhenReady(c._play,void 0)},c.runWhenReady=function(m,_){return c.visualObj?c.isLoading?function f(m){return new Promise(function(_){setTimeout(_,m)})}(500).then(function(){return c.isLoading?c.runWhenReady(m,_):m(_)}):c.isLoaded?m(_):c.go().then(function(){return m(_)}):Promise.resolve({status:"loading"})},c._play=function(){return p().resume().then(function(){return c.isStarted=!c.isStarted,c.isStarted?(c.cursorControl&&c.cursorControl.onStart&&"function"==typeof c.cursorControl.onStart&&c.cursorControl.onStart(),c.midiBuffer.start(),c.timer.start(c.percent),c.control&&c.control.pushPlay(!0)):c.pause(),Promise.resolve({status:"ok"})})},c.pause=function(){c.timer&&(c.timer.pause(),c.midiBuffer.pause(),c.control&&c.control.pushPlay(!1))},c.toggleLoop=function(){c.isLooping=!c.isLooping,c.control&&c.control.pushLoop(c.isLooping)},c.restart=function(){c.timer&&(c.timer.setProgress(0),c.midiBuffer.seek(0))},c.randomAccess=function(m){return c.runWhenReady(c._randomAccess,m)},c._randomAccess=function(m){var _=m.target.classList.contains("abcjs-midi-progress-indicator")?m.target.parentNode:m.target,y=(m.x-_.offsetLeft)/_.offsetWidth;return y<0&&(y=0),y>1&&(y=1),c.seek(y),Promise.resolve({status:"ok"})},c.seek=function(m,_){c.timer&&c.midiBuffer&&(c.timer.setProgress(m,_),c.midiBuffer.seek(m,_))},c.setWarp=function(m){if(parseInt(m,10)>0){c.warp=parseInt(m,10);var _=c.isStarted,y=c.percent;return c.destroy(),c.isStarted=!1,c.go().then(function(){return c.setProgress(y,1e3*c.midiBuffer.duration),c.control&&c.control.setWarp(c.currentTempo,c.warp),_?c.play().then(function(){return c.seek(y),Promise.resolve()}):(c.seek(y),Promise.resolve())})}return Promise.resolve()},c.onWarp=function(m){return c.setWarp(m.target.value)},c.setProgress=function(m,_){c.percent=m,c.control&&c.control.setProgress(m,_)},c.finished=function(){if(c.timer.reset(),c.isLooping)return c.timer.start(0),c.midiBuffer.finished(),c.midiBuffer.start(),"continue";c.timer.stop(),c.isStarted&&(c.control&&c.control.pushPlay(!1),c.isStarted=!1,c.midiBuffer.finished(),c.cursorControl&&c.cursorControl.onFinished&&"function"==typeof c.cursorControl.onFinished&&c.cursorControl.onFinished(),c.setProgress(0,1))},c.beatCallback=function(m,_,y,E){c.setProgress(m/_,y),c.cursorControl&&c.cursorControl.onBeat&&"function"==typeof c.cursorControl.onBeat&&c.cursorControl.onBeat(m,_,y,E)},c.eventCallback=function(m){if(!m)return c.finished();c.cursorControl&&c.cursorControl.onEvent&&"function"==typeof c.cursorControl.onEvent&&c.cursorControl.onEvent(m)},c.lineEndCallback=function(m,_){c.cursorControl&&c.cursorControl.onLineEnd&&"function"==typeof c.cursorControl.onLineEnd&&c.cursorControl.onLineEnd(m,_)},c.getUrl=function(){return c.midiBuffer.download()},c.download=function(m){var _=c.getUrl(),y=document.createElement("a");document.body.appendChild(y),y.setAttribute("style","display: none;"),y.href=_,y.download=m||"output.wav",y.click(),window.URL.revokeObjectURL(_),document.body.removeChild(y)}}},974:Z=>{Z.exports=function(){var M=this;M.tracks=[],M.totalDuration=0,M.currentInstrument=[],M.starts=[],M.addTrack=function(){return M.tracks.push([]),M.currentInstrument.push(0),M.starts.push(0),M.tracks.length-1},M.setInstrument=function(A,I){M.tracks[A].push({channel:0,cmd:"program",instrument:I}),M.currentInstrument[A]=I},M.appendNote=function(A,I,D,p,b){var c={cmd:"note",duration:D,gap:0,instrument:M.currentInstrument[A],pitch:I,start:M.starts[A],volume:p};b&&(c.cents=b),M.tracks[A].push(c),M.starts[A]+=D,M.totalDuration=Math.max(M.totalDuration,M.starts[A])}}},3115:(Z,H,M)=>{var A=M(5952);function I(D){this.tuning=D._super.params.tuning,this.tuning||(this.tuning=["E,","A,","D","G","B","e"]),D.tuning=this.tuning,this.strings=new A(D)}I.prototype.notesToNumber=function(D,p){return this.strings.notesToNumber(D,p)},I.prototype.stringToPitch=function(D){return this.strings.stringToPitch(D)},Z.exports=I},3597:(Z,H,M)=>{var A=M(1832),I=M(1911),D=M(1090),p=M(3115);function b(){}b.prototype.init=function(f,m,_){var y=new I(f,m,_);this._super=y,this.abcTune=f,this.linePitch=3,this.nbLines=6,this.isTabBig=!0,this.capo=_.capo,this.transpose=_.visualTranspose,this.tablature=new A(this.nbLines,this.linePitch);var E=new p(this);this.semantics=E},b.prototype.render=function(f,m,_){this._super.inError||this.tablature.bypass(m)||new D(this,f,m,_).doLayout()},Z.exports=function(){return{name:"GuitarTab",tablature:b}}},5952:(Z,H,M)=>{const{noteToMidi:A}=M(8167);var I=M(8147),D=M(6249);function _(l,h,w,u,v){var S=l.strings;h.checkKeyAccidentals(l.accidentals,l.measureAccidentals),u&&(S=u);var x=h.emitNoAccidentals(),O=S[w].indexOf(x),B=h.acc;if(-1!=O){if(u&&(O+=v),(h.isFlat||-1==h.acc)&&0==O){var j=h.getAccidentalEquiv();O=S[++w].indexOf(j.emit()),B=0}return{num:O+B,str:w,note:h}}return null}function y(l,h){var w;(h.isAltered||h.natural)&&(h.isFlat?w=h.isDouble?"__":"_":h.isSharp?w=h.isDouble?"^^":"^":h.natural&&(w="="),l.measureAccidentals[h.name.toUpperCase()]=w);for(var u=l.stringPitches.length-1;u>=0;u--)if(h.pitch+h.pitchAltered>=l.stringPitches[u]){var v=h.pitch+h.pitchAltered-l.stringPitches[u];return"^"===h.quarter?v-=.5:"v"===h.quarter&&(v+=.5),{num:Math.round(v),str:l.stringPitches.length-1-u,note:h}}return{num:"?",str:l.stringPitches.length-1,note:h}}function E(l,h){l.push({num:"?",str:0,note:h}),l.error=h.emit()+": unexpected note for instrument"}function g(l){var h=l.tuning,w=l.capo,u=l._super.params.highestNote;this.linePitch=l.linePitch,this.highestNote="a'",u&&(this.highestNote=u),this.measureAccidentals={},this.capo=0,w&&(this.capo=parseInt(w,10)),this.transpose=l.transpose?l.transpose:0,this.tuning=h,this.stringPitches=[];for(var v=0;v0&&(this.capoTuning=function p(l){var h=null,w=l.tuning;if(l.capo>0){h=[];for(var u=0;u0&&(w=l.capoTuning);for(var u=w.length-1,v=0;v1?(S=function m(l,h){for(var w=[],u=0;u0&&(v+=" capo:"+l.capo),w=w.replace("%T",v)),w}return""},Z.exports=g},1832:Z=>{function H(M,A){this.numLines=M,this.lineSpace=A,this.verticalSize=this.numLines*this.lineSpace,this.bar={pitch:3,pitch2:A*M,height:5}}H.prototype.bypass=function(M){var A=M.staffGroup.voices;return!!(A.length>0&&A[0].isPercussion)},H.prototype.setRelative=function(M,A,I){switch(M.type){case"bar":A.pitch=this.bar.pitch,A.pitch2=this.bar.pitch2,A.height=this.height;break;case"symbol":var D=this.bar.pitch2/2;if("dots.dot"==M.name)return I?(A.pitch=D,!1):(A.pitch=D+this.lineSpace,!0)}return I},Z.exports=H},8147:(Z,H,M)=>{var{noteToMidi:A,midiToNote:I}=M(8167);function p(c,f){var m=A(c);f&&(m+=f);var g,_=I(m),y=!1,E=!1,l=null,h=null,w=!1,u=0;c.startsWith("_")?(y=!0,u=-1,"/"==c[1]?(y=!1,h="v",u=0):"_"==c[1]&&(w=!0,u-=1)):c.startsWith("^")?(E=!0,u=1,"/"==c[1]?(E=!1,h="^",u=0):"^"==c[1]&&(w=!0,u+=1)):c.startsWith("=")&&(l=!0,u=0),((g=y||E||null!=h)||l)&&(_=c.slice(null!=h||w?2:1));var v=(_.match(/,/g)||[]).length,S=(_.match(/'/g)||[]).length;this.pitch=m,this.pitchAltered=0,this.name=_,this.acc=u,this.isSharp=E,this.isKeySharp=!1,this.isDouble=w,this.isAltered=g,this.isFlat=y,this.isKeyFlat=!1,this.natural=l,this.quarter=h,this.isLower=this.name==this.name.toLowerCase(),this.name=this.name[0].toUpperCase(),this.hasComma=v,this.isQuoted=S}p.prototype.sameNoteAs=function(c){return c.pitch===this.pitch},p.prototype.isLowerThan=function(c){return c.pitch>this.pitch},p.prototype.checkKeyAccidentals=function(c,f){if(!this.isAltered&&!this.natural)if(f[this.name.toUpperCase()])switch(f[this.name.toUpperCase()]){case"__":return this.acc=-2,void(this.pitchAltered=-2);case"_":return this.acc=-1,void(this.pitchAltered=-1);case"=":return this.acc=0,void(this.pitchAltered=0);case"^":return this.acc=1,void(this.pitchAltered=1);case"^^":return this.acc=2,void(this.pitchAltered=2)}else if(c)for(var m=this.name,_=0;_{var A=M(8147),I=A.notes;function D(p,b){this.fromN=new A.TabNote(p),this.toN=new A.TabNote(b)}D.prototype.build=function(){var p=this.fromN,b=this.toN;if(b.isLowerThan(p)){var c=p.emit();return{error:"Invalid string Instrument tuning : "+b.emit()+" string lower than "+c+" string"}}var m=[],_=I.indexOf(p.name),y=I.indexOf(b.name);if(-1==_||-1==y)return m;for(var E=!1;!E;)m.push(p.emit()),(p=p.nextNote()).sameNoteAs(b)&&(E=!0);return m},Z.exports=D},7374:(Z,H,M)=>{var A=M(1832),I=M(1911),D=M(1090),p=M(4424);function b(){}b.prototype.init=function(f,m,_){var y=new I(f,m,_);this.abcTune=f,this._super=y,this.linePitch=3,this.nbLines=4,this.isTabBig=!1,this.capo=_.capo,this.transpose=_.visualTranspose,this.tablature=new A(this.nbLines,this.linePitch);var E=new p(this);this.semantics=E},b.prototype.render=function(f,m,_){this._super.inError||this.tablature.bypass(m)||new D(this,f,m,_).doLayout()},Z.exports=function(){return{name:"ViolinTab",tablature:b}}},4424:(Z,H,M)=>{var A=M(5952);function I(D){this.tuning=D._super.params.tuning,this.tuning||(this.tuning=["G,","D","A","e"]),D.tuning=this.tuning,this.strings=new A(D)}I.prototype.notesToNumber=function(D,p){return this.strings.notesToNumber(D,p)},I.prototype.stringToPitch=function(D){return this.strings.stringToPitch(D)},Z.exports=I},6605:(Z,H,M)=>{var A=M(6147),I=M(2291);function D(u){return null!=u&&u.constructor===Object}function p(u,v){for(var S in v)v.hasOwnProperty(S)&&(Array.isArray(v[S])||D(v[S])||(u[S]=v[S]))}function b(u){var v=new A("",0,0,"",0);return p(v,u),v.top=0,v.bottom=-1,u.abcelem&&(v.abcelem={},p(v.abcelem,u.abcelem),"note"===v.abcelem.el_type&&(v.abcelem.el_type="tabNumber")),u.cloned=v,v}function c(u,v){var S=b(u);if(v)for(var x=u.children,O=!0,B=0;B=0){if(S===v)return u.extra[x].x+u.extra[x].w/2;S++}return-1}function l(u){if(u.abcelem){var v=u.abcelem;if(v.rest)return v.gracenotes}return null}function h(u,v,S){var x=u.semantics.notesToNumber(v,S);return x.error?(u._super.setError(x.error),x):(x.graces&&x.notes&&(x.notes[x.notes.length-1].graces=x.graces),x)}function w(u,v,S,x,O){for(var B=0;B=0&&(u.semantics.strings.clefTranspose=-12),U.abcelem.type.indexOf("+8")>=0&&(u.semantics.strings.clefTranspose=12)),U.type){case"staff-extra key-signature":this.accidentals=U.abcelem.accidentals,u.semantics.strings.accidentals=this.accidentals;break;case"bar":u.semantics.strings.measureAccidentals={};var L=!1;ee===Y.children.length-1&&(L=!0);var P=c(U,u);if(P.abcelem.barNumber){delete P.abcelem.barNumber;for(var $=0;$0&&(q.abselem=T,S.push(q),te.children.push(T))}}},Z.exports=_},1911:Z=>{function H(M,A,I){this.tune=M,this.params=I,this.tuneNumber=A,this.inError=!1}H.prototype.setError=function(M){var A=this.tune;M&&(this.error=M,this.inError=!0,A.warnings?A.warnings.push(M):A.warnings=[M])},Z.exports=H},1090:(Z,H,M)=>{var A=M(3419),I=M(6605),D=M(2866);function c(u,v){var O=u.renderer.controller.getTextSize,B=u.plugin.semantics.strings.tabInfos(u.plugin),j=O.calc(B,"tablabelfont","text instrumentname");return v.tabNameInfos={textSize:j,name:B},j.height}function f(u,v,S,x){this.renderer=v,this.plugin=u,this.line=S,this.absolutes=new I,this.staffIndex=x,this.tabStaff={clef:{type:"TAB"}},this.tabSize=u.linePitch*u.nbLines}function m(u,v){return!(!v[u].isTabStaff||u!==v.length-1&&v[u+1].isTabStaff)}function y(u,v){for(var S=v;S>=0;S--)if(!u[S].isTabStaff)return S;return-1}function w(u,v){return"clef"===u[v].children[0].abcelem.el_type?null:0==v?"none":u[v-1].children[0]}f.prototype.doLayout=function(){var u=this.line.staff;if(u){var v=u[0];if(v&&v.clef&&0==v.clef.stafflines)return void this.plugin._super.setError("No tablatures when stafflines=0");u.splice(u.length,0,this.tabStaff)}var S=this.line.staffGroup,x=S.voices,B=function b(u){for(var v=0,S=0;Sv&&(v=x.specialY.lyricHeightBelow)}return v}(x[0]),te=S.staffs[this.staffIndex],W=this.tabSize+3-te.bottom-B;te.isTabStaff&&(W=te.top);var q={bottom:-1,isTabStaff:!0,specialY:{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0},lines:this.plugin.nbLines,linePitch:this.plugin.linePitch,dy:.15,top:W},ee=function l(u,v){for(var S=u.staffIndex,x=0,O=0,j=0;;){if(!v[x])return-1;if(v[x].isTabStaff||(j=v[x].voices.length),v[x].isTabStaff){if(O++,m(x,v)&&O=S&&(x+1==v.length||!v[x+1].isTabStaff))return x+1;if(++x>v.length)return-1}}(this,S.staffs);if(-1!==ee){q.parentIndex=ee-1,S.staffs.splice(ee,0,q),S.height+=this.tabSize+3;var U=function h(u,v){for(var S=v;S>=0;S--)if(!u[S].isTabStaff)return u[S];return null}(S.staffs,ee),ne=1;(function g(u,v){return 1===function _(u){for(var v=0,S=0;S1})(S.staffs,U)&&(ne=U.voices.length),this.tabStaff.voices=[];for(var z=0;z0&&(L.duplicate=!0);var P=c(this,L)/D.STEP;P=Math.max(P,1),S.staffs[this.staffIndex].top+=P,S.height+=P*D.STEP,L.staff=q,x.splice(x.length,0,L);var $=w(x,z+this.staffIndex);this.tabStaff.voices[z]=[],this.absolutes.build(this.plugin,x,this.tabStaff.voices[z],z,this.staffIndex,$)}!function E(u){for(var v=0;v{var A=M(6147),I=M(1658),D=M(4588),p=M(9552),b=M(8778),c=M(1691),f=M(8437),m=M(5419),_=M(8312),y=M(6547),E=M(2291),g=M(2866),l=M(1233),h=M(8412),w=M(9751),u=M(3864),v=M(3419),S=M(6976),x=M(6515),O=M(5339),B=function(L){var P=0;return L.duration&&(P=L.duration),P},j=!1,Y={rest:{0:"rests.whole",1:"rests.half",2:"rests.quarter",3:"rests.8th",4:"rests.16th",5:"rests.32nd",6:"rests.64th",7:"rests.128th",multi:"rests.multimeasure"},note:{"-1":"noteheads.dbl",0:"noteheads.whole",1:"noteheads.half",2:"noteheads.quarter",3:"noteheads.quarter",4:"noteheads.quarter",5:"noteheads.quarter",6:"noteheads.quarter",7:"noteheads.quarter",nostem:"noteheads.quarter"},rhythm:{"-1":"noteheads.slash.whole",0:"noteheads.slash.whole",1:"noteheads.slash.whole",2:"noteheads.slash.quarter",3:"noteheads.slash.quarter",4:"noteheads.slash.quarter",5:"noteheads.slash.quarter",6:"noteheads.slash.quarter",7:"noteheads.slash.quarter",nostem:"noteheads.slash.nostem"},x:{"-1":"noteheads.indeterminate",0:"noteheads.indeterminate",1:"noteheads.indeterminate",2:"noteheads.indeterminate",3:"noteheads.indeterminate",4:"noteheads.indeterminate",5:"noteheads.indeterminate",6:"noteheads.indeterminate",7:"noteheads.indeterminate",nostem:"noteheads.indeterminate"},harmonic:{"-1":"noteheads.harmonic.quarter",0:"noteheads.harmonic.quarter",1:"noteheads.harmonic.quarter",2:"noteheads.harmonic.quarter",3:"noteheads.harmonic.quarter",4:"noteheads.harmonic.quarter",5:"noteheads.harmonic.quarter",6:"noteheads.harmonic.quarter",7:"noteheads.harmonic.quarter",nostem:"noteheads.harmonic.quarter"},triangle:{"-1":"noteheads.triangle.quarter",0:"noteheads.triangle.quarter",1:"noteheads.triangle.quarter",2:"noteheads.triangle.quarter",3:"noteheads.triangle.quarter",4:"noteheads.triangle.quarter",5:"noteheads.triangle.quarter",6:"noteheads.triangle.quarter",7:"noteheads.triangle.quarter",nostem:"noteheads.triangle.quarter"},uflags:{3:"flags.u8th",4:"flags.u16th",5:"flags.u32nd",6:"flags.u64th"},dflags:{3:"flags.d8th",4:"flags.d16th",5:"flags.d32nd",6:"flags.d64th"}},te=function(L,P,$){this.decoration=new m,this.getTextSize=L,this.tuneNumber=P,this.isBagpipes=$.bagpipes,this.flatBeams=$.flatbeams,this.graceSlurs=$.graceSlurs,this.percmap=$.percmap,this.initialClef=$.initialClef,this.jazzchords=!!$.jazzchords,this.germanAlphabet=!!$.germanAlphabet,this.reset()};function W(L,P){var $=L[P];if("note"!==$.el_type||!$.startBeam||$.endBeam)return{count:1,elem:$};for(var Q=[];P0&&(T[0].invisible=!0);break;case"meter":T[0]=f(Q,this.tuneNumber),this.startlimitelem=T[0],$.duplicate&&T.length>0&&(T[0].invisible=!0);break;case"clef":if(T[0]=p(Q,this.tuneNumber),!T[0])return null;$.duplicate&&T.length>0&&(T[0].invisible=!0);break;case"key":var R=b(Q,this.tuneNumber);R&&(T[0]=R,this.startlimitelem=T[0]),$.duplicate&&T.length>0&&(T[0].invisible=!0);break;case"stem":this.stemdir="auto"===Q.direction?void 0:Q.direction;break;case"part":var F=new A(Q,0,0,"part",this.tuneNumber),K=this.getTextSize.calc(Q.title,"partsfont","part");F.addFixedX(new E(Q.title,0,0,void 0,{type:"part",height:K.height/g.STEP})),T[0]=F;break;case"tempo":var J=new A(Q,0,0,"tempo",this.tuneNumber);J.addFixedX(new h(Q,this.tuneNumber,c)),T[0]=J;break;case"style":"normal"===Q.head?delete this.style:this.style=Q.head;break;case"hint":j=!0,this.saveState();break;case"midi":break;case"scale":this.voiceScale=Q.size;break;case"color":this.voiceColor=Q.color,$.color=this.voiceColor;break;default:var se=new A(Q,0,0,"unsupported",this.tuneNumber);se.addFixed(new E("element type "+Q.el_type,0,0,void 0,{type:"debug"})),T[0]=se}return T},te.prototype.createBeam=function(L,P,$){var Q=[],T=new I(this.stemHeight*this.voiceScale,this.stemdir,this.flatBeams,$[0]);j&&T.setHint();for(var R=0;R<$.length;R++)T.runningDirection($[R]);T.setStemDirection();var F=this.stemdir;for(this.stemdir=T.stemsUp?"up":"down",R=0;R<$.length;R++){var J=this.createNote($[R],!0,L,P);Q.push(J),T.add(J),this.triplet&&this.triplet.isClosed()&&(P.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1)}return T.calcDir(),P.addBeam(T),this.stemdir=F,Q};var ee=function(L){var P;do{P=!0;for(var $=0;$L.pitches[$+1].pitch){P=!1;var Q=L.pitches[$];L.pitches[$]=L.pitches[$+1],L.pitches[$+1]=Q}}while(!P)},U=function(L,P,$,Q,T,R,F,K,J){for(var se=$;se>11;se--)se%2==0&&!Q&&L.addFixed(new E(null,K,(T+4)*J,se,{type:"ledger"}));for(se=P;se<1;se++)se%2==0&&!Q&&L.addFixed(new E(null,K,(T+4)*J,se,{type:"ledger"}));for(se=0;se1&&(se=new I(T,"grace",R),j&&se.setHint(),se.mainNote=$);var ye,Fe=[];for(ye=L.gracenotes.length-1;ye>=0;ye--)Fe[ye]=F+=10,L.gracenotes[ye].accidental&&(F+=7);for(ye=0;ye=6?"down":"up";for(Q&&($e=Q),(!(T=P.style?P.style:T)||"normal"===T)&&(T="note"),(st=R?Y[T].nostem:Y[T][-F])||console.log("noteSymbol:",T,F,R),Re="down"===$e?P.pitches.length-2:1;"down"===$e?Re>=0:Re11||Bt.verticalPos<1)&&et.push(Bt.verticalPos-Bt.verticalPos%2),"down"===$e?ye=y.getSymbolWidth(st)+2:se=y.getSymbolWidth(st)+2)}var _n=P.pitches.length;for(Re=0;Re0&&(ie.bottom=ie.bottom-1),L.addHead(ie)),ye+=Ce.accidentalshiftx,Fe=Math.max(Fe,Ce.dotshiftx)}if(be){var Ae=Math.round(70*this.voiceScale)/10,Yt="down"===$e?P.minpitch-Ae:P.minpitch+1/3;Yt>6&&!Q&&(Yt=6);var tt="down"===$e?P.maxpitch-1/3:P.maxpitch+Ae;tt<6&&!Q&&(tt=6),ie&&"noteheads.slash.quarter"===ie.c&&("down"===$e?tt-=1:Yt+=1),L.addRight(new E(null,"down"===$e||0===L.heads.length?0:L.heads[0].w,0,Yt,{type:"stem",pitch2:tt,linewidth:"down"===$e?1:-1,bottom:Yt-1})),me=Math.min(Yt,tt)}return{noteHead:ie,roomTaken:ye,roomTakenRight:Fe,min:me,additionalLedgers:et,dir:$e,symbolWidth:Be}},te.prototype.addLyric=function(L,P){var $="";P.lyric.forEach(function(R){$+=R.syllable+(" "===R.divider?"":R.divider)+"\n"});var Q=this.getTextSize.calc($,"vocalfont","lyric");L.addCentered(new E($,0,Q.width,void 0,{type:"lyric",position:P.positioning?P.positioning.vocalPosition:"below",height:Q.height/g.STEP,dim:this.getTextSize.attr("vocalfont","lyric")}))},te.prototype.createNote=function(L,P,$,Q){var se,T=null,R=0,F=0,K=0,J=[],ie=B(L),ye=!1;0===ie&&(ye=!0,ie=.25,P=!0);for(var Fe=Math.floor(Math.log(ie)/Math.log(2)),me=0,Ve=Math.pow(2,Fe),et=Ve/2;Ve1,this.stemdir,$,Fe,this.voiceScale);T=st.noteHead,R=st.roomTaken,F=st.roomTakenRight}else{var Re=this.addNoteToAbcElement($e,L,me,this.stemdir,this.style,ye,Fe,P,Q);void 0!==Re.min&&(this.minY=Math.min(Re.min,this.minY)),T=Re.noteHead,R=Re.roomTaken,F=Re.roomTakenRight,J=Re.additionalLedgers,se=Re.dir,K=Re.symbolWidth}if(void 0!==L.lyric&&this.addLyric($e,L),void 0!==L.gracenotes&&(R+=this.addGraceNotes(L,Q,$e,T,this.stemHeight*this.voiceScale,this.isBagpipes,R)),L.decoration&&this.decoration.createDecoration(Q,L.decoration,$e.top,T?T.w:0,$e,R,se,$e.bottom,L.positioning,this.hasVocals),L.barNumber&&$e.addFixed(new E(L.barNumber,-10,0,0,{type:"barNumber"})),U($e,L.minpitch,L.maxpitch,L.rest,K,J,se,-2,1),void 0!==L.chord){var ut=S(this.getTextSize,$e,L,R,F,K,this.jazzchords,this.germanAlphabet);R=ut.roomTaken,F=ut.roomTakenRight}return L.startTriplet&&(this.triplet=new u(L.startTriplet,T,{flatBeams:this.flatBeams})),L.endTriplet&&this.triplet&&this.triplet.setCloseAnchor(T),this.triplet&&!L.startTriplet&&!L.endTriplet&&!(L.rest&&"spacer"===L.rest.type)&&this.triplet.middleNote(T),$e},te.prototype.addSlursAndTies=function(L,P,$,Q,T,R){if(P.endTie&&this.ties.length>0){for(var F=!1,K=0;K10&&"treble"===P.abcelem.type?13:11)+$.height/g.STEP,{type:"barNumber",dim:this.getTextSize.attr("measurefont","bar-number")}))},te.prototype.createBarLine=function(L,P,$){var Q=new A(P,0,10,"bar",this.tuneNumber),T=null,R=0;P.barNumber&&this.addMeasureNumber(P.barNumber,Q);var F="bar_right_repeat"===P.type||"bar_dbl_repeat"===P.type,K="bar_left_repeat"!==P.type&&"bar_thick_thin"!==P.type&&"bar_invisible"!==P.type,J="bar_right_repeat"===P.type||"bar_dbl_repeat"===P.type||"bar_left_repeat"===P.type||"bar_thin_thick"===P.type||"bar_thick_thin"===P.type,se="bar_left_repeat"===P.type||"bar_thick_thin"===P.type||"bar_thin_thin"===P.type||"bar_dbl_repeat"===P.type,ie="bar_left_repeat"===P.type||"bar_dbl_repeat"===P.type;if(F||ie){for(var ye in this.slurs)this.slurs.hasOwnProperty(ye)&&this.slurs[ye].setEndX(Q);this.startlimitelem=Q}if(F&&(Q.addRight(new E("dots.dot",R,1,7)),Q.addRight(new E("dots.dot",R,1,5)),R+=6),K&&(T=new E(null,R,1,2,{type:"bar",pitch2:10,linewidth:.6}),Q.addRight(T)),"bar_invisible"===P.type&&(T=new E(null,R,1,2,{type:"none",pitch2:10,linewidth:.6}),Q.addRight(T)),P.decoration&&this.decoration.createDecoration(L,P.decoration,12,J?3:1,Q,0,"down",2,P.positioning,this.hasVocals),J&&(T=new E(null,R+=4,4,2,{type:"bar",pitch2:10,linewidth:4}),Q.addRight(T),R+=5),this.partstartelem&&P.endEnding&&(this.partstartelem.anchor2=T,this.partstartelem=null),se&&(T=new E(null,R+=3,1,2,{type:"bar",pitch2:10,linewidth:.6}),Q.addRight(T)),ie&&(Q.addRight(new E("dots.dot",R+=3,1,7)),Q.addRight(new E("dots.dot",R,1,5))),P.startEnding&&$){var Fe=this.getTextSize.calc(P.startEnding,"repeatfont","").width;Q.minspacing+=Fe+10,this.partstartelem=new _(P.startEnding,T,null),L.addOther(this.partstartelem)}return Q.extraw-=5,void 0!==P.chord&&S(this.getTextSize,Q,P,0,0,0,!1,this.germanAlphabet),Q},Z.exports=te},6976:(Z,H,M)=>{var A=M(2291),I=M(2866);const D=M(7292);Z.exports=function(b,c,f,m,_,y,E,g){for(var l=0;l=0;v--){var B,j,S=u[v],x=0;"left"===h||"right"===h||"below"===h||"above"===h||w?(B="annotationfont",j="annotation"):(B="gchordfont",j="chord",S=D(S,E,g));var Y=b.attr(B,j),te=b.calc(S,B,j),W=te.width,q=te.height/I.STEP;switch(h){case"left":c.addExtra(new A(S,x=-(m+=W+7),W+4,f.averagepitch,{type:"text",height:q,dim:Y,position:"left"}));break;case"right":c.addRight(new A(S,x=_+=4,W+4,f.averagepitch,{type:"text",height:q,dim:Y,position:"right"}));break;case"below":c.addRight(new A(S,0,0,void 0,{type:"text",position:"below",height:q,dim:Y,realWidth:W}));break;case"above":c.addRight(new A(S,0,0,void 0,{type:"text",position:"above",height:q,dim:Y,realWidth:W}));break;default:if(w)c.addRight(new A(S,x+w.x,0,f.minpitch+(w.y+3*I.STEP)/I.STEP,{position:"relative",type:"text",height:q,dim:Y}));else{var U="above";f.positioning&&f.positioning.chordPosition&&(U=f.positioning.chordPosition),"hidden"!==U&&c.addCentered(new A(S,y/2,W,void 0,{type:"chord",position:U,height:q,dim:Y,realWidth:W}))}}}return{roomTaken:m,roomTakenRight:_}}},8461:Z=>{Z.exports=function H(M,A,I){if(A.text){A.marginLeft||(A.marginLeft=0),A.klass||(A.klass=""),A.anchor||(A.anchor="start"),A.info||(A.info={startChar:-2,endChar:-2}),A.marginTop&&M.push({move:A.marginTop});var D={left:A.marginLeft,text:A.text,font:A.font,anchor:A.anchor,startChar:A.info.startChar,endChar:A.info.endChar};A.absElemType&&(D.absElemType=A.absElemType),A.inGroup||(D.klass=A.klass),A.name&&(D.name=A.name),M.push(D);var p=I.calc("A",A.font,A.klass),b=A.text.split("\n").length;"\n"===A.text[A.text.length-1]&&b--,A.noMove||(M.push({move:Math.round(1.1*p.height*b)}),A.marginBottom&&M.push({move:A.marginBottom}))}}},9112:Z=>{Z.exports=function(M){for(var A=0,I=0;I{var A=M(6147),I=M(6547),D=M(2291);Z.exports=function(c,f){var m,_=0;c.el_type="clef";var y=new A(c,0,10,"staff-extra clef",f);switch(y.isClef=!0,c.type){case"treble":m="clefs.G";break;case"tenor":case"alto":m="clefs.C";break;case"bass":m="clefs.F";break;case"treble+8":m="clefs.G",_=1;break;case"tenor+8":case"alto+8":m="clefs.C",_=1;break;case"bass+8":m="clefs.F",_=1;break;case"treble-8":m="clefs.G",_=-1;break;case"tenor-8":case"alto-8":m="clefs.C",_=-1;break;case"bass-8":m="clefs.F",_=-1;break;case"none":return null;case"perc":m="clefs.perc";break;default:y.addFixed(new D("clef="+c.type,0,0,void 0,{type:"debug"}))}if(m){var g=I.symbolHeightInPitches(m),l=function b(c){switch(c){case"clefs.G":return-5;case"clefs.C":case"clefs.F":return-4;case"clefs.perc":return-2;default:return 0}}(m);if(y.addRight(new D(m,5,I.getSymbolWidth(m),c.clefPos,{top:g+c.clefPos+l,bottom:c.clefPos+l})),0!==_){var h=.6666666666666666,w=(I.getSymbolWidth(m)-I.getSymbolWidth("8")*h)/2,u=_>0?y.top+3:y.bottom-1,v=_>0?y.top+3:y.bottom-3,S=v-2;"bass-8"===c.type&&(u=3,w=0),y.addRight(new D("8",5+w,I.getSymbolWidth("8")*h,u,{scalex:h,scaley:h,top:v,bottom:S}))}}return y}},8778:(Z,H,M)=>{var A=M(6147),I=M(6547),D=M(2291);Z.exports=function(b,c){if(b.el_type="keySignature",!b.accidentals||0===b.accidentals.length)return null;var f=new A(b,0,10,"staff-extra key-signature",c);f.isKeySig=!0;var m=0;return b.accidentals.forEach(function(_){var y,E=0;switch(_.acc){case"sharp":y="accidentals.sharp",E=-3;break;case"natural":y="accidentals.nat";break;case"flat":y="accidentals.flat",E=-1.2;break;case"quartersharp":y="accidentals.halfsharp",E=-2.5;break;case"quarterflat":y="accidentals.halfflat",E=-1.2;break;default:y="accidentals.flat"}f.addRight(new D(y,m,I.getSymbolWidth(y),_.verticalPos,{thickness:I.symbolHeightInPitches(y),top:_.verticalPos+I.symbolHeightInPitches(y)+E,bottom:_.verticalPos+E})),m+=I.getSymbolWidth(y)+2},this),f}},1691:(Z,H,M)=>{var A=M(6547),I=M(2291);Z.exports=function(p,b,c,f){f||(f={});var x,m=void 0!==f.dir?f.dir:null,_=void 0!==f.headx?f.headx:0,y=void 0!==f.extrax?f.extrax:0,E=void 0!==f.flag?f.flag:null,g=void 0!==f.dot?f.dot:0,l=void 0!==f.dotshiftx?f.dotshiftx:0,h=void 0!==f.scale?f.scale:1,w=void 0!==f.accidentalSlot?f.accidentalSlot:[],u=void 0!==f.shouldExtendStem&&f.shouldExtendStem,v=void 0===f.printAccidentals||f.printAccidentals,S=c.verticalPos,O=0,B=0,j=0;if(void 0===b)p.addFixed(new I("pitch is undefined",0,0,0,{type:"debug"}));else if(""===b)x=new I(null,0,0,S);else{var Y=_;if(c.printer_shift){var te="same"===c.printer_shift?1:0;Y="down"===m?-A.getSymbolWidth(b)*h+te:A.getSymbolWidth(b)*h-te}var W={scalex:h,scaley:h,thickness:A.symbolHeightInPitches(b)*h,name:c.name};if((x=new I(b,Y,A.getSymbolWidth(b)*h,S,W)).stemDir=m,E){var q=S+("down"===m?-7:7)*h;u&&("down"===m&&q>6&&(q=6),"up"===m&&q<6&&(q=6)),p.addRight(new I(E,"down"===m?_:_+x.w-.6,A.getSymbolWidth(E)*h,q,{scalex:h,scaley:h}))}for(B=x.w+l-2+5*g;g>0;g--){var U=1-Math.abs(S)%2;p.addRight(new I("dots.dot",x.w+l-2+5*g,A.getSymbolWidth("dots.dot"),S+U))}}if(x&&(x.highestVert=c.highestVert),v&&c.accidental){var ne;switch(c.accidental){case"quartersharp":ne="accidentals.halfsharp";break;case"dblsharp":ne="accidentals.dblsharp";break;case"sharp":ne="accidentals.sharp";break;case"quarterflat":ne="accidentals.halfflat";break;case"flat":ne="accidentals.flat";break;case"dblflat":ne="accidentals.dblflat";break;case"natural":ne="accidentals.nat"}for(var z=!1,L=y,P=0;P=6){w[P][0]=S,L=w[P][1],z=!0;break}!1===z&&(L-=A.getSymbolWidth(ne)*h+2,w.push([S,L]),O=A.getSymbolWidth(ne)*h+2);var $=A.symbolHeightInPitches(ne);p.addExtra(new I(ne,L,A.getSymbolWidth(ne),S,{scalex:h,scaley:h,top:S+$/2,bottom:S-$/2})),j=A.getSymbolWidth(ne)/2}return{notehead:x,accidentalshiftx:O,dotshiftx:B,extraLeft:j}}},8437:(Z,H,M)=>{var A=M(6147),I=M(6547),D=M(2291);Z.exports=function(b,c){b.el_type="timeSignature";var f=new A(b,0,10,"staff-extra time-signature",c);if("specified"===b.type)for(var m=0,_=0;_{var A=M(9898),I=M(7468),D=M(653),p=M(6547),b=M(2291),c=M(9751),f=function(){this.startDiminuendoX=void 0,this.startCrescendoX=void 0,this.minTop=12,this.minBottom=0};f.prototype.dynamicDecoration=function(l,h,w,u){for(var v,S,x,O=0;O",u)),S&&l.addOther(new I(S.start,S.stop,"<",u)),x&&l.addOther(new D(x.start,x.stop))},f.prototype.createDecoration=function(l,h,w,u,v,S,x,O,B,j){B||(B={ornamentPosition:"above",volumePosition:j?"above":"below",dynamicPosition:j?"above":"below"}),function(l,h,w,u){for(var v=0;v9&&B++;var te=u/2;"center"!==p.getSymbolAlign(Y)&&(te-=p.getSymbolWidth(Y)/2),v.addFixedX(new b(Y,te,p.getSymbolWidth(Y),B))}if("slide"===h[j]&&v.heads[0]){var W=v.heads[0].pitch,q=new b("",-S-15,0,(W-=2)-1),ee=new b("",-S-5,0,W+1);v.addFixedX(q),v.addFixedX(ee),l.addOther(new c({anchor1:q,anchor2:ee,fixedY:!0}))}}return void 0===B&&(B=w),{above:B,below:v.bottom}}(l,h,w,u,v,S,x,O);Y.above=Math.max(Y.above,this.minTop),function(l,h,w,u,v,S,x){function O(ee,U){"above"===ee?u.above+=U:u.below-=U}function B(ee){var U;return"above"===ee?(U=u.above)x&&(U=x),U}function j(ee,U,ne){var z=B(U);w.addFixedX(new b(ee,h/2,0,z+2,{type:"decoration",klass:"ornament",thickness:3,anchor:ne})),O(U,5)}function Y(ee,U){var ne=h/2;"center"!==p.getSymbolAlign(ee)&&(ne-=p.getSymbolWidth(ee)/2);var z=p.symbolHeightInPitches(ee)+1,L=B(U);L="above"===U?L+z/2:L-z/2,w.addFixedX(new b(ee,ne,p.getSymbolWidth(ee),L,{klass:"ornament",thickness:p.symbolHeightInPitches(ee)})),O(U,z)}for(var te={"+":"scripts.stopped",open:"scripts.open",snap:"scripts.snap",wedge:"scripts.wedge",thumb:"scripts.thumb",shortphrase:"scripts.shortphrase",mediumphrase:"scripts.mediumphrase",longphrase:"scripts.longphrase",trill:"scripts.trill",roll:"scripts.roll",irishroll:"scripts.roll",marcato:"scripts.umarcato",dmarcato:"scripts.dmarcato",umarcato:"scripts.umarcato",turn:"scripts.turn",uppermordent:"scripts.prall",pralltriller:"scripts.prall",mordent:"scripts.mordent",lowermordent:"scripts.mordent",downbow:"scripts.downbow",upbow:"scripts.upbow",fermata:"scripts.ufermata",invertedfermata:"scripts.dfermata",breath:",",coda:"scripts.coda",segno:"scripts.segno"},q=0;q{var A=M(1673),I=M(4020),D=function(b,c,f,m,_,y){y||(y={}),this.tuneNumber=_,this.abcelem=b,this.duration=c,this.durationClass=y.durationClassOveride?y.durationClassOveride:this.duration,this.minspacing=f||0,this.x=0,this.children=[],this.heads=[],this.extra=[],this.extraw=0,this.w=0,this.right=[],this.invisible=!1,this.bottom=void 0,this.top=void 0,this.type=m,this.fixed={w:0,t:void 0,b:void 0},this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};D.prototype.getFixedCoords=function(){return{x:this.x,w:this.fixed.w,t:this.fixed.t,b:this.fixed.b}},D.prototype.addExtra=function(p){this.fixed.w=Math.max(this.fixed.w,p.dx+p.w),this.fixed.t=void 0===this.fixed.t?p.top:Math.max(this.fixed.t,p.top),this.fixed.b=void 0===this.fixed.b?p.bottom:Math.min(this.fixed.b,p.bottom),p.dxthis.w&&(this.w=p.dx+p.w),this.right[this.right.length]=p,this._addChild(p)},D.prototype.addFixed=function(p){this._addChild(p)},D.prototype.addFixedX=function(p){this._addChild(p)},D.prototype.addCentered=function(p){var b=p.w/2;-bthis.w&&(this.w=p.dx+b),this.right[this.right.length]=p,this._addChild(p)},D.prototype.setLimit=function(p,b){!b[p]||(this.specialY[p]=this.specialY[p]?Math.max(this.specialY[p],b[p]):b[p])},D.prototype._addChild=function(p){p.parent=this,this.children[this.children.length]=p,this.pushTop(p.top),this.pushBottom(p.bottom),this.setLimit("tempoHeightAbove",p),this.setLimit("partHeightAbove",p),this.setLimit("volumeHeightAbove",p),this.setLimit("dynamicHeightAbove",p),this.setLimit("endingHeightAbove",p),this.setLimit("chordHeightAbove",p),this.setLimit("lyricHeightAbove",p),this.setLimit("lyricHeightBelow",p),this.setLimit("chordHeightBelow",p),this.setLimit("volumeHeightBelow",p),this.setLimit("dynamicHeightBelow",p)},D.prototype.pushTop=function(p){void 0!==p&&(this.top=void 0===this.top?p:Math.max(p,this.top))},D.prototype.pushBottom=function(p){void 0!==p&&(this.bottom=void 0===this.bottom?p:Math.min(p,this.bottom))},D.prototype.setX=function(p){this.x=p;for(var b=0;b{var H=function(I,D,p,b){this.type="BeamElem",this.isflat=!!p,this.isgrace=!(!D||"grace"!==D),this.forceup=!!(this.isgrace||D&&"up"===D),this.forcedown=!(!D||"down"!==D),this.elems=[],this.total=0,this.average=6,this.allrests=!0,this.stemHeight=I,this.beams=[],b&&b.duration?(this.duration=b.duration,b.startTriplet&&(this.duration*=b.tripletMultiplier),this.duration=Math.round(1e3*this.duration)/1e3):this.duration=0};function M(A,I){return I?A/I:0}H.prototype.setHint=function(){this.hint=!0},H.prototype.runningDirection=function(A){var I=A.averagepitch;void 0!==I&&(this.total=Math.round(this.total+I),this.count||(this.count=0),this.count++)},H.prototype.add=function(A){var I=A.abcelem.averagepitch;void 0!==I&&(A.abcelem.rest||(this.allrests=!1),A.beam=this,this.elems.push(A),this.total=Math.round(this.total+I),(void 0===this.min||A.abcelem.minpitchthis.max)&&(this.max=A.abcelem.maxpitch))},H.prototype.addBeam=function(A){this.beams.push(A)},H.prototype.setStemDirection=function(){this.average=M(this.total,this.count),this.stemsUp=!!this.forceup||!this.forcedown&&this.average<6,delete this.count,this.total=0},H.prototype.calcDir=function(){this.average=M(this.total,this.elems.length),this.stemsUp=!!this.forceup||!this.forcedown&&this.average<6;for(var I=this.stemsUp?"up":"down",D=0;D{const A=M(8461);function I(D,p,b,c,f,m){this.rows=[],D.unalignedWords&&D.unalignedWords.length>0&&this.unalignedWords(D.unalignedWords,c,f,m),this.extraText(D,c,f,m),D.footer&&b&&this.footer(D.footer,p,c,m)}I.prototype.unalignedWords=function(D,p,b,c){var f="meta-bottom unaligned-words",m="wordsfont";this.rows.push({startGroup:"unalignedWords",klass:"abcjs-meta-bottom abcjs-unaligned-words",name:"words"});var _=c.calc("i",m,f);this.rows.push({move:b.words});for(var y=0;y0&&A(this.rows,{marginLeft:p,text:f,font:"historyfont",klass:"meta-bottom extra-text",marginTop:b.info,absElemType:"extraText",name:"description"},c)},I.prototype.footer=function(D,p,b,c){var f="header meta-bottom",m="footerfont";this.rows.push({startGroup:"footer",klass:f}),A(this.rows,{marginLeft:b,text:D.left,font:m,klass:f,name:"footer"},c),A(this.rows,{marginLeft:b+p/2,text:D.center,font:m,klass:f,anchor:"middle",name:"footer"},c),A(this.rows,{marginLeft:b+p,text:D.right,font:m,klass:f,anchor:"end",name:"footer"},c)},Z.exports=I},4588:Z=>{var H=function(A,I){this.startVoice=A,this.type=I};H.prototype.setBottomStaff=function(M){this.endVoice=M,this.startVoice.header&&!this.endVoice.header&&(this.header=this.startVoice.header,delete this.startVoice.header)},H.prototype.continuing=function(M){this.lastContinuedVoice=M},H.prototype.getWidth=function(){return 10},H.prototype.isStartVoice=function(M){return!!(this.startVoice&&this.startVoice.staff&&this.startVoice.staff.voices.length>0&&this.startVoice.staff.voices[0]===M)},Z.exports=H},7468:Z=>{Z.exports=function(A,I,D,p){this.type="CrescendoElem",this.anchor1=A,this.anchor2=I,this.dir=D,"above"===p?this.dynamicHeightAbove=6:this.dynamicHeightBelow=6,this.pitch=void 0}},9898:Z=>{Z.exports=function(A,I,D){this.type="DynamicDecoration",this.anchor=A,this.dec=I,"below"===D?this.volumeHeightBelow=6:this.volumeHeightAbove=6,this.pitch=void 0}},8312:Z=>{Z.exports=function(A,I,D){this.type="EndingElem",this.text=A,this.anchor1=I,this.anchor2=D,this.endingHeightAbove=5,this.pitch=void 0}},9662:Z=>{Z.exports=function H(M,A,I,D,p,b){var f,c=M.text;this.rows=[],A&&this.rows.push({move:A});var m=I.calc("textfont","defined-text");if(""===c)this.rows.push({move:2*m.attr["font-size"]});else if("string"==typeof c)this.rows.push({move:m.attr["font-size"]/2}),this.rows.push({left:D,text:c,font:"textfont",klass:"defined-text",anchor:"start",startChar:M.startChar,endChar:M.endChar,absElemType:"freeText",name:"free-text"}),f=b.calc(c,"textfont","defined-text"),this.rows.push({move:f.height});else if(c){for(var _=0,y=D,E="textfont",g=0;g{Z.exports=function(A,I){this.type="GlissandoElem",this.anchor1=A,this.anchor2=I}},2291:Z=>{var H=function(A,I,D,p,b){switch(b=b||{},this.x=0,this.c=A,this.dx=I,this.w=D,this.pitch=p,this.scalex=b.scalex||1,this.scaley=b.scaley||1,this.type=b.type||"symbol",this.pitch2=b.pitch2,this.linewidth=b.linewidth,this.klass=b.klass,this.anchor=b.anchor?b.anchor:"middle",this.top=p,void 0!==this.pitch2&&this.pitch2>this.top&&(this.top=this.pitch2),this.bottom=p,void 0!==this.pitch2&&this.pitch20?this.top+=b.stemHeight:this.bottom+=b.stemHeight),b.dim&&(this.dim=b.dim),b.position&&(this.position=b.position),this.height=b.height?b.height:4,b.top&&(this.top=b.top),b.bottom&&(this.bottom=b.bottom),this.name=b.name?b.name:this.c?this.c:this.type,this.realWidth=b.realWidth?b.realWidth:this.w,this.centerVertically=!1,this.type){case"debug":this.chordHeightAbove=this.height;break;case"lyric":b.position&&"below"===b.position?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":b.position&&"below"===b.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":void 0===this.pitch?b.position&&"below"===b.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height:this.centerVertically=!0;break;case"part":this.partHeightAbove=this.height}};H.prototype.getChordDim=function(){if("debug"===this.type||!this.chordHeightAbove&&!this.chordHeightBelow)return null;var I=this.x-("chord"===this.type?this.realWidth/2:0)-0;return{left:I,right:I+this.realWidth+0}},H.prototype.invertLane=function(M){void 0===this.lane&&(this.lane=0),this.lane=M-this.lane-1},H.prototype.putChordInLane=function(M){this.lane=M,this.chordHeightAbove?this.chordHeightAbove=1.25*this.height*this.lane:this.chordHeightBelow=1.25*this.height*this.lane},H.prototype.getLane=function(){return void 0===this.lane?0:this.lane},H.prototype.setX=function(M){this.x=M+this.dx},Z.exports=H},7274:Z=>{Z.exports=function H(M,A,I){this.rows=[],M&&this.rows.push({move:M}),this.rows.push({separator:A,absElemType:"separator"}),I&&this.rows.push({move:I})}},1233:(Z,H,M)=>{var A=M(9112),I=function(D){this.getTextSize=D,this.voices=[],this.staffs=[],this.brace=void 0,this.bracket=void 0};I.prototype.setLimit=function(D,p){!p.specialY[D]||(p.staff.specialY[D]=p.staff.specialY[D]?Math.max(p.staff.specialY[D],p.specialY[D]):p.specialY[D])},I.prototype.addVoice=function(D,p,b){var c=this.voices.length;this.voices[c]=D,this.staffs[p]?this.staffs[p].voices.push(c):this.staffs[this.staffs.length]={top:10,bottom:2,lines:b,voices:[c],specialY:{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}},D.staff=this.staffs[p]},I.prototype.setHeight=function(){this.height=A(this)},I.prototype.setWidth=function(D){this.w=D;for(var p=0;p{Z.exports=function H(M,A,I,D,p,b){this.rows=[],M&&this.rows.push({move:M}),this.rows.push({left:A.titleleft?p:D,text:I.text,font:"subtitlefont",klass:"text subtitle",anchor:A.titleleft?"start":"middle",startChar:I.startChar,endChar:I.endChar,absElemType:"subtitle",name:"subtitle"});var m=b.calc(I.text,"subtitlefont","text subtitle");this.rows.push({move:m.height})}},8412:(Z,H,M)=>{var A=M(6147),I=M(2291),D=function(b,c,f){this.type="TempoElement",this.tempo=b,this.tempo.type="tempo",this.tuneNumber=c,this.totalHeightInPitches=6,this.tempoHeightAbove=this.totalHeightInPitches,this.pitch=void 0,this.tempo.duration&&!this.tempo.suppressBpm&&(this.note=this.createNote(f,b,c))};D.prototype.setX=function(p){this.x=p},D.prototype.createNote=function(p,b,c){var y,E,g,m=b.duration[0],_=new A(b,m,1,"tempo",c);m<=1/32?(g="noteheads.quarter",E="flags.u32nd",y=0):m<=1/16?(g="noteheads.quarter",E="flags.u16th",y=0):m<=3/32?(g="noteheads.quarter",E="flags.u16nd",y=1):m<=1/8?(g="noteheads.quarter",E="flags.u8th",y=0):m<=3/16?(g="noteheads.quarter",E="flags.u8th",y=1):m<=1/4?(g="noteheads.quarter",y=0):m<=3/8?(g="noteheads.quarter",y=1):m<=.5?(g="noteheads.half",y=0):m<=3/4?(g="noteheads.half",y=1):m<=1?(g="noteheads.whole",y=0):m<=1.5?(g="noteheads.whole",y=1):m<=2?(g="noteheads.dbl",y=0):(g="noteheads.dbl",y=1);var w,h=p(_,g,{verticalPos:0},{dir:"up",flag:E,dot:y,scale:.75}).notehead;return _.addHead(h),"noteheads.whole"!==g&&"noteheads.dbl"!==g&&(w=new I(null,h.dx+h.w,0,.25,{type:"stem",pitch2:3.75,linewidth:-.6}),_.addRight(w)),_},Z.exports=D},9751:Z=>{var H=function(A){this.type="TieElem",this.anchor1=A.anchor1,this.anchor2=A.anchor2,A.isGrace&&(this.isGrace=!0),A.fixedY&&(this.fixedY=!0),A.stemDir&&(this.stemDir=A.stemDir),void 0!==A.voiceNumber&&(this.voiceNumber=A.voiceNumber),void 0!==A.style&&(this.dotted=!0),this.internalNotes=[]};H.prototype.addInternalNote=function(M){this.internalNotes.push(M)},H.prototype.setEndAnchor=function(M){this.anchor2=M,this.anchor1?(this.top=Math.max(this.anchor1.pitch,this.anchor2.pitch)+4,this.bottom=Math.min(this.anchor1.pitch,this.anchor2.pitch)-4):(this.top=this.anchor2.pitch+4,this.bottom=this.anchor2.pitch-4)},H.prototype.setStartX=function(M){this.startLimitX=M},H.prototype.setEndX=function(M){this.endLimitX=M},H.prototype.setHint=function(){this.hint=!0},H.prototype.calcTieDirection=function(){if(this.isGrace)this.above=!1;else if(0===this.voiceNumber)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var M;M=this.anchor1?this.anchor1.pitch:this.anchor2?this.anchor2.pitch:14,this.above=!(!this.anchor1||"down"!==this.anchor1.stemDir||!this.anchor2||"down"!==this.anchor2.stemDir)||(!this.anchor1||"up"!==this.anchor1.stemDir||!this.anchor2||"up"!==this.anchor2.stemDir)&&(this.anchor1&&this.anchor2?M>=6:this.anchor1?"down"===this.anchor1.stemDir:this.anchor2?"down"===this.anchor2.stemDir:M>=6)}},H.prototype.calcSlurDirection=function(){if(this.isGrace)this.above=!1;else if(0===this.voiceNumber)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var M=!1;this.anchor1&&"down"===this.anchor1.stemDir&&(M=!0),this.anchor2&&"down"===this.anchor2.stemDir&&(M=!0);for(var A=0;AM&&(M=this.internalNotes[A].highestVert);M>this.startY&&M>this.endY&&(this.startY=this.endY=M-1)}},Z.exports=H},3128:(Z,H,M)=>{const A=M(8461);Z.exports=function I(D,p,b,c,f,m,_,y,E){if(this.rows=[],D.header&&m){var g=E.calc("X","headerfont","abcjs-header abcjs-meta-top").height;A(this.rows,{marginLeft:_,text:D.header.left,font:"headerfont",klass:"header meta-top",marginTop:-g,info:p.header,name:"header"},E),A(this.rows,{marginLeft:_+f/2,text:D.header.center,font:"headerfont",klass:"header meta-top",marginTop:-g,anchor:"middle",info:p.header,name:"header"},E),A(this.rows,{marginLeft:_+f,text:D.header.right,font:"headerfont",klass:"header meta-top",marginTop:-g,anchor:"end",info:p.header,name:"header"},E)}m&&this.rows.push({move:y.top});var l=b.titleleft?"start":"middle",h=b.titleleft?_:_+f/2;if(D.title&&A(this.rows,{marginLeft:h,text:D.title,font:"titlefont",klass:"title meta-top",marginTop:y.title,anchor:l,absElemType:"title",info:p.title,name:"title"},E),c.length)for(var w=0;w0&&A(this.rows,{marginLeft:_,text:D.rhythm,font:"infofont",klass:"meta-top rhythm",absElemType:"rhythm",noMove:!(!D.composer&&!D.origin),info:p.rhythm,name:"rhythm"},E);var v="";D.composer&&(v+=D.composer),D.origin&&(v+=" ("+D.origin+")"),v.length>0&&A(this.rows,{marginLeft:_+f,text:v,font:"composerfont",klass:"meta-top composer",anchor:"end",absElemType:"composer",info:p.composer,name:"composer"},E)}D.author&&D.author.length>0&&A(this.rows,{marginLeft:_+f,text:D.author,font:"composerfont",klass:"meta-top author",anchor:"end",absElemType:"author",info:p.author,name:"author"},E),D.partOrder&&D.partOrder.length>0&&A(this.rows,{marginLeft:_,text:D.partOrder,font:"partsfont",klass:"meta-top part-order",absElemType:"partOrder",info:p.partOrder,name:"part-order"},E)}},3864:Z=>{var H=function(A,I,D){this.type="TripletElem",this.anchor1=I,this.number=A,this.durationClass=("d"+Math.round(1e3*I.parent.durationClass)/1e3).replace(/\./,"-"),this.middleElems=[],this.flatBeams=D.flatBeams};H.prototype.isClosed=function(){return!!this.anchor2},H.prototype.middleNote=function(M){this.middleElems.push(M)},H.prototype.setCloseAnchor=function(M){this.anchor2=M,(!this.anchor1.parent.beam||"up"===this.anchor1.stemDir)&&(this.endingHeightAbove=4)},Z.exports=H},3419:Z=>{var H=function(A,I){this.children=[],this.beams=[],this.otherchildren=[],this.w=0,this.duplicate=!1,this.voicenumber=A,this.voicetotal=I,this.bottom=7,this.top=7,this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};H.prototype.addChild=function(M){if("bar"===M.type){for(var A=!0,I=0;A&&I{var A=M(2866),I={0:{d:[["M",4.83,-14.97],["c",.33,-.03,1.11,0,1.47,.06],["c",1.68,.36,2.97,1.59,3.78,3.6],["c",1.2,2.97,.81,6.96,-.9,9.27],["c",-.78,1.08,-1.71,1.71,-2.91,1.95],["c",-.45,.09,-1.32,.09,-1.77,0],["c",-.81,-.18,-1.47,-.51,-2.07,-1.02],["c",-2.34,-2.07,-3.15,-6.72,-1.74,-10.2],["c",.87,-2.16,2.28,-3.42,4.14,-3.66],["z"],["m",1.11,.87],["c",-.21,-.06,-.69,-.09,-.87,-.06],["c",-.54,.12,-.87,.42,-1.17,.99],["c",-.36,.66,-.51,1.56,-.6,3],["c",-.03,.75,-.03,4.59,0,5.31],["c",.09,1.5,.27,2.4,.6,3.06],["c",.24,.48,.57,.78,.96,.9],["c",.27,.09,.78,.09,1.05,0],["c",.39,-.12,.72,-.42,.96,-.9],["c",.33,-.66,.51,-1.56,.6,-3.06],["c",.03,-.72,.03,-4.56,0,-5.31],["c",-.09,-1.47,-.27,-2.37,-.6,-3.03],["c",-.24,-.48,-.54,-.78,-.93,-.9],["z"]],w:10.78,h:14.959},1:{d:[["M",3.3,-15.06],["c",.06,-.06,.21,-.03,.66,.15],["c",.81,.39,1.08,.39,1.83,.03],["c",.21,-.09,.39,-.15,.42,-.15],["c",.12,0,.21,.09,.27,.21],["c",.06,.12,.06,.33,.06,5.94],["c",0,3.93,0,5.85,.03,6.03],["c",.06,.36,.15,.69,.27,.96],["c",.36,.75,.93,1.17,1.68,1.26],["c",.3,.03,.39,.09,.39,.3],["c",0,.15,-.03,.18,-.09,.24],["c",-.06,.06,-.09,.06,-.48,.06],["c",-.42,0,-.69,-.03,-2.1,-.24],["c",-.9,-.15,-1.77,-.15,-2.67,0],["c",-1.41,.21,-1.68,.24,-2.1,.24],["c",-.39,0,-.42,0,-.48,-.06],["c",-.06,-.06,-.06,-.09,-.06,-.24],["c",0,-.21,.06,-.27,.36,-.3],["c",.75,-.09,1.32,-.51,1.68,-1.26],["c",.12,-.27,.21,-.6,.27,-.96],["c",.03,-.18,.03,-1.59,.03,-4.29],["c",0,-3.87,0,-4.05,-.06,-4.14],["c",-.09,-.15,-.18,-.24,-.39,-.24],["c",-.12,0,-.15,.03,-.21,.06],["c",-.03,.06,-.45,.99,-.96,2.13],["c",-.48,1.14,-.9,2.1,-.93,2.16],["c",-.06,.15,-.21,.24,-.33,.24],["c",-.24,0,-.42,-.18,-.42,-.39],["c",0,-.06,3.27,-7.62,3.33,-7.74],["z"]],w:8.94,h:15.058},2:{d:[["M",4.23,-14.97],["c",.57,-.06,1.68,0,2.34,.18],["c",.69,.18,1.5,.54,2.01,.9],["c",1.35,.96,1.95,2.25,1.77,3.81],["c",-.15,1.35,-.66,2.34,-1.68,3.15],["c",-.6,.48,-1.44,.93,-3.12,1.65],["c",-1.32,.57,-1.8,.81,-2.37,1.14],["c",-.57,.33,-.57,.33,-.24,.27],["c",.39,-.09,1.26,-.09,1.68,0],["c",.72,.15,1.41,.45,2.1,.9],["c",.99,.63,1.86,.87,2.55,.75],["c",.24,-.06,.42,-.15,.57,-.3],["c",.12,-.09,.3,-.42,.3,-.51],["c",0,-.09,.12,-.21,.24,-.24],["c",.18,-.03,.39,.12,.39,.3],["c",0,.12,-.15,.57,-.3,.87],["c",-.54,1.02,-1.56,1.74,-2.79,2.01],["c",-.42,.09,-1.23,.09,-1.62,.03],["c",-.81,-.18,-1.32,-.45,-2.01,-1.11],["c",-.45,-.45,-.63,-.57,-.96,-.69],["c",-.84,-.27,-1.89,.12,-2.25,.9],["c",-.12,.21,-.21,.54,-.21,.72],["c",0,.12,-.12,.21,-.27,.24],["c",-.15,0,-.27,-.03,-.33,-.15],["c",-.09,-.21,.09,-1.08,.33,-1.71],["c",.24,-.66,.66,-1.26,1.29,-1.89],["c",.45,-.45,.9,-.81,1.92,-1.56],["c",1.29,-.93,1.89,-1.44,2.34,-1.98],["c",.87,-1.05,1.26,-2.19,1.2,-3.63],["c",-.06,-1.29,-.39,-2.31,-.96,-2.91],["c",-.36,-.33,-.72,-.51,-1.17,-.54],["c",-.84,-.03,-1.53,.42,-1.59,1.05],["c",-.03,.33,.12,.6,.57,1.14],["c",.45,.54,.54,.87,.42,1.41],["c",-.15,.63,-.54,1.11,-1.08,1.38],["c",-.63,.33,-1.2,.33,-1.83,0],["c",-.24,-.12,-.33,-.18,-.54,-.39],["c",-.18,-.18,-.27,-.3,-.36,-.51],["c",-.24,-.45,-.27,-.84,-.21,-1.38],["c",.12,-.75,.45,-1.41,1.02,-1.98],["c",.72,-.72,1.74,-1.17,2.85,-1.32],["z"]],w:10.764,h:14.97},3:{d:[["M",3.78,-14.97],["c",.3,-.03,1.41,0,1.83,.06],["c",2.22,.3,3.51,1.32,3.72,2.91],["c",.03,.33,.03,1.26,-.03,1.65],["c",-.12,.84,-.48,1.47,-1.05,1.77],["c",-.27,.15,-.36,.24,-.45,.39],["c",-.09,.21,-.09,.36,0,.57],["c",.09,.15,.18,.24,.51,.39],["c",.75,.42,1.23,1.14,1.41,2.13],["c",.06,.42,.06,1.35,0,1.71],["c",-.18,.81,-.48,1.38,-1.02,1.95],["c",-.75,.72,-1.8,1.2,-3.18,1.38],["c",-.42,.06,-1.56,.06,-1.95,0],["c",-1.89,-.33,-3.18,-1.29,-3.51,-2.64],["c",-.03,-.12,-.03,-.33,-.03,-.6],["c",0,-.36,0,-.42,.06,-.63],["c",.12,-.3,.27,-.51,.51,-.75],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.36,.33,.57,.75,.6,1.2],["c",0,.21,0,.27,-.06,.42],["c",-.09,.18,-.12,.24,-.54,.54],["c",-.51,.36,-.63,.54,-.6,.87],["c",.06,.54,.54,.9,1.38,.99],["c",.36,.06,.72,.03,.96,-.06],["c",.81,-.27,1.29,-1.23,1.44,-2.79],["c",.03,-.45,.03,-1.95,-.03,-2.37],["c",-.09,-.75,-.33,-1.23,-.75,-1.44],["c",-.33,-.18,-.45,-.18,-1.98,-.18],["c",-1.35,0,-1.41,0,-1.5,-.06],["c",-.18,-.12,-.24,-.39,-.12,-.6],["c",.12,-.15,.15,-.15,1.68,-.15],["c",1.5,0,1.62,0,1.89,-.15],["c",.18,-.09,.42,-.36,.54,-.57],["c",.18,-.42,.27,-.9,.3,-1.95],["c",.03,-1.2,-.06,-1.8,-.36,-2.37],["c",-.24,-.48,-.63,-.81,-1.14,-.96],["c",-.3,-.06,-1.08,-.06,-1.38,.03],["c",-.6,.15,-.9,.42,-.96,.84],["c",-.03,.3,.06,.45,.63,.84],["c",.33,.24,.42,.39,.45,.63],["c",.03,.72,-.57,1.5,-1.32,1.65],["c",-1.05,.27,-2.1,-.57,-2.1,-1.65],["c",0,-.45,.15,-.96,.39,-1.38],["c",.12,-.21,.54,-.63,.81,-.81],["c",.57,-.42,1.38,-.69,2.25,-.81],["z"]],w:9.735,h:14.967},4:{d:[["M",8.64,-14.94],["c",.27,-.09,.42,-.12,.54,-.03],["c",.09,.06,.15,.21,.15,.3],["c",-.03,.06,-1.92,2.31,-4.23,5.04],["c",-2.31,2.73,-4.23,4.98,-4.26,5.01],["c",-.03,.06,.12,.06,2.55,.06],["l",2.61,0],["l",0,-2.37],["c",0,-2.19,.03,-2.37,.06,-2.46],["c",.03,-.06,.21,-.18,.57,-.42],["c",1.08,-.72,1.38,-1.08,1.86,-2.16],["c",.12,-.3,.24,-.54,.27,-.57],["c",.12,-.12,.39,-.06,.45,.12],["c",.06,.09,.06,.57,.06,3.96],["l",0,3.9],["l",1.08,0],["c",1.05,0,1.11,0,1.2,.06],["c",.24,.15,.24,.54,0,.69],["c",-.09,.06,-.15,.06,-1.2,.06],["l",-1.08,0],["l",0,.33],["c",0,.57,.09,1.11,.3,1.53],["c",.36,.75,.93,1.17,1.68,1.26],["c",.3,.03,.39,.09,.39,.3],["c",0,.15,-.03,.18,-.09,.24],["c",-.06,.06,-.09,.06,-.48,.06],["c",-.42,0,-.69,-.03,-2.1,-.24],["c",-.9,-.15,-1.77,-.15,-2.67,0],["c",-1.41,.21,-1.68,.24,-2.1,.24],["c",-.39,0,-.42,0,-.48,-.06],["c",-.06,-.06,-.06,-.09,-.06,-.24],["c",0,-.21,.06,-.27,.36,-.3],["c",.75,-.09,1.32,-.51,1.68,-1.26],["c",.21,-.42,.3,-.96,.3,-1.53],["l",0,-.33],["l",-2.7,0],["c",-2.91,0,-2.85,0,-3.09,-.15],["c",-.18,-.12,-.3,-.39,-.27,-.54],["c",.03,-.06,.18,-.24,.33,-.45],["c",.75,-.9,1.59,-2.07,2.13,-3.03],["c",.33,-.54,.84,-1.62,1.05,-2.16],["c",.57,-1.41,.84,-2.64,.9,-4.05],["c",.03,-.63,.06,-.72,.24,-.81],["l",.12,-.06],["l",.45,.12],["c",.66,.18,1.02,.24,1.47,.27],["c",.6,.03,1.23,-.09,2.01,-.33],["z"]],w:11.795,h:14.994},5:{d:[["M",1.02,-14.94],["c",.12,-.09,.03,-.09,1.08,.06],["c",2.49,.36,4.35,.36,6.96,-.06],["c",.57,-.09,.66,-.06,.81,.06],["c",.15,.18,.12,.24,-.15,.51],["c",-1.29,1.26,-3.24,2.04,-5.58,2.31],["c",-.6,.09,-1.2,.12,-1.71,.12],["c",-.39,0,-.45,0,-.57,.06],["c",-.09,.06,-.15,.12,-.21,.21],["l",-.06,.12],["l",0,1.65],["l",0,1.65],["l",.21,-.21],["c",.66,-.57,1.41,-.96,2.19,-1.14],["c",.33,-.06,1.41,-.06,1.95,0],["c",2.61,.36,4.02,1.74,4.26,4.14],["c",.03,.45,.03,1.08,-.03,1.44],["c",-.18,1.02,-.78,2.01,-1.59,2.7],["c",-.72,.57,-1.62,1.02,-2.49,1.2],["c",-1.38,.27,-3.03,.06,-4.2,-.54],["c",-1.08,-.54,-1.71,-1.32,-1.86,-2.28],["c",-.09,-.69,.09,-1.29,.57,-1.74],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.36,.33,.57,.75,.6,1.2],["c",0,.21,0,.27,-.06,.42],["c",-.09,.18,-.12,.24,-.54,.54],["c",-.18,.12,-.36,.3,-.42,.33],["c",-.36,.42,-.18,.99,.36,1.26],["c",.51,.27,1.47,.36,2.01,.27],["c",.93,-.21,1.47,-1.17,1.65,-2.91],["c",.06,-.45,.06,-1.89,0,-2.31],["c",-.15,-1.2,-.51,-2.1,-1.05,-2.55],["c",-.21,-.18,-.54,-.36,-.81,-.39],["c",-.3,-.06,-.84,-.03,-1.26,.06],["c",-.93,.18,-1.65,.6,-2.16,1.2],["c",-.15,.21,-.27,.3,-.39,.3],["c",-.15,0,-.3,-.09,-.36,-.18],["c",-.06,-.09,-.06,-.15,-.06,-3.66],["c",0,-3.39,0,-3.57,.06,-3.66],["c",.03,-.06,.09,-.15,.15,-.18],["z"]],w:10.212,h:14.997},6:{d:[["M",4.98,-14.97],["c",.36,-.03,1.2,0,1.59,.06],["c",.9,.15,1.68,.51,2.25,1.05],["c",.57,.51,.87,1.23,.84,1.98],["c",-.03,.51,-.21,.9,-.6,1.26],["c",-.24,.24,-.45,.39,-.75,.51],["c",-.21,.06,-.27,.06,-.6,.06],["c",-.33,0,-.39,0,-.6,-.06],["c",-.3,-.12,-.51,-.27,-.75,-.51],["c",-.39,-.36,-.57,-.78,-.57,-1.26],["c",0,-.27,0,-.3,.09,-.42],["c",.03,-.09,.18,-.21,.3,-.3],["c",.12,-.09,.3,-.21,.39,-.27],["c",.09,-.06,.21,-.18,.27,-.24],["c",.06,-.12,.09,-.15,.09,-.33],["c",0,-.18,-.03,-.24,-.09,-.36],["c",-.24,-.39,-.75,-.6,-1.38,-.57],["c",-.54,.03,-.9,.18,-1.23,.48],["c",-.81,.72,-1.08,2.16,-.96,5.37],["l",0,.63],["l",.3,-.12],["c",.78,-.27,1.29,-.33,2.1,-.27],["c",1.47,.12,2.49,.54,3.27,1.29],["c",.48,.51,.81,1.11,.96,1.89],["c",.06,.27,.06,.42,.06,.93],["c",0,.54,0,.69,-.06,.96],["c",-.15,.78,-.48,1.38,-.96,1.89],["c",-.54,.51,-1.17,.87,-1.98,1.08],["c",-1.14,.3,-2.4,.33,-3.24,.03],["c",-1.5,-.48,-2.64,-1.89,-3.27,-4.02],["c",-.36,-1.23,-.51,-2.82,-.42,-4.08],["c",.3,-3.66,2.28,-6.3,4.95,-6.66],["z"],["m",.66,7.41],["c",-.27,-.09,-.81,-.12,-1.08,-.06],["c",-.72,.18,-1.08,.69,-1.23,1.71],["c",-.06,.54,-.06,3,0,3.54],["c",.18,1.26,.72,1.77,1.8,1.74],["c",.39,-.03,.63,-.09,.9,-.27],["c",.66,-.42,.9,-1.32,.9,-3.24],["c",0,-2.22,-.36,-3.12,-1.29,-3.42],["z"]],w:9.956,h:14.982},7:{d:[["M",.21,-14.97],["c",.21,-.06,.45,0,.54,.15],["c",.06,.09,.06,.15,.06,.39],["c",0,.24,0,.33,.06,.42],["c",.06,.12,.21,.24,.27,.24],["c",.03,0,.12,-.12,.24,-.21],["c",.96,-1.2,2.58,-1.35,3.99,-.42],["c",.15,.12,.42,.3,.54,.45],["c",.48,.39,.81,.57,1.29,.6],["c",.69,.03,1.5,-.3,2.13,-.87],["c",.09,-.09,.27,-.3,.39,-.45],["c",.12,-.15,.24,-.27,.3,-.3],["c",.18,-.06,.39,.03,.51,.21],["c",.06,.18,.06,.24,-.27,.72],["c",-.18,.24,-.54,.78,-.78,1.17],["c",-2.37,3.54,-3.54,6.27,-3.87,9],["c",-.03,.33,-.03,.66,-.03,1.26],["c",0,.9,0,1.08,.15,1.89],["c",.06,.45,.06,.48,.03,.6],["c",-.06,.09,-.21,.21,-.3,.21],["c",-.03,0,-.27,-.06,-.54,-.15],["c",-.84,-.27,-1.11,-.3,-1.65,-.3],["c",-.57,0,-.84,.03,-1.56,.27],["c",-.6,.18,-.69,.21,-.81,.15],["c",-.12,-.06,-.21,-.18,-.21,-.3],["c",0,-.15,.6,-1.44,1.2,-2.61],["c",1.14,-2.22,2.73,-4.68,5.1,-8.01],["c",.21,-.27,.36,-.48,.33,-.48],["c",0,0,-.12,.06,-.27,.12],["c",-.54,.3,-.99,.39,-1.56,.39],["c",-.75,.03,-1.2,-.18,-1.83,-.75],["c",-.99,-.9,-1.83,-1.17,-2.31,-.72],["c",-.18,.15,-.36,.51,-.45,.84],["c",-.06,.24,-.06,.33,-.09,1.98],["c",0,1.62,-.03,1.74,-.06,1.8],["c",-.15,.24,-.54,.24,-.69,0],["c",-.06,-.09,-.06,-.15,-.06,-3.57],["c",0,-3.42,0,-3.48,.06,-3.57],["c",.03,-.06,.09,-.12,.15,-.15],["z"]],w:10.561,h:15.093},8:{d:[["M",4.98,-14.97],["c",.33,-.03,1.02,-.03,1.32,0],["c",1.32,.12,2.49,.6,3.21,1.32],["c",.39,.39,.66,.81,.78,1.29],["c",.09,.36,.09,1.08,0,1.44],["c",-.21,.84,-.66,1.59,-1.59,2.55],["l",-.3,.3],["l",.27,.18],["c",1.47,.93,2.31,2.31,2.25,3.75],["c",-.03,.75,-.24,1.35,-.63,1.95],["c",-.45,.66,-1.02,1.14,-1.83,1.53],["c",-1.8,.87,-4.2,.87,-6,.03],["c",-1.62,-.78,-2.52,-2.16,-2.46,-3.66],["c",.06,-.99,.54,-1.77,1.8,-2.97],["c",.54,-.51,.54,-.54,.48,-.57],["c",-.39,-.27,-.96,-.78,-1.2,-1.14],["c",-.75,-1.11,-.87,-2.4,-.3,-3.6],["c",.69,-1.35,2.25,-2.25,4.2,-2.4],["z"],["m",1.53,.69],["c",-.42,-.09,-1.11,-.12,-1.38,-.06],["c",-.3,.06,-.6,.18,-.81,.3],["c",-.21,.12,-.6,.51,-.72,.72],["c",-.51,.87,-.42,1.89,.21,2.52],["c",.21,.21,.36,.3,1.95,1.23],["c",.96,.54,1.74,.99,1.77,1.02],["c",.09,0,.63,-.6,.99,-1.11],["c",.21,-.36,.48,-.87,.57,-1.23],["c",.06,-.24,.06,-.36,.06,-.72],["c",0,-.45,-.03,-.66,-.15,-.99],["c",-.39,-.81,-1.29,-1.44,-2.49,-1.68],["z"],["m",-1.44,8.07],["l",-1.89,-1.08],["c",-.03,0,-.18,.15,-.39,.33],["c",-1.2,1.08,-1.65,1.95,-1.59,3],["c",.09,1.59,1.35,2.85,3.21,3.24],["c",.33,.06,.45,.06,.93,.06],["c",.63,0,.81,-.03,1.29,-.27],["c",.9,-.42,1.47,-1.41,1.41,-2.4],["c",-.06,-.66,-.39,-1.29,-.9,-1.65],["c",-.12,-.09,-1.05,-.63,-2.07,-1.23],["z"]],w:10.926,h:14.989},9:{d:[["M",4.23,-14.97],["c",.42,-.03,1.29,0,1.62,.06],["c",.51,.12,.93,.3,1.38,.57],["c",1.53,1.02,2.52,3.24,2.73,5.94],["c",.18,2.55,-.48,4.98,-1.83,6.57],["c",-1.05,1.26,-2.4,1.89,-3.93,1.83],["c",-1.23,-.06,-2.31,-.45,-3.03,-1.14],["c",-.57,-.51,-.87,-1.23,-.84,-1.98],["c",.03,-.51,.21,-.9,.6,-1.26],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.39,.36,.57,.78,.57,1.26],["c",0,.27,0,.3,-.09,.42],["c",-.03,.09,-.18,.21,-.3,.3],["c",-.12,.09,-.3,.21,-.39,.27],["c",-.09,.06,-.21,.18,-.27,.24],["c",-.06,.12,-.06,.15,-.06,.33],["c",0,.18,0,.24,.06,.36],["c",.24,.39,.75,.6,1.38,.57],["c",.54,-.03,.9,-.18,1.23,-.48],["c",.81,-.72,1.08,-2.16,.96,-5.37],["l",0,-.63],["l",-.3,.12],["c",-.78,.27,-1.29,.33,-2.1,.27],["c",-1.47,-.12,-2.49,-.54,-3.27,-1.29],["c",-.48,-.51,-.81,-1.11,-.96,-1.89],["c",-.06,-.27,-.06,-.42,-.06,-.96],["c",0,-.51,0,-.66,.06,-.93],["c",.15,-.78,.48,-1.38,.96,-1.89],["c",.15,-.12,.33,-.27,.42,-.36],["c",.69,-.51,1.62,-.81,2.76,-.93],["z"],["m",1.17,.66],["c",-.21,-.06,-.57,-.06,-.81,-.03],["c",-.78,.12,-1.26,.69,-1.41,1.74],["c",-.12,.63,-.15,1.95,-.09,2.79],["c",.12,1.71,.63,2.4,1.77,2.46],["c",1.08,.03,1.62,-.48,1.8,-1.74],["c",.06,-.54,.06,-3,0,-3.54],["c",-.15,-1.05,-.51,-1.53,-1.26,-1.68],["z"]],w:9.959,h:14.986},"rests.multimeasure":{d:[["M",0,-4],["l",0,16],["l",1,0],["l",0,-5],["l",40,0],["l",0,5],["l",1,0],["l",0,-16],["l",-1,0],["l",0,5],["l",-40,0],["l",0,-5],["z"]],w:42,h:18},"rests.whole":{d:[["M",.06,.03],["l",.09,-.06],["l",5.46,0],["l",5.49,0],["l",.09,.06],["l",.06,.09],["l",0,2.19],["l",0,2.19],["l",-.06,.09],["l",-.09,.06],["l",-5.49,0],["l",-5.46,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.half":{d:[["M",.06,-4.62],["l",.09,-.06],["l",5.46,0],["l",5.49,0],["l",.09,.06],["l",.06,.09],["l",0,2.19],["l",0,2.19],["l",-.06,.09],["l",-.09,.06],["l",-5.49,0],["l",-5.46,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.quarter":{d:[["M",1.89,-11.82],["c",.12,-.06,.24,-.06,.36,-.03],["c",.09,.06,4.74,5.58,4.86,5.82],["c",.21,.39,.15,.78,-.15,1.26],["c",-.24,.33,-.72,.81,-1.62,1.56],["c",-.45,.36,-.87,.75,-.96,.84],["c",-.93,.99,-1.14,2.49,-.6,3.63],["c",.18,.39,.27,.48,1.32,1.68],["c",1.92,2.25,1.83,2.16,1.83,2.34],["c",0,.18,-.18,.36,-.36,.39],["c",-.15,0,-.27,-.06,-.48,-.27],["c",-.75,-.75,-2.46,-1.29,-3.39,-1.08],["c",-.45,.09,-.69,.27,-.9,.69],["c",-.12,.3,-.21,.66,-.24,1.14],["c",-.03,.66,.09,1.35,.3,2.01],["c",.15,.42,.24,.66,.45,.96],["c",.18,.24,.18,.33,.03,.42],["c",-.12,.06,-.18,.03,-.45,-.3],["c",-1.08,-1.38,-2.07,-3.36,-2.4,-4.83],["c",-.27,-1.05,-.15,-1.77,.27,-2.07],["c",.21,-.12,.42,-.15,.87,-.15],["c",.87,.06,2.1,.39,3.3,.9],["l",.39,.18],["l",-1.65,-1.95],["c",-2.52,-2.97,-2.61,-3.09,-2.7,-3.27],["c",-.09,-.24,-.12,-.48,-.03,-.75],["c",.15,-.48,.57,-.96,1.83,-2.01],["c",.45,-.36,.84,-.72,.93,-.78],["c",.69,-.75,1.02,-1.8,.9,-2.79],["c",-.06,-.33,-.21,-.84,-.39,-1.11],["c",-.09,-.15,-.45,-.6,-.81,-1.05],["c",-.36,-.42,-.69,-.81,-.72,-.87],["c",-.09,-.18,0,-.42,.21,-.51],["z"]],w:7.888,h:21.435},"rests.8th":{d:[["M",1.68,-6.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.12,0,.18,0,.33,-.09],["c",.39,-.18,1.32,-1.29,1.68,-1.98],["c",.09,-.21,.24,-.3,.39,-.3],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.27,1.11,-1.86,6.42],["c",-1.02,3.48,-1.89,6.39,-1.92,6.42],["c",0,.03,-.12,.12,-.24,.15],["c",-.18,.09,-.21,.09,-.45,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.15,-.57,1.68,-4.92],["c",.96,-2.67,1.74,-4.89,1.71,-4.89],["l",-.51,.15],["c",-1.08,.36,-1.74,.48,-2.55,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:7.534,h:13.883},"rests.16th":{d:[["M",3.33,-6.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.15,.39,.57,.57,.87,.42],["c",.39,-.18,1.2,-1.23,1.62,-2.07],["c",.06,-.15,.24,-.24,.36,-.24],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.45,1.86,-2.67,10.17],["c",-1.5,5.55,-2.73,10.14,-2.76,10.17],["c",-.03,.03,-.12,.12,-.24,.15],["c",-.18,.09,-.21,.09,-.45,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.12,-.57,1.44,-4.92],["c",.81,-2.67,1.47,-4.86,1.47,-4.89],["c",-.03,0,-.27,.06,-.54,.15],["c",-1.08,.36,-1.77,.48,-2.58,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.09,.09,.27,.18,.45,.21],["c",.12,0,.18,0,.33,-.09],["c",.33,-.15,1.02,-.93,1.41,-1.59],["c",.12,-.21,.18,-.39,.39,-1.08],["c",.66,-2.1,1.17,-3.84,1.17,-3.87],["c",0,0,-.21,.06,-.42,.15],["c",-.51,.15,-1.2,.33,-1.68,.42],["c",-.33,.06,-.51,.06,-.96,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:9.724,h:21.383},"rests.32nd":{d:[["M",4.23,-13.62],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.12,0,.18,0,.27,-.06],["c",.33,-.21,.99,-1.11,1.44,-1.98],["c",.09,-.24,.21,-.33,.39,-.33],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.57,2.67,-3.21,13.89],["c",-1.8,7.62,-3.3,13.89,-3.3,13.92],["c",-.03,.06,-.12,.12,-.24,.18],["c",-.21,.09,-.24,.09,-.48,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.09,-.57,1.23,-4.92],["c",.69,-2.67,1.26,-4.86,1.29,-4.89],["c",0,-.03,-.12,-.03,-.48,.12],["c",-1.17,.39,-2.22,.57,-3,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.12,.09,.3,.18,.48,.21],["c",.12,0,.18,0,.3,-.09],["c",.42,-.21,1.29,-1.29,1.56,-1.89],["c",.03,-.12,1.23,-4.59,1.23,-4.65],["c",0,-.03,-.18,.03,-.39,.12],["c",-.63,.18,-1.2,.36,-1.74,.45],["c",-.39,.06,-.54,.06,-1.02,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.18,.18,.51,.27,.72,.15],["c",.3,-.12,.69,-.57,1.08,-1.17],["c",.42,-.6,.39,-.51,1.05,-3.03],["c",.33,-1.26,.6,-2.31,.6,-2.34],["c",0,0,-.21,.03,-.45,.12],["c",-.57,.18,-1.14,.33,-1.62,.42],["c",-.33,.06,-.51,.06,-.96,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:11.373,h:28.883},"rests.64th":{d:[["M",5.13,-13.62],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.21,.54,.3,.75,.18],["c",.24,-.12,.63,-.66,1.08,-1.56],["c",.33,-.66,.39,-.72,.6,-.72],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.69,3.66,-3.54,17.64],["c",-1.95,9.66,-3.57,17.61,-3.57,17.64],["c",-.03,.06,-.12,.12,-.24,.18],["c",-.21,.09,-.24,.09,-.48,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.06,-.57,1.05,-4.95],["c",.6,-2.7,1.08,-4.89,1.08,-4.92],["c",0,0,-.24,.06,-.51,.15],["c",-.66,.24,-1.2,.36,-1.77,.48],["c",-.42,.06,-.57,.06,-1.05,.06],["c",-.69,0,-.87,-.03,-1.35,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.09,.09,.27,.18,.45,.21],["c",.21,.03,.39,-.09,.72,-.42],["c",.45,-.45,1.02,-1.26,1.17,-1.65],["c",.03,-.09,.27,-1.14,.54,-2.34],["c",.27,-1.2,.48,-2.19,.51,-2.22],["c",0,-.03,-.09,-.03,-.48,.12],["c",-1.17,.39,-2.22,.57,-3,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.15,.39,.57,.57,.9,.42],["c",.36,-.18,1.2,-1.26,1.47,-1.89],["c",.03,-.09,.3,-1.2,.57,-2.43],["l",.51,-2.28],["l",-.54,.18],["c",-1.11,.36,-1.8,.48,-2.61,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.21,.21,.54,.3,.75,.18],["c",.36,-.18,.93,-.93,1.29,-1.68],["c",.12,-.24,.18,-.48,.63,-2.55],["l",.51,-2.31],["c",0,-.03,-.18,.03,-.39,.12],["c",-1.14,.36,-2.1,.54,-2.82,.51],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:12.453,h:36.383},"rests.128th":{d:[["M",6.03,-21.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.21,0,.33,-.06,.54,-.36],["c",.15,-.21,.54,-.93,.78,-1.47],["c",.15,-.33,.18,-.39,.3,-.48],["c",.18,-.09,.45,0,.51,.15],["c",.03,.09,-7.11,42.75,-7.17,42.84],["c",-.03,.03,-.15,.09,-.24,.15],["c",-.18,.06,-.24,.06,-.45,.06],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.03,-.57,.84,-4.98],["c",.51,-2.7,.93,-4.92,.9,-4.92],["c",0,0,-.15,.06,-.36,.12],["c",-.78,.27,-1.62,.48,-2.31,.57],["c",-.15,.03,-.54,.03,-.81,.03],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.63,.48],["c",.12,0,.18,0,.3,-.09],["c",.42,-.21,1.14,-1.11,1.5,-1.83],["c",.12,-.27,.12,-.27,.54,-2.52],["c",.24,-1.23,.42,-2.25,.39,-2.25],["c",0,0,-.24,.06,-.51,.18],["c",-1.26,.39,-2.25,.57,-3.06,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.21,.51,.3,.75,.18],["c",.36,-.15,1.05,-.99,1.41,-1.77],["l",.15,-.3],["l",.42,-2.25],["c",.21,-1.26,.42,-2.28,.39,-2.28],["l",-.51,.15],["c",-1.11,.39,-1.89,.51,-2.7,.51],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.18,.48,.27,.72,.21],["c",.33,-.12,1.14,-1.26,1.41,-1.95],["c",0,-.09,.21,-1.11,.45,-2.34],["c",.21,-1.2,.39,-2.22,.39,-2.28],["c",.03,-.03,0,-.03,-.45,.12],["c",-.57,.18,-1.2,.33,-1.71,.42],["c",-.3,.06,-.51,.06,-.93,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.18,0,.36,-.09,.57,-.33],["c",.33,-.36,.78,-1.14,.93,-1.56],["c",.03,-.12,.24,-1.2,.45,-2.4],["c",.24,-1.2,.42,-2.22,.42,-2.28],["c",.03,-.03,0,-.03,-.39,.09],["c",-1.05,.36,-1.8,.48,-2.58,.48],["c",-.63,0,-.84,-.03,-1.29,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:12.992,h:43.883},"accidentals.sharp":{d:[["M",5.73,-11.19],["c",.21,-.12,.54,-.03,.66,.24],["c",.06,.12,.06,.21,.06,2.31],["c",0,1.23,0,2.22,.03,2.22],["c",0,0,.27,-.12,.6,-.24],["c",.69,-.27,.78,-.3,.96,-.15],["c",.21,.15,.21,.18,.21,1.38],["c",0,1.02,0,1.11,-.06,1.2],["c",-.03,.06,-.09,.12,-.12,.15],["c",-.06,.03,-.42,.21,-.84,.36],["l",-.75,.33],["l",-.03,2.43],["c",0,1.32,0,2.43,.03,2.43],["c",0,0,.27,-.12,.6,-.24],["c",.69,-.27,.78,-.3,.96,-.15],["c",.21,.15,.21,.18,.21,1.38],["c",0,1.02,0,1.11,-.06,1.2],["c",-.03,.06,-.09,.12,-.12,.15],["c",-.06,.03,-.42,.21,-.84,.36],["l",-.75,.33],["l",-.03,2.52],["c",0,2.28,-.03,2.55,-.06,2.64],["c",-.21,.36,-.72,.36,-.93,0],["c",-.03,-.09,-.06,-.33,-.06,-2.43],["l",0,-2.31],["l",-1.29,.51],["l",-1.26,.51],["l",0,2.43],["c",0,2.58,0,2.52,-.15,2.67],["c",-.06,.09,-.27,.18,-.36,.18],["c",-.12,0,-.33,-.09,-.39,-.18],["c",-.15,-.15,-.15,-.09,-.15,-2.43],["c",0,-1.23,0,-2.22,-.03,-2.22],["c",0,0,-.27,.12,-.6,.24],["c",-.69,.27,-.78,.3,-.96,.15],["c",-.21,-.15,-.21,-.18,-.21,-1.38],["c",0,-1.02,0,-1.11,.06,-1.2],["c",.03,-.06,.09,-.12,.12,-.15],["c",.06,-.03,.42,-.21,.84,-.36],["l",.78,-.33],["l",0,-2.43],["c",0,-1.32,0,-2.43,-.03,-2.43],["c",0,0,-.27,.12,-.6,.24],["c",-.69,.27,-.78,.3,-.96,.15],["c",-.21,-.15,-.21,-.18,-.21,-1.38],["c",0,-1.02,0,-1.11,.06,-1.2],["c",.03,-.06,.09,-.12,.12,-.15],["c",.06,-.03,.42,-.21,.84,-.36],["l",.78,-.33],["l",0,-2.52],["c",0,-2.28,.03,-2.55,.06,-2.64],["c",.21,-.36,.72,-.36,.93,0],["c",.03,.09,.06,.33,.06,2.43],["l",.03,2.31],["l",1.26,-.51],["l",1.26,-.51],["l",0,-2.43],["c",0,-2.28,0,-2.43,.06,-2.55],["c",.06,-.12,.12,-.18,.27,-.24],["z"],["m",-.33,10.65],["l",0,-2.43],["l",-1.29,.51],["l",-1.26,.51],["l",0,2.46],["l",0,2.43],["l",.09,-.03],["c",.06,-.03,.63,-.27,1.29,-.51],["l",1.17,-.48],["l",0,-2.46],["z"]],w:8.25,h:22.462},"accidentals.halfsharp":{d:[["M",2.43,-10.05],["c",.21,-.12,.54,-.03,.66,.24],["c",.06,.12,.06,.21,.06,2.01],["c",0,1.05,0,1.89,.03,1.89],["l",.72,-.48],["c",.69,-.48,.69,-.51,.87,-.51],["c",.15,0,.18,.03,.27,.09],["c",.21,.15,.21,.18,.21,1.41],["c",0,1.11,-.03,1.14,-.09,1.23],["c",-.03,.03,-.48,.39,-1.02,.75],["l",-.99,.66],["l",0,2.37],["c",0,1.32,0,2.37,.03,2.37],["l",.72,-.48],["c",.69,-.48,.69,-.51,.87,-.51],["c",.15,0,.18,.03,.27,.09],["c",.21,.15,.21,.18,.21,1.41],["c",0,1.11,-.03,1.14,-.09,1.23],["c",-.03,.03,-.48,.39,-1.02,.75],["l",-.99,.66],["l",0,2.25],["c",0,1.95,0,2.28,-.06,2.37],["c",-.06,.12,-.12,.21,-.24,.27],["c",-.27,.12,-.54,.03,-.69,-.24],["c",-.06,-.12,-.06,-.21,-.06,-2.01],["c",0,-1.05,0,-1.89,-.03,-1.89],["l",-.72,.48],["c",-.69,.48,-.69,.48,-.87,.48],["c",-.15,0,-.18,0,-.27,-.06],["c",-.21,-.15,-.21,-.18,-.21,-1.41],["c",0,-1.11,.03,-1.14,.09,-1.23],["c",.03,-.03,.48,-.39,1.02,-.75],["l",.99,-.66],["l",0,-2.37],["c",0,-1.32,0,-2.37,-.03,-2.37],["l",-.72,.48],["c",-.69,.48,-.69,.48,-.87,.48],["c",-.15,0,-.18,0,-.27,-.06],["c",-.21,-.15,-.21,-.18,-.21,-1.41],["c",0,-1.11,.03,-1.14,.09,-1.23],["c",.03,-.03,.48,-.39,1.02,-.75],["l",.99,-.66],["l",0,-2.25],["c",0,-2.13,0,-2.28,.06,-2.4],["c",.06,-.12,.12,-.18,.27,-.24],["z"]],w:5.25,h:20.174},"accidentals.nat":{d:[["M",.21,-11.4],["c",.24,-.06,.78,0,.99,.15],["c",.03,.03,.03,.48,0,2.61],["c",-.03,1.44,-.03,2.61,-.03,2.61],["c",0,.03,.75,-.09,1.68,-.24],["c",.96,-.18,1.71,-.27,1.74,-.27],["c",.15,.03,.27,.15,.36,.3],["l",.06,.12],["l",.09,8.67],["c",.09,6.96,.12,8.67,.09,8.67],["c",-.03,.03,-.12,.06,-.21,.09],["c",-.24,.09,-.72,.09,-.96,0],["c",-.09,-.03,-.18,-.06,-.21,-.09],["c",-.03,-.03,-.03,-.48,0,-2.61],["c",.03,-1.44,.03,-2.61,.03,-2.61],["c",0,-.03,-.75,.09,-1.68,.24],["c",-.96,.18,-1.71,.27,-1.74,.27],["c",-.15,-.03,-.27,-.15,-.36,-.3],["l",-.06,-.15],["l",-.09,-7.53],["c",-.06,-4.14,-.09,-8.04,-.12,-8.67],["l",0,-1.11],["l",.15,-.06],["c",.09,-.03,.21,-.06,.27,-.09],["z"],["m",3.75,8.4],["c",0,-.33,0,-.42,-.03,-.42],["c",-.12,0,-2.79,.45,-2.79,.48],["c",-.03,0,-.09,6.3,-.09,6.33],["c",.03,0,2.79,-.45,2.82,-.48],["c",0,0,.09,-4.53,.09,-5.91],["z"]],w:5.4,h:22.8},"accidentals.flat":{d:[["M",-.36,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"]],w:6.75,h:18.801},"accidentals.halfflat":{d:[["M",4.83,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.6,-.12,9.06],["c",-.09,5.55,-.15,9.06,-.18,9.12],["c",-.03,.09,-.09,.18,-.15,.27],["c",-.24,.21,-.54,.24,-.81,.06],["c",-.06,-.03,-.27,-.24,-.45,-.42],["c",-.36,-.42,-.66,-.66,-1.8,-1.44],["c",-1.23,-.84,-1.83,-1.32,-2.25,-1.77],["c",-.66,-.78,-.96,-1.56,-.93,-2.46],["c",.09,-1.41,1.11,-2.58,2.4,-2.79],["c",.3,-.06,.84,-.03,1.23,.06],["c",.54,.12,1.08,.33,1.53,.63],["c",.12,.09,.24,.15,.24,.12],["c",0,0,-.12,-8.37,-.18,-9.75],["l",0,-.66],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",-1.65,10.95],["c",-.6,-.18,-1.08,.09,-1.38,.69],["c",-.27,.6,-.36,1.38,-.18,2.07],["c",.12,.42,.42,.99,.72,1.41],["c",.3,.42,.93,1.05,1.56,1.59],["l",.48,.39],["l",0,-.12],["c",.03,-.09,.03,-.48,.06,-.9],["c",.03,-.57,.03,-1.08,0,-2.22],["c",-.03,-1.62,-.03,-1.62,-.24,-2.07],["c",-.21,-.42,-.6,-.75,-1.02,-.84],["z"]],w:6.728,h:18.801},"accidentals.dblflat":{d:[["M",-.36,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"],["m",3,-11],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"]],w:12.1,h:18.804},"accidentals.dblsharp":{d:[["M",-.18,-3.96],["c",.06,-.03,.12,-.06,.15,-.06],["c",.09,0,2.76,.27,2.79,.3],["c",.12,.03,.15,.12,.15,.51],["c",.06,.96,.24,1.59,.57,2.1],["c",.06,.09,.15,.21,.18,.24],["l",.09,.06],["l",.09,-.06],["c",.03,-.03,.12,-.15,.18,-.24],["c",.33,-.51,.51,-1.14,.57,-2.1],["c",0,-.39,.03,-.45,.12,-.51],["c",.03,0,.66,-.09,1.44,-.15],["c",1.47,-.15,1.5,-.15,1.56,-.03],["c",.03,.06,0,.42,-.09,1.44],["c",-.09,.72,-.15,1.35,-.15,1.38],["c",0,.03,-.03,.09,-.06,.12],["c",-.06,.06,-.12,.09,-.51,.09],["c",-1.08,.06,-1.8,.3,-2.28,.75],["l",-.12,.09],["l",.09,.09],["c",.12,.15,.39,.33,.63,.45],["c",.42,.18,.96,.27,1.68,.33],["c",.39,0,.45,.03,.51,.09],["c",.03,.03,.06,.09,.06,.12],["c",0,.03,.06,.66,.15,1.38],["c",.09,1.02,.12,1.38,.09,1.44],["c",-.06,.12,-.09,.12,-1.56,-.03],["c",-.78,-.06,-1.41,-.15,-1.44,-.15],["c",-.09,-.06,-.12,-.12,-.12,-.54],["c",-.06,-.93,-.24,-1.56,-.57,-2.07],["c",-.06,-.09,-.15,-.21,-.18,-.24],["l",-.09,-.06],["l",-.09,.06],["c",-.03,.03,-.12,.15,-.18,.24],["c",-.33,.51,-.51,1.14,-.57,2.07],["c",0,.42,-.03,.48,-.12,.54],["c",-.03,0,-.66,.09,-1.44,.15],["c",-1.47,.15,-1.5,.15,-1.56,.03],["c",-.03,-.06,0,-.42,.09,-1.44],["c",.09,-.72,.15,-1.35,.15,-1.38],["c",0,-.03,.03,-.09,.06,-.12],["c",.06,-.06,.12,-.09,.51,-.09],["c",.72,-.06,1.26,-.15,1.68,-.33],["c",.24,-.12,.51,-.3,.63,-.45],["l",.09,-.09],["l",-.12,-.09],["c",-.48,-.45,-1.2,-.69,-2.28,-.75],["c",-.39,0,-.45,-.03,-.51,-.09],["c",-.03,-.03,-.06,-.09,-.06,-.12],["c",0,-.03,-.06,-.63,-.12,-1.38],["c",-.09,-.72,-.15,-1.35,-.15,-1.38],["z"]],w:7.95,h:7.977},"dots.dot":{d:[["M",1.32,-1.68],["c",.09,-.03,.27,-.06,.39,-.06],["c",.96,0,1.74,.78,1.74,1.71],["c",0,.96,-.78,1.74,-1.71,1.74],["c",-.96,0,-1.74,-.78,-1.74,-1.71],["c",0,-.78,.54,-1.5,1.32,-1.68],["z"]],w:3.45,h:3.45},"noteheads.dbl":{d:[["M",-.69,-4.02],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["c",.06,.15,.06,.18,.06,1.41],["l",0,1.23],["l",.12,-.18],["c",.72,-1.26,2.64,-2.31,4.86,-2.64],["c",.81,-.15,1.11,-.15,2.13,-.15],["c",.99,0,1.29,0,2.1,.15],["c",.75,.12,1.38,.27,2.04,.54],["c",1.35,.51,2.34,1.26,2.82,2.1],["l",.12,.18],["l",0,-1.23],["c",0,-1.2,0,-1.26,.06,-1.38],["c",.09,-.18,.15,-.24,.33,-.33],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,3.54],["l",0,3.54],["l",-.06,.15],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.06,-.12,-.06,-.18,-.06,-1.38],["l",0,-1.23],["l",-.12,.18],["c",-.48,.84,-1.47,1.59,-2.82,2.1],["c",-.84,.33,-1.71,.54,-2.85,.66],["c",-.45,.06,-2.16,.06,-2.61,0],["c",-1.14,-.12,-2.01,-.33,-2.85,-.66],["c",-1.35,-.51,-2.34,-1.26,-2.82,-2.1],["l",-.12,-.18],["l",0,1.23],["c",0,1.23,0,1.26,-.06,1.38],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["l",-.06,-.15],["l",0,-3.54],["c",0,-3.48,0,-3.54,.06,-3.66],["c",.09,-.18,.15,-.24,.33,-.33],["z"],["m",7.71,.63],["c",-.36,-.06,-.9,-.06,-1.14,0],["c",-.3,.03,-.66,.24,-.87,.42],["c",-.6,.54,-.9,1.62,-.75,2.82],["c",.12,.93,.51,1.68,1.11,2.31],["c",.75,.72,1.83,1.2,2.85,1.26],["c",1.05,.06,1.83,-.54,2.1,-1.65],["c",.21,-.9,.12,-1.95,-.24,-2.82],["c",-.36,-.81,-1.08,-1.53,-1.95,-1.95],["c",-.3,-.15,-.78,-.3,-1.11,-.39],["z"]],w:16.83,h:8.145},"noteheads.whole":{d:[["M",6.51,-4.05],["c",.51,-.03,2.01,0,2.52,.03],["c",1.41,.18,2.64,.51,3.72,1.08],["c",1.2,.63,1.95,1.41,2.19,2.31],["c",.09,.33,.09,.9,0,1.23],["c",-.24,.9,-.99,1.68,-2.19,2.31],["c",-1.08,.57,-2.28,.9,-3.75,1.08],["c",-.66,.06,-2.31,.06,-2.97,0],["c",-1.47,-.18,-2.67,-.51,-3.75,-1.08],["c",-1.2,-.63,-1.95,-1.41,-2.19,-2.31],["c",-.09,-.33,-.09,-.9,0,-1.23],["c",.24,-.9,.99,-1.68,2.19,-2.31],["c",1.2,-.63,2.61,-.99,4.23,-1.11],["z"],["m",.57,.66],["c",-.87,-.15,-1.53,0,-2.04,.51],["c",-.15,.15,-.24,.27,-.33,.48],["c",-.24,.51,-.36,1.08,-.33,1.77],["c",.03,.69,.18,1.26,.42,1.77],["c",.6,1.17,1.74,1.98,3.18,2.22],["c",1.11,.21,1.95,-.15,2.34,-.99],["c",.24,-.51,.36,-1.08,.33,-1.8],["c",-.06,-1.11,-.45,-2.04,-1.17,-2.76],["c",-.63,-.63,-1.47,-1.05,-2.4,-1.2],["z"]],w:14.985,h:8.097},"noteheads.half":{d:[["M",7.44,-4.05],["c",.06,-.03,.27,-.03,.48,-.03],["c",1.05,0,1.71,.24,2.1,.81],["c",.42,.6,.45,1.35,.18,2.4],["c",-.42,1.59,-1.14,2.73,-2.16,3.39],["c",-1.41,.93,-3.18,1.44,-5.4,1.53],["c",-1.17,.03,-1.89,-.21,-2.28,-.81],["c",-.42,-.6,-.45,-1.35,-.18,-2.4],["c",.42,-1.59,1.14,-2.73,2.16,-3.39],["c",.63,-.42,1.23,-.72,1.98,-.96],["c",.9,-.3,1.65,-.42,3.12,-.54],["z"],["m",1.29,.87],["c",-.27,-.09,-.63,-.12,-.9,-.03],["c",-.72,.24,-1.53,.69,-3.27,1.8],["c",-2.34,1.5,-3.3,2.25,-3.57,2.79],["c",-.36,.72,-.06,1.5,.66,1.77],["c",.24,.12,.69,.09,.99,0],["c",.84,-.3,1.92,-.93,4.14,-2.37],["c",1.62,-1.08,2.37,-1.71,2.61,-2.19],["c",.36,-.72,.06,-1.5,-.66,-1.77],["z"]],w:10.37,h:8.132},"noteheads.quarter":{d:[["M",6.09,-4.05],["c",.36,-.03,1.2,0,1.53,.06],["c",1.17,.24,1.89,.84,2.16,1.83],["c",.06,.18,.06,.3,.06,.66],["c",0,.45,0,.63,-.15,1.08],["c",-.66,2.04,-3.06,3.93,-5.52,4.38],["c",-.54,.09,-1.44,.09,-1.83,.03],["c",-1.23,-.27,-1.98,-.87,-2.25,-1.86],["c",-.06,-.18,-.06,-.3,-.06,-.66],["c",0,-.45,0,-.63,.15,-1.08],["c",.24,-.78,.75,-1.53,1.44,-2.22],["c",1.2,-1.2,2.85,-2.01,4.47,-2.22],["z"]],w:9.81,h:8.094},"noteheads.slash.nostem":{d:[["M",9.3,-7.77],["c",.06,-.06,.18,-.06,1.71,-.06],["l",1.65,0],["l",.09,.09],["c",.06,.06,.06,.09,.06,.15],["c",-.03,.12,-9.21,15.24,-9.3,15.33],["c",-.06,.06,-.18,.06,-1.71,.06],["l",-1.65,0],["l",-.09,-.09],["c",-.06,-.06,-.06,-.09,-.06,-.15],["c",.03,-.12,9.21,-15.24,9.3,-15.33],["z"]],w:12.81,h:15.63},"noteheads.indeterminate":{d:[["M",.78,-4.05],["c",.12,-.03,.24,-.03,.36,.03],["c",.03,.03,.93,.72,1.95,1.56],["l",1.86,1.5],["l",1.86,-1.5],["c",1.02,-.84,1.92,-1.53,1.95,-1.56],["c",.21,-.12,.33,-.09,.75,.24],["c",.3,.27,.36,.36,.36,.54],["c",0,.03,-.03,.12,-.06,.18],["c",-.03,.06,-.9,.75,-1.89,1.56],["l",-1.8,1.47],["c",0,.03,.81,.69,1.8,1.5],["c",.99,.81,1.86,1.5,1.89,1.56],["c",.03,.06,.06,.15,.06,.18],["c",0,.18,-.06,.27,-.36,.54],["c",-.42,.33,-.54,.36,-.75,.24],["c",-.03,-.03,-.93,-.72,-1.95,-1.56],["l",-1.86,-1.5],["l",-1.86,1.5],["c",-1.02,.84,-1.92,1.53,-1.95,1.56],["c",-.21,.12,-.33,.09,-.75,-.24],["c",-.3,-.27,-.36,-.36,-.36,-.54],["c",0,-.03,.03,-.12,.06,-.18],["c",.03,-.06,.9,-.75,1.89,-1.56],["l",1.8,-1.47],["c",0,-.03,-.81,-.69,-1.8,-1.5],["c",-.99,-.81,-1.86,-1.5,-1.89,-1.56],["c",-.06,-.12,-.09,-.21,-.03,-.36],["c",.03,-.09,.57,-.57,.72,-.63],["z"]],w:9.843,h:8.139},"scripts.ufermata":{d:[["M",-.75,-10.77],["c",.12,0,.45,-.03,.69,-.03],["c",2.91,-.03,5.55,1.53,7.41,4.35],["c",1.17,1.71,1.95,3.72,2.43,6.03],["c",.12,.51,.12,.57,.03,.69],["c",-.12,.21,-.48,.27,-.69,.12],["c",-.12,-.09,-.18,-.24,-.27,-.69],["c",-.78,-3.63,-3.42,-6.54,-6.78,-7.38],["c",-.78,-.21,-1.2,-.24,-2.07,-.24],["c",-.63,0,-.84,0,-1.2,.06],["c",-1.83,.27,-3.42,1.08,-4.8,2.37],["c",-1.41,1.35,-2.4,3.21,-2.85,5.19],["c",-.09,.45,-.15,.6,-.27,.69],["c",-.21,.15,-.57,.09,-.69,-.12],["c",-.09,-.12,-.09,-.18,.03,-.69],["c",.33,-1.62,.78,-3,1.47,-4.38],["c",1.77,-3.54,4.44,-5.67,7.56,-5.97],["z"],["m",.33,7.47],["c",1.38,-.3,2.58,.9,2.31,2.25],["c",-.15,.72,-.78,1.35,-1.47,1.5],["c",-1.38,.27,-2.58,-.93,-2.31,-2.31],["c",.15,-.69,.78,-1.29,1.47,-1.44],["z"]],w:19.748,h:11.289},"scripts.dfermata":{d:[["M",-9.63,-.42],["c",.15,-.09,.36,-.06,.51,.03],["c",.12,.09,.18,.24,.27,.66],["c",.78,3.66,3.42,6.57,6.78,7.41],["c",.78,.21,1.2,.24,2.07,.24],["c",.63,0,.84,0,1.2,-.06],["c",1.83,-.27,3.42,-1.08,4.8,-2.37],["c",1.41,-1.35,2.4,-3.21,2.85,-5.22],["c",.09,-.42,.15,-.57,.27,-.66],["c",.21,-.15,.57,-.09,.69,.12],["c",.09,.12,.09,.18,-.03,.69],["c",-.33,1.62,-.78,3,-1.47,4.38],["c",-1.92,3.84,-4.89,6,-8.31,6],["c",-3.42,0,-6.39,-2.16,-8.31,-6],["c",-.48,-.96,-.84,-1.92,-1.14,-2.97],["c",-.18,-.69,-.42,-1.74,-.42,-1.92],["c",0,-.12,.09,-.27,.24,-.33],["z"],["m",9.21,0],["c",1.2,-.27,2.34,.63,2.34,1.86],["c",0,.9,-.66,1.68,-1.5,1.89],["c",-1.38,.27,-2.58,-.93,-2.31,-2.31],["c",.15,-.69,.78,-1.29,1.47,-1.44],["z"]],w:19.744,h:11.274},"scripts.sforzato":{d:[["M",-6.45,-3.69],["c",.06,-.03,.15,-.06,.18,-.06],["c",.06,0,2.85,.72,6.24,1.59],["l",6.33,1.65],["c",.33,.06,.45,.21,.45,.51],["c",0,.3,-.12,.45,-.45,.51],["l",-6.33,1.65],["c",-3.39,.87,-6.18,1.59,-6.21,1.59],["c",-.21,0,-.48,-.24,-.51,-.45],["c",0,-.15,.06,-.36,.18,-.45],["c",.09,-.06,.87,-.27,3.84,-1.05],["c",2.04,-.54,3.84,-.99,4.02,-1.02],["c",.15,-.06,1.14,-.24,2.22,-.42],["c",1.05,-.18,1.92,-.36,1.92,-.36],["c",0,0,-.87,-.18,-1.92,-.36],["c",-1.08,-.18,-2.07,-.36,-2.22,-.42],["c",-.18,-.03,-1.98,-.48,-4.02,-1.02],["c",-2.97,-.78,-3.75,-.99,-3.84,-1.05],["c",-.12,-.09,-.18,-.3,-.18,-.45],["c",.03,-.15,.15,-.3,.3,-.39],["z"]],w:13.5,h:7.5},"scripts.staccato":{d:[["M",-.36,-1.47],["c",.93,-.21,1.86,.51,1.86,1.47],["c",0,.93,-.87,1.65,-1.8,1.47],["c",-.54,-.12,-1.02,-.57,-1.14,-1.08],["c",-.21,-.81,.27,-1.65,1.08,-1.86],["z"]],w:2.989,h:3.004},"scripts.tenuto":{d:[["M",-4.2,-.48],["l",.12,-.06],["l",4.08,0],["l",4.08,0],["l",.12,.06],["c",.39,.21,.39,.75,0,.96],["l",-.12,.06],["l",-4.08,0],["l",-4.08,0],["l",-.12,-.06],["c",-.39,-.21,-.39,-.75,0,-.96],["z"]],w:8.985,h:1.08},"scripts.umarcato":{d:[["M",-.15,-8.19],["c",.15,-.12,.36,-.03,.45,.15],["c",.21,.42,3.45,7.65,3.45,7.71],["c",0,.12,-.12,.27,-.21,.3],["c",-.03,.03,-.51,.03,-1.14,.03],["c",-1.05,0,-1.08,0,-1.17,-.06],["c",-.09,-.06,-.24,-.36,-1.17,-2.4],["c",-.57,-1.29,-1.05,-2.34,-1.08,-2.34],["c",0,-.03,-.51,1.02,-1.08,2.34],["c",-.93,2.07,-1.08,2.34,-1.14,2.4],["c",-.06,.03,-.15,.06,-.18,.06],["c",-.15,0,-.33,-.18,-.33,-.33],["c",0,-.06,3.24,-7.32,3.45,-7.71],["c",.03,-.06,.09,-.15,.15,-.15],["z"]],w:7.5,h:8.245},"scripts.dmarcato":{d:[["M",-3.57,.03],["c",.03,0,.57,-.03,1.17,-.03],["c",1.05,0,1.08,0,1.17,.06],["c",.09,.06,.24,.36,1.17,2.4],["c",.57,1.29,1.05,2.34,1.08,2.34],["c",0,.03,.51,-1.02,1.08,-2.34],["c",.93,-2.07,1.08,-2.34,1.14,-2.4],["c",.06,-.03,.15,-.06,.18,-.06],["c",.15,0,.33,.18,.33,.33],["c",0,.09,-3.45,7.74,-3.54,7.83],["c",-.12,.12,-.3,.12,-.42,0],["c",-.09,-.09,-3.54,-7.74,-3.54,-7.83],["c",0,-.09,.12,-.27,.18,-.3],["z"]],w:7.5,h:8.25},"scripts.stopped":{d:[["M",-.27,-4.08],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,1.5],["l",0,1.47],["l",1.47,0],["l",1.5,0],["l",.15,.06],["c",.15,.09,.21,.15,.3,.33],["c",.09,.18,.09,.36,0,.54],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.12,.06,-.18,.06,-1.62,.06],["l",-1.47,0],["l",0,1.47],["l",0,1.47],["l",-.06,.15],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["l",-.06,-.15],["l",0,-1.47],["l",0,-1.47],["l",-1.47,0],["c",-1.44,0,-1.5,0,-1.62,-.06],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.09,-.36,0,-.54],["c",.09,-.18,.15,-.24,.33,-.33],["l",.15,-.06],["l",1.47,0],["l",1.47,0],["l",0,-1.47],["c",0,-1.44,0,-1.5,.06,-1.62],["c",.09,-.18,.15,-.24,.33,-.33],["z"]],w:8.295,h:8.295},"scripts.upbow":{d:[["M",-4.65,-15.54],["c",.12,-.09,.36,-.06,.48,.03],["c",.03,.03,.09,.09,.12,.15],["c",.03,.06,.66,2.13,1.41,4.62],["c",1.35,4.41,1.38,4.56,2.01,6.96],["l",.63,2.46],["l",.63,-2.46],["c",.63,-2.4,.66,-2.55,2.01,-6.96],["c",.75,-2.49,1.38,-4.56,1.41,-4.62],["c",.06,-.15,.18,-.21,.36,-.24],["c",.15,0,.3,.06,.39,.18],["c",.15,.21,.24,-.18,-2.1,7.56],["c",-1.2,3.96,-2.22,7.32,-2.25,7.41],["c",0,.12,-.06,.27,-.09,.3],["c",-.12,.21,-.6,.21,-.72,0],["c",-.03,-.03,-.09,-.18,-.09,-.3],["c",-.03,-.09,-1.05,-3.45,-2.25,-7.41],["c",-2.34,-7.74,-2.25,-7.35,-2.1,-7.56],["c",.03,-.03,.09,-.09,.15,-.12],["z"]],w:9.73,h:15.608},"scripts.downbow":{d:[["M",-5.55,-9.93],["l",.09,-.06],["l",5.46,0],["l",5.46,0],["l",.09,.06],["l",.06,.09],["l",0,4.77],["c",0,5.28,0,4.89,-.18,5.01],["c",-.18,.12,-.42,.06,-.54,-.12],["c",-.06,-.09,-.06,-.18,-.06,-2.97],["l",0,-2.85],["l",-4.83,0],["l",-4.83,0],["l",0,2.85],["c",0,2.79,0,2.88,-.06,2.97],["c",-.15,.24,-.51,.24,-.66,0],["c",-.06,-.09,-.06,-.21,-.06,-4.89],["l",0,-4.77],["z"]],w:11.22,h:9.992},"scripts.turn":{d:[["M",-4.77,-3.9],["c",.36,-.06,1.05,-.06,1.44,.03],["c",.78,.15,1.5,.51,2.34,1.14],["c",.6,.45,1.05,.87,2.22,2.01],["c",1.11,1.08,1.62,1.5,2.22,1.86],["c",.6,.36,1.32,.57,1.92,.57],["c",.9,0,1.71,-.57,1.89,-1.35],["c",.24,-.93,-.39,-1.89,-1.35,-2.1],["l",-.15,-.06],["l",-.09,.15],["c",-.03,.09,-.15,.24,-.24,.33],["c",-.72,.72,-2.04,.54,-2.49,-.36],["c",-.48,-.93,.03,-1.86,1.17,-2.19],["c",.3,-.09,1.02,-.09,1.35,0],["c",.99,.27,1.74,.87,2.25,1.83],["c",.69,1.41,.63,3,-.21,4.26],["c",-.21,.3,-.69,.81,-.99,1.02],["c",-.3,.21,-.84,.45,-1.17,.54],["c",-1.23,.36,-2.49,.15,-3.72,-.6],["c",-.75,-.48,-1.41,-1.02,-2.85,-2.46],["c",-1.11,-1.08,-1.62,-1.5,-2.22,-1.86],["c",-.6,-.36,-1.32,-.57,-1.92,-.57],["c",-.9,0,-1.71,.57,-1.89,1.35],["c",-.24,.93,.39,1.89,1.35,2.1],["l",.15,.06],["l",.09,-.15],["c",.03,-.09,.15,-.24,.24,-.33],["c",.72,-.72,2.04,-.54,2.49,.36],["c",.48,.93,-.03,1.86,-1.17,2.19],["c",-.3,.09,-1.02,.09,-1.35,0],["c",-.99,-.27,-1.74,-.87,-2.25,-1.83],["c",-.69,-1.41,-.63,-3,.21,-4.26],["c",.21,-.3,.69,-.81,.99,-1.02],["c",.48,-.33,1.11,-.57,1.74,-.66],["z"]],w:16.366,h:7.893},"scripts.trill":{d:[["M",-.51,-16.02],["c",.12,-.09,.21,-.18,.21,-.18],["l",-.81,4.02],["l",-.81,4.02],["c",.03,0,.51,-.27,1.08,-.6],["c",.6,-.3,1.14,-.63,1.26,-.66],["c",1.14,-.54,2.31,-.6,3.09,-.18],["c",.27,.15,.54,.36,.6,.51],["l",.06,.12],["l",.21,-.21],["c",.9,-.81,2.22,-.99,3.12,-.42],["c",.6,.42,.9,1.14,.78,2.07],["c",-.15,1.29,-1.05,2.31,-1.95,2.25],["c",-.48,-.03,-.78,-.3,-.96,-.81],["c",-.09,-.27,-.09,-.9,-.03,-1.2],["c",.21,-.75,.81,-1.23,1.59,-1.32],["l",.24,-.03],["l",-.09,-.12],["c",-.51,-.66,-1.62,-.63,-2.31,.03],["c",-.39,.42,-.3,.09,-1.23,4.77],["l",-.81,4.14],["c",-.03,0,-.12,-.03,-.21,-.09],["c",-.33,-.15,-.54,-.18,-.99,-.18],["c",-.42,0,-.66,.03,-1.05,.18],["c",-.12,.06,-.21,.09,-.21,.09],["c",0,-.03,.36,-1.86,.81,-4.11],["c",.9,-4.47,.87,-4.26,.69,-4.53],["c",-.21,-.36,-.66,-.51,-1.17,-.36],["c",-.15,.06,-2.22,1.14,-2.58,1.38],["c",-.12,.09,-.12,.09,-.21,.6],["l",-.09,.51],["l",.21,.24],["c",.63,.75,1.02,1.47,1.2,2.19],["c",.06,.27,.06,.36,.06,.81],["c",0,.42,0,.54,-.06,.78],["c",-.15,.54,-.33,.93,-.63,1.35],["c",-.18,.24,-.57,.63,-.81,.78],["c",-.24,.15,-.63,.36,-.84,.42],["c",-.27,.06,-.66,.06,-.87,.03],["c",-.81,-.18,-1.32,-1.05,-1.38,-2.46],["c",-.03,-.6,.03,-.99,.33,-2.46],["c",.21,-1.08,.24,-1.32,.21,-1.29],["c",-1.2,.48,-2.4,.75,-3.21,.72],["c",-.69,-.06,-1.17,-.3,-1.41,-.72],["c",-.39,-.75,-.12,-1.8,.66,-2.46],["c",.24,-.18,.69,-.42,1.02,-.51],["c",.69,-.18,1.53,-.15,2.31,.09],["c",.3,.09,.75,.3,.99,.45],["c",.12,.09,.15,.09,.15,.03],["c",.03,-.03,.33,-1.59,.72,-3.45],["c",.36,-1.86,.66,-3.42,.69,-3.45],["c",0,-.03,.03,-.03,.21,.03],["c",.21,.06,.27,.06,.48,.06],["c",.42,-.03,.78,-.18,1.26,-.48],["c",.15,-.12,.36,-.27,.48,-.39],["z"],["m",-5.73,7.68],["c",-.27,-.03,-.96,-.06,-1.2,-.03],["c",-.81,.12,-1.35,.57,-1.5,1.2],["c",-.18,.66,.12,1.14,.75,1.29],["c",.66,.12,1.92,-.12,3.18,-.66],["l",.33,-.15],["l",.09,-.39],["c",.06,-.21,.09,-.42,.09,-.45],["c",0,-.03,-.45,-.3,-.75,-.45],["c",-.27,-.15,-.66,-.27,-.99,-.36],["z"],["m",4.29,3.63],["c",-.24,-.39,-.51,-.75,-.51,-.69],["c",-.06,.12,-.39,1.92,-.45,2.28],["c",-.09,.54,-.12,1.14,-.06,1.38],["c",.06,.42,.21,.6,.51,.57],["c",.39,-.06,.75,-.48,.93,-1.14],["c",.09,-.33,.09,-1.05,0,-1.38],["c",-.09,-.39,-.24,-.69,-.42,-1.02],["z"]],w:17.963,h:16.49},"scripts.segno":{d:[["M",-3.72,-11.22],["c",.78,-.09,1.59,.03,2.31,.42],["c",1.2,.6,2.01,1.71,2.31,3.09],["c",.09,.42,.09,1.2,.03,1.5],["c",-.15,.45,-.39,.81,-.66,.93],["c",-.33,.18,-.84,.21,-1.23,.15],["c",-.81,-.18,-1.32,-.93,-1.26,-1.89],["c",.03,-.36,.09,-.57,.24,-.9],["c",.15,-.33,.45,-.6,.72,-.75],["c",.12,-.06,.18,-.09,.18,-.12],["c",0,-.03,-.03,-.15,-.09,-.24],["c",-.18,-.45,-.54,-.87,-.96,-1.08],["c",-1.11,-.57,-2.34,-.18,-2.88,.9],["c",-.24,.51,-.33,1.11,-.24,1.83],["c",.27,1.92,1.5,3.54,3.93,5.13],["c",.48,.33,1.26,.78,1.29,.78],["c",.03,0,1.35,-2.19,2.94,-4.89],["l",2.88,-4.89],["l",.84,0],["l",.87,0],["l",-.03,.06],["c",-.15,.21,-6.15,10.41,-6.15,10.44],["c",0,0,.21,.15,.48,.27],["c",2.61,1.47,4.35,3.03,5.13,4.65],["c",1.14,2.34,.51,5.07,-1.44,6.39],["c",-.66,.42,-1.32,.63,-2.13,.69],["c",-2.01,.09,-3.81,-1.41,-4.26,-3.54],["c",-.09,-.42,-.09,-1.2,-.03,-1.5],["c",.15,-.45,.39,-.81,.66,-.93],["c",.33,-.18,.84,-.21,1.23,-.15],["c",.81,.18,1.32,.93,1.26,1.89],["c",-.03,.36,-.09,.57,-.24,.9],["c",-.15,.33,-.45,.6,-.72,.75],["c",-.12,.06,-.18,.09,-.18,.12],["c",0,.03,.03,.15,.09,.24],["c",.18,.45,.54,.87,.96,1.08],["c",1.11,.57,2.34,.18,2.88,-.9],["c",.24,-.51,.33,-1.11,.24,-1.83],["c",-.27,-1.92,-1.5,-3.54,-3.93,-5.13],["c",-.48,-.33,-1.26,-.78,-1.29,-.78],["c",-.03,0,-1.35,2.19,-2.91,4.89],["l",-2.88,4.89],["l",-.87,0],["l",-.87,0],["l",.03,-.06],["c",.15,-.21,6.15,-10.41,6.15,-10.44],["c",0,0,-.21,-.15,-.48,-.3],["c",-2.61,-1.44,-4.35,-3,-5.13,-4.62],["c",-.9,-1.89,-.72,-4.02,.48,-5.52],["c",.69,-.84,1.68,-1.41,2.73,-1.53],["z"],["m",8.76,9.09],["c",.03,-.03,.15,-.03,.27,-.03],["c",.33,.03,.57,.18,.72,.48],["c",.09,.18,.09,.57,0,.75],["c",-.09,.18,-.21,.3,-.36,.39],["c",-.15,.06,-.21,.06,-.39,.06],["c",-.21,0,-.27,0,-.39,-.06],["c",-.3,-.15,-.48,-.45,-.48,-.75],["c",0,-.39,.24,-.72,.63,-.84],["z"],["m",-10.53,2.61],["c",.03,-.03,.15,-.03,.27,-.03],["c",.33,.03,.57,.18,.72,.48],["c",.09,.18,.09,.57,0,.75],["c",-.09,.18,-.21,.3,-.36,.39],["c",-.15,.06,-.21,.06,-.39,.06],["c",-.21,0,-.27,0,-.39,-.06],["c",-.3,-.15,-.48,-.45,-.48,-.75],["c",0,-.39,.24,-.72,.63,-.84],["z"]],w:15,h:22.504},"scripts.coda":{d:[["M",-.21,-10.47],["c",.18,-.12,.42,-.06,.54,.12],["c",.06,.09,.06,.18,.06,1.5],["l",0,1.38],["l",.18,0],["c",.39,.06,.96,.24,1.38,.48],["c",1.68,.93,2.82,3.24,3.03,6.12],["c",.03,.24,.03,.45,.03,.45],["c",0,.03,.6,.03,1.35,.03],["c",1.5,0,1.47,0,1.59,.18],["c",.09,.12,.09,.3,0,.42],["c",-.12,.18,-.09,.18,-1.59,.18],["c",-.75,0,-1.35,0,-1.35,.03],["c",0,0,0,.21,-.03,.42],["c",-.24,3.15,-1.53,5.58,-3.45,6.36],["c",-.27,.12,-.72,.24,-.96,.27],["l",-.18,0],["l",0,1.38],["c",0,1.32,0,1.41,-.06,1.5],["c",-.15,.24,-.51,.24,-.66,0],["c",-.06,-.09,-.06,-.18,-.06,-1.5],["l",0,-1.38],["l",-.18,0],["c",-.39,-.06,-.96,-.24,-1.38,-.48],["c",-1.68,-.93,-2.82,-3.24,-3.03,-6.15],["c",-.03,-.21,-.03,-.42,-.03,-.42],["c",0,-.03,-.6,-.03,-1.35,-.03],["c",-1.5,0,-1.47,0,-1.59,-.18],["c",-.09,-.12,-.09,-.3,0,-.42],["c",.12,-.18,.09,-.18,1.59,-.18],["c",.75,0,1.35,0,1.35,-.03],["c",0,0,0,-.21,.03,-.45],["c",.24,-3.12,1.53,-5.55,3.45,-6.33],["c",.27,-.12,.72,-.24,.96,-.27],["l",.18,0],["l",0,-1.38],["c",0,-1.53,0,-1.5,.18,-1.62],["z"],["m",-.18,6.93],["c",0,-2.97,0,-3.15,-.06,-3.15],["c",-.09,0,-.51,.15,-.66,.21],["c",-.87,.51,-1.38,1.62,-1.56,3.51],["c",-.06,.54,-.12,1.59,-.12,2.16],["l",0,.42],["l",1.2,0],["l",1.2,0],["l",0,-3.15],["z"],["m",1.17,-3.06],["c",-.09,-.03,-.21,-.06,-.27,-.09],["l",-.12,0],["l",0,3.15],["l",0,3.15],["l",1.2,0],["l",1.2,0],["l",0,-.81],["c",-.06,-2.4,-.33,-3.69,-.93,-4.59],["c",-.27,-.39,-.66,-.69,-1.08,-.81],["z"],["m",-1.17,10.14],["l",0,-3.15],["l",-1.2,0],["l",-1.2,0],["l",0,.81],["c",.03,.96,.06,1.47,.15,2.13],["c",.24,2.04,.96,3.12,2.13,3.36],["l",.12,0],["l",0,-3.15],["z"],["m",3.18,-2.34],["l",0,-.81],["l",-1.2,0],["l",-1.2,0],["l",0,3.15],["l",0,3.15],["l",.12,0],["c",1.17,-.24,1.89,-1.32,2.13,-3.36],["c",.09,-.66,.12,-1.17,.15,-2.13],["z"]],w:16.035,h:21.062},"scripts.comma":{d:[["M",1.14,-4.62],["c",.3,-.12,.69,-.03,.93,.15],["c",.12,.12,.36,.45,.51,.78],["c",.9,1.77,.54,4.05,-1.08,6.75],["c",-.36,.63,-.87,1.38,-.96,1.44],["c",-.18,.12,-.42,.06,-.54,-.12],["c",-.09,-.18,-.09,-.3,.12,-.6],["c",.96,-1.44,1.44,-2.97,1.38,-4.35],["c",-.06,-.93,-.3,-1.68,-.78,-2.46],["c",-.27,-.39,-.33,-.63,-.24,-.96],["c",.09,-.27,.36,-.54,.66,-.63],["z"]],w:3.042,h:9.237},"scripts.roll":{d:[["M",1.95,-6],["c",.21,-.09,.36,-.09,.57,0],["c",.39,.15,.63,.39,1.47,1.35],["c",.66,.75,.78,.87,1.08,1.05],["c",.75,.45,1.65,.42,2.4,-.06],["c",.12,-.09,.27,-.27,.54,-.6],["c",.42,-.54,.51,-.63,.69,-.63],["c",.09,0,.3,.12,.36,.21],["c",.09,.12,.12,.3,.03,.42],["c",-.06,.12,-3.15,3.9,-3.3,4.08],["c",-.06,.06,-.18,.12,-.27,.18],["c",-.27,.12,-.6,.06,-.99,-.27],["c",-.27,-.21,-.42,-.39,-1.08,-1.14],["c",-.63,-.72,-.81,-.9,-1.17,-1.08],["c",-.36,-.18,-.57,-.21,-.99,-.21],["c",-.39,0,-.63,.03,-.93,.18],["c",-.36,.15,-.51,.27,-.9,.81],["c",-.24,.27,-.45,.51,-.48,.54],["c",-.12,.09,-.27,.06,-.39,0],["c",-.24,-.15,-.33,-.39,-.21,-.6],["c",.09,-.12,3.18,-3.87,3.33,-4.02],["c",.06,-.06,.18,-.15,.24,-.21],["z"]],w:10.817,h:6.125},"scripts.prall":{d:[["M",-4.38,-3.69],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["c",.03,0,.57,-.84,1.23,-1.83],["c",1.14,-1.68,1.23,-1.83,1.35,-1.89],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["l",.48,-.69],["c",.51,-.78,.54,-.84,.69,-.9],["c",.42,-.18,.87,.15,.81,.6],["c",-.03,.12,-.3,.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["c",-.03,0,-.57,.84,-1.23,1.83],["c",-1.14,1.68,-1.23,1.83,-1.35,1.89],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-.48,.69],["c",-.51,.78,-.54,.84,-.69,.9],["c",-.42,.18,-.87,-.15,-.81,-.6],["c",.03,-.12,.3,-.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["z"]],w:15.011,h:7.5},"scripts.arpeggio":{d:[["M",1.5,0],["c",1.5,2,1.5,3,1.5,3],["s",0,1,-2,1.5],["s",-.5,3,1,5.5],["l",1.5,0],["s",-1.75,-2,-1.9,-3.25],["s",2.15,-.6,2.95,-1.6],["s",.45,-1,.5,-1.25],["s",0,-1,-2,-3.9],["l",-1.5,0],["z"]],w:5,h:10},"scripts.mordent":{d:[["M",-.21,-4.95],["c",.27,-.15,.63,0,.75,.27],["c",.06,.12,.06,.24,.06,1.44],["l",0,1.29],["l",.57,-.84],["c",.51,-.75,.57,-.84,.69,-.9],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["l",.48,-.69],["c",.51,-.78,.54,-.84,.69,-.9],["c",.42,-.18,.87,.15,.81,.6],["c",-.03,.12,-.3,.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.83,-1.89],["c",-.81,-.99,-1.5,-1.8,-1.53,-1.86],["c",-.06,-.03,-.06,-.03,-.12,.03],["c",-.06,.06,-.06,.15,-.06,2.28],["c",0,1.95,0,2.25,-.06,2.34],["c",-.18,.45,-.81,.48,-1.05,.03],["c",-.03,-.06,-.06,-.24,-.06,-1.41],["l",0,-1.35],["l",-.57,.84],["c",-.54,.78,-.6,.87,-.72,.93],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-.48,.69],["c",-.51,.78,-.54,.84,-.69,.9],["c",-.42,.18,-.87,-.15,-.81,-.6],["c",.03,-.12,.3,-.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["c",.03,0,.06,-.06,.09,-.09],["c",.06,-.12,.06,-.15,.06,-2.28],["c",0,-1.92,0,-2.22,.06,-2.31],["c",.06,-.15,.15,-.24,.3,-.3],["z"]],w:15.011,h:10.012},"flags.u8th":{d:[["M",-.42,3.75],["l",0,-3.75],["l",.21,0],["l",.21,0],["l",0,.18],["c",0,.3,.06,.84,.12,1.23],["c",.24,1.53,.9,3.12,2.13,5.16],["l",.99,1.59],["c",.87,1.44,1.38,2.34,1.77,3.09],["c",.81,1.68,1.2,3.06,1.26,4.53],["c",.03,1.53,-.21,3.27,-.75,5.01],["c",-.21,.69,-.51,1.5,-.6,1.59],["c",-.09,.12,-.27,.21,-.42,.21],["c",-.15,0,-.42,-.12,-.51,-.21],["c",-.15,-.18,-.18,-.42,-.09,-.66],["c",.15,-.33,.45,-1.2,.57,-1.62],["c",.42,-1.38,.6,-2.58,.6,-3.9],["c",0,-.66,0,-.81,-.06,-1.11],["c",-.39,-2.07,-1.8,-4.26,-4.59,-7.14],["l",-.42,-.45],["l",-.21,0],["l",-.21,0],["l",0,-3.75],["z"]],w:6.692,h:22.59},"flags.u16th":{d:[["M",-.42,7.5],["l",0,-7.5],["l",.21,0],["l",.21,0],["l",0,.39],["c",.06,1.08,.39,2.19,.99,3.39],["c",.45,.9,.87,1.59,1.95,3.12],["c",1.29,1.86,1.77,2.64,2.22,3.57],["c",.45,.93,.72,1.8,.87,2.64],["c",.06,.51,.06,1.5,0,1.92],["c",-.12,.6,-.3,1.2,-.54,1.71],["l",-.09,.24],["l",.18,.45],["c",.51,1.2,.72,2.22,.69,3.42],["c",-.06,1.53,-.39,3.03,-.99,4.53],["c",-.3,.75,-.36,.81,-.57,.9],["c",-.15,.09,-.33,.06,-.48,0],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.12,-.75],["c",.66,-1.41,1.02,-2.88,1.08,-4.32],["c",0,-.6,-.03,-1.05,-.18,-1.59],["c",-.3,-1.2,-.99,-2.4,-2.25,-3.87],["c",-.42,-.48,-1.53,-1.62,-2.19,-2.22],["l",-.45,-.42],["l",-.03,1.11],["l",0,1.11],["l",-.21,0],["l",-.21,0],["l",0,-7.5],["z"],["m",1.65,.09],["c",-.3,-.3,-.69,-.72,-.9,-.87],["l",-.33,-.33],["l",0,.15],["c",0,.3,.06,.81,.15,1.26],["c",.27,1.29,.87,2.61,2.04,4.29],["c",.15,.24,.6,.87,.96,1.38],["l",1.08,1.53],["l",.42,.63],["c",.03,0,.12,-.36,.21,-.72],["c",.06,-.33,.06,-1.2,0,-1.62],["c",-.33,-1.71,-1.44,-3.48,-3.63,-5.7],["z"]],w:6.693,h:26.337},"flags.u32nd":{d:[["M",-.42,11.25],["l",0,-11.25],["l",.21,0],["l",.21,0],["l",0,.36],["c",.09,1.68,.69,3.27,2.07,5.46],["l",.87,1.35],["c",1.02,1.62,1.47,2.37,1.86,3.18],["c",.48,1.02,.78,1.92,.93,2.88],["c",.06,.48,.06,1.5,0,1.89],["c",-.09,.42,-.21,.87,-.36,1.26],["l",-.12,.3],["l",.15,.39],["c",.69,1.56,.84,2.88,.54,4.38],["c",-.09,.45,-.27,1.08,-.45,1.47],["l",-.12,.24],["l",.18,.36],["c",.33,.72,.57,1.56,.69,2.34],["c",.12,1.02,-.06,2.52,-.42,3.84],["c",-.27,.93,-.75,2.13,-.93,2.31],["c",-.18,.15,-.45,.18,-.66,.09],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.06,-.6],["c",.21,-.36,.42,-.9,.57,-1.38],["c",.51,-1.41,.69,-3.06,.48,-4.08],["c",-.15,-.81,-.57,-1.68,-1.2,-2.55],["c",-.72,-.99,-1.83,-2.13,-3.3,-3.33],["l",-.48,-.42],["l",-.03,1.53],["l",0,1.56],["l",-.21,0],["l",-.21,0],["l",0,-11.25],["z"],["m",1.26,-3.96],["c",-.27,-.3,-.54,-.6,-.66,-.72],["l",-.18,-.21],["l",0,.42],["c",.06,.87,.24,1.74,.66,2.67],["c",.36,.87,.96,1.86,1.92,3.18],["c",.21,.33,.63,.87,.87,1.23],["c",.27,.39,.6,.84,.75,1.08],["l",.27,.39],["l",.03,-.12],["c",.12,-.45,.15,-1.05,.09,-1.59],["c",-.27,-1.86,-1.38,-3.78,-3.75,-6.33],["z"],["m",-.27,6.09],["c",-.27,-.21,-.48,-.42,-.51,-.45],["c",-.06,-.03,-.06,-.03,-.06,.21],["c",0,.9,.3,2.04,.81,3.09],["c",.48,1.02,.96,1.77,2.37,3.63],["c",.6,.78,1.05,1.44,1.29,1.77],["c",.06,.12,.15,.21,.15,.18],["c",.03,-.03,.18,-.57,.24,-.87],["c",.06,-.45,.06,-1.32,-.03,-1.74],["c",-.09,-.48,-.24,-.9,-.51,-1.44],["c",-.66,-1.35,-1.83,-2.7,-3.75,-4.38],["z"]],w:6.697,h:32.145},"flags.u64th":{d:[["M",-.42,15],["l",0,-15],["l",.21,0],["l",.21,0],["l",0,.36],["c",.06,1.2,.39,2.37,1.02,3.66],["c",.39,.81,.84,1.56,1.8,3.09],["c",.81,1.26,1.05,1.68,1.35,2.22],["c",.87,1.5,1.35,2.79,1.56,4.08],["c",.06,.54,.06,1.56,-.03,2.04],["c",-.09,.48,-.21,.99,-.36,1.35],["l",-.12,.27],["l",.12,.27],["c",.09,.15,.21,.45,.27,.66],["c",.69,1.89,.63,3.66,-.18,5.46],["l",-.18,.39],["l",.15,.33],["c",.3,.66,.51,1.44,.63,2.1],["c",.06,.48,.06,1.35,0,1.71],["c",-.15,.57,-.42,1.2,-.78,1.68],["l",-.21,.27],["l",.18,.33],["c",.57,1.05,.93,2.13,1.02,3.18],["c",.06,.72,0,1.83,-.21,2.79],["c",-.18,1.02,-.63,2.34,-1.02,3.09],["c",-.15,.33,-.48,.45,-.78,.3],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.03,-.54],["c",.75,-1.5,1.23,-3.45,1.17,-4.89],["c",-.06,-1.02,-.42,-2.01,-1.17,-3.15],["c",-.48,-.72,-1.02,-1.35,-1.89,-2.22],["c",-.57,-.57,-1.56,-1.5,-1.92,-1.77],["l",-.12,-.09],["l",0,1.68],["l",0,1.68],["l",-.21,0],["l",-.21,0],["l",0,-15],["z"],["m",.93,-8.07],["c",-.27,-.3,-.48,-.54,-.51,-.54],["c",0,0,0,.69,.03,1.02],["c",.15,1.47,.75,2.94,2.04,4.83],["l",1.08,1.53],["c",.39,.57,.84,1.2,.99,1.44],["c",.15,.24,.3,.45,.3,.45],["c",0,0,.03,-.09,.06,-.21],["c",.36,-1.59,-.15,-3.33,-1.47,-5.4],["c",-.63,-.93,-1.35,-1.83,-2.52,-3.12],["z"],["m",.06,6.72],["c",-.24,-.21,-.48,-.42,-.51,-.45],["l",-.06,-.06],["l",0,.33],["c",0,1.2,.3,2.34,.93,3.6],["c",.45,.9,.96,1.68,2.25,3.51],["c",.39,.54,.84,1.17,1.02,1.44],["c",.21,.33,.33,.51,.33,.48],["c",.06,-.09,.21,-.63,.3,-.99],["c",.06,-.33,.06,-.45,.06,-.96],["c",0,-.6,-.03,-.84,-.18,-1.35],["c",-.3,-1.08,-1.02,-2.28,-2.13,-3.57],["c",-.39,-.45,-1.44,-1.47,-2.01,-1.98],["z"],["m",0,6.72],["c",-.24,-.21,-.48,-.39,-.51,-.42],["l",-.06,-.06],["l",0,.33],["c",0,1.41,.45,2.82,1.38,4.35],["c",.42,.72,.72,1.14,1.86,2.73],["c",.36,.45,.75,.99,.87,1.2],["c",.15,.21,.3,.36,.3,.36],["c",.06,0,.3,-.48,.39,-.75],["c",.09,-.36,.12,-.63,.12,-1.05],["c",-.06,-1.05,-.45,-2.04,-1.2,-3.18],["c",-.57,-.87,-1.11,-1.53,-2.07,-2.49],["c",-.36,-.33,-.84,-.78,-1.08,-1.02],["z"]],w:6.682,h:39.694},"flags.d8th":{d:[["M",5.67,-21.63],["c",.24,-.12,.54,-.06,.69,.15],["c",.06,.06,.21,.36,.39,.66],["c",.84,1.77,1.26,3.36,1.32,5.1],["c",.03,1.29,-.21,2.37,-.81,3.63],["c",-.6,1.23,-1.26,2.13,-3.21,4.38],["c",-1.35,1.53,-1.86,2.19,-2.4,2.97],["c",-.63,.93,-1.11,1.92,-1.38,2.79],["c",-.15,.54,-.27,1.35,-.27,1.8],["l",0,.15],["l",-.21,0],["l",-.21,0],["l",0,-3.75],["l",0,-3.75],["l",.21,0],["l",.21,0],["l",.48,-.3],["c",1.83,-1.11,3.12,-2.1,4.17,-3.12],["c",.78,-.81,1.32,-1.53,1.71,-2.31],["c",.45,-.93,.6,-1.74,.51,-2.88],["c",-.12,-1.56,-.63,-3.18,-1.47,-4.68],["c",-.12,-.21,-.15,-.33,-.06,-.51],["c",.06,-.15,.15,-.24,.33,-.33],["z"]],w:8.492,h:21.691},"flags.ugrace":{d:[["M",6.03,6.93],["c",.15,-.09,.33,-.06,.51,0],["c",.15,.09,.21,.15,.3,.33],["c",.09,.18,.06,.39,-.03,.54],["c",-.06,.15,-10.89,8.88,-11.07,8.97],["c",-.15,.09,-.33,.06,-.48,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.06,-.39,.03,-.54],["c",.06,-.15,10.89,-8.88,11.07,-8.97],["z"]],w:12.019,h:9.954},"flags.dgrace":{d:[["M",-6.06,-15.93],["c",.18,-.09,.33,-.12,.48,-.06],["c",.18,.09,14.01,8.04,14.1,8.1],["c",.12,.12,.18,.33,.18,.51],["c",-.03,.21,-.15,.39,-.36,.48],["c",-.18,.09,-.33,.12,-.48,.06],["c",-.18,-.09,-14.01,-8.04,-14.1,-8.1],["c",-.12,-.12,-.18,-.33,-.18,-.51],["c",.03,-.21,.15,-.39,.36,-.48],["z"]],w:15.12,h:9.212},"flags.d16th":{d:[["M",6.84,-22.53],["c",.27,-.12,.57,-.06,.72,.15],["c",.15,.15,.33,.87,.45,1.56],["c",.06,.33,.06,1.35,0,1.65],["c",-.06,.33,-.15,.78,-.27,1.11],["c",-.12,.33,-.45,.96,-.66,1.32],["l",-.18,.27],["l",.09,.18],["c",.48,1.02,.72,2.25,.69,3.3],["c",-.06,1.23,-.42,2.28,-1.26,3.45],["c",-.57,.87,-.99,1.32,-3,3.39],["c",-1.56,1.56,-2.22,2.4,-2.76,3.45],["c",-.42,.84,-.66,1.8,-.66,2.55],["l",0,.15],["l",-.21,0],["l",-.21,0],["l",0,-7.5],["l",0,-7.5],["l",.21,0],["l",.21,0],["l",0,1.14],["l",0,1.11],["l",.27,-.15],["c",1.11,-.57,1.77,-.99,2.52,-1.47],["c",2.37,-1.56,3.69,-3.15,4.05,-4.83],["c",.03,-.18,.03,-.39,.03,-.78],["c",0,-.6,-.03,-.93,-.24,-1.5],["c",-.06,-.18,-.12,-.39,-.15,-.45],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.63,7.5],["c",-.06,-.18,-.15,-.36,-.15,-.36],["c",-.03,0,-.03,.03,-.06,.06],["c",-.06,.12,-.96,1.02,-1.95,1.98],["c",-.63,.57,-1.26,1.17,-1.44,1.35],["c",-1.53,1.62,-2.28,2.85,-2.55,4.32],["c",-.03,.18,-.03,.54,-.06,.99],["l",0,.69],["l",.18,-.09],["c",.93,-.54,2.1,-1.29,2.82,-1.83],["c",.69,-.51,1.02,-.81,1.53,-1.29],["c",1.86,-1.89,2.37,-3.66,1.68,-5.82],["z"]],w:8.475,h:22.591},"flags.d32nd":{d:[["M",6.84,-29.13],["c",.27,-.12,.57,-.06,.72,.15],["c",.12,.12,.27,.63,.36,1.11],["c",.33,1.59,.06,3.06,-.81,4.47],["l",-.18,.27],["l",.09,.15],["c",.12,.24,.33,.69,.45,1.05],["c",.63,1.83,.45,3.57,-.57,5.22],["l",-.18,.3],["l",.15,.27],["c",.42,.87,.6,1.71,.57,2.61],["c",-.06,1.29,-.48,2.46,-1.35,3.78],["c",-.54,.81,-.93,1.29,-2.46,3],["c",-.51,.54,-1.05,1.17,-1.26,1.41],["c",-1.56,1.86,-2.25,3.36,-2.37,5.01],["l",0,.33],["l",-.21,0],["l",-.21,0],["l",0,-11.25],["l",0,-11.25],["l",.21,0],["l",.21,0],["l",0,1.35],["l",.03,1.35],["l",.78,-.39],["c",1.38,-.69,2.34,-1.26,3.24,-1.92],["c",1.38,-1.02,2.28,-2.13,2.64,-3.21],["c",.15,-.48,.18,-.72,.18,-1.29],["c",0,-.57,-.06,-.9,-.24,-1.47],["c",-.06,-.18,-.12,-.39,-.15,-.45],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.63,7.2],["c",-.09,-.18,-.12,-.21,-.12,-.15],["c",-.03,.09,-1.02,1.08,-2.04,2.04],["c",-1.17,1.08,-1.65,1.56,-2.07,2.04],["c",-.84,.96,-1.38,1.86,-1.68,2.76],["c",-.21,.57,-.27,.99,-.3,1.65],["l",0,.54],["l",.66,-.33],["c",3.57,-1.86,5.49,-3.69,5.94,-5.7],["c",.06,-.39,.06,-1.2,-.03,-1.65],["c",-.06,-.39,-.24,-.9,-.36,-1.2],["z"],["m",-.06,7.2],["c",-.06,-.15,-.12,-.33,-.15,-.45],["l",-.06,-.18],["l",-.18,.21],["l",-1.83,1.83],["c",-.87,.9,-1.77,1.8,-1.95,2.01],["c",-1.08,1.29,-1.62,2.31,-1.89,3.51],["c",-.06,.3,-.06,.51,-.09,.93],["l",0,.57],["l",.09,-.06],["c",.75,-.45,1.89,-1.26,2.52,-1.74],["c",.81,-.66,1.74,-1.53,2.22,-2.16],["c",1.26,-1.53,1.68,-3.06,1.32,-4.47],["z"]],w:8.385,h:29.191},"flags.d64th":{d:[["M",7.08,-32.88],["c",.3,-.12,.66,-.03,.78,.24],["c",.18,.33,.27,2.1,.15,2.64],["c",-.09,.39,-.21,.78,-.39,1.08],["l",-.15,.3],["l",.09,.27],["c",.03,.12,.09,.45,.12,.69],["c",.27,1.44,.18,2.55,-.3,3.6],["l",-.12,.33],["l",.06,.42],["c",.27,1.35,.33,2.82,.21,3.63],["c",-.12,.6,-.3,1.23,-.57,1.8],["l",-.15,.27],["l",.03,.42],["c",.06,1.02,.06,2.7,.03,3.06],["c",-.15,1.47,-.66,2.76,-1.74,4.41],["c",-.45,.69,-.75,1.11,-1.74,2.37],["c",-1.05,1.38,-1.5,1.98,-1.95,2.73],["c",-.93,1.5,-1.38,2.82,-1.44,4.2],["l",0,.42],["l",-.21,0],["l",-.21,0],["l",0,-15],["l",0,-15],["l",.21,0],["l",.21,0],["l",0,1.86],["l",0,1.89],["c",0,0,.21,-.03,.45,-.09],["c",2.22,-.39,4.08,-1.11,5.19,-2.01],["c",.63,-.54,1.02,-1.14,1.2,-1.8],["c",.06,-.3,.06,-1.14,-.03,-1.65],["c",-.03,-.18,-.06,-.39,-.09,-.48],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.45,6.15],["c",-.03,-.18,-.06,-.42,-.06,-.54],["l",-.03,-.18],["l",-.33,.3],["c",-.42,.36,-.87,.72,-1.68,1.29],["c",-1.98,1.38,-2.25,1.59,-2.85,2.16],["c",-.75,.69,-1.23,1.44,-1.47,2.19],["c",-.15,.45,-.18,.63,-.21,1.35],["l",0,.66],["l",.39,-.18],["c",1.83,-.9,3.45,-1.95,4.47,-2.91],["c",.93,-.9,1.53,-1.83,1.74,-2.82],["c",.06,-.33,.06,-.87,.03,-1.32],["z"],["m",-.27,4.86],["c",-.03,-.21,-.06,-.36,-.06,-.36],["c",0,-.03,-.12,.09,-.24,.24],["c",-.39,.48,-.99,1.08,-2.16,2.19],["c",-1.47,1.38,-1.92,1.83,-2.46,2.49],["c",-.66,.87,-1.08,1.74,-1.29,2.58],["c",-.09,.42,-.15,.87,-.15,1.44],["l",0,.54],["l",.48,-.33],["c",1.5,-1.02,2.58,-1.89,3.51,-2.82],["c",1.47,-1.47,2.25,-2.85,2.4,-4.26],["c",.03,-.39,.03,-1.17,-.03,-1.71],["z"],["m",-.66,7.68],["c",.03,-.15,.03,-.6,.03,-.99],["l",0,-.72],["l",-.27,.33],["l",-1.74,1.98],["c",-1.77,1.92,-2.43,2.76,-2.97,3.9],["c",-.51,1.02,-.72,1.77,-.75,2.91],["c",0,.63,0,.63,.06,.6],["c",.03,-.03,.3,-.27,.63,-.54],["c",.66,-.6,1.86,-1.8,2.31,-2.31],["c",1.65,-1.89,2.52,-3.54,2.7,-5.16],["z"]],w:8.485,h:32.932},"clefs.C":{d:[["M",.06,-14.94],["l",.09,-.06],["l",1.92,0],["l",1.92,0],["l",.09,.06],["l",.06,.09],["l",0,14.85],["l",0,14.82],["l",-.06,.09],["l",-.09,.06],["l",-1.92,0],["l",-1.92,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-14.82],["l",0,-14.85],["z"],["m",5.37,0],["c",.09,-.06,.09,-.06,.57,-.06],["c",.45,0,.45,0,.54,.06],["l",.06,.09],["l",0,7.14],["l",0,7.11],["l",.09,-.06],["c",.18,-.18,.72,-.84,.96,-1.2],["c",.3,-.45,.66,-1.17,.84,-1.65],["c",.36,-.9,.57,-1.83,.6,-2.79],["c",.03,-.48,.03,-.54,.09,-.63],["c",.12,-.18,.36,-.21,.54,-.12],["c",.18,.09,.21,.15,.24,.66],["c",.06,.87,.21,1.56,.57,2.22],["c",.51,1.02,1.26,1.68,2.22,1.92],["c",.21,.06,.33,.06,.78,.06],["c",.45,0,.57,0,.84,-.06],["c",.45,-.12,.81,-.33,1.08,-.6],["c",.57,-.57,.87,-1.41,.99,-2.88],["c",.06,-.54,.06,-3,0,-3.57],["c",-.21,-2.58,-.84,-3.87,-2.16,-4.5],["c",-.48,-.21,-1.17,-.36,-1.77,-.36],["c",-.69,0,-1.29,.27,-1.5,.72],["c",-.06,.15,-.06,.21,-.06,.42],["c",0,.24,0,.3,.06,.45],["c",.12,.24,.24,.39,.63,.66],["c",.42,.3,.57,.48,.69,.72],["c",.06,.15,.06,.21,.06,.48],["c",0,.39,-.03,.63,-.21,.96],["c",-.3,.6,-.87,1.08,-1.5,1.26],["c",-.27,.06,-.87,.06,-1.14,0],["c",-.78,-.24,-1.44,-.87,-1.65,-1.68],["c",-.12,-.42,-.09,-1.17,.09,-1.71],["c",.51,-1.65,1.98,-2.82,3.81,-3.09],["c",.84,-.09,2.46,.03,3.51,.27],["c",2.22,.57,3.69,1.8,4.44,3.75],["c",.36,.93,.57,2.13,.57,3.36],["c",0,1.44,-.48,2.73,-1.38,3.81],["c",-1.26,1.5,-3.27,2.43,-5.28,2.43],["c",-.48,0,-.51,0,-.75,-.09],["c",-.15,-.03,-.48,-.21,-.78,-.36],["c",-.69,-.36,-.87,-.42,-1.26,-.42],["c",-.27,0,-.3,0,-.51,.09],["c",-.57,.3,-.81,.9,-.81,2.1],["c",0,1.23,.24,1.83,.81,2.13],["c",.21,.09,.24,.09,.51,.09],["c",.39,0,.57,-.06,1.26,-.42],["c",.3,-.15,.63,-.33,.78,-.36],["c",.24,-.09,.27,-.09,.75,-.09],["c",2.01,0,4.02,.93,5.28,2.4],["c",.9,1.11,1.38,2.4,1.38,3.84],["c",0,1.5,-.3,2.88,-.84,3.96],["c",-.78,1.59,-2.19,2.64,-4.17,3.15],["c",-1.05,.24,-2.67,.36,-3.51,.27],["c",-1.83,-.27,-3.3,-1.44,-3.81,-3.09],["c",-.18,-.54,-.21,-1.29,-.09,-1.74],["c",.15,-.6,.63,-1.2,1.23,-1.47],["c",.36,-.18,.57,-.21,.99,-.21],["c",.42,0,.63,.03,1.02,.21],["c",.42,.21,.84,.63,1.05,1.05],["c",.18,.36,.21,.6,.21,.96],["c",0,.3,0,.36,-.06,.51],["c",-.12,.24,-.27,.42,-.69,.72],["c",-.57,.42,-.69,.63,-.69,1.08],["c",0,.24,0,.3,.06,.45],["c",.12,.21,.3,.39,.57,.54],["c",.42,.18,.87,.21,1.53,.15],["c",1.08,-.15,1.8,-.57,2.34,-1.32],["c",.54,-.75,.84,-1.83,.99,-3.51],["c",.06,-.57,.06,-3.03,0,-3.57],["c",-.12,-1.47,-.42,-2.31,-.99,-2.88],["c",-.27,-.27,-.63,-.48,-1.08,-.6],["c",-.27,-.06,-.39,-.06,-.84,-.06],["c",-.45,0,-.57,0,-.78,.06],["c",-1.14,.27,-2.01,1.17,-2.46,2.49],["c",-.21,.57,-.3,.99,-.33,1.65],["c",-.03,.51,-.06,.57,-.24,.66],["c",-.12,.06,-.27,.06,-.39,0],["c",-.21,-.09,-.21,-.15,-.24,-.75],["c",-.09,-1.92,-.78,-3.72,-2.01,-5.19],["c",-.18,-.21,-.36,-.42,-.39,-.45],["l",-.09,-.06],["l",0,7.11],["l",0,7.14],["l",-.06,.09],["c",-.09,.06,-.09,.06,-.54,.06],["c",-.48,0,-.48,0,-.57,-.06],["l",-.06,-.09],["l",0,-14.82],["l",0,-14.85],["z"]],w:20.31,h:29.97},"clefs.F":{d:[["M",6.3,-7.8],["c",.36,-.03,1.65,0,2.13,.03],["c",3.6,.42,6.03,2.1,6.93,4.86],["c",.27,.84,.36,1.5,.36,2.58],["c",0,.9,-.03,1.35,-.18,2.16],["c",-.78,3.78,-3.54,7.08,-8.37,9.96],["c",-1.74,1.05,-3.87,2.13,-6.18,3.12],["c",-.39,.18,-.75,.33,-.81,.36],["c",-.06,.03,-.15,.06,-.18,.06],["c",-.15,0,-.33,-.18,-.33,-.33],["c",0,-.15,.06,-.21,.51,-.48],["c",3,-1.77,5.13,-3.21,6.84,-4.74],["c",.51,-.45,1.59,-1.5,1.95,-1.95],["c",1.89,-2.19,2.88,-4.32,3.15,-6.78],["c",.06,-.42,.06,-1.77,0,-2.19],["c",-.24,-2.01,-.93,-3.63,-2.04,-4.71],["c",-.63,-.63,-1.29,-1.02,-2.07,-1.2],["c",-1.62,-.39,-3.36,.15,-4.56,1.44],["c",-.54,.6,-1.05,1.47,-1.32,2.22],["l",-.09,.21],["l",.24,-.12],["c",.39,-.21,.63,-.24,1.11,-.24],["c",.3,0,.45,0,.66,.06],["c",1.92,.48,2.85,2.55,1.95,4.38],["c",-.45,.99,-1.41,1.62,-2.46,1.71],["c",-1.47,.09,-2.91,-.87,-3.39,-2.25],["c",-.18,-.57,-.21,-1.32,-.03,-2.28],["c",.39,-2.25,1.83,-4.2,3.81,-5.19],["c",.69,-.36,1.59,-.6,2.37,-.69],["z"],["m",11.58,2.52],["c",.84,-.21,1.71,.3,1.89,1.14],["c",.3,1.17,-.72,2.19,-1.89,1.89],["c",-.99,-.21,-1.5,-1.32,-1.02,-2.25],["c",.18,-.39,.6,-.69,1.02,-.78],["z"],["m",0,7.5],["c",.84,-.21,1.71,.3,1.89,1.14],["c",.21,.87,-.3,1.71,-1.14,1.89],["c",-.87,.21,-1.71,-.3,-1.89,-1.14],["c",-.21,-.84,.3,-1.71,1.14,-1.89],["z"]],w:20.153,h:23.142},"clefs.G":{d:[["M",9.69,-37.41],["c",.09,-.09,.24,-.06,.36,0],["c",.12,.09,.57,.6,.96,1.11],["c",1.77,2.34,3.21,5.85,3.57,8.73],["c",.21,1.56,.03,3.27,-.45,4.86],["c",-.69,2.31,-1.92,4.47,-4.23,7.44],["c",-.3,.39,-.57,.72,-.6,.75],["c",-.03,.06,0,.15,.18,.78],["c",.54,1.68,1.38,4.44,1.68,5.49],["l",.09,.42],["l",.39,0],["c",1.47,.09,2.76,.51,3.96,1.29],["c",1.83,1.23,3.06,3.21,3.39,5.52],["c",.09,.45,.12,1.29,.06,1.74],["c",-.09,1.02,-.33,1.83,-.75,2.73],["c",-.84,1.71,-2.28,3.06,-4.02,3.72],["l",-.33,.12],["l",.03,1.26],["c",0,1.74,-.06,3.63,-.21,4.62],["c",-.45,3.06,-2.19,5.49,-4.47,6.21],["c",-.57,.18,-.9,.21,-1.59,.21],["c",-.69,0,-1.02,-.03,-1.65,-.21],["c",-1.14,-.27,-2.13,-.84,-2.94,-1.65],["c",-.99,-.99,-1.56,-2.16,-1.71,-3.54],["c",-.09,-.81,.06,-1.53,.45,-2.13],["c",.63,-.99,1.83,-1.56,3,-1.53],["c",1.5,.09,2.64,1.32,2.73,2.94],["c",.06,1.47,-.93,2.7,-2.37,2.97],["c",-.45,.06,-.84,.03,-1.29,-.09],["l",-.21,-.09],["l",.09,.12],["c",.39,.54,.78,.93,1.32,1.26],["c",1.35,.87,3.06,1.02,4.35,.36],["c",1.44,-.72,2.52,-2.28,2.97,-4.35],["c",.15,-.66,.24,-1.5,.3,-3.03],["c",.03,-.84,.03,-2.94,0,-3],["c",-.03,0,-.18,0,-.36,.03],["c",-.66,.12,-.99,.12,-1.83,.12],["c",-1.05,0,-1.71,-.06,-2.61,-.3],["c",-4.02,-.99,-7.11,-4.35,-7.8,-8.46],["c",-.12,-.66,-.12,-.99,-.12,-1.83],["c",0,-.84,0,-1.14,.15,-1.92],["c",.36,-2.28,1.41,-4.62,3.3,-7.29],["l",2.79,-3.6],["c",.54,-.66,.96,-1.2,.96,-1.23],["c",0,-.03,-.09,-.33,-.18,-.69],["c",-.96,-3.21,-1.41,-5.28,-1.59,-7.68],["c",-.12,-1.38,-.15,-3.09,-.06,-3.96],["c",.33,-2.67,1.38,-5.07,3.12,-7.08],["c",.36,-.42,.99,-1.05,1.17,-1.14],["z"],["m",2.01,4.71],["c",-.15,-.3,-.3,-.54,-.3,-.54],["c",-.03,0,-.18,.09,-.3,.21],["c",-2.4,1.74,-3.87,4.2,-4.26,7.11],["c",-.06,.54,-.06,1.41,-.03,1.89],["c",.09,1.29,.48,3.12,1.08,5.22],["c",.15,.42,.24,.78,.24,.81],["c",0,.03,.84,-1.11,1.23,-1.68],["c",1.89,-2.73,2.88,-5.07,3.15,-7.53],["c",.09,-.57,.12,-1.74,.06,-2.37],["c",-.09,-1.23,-.27,-1.92,-.87,-3.12],["z"],["m",-2.94,20.7],["c",-.21,-.72,-.39,-1.32,-.42,-1.32],["c",0,0,-1.2,1.47,-1.86,2.37],["c",-2.79,3.63,-4.02,6.3,-4.35,9.3],["c",-.03,.21,-.03,.69,-.03,1.08],["c",0,.69,0,.75,.06,1.11],["c",.12,.54,.27,.99,.51,1.47],["c",.69,1.38,1.83,2.55,3.42,3.42],["c",.96,.54,2.07,.9,3.21,1.08],["c",.78,.12,2.04,.12,2.94,-.03],["c",.51,-.06,.45,-.03,.42,-.3],["c",-.24,-3.33,-.72,-6.33,-1.62,-10.08],["c",-.09,-.39,-.18,-.75,-.18,-.78],["c",-.03,-.03,-.42,0,-.81,.09],["c",-.9,.18,-1.65,.57,-2.22,1.14],["c",-.72,.72,-1.08,1.65,-1.05,2.64],["c",.06,.96,.48,1.83,1.23,2.58],["c",.36,.36,.72,.63,1.17,.9],["c",.33,.18,.36,.21,.42,.33],["c",.18,.42,-.18,.9,-.6,.87],["c",-.18,-.03,-.84,-.36,-1.26,-.63],["c",-.78,-.51,-1.38,-1.11,-1.86,-1.83],["c",-1.77,-2.7,-.99,-6.42,1.71,-8.19],["c",.3,-.21,.81,-.48,1.17,-.63],["c",.3,-.09,1.02,-.3,1.14,-.3],["c",.06,0,.09,0,.09,-.03],["c",.03,-.03,-.51,-1.92,-1.23,-4.26],["z"],["m",3.78,7.41],["c",-.18,-.03,-.36,-.06,-.39,-.06],["c",-.03,0,0,.21,.18,1.02],["c",.75,3.18,1.26,6.3,1.5,9.09],["c",.06,.72,0,.69,.51,.42],["c",.78,-.36,1.44,-.96,1.98,-1.77],["c",1.08,-1.62,1.2,-3.69,.3,-5.55],["c",-.81,-1.62,-2.31,-2.79,-4.08,-3.15],["z"]],w:19.051,h:57.057},"clefs.perc":{d:[["M",5.07,-7.44],["l",.09,-.06],["l",1.53,0],["l",1.53,0],["l",.09,.06],["l",.06,.09],["l",0,7.35],["l",0,7.32],["l",-.06,.09],["l",-.09,.06],["l",-1.53,0],["l",-1.53,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-7.32],["l",0,-7.35],["z"],["m",6.63,0],["l",.09,-.06],["l",1.53,0],["l",1.53,0],["l",.09,.06],["l",.06,.09],["l",0,7.35],["l",0,7.32],["l",-.06,.09],["l",-.09,.06],["l",-1.53,0],["l",-1.53,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-7.32],["l",0,-7.35],["z"]],w:21,h:14.97},"tab.big":{d:[["M",20.16,-21.66],["c",.24,-.09,.66,.09,.78,.36],["c",.09,.21,.09,.24,-.18,.54],["c",-.78,.81,-1.86,1.44,-2.94,1.71],["c",-.87,.24,-1.71,.24,-2.55,.03],["l",-.06,-.03],["l",-.18,.99],["c",-.33,1.98,-.75,4.26,-.96,5.04],["c",-.42,1.65,-1.26,3.18,-2.28,4.14],["c",-.57,.57,-1.17,.9,-1.86,1.08],["c",-.18,.06,-.33,.06,-.66,.06],["c",-.54,0,-.78,-.03,-1.23,-.27],["c",-.39,-.18,-.66,-.39,-1.38,-.99],["c",-.3,-.24,-.66,-.51,-.75,-.57],["c",-.21,-.15,-.27,-.24,-.24,-.45],["c",.06,-.27,.36,-.6,.6,-.66],["c",.18,-.03,.33,.06,.9,.57],["c",.48,.42,.72,.57,.93,.69],["c",.66,.33,1.38,.21,1.95,-.36],["c",.63,-.6,1.05,-1.62,1.23,-3],["c",.03,-.18,.09,-.66,.09,-1.11],["c",.09,-1.56,.33,-3.81,.57,-5.49],["c",.06,-.33,.09,-.63,.09,-.63],["c",-.03,-.03,-.81,-.12,-1.02,-.12],["c",-.57,0,-1.32,.12,-1.8,.33],["c",-.87,.3,-1.35,.78,-1.5,1.41],["c",-.18,.63,.09,1.26,.66,1.65],["c",.12,.06,.15,.12,.18,.24],["c",.09,.27,.06,.57,-.09,.75],["c",-.03,.06,-.12,.09,-.27,.15],["c",-.72,.21,-1.44,.15,-2.1,-.18],["c",-.54,-.27,-.96,-.66,-1.2,-1.14],["c",-.39,-.75,-.33,-1.74,.15,-2.52],["c",.27,-.42,.84,-.93,1.41,-1.23],["c",1.17,-.57,2.88,-.9,4.8,-.9],["c",.69,0,.78,0,1.08,.06],["c",.45,.09,1.11,.3,2.07,.6],["c",1.47,.48,1.83,.57,2.55,.54],["c",1.02,-.06,2.04,-.45,2.94,-1.11],["c",.12,-.09,.24,-.18,.27,-.18],["z"],["m",-5.88,13.05],["c",.21,-.03,.81,0,1.08,.06],["c",.48,.12,.9,.42,.99,.69],["c",.03,.09,.03,.15,0,.27],["c",0,.09,-.03,.57,-.06,1.08],["c",-.09,2.19,-.24,5.76,-.39,8.28],["c",-.06,1.53,-.06,1.77,.03,2.01],["c",.09,.18,.15,.24,.3,.3],["c",.24,.12,.54,.06,1.23,-.27],["c",.57,-.27,.66,-.3,.75,-.24],["c",.09,.06,.18,.3,.18,.45],["c",0,.33,-.15,.51,-.45,.63],["c",-.12,.03,-.39,.15,-.6,.27],["c",-1.17,.6,-1.38,.69,-1.8,.72],["c",-.45,.03,-.78,-.09,-1.08,-.39],["c",-.39,-.42,-.66,-1.2,-1.02,-3.12],["c",-.24,-1.23,-.36,-2.07,-.54,-3.75],["l",0,-.18],["l",-.36,.45],["c",-.6,.75,-1.32,1.59,-1.95,2.25],["c",-.15,.18,-.27,.3,-.27,.33],["c",0,0,.06,.09,.15,.18],["c",.24,.33,.6,.57,1.05,.69],["c",.18,.06,.3,.06,.69,.06],["l",.48,.03],["l",.06,.12],["c",.15,.27,.03,.72,-.21,.9],["c",-.18,.12,-.93,.27,-1.41,.27],["c",-.84,0,-1.59,-.3,-1.98,-.84],["l",-.12,-.15],["l",-.45,.42],["c",-.99,.87,-1.53,1.32,-2.16,1.74],["c",-.78,.51,-1.5,.84,-2.1,.93],["c",-.69,.12,-1.2,.03,-1.95,-.42],["c",-.21,-.12,-.51,-.27,-.66,-.36],["c",-.24,-.12,-.3,-.18,-.33,-.24],["c",-.12,-.27,.15,-.78,.45,-.93],["c",.24,-.12,.33,-.09,.9,.18],["c",.6,.3,.84,.39,1.2,.36],["c",.87,-.09,1.77,-.69,3.24,-2.31],["c",2.67,-2.85,4.59,-5.94,5.7,-9.15],["c",.15,-.45,.24,-.63,.42,-.81],["c",.21,-.24,.6,-.45,.99,-.51],["z"],["m",-3.99,16.05],["c",.18,0,.69,-.03,1.17,0],["c",3.27,.03,5.37,.75,6,2.07],["c",.45,.99,.12,2.4,-.81,3.42],["c",-.24,.27,-.57,.57,-.84,.75],["c",-.09,.06,-.18,.09,-.18,.12],["c",0,0,.18,.03,.42,.09],["c",1.23,.3,2.01,.81,2.37,1.59],["c",.27,.54,.3,1.32,.09,2.1],["c",-.12,.36,-.45,1.05,-.69,1.35],["c",-.87,1.17,-2.1,1.92,-3.54,2.25],["c",-.36,.06,-.48,.06,-.96,.06],["c",-.45,0,-.66,0,-.84,-.03],["c",-.84,-.18,-1.47,-.51,-2.07,-1.11],["c",-.33,-.33,-.45,-.51,-.45,-.63],["c",0,-.06,.03,-.15,.06,-.24],["c",.18,-.33,.69,-.6,.93,-.48],["c",.03,.03,.15,.12,.27,.24],["c",.39,.42,.99,.57,1.62,.45],["c",1.05,-.21,1.98,-1.02,2.31,-2.01],["c",.48,-1.53,-.48,-2.55,-2.58,-2.67],["c",-.21,0,-.36,-.03,-.42,-.06],["c",-.15,-.09,-.21,-.51,-.06,-.78],["c",.12,-.27,.24,-.33,.6,-.36],["c",.57,-.06,1.11,-.42,1.5,-.99],["c",.48,-.72,.54,-1.59,.18,-2.31],["c",-.12,-.21,-.45,-.54,-.69,-.69],["c",-.33,-.21,-.93,-.45,-1.35,-.51],["l",-.12,-.03],["l",-.06,.48],["c",-.54,2.94,-1.14,6.24,-1.29,6.75],["c",-.33,1.35,-.93,2.61,-1.65,3.6],["c",-.3,.36,-.81,.9,-1.14,1.14],["c",-.3,.24,-.84,.48,-1.14,.57],["c",-.33,.09,-.96,.09,-1.26,.03],["c",-.45,-.12,-.87,-.39,-1.53,-.96],["c",-.24,-.15,-.51,-.39,-.63,-.48],["c",-.3,-.21,-.33,-.33,-.21,-.63],["c",.12,-.18,.27,-.36,.42,-.45],["c",.27,-.12,.36,-.09,.87,.33],["c",.78,.6,1.08,.75,1.65,.72],["c",.45,-.03,.81,-.21,1.17,-.54],["c",.87,-.9,1.38,-2.85,1.38,-5.37],["c",0,-.6,.03,-1.11,.12,-2.04],["c",.06,-.69,.24,-2.01,.33,-2.58],["c",.06,-.24,.06,-.42,.06,-.42],["c",0,0,-.12,.03,-.21,.09],["c",-1.44,.57,-2.16,1.65,-1.74,2.55],["c",.09,.15,.18,.24,.27,.33],["c",.24,.21,.3,.27,.33,.39],["c",.06,.24,0,.63,-.15,.78],["c",-.09,.12,-.54,.21,-.96,.24],["c",-1.02,.03,-2.01,-.48,-2.43,-1.32],["c",-.21,-.45,-.27,-.9,-.15,-1.44],["c",.06,-.27,.21,-.66,.39,-.93],["c",.87,-1.29,3,-2.22,5.64,-2.43],["z"]],w:19.643,h:43.325},"tab.tiny":{d:[["M",16.02,-17.25],["c",.12,-.09,.15,-.09,.27,-.09],["c",.21,.03,.51,.3,.51,.45],["c",0,.06,-.12,.18,-.3,.36],["c",-1.11,1.08,-2.55,1.59,-3.84,1.41],["c",-.15,-.03,-.33,-.06,-.39,-.09],["c",-.06,-.03,-.09,-.03,-.12,-.03],["c",0,0,-.06,.42,-.15,.93],["c",-.33,2.01,-.66,3.69,-.84,4.26],["c",-.42,1.41,-1.23,2.67,-2.16,3.33],["c",-.27,.18,-.75,.42,-.99,.48],["c",-.3,.09,-.72,.09,-1.02,.06],["c",-.45,-.09,-.84,-.33,-1.53,-.9],["c",-.21,-.18,-.51,-.39,-.63,-.48],["c",-.27,-.21,-.3,-.24,-.3,-.36],["c",0,-.12,.09,-.36,.18,-.45],["c",.09,-.09,.27,-.18,.36,-.18],["c",.12,0,.3,.12,.66,.45],["c",.57,.51,.87,.69,1.23,.72],["c",.93,.06,1.68,-.78,1.98,-2.37],["c",.09,-.39,.15,-.75,.18,-1.53],["c",.06,-.99,.24,-2.79,.42,-4.05],["c",.03,-.3,.06,-.57,.06,-.6],["c",0,-.06,-.03,-.09,-.15,-.12],["c",-.9,-.18,-2.13,.06,-2.76,.57],["c",-.36,.3,-.51,.6,-.51,1.02],["c",0,.45,.15,.75,.48,.99],["c",.06,.06,.15,.18,.18,.24],["c",.12,.24,.03,.63,-.15,.69],["c",-.24,.12,-.6,.15,-.9,.15],["c",-.36,-.03,-.57,-.09,-.87,-.24],["c",-.78,-.36,-1.23,-1.11,-1.2,-1.92],["c",.12,-1.53,1.74,-2.49,4.62,-2.7],["c",1.2,-.09,1.47,-.03,3.33,.57],["c",.9,.3,1.14,.36,1.56,.39],["c",.45,0,.93,-.06,1.38,-.21],["c",.51,-.18,.81,-.33,1.41,-.75],["z"],["m",-4.68,10.38],["c",.39,-.06,.84,0,1.2,.15],["c",.24,.12,.36,.21,.45,.36],["l",.09,.09],["l",-.06,1.41],["c",-.09,2.19,-.18,3.96,-.27,5.49],["c",-.03,.78,-.06,1.59,-.06,1.86],["c",0,.42,0,.48,.06,.57],["c",.06,.18,.18,.24,.36,.27],["c",.18,0,.39,-.06,.84,-.27],["c",.45,-.21,.54,-.24,.63,-.18],["c",.12,.12,.15,.54,.03,.69],["c",-.03,.03,-.15,.12,-.27,.18],["c",-.15,.03,-.3,.12,-.36,.15],["c",-.87,.45,-1.02,.51,-1.26,.57],["c",-.33,.09,-.6,.06,-.84,-.06],["c",-.42,-.18,-.63,-.6,-.87,-1.44],["c",-.3,-1.23,-.57,-2.97,-.66,-4.08],["c",0,-.18,-.03,-.3,-.03,-.33],["l",-.06,.06],["c",-.18,.27,-1.11,1.38,-1.68,2.01],["l",-.33,.33],["l",.06,.09],["c",.06,.15,.27,.33,.48,.42],["c",.27,.18,.51,.24,.96,.27],["l",.39,0],["l",.03,.12],["c",.12,.21,.03,.57,-.15,.69],["c",-.03,.03,-.21,.09,-.36,.15],["c",-.27,.06,-.39,.06,-.75,.06],["c",-.48,0,-.75,-.03,-1.08,-.21],["c",-.21,-.12,-.51,-.36,-.57,-.48],["l",-.03,-.09],["l",-.39,.36],["c",-1.47,1.35,-2.49,1.98,-3.42,2.13],["c",-.54,.09,-.96,-.03,-1.62,-.39],["c",-.21,-.15,-.45,-.27,-.54,-.3],["c",-.18,-.09,-.21,-.21,-.12,-.45],["c",.06,-.27,.33,-.48,.54,-.48],["c",.03,0,.27,.09,.48,.21],["c",.48,.24,.69,.27,.99,.27],["c",.6,-.06,1.17,-.42,2.1,-1.35],["c",2.22,-2.22,4.02,-4.98,4.95,-7.59],["c",.21,-.57,.3,-.78,.48,-.93],["c",.15,-.15,.42,-.27,.66,-.33],["z"],["m",-3.06,12.84],["c",.27,-.03,1.68,0,2.01,.03],["c",1.92,.18,3.15,.69,3.63,1.5],["c",.18,.33,.24,.51,.21,.93],["c",0,.45,-.06,.72,-.24,1.11],["c",-.24,.51,-.69,1.02,-1.17,1.35],["c",-.21,.15,-.21,.15,-.12,.18],["c",.72,.15,1.11,.3,1.5,.57],["c",.39,.24,.63,.57,.75,.96],["c",.09,.3,.09,.96,0,1.29],["c",-.15,.57,-.39,1.05,-.78,1.5],["c",-.66,.75,-1.62,1.32,-2.61,1.53],["c",-.27,.06,-.42,.06,-.84,.06],["c",-.48,0,-.57,0,-.81,-.06],["c",-.6,-.18,-1.05,-.42,-1.47,-.81],["c",-.36,-.39,-.42,-.51,-.3,-.75],["c",.12,-.21,.39,-.39,.6,-.39],["c",.09,0,.15,.03,.33,.18],["c",.12,.12,.27,.24,.36,.27],["c",.96,.48,2.46,-.33,2.82,-1.5],["c",.24,-.81,-.03,-1.44,-.69,-1.77],["c",-.39,-.21,-1.02,-.33,-1.53,-.33],["c",-.18,0,-.21,0,-.27,-.09],["c",-.06,-.09,-.06,-.3,-.03,-.48],["c",.06,-.18,.18,-.36,.33,-.36],["c",.39,-.06,.51,-.09,.72,-.18],["c",.69,-.36,1.11,-1.23,.99,-2.01],["c",-.09,-.51,-.42,-.9,-.93,-1.17],["c",-.24,-.12,-.6,-.27,-.87,-.3],["c",-.09,-.03,-.09,-.03,-.12,.12],["c",0,.09,-.21,1.11,-.42,2.25],["c",-.66,3.75,-.72,3.99,-1.26,5.07],["c",-.9,1.89,-2.25,2.85,-3.48,2.61],["c",-.39,-.09,-.69,-.27,-1.38,-.84],["c",-.63,-.51,-.63,-.48,-.63,-.6],["c",0,-.18,.18,-.48,.39,-.57],["c",.21,-.12,.3,-.09,.81,.33],["c",.15,.15,.39,.3,.54,.36],["c",.18,.12,.27,.12,.48,.15],["c",.99,.06,1.71,-.78,2.04,-2.46],["c",.12,-.66,.18,-1.14,.21,-2.22],["c",.03,-1.23,.12,-2.25,.36,-3.63],["c",.03,-.24,.06,-.45,.06,-.48],["c",-.06,-.03,-.66,.27,-.9,.42],["c",-.06,.06,-.21,.18,-.33,.3],["c",-.57,.57,-.6,1.35,-.06,1.74],["c",.18,.12,.24,.24,.21,.51],["c",-.03,.3,-.15,.42,-.57,.48],["c",-1.11,.24,-2.22,-.42,-2.43,-1.38],["c",-.09,-.45,.03,-1.02,.3,-1.47],["c",.18,-.24,.6,-.63,.9,-.84],["c",.9,-.6,2.28,-1.02,3.69,-1.11],["z"]],w:15.709,h:34.656},"timesig.common":{d:[["M",6.66,-7.83],["c",.72,-.06,1.41,-.03,1.98,.09],["c",1.2,.27,2.34,.96,3.09,1.92],["c",.63,.81,1.08,1.86,1.14,2.73],["c",.06,1.02,-.51,1.92,-1.44,2.22],["c",-.24,.09,-.3,.09,-.63,.09],["c",-.33,0,-.42,0,-.63,-.06],["c",-.66,-.24,-1.14,-.63,-1.41,-1.2],["c",-.15,-.3,-.21,-.51,-.24,-.9],["c",-.06,-1.08,.57,-2.04,1.56,-2.37],["c",.18,-.06,.27,-.06,.63,-.06],["l",.45,0],["c",.06,.03,.09,.03,.09,0],["c",0,0,-.09,-.12,-.24,-.27],["c",-1.02,-1.11,-2.55,-1.68,-4.08,-1.5],["c",-1.29,.15,-2.04,.69,-2.4,1.74],["c",-.36,.93,-.42,1.89,-.42,5.37],["c",0,2.97,.06,3.96,.24,4.77],["c",.24,1.08,.63,1.68,1.41,2.07],["c",.81,.39,2.16,.45,3.18,.09],["c",1.29,-.45,2.37,-1.53,3.03,-2.97],["c",.15,-.33,.33,-.87,.39,-1.17],["c",.09,-.24,.15,-.36,.3,-.39],["c",.21,-.03,.42,.15,.39,.36],["c",-.06,.39,-.42,1.38,-.69,1.89],["c",-.96,1.8,-2.49,2.94,-4.23,3.18],["c",-.99,.12,-2.58,-.06,-3.63,-.45],["c",-.96,-.36,-1.71,-.84,-2.4,-1.5],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-.06,-.6,-.06,-2.01,0,-2.61],["c",.24,-1.95,.9,-3.45,2.01,-4.56],["c",.69,-.66,1.44,-1.11,2.37,-1.47],["c",.63,-.24,1.47,-.42,2.22,-.48],["z"]],w:13.038,h:15.689},"timesig.cut":{d:[["M",6.24,-10.44],["c",.09,-.06,.09,-.06,.48,-.06],["c",.36,0,.36,0,.45,.06],["l",.06,.09],["l",0,1.23],["l",0,1.26],["l",.27,0],["c",1.26,0,2.49,.45,3.48,1.29],["c",1.05,.87,1.8,2.28,1.89,3.48],["c",.06,1.02,-.51,1.92,-1.44,2.22],["c",-.24,.09,-.3,.09,-.63,.09],["c",-.33,0,-.42,0,-.63,-.06],["c",-.66,-.24,-1.14,-.63,-1.41,-1.2],["c",-.15,-.3,-.21,-.51,-.24,-.9],["c",-.06,-1.08,.57,-2.04,1.56,-2.37],["c",.18,-.06,.27,-.06,.63,-.06],["l",.45,0],["c",.06,.03,.09,.03,.09,0],["c",0,-.03,-.45,-.51,-.66,-.69],["c",-.87,-.69,-1.83,-1.05,-2.94,-1.11],["l",-.42,0],["l",0,7.17],["l",0,7.14],["l",.42,0],["c",.69,-.03,1.23,-.18,1.86,-.51],["c",1.05,-.51,1.89,-1.47,2.46,-2.7],["c",.15,-.33,.33,-.87,.39,-1.17],["c",.09,-.24,.15,-.36,.3,-.39],["c",.21,-.03,.42,.15,.39,.36],["c",-.03,.24,-.21,.78,-.39,1.2],["c",-.96,2.37,-2.94,3.9,-5.13,3.9],["l",-.3,0],["l",0,1.26],["l",0,1.23],["l",-.06,.09],["c",-.09,.06,-.09,.06,-.45,.06],["c",-.39,0,-.39,0,-.48,-.06],["l",-.06,-.09],["l",0,-1.29],["l",0,-1.29],["l",-.21,-.03],["c",-1.23,-.21,-2.31,-.63,-3.21,-1.29],["c",-.15,-.09,-.45,-.36,-.66,-.57],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-.06,-.6,-.06,-2.01,0,-2.61],["c",.24,-1.95,.93,-3.45,2.04,-4.59],["c",.42,-.39,.78,-.66,1.26,-.93],["c",.75,-.45,1.65,-.75,2.61,-.9],["l",.21,-.03],["l",0,-1.29],["l",0,-1.29],["z"],["m",-.06,10.44],["c",0,-5.58,0,-6.99,-.03,-6.99],["c",-.15,0,-.63,.27,-.87,.45],["c",-.45,.36,-.75,.93,-.93,1.77],["c",-.18,.81,-.24,1.8,-.24,4.74],["c",0,2.97,.06,3.96,.24,4.77],["c",.24,1.08,.66,1.68,1.41,2.07],["c",.12,.06,.3,.12,.33,.15],["l",.09,0],["l",0,-6.96],["z"]],w:13.038,h:20.97},"timesig.imperfectum":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.imperfectum2":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum2":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},f:{d:[["M",9.93,-14.28],["c",1.53,-.18,2.88,.45,3.12,1.5],["c",.12,.51,0,1.32,-.27,1.86],["c",-.15,.3,-.42,.57,-.63,.69],["c",-.69,.36,-1.56,.03,-1.83,-.69],["c",-.09,-.24,-.09,-.69,0,-.87],["c",.06,-.12,.21,-.24,.45,-.42],["c",.42,-.24,.57,-.45,.6,-.72],["c",.03,-.33,-.09,-.39,-.63,-.42],["c",-.3,0,-.45,0,-.6,.03],["c",-.81,.21,-1.35,.93,-1.74,2.46],["c",-.06,.27,-.48,2.25,-.48,2.31],["c",0,.03,.39,.03,.9,.03],["c",.72,0,.9,0,.99,.06],["c",.42,.15,.45,.72,.03,.9],["c",-.12,.06,-.24,.06,-1.17,.06],["l",-1.05,0],["l",-.78,2.55],["c",-.45,1.41,-.87,2.79,-.96,3.06],["c",-.87,2.37,-2.37,4.74,-3.78,5.91],["c",-1.05,.9,-2.04,1.23,-3.09,1.08],["c",-1.11,-.18,-1.89,-.78,-2.04,-1.59],["c",-.12,-.66,.15,-1.71,.54,-2.19],["c",.69,-.75,1.86,-.54,2.22,.39],["c",.06,.15,.09,.27,.09,.48],["c",0,.24,-.03,.27,-.12,.42],["c",-.03,.09,-.15,.18,-.27,.27],["c",-.09,.06,-.27,.21,-.36,.27],["c",-.24,.18,-.36,.36,-.39,.6],["c",-.03,.33,.09,.39,.63,.42],["c",.42,0,.63,-.03,.9,-.15],["c",.6,-.3,.96,-.96,1.38,-2.64],["c",.09,-.42,.63,-2.55,1.17,-4.77],["l",1.02,-4.08],["c",0,-.03,-.36,-.03,-.81,-.03],["c",-.72,0,-.81,0,-.93,-.06],["c",-.42,-.18,-.39,-.75,.03,-.9],["c",.09,-.06,.27,-.06,1.05,-.06],["l",.96,0],["l",0,-.09],["c",.06,-.18,.3,-.72,.51,-1.17],["c",1.2,-2.46,3.3,-4.23,5.34,-4.5],["z"]],w:16.155,h:19.445},m:{d:[["M",2.79,-8.91],["c",.09,0,.3,-.03,.45,-.03],["c",.24,.03,.3,.03,.45,.12],["c",.36,.15,.63,.54,.75,1.02],["l",.03,.21],["l",.33,-.3],["c",.69,-.69,1.38,-1.02,2.07,-1.02],["c",.27,0,.33,0,.48,.06],["c",.21,.09,.48,.36,.63,.6],["c",.03,.09,.12,.27,.18,.42],["c",.03,.15,.09,.27,.12,.27],["c",0,0,.09,-.09,.18,-.21],["c",.33,-.39,.87,-.81,1.29,-.99],["c",.78,-.33,1.47,-.21,2.01,.33],["c",.3,.33,.48,.69,.6,1.14],["c",.09,.42,.06,.54,-.54,3.06],["c",-.33,1.29,-.57,2.4,-.57,2.43],["c",0,.12,.09,.21,.21,.21],["c",.24,0,.75,-.3,1.2,-.72],["c",.45,-.39,.6,-.45,.78,-.27],["c",.18,.18,.09,.36,-.45,.87],["c",-1.05,.96,-1.83,1.47,-2.58,1.71],["c",-.93,.33,-1.53,.21,-1.8,-.33],["c",-.06,-.15,-.06,-.21,-.06,-.45],["c",0,-.24,.03,-.48,.6,-2.82],["c",.42,-1.71,.6,-2.64,.63,-2.79],["c",.03,-.57,-.3,-.75,-.84,-.48],["c",-.24,.12,-.54,.39,-.66,.63],["c",-.03,.09,-.42,1.38,-.9,3],["c",-.9,3.15,-.84,3,-1.14,3.15],["l",-.15,.09],["l",-.78,0],["c",-.6,0,-.78,0,-.84,-.06],["c",-.09,-.03,-.18,-.18,-.18,-.27],["c",0,-.03,.36,-1.38,.84,-2.97],["c",.57,-2.04,.81,-2.97,.84,-3.12],["c",.03,-.54,-.3,-.72,-.84,-.45],["c",-.24,.12,-.57,.42,-.66,.63],["c",-.06,.09,-.51,1.44,-1.05,2.97],["c",-.51,1.56,-.99,2.85,-.99,2.91],["c",-.06,.12,-.21,.24,-.36,.3],["c",-.12,.06,-.21,.06,-.9,.06],["c",-.6,0,-.78,0,-.84,-.06],["c",-.09,-.03,-.18,-.18,-.18,-.27],["c",0,-.03,.45,-1.38,.99,-2.97],["c",1.05,-3.18,1.05,-3.18,.93,-3.45],["c",-.12,-.27,-.39,-.3,-.72,-.15],["c",-.54,.27,-1.14,1.17,-1.56,2.4],["c",-.06,.15,-.15,.3,-.18,.36],["c",-.21,.21,-.57,.27,-.72,.09],["c",-.09,-.09,-.06,-.21,.06,-.63],["c",.48,-1.26,1.26,-2.46,2.01,-3.21],["c",.57,-.54,1.2,-.87,1.83,-1.02],["z"]],w:14.687,h:9.126},p:{d:[["M",1.92,-8.7],["c",.27,-.09,.81,-.06,1.11,.03],["c",.54,.18,.93,.51,1.17,.99],["c",.09,.15,.15,.33,.18,.36],["l",0,.12],["l",.3,-.27],["c",.66,-.6,1.35,-1.02,2.13,-1.2],["c",.21,-.06,.33,-.06,.78,-.06],["c",.45,0,.51,0,.84,.09],["c",1.29,.33,2.07,1.32,2.25,2.79],["c",.09,.81,-.09,2.01,-.45,2.79],["c",-.54,1.26,-1.86,2.55,-3.18,3.03],["c",-.45,.18,-.81,.24,-1.29,.24],["c",-.69,-.03,-1.35,-.18,-1.86,-.45],["c",-.3,-.15,-.51,-.18,-.69,-.09],["c",-.09,.03,-.18,.09,-.18,.12],["c",-.09,.12,-1.05,2.94,-1.05,3.06],["c",0,.24,.18,.48,.51,.63],["c",.18,.06,.54,.15,.75,.15],["c",.21,0,.36,.06,.42,.18],["c",.12,.18,.06,.42,-.12,.54],["c",-.09,.03,-.15,.03,-.78,0],["c",-1.98,-.15,-3.81,-.15,-5.79,0],["c",-.63,.03,-.69,.03,-.78,0],["c",-.24,-.15,-.24,-.57,.03,-.66],["c",.06,-.03,.48,-.09,.99,-.12],["c",.87,-.06,1.11,-.09,1.35,-.21],["c",.18,-.06,.33,-.18,.39,-.3],["c",.06,-.12,3.24,-9.42,3.27,-9.6],["c",.06,-.33,.03,-.57,-.15,-.69],["c",-.09,-.06,-.12,-.06,-.3,-.06],["c",-.69,.06,-1.53,1.02,-2.28,2.61],["c",-.09,.21,-.21,.45,-.27,.51],["c",-.09,.12,-.33,.24,-.48,.24],["c",-.18,0,-.36,-.15,-.36,-.3],["c",0,-.24,.78,-1.83,1.26,-2.55],["c",.72,-1.11,1.47,-1.74,2.28,-1.92],["z"],["m",5.37,1.47],["c",-.27,-.12,-.75,-.03,-1.14,.21],["c",-.75,.48,-1.47,1.68,-1.89,3.15],["c",-.45,1.47,-.42,2.34,0,2.7],["c",.45,.39,1.26,.21,1.83,-.36],["c",.51,-.51,.99,-1.68,1.38,-3.27],["c",.3,-1.17,.33,-1.74,.15,-2.13],["c",-.09,-.15,-.15,-.21,-.33,-.3],["z"]],w:14.689,h:13.127},r:{d:[["M",6.33,-9.12],["c",.27,-.03,.93,0,1.2,.06],["c",.84,.21,1.23,.81,1.02,1.53],["c",-.24,.75,-.9,1.17,-1.56,.96],["c",-.33,-.09,-.51,-.3,-.66,-.75],["c",-.03,-.12,-.09,-.24,-.12,-.3],["c",-.09,-.15,-.3,-.24,-.48,-.24],["c",-.57,0,-1.38,.54,-1.65,1.08],["c",-.06,.15,-.33,1.17,-.9,3.27],["c",-.57,2.31,-.81,3.12,-.87,3.21],["c",-.03,.06,-.12,.15,-.18,.21],["l",-.12,.06],["l",-.81,.03],["c",-.69,0,-.81,0,-.9,-.03],["c",-.09,-.06,-.18,-.21,-.18,-.3],["c",0,-.06,.39,-1.62,.9,-3.51],["c",.84,-3.24,.87,-3.45,.87,-3.72],["c",0,-.21,0,-.27,-.03,-.36],["c",-.12,-.15,-.21,-.24,-.42,-.24],["c",-.24,0,-.45,.15,-.78,.42],["c",-.33,.36,-.45,.54,-.72,1.14],["c",-.03,.12,-.21,.24,-.36,.27],["c",-.12,0,-.15,0,-.24,-.06],["c",-.18,-.12,-.18,-.21,-.06,-.54],["c",.21,-.57,.42,-.93,.78,-1.32],["c",.54,-.51,1.2,-.81,1.95,-.87],["c",.81,-.03,1.53,.3,1.92,.87],["l",.12,.18],["l",.09,-.09],["c",.57,-.45,1.41,-.84,2.19,-.96],["z"]],w:9.41,h:9.132},s:{d:[["M",4.47,-8.73],["c",.09,0,.36,-.03,.57,-.03],["c",.75,.03,1.29,.24,1.71,.63],["c",.51,.54,.66,1.26,.36,1.83],["c",-.24,.42,-.63,.57,-1.11,.42],["c",-.33,-.09,-.6,-.36,-.6,-.57],["c",0,-.03,.06,-.21,.15,-.39],["c",.12,-.21,.15,-.33,.18,-.48],["c",0,-.24,-.06,-.48,-.15,-.6],["c",-.15,-.21,-.42,-.24,-.75,-.15],["c",-.27,.06,-.48,.18,-.69,.36],["c",-.39,.39,-.51,.96,-.33,1.38],["c",.09,.21,.42,.51,.78,.72],["c",1.11,.69,1.59,1.11,1.89,1.68],["c",.21,.39,.24,.78,.15,1.29],["c",-.18,1.2,-1.17,2.16,-2.52,2.52],["c",-1.02,.24,-1.95,.12,-2.7,-.42],["c",-.72,-.51,-.99,-1.47,-.6,-2.19],["c",.24,-.48,.72,-.63,1.17,-.42],["c",.33,.18,.54,.45,.57,.81],["c",0,.21,-.03,.3,-.33,.51],["c",-.33,.24,-.39,.42,-.27,.69],["c",.06,.15,.21,.27,.45,.33],["c",.3,.09,.87,.09,1.2,0],["c",.75,-.21,1.23,-.72,1.29,-1.35],["c",.03,-.42,-.15,-.81,-.54,-1.2],["c",-.24,-.24,-.48,-.42,-1.41,-1.02],["c",-.69,-.42,-1.05,-.93,-1.05,-1.47],["c",0,-.39,.12,-.87,.3,-1.23],["c",.27,-.57,.78,-1.05,1.38,-1.35],["c",.24,-.12,.63,-.27,.9,-.3],["z"]],w:6.632,h:8.758},z:{d:[["M",2.64,-7.95],["c",.36,-.09,.81,-.03,1.71,.27],["c",.78,.21,.96,.27,1.74,.3],["c",.87,.06,1.02,.03,1.38,-.21],["c",.21,-.15,.33,-.15,.48,-.06],["c",.15,.09,.21,.3,.15,.45],["c",-.03,.06,-1.26,1.26,-2.76,2.67],["l",-2.73,2.55],["l",.54,.03],["c",.54,.03,.72,.03,2.01,.15],["c",.36,.03,.9,.06,1.2,.09],["c",.66,0,.81,-.03,1.02,-.24],["c",.3,-.3,.39,-.72,.27,-1.23],["c",-.06,-.27,-.06,-.27,-.03,-.39],["c",.15,-.3,.54,-.27,.69,.03],["c",.15,.33,.27,1.02,.27,1.5],["c",0,1.47,-1.11,2.7,-2.52,2.79],["c",-.57,.03,-1.02,-.09,-2.01,-.51],["c",-1.02,-.42,-1.23,-.48,-2.13,-.54],["c",-.81,-.06,-.96,-.03,-1.26,.18],["c",-.12,.06,-.24,.12,-.27,.12],["c",-.27,0,-.45,-.3,-.36,-.51],["c",.03,-.06,1.32,-1.32,2.91,-2.79],["l",2.88,-2.73],["c",-.03,0,-.21,.03,-.42,.06],["c",-.21,.03,-.78,.09,-1.23,.12],["c",-1.11,.12,-1.23,.15,-1.95,.27],["c",-.72,.15,-1.17,.18,-1.29,.09],["c",-.27,-.18,-.21,-.75,.12,-1.26],["c",.39,-.6,.93,-1.02,1.59,-1.2],["z"]],w:8.573,h:8.743},"+":{d:[["M",3.48,-9.3],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,1.29],["l",0,1.29],["l",1.29,0],["c",1.23,0,1.29,0,1.41,.06],["c",.06,.03,.15,.09,.18,.12],["c",.12,.09,.21,.33,.21,.48],["c",0,.15,-.09,.39,-.21,.48],["c",-.03,.03,-.12,.09,-.18,.12],["c",-.12,.06,-.18,.06,-1.41,.06],["l",-1.29,0],["l",0,1.29],["c",0,1.23,0,1.29,-.06,1.41],["c",-.09,.18,-.15,.24,-.3,.33],["c",-.21,.09,-.39,.09,-.57,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.06,-.12,-.06,-.18,-.06,-1.41],["l",0,-1.29],["l",-1.29,0],["c",-1.23,0,-1.29,0,-1.41,-.06],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.09,-.36,0,-.54],["c",.09,-.18,.15,-.24,.33,-.33],["l",.15,-.06],["l",1.26,0],["l",1.29,0],["l",0,-1.29],["c",0,-1.23,0,-1.29,.06,-1.41],["c",.09,-.18,.15,-.24,.33,-.33],["z"]],w:7.507,h:7.515},",":{d:[["M",1.32,-3.36],["c",.57,-.15,1.17,.03,1.59,.45],["c",.45,.45,.6,.96,.51,1.89],["c",-.09,1.23,-.42,2.46,-.99,3.93],["c",-.3,.72,-.72,1.62,-.78,1.68],["c",-.18,.21,-.51,.18,-.66,-.06],["c",-.03,-.06,-.06,-.15,-.06,-.18],["c",0,-.06,.12,-.33,.24,-.63],["c",.84,-1.8,1.02,-2.61,.69,-3.24],["c",-.12,-.24,-.27,-.36,-.75,-.6],["c",-.36,-.15,-.42,-.21,-.6,-.39],["c",-.69,-.69,-.69,-1.71,0,-2.4],["c",.21,-.21,.51,-.39,.81,-.45],["z"]],w:3.452,h:8.143},"-":{d:[["M",.18,-5.34],["c",.09,-.06,.15,-.06,2.31,-.06],["c",2.46,0,2.37,0,2.46,.21],["c",.12,.21,.03,.42,-.15,.54],["c",-.09,.06,-.15,.06,-2.28,.06],["c",-2.16,0,-2.22,0,-2.31,-.06],["c",-.27,-.15,-.27,-.54,-.03,-.69],["z"]],w:5.001,h:.81},".":{d:[["M",1.32,-3.36],["c",1.05,-.27,2.1,.57,2.1,1.65],["c",0,1.08,-1.05,1.92,-2.1,1.65],["c",-.9,-.21,-1.5,-1.14,-1.26,-2.04],["c",.12,-.63,.63,-1.11,1.26,-1.26],["z"]],w:3.413,h:3.402},"scripts.wedge":{d:[["M",-3.66,-7.44],["c",.06,-.09,0,-.09,.81,.03],["c",1.86,.3,3.84,.3,5.73,0],["c",.78,-.12,.72,-.12,.78,-.03],["c",.15,.15,.12,.24,-.24,.6],["c",-.93,.93,-1.98,2.76,-2.67,4.62],["c",-.3,.78,-.51,1.71,-.51,2.13],["c",0,.15,0,.18,-.06,.27],["c",-.12,.09,-.24,.09,-.36,0],["c",-.06,-.09,-.06,-.12,-.06,-.27],["c",0,-.42,-.21,-1.35,-.51,-2.13],["c",-.69,-1.86,-1.74,-3.69,-2.67,-4.62],["c",-.36,-.36,-.39,-.45,-.24,-.6],["z"]],w:7.49,h:7.752},"scripts.thumb":{d:[["M",-.54,-3.69],["c",.15,-.03,.36,-.06,.51,-.06],["c",1.44,0,2.58,1.11,2.94,2.85],["c",.09,.48,.09,1.32,0,1.8],["c",-.27,1.41,-1.08,2.43,-2.16,2.73],["l",-.18,.06],["l",0,.12],["c",.03,.06,.06,.45,.09,.87],["c",.03,.57,.03,.78,0,.84],["c",-.09,.27,-.39,.48,-.66,.48],["c",-.27,0,-.57,-.21,-.66,-.48],["c",-.03,-.06,-.03,-.27,0,-.84],["c",.03,-.42,.06,-.81,.09,-.87],["l",0,-.12],["l",-.18,-.06],["c",-1.08,-.3,-1.89,-1.32,-2.16,-2.73],["c",-.09,-.48,-.09,-1.32,0,-1.8],["c",.15,-.84,.51,-1.53,1.02,-2.04],["c",.39,-.39,.84,-.63,1.35,-.75],["z"],["m",1.05,.9],["c",-.15,-.09,-.21,-.09,-.45,-.12],["c",-.15,0,-.3,.03,-.39,.03],["c",-.57,.18,-.9,.72,-1.08,1.74],["c",-.06,.48,-.06,1.8,0,2.28],["c",.15,.9,.42,1.44,.9,1.65],["c",.18,.09,.21,.09,.51,.09],["c",.3,0,.33,0,.51,-.09],["c",.48,-.21,.75,-.75,.9,-1.65],["c",.03,-.27,.03,-.54,.03,-1.14],["c",0,-.6,0,-.87,-.03,-1.14],["c",-.15,-.9,-.45,-1.44,-.9,-1.65],["z"]],w:5.955,h:9.75},"scripts.open":{d:[["M",-.54,-3.69],["c",.15,-.03,.36,-.06,.51,-.06],["c",1.44,0,2.58,1.11,2.94,2.85],["c",.09,.48,.09,1.32,0,1.8],["c",-.33,1.74,-1.47,2.85,-2.91,2.85],["c",-1.44,0,-2.58,-1.11,-2.91,-2.85],["c",-.09,-.48,-.09,-1.32,0,-1.8],["c",.15,-.84,.51,-1.53,1.02,-2.04],["c",.39,-.39,.84,-.63,1.35,-.75],["z"],["m",1.11,.9],["c",-.21,-.09,-.27,-.09,-.51,-.12],["c",-.3,0,-.42,.03,-.66,.15],["c",-.24,.12,-.51,.39,-.66,.63],["c",-.54,.93,-.63,2.64,-.21,3.81],["c",.21,.54,.51,.9,.93,1.11],["c",.21,.09,.24,.09,.54,.09],["c",.3,0,.33,0,.54,-.09],["c",.42,-.21,.72,-.57,.93,-1.11],["c",.36,-.99,.36,-2.37,0,-3.36],["c",-.21,-.54,-.51,-.9,-.9,-1.11],["z"]],w:5.955,h:7.5},"scripts.longphrase":{d:[["M",1.47,-15.09],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.54,.06,11.25],["l",0,11.25],["l",-.63,.15],["c",-.66,.18,-1.44,.39,-1.5,.39],["c",-.03,0,-.03,-3.39,-.03,-11.25],["l",0,-11.25],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:23.04},"scripts.mediumphrase":{d:[["M",1.47,-7.59],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.39,.06,7.5],["l",0,7.5],["l",-.63,.15],["c",-.66,.18,-1.44,.39,-1.5,.39],["c",-.03,0,-.03,-2.28,-.03,-7.5],["l",0,-7.5],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:15.54},"scripts.shortphrase":{d:[["M",1.47,-7.59],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.21,.06,3.75],["l",0,3.75],["l",-.42,.09],["c",-.57,.18,-1.65,.45,-1.71,.45],["c",-.03,0,-.03,-.72,-.03,-3.75],["l",0,-3.75],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:8.04},"scripts.snap":{d:[["M",4.5,-3.39],["c",.36,-.03,.96,-.03,1.35,0],["c",1.56,.15,3.15,.9,4.2,2.01],["c",.24,.27,.33,.42,.33,.6],["c",0,.27,.03,.24,-2.46,2.22],["c",-1.29,1.02,-2.4,1.86,-2.49,1.92],["c",-.18,.09,-.3,.09,-.48,0],["c",-.09,-.06,-1.2,-.9,-2.49,-1.92],["c",-2.49,-1.98,-2.46,-1.95,-2.46,-2.22],["c",0,-.18,.09,-.33,.33,-.6],["c",1.05,-1.08,2.64,-1.86,4.17,-2.01],["z"],["m",1.29,1.17],["c",-1.47,-.15,-2.97,.3,-4.14,1.2],["l",-.18,.15],["l",.06,.09],["c",.15,.12,3.63,2.85,3.66,2.85],["c",.03,0,3.51,-2.73,3.66,-2.85],["l",.06,-.09],["l",-.18,-.15],["c",-.84,-.66,-1.89,-1.08,-2.94,-1.2],["z"]],w:10.38,h:6.84},"noteheads.slash.whole":{d:[["M",5,-5],["l",1,1],["l",-5,5],["l",-1,-1],["z"],["m",4,6],["l",-5,-5],["l",2,-2],["l",5,5],["z"],["m",0,-2],["l",1,1],["l",-5,5],["l",-1,-1],["z"],["m",-4,6],["l",-5,-5],["l",2,-2],["l",5,5],["z"]],w:10.81,h:15.63},"noteheads.slash.quarter":{d:[["M",9,-6],["l",0,4],["l",-9,9],["l",0,-4],["z"]],w:9,h:9},"noteheads.harmonic.quarter":{d:[["M",3.63,-4.02],["c",.09,-.06,.18,-.09,.24,-.03],["c",.03,.03,.87,.93,1.83,2.01],["c",1.5,1.65,1.8,1.98,1.8,2.04],["c",0,.06,-.3,.39,-1.8,2.04],["c",-.96,1.08,-1.8,1.98,-1.83,2.01],["c",-.06,.06,-.15,.03,-.24,-.03],["c",-.12,-.09,-3.54,-3.84,-3.6,-3.93],["c",-.03,-.03,-.03,-.09,-.03,-.15],["c",.03,-.06,3.45,-3.84,3.63,-3.96],["z"]],w:7.5,h:8.165},"noteheads.triangle.quarter":{d:[["M",0,0],["l",9,0],["l",-4.5,-9],["z"]],w:9,h:9}},D=function(c){for(var f=[],m=0,_=c.length;m<_;m++){f[m]=[];for(var y=0,E=c[m].length;y{function H(A){switch(A){case"B#":return"H#";case"B\u266f":return"H\u266f";case"B":return"H";case"Bb":case"B\u266d":return"B"}return A}Z.exports=function M(A,I,D){var p=A.split("\n");for(let b=0;b{var A=M(3486),I=M(3761),D=M(2866),p=M(369),b=M(8796);Z.exports=function c(f,m,_,y,E){if(!m.invisible){var g=m.children.length>0&&"TempoElement"===m.children[0].type;m.elemset=[],b.beginGroup(f.paper,f.controller);for(var l=0;l0?v.classList[0]+" ":"")+m.overrideClasses),g)m.startChar=m.abcelem.startChar,m.endChar=m.abcelem.endChar,y.add(m,v,!1,E);else{m.elemset.push(v);var x=!1;("note"===m.type||"tabNumber"===m.type)&&(x=!0),y.add(m,v,x,E)}else m.elemset.length>0&&y.add(m,m.elemset[0],"note"===m.type,E);if(m.klass&&p(m.elemset,"mark","","#00ff00"),m.hint&&p(m.elemset,"abcjs-hint","",null),m.abcelem.abselem=m,m.heads&&m.heads.length>0){m.notePositions=[];for(var O=0;O{var A=M(8509),I=M(2492);function p(f,m,_,y,E,g){_=I(f.calcY(_)),E=I(f.calcY(E)),m=I(m),y=I(y);var l=I(_+g);return"M"+m+" "+_+" L"+y+" "+E+"L"+y+" "+I(E+g)+" L"+m+" "+l+"z"}function b(f,m,_,y,E){return(E-_)/(y-m)}function c(f,m,_,y){return m+(y-f)*_}Z.exports=function D(f,m){if(0!==m.beams.length){for(var _="",y=0;y{var A=M(2782),I=M(2866),D=M(5740);function f(_,y,E,g){return A("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",_+E[0],y+g[0],_+E[1],y+g[1],_+E[2],y+g[2],_+E[3],y+g[3],_+E[4],y+g[4],_+E[5],y+g[5],_+E[6],y+g[6])}Z.exports=function p(_,y,E){var g=y.startVoice.staff.absoluteY-10*I.STEP;return y.endY=y.endVoice&&y.endVoice.staff?y.endVoice.staff.absoluteY-2*I.STEP:y.lastContinuedVoice&&y.lastContinuedVoice.staff?y.lastContinuedVoice.staff.absoluteY-2*I.STEP:y.startVoice.staff.absoluteY-2*I.STEP,function(_,y,E,g,l,h,w){var u;if(h){_.paper.openGroup({klass:_.controller.classes.generate("staff-extra voice-name"),"data-name":l});var v=E+(g-E)/2;v-=_.controller.getTextSize.baselineToCenter(h,"voicefont","staff-extra voice-name",0,1),D(_,{x:_.padding.left,y:v,text:h,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0})}return"brace"===l?u=function c(_,y,E,g,l){var h=g-E,w=f(y,E,[7.5,-8,21,0,18.5,-10.5,7.5],[0,h/5.5,h/3.14,h/2,h/2.93,h/4.88,0]);return w+=f(y,E,[0,17.5,-7.5,6.6,-5,20,0],[h/2,h/1.46,h/1.22,h,h/1.19,h/1.42,h/2]),_.paper.path({path:w,stroke:_.foregroundColor,fill:_.foregroundColor,class:_.controller.classes.generate(l),"data-name":l})}(_,y,E,g,l):"bracket"===l&&(u=function b(_,y,E,g,l){var h=.75*I.STEP,w=.75*I.STEP,u=g-E,v=A("M %f %f l %f %f l %f %f l %f %f z",y+=I.STEP,E-w,0,u+2*w,h,0,0,-(u+2*w)),S=2*I.STEP,x=I.STEP;return v+=A("M %f %f q %f %f %f %f q %f %f %f %f z",y+h,E-w,.6*S,.2*x,S,-x,.1*-S,.3*x,-S,x+I.STEP),v+=A("M %f %f q %f %f %f %f q %f %f %f %f z",y+h,E+w+u,.6*S,.2*-x,S,x,.1*-S,.3*-x,-S,-x-I.STEP),_.paper.path({path:v,stroke:_.foregroundColor,fill:_.foregroundColor,class:_.controller.classes.generate(l),"data-name":l})}(_,y,E,g,l)),h&&(u=_.paper.closeGroup()),w.wrapSvgEl({el_type:l,startChar:-1,endChar:-1},u),u}(_,y.x,g,y.endY,y.type,y.header,E)}},6633:(Z,H,M)=>{var A=M(2782),I=M(8509),D=M(2492),b=function(c,f,m,_,y,E,g){f=D(f),m=D(m),_=D(_),y=D(y),E=D(E),g=D(g);var l=A("M %f %f L %f %f M %f %f L %f %f",E,f,g,m,E,_,g,y);return I(c,{path:l,highlight:"stroke",stroke:c.foregroundColor,class:c.controller.classes.generate("dynamics decoration"),"data-name":"dynamics"})};Z.exports=function p(c,f,m){void 0===f.pitch&&window.console.error("Crescendo Element y-coordinate not set.");var l,_=c.calcY(f.pitch)+4,E=f.anchor1?f.anchor1.x:0,g=f.anchor2?f.anchor2.x:800;return l="<"===f.dir?b(c,_+4,_,_+4,_+8,E,g):b(c,_,_+4,_+8,_+4,E,g),m.wrapSvgEl({el_type:"dynamicDecoration",startChar:-1,endChar:-1},l),[l]}},5238:Z=>{Z.exports=function H(M,A,I){var D=M.paper.rectBeneath(A);return I&&M.paper.text(I,{x:0,y:A.y+7,"text-anchor":"start","font-size":"14px",fill:"rgba(0,0,255,.4)",stroke:"rgba(0,0,255,.4)"}),D}},4390:(Z,H,M)=>{var A=M(1852),I=M(5008),D=M(6057),p=M(2866),b=M(8727);function f(_,y,E,g){return A(_,y,E,g),_.y+=y.height*p.STEP,y}function m(_,y,E,g){var v=(g.staffs[0].top-10-(E.staffs[E.staffs.length-1].bottom-2))*p.STEP;v=1&&m(_,_.spacing.staffSeparation,O[O.length-1],j.staffGroup);var Y=f(_,j.staffGroup,x,B);Y.line=S+B,O.push(Y),_.paper.closeGroup()}else j.nonMusic&&(_.paper.openGroup(),D(_,j.nonMusic,x),_.paper.closeGroup())}return y.reset(),E.bottomText&&E.bottomText.rows&&E.bottomText.rows.length>0&&(_.paper.openGroup(),_.moveY(24),D(_,E.bottomText,x),_.paper.closeGroup()),I(_,l,w,h),{staffgroups:O,selectables:x.getElements()}}},171:(Z,H,M)=>{var A=M(7697);Z.exports=function I(D,p,b){void 0===p.pitch&&window.console.error("Dynamic Element y-coordinate not set.");var m=A(D,p.anchor.x,p.pitch,p.dec,{scalex:1,scaley:1,klass:D.controller.classes.generate("decoration dynamics"),fill:D.foregroundColor,stroke:"none",name:"dynamics"});return b.wrapSvgEl({el_type:"dynamicDecoration",startChar:-1,endChar:-1,decoration:p.dec},m),[m]}},8:(Z,H,M)=>{var A=M(2782),I=M(5740),D=M(8509),p=M(2492);Z.exports=function b(c,f,m,_,y){void 0===f.pitch&&window.console.error("Ending Element y-coordinate not set.");var E=p(c.calcY(f.pitch)),l="";f.anchor1&&(m=p(f.anchor1.x+f.anchor1.w),l+=A("M %f %f L %f %f ",m,E,m,p(E+20))),f.anchor2&&(_=p(f.anchor2.x),l+=A("M %f %f L %f %f ",_,E,_,p(E+20))),l+=A("M %f %f L %f %f ",m,E,_,E),c.paper.openGroup({klass:c.controller.classes.generate("ending"),"data-name":"ending"}),D(c,{path:l,stroke:c.foregroundColor,fill:c.foregroundColor,"data-name":"line"}),f.anchor1&&I(c,{x:p(m+5),y:p(c.calcY(f.pitch-.5)),text:f.text,type:"repeatfont",klass:"ending",anchor:"start",noClass:!0,name:f.text});var h=c.paper.closeGroup();return y.wrapSvgEl({el_type:"ending",startChar:-1,endChar:-1},h),[h]}},6273:(Z,H,M)=>{var A=M(2782),I=M(8509),D=M(2492);function f(u,v,S){return D(u+S*v)}var _=[[3.5,-4.8]],y=[[1.5,-1],[.3,-.3],[-3.5,3.8]],E=[[-1.5,2]],g=[[3,4],[3,-4]],l=[[-3,4],[-3,-4]];function h(u,v){for(var S="",x=0;x{var A=M(2492);function I(){this.ingroup=!1}I.prototype.beginGroup=function(p,b){this.paper=p,this.controller=b,this.path=[],this.lastM=[0,0],this.ingroup=!0,this.paper.openGroup()},I.prototype.isInGroup=function(){return this.ingroup},I.prototype.addPath=function(p){if(0!==(p=p||[]).length){p[0][0]="m",p[0][1]=A(p[0][1]-this.lastM[0]),p[0][2]=A(p[0][2]-this.lastM[1]),this.lastM[0]+=p[0][1],this.lastM[1]+=p[0][2],this.path.push(p[0]);for(var b=1,c=p.length;b{var A=M(5794),I=M(5740);Z.exports=function D(p,b,c){for(var f=0;f{var A=M(2782),I=M(2492);Z.exports=function D(p,b,c,f,m,_,y){var E=p.foregroundColor;b=I(b),c=I(c);var g=I(f-y),l=I(f+y);if(p.firefox112){var h={x1:b,x2:c,y1:f+=y/2,y2:f,stroke:p.foregroundColor,"stroke-width":Math.abs(2*y)};return m&&(h.class=m),_&&(h["data-name"]=_),p.paper.lineToBack(h)}var u={path:A("M %f %f L %f %f L %f %f L %f %f z",b,g,c,g,c,l,b,l),stroke:"none",fill:E};return _&&(u["data-name"]=_),m&&(u.class=m),p.paper.pathToBack(u)}},8509:Z=>{Z.exports=function H(M,A,I){return M.paper.path(A)}},2574:(Z,H,M)=>{var A=M(8796),I=M(2492);Z.exports=function D(p,b,c,f,m,_,y){if(c<0||f{var A=M(5740),I=M(6547),D=M(8796);function b(c,f,m){var _=m;return"f"===c&&"f"===f&&(_=2*_/3),"p"===c&&"p"===f&&(_=5*_/6),"f"===c&&"z"===f&&(_=5*_/8),_}Z.exports=function p(c,f,m,_,y){var g;if(!_)return null;if(_.length>1&&_.indexOf(".")<0){var l=D.isInGroup()?"":y.klass;c.paper.openGroup({"data-name":y.name,klass:l});for(var h=0,w=0;w<_.length;w++){var u=_[w];g=I.getYCorr(u),I.printSymbol(f+h,c.calcY(m+g),u,c.paper,{stroke:y.stroke,fill:y.fill})?w<_.length-1&&(h+=b(u,_[w+1],I.getSymbolWidth(u))):A(c,{x:f,y:c.y,text:"no symbol:"+_,type:"debugfont",klass:"debug-msg",anchor:"start"},!1)}return c.paper.closeGroup()}return g=I.getYCorr(_),(D.isInGroup()?I.printSymbol(f,c.calcY(m+g),_,c.paper,{"data-name":y.name}):I.printSymbol(f,c.calcY(m+g),_,c.paper,{klass:y.klass,stroke:y.stroke,fill:y.fill,"data-name":y.name}))||(A(c,{x:f,y:c.y,text:"no symbol:"+_,type:"debugfont",klass:"debug-msg",anchor:"start"},!1),null)}},3761:(Z,H,M)=>{var A=M(5740),I=M(2574),D=M(7034),p=M(7697);Z.exports=function b(f,m,_){void 0===m.pitch&&window.console.error(m.type+" Relative Element y-coordinate not set.");var y=f.calcY(m.pitch);switch(m.type){case"symbol":if(null===m.c)return null;var E="symbol";m.klass&&(E+=" "+m.klass),m.graphelem=p(f,m.x,m.pitch,m.c,{scalex:m.scalex,scaley:m.scaley,klass:f.controller.classes.generate(E),name:m.name});break;case"debug":m.graphelem=A(f,{x:m.x,y:f.calcY(15),text:""+m.c,type:"debugfont",klass:f.controller.classes.generate("debug-msg"),anchor:"start",centerVertically:!1,dim:m.dim},!1);break;case"tabNumber":var l="tabnumberfont",h="tab-number";m.isGrace&&(l="tabgracefont",y+=2.5,h="tab-grace"),m.graphelem=A(f,{x:m.x,y,text:""+m.c,type:l,klass:f.controller.classes.generate(h),anchor:"middle",centerVertically:!1,dim:m.dim,cursor:"default"},!1);break;case"barNumber":m.graphelem=A(f,{x:m.x,y,text:""+m.c,type:"measurefont",klass:f.controller.classes.generate("bar-number"),anchor:"middle",dim:m.dim,name:"bar-number"},!0);break;case"lyric":m.graphelem=A(f,{x:m.x,y,text:m.c,type:"vocalfont",klass:f.controller.classes.generate("lyric"),anchor:"middle",dim:m.dim,name:"lyric"},!1);break;case"chord":m.graphelem=A(f,{x:m.x,y,text:m.c,type:"gchordfont",klass:f.controller.classes.generate("chord"),anchor:"middle",dim:m.dim,lane:m.getLane(),name:"chord"},!1);break;case"decoration":m.graphelem=A(f,{x:m.x,y:y+6,text:m.c,type:"annotationfont",klass:f.controller.classes.generate("annotation"),anchor:m.anchor,centerVertically:!0,dim:m.dim},!1);break;case"text":m.graphelem=A(f,{x:m.x,y,text:m.c,type:"annotationfont",klass:f.controller.classes.generate("annotation"),anchor:"start",centerVertically:m.centerVertically,dim:m.dim,lane:m.getLane(),name:"annotation"},!1);break;case"multimeasure-text":m.graphelem=A(f,{x:m.x+m.w/2,y,text:m.c,type:"tempofont",klass:f.controller.classes.generate("rest"),anchor:"middle",centerVertically:!1,dim:m.dim},!1);break;case"part":m.graphelem=A(f,{x:m.x,y,text:m.c,type:"partsfont",klass:f.controller.classes.generate("part"),anchor:"start",dim:m.dim,name:m.c},!0);break;case"bar":m.graphelem=I(f,m.x,m.linewidth+f.lineThickness,y,_||f.calcY(m.pitch2),null,"bar");break;case"stem":m.graphelem=I(f,m.x,m.linewidth>0?m.linewidth+f.lineThickness:m.linewidth-f.lineThickness,y,f.calcY(m.pitch2),"abcjs-stem","stem");break;case"ledger":m.graphelem=D(f,m.x,m.x+m.w,m.pitch,"abcjs-ledger","ledger",.35+f.lineThickness)}return 1!==m.scalex&&m.graphelem&&function c(f,m,_,y,E,g){f.setAttributeOnElement(m,{style:"transform:scale("+_+","+y+");transform-origin:"+E+"px "+g+"px;"})}(f.paper,m.graphelem,m.scalex,m.scaley,m.x,y),m.graphelem}},2492:Z=>{Z.exports=function H(M){return parseFloat(M.toFixed(2))}},8727:(Z,H,M)=>{var A=M(1673),I=M(4020);function D(p,b,c){this.elements=[],this.paper=p,this.tuneNumber=c,this.selectTypes=b}D.prototype.getElements=function(){return this.elements},D.prototype.add=function(p,b,c,f){if(this.canSelect(p)){this.paper.setAttributeOnElement(b,void 0===this.selectTypes?{selectable:!1,"data-index":this.elements.length}:{selectable:!0,tabindex:0,"data-index":this.elements.length});var _={absEl:p,svgEl:b,isDraggable:c};void 0!==f&&(_.staffPos=f),this.elements.push(_)}},D.prototype.canSelect=function(p){return!(!1===this.selectTypes||!p||!p.abcelem||!0!==this.selectTypes&&!(void 0===this.selectTypes?"note"===p.abcelem.el_type||"tabNumber"===p.abcelem.el_type:this.selectTypes.indexOf(p.abcelem.el_type)>=0))},D.prototype.wrapSvgEl=function(p,b){this.add({tuneNumber:this.tuneNumber,abcelem:p,elemset:[b],highlight:A,unhighlight:I},b,!1)},Z.exports=D},5794:Z=>{Z.exports=function H(M,A){var p=Math.round(M.y),c=(M.controller.width-A)/2,f=c+A;M.paper.pathToBack({path:"M "+c+" "+p+" L "+f+" "+p+" L "+f+" "+(p+1)+" L "+c+" "+(p+1)+" L "+c+" "+p+" z",stroke:"rgba(0,0,0,0)",fill:"rgba(0,0,0,255)",class:M.controller.classes.generate("defined-text")})}},5008:Z=>{Z.exports=function H(M,A,I,D){var p=(A+M.padding.right)*I,b=(M.y+M.padding.bottom)*I;if(M.isPrint&&(b=Math.max(b,1056)),""!==M.ariaLabel){var c="Sheet Music";M.abctune&&M.abctune.metaText&&M.abctune.metaText.title&&(c+=' for "'+M.abctune.metaText.title+'"'),M.paper.setTitle(c),M.paper.setAttribute("aria-label",M.ariaLabel?M.ariaLabel:c)}M.paper.insertStyles(".abcjs-dragging-in-progress text, .abcjs-dragging-in-progress tspan {"+["-webkit-touch-callout: none;","-webkit-user-select: none;","-khtml-user-select: none;","-moz-user-select: none;","-ms-user-select: none;","user-select: none;"].join(" ")+"}");var _={overflow:"hidden"};"resize"===D?M.paper.setResponsiveWidth(p,b):(_.width="",_.height=b+"px",I<1?(_.width=p+"px",M.paper.setSize(p/I,b/I)):M.paper.setSize(p,b)),M.paper.setScale(I),M.paper.setParentStyles(_)}},2782:Z=>{Z.exports=function(){for(var A,p,b,c,f,M=0,I=arguments[M++],D=[];I;){if(p=/^[^\x25]+/.exec(I))D.push(p[0]);else if(p=/^\x25{2}/.exec(I))D.push("%");else{if(!(p=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(I)))throw"Huh ?!";if(null==(A=arguments[p[1]||M++])||null==A)throw"Too few arguments.";if(/[^s]/.test(p[7])&&"number"!=typeof A)throw"Expecting number but found "+typeof A;switch(p[7]){case"b":A=A.toString(2);break;case"c":A=String.fromCharCode(A);break;case"d":A=parseInt(A);break;case"e":A=p[6]?A.toExponential(p[6]):A.toExponential();break;case"f":A=p[6]?parseFloat(A).toFixed(p[6]):parseFloat(A);break;case"o":A=A.toString(8);break;case"s":A=(A=String(A))&&p[6]?A.substring(0,p[6]):A;break;case"u":A=Math.abs(A);break;case"x":A=A.toString(16);break;case"X":A=A.toString(16).toUpperCase()}A=/[def]/.test(p[7])&&p[2]&&A>0?"+"+A:A,c=p[3]?"0"==p[3]?"0":p[3][1]:" ",f=p[5]-String(A).length,b=p[5]?str_repeat(c,f):"",D.push(p[4]?A+b:b+A)}I=I.substring(p[0].length)}return D.join("")}},1852:(Z,H,M)=>{var A=M(2866),I=M(3372),D=M(6357),p=M(5010),b=M(5238),c=M(2574),f=M(6057);function _(E,g,l,h,w){if(l)for(var u=0;u=0&&S.voices&&y(E,g.voices,S.voices),E.showDebug.indexOf("grid")>=0&&(E.paper.dottedLine({x1:E.padding.left,x2:E.padding.left+E.controller.width,y1:u,y2:u,stroke:"#0000ff"}),b(E,{x:E.padding.left,y:E.calcY(S.originalTop),width:E.controller.width,height:E.calcY(S.originalBottom)-E.calcY(S.originalTop),fill:E.foregroundColor,stroke:E.foregroundColor,"fill-opacity":.1,"stroke-opacity":.1}),w=0,L(S,"chordHeightAbove"),L(S,"chordHeightBelow"),L(S,"dynamicHeightAbove"),L(S,"dynamicHeightBelow"),L(S,"endingHeightAbove"),L(S,"lyricHeightAbove"),L(S,"lyricHeightBelow"),L(S,"partHeightAbove"),L(S,"tempoHeightAbove"),L(S,"volumeHeightAbove"),L(S,"volumeHeightBelow"))),E.moveY(A.STEP,-S.bottom),E.showDebug&&E.showDebug.indexOf("grid")>=0&&E.paper.dottedLine({x1:E.padding.left,x2:E.padding.left+E.controller.width,y1:E.y,y2:E.y,stroke:"#0000aa"})}for(var x,O,B=2,j=0,Y=0;Y6&&(w=0)}}z>1&&c(E,g.startx,.6,x=g.staffs[0].topLine,O=g.staffs[z-1].bottomLine,null),E.y=u}},7034:(Z,H,M)=>{var A=M(9121);Z.exports=function I(D,p,b,c,f,m,_){var y=D.calcY(c);return A(D,p,b,y,f,m,_)}},5010:(Z,H,M)=>{var A=M(7034);Z.exports=function I(D,p,b,c,f,m){var _="abcjs-top-line",y=2;f&&(y=f),D.paper.openGroup({prepend:!0,klass:D.controller.classes.generate("abcjs-staff")});var E=0,g=0;if(1===c)A(D,p,b,6,_,null,m+D.lineThickness),E=D.calcY(10),g=D.calcY(2);else for(var l=c-1;l>=0;l--){var h=(l+1)*y;g=D.calcY(h),0===E&&(E=g),A(D,p,b,h,_,null,m+D.lineThickness),_=void 0}return D.paper.closeGroup(),[E,g]}},3486:(Z,H,M)=>{var A=M(3761),I=M(5740);Z.exports=function D(p,b){var c=b.x;void 0===b.pitch&&window.console.error("Tempo Element y-coordinate not set."),b.tempo.el_type="tempo";var _,m=p.calcY(b.pitch)+2;if(b.tempo.preString){_=I(p,{x:c,y:m,text:b.tempo.preString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,"dominant-baseline":"ideographic",name:"pre"},!0);var E=p.controller.getTextSize.calc(b.tempo.preString,"tempofont","tempo",_).width;c+=E+E/b.tempo.preString.length}if(b.note){b.note.setX(c);for(var l=0;l{var A=M(2492);Z.exports=function I(D,p,b){var m,c=p.y;p.lane&&(c+=(p.dim.font.size+.25*p.dim.font.size)*p.lane),p.dim?(m=p.dim).attr.class=p.klass:m=D.controller.getFontAndAttr.calc(p.type,p.klass),p.anchor&&(m.attr["text-anchor"]=p.anchor),m.attr.x=p.x,m.attr.y=c,p.centerVertically||(m.attr.y+=m.font.size),"debugfont"===p.type&&(console.log("Debug msg: "+p.text),m.attr.stroke="#ff0000"),p.cursor&&(m.attr.cursor=p.cursor);var _=p.text.replace(/\n\n/g,"\n \n");_=_.replace(/^\n/,"\xa0\n"),m.font.box&&(b||D.paper.openGroup({klass:m.attr.class,fill:D.foregroundColor,"data-name":p.name}),"end"===m.attr["text-anchor"]?m.attr.x-=m.font.padding:"start"===m.attr["text-anchor"]&&(m.attr.x+=m.font.padding),m.attr.y+=m.font.padding,delete m.attr.class),p.noClass&&delete m.attr.class,m.attr.x=A(m.attr.x),m.attr.y=A(m.attr.y),p.name&&(m.attr["data-name"]=p.name);var y=D.paper.text(_,m.attr);if(m.font.box){var E=y.getBBox(),g=0;"middle"===m.attr["text-anchor"]?g=E.width/2+m.font.padding:"end"===m.attr["text-anchor"]&&(g=E.width+2*m.font.padding);var l=0;p.centerVertically&&(l=E.height-m.font.padding),D.paper.rect({"data-name":"box",x:Math.round(p.x-g),y:Math.round(c-l),width:Math.round(E.width+2*m.font.padding),height:Math.round(E.height+2*m.font.padding)}),b||(y=D.paper.closeGroup())}return y}},6111:(Z,H,M)=>{var A=M(2782),I=M(2492);Z.exports=function D(c,f,m,_,y){!function(c,f,m){c.isTie=!c.anchor1||!c.anchor2||c.anchor1.pitch===c.anchor2.pitch&&0===c.internalNotes.length,c.isTie?(c.calcTieDirection(),c.calcX(f,m),c.calcTieY()):(c.calcSlurDirection(),c.calcX(f,m),c.calcSlurY()),c.avoidCollisionAbove()}(f,m,_);var E="";E+=f.anchor1?"abcjs-start-m"+f.anchor1.parent.counters.measure+"-n"+f.anchor1.parent.counters.note:"abcjs-start-edge",E+=f.anchor2?" abcjs-end-m"+f.anchor2.parent.counters.measure+"-n"+f.anchor2.parent.counters.note:" abcjs-end-edge",f.hint&&(E="abcjs-hint");var g=f.fixedY?1.5:0,l=function(c,f,m,_,y,E,g,l,h){var w=l?1.2:1.5;f=I(f+6),m=I(m+4),y+=E?w:-w;var L,u=I(c.calcY(_+=E?w:-w)),v=I(c.calcY(y)),S=m-f,x=v-u,O=Math.sqrt(S*S+x*x),B=S/O,j=x/O,Y=O/3.5,W=(E?-1:1)*Math.min(l?10:25,Math.max(4,Y)),q=I(f+Y*B-W*j),ee=I(u+Y*j+W*B),U=I(m-Y*B-W*j),ne=I(v-Y*j+W*B);if(g?g+=" slur":g="slur",g+=l?" tie":" legato",h){g+=" dotted";var P=A("M %f %f C %f %f %f %f %f %f",f,u,q,ee,U,ne,m,v);L=c.paper.path({path:P,stroke:c.foregroundColor,fill:"none","stroke-dasharray":"5 5",class:c.controller.classes.generate(g),"data-name":l?"tie":"slur"})}else{var $=A("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",f,u,q,ee,U,ne,m,v,I(U-2*j),I(ne+2*B),I(q-2*j),I(ee+2*B),f,u);L=c.paper.path({path:$,stroke:"none",fill:c.foregroundColor,class:c.controller.classes.generate(g),"data-name":l?"tie":"slur"})}return L}(c,f.startX,f.endX,f.startY+g,f.endY+g,f.above,E,f.isTie,f.dotted);return y.wrapSvgEl({el_type:"slur",startChar:-1,endChar:-1},l),[l]}},4537:(Z,H,M)=>{var A=M(2782),I=M(5740),D=M(8509),p=M(2492);function c(m,_,y,E){return A("M %f %f L %f %f",p(m),p(_),p(y),p(E))}Z.exports=function b(m,_,y){m.paper.openGroup({klass:m.controller.classes.generate("triplet "+_.durationClass),"data-name":"triplet"}),_.hasBeam||function f(m,_,y,E,g){y=m.calcY(y),g=m.calcY(g);var h="";h+=c(_,y,_,y+5),h+=c(E,g,E,g+5);var w=_+(E-_)/2,v=(g-y)/(E-_),S=w-8;h+=c(_,y,S,y+(S-_)*v);var O=w+8;h+=c(O,y+(O-_)*v,E,g),D(m,{path:h,stroke:m.foregroundColor,"data-name":"triplet-bracket"})}(m,_.anchor1.x,_.startNote,_.anchor2.x+_.anchor2.w,_.endNote),I(m,{x:_.xTextPos,y:m.calcY(_.yTextPos-1),text:""+_.number,type:"tripletfont",anchor:"middle",centerVertically:!0,noClass:!0,name:""+_.number},!0);var E=m.paper.closeGroup();return y.wrapSvgEl({el_type:"triplet",startChar:-1,endChar:-1},E),E}},6357:(Z,H,M)=>{var A=M(6273),I=M(6633),D=M(171),p=M(4537),b=M(8),c=M(6111),f=M(4365),m=M(5740),_=M(8856);function E(g){return"rest"===g.type&&!(!g.abcelem||!g.abcelem.rest||"spacer"===g.abcelem.rest.type)}Z.exports=function y(g,l,h,w,u){var v=l.w-1;g.staffbottom=l.staff.bottom;var S=g.foregroundColor;if(l.color&&(g.foregroundColor=l.color),l.header){var x=m(g,{x:g.padding.left,y:g.calcY(l.headerPosition),text:l.header,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0,name:"voice-name"},!0);w.wrapSvgEl({el_type:"voiceName",startChar:-1,endChar:-1,text:l.header},x)}var O,B,j=!1;for(O=0;O{var A=M(2866),I=M(3220),D=M(3778),p=M(9662),b=M(7274),c=M(2508),f=M(3128),m=M(2124),_=M(3308),y=M(3011),E=M(6066),g=M(7445),l=M(5235),h=M(4390),w=M(1975),u=function(x,O){this.oneSvgPerLine=(O=O||{}).oneSvgPerLine,this.selectionColor=O.selectionColor,this.dragColor=O.dragColor?O.dragColor:O.selectionColor,this.dragging=!!O.dragging,this.selectTypes=O.selectTypes,this.responsive=O.responsive,this.space=3*A.SPACE,this.initialClef=O.initialClef,this.scale=O.scale?parseFloat(O.scale):0,this.classes=new E({shouldAddClasses:O.add_classes}),this.scale>.1||(this.scale=void 0),O.staffwidth?(this.staffwidthScreen=O.staffwidth,this.staffwidthPrint=O.staffwidth):(this.staffwidthScreen=740,this.staffwidthPrint=680),this.listeners=[],O.clickListener&&this.addSelectListener(O.clickListener),this.renderer=new D(x),this.renderer.setPaddingOverride(O),O.showDebug&&(this.renderer.showDebug=O.showDebug),O.jazzchords&&(this.jazzchords=O.jazzchords),O.germanAlphabet&&(this.germanAlphabet=O.germanAlphabet),O.lineThickness&&(this.lineThickness=O.lineThickness),this.renderer.controller=this,this.renderer.foregroundColor=O.foregroundColor?O.foregroundColor:"currentColor",void 0!==O.ariaLabel&&(this.renderer.ariaLabel=O.ariaLabel),this.renderer.minPadding=O.minPadding?O.minPadding:0,this.reset()};function S(x){for(var B=document.createElementNS("http://www.w3.org/2000/svg","svg"),j=0;j0)for(var W=te.staffGroup.voices[0],q=!1,ee=0,U=0;U g"),ee=0,ne=[],z=0;z{var H=function(A){this.shouldAddClasses=A.shouldAddClasses,this.reset()};H.prototype.reset=function(){this.lineNumber=null,this.voiceNumber=null,this.measureNumber=null,this.measureTotalPerLine=[],this.noteNumber=null},H.prototype.incrLine=function(){null===this.lineNumber?this.lineNumber=0:this.lineNumber++,this.voiceNumber=null,this.measureNumber=null,this.noteNumber=null},H.prototype.incrVoice=function(){null===this.voiceNumber?this.voiceNumber=0:this.voiceNumber++,this.measureNumber=null,this.noteNumber=null},H.prototype.isInMeasure=function(){return null!==this.measureNumber},H.prototype.newMeasure=function(){this.measureNumber&&(this.measureTotalPerLine[this.lineNumber]=this.measureNumber),this.measureNumber=null,this.noteNumber=null},H.prototype.startMeasure=function(){this.measureNumber=0,this.noteNumber=0},H.prototype.incrMeasure=function(){this.measureNumber++,this.noteNumber=0},H.prototype.incrNote=function(){this.noteNumber++},H.prototype.measureTotal=function(){for(var M=0,A=0;A0&&A.push(M),"tab-number"===M)return A.join(" ");if("text instrument-name"===M)return"abcjs-text abcjs-instrument-name";if(null!==this.lineNumber&&A.push("l"+this.lineNumber),null!==this.measureNumber&&A.push("m"+this.measureNumber),null!==this.measureNumber&&A.push("mm"+this.measureTotal()),null!==this.voiceNumber&&A.push("v"+this.voiceNumber),M&&(M.indexOf("note")>=0||M.indexOf("rest")>=0||M.indexOf("lyric")>=0)&&null!==this.noteNumber&&A.push("n"+this.noteNumber),A.length>0){A=(A=A.join(" ")).split(" ");for(var I=0;I0&&(A[I]="abcjs-"+A[I])}return A.join(" ")},Z.exports=H},7445:Z=>{var H=function(A,I){this.formatting=A,this.classes=I};H.prototype.updateFonts=function(M){M.gchordfont&&(this.formatting.gchordfont=M.gchordfont),M.tripletfont&&(this.formatting.tripletfont=M.tripletfont),M.annotationfont&&(this.formatting.annotationfont=M.annotationfont),M.vocalfont&&(this.formatting.vocalfont=M.vocalfont)},H.prototype.calc=function(M,A){var I;return(I="string"==typeof M?(I=this.formatting[M])?{face:I.face,size:Math.round(4*I.size/3),decoration:I.decoration,style:I.style,weight:I.weight,box:I.box}:{face:"Arial",size:Math.round(16),decoration:"underline",style:"normal",weight:"normal"}:{face:M.face,size:Math.round(4*M.size/3),decoration:M.decoration,style:M.style,weight:M.weight,box:M.box}).padding=I.size*(this.formatting.fontboxpadding?this.formatting.fontboxpadding:.1),{font:I,attr:{"font-size":I.size,"font-style":I.style,"font-family":I.face,"font-weight":I.weight,"text-decoration":I.decoration,class:this.classes.generate(A)}}},Z.exports=H},5235:Z=>{var H=function(A,I){this.getFontAndAttr=A,this.svg=I};H.prototype.updateFonts=function(M){this.getFontAndAttr.updateFonts(M)},H.prototype.attr=function(M,A){return this.getFontAndAttr.calc(M,A)},H.prototype.calc=function(M,A,I,D){var p;p="string"==typeof A?this.attr(A,I):{font:{face:A.face,size:A.size,decoration:A.decoration,style:A.style,weight:A.weight},attr:{"font-size":A.size,"font-style":A.style,"font-family":A.face,"font-weight":A.weight,"text-decoration":A.decoration,class:this.getFontAndAttr.classes.generate(I)}};var b=this.svg.getTextSize(M,p.attr,D);return p.font.box?{height:b.height+4*p.font.padding,width:b.width+4*p.font.padding}:b},H.prototype.baselineToCenter=function(M,A,I,D,p){return.5*this.calc(M,A,I).height+(p-D-2)*this.attr(A,I).font.size},Z.exports=H},369:Z=>{Z.exports=function(M,A,I,D){if(M)for(var p=0;p0&&(f.length>0&&" "!==f[f.length-1]&&(f+=" "),f+=A),b.setAttribute("class",f)}}},2866:Z=>{var H={FONTEM:360,FONTSIZE:30};H.STEP=93*H.FONTSIZE/720,H.SPACE=10,H.TOPNOTE=15,H.STAVEHEIGHT=100,H.INDENT=50,Z.exports=H},1673:(Z,H,M)=>{var A=M(369);Z.exports=function(D,p){void 0===D&&(D="abcjs-note_selected"),void 0===p&&(p="#ff0000"),A(this.elemset,D,"",p)}},3308:(Z,H,M)=>{var A=M(2866);function p(W){"keyboard"===this.dragMechanism&&0!==this.dragYStep&&this.dragTarget&&v.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,W),this.dragYStep=0}function b(W){switch(W.keyCode){case 38:case 40:W.preventDefault()}}function c(W){var q=!1,ee=W.target.dataset.index;switch(W.keyCode){case 13:case 32:q=!0,this.dragTarget=this.selectables[ee],this.dragIndex=ee,this.dragMechanism="keyboard",w.bind(this)(W);break;case 38:q=!0,this.dragTarget=this.selectables[ee],this.dragIndex=ee,this.dragTarget&&this.dragTarget.isDraggable&&(this.dragging&&this.dragTarget.isDraggable&&this.dragTarget.absEl.highlight(void 0,this.dragColor),this.dragYStep--,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+this.dragYStep*A.STEP+")"));break;case 40:q=!0,this.dragTarget=this.selectables[ee],this.dragIndex=ee,this.dragMechanism="keyboard",this.dragTarget&&this.dragTarget.isDraggable&&(this.dragging&&this.dragTarget.isDraggable&&this.dragTarget.absEl.highlight(void 0,this.dragColor),this.dragYStep++,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+this.dragYStep*A.STEP+")"));break;case 9:0!==this.dragYStep&&w.bind(this)(W)}q&&W.preventDefault()}function E(W,q){var ee,U,ne,z=function f(W,q){for(var ee=0;ee=0?(ne=function _(W,q,ee){return W.x<=q.offsetX&&W.x+W.width>=q.offsetX&&W.y<=q.offsetY&&W.y+W.height>=q.offsetY||Math.abs(q.layerY/ee-q.offsetY)<3?[q.offsetX,q.offsetY]:[q.layerX,q.layerY]}(W.selectables[z].svgEl.getBBox(),q,W.scale),ee=ne[0],U=ne[1]):(ne=function D(W){var L,P,q=1,ee=1,U=W.target.closest("svg"),ne=0;return U&&U.viewBox&&U.viewBox.baseVal&&(0!==U.viewBox.baseVal.width&&(q=U.viewBox.baseVal.width/U.clientWidth),0!==U.viewBox.baseVal.height&&(ee=U.viewBox.baseVal.height/U.clientHeight),ne=U.viewBox.baseVal.y),W.target&&"svg"===W.target.tagName?(L=W.offsetX,P=W.offsetY):(L=W.layerX,P=W.layerY),[L*=q,(P*=ee)+ne]}(q),z=function m(W,q,ee){for(var U=9999999,ne=-1,z=0;z0;z++){var L=W.selectables[z];if(W.getDim(L),L.dim.leftq&&L.dim.topee)ne=z,U=0;else if(L.dim.topee){var P=Math.min(Math.abs(L.dim.left-q),Math.abs(L.dim.right-q));Pq){var $=Math.min(Math.abs(L.dim.top-ee),Math.abs(L.dim.bottom-ee));$Math.abs(q-L.dim.right)?Math.abs(q-L.dim.right):Math.abs(q-L.dim.left),T=Math.abs(ee-L.dim.top)>Math.abs(ee-L.dim.bottom)?Math.abs(ee-L.dim.bottom):Math.abs(ee-L.dim.top),R=Math.sqrt(Q*Q+T*T);R=0&&U<=12?ne:-1}(W,ee=ne[0],U=ne[1])),{x:ee,y:U,clickedOn:z}}function g(W){if(W&&W.target&&W.touches&&!(W.touches.length<1)){var q=W.target.getBoundingClientRect(),U=W.touches[0].pageY-q.top;W.touches[0].offsetX=W.touches[0].pageX-q.left,W.touches[0].offsetY=U,W.touches[0].layerX=W.touches[0].pageX,W.touches[0].layerY=W.touches[0].pageY}}function l(W){var q=W;"touchstart"===W.type&&(g(W),W.touches.length>0&&(q=W.touches[0]));var ee=E(this,q);ee.clickedOn>=0&&("touchstart"===W.type||0===W.button)&&this.selectables[ee.clickedOn]&&(this.dragTarget=this.selectables[ee.clickedOn],this.dragIndex=ee.clickedOn,this.dragMechanism="mouse",this.dragMouseStart={x:ee.x,y:ee.y},this.dragging&&this.dragTarget.isDraggable&&(function Y(W,q){if(W){var ee=B(W.svg);ee[q]=!0,j(W.svg,ee)}}(this.renderer.paper,"abcjs-dragging-in-progress"),this.dragTarget.absEl.highlight(void 0,this.dragColor)))}function h(W){var q=W;if("touchmove"===W.type&&(g(W),W.touches.length>0&&(q=W.touches[0])),this.lastTouchMove=W,this.dragTarget&&this.dragging&&this.dragTarget.isDraggable&&"mouse"===this.dragMechanism&&this.dragMouseStart){var ee=E(this,q),U=Math.round((ee.y-this.dragMouseStart.y)/A.STEP);U!==this.dragYStep&&(this.dragYStep=U,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+U*A.STEP+")"))}}function w(W){var q=W;"touchend"===W.type&&this.lastTouchMove&&(g(this.lastTouchMove),this.lastTouchMove&&this.lastTouchMove.touches&&this.lastTouchMove.touches.length>0&&(q=this.lastTouchMove.touches[0])),this.dragTarget&&(x.bind(this)(),this.dragTarget.absEl&&this.dragTarget.absEl.highlight&&(this.selected=[this.dragTarget.absEl],this.dragTarget.absEl.highlight(void 0,this.selectionColor)),v.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,q),this.dragTarget.svgEl&&this.dragTarget.svgEl.focus&&(this.dragTarget.svgEl.focus(),this.dragTarget=null,this.dragIndex=-1),function te(W,q){if(W){var ee=B(W.svg);delete ee[q],j(W.svg,ee)}}(this.renderer.svg,"abcjs-dragging-in-progress"))}function u(W){W>=0&&Wz[L].abcelem.startChar&&W<$||q===W&&q===$)&&(this.selected[this.selected.length]=z[L],z[L].highlight(void 0,this.selectionColor))}}function B(W){var q=W.getAttribute("class");q||(q="");for(var ee=q.split(" "),U={},ne=0;ne{var A=M(369);Z.exports=function(D,p){void 0===D&&(D="abcjs-note_selected"),void 0===p&&(p="#000000"),A(this.elemset,"",D,p)}},5949:(Z,H,M)=>{var A=M(2291),I=M(2866),D=M(3660),b=function(l){return void 0===l?0:Math.floor(Math.log(l)/Math.log(2))};function c(l,h,w,u){if(!l.children)return u;for(var v=0;vS&&(v=S),v<-S&&(v=-S),v}(v,S,h,x),ee=W+Math.floor(q/2),U=W+Math.floor(-q/2);return j||(u&&W<6||!u&&W>6)&&(ee=6,U=6),[ee,U]}(l.average,l.elems.length,v,l.stemsUp,w.abcelem.averagepitch,u.abcelem.averagepitch,l.isflat,l.min,l.max,l.isgrace),O=_(l.stemsUp,w,u);l.addBeam({startX:O[0],endX:O[1],startY:x[0],endY:x[1],dy:h});for(var B=function g(l,h,w,u,v){for(var S=[],x=[],O=0;O0&&B.abcelem.beambr&&B.abcelem.beambr<=U+1){x[U].split||(x[U].split=[x[U].x]);var ne=_(h,l[O-1],B);x[U].split[x[U].split.length-1]>=ne[0]&&(ne[0]+=B.w),x[U].split.push(ne[0]),x[U].split.push(ne[1])}}for(var z=x.length-1;z>=0;z--)if(O===l.length-1||b(l[O+1].abcelem.duration)>-z-4){var L=Y,P=te+W*(z+1);x[z].single&&(P=D(w.startX,w.startY,w.endX,w.endY,L=0===O?Y+5:Y-5)+W*(z+1));var $={startX:x[z].x,endX:L,startY:x[z].y,endY:P,dy:v};if(void 0!==x[z].split){var Q=x[z].split;$.endX<=Q[Q.length-1]&&(Q[Q.length-1]-=B.w),Q.push($.endX),$.split=x[z].split}S.push($),x=x.slice(0,z)}}}return S}(l.elems,l.stemsUp,l.beams[0],l.isgrace,h),j=0;j{Z.exports=function H(M,A,I,D,p){return A+(D-A)/(I-M)*(p-M)}},1061:Z=>{function M(D,p,b){if(p)for(var c=0;c{var A=M(5292),I=M(4201),D=M(3070),p=M(1061),c=function(_,y,E,g,l,h,w){for(var u=p(_,g.getTextSize,g.voices,g.brace,g.bracket),v=E,S=0;S<8;S++){var x=D(v,_,w,g,u);if(v=f(h,l.stretchlast,y+_.padding.left,g.w,v,x.spacingUnits,x.minSpace,_.padding.left+_.padding.right),w&&console.log("setXSpace",S,g.w,v,g.minspace),null===v)break}!function m(_){for(var y=0;y<_.length;y++)for(var E=_[y],g=1;g0?((l=(E-(g-h*l))/h)*w>50&&(l=50/w),l):null}Z.exports=function(_,y,E,g){var l,h,w=E;for(l=0;lw&&(w=h.staffGroup.w));for(l=0;l{var A=M(2866);function p(g,l,h,w){if(g.specialY[h]){var u=g.specialY[h];w&&(u*=w),g.top+=u+1,l[h]=g.top}}function b(g,l,h){var w,u;for(w=0;w=0&&(u.originalTop=u.top,u.originalBottom=u.bottom),p(u,v,"lyricHeightAbove"),p(u,v,"chordHeightAbove",u.specialY.chordLines.above),u.specialY.endingHeightAbove&&(u.top+=u.specialY.chordHeightAbove?2:u.specialY.endingHeightAbove+1,v.endingHeightAbove=u.top),u.specialY.dynamicHeightAbove&&u.specialY.volumeHeightAbove?(u.top+=Math.max(u.specialY.dynamicHeightAbove,u.specialY.volumeHeightAbove)+1,v.dynamicHeightAbove=u.top,v.volumeHeightAbove=u.top):(p(u,v,"dynamicHeightAbove"),p(u,v,"volumeHeightAbove")),p(u,v,"partHeightAbove"),p(u,v,"tempoHeightAbove"),u.specialY.lyricHeightBelow&&(u.specialY.lyricHeightBelow+=g.spacing.vocal/A.STEP,v.lyricHeightBelow=u.bottom,u.bottom-=u.specialY.lyricHeightBelow+1),u.specialY.chordHeightBelow){v.chordHeightBelow=u.bottom;var S=u.specialY.chordHeightBelow;u.specialY.chordLines.below&&(S*=u.specialY.chordLines.below),u.bottom-=S+1}u.specialY.volumeHeightBelow&&u.specialY.dynamicHeightBelow?(v.volumeHeightBelow=u.bottom,v.dynamicHeightBelow=u.bottom,u.bottom-=Math.max(u.specialY.volumeHeightBelow,u.specialY.dynamicHeightBelow)+1):u.specialY.volumeHeightBelow?(v.volumeHeightBelow=u.bottom,u.bottom-=u.specialY.volumeHeightBelow+1):u.specialY.dynamicHeightBelow&&(v.dynamicHeightBelow=u.bottom,u.bottom-=u.specialY.dynamicHeightBelow+1),g.showDebug&&g.showDebug.indexOf("box")>=0&&(u.positionY=v);for(var x=0;x0&&(u.top+=te)}h=2-u.bottom}}},3070:(Z,H,M)=>{var A=M(6845);function p(f){for(var m=0;m0?0:5e-7)}function c(f,m){return!!(f&&f.staff&&f.staff.voices&&0!==f.staff.voices.length&&m&&m.staff&&m.staff.voices&&0!==m.staff.voices.length)&&f.staff.voices[0]===m.staff.voices[0]}Z.exports=function(f,m,_,y,E){var l=0,h=1e3,w=E;y.startx=w;var u,v=0;for(_&&console.log("init layout",f),u=0;u1e-7?O.push(y.voices[u]):x.push(y.voices[u]);S=0;var j=0;for(u=0;uw&&(w=A.getNextX(x[u]),S=A.getSpacingUnits(x[u]),j=x[u].spacingduration);l+=S,h=Math.min(h,S),_&&console.log("currentduration: ",v,l,h);var Y=void 0;for(u=0;u0){w=q;for(var U=0;Uw&&(w=A.getNextX(y.voices[u]),S=A.getSpacingUnits(y.voices[u]));return function I(f){for(var m=0,_=0;_0){var g=y.children[y.children.length-1];if("bar"===g.abcelem.el_type){var l=g.children[0].x;l>m?m=l:g.children[0].x=m}}}}(y.voices),l+=S,y.setWidth(w),{spacingUnits:l,minSpace:h}}},1554:(Z,H,M)=>{var A=M(3660);function D(c){return c.stemsUp}Z.exports=function I(c){if(c.anchor1&&c.anchor2){c.hasBeam=!!c.anchor1.parent.beam&&c.anchor1.parent.beam===c.anchor2.parent.beam;var f=c.anchor1.parent.beam;if(c.hasBeam&&(f.elems[0]!==c.anchor1.parent||f.elems[f.elems.length-1]!==c.anchor2.parent)&&(c.hasBeam=!1),c.hasBeam){var m=D(f)?c.anchor1.x+c.anchor1.w:c.anchor1.x;c.yTextPos=function p(c,f,m){return 0===m.beams.length?0:A((m=m.beams[0]).startX,m.startY,m.endX,m.endY,c+(f-c)/2)}(m,c.anchor2.x,f),c.yTextPos+=D(f)?3:-2,c.xTextPos=function b(c,f){return c+(f-c)/2}(m,c.anchor2.x),c.top=c.yTextPos+1,c.bottom=c.yTextPos-2,D(f)&&(c.endingHeightAbove=4)}else{c.startNote=Math.max(c.anchor1.parent.top,9)+4,c.endNote=Math.max(c.anchor2.parent.top,9)+4,"rest"===c.anchor1.parent.type&&"rest"!==c.anchor2.parent.type?c.startNote=c.endNote:"rest"===c.anchor2.parent.type&&"rest"!==c.anchor1.parent.type&&(c.endNote=c.startNote);for(var _=0,y=0;yc.startNote||_>c.endNote)&&(c.startNote=_,c.endNote=_),c.flatBeams&&(c.startNote=Math.max(c.startNote,c.endNote),c.endNote=Math.max(c.startNote,c.endNote)),c.yTextPos=c.startNote+(c.endNote-c.startNote)/2,c.xTextPos=c.anchor1.x+(c.anchor2.x+c.anchor2.w-c.anchor1.x)/2,c.top=c.yTextPos+1}}delete c.middleElems,delete c.flatBeams}},6845:Z=>{var H=function(){};H.beginLayout=function(I,D){D.i=0,D.durationindex=0,D.startx=I,D.minx=I,D.nextx=I,D.spacingduration=0},H.layoutEnded=function(I){return I.i>=I.children.length},H.getNextX=function(I){return Math.max(I.minx,I.nextx)},H.getSpacingUnits=function(I){return Math.sqrt(8*I.spacingduration)},H.layoutOneItem=function(I,D,p,b,c){var f=p.children[p.i];if(!f)return 0;var m=I-p.minx,_=p.durationindex+f.duration>0?b:0;if("note"===f.abcelem.el_type&&!f.abcelem.rest&&0!==p.voicenumber&&c){var y=c.children[c.i],E=y&&(f.abcelem.maxpitch<=y.abcelem.maxpitch+1&&f.abcelem.maxpitch>=y.abcelem.minpitch-1||f.abcelem.minpitch<=y.abcelem.maxpitch+1&&f.abcelem.minpitch>=y.abcelem.minpitch-1);if(E&&f.abcelem.minpitch===y.abcelem.minpitch&&f.abcelem.maxpitch===y.abcelem.maxpitch&&y.heads&&y.heads.length>0&&f.heads&&f.heads.length>0&&y.heads[0].c===f.heads[0].c&&(E=!1),E){var g=y.heads&&y.heads.length>0?y.heads[0].realWidth:y.fixed.w;f.adjustedWidth||(f.adjustedWidth=g+f.w),f.w=f.adjustedWidth;for(var l=0;l{var A=M(5949),I=M(3660),D=M(1554);function b(E){for(var l=0;l0&&g.putChordInLane(h),void(E[h]=l.right);E.push(l.right),g.putChordInLane(E.length-1)}}function m(E){for(var g=0,l=0;l=0;w--)(u=E[h].children[w]).chordHeightBelow&&c(l,u)}return(g.length>1||l.length>1)&&function _(E,g,l){for(var h=0;h{var A=M(2866),I=M(170),D=function(p){this.paper=new I(p),this.controller=null,this.space=3*A.SPACE,this.padding={},this.reset(),this.firefox112=navigator.userAgent.indexOf("Firefox/112.0")>=0};D.prototype.reset=function(){this.paper.clear(),this.y=0,this.abctune=null,this.path=null,this.isPrint=!1,this.lineThickness=0,this.initVerticalSpace()},D.prototype.newTune=function(p){this.abctune=p,this.setVerticalSpace(p.formatting),this.isPrint="print"===p.media,this.setPadding(p)},D.prototype.setLineThickness=function(p){this.lineThickness=p},D.prototype.setPaddingOverride=function(p){this.paddingOverride={top:p.paddingtop,bottom:p.paddingbottom,right:p.paddingright,left:p.paddingleft}},D.prototype.setPadding=function(p){function b(c,f,m,_,y){c.padding[f]=void 0!==p.formatting[m]?p.formatting[m]:void 0!==c.paddingOverride[f]?c.paddingOverride[f]:c.isPrint?_:y}b(this,"top","topmargin",38,15),b(this,"bottom","botmargin",38,15),b(this,"left","leftmargin",68,15),b(this,"right","rightmargin",68,15)},D.prototype.adjustNonScaledItems=function(p){this.padding.top/=p,this.padding.bottom/=p,this.padding.left/=p,this.padding.right/=p,this.abctune.formatting.headerfont.size/=p,this.abctune.formatting.footerfont.size/=p},D.prototype.initVerticalSpace=function(){this.spacing={composer:7.56,graceBefore:8.67,graceInside:10.67,graceAfter:16,info:0,lineSkipFactor:1.1,music:7.56,paragraphSkipFactor:.4,parts:11.33,slurHeight:1,staffSeparation:61.33,stemHeight:36.67,subtitle:3.78,systemStaffSeparation:48,text:18.9,title:7.56,top:30.24,vocal:0,words:0}},D.prototype.setVerticalSpace=function(p){void 0!==p.staffsep&&(this.spacing.staffSeparation=4*p.staffsep/3),void 0!==p.composerspace&&(this.spacing.composer=4*p.composerspace/3),void 0!==p.partsspace&&(this.spacing.parts=4*p.partsspace/3),void 0!==p.textspace&&(this.spacing.text=4*p.textspace/3),void 0!==p.musicspace&&(this.spacing.music=4*p.musicspace/3),void 0!==p.titlespace&&(this.spacing.title=4*p.titlespace/3),void 0!==p.sysstaffsep&&(this.spacing.systemStaffSeparation=4*p.sysstaffsep/3),void 0!==p.subtitlespace&&(this.spacing.subtitle=4*p.subtitlespace/3),void 0!==p.topspace&&(this.spacing.top=4*p.topspace/3),void 0!==p.vocalspace&&(this.spacing.vocal=4*p.vocalspace/3),void 0!==p.wordsspace&&(this.spacing.words=4*p.wordsspace/3)},D.prototype.calcY=function(p){return this.y-p*A.STEP},D.prototype.moveY=function(p,b){void 0===b&&(b=1),this.y+=p*b},D.prototype.absolutemoveY=function(p){this.y=p},Z.exports=D},170:Z=>{var H="http://www.w3.org/2000/svg";function M(b){this.svg=p(),this.currentGroup=[],b.appendChild(this.svg)}function A(b,c,f){var m=f-b;return"M "+b+" "+c+" l "+m+" 0 l 0 1 l "+-m+" 0 z "}function I(b,c,f){var m=f-c;return"M "+b+" "+c+" l 0 "+m+" l 1 0 l 0 "+-m+" z "}M.prototype.clear=function(){if(this.svg){var b=this.svg.parentNode;this.svg=p(),this.currentGroup=[],b&&(b.innerHTML="",b.appendChild(this.svg))}},M.prototype.setTitle=function(b){var c=document.createElement("title"),f=document.createTextNode(b);c.appendChild(f),this.svg.insertBefore(c,this.svg.firstChild)},M.prototype.setResponsiveWidth=function(b,c){if(this.svg.setAttribute("viewBox","0 0 "+b+" "+c),this.svg.setAttribute("preserveAspectRatio","xMinYMin meet"),this.svg.removeAttribute("height"),this.svg.removeAttribute("width"),this.svg.style.display="inline-block",this.svg.style.position="absolute",this.svg.style.top="0",this.svg.style.left="0",this.svg.parentNode){var f=this.svg.parentNode.getAttribute("class");f?f.indexOf("abcjs-container")<0&&this.svg.parentNode.setAttribute("class",f+" abcjs-container"):this.svg.parentNode.setAttribute("class","abcjs-container"),this.svg.parentNode.style.display="inline-block",this.svg.parentNode.style.position="relative",this.svg.parentNode.style.width="100%",this.svg.parentNode.style["padding-bottom"]=c/b*100+"%",this.svg.parentNode.style["vertical-align"]="middle",this.svg.parentNode.style.overflow="hidden"}},M.prototype.setSize=function(b,c){this.svg.setAttribute("width",b),this.svg.setAttribute("height",c)},M.prototype.setAttribute=function(b,c){this.svg.setAttribute(b,c)},M.prototype.setScale=function(b){1!==b?(this.svg.style.transform="scale("+b+","+b+")",this.svg.style["-ms-transform"]="scale("+b+","+b+")",this.svg.style["-webkit-transform"]="scale("+b+","+b+")",this.svg.style["transform-origin"]="0 0",this.svg.style["-ms-transform-origin-x"]="0",this.svg.style["-ms-transform-origin-y"]="0",this.svg.style["-webkit-transform-origin-x"]="0",this.svg.style["-webkit-transform-origin-y"]="0"):(this.svg.style.transform="",this.svg.style["-ms-transform"]="",this.svg.style["-webkit-transform"]="")},M.prototype.insertStyles=function(b){var c=document.createElementNS(H,"style");c.textContent=b,this.svg.insertBefore(c,this.svg.firstChild)},M.prototype.setParentStyles=function(b){for(var c in b)b.hasOwnProperty(c)&&this.svg.parentNode&&(this.svg.parentNode.style[c]=b[c]);this.dummySvg&&(document.querySelector("body").removeChild(this.dummySvg),this.dummySvg=null)},M.prototype.rect=function(b){var c=[],f=b.x,m=b.y,_=b.x+b.width,y=b.y+b.height;return c.push(A(f,m,_)),c.push(A(f,y,_)),c.push(I(_,m,y)),c.push(I(f,y,m)),this.path({path:c.join(" "),stroke:"none","data-name":b["data-name"]})},M.prototype.dottedLine=function(b){var c=document.createElementNS(H,"line");c.setAttribute("x1",b.x1),c.setAttribute("x2",b.x2),c.setAttribute("y1",b.y1),c.setAttribute("y2",b.y2),c.setAttribute("stroke",b.stroke),c.setAttribute("stroke-dasharray","5,5"),this.svg.insertBefore(c,this.svg.firstChild)},M.prototype.rectBeneath=function(b){var c=document.createElementNS(H,"rect");c.setAttribute("x",b.x),c.setAttribute("width",b.width),c.setAttribute("y",b.y),c.setAttribute("height",b.height),b.stroke&&c.setAttribute("stroke",b.stroke),b["stroke-opacity"]&&c.setAttribute("stroke-opacity",b["stroke-opacity"]),b.fill&&c.setAttribute("fill",b.fill),b["fill-opacity"]&&c.setAttribute("fill-opacity",b["fill-opacity"]),this.svg.insertBefore(c,this.svg.firstChild)},M.prototype.text=function(b,c,f){var m=document.createElementNS(H,"text");for(var _ in m.setAttribute("stroke","none"),c)c.hasOwnProperty(_)&&m.setAttribute(_,c[_]);for(var y=(""+b).split("\n"),E=0;E0?this.currentGroup[0].removeChild(f):this.svg.removeChild(f)),m&&(D[m]=y),y},M.prototype.openGroup=function(b){b=b||{};var c=document.createElementNS(H,"g");return b.klass&&c.setAttribute("class",b.klass),b.fill&&c.setAttribute("fill",b.fill),b.stroke&&c.setAttribute("stroke",b.stroke),b["data-name"]&&c.setAttribute("data-name",b["data-name"]),b.prepend?this.prepend(c):this.append(c),this.currentGroup.unshift(c),c},M.prototype.closeGroup=function(){var b=this.currentGroup.shift();return b&&0===b.children.length?(b.parentElement.removeChild(b),null):b},M.prototype.path=function(b){var c=document.createElementNS(H,"path");for(var f in b)b.hasOwnProperty(f)&&("path"===f?c.setAttributeNS(null,"d",b.path):"klass"===f?c.setAttributeNS(null,"class",b[f]):void 0!==b[f]&&c.setAttributeNS(null,f,b[f]));return this.append(c),c},M.prototype.pathToBack=function(b){var c=document.createElementNS(H,"path");for(var f in b)b.hasOwnProperty(f)&&("path"===f?c.setAttributeNS(null,"d",b.path):c.setAttributeNS(null,"klass"===f?"class":f,b[f]));return this.prepend(c),c},M.prototype.lineToBack=function(b){for(var c=document.createElementNS(H,"line"),f=Object.keys(b),m=0;m0?this.currentGroup[0].appendChild(b):this.svg.appendChild(b)},M.prototype.prepend=function(b){this.currentGroup.length>0?this.currentGroup[0].appendChild(b):this.svg.insertBefore(b,this.svg.firstChild)},M.prototype.setAttributeOnElement=function(b,c){for(var f in c)c.hasOwnProperty(f)&&b.setAttributeNS(null,f,c[f])},M.prototype.moveElementToChild=function(b,c){b.appendChild(c)},Z.exports=M},9866:Z=>{Z.exports="6.2.2"},3894:Z=>{Z.exports="function"==typeof Object.create?function(M,A){M.super_=A,M.prototype=Object.create(A.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}})}:function(M,A){M.super_=A;var I=function(){};I.prototype=A.prototype,M.prototype=new I,M.prototype.constructor=M}},5244:(Z,H,M)=>{"use strict";var A="win32"===process.platform,I=M(6788);function D(h,w){for(var u=[],v=0;v=0&&!h[v];v--);return 0===u&&v===w?h:u>v?[]:h.slice(u,v+1)}var b=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,c=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,f={};function m(h){var w=b.exec(h),u=(w[1]||"")+(w[2]||""),S=c.exec(w[3]||"");return[u,S[1],S[2],S[3]]}function _(h){var w=b.exec(h),u=w[1]||"",v=!!u&&":"!==u[1];return{device:u,isUnc:v,isAbsolute:v||!!w[2],tail:w[3]}}function y(h){return"\\\\"+h.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}f.resolve=function(){for(var h="",w="",u=!1,v=arguments.length-1;v>=-1;v--){var S;if(v>=0?S=arguments[v]:h?(!(S=process.env["="+h])||S.substr(0,3).toLowerCase()!==h.toLowerCase()+"\\")&&(S=h+"\\"):S=process.cwd(),!I.isString(S))throw new TypeError("Arguments to path.resolve must be strings");if(S){var x=_(S),O=x.device,B=x.isUnc,j=x.isAbsolute,Y=x.tail;if((!O||!h||O.toLowerCase()===h.toLowerCase())&&(h||(h=O),u||(w=Y+"\\"+w,u=j),h&&u))break}}return B&&(h=y(h)),h+(u?"\\":"")+(w=D(w.split(/[\\\/]+/),!u).join("\\"))||"."},f.normalize=function(h){var w=_(h),u=w.device,v=w.isUnc,S=w.isAbsolute,x=w.tail,O=/[\\\/]$/.test(x);return!(x=D(x.split(/[\\\/]+/),!S).join("\\"))&&!S&&(x="."),x&&O&&(x+="\\"),v&&(u=y(u)),u+(S?"\\":"")+x},f.isAbsolute=function(h){return _(h).isAbsolute},f.join=function(){for(var h=[],w=0;w=-1&&!w;u--){var v=u>=0?arguments[u]:process.cwd();if(!I.isString(v))throw new TypeError("Arguments to path.resolve must be strings");v&&(h=v+"/"+h,w="/"===v[0])}return(w?"/":"")+(h=D(h.split("/"),!w).join("/"))||"."},g.normalize=function(h){var w=g.isAbsolute(h),u=h&&"/"===h[h.length-1];return!(h=D(h.split("/"),!w).join("/"))&&!w&&(h="."),h&&u&&(h+="/"),(w?"/":"")+h},g.isAbsolute=function(h){return"/"===h.charAt(0)},g.join=function(){for(var h="",w=0;w{var Z,H;H=Z||(Z={}),function(M){var A="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),I=D(H);function D(p,b){return function(c,f){"function"!=typeof p[c]&&Object.defineProperty(p,c,{configurable:!0,writable:!0,value:f}),b&&b(c,f)}}void 0===A.Reflect?A.Reflect=H:I=D(A.Reflect,I),function(M){var A=Object.prototype.hasOwnProperty,I="function"==typeof Symbol,D=I&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",p=I&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",b="function"==typeof Object.create,c={__proto__:[]}instanceof Array,f=!b&&!c,m={create:b?function(){return yn(Object.create(null))}:c?function(){return yn({__proto__:null})}:function(){return yn({})},has:f?function(fe,ce){return A.call(fe,ce)}:function(fe,ce){return ce in fe},get:f?function(fe,ce){return A.call(fe,ce)?fe[ce]:void 0}:function(fe,ce){return fe[ce]}},_=Object.getPrototypeOf(Function),y="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,E=y||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function _n(){var fe={},ce=[],be=function(){function tt(Ct,rt,Ft){this._index=0,this._keys=Ct,this._values=rt,this._selector=Ft}return tt.prototype["@@iterator"]=function(){return this},tt.prototype[p]=function(){return this},tt.prototype.next=function(){var Ct=this._index;if(Ct>=0&&Ct=this._keys.length?(this._index=-1,this._keys=ce,this._values=ce):this._index++,{value:rt,done:!1}}return{value:void 0,done:!0}},tt.prototype.throw=function(Ct){throw this._index>=0&&(this._index=-1,this._keys=ce,this._values=ce),Ct},tt.prototype.return=function(Ct){return this._index>=0&&(this._index=-1,this._keys=ce,this._values=ce),{value:Ct,done:!0}},tt}();return function(){function tt(){this._keys=[],this._values=[],this._cacheKey=fe,this._cacheIndex=-2}return Object.defineProperty(tt.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),tt.prototype.has=function(Ct){return this._find(Ct,!1)>=0},tt.prototype.get=function(Ct){var rt=this._find(Ct,!1);return rt>=0?this._values[rt]:void 0},tt.prototype.set=function(Ct,rt){var Ft=this._find(Ct,!0);return this._values[Ft]=rt,this},tt.prototype.delete=function(Ct){var rt=this._find(Ct,!1);if(rt>=0){for(var Ft=this._keys.length,Pt=rt+1;Pt=0;--be){var Ae=(0,fe[be])(ce);if(!R(Ae)&&!F(Ae)){if(!qe(Ae))throw new TypeError;ce=Ae}}return ce}(fe,ce)}if(!Ve(fe))throw new TypeError;if(!J(ce))throw new TypeError;if(!J(Ce)&&!R(Ce)&&!F(Ce))throw new TypeError;return F(Ce)&&(Ce=void 0),function q(fe,ce,be,Ce){for(var Ae=fe.length-1;Ae>=0;--Ae){var tt=(0,fe[Ae])(ce,be,Ce);if(!R(tt)&&!F(tt)){if(!J(tt))throw new TypeError;Ce=tt}}return Ce}(fe,ce,be=me(be),Ce)}),M("metadata",function u(fe,ce){return function be(Ce,Ae){if(!J(Ce))throw new TypeError;if(!R(Ae)&&!function Be(fe){switch(T(fe)){case 3:case 4:return!0;default:return!1}}(Ae))throw new TypeError;P(fe,ce,Ce,Ae)}}),M("defineMetadata",function v(fe,ce,be,Ce){if(!J(be))throw new TypeError;return R(Ce)||(Ce=me(Ce)),P(fe,ce,be,Ce)}),M("hasMetadata",function S(fe,ce,be){if(!J(ce))throw new TypeError;return R(be)||(be=me(be)),U(fe,ce,be)}),M("hasOwnMetadata",function x(fe,ce,be){if(!J(ce))throw new TypeError;return R(be)||(be=me(be)),ne(fe,ce,be)}),M("getMetadata",function O(fe,ce,be){if(!J(ce))throw new TypeError;return R(be)||(be=me(be)),z(fe,ce,be)}),M("getOwnMetadata",function B(fe,ce,be){if(!J(ce))throw new TypeError;return R(be)||(be=me(be)),L(fe,ce,be)}),M("getMetadataKeys",function j(fe,ce){if(!J(fe))throw new TypeError;return R(ce)||(ce=me(ce)),$(fe,ce)}),M("getOwnMetadataKeys",function Y(fe,ce){if(!J(fe))throw new TypeError;return R(ce)||(ce=me(ce)),Q(fe,ce)}),M("deleteMetadata",function te(fe,ce,be){if(!J(ce))throw new TypeError;R(be)||(be=me(be));var Ce=ee(ce,be,!1);if(R(Ce)||!Ce.delete(fe))return!1;if(Ce.size>0)return!0;var Ae=h.get(ce);return Ae.delete(be),Ae.size>0||h.delete(ce),!0})}(I)}()},1451:Z=>{Z.exports=function(M){return M&&"object"==typeof M&&"function"==typeof M.copy&&"function"==typeof M.fill&&"function"==typeof M.readUInt8}},6788:(Z,H,M)=>{var A=/%[sdj%]/g;H.format=function($){if(!x($)){for(var Q=[],T=0;T=F)return se;switch(se){case"%s":return String(R[T++]);case"%d":return Number(R[T++]);case"%j":try{return JSON.stringify(R[T++])}catch(ie){return"[Circular]"}default:return se}}),J=R[T];T=3&&(T.depth=arguments[2]),arguments.length>=4&&(T.colors=arguments[3]),w(Q)?T.showHidden=Q:Q&&H._extend(T,Q),B(T.showHidden)&&(T.showHidden=!1),B(T.depth)&&(T.depth=2),B(T.colors)&&(T.colors=!1),B(T.customInspect)&&(T.customInspect=!0),T.colors&&(T.stylize=b),m(T,$,T.depth)}function b($,Q){var T=p.styles[Q];return T?"\x1b["+p.colors[T][0]+"m"+$+"\x1b["+p.colors[T][1]+"m":$}function c($,Q){return $}function m($,Q,T){if($.customInspect&&Q&&q(Q.inspect)&&Q.inspect!==H.inspect&&(!Q.constructor||Q.constructor.prototype!==Q)){var R=Q.inspect(T,$);return x(R)||(R=m($,R,T)),R}var F=function _($,Q){if(B(Q))return $.stylize("undefined","undefined");if(x(Q)){var T="'"+JSON.stringify(Q).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return $.stylize(T,"string")}return S(Q)?$.stylize(""+Q,"number"):w(Q)?$.stylize(""+Q,"boolean"):u(Q)?$.stylize("null","null"):void 0}($,Q);if(F)return F;var K=Object.keys(Q),J=function f($){var Q={};return $.forEach(function(T,R){Q[T]=!0}),Q}(K);if($.showHidden&&(K=Object.getOwnPropertyNames(Q)),W(Q)&&(K.indexOf("message")>=0||K.indexOf("description")>=0))return y(Q);if(0===K.length){if(q(Q))return $.stylize("[Function"+(Q.name?": "+Q.name:"")+"]","special");if(j(Q))return $.stylize(RegExp.prototype.toString.call(Q),"regexp");if(te(Q))return $.stylize(Date.prototype.toString.call(Q),"date");if(W(Q))return y(Q)}var Ve,ie="",ye=!1,Fe=["{","}"];return h(Q)&&(ye=!0,Fe=["[","]"]),q(Q)&&(ie=" [Function"+(Q.name?": "+Q.name:"")+"]"),j(Q)&&(ie=" "+RegExp.prototype.toString.call(Q)),te(Q)&&(ie=" "+Date.prototype.toUTCString.call(Q)),W(Q)&&(ie=" "+y(Q)),0!==K.length||ye&&0!=Q.length?T<0?j(Q)?$.stylize(RegExp.prototype.toString.call(Q),"regexp"):$.stylize("[Object]","special"):($.seen.push(Q),Ve=ye?function E($,Q,T,R,F){for(var K=[],J=0,se=Q.length;J60?T[0]+(""===Q?"":Q+"\n ")+" "+$.join(",\n ")+" "+T[1]:T[0]+Q+" "+$.join(", ")+" "+T[1]}(Ve,ie,Fe)):Fe[0]+ie+Fe[1]}function y($){return"["+Error.prototype.toString.call($)+"]"}function g($,Q,T,R,F,K){var J,se,ie;if((ie=Object.getOwnPropertyDescriptor(Q,F)||{value:Q[F]}).get?se=$.stylize(ie.set?"[Getter/Setter]":"[Getter]","special"):ie.set&&(se=$.stylize("[Setter]","special")),P(R,F)||(J="["+F+"]"),se||($.seen.indexOf(ie.value)<0?(se=u(T)?m($,ie.value,null):m($,ie.value,T-1)).indexOf("\n")>-1&&(se=K?se.split("\n").map(function(ye){return" "+ye}).join("\n").substr(2):"\n"+se.split("\n").map(function(ye){return" "+ye}).join("\n")):se=$.stylize("[Circular]","special")),B(J)){if(K&&F.match(/^\d+$/))return se;(J=JSON.stringify(""+F)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(J=J.substr(1,J.length-2),J=$.stylize(J,"name")):(J=J.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),J=$.stylize(J,"string"))}return J+": "+se}function h($){return Array.isArray($)}function w($){return"boolean"==typeof $}function u($){return null===$}function S($){return"number"==typeof $}function x($){return"string"==typeof $}function B($){return void 0===$}function j($){return Y($)&&"[object RegExp]"===U($)}function Y($){return"object"==typeof $&&null!==$}function te($){return Y($)&&"[object Date]"===U($)}function W($){return Y($)&&("[object Error]"===U($)||$ instanceof Error)}function q($){return"function"==typeof $}function U($){return Object.prototype.toString.call($)}function ne($){return $<10?"0"+$.toString(10):$.toString(10)}H.debuglog=function($){if(B(D)&&(D=process.env.NODE_DEBUG||""),$=$.toUpperCase(),!I[$])if(new RegExp("\\b"+$+"\\b","i").test(D)){var Q=process.pid;I[$]=function(){var T=H.format.apply(H,arguments);console.error("%s %d: %s",$,Q,T)}}else I[$]=function(){};return I[$]},H.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},H.isArray=h,H.isBoolean=w,H.isNull=u,H.isNullOrUndefined=function v($){return null==$},H.isNumber=S,H.isString=x,H.isSymbol=function O($){return"symbol"==typeof $},H.isUndefined=B,H.isRegExp=j,H.isObject=Y,H.isDate=te,H.isError=W,H.isFunction=q,H.isPrimitive=function ee($){return null===$||"boolean"==typeof $||"number"==typeof $||"string"==typeof $||"symbol"==typeof $||void 0===$},H.isBuffer=M(1451);var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function L(){var $=new Date,Q=[ne($.getHours()),ne($.getMinutes()),ne($.getSeconds())].join(":");return[$.getDate(),z[$.getMonth()],Q].join(" ")}function P($,Q){return Object.prototype.hasOwnProperty.call($,Q)}H.log=function(){console.log("%s - %s",L(),H.format.apply(H,arguments))},H.inherits=M(3894),H._extend=function($,Q){if(!Q||!Y(Q))return $;for(var T=Object.keys(Q),R=T.length;R--;)$[T[R]]=Q[T[R]];return $}}},Z=>{Z(Z.s=6892)}]); \ No newline at end of file +(self.webpackChunkfolkies=self.webpackChunkfolkies||[]).push([[179],{9378:(Z,H,M)=>{Object.defineProperty(H,"__esModule",{value:!0});var A=M(5189),I=M(9826),D=function(){function p(b,c){this._config=c,this._appender=new b(c.config),this._appender.setLayout(c.layout),this._isPassThrough=!c||!c.filters||0===c.filters.length,this._filters=this._isPassThrough?[]:c.filters.map(function(f){return{filter:f.filter instanceof Function?new f.filter(f.config):new(A.getFilter(f.filter))(f.config),config:f.config,onMatch:f.onMatch,onMismatch:f.onMismatch}})}return Object.defineProperty(p.prototype,"appender",{get:function(){return this._appender},enumerable:!0,configurable:!0}),p.prototype.append=function(b){this.isMatch(b)&&this._appender.append(b)},p.prototype.isMatch=function(b){return this._isPassThrough||this._isMatch(b)},p.prototype._isMatch=function(b){for(var c,f=this._filters.length,m=0;m=0;w--)(h=m[w])&&(l=(g<3?h(l):g>3?h(_,y,l):h(_,y))||l);return g>3&&l&&Object.defineProperty(_,y,l),l};Object.defineProperty(H,"__esModule",{value:!0});var D=M(7800),p=M(3188),b=M(2427),f=function(m){function _(){return null!==m&&m.apply(this,arguments)||this}return A(_,m),_.prototype.append=function(y){y.level<=this.getLogLevel()&&this._appendToConsole(y)},_.prototype._appendToConsole=function(y){var E=this.format(y);switch(y.level){case D.LogLevel.FATAL:case D.LogLevel.ERROR:y.error?b.getVirtualConsole().error(E,y.error):b.getVirtualConsole().error(E);break;case D.LogLevel.WARN:b.getVirtualConsole().warn(E);break;case D.LogLevel.INFO:b.getVirtualConsole().info(E);break;case D.LogLevel.DEBUG:case D.LogLevel.TRACE:b.getVirtualConsole().debug(E)}},I([p.Appender("Console")],_)}(M(5716).LogAppender);H.ConsoleAppender=f},6934:(Z,H,M)=>{Object.defineProperty(H,"__esModule",{value:!0});var A=M(6570),I=M(9378),D=M(5716),p=new Set;p.add("append"),p.add("isActive"),p.add("setLogLevel"),p.add("setLayout"),p.add("getLayout"),p.add("format");var b=new Map,c=new Map;H.getAppenderName=function(m){return m.name||A.getFunctionName(m)},H.addAppender=function(m,_){!function(m){m instanceof D.LogAppender&&p.forEach(function(_){if(!(m.prototype[_]&&m.prototype[_]instanceof Function))throw new Error("Invalid appender: missing/invalid method: "+_)})}(m);var y=_||H.getAppenderName(m);return b.has(y)||b.set(y,m),m},H.registerAppender=function(m){var _=H.getAppenderName(m);return b.has(_)&&H.addAppender(m),b.set(_,m),m},H.getAppender=function(m){return b.get(m)},H.getLoggerAppenderInstances=function(m){if(m&&m.length>0)return m.map(function(y){if(c.has(y)){var E=c.get(y);return new I.AppenderWrapper(E.appender,E)}throw new Error("Invalid appender reference '"+y+"'")});var _=[];return c.forEach(function(y){return _.push(new I.AppenderWrapper(y.appender,y))}),_},H.setLoggerAppenderConfig=function(m,_){c.set(m,_)}},5716:(Z,H,M)=>{Object.defineProperty(H,"__esModule",{value:!0});var A=M(9059),I=function(){function D(p){}return D.prototype.isActive=function(){return!0===this.active},D.prototype.append=function(p){},D.prototype.getLogLevel=function(){return this.logLevel},D.prototype.setLogLevel=function(p){this.logLevel=p},D.prototype.setLayout=function(p){this.layout=p},D.prototype.getLayout=function(){return this.layout},D.prototype.format=function(p){return A.format(this.getLayout(),p)},D}();H.LogAppender=I},7800:(Z,H)=>{var A;Object.defineProperty(H,"__esModule",{value:!0}),(A=H.LogLevel||(H.LogLevel={}))[A.OFF=0]="OFF",A[A.FATAL=100]="FATAL",A[A.ERROR=200]="ERROR",A[A.WARN=300]="WARN",A[A.INFO=400]="INFO",A[A.DEBUG=500]="DEBUG",A[A.TRACE=600]="TRACE",A[A.ALL=2147483647]="ALL"},3188:(Z,H,M)=>{Object.defineProperty(H,"__esModule",{value:!0});var A=M(6934);H.Appender=function I(D){return function(p){return A.addAppender(p,D),p}}},1027:(Z,H,M)=>{Object.defineProperty(H,"__esModule",{value:!0});var A=M(5189);H.Filter=function I(D){return function(p){return A.addFilter(p,D),p}}},9626:(Z,H,M)=>{Object.defineProperty(H,"__esModule",{value:!0});var A=M(9186);M(3037);var I=Symbol("logMarker");H.LogMarker=function D(b){return function(c,f){Reflect.defineMetadata(I,b,c,f)}},H.Log=function p(b,c){for(var f=[],m=2;m{Object.defineProperty(H,"__esModule",{value:!0});var A=M(9186),I=new Set;I.add("isMatch");var D=new Map;H.addFilter=function(b,c){return function(b){if(b instanceof A.LogFilter){var c=new b;I.forEach(function(f){if(!(c[f]&&c[f]instanceof Function))throw new Error("Invalid filter: missing/invalid method: "+f)})}}(b),D.has(c)||D.set(c,b),b},H.getFilter=function(b){return D.get(b)}},9826:(Z,H)=>{var A;Object.defineProperty(H,"__esModule",{value:!0}),(A=H.LogFilterAction||(H.LogFilterAction={})).ALLOW="ALLOW",A.NEUTRAL="NEUTRAL",A.DENY="DENY"},6558:(Z,H)=>{Object.defineProperty(H,"__esModule",{value:!0}),H.LogFilter=function A(I){this.configuration=I}},3585:function(Z,H,M){var c,A=this&&this.__extends||(c=function(f,m){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,y){_.__proto__=y}||function(_,y){for(var E in y)y.hasOwnProperty(E)&&(_[E]=y[E])})(f,m)},function(f,m){function _(){this.constructor=f}c(f,m),f.prototype=null===m?Object.create(m):(_.prototype=m.prototype,new _)}),I=this&&this.__decorate||function(c,f,m,_){var g,y=arguments.length,E=y<3?f:null===_?_=Object.getOwnPropertyDescriptor(f,m):_;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)E=Reflect.decorate(c,f,m,_);else for(var l=c.length-1;l>=0;l--)(g=c[l])&&(E=(y<3?g(E):y>3?g(f,m,E):g(f,m))||E);return y>3&&E&&Object.defineProperty(f,m,E),E};Object.defineProperty(H,"__esModule",{value:!0});var D=M(1027),b=function(c){function f(){return null!==c&&c.apply(this,arguments)||this}return A(f,c),f.prototype.isMatch=function(m){return!!m.marker&&(m.marker.name===this.configuration.marker||this._isParentMarkerMatch(m.marker))},f.prototype._isParentMarkerMatch=function(m){var _=this;return!!m.hasParents()&&m.getParents().every(function(y){return y.name===_.configuration.marker||_._isParentMarkerMatch(y)})},I([D.Filter("Marker")],f)}(M(6558).LogFilter);H.MarkerFilter=b},7378:function(Z,H,M){var c,A=this&&this.__extends||(c=function(f,m){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,y){_.__proto__=y}||function(_,y){for(var E in y)y.hasOwnProperty(E)&&(_[E]=y[E])})(f,m)},function(f,m){function _(){this.constructor=f}c(f,m),f.prototype=null===m?Object.create(m):(_.prototype=m.prototype,new _)}),I=this&&this.__decorate||function(c,f,m,_){var g,y=arguments.length,E=y<3?f:null===_?_=Object.getOwnPropertyDescriptor(f,m):_;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)E=Reflect.decorate(c,f,m,_);else for(var l=c.length-1;l>=0;l--)(g=c[l])&&(E=(y<3?g(E):y>3?g(f,m,E):g(f,m))||E);return y>3&&E&&Object.defineProperty(f,m,E),E};Object.defineProperty(H,"__esModule",{value:!0});var D=M(1027),b=function(c){function f(){return null!==c&&c.apply(this,arguments)||this}return A(f,c),f.prototype.isMatch=function(m){return m.level<=this.configuration.level},I([D.Filter("Threshold")],f)}(M(6558).LogFilter);H.ThresholdFilter=b},9186:(Z,H,M)=>{Object.defineProperty(H,"__esModule",{value:!0}),M(3037),function A(h){for(var w in h)H.hasOwnProperty(w)||(H[w]=h[w])}(M(6122));var I=M(1160);H.Logger=I.Logger;var D=M(7800);H.LogLevel=D.LogLevel;var p=M(5716);H.LogAppender=p.LogAppender;var b=M(1115);H.ConsoleAppender=b.ConsoleAppender;var c=M(123);H.Marker=c.Marker;var f=M(3188);H.Appender=f.Appender;var m=M(1027);H.Filter=m.Filter;var _=M(9626);H.Log=_.Log,H.LogMarker=_.LogMarker;var y=M(9826);H.LogFilterAction=y.LogFilterAction;var E=M(6558);H.LogFilter=E.LogFilter;var g=M(3585);H.MarkerFilter=g.MarkerFilter;var l=M(7378);H.ThresholdFilter=l.ThresholdFilter},9749:(Z,H)=>{Object.defineProperty(H,"__esModule",{value:!0});var I,f,M=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,A=/[^-+\dA-Z]/g;H.padLeft=function(f,m,_){void 0===_&&(_=" ");for(var y=String(f);y.length0?"-":"+")+H.padLeft(100*Math.floor(Math.abs(_)/60)+Math.abs(_)%60,4,"0")}};H.formatDate=function(f,m){f instanceof Date||(f=new Date(f));var _="UTC:"===(m=String(m||I.DEFAULT)).slice(0,4);return _&&(m=m.slice(4)),function c(f){if(p[f]instanceof Array)return p[f];for(var E,g,m=[],_=/(.)\1+|(.)/,y=f;E=y.match(_);)m.push(b[g=E[0]]||g),y=y.substring(g.length);return p[f]=m,m}(m).map(function(y){return y instanceof Function?y(f,_):y}).join("")}},9059:(Z,H,M)=>{Object.defineProperty(H,"__esModule",{value:!0});var A=M(7800),I=M(6570),D=M(9749);H.format=function p(z,L){return function U(z,L){for(var P,$="",Q=z.length,T=0;T{Object.defineProperty(H,"__esModule",{value:!0});var A=M(6934),I=M(1160);H.MAIN_LOGGER="main";var D=new Map;H.addLogger=function(p,b){D.set(p,b)},H.getLogger=function(p,b){if(D.has(p))return D.get(p);var c=A.getLoggerAppenderInstances(b.appenders).map(function(f){return f.appender.setLogLevel(b.level),f.appender.setLayout(b.layout),f});return new I.Logger(p,c)}},1160:(Z,H,M)=>{Object.defineProperty(H,"__esModule",{value:!0});var A=M(9186),I=M(123),D=function(){function p(b,c){this._appenders=c,this._logContext=b,this._logSequence=0,this._relative=(new Date).getTime()}return p.prototype.log=function(b,c){for(var f=this,m=[],_=2;_{Object.defineProperty(H,"__esModule",{value:!0});var M=function(){function A(I){this._parents=new Set,this._name=I}return A.getMarker=function(I){return A._markers.hasOwnProperty(I)||(A._markers[I]=new A(I)),A._markers[I]},Object.defineProperty(A.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),A.prototype.getParents=function(){var I=[];return this._parents.forEach(function(D){return I.push(D)}),I},A.prototype.hasParents=function(){return this._parents.size>0},A.prototype.remove=function(I){return this._parents.delete(I),this},A.prototype.setParents=function(){for(var I=[],D=0;D{Object.defineProperty(H,"__esModule",{value:!0}),H.getFunctionName=function(M){if(""!==M.name)return M.name;var A=M.toString().substring(9);return(A=A.substring(0,A.indexOf("(")))&&A.trim()?A:"anonymous"},H.isArray=function(M){return"object"==typeof M&&M instanceof Array}},2427:(Z,H)=>{Object.defineProperty(H,"__esModule",{value:!0});var M,A=!0;H.useVirtualConsole=function(I){A=I},H.getVirtualConsole=function(I){if(!A)return console;var D=function(){function p(){this.isVirtual=!0,this.memory={}}return p.prototype.assert=function(b,c){for(var f=[],m=2;m{"use strict";function A(n){return"function"==typeof n}let I=!1;const D={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else I&&console.log("RxJS: Back to a better error behavior. Thank you. <3");I=n},get useDeprecatedSynchronousErrorHandling(){return I}};function p(n){setTimeout(()=>{throw n},0)}const b={closed:!0,next(n){},error(n){if(D.useDeprecatedSynchronousErrorHandling)throw n;p(n)},complete(){}},c=Array.isArray||(n=>n&&"number"==typeof n.length);function f(n){return null!==n&&"object"==typeof n}const _=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class y{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof y)e.remove(this);else if(null!==e)for(let o=0;ot.concat(e instanceof _?e.errors:e),[])}y.EMPTY=((n=new y).closed=!0,n);const g="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class h extends y{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=b;break;case 1:if(!t){this.destination=b;break}if("object"==typeof t){t instanceof h?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new w(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new w(this,t,e,i)}}[g](){return this}static create(t,e,i){const r=new h(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class w extends h{constructor(t,e,i,r){super(),this._parentSubscriber=t;let s,o=this;A(e)?s=e:e&&(s=e.next,i=e.error,r=e.complete,e!==b&&(o=Object.create(e),A(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;D.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=D;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):p(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;p(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);D.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),D.useDeprecatedSynchronousErrorHandling)throw i;p(i)}}__tryOrSetError(t,e,i){if(!D.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return D.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(p(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const S="function"==typeof Symbol&&Symbol.observable||"@@observable";function x(n){return n}let j=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:s}=this,o=function v(n,t,e){if(n){if(n instanceof h)return n;if(n[g])return n[g]()}return n||t||e?new h(n,t,e):new h(b)}(e,i,r);if(o.add(s?s.call(o,this.source):this.source||D.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),D.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){D.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function u(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof h?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Y(i))((r,s)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(d){s(d),o&&o.unsubscribe()}},s,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[S](){return this}pipe(...e){return 0===e.length?this:function B(n){return 0===n.length?x:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=Y(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=t=>new n(t),n})();function Y(n){if(n||(n=D.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const W=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class q extends y{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class ee extends h{constructor(t){super(t),this.destination=t}}let U=(()=>{class n extends j{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[g](){return new ee(this)}lift(e){const i=new ne(this,this);return i.operator=e,i}next(e){if(this.closed)throw new W;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;onew ne(t,e),n})();class ne extends U{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):y.EMPTY}}function z(n){return n&&"function"==typeof n.schedule}function L(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new P(n,t))}}class P{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new $(t,this.project,this.thisArg))}}class $ extends h{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Q=n=>t=>{for(let e=0,i=n.length;en&&"number"==typeof n.length&&"function"!=typeof n;function ye(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Fe=n=>{if(n&&"function"==typeof n[S])return(n=>t=>{const e=n[S]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(ie(n))return Q(n);if(ye(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,p),t))(n);if(n&&"function"==typeof n[F])return(n=>t=>{const e=n[F]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${f(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function et(n,t){return new j(e=>{const i=new y;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function Re(n,t){return t?function st(n,t){if(null!=n){if(function Be(n){return n&&"function"==typeof n[S]}(n))return function me(n,t){return new j(e=>{const i=new y;return i.add(t.schedule(()=>{const r=n[S]();i.add(r.subscribe({next(s){i.add(t.schedule(()=>e.next(s)))},error(s){i.add(t.schedule(()=>e.error(s)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(ye(n))return function Ve(n,t){return new j(e=>{const i=new y;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(ie(n))return et(n,t);if(function $e(n){return n&&"function"==typeof n[F]}(n)||"string"==typeof n)return function qe(n,t){if(!n)throw new Error("Iterable cannot be null");return new j(e=>{const i=new y;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[F](),i.add(t.schedule(function(){if(e.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(s),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof j?n:new j(Fe(n))}class ut extends h{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Jt extends h{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function kt(n,t){if(t.closed)return;if(n instanceof j)return n.subscribe(t);let e;try{e=Fe(n)(t)}catch(i){t.error(i)}return e}function Rt(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(Rt((r,s)=>Re(n(r,s)).pipe(L((o,a)=>t(r,o,s,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new yn(n,e)))}class yn{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new fe(t,this.project,this.concurrent))}}class fe extends Jt{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function be(n=Number.POSITIVE_INFINITY){return Rt(x,n)}function Ce(n,t){return t?et(n,t):new j(Q(n))}function Ae(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return z(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof j?n[0]:be(t)(Ce(n,e))}function Yt(){return function(t){return t.lift(new tt(t))}}class tt{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new Ct(t,i),s=e.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class Ct extends h{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class rt extends j{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new y,t.add(this.source.subscribe(new Pt(this.getSubject(),this))),t.closed&&(this._connection=null,t=y.EMPTY)),t}refCount(){return Yt()(this)}}const Ft=(()=>{const n=rt.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class Pt extends ee{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function Dr(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new Ln(r,t));const s=Object.create(i,Ft);return s.source=i,s.subjectFactory=r,s}}class Ln{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(t);return s.add(e.subscribe(r)),s}}function Tn(){return new U}function Ni(){return n=>Yt()(Dr(Tn)(n))}function gt(n){for(let t in n)if(n[t]===gt)return t;throw Error("Could not find renamed property on target object.")}function Jn(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function vt(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(vt).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Mi(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const Wi=gt({__forward_ref__:gt});function Ot(n){return n.__forward_ref__=Ot,n.toString=function(){return vt(this())},n}function Dt(n){return _i(n)?n():n}function _i(n){return"function"==typeof n&&n.hasOwnProperty(Wi)&&n.__forward_ref__===Ot}class Ke extends Error{constructor(t,e){super(function Bl(n,t){return`NG0${Math.abs(n)}${t?": "+t:""}`}(t,e)),this.code=t}}function ae(n){return"string"==typeof n?n:null==n?"":String(n)}function _e(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():ae(n)}function Ze(n,t){const e=t?` in ${t}`:"";throw new Ke(-201,`No provider for ${_e(n)} found${e}`)}function tn(n,t){null==n&&function pn(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function xe(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function dt(n){return{providers:n.providers||[],imports:n.imports||[]}}function zf(n){return x_(n,Ru)||x_(n,A_)}function x_(n,t){return n.hasOwnProperty(t)?n[t]:null}function k_(n){return n&&(n.hasOwnProperty(Uf)||n.hasOwnProperty(Qx))?n[Uf]:null}const Ru=gt({\u0275prov:gt}),Uf=gt({\u0275inj:gt}),A_=gt({ngInjectableDef:gt}),Qx=gt({ngInjectorDef:gt});var xt=(()=>((xt=xt||{})[xt.Default=0]="Default",xt[xt.Host=1]="Host",xt[xt.Self=2]="Self",xt[xt.SkipSelf=4]="SkipSelf",xt[xt.Optional=8]="Optional",xt))();let $f;function Fs(n){const t=$f;return $f=n,t}function T_(n,t,e){const i=zf(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&xt.Optional?null:void 0!==t?t:void Ze(vt(n),"Injector")}function Ps(n){return{toString:n}.toString()}var Er=(()=>((Er=Er||{})[Er.OnPush=0]="OnPush",Er[Er.Default=1]="Default",Er))(),Sr=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Sr||(Sr={})),Sr))();const Jx="undefined"!=typeof globalThis&&globalThis,ek="undefined"!=typeof window&&window,tk="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,vn=Jx||"undefined"!=typeof global&&global||ek||tk,da={},bn=[],Ou=gt({\u0275cmp:gt}),Gf=gt({\u0275dir:gt}),Wf=gt({\u0275pipe:gt}),I_=gt({\u0275mod:gt}),fs=gt({\u0275fac:gt}),Vl=gt({__NG_ELEMENT_ID__:gt});let nk=0;function Ge(n){return Ps(()=>{const e={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Er.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||bn,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Sr.Emulated,id:"c",styles:n.styles||bn,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=nk++,i.inputs=P_(n.inputs,e),i.outputs=P_(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(R_):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(O_):null,i})}function R_(n){return bi(n)||function Ns(n){return n[Gf]||null}(n)}function O_(n){return function go(n){return n[Wf]||null}(n)}const F_={};function mt(n){return Ps(()=>{const t={type:n.type,bootstrap:n.bootstrap||bn,declarations:n.declarations||bn,imports:n.imports||bn,exports:n.exports||bn,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(F_[n.id]=n.type),t})}function P_(n,t){if(null==n)return da;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,t&&(t[r]=s)}return e}const De=Ge;function bi(n){return n[Ou]||null}function ar(n,t){const e=n[I_]||null;if(!e&&!0===t)throw new Error(`Type ${vt(n)} does not have '\u0275mod' property.`);return e}function $r(n){return Array.isArray(n)&&"object"==typeof n[1]}function kr(n){return Array.isArray(n)&&!0===n[1]}function Kf(n){return 0!=(8&n.flags)}function Lu(n){return 2==(2&n.flags)}function Bu(n){return 1==(1&n.flags)}function Ar(n){return null!==n.template}function lk(n){return 0!=(512&n[2])}function bo(n,t){return n.hasOwnProperty(fs)?n[fs]:null}class dk{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function on(){return L_}function L_(n){return n.type.prototype.ngOnChanges&&(n.setInput=fk),hk}function hk(){const n=V_(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===da)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function fk(n,t,e,i){const r=V_(n)||function pk(n,t){return n[B_]=t}(n,{previous:da,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],d=o[a];s[a]=new dk(d&&d.currentValue,t,o===da),n[i]=t}on.ngInherit=!0;const B_="__ngSimpleChanges__";function V_(n){return n[B_]||null}let e0;function Bn(n){return!!n.listen}const H_={createRenderer:(n,t)=>function t0(){return void 0!==e0?e0:"undefined"!=typeof document?document:void 0}()};function Wn(n){for(;Array.isArray(n);)n=n[0];return n}function Vu(n,t){return Wn(t[n])}function ur(n,t){return Wn(t[n.index])}function n0(n,t){return n.data[t]}function qi(n,t){const e=t[n];return $r(e)?e:e[0]}function j_(n){return 4==(4&n[2])}function r0(n){return 128==(128&n[2])}function Ls(n,t){return null==t?null:n[t]}function z_(n){n[18]=0}function s0(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const Tt={lFrame:Q_(null),bindingsEnabled:!0};function $_(){return Tt.bindingsEnabled}function ke(){return Tt.lFrame.lView}function cn(){return Tt.lFrame.tView}function Qt(n){return Tt.lFrame.contextLView=n,n[8]}function ei(){let n=G_();for(;null!==n&&64===n.type;)n=n.parent;return n}function G_(){return Tt.lFrame.currentTNode}function Gr(n,t){const e=Tt.lFrame;e.currentTNode=n,e.isParent=t}function o0(){return Tt.lFrame.isParent}function a0(){Tt.lFrame.isParent=!1}function va(){return Tt.lFrame.bindingIndex++}function ms(n){const t=Tt.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function Ik(n,t){const e=Tt.lFrame;e.bindingIndex=e.bindingRootIndex=n,l0(t)}function l0(n){Tt.lFrame.currentDirectiveIndex=n}function c0(n){const t=Tt.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function q_(){return Tt.lFrame.currentQueryIndex}function u0(n){Tt.lFrame.currentQueryIndex=n}function Ok(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function K_(n,t,e){if(e&xt.SkipSelf){let r=t,s=n;for(;!(r=r.parent,null!==r||e&xt.Host||(r=Ok(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,n=s}const i=Tt.lFrame=X_();return i.currentTNode=t,i.lView=n,!0}function ju(n){const t=X_(),e=n[1];Tt.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function X_(){const n=Tt.lFrame,t=null===n?null:n.child;return null===t?Q_(n):t}function Q_(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function Z_(){const n=Tt.lFrame;return Tt.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const J_=Z_;function zu(){const n=Z_();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Si(){return Tt.lFrame.selectedIndex}function Bs(n){Tt.lFrame.selectedIndex=n}function Vn(){const n=Tt.lFrame;return n0(n.tView,n.selectedIndex)}function $l(){Tt.lFrame.currentNamespace="svg"}function d0(){!function Lk(){Tt.lFrame.currentNamespace=null}()}function Uu(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[d]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Gl{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Wu(n,t,e){const i=Bn(n);let r=0;for(;rt){o=s-1;break}}}for(;s>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let m0=!0;function qu(n){const t=m0;return m0=n,t}let Wk=0;function Yl(n,t){const e=v0(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,g0(i.data,n),g0(t,null),g0(i.blueprint,null));const r=Ku(n,t),s=n.injectorIndex;if(r1(r)){const o=_a(r),a=ya(r,t),d=a[1].data;for(let C=0;C<8;C++)t[s+C]=a[o+C]|d[o+C]}return t[s+8]=r,s}function g0(n,t){n.push(0,0,0,0,0,0,0,0,t)}function v0(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Ku(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Xu(n,t,e){!function Yk(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Vl)&&(i=e[Vl]),null==i&&(i=e[Vl]=Wk++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:Kk:t}(e);if("function"==typeof s){if(!K_(t,n,i))return i&xt.Host?a1(r,e,i):l1(t,e,i,r);try{const o=s(i);if(null!=o||i&xt.Optional)return o;Ze(e)}finally{J_()}}else if("number"==typeof s){let o=null,a=v0(n,t),d=-1,C=i&xt.Host?t[16][6]:null;for((-1===a||i&xt.SkipSelf)&&(d=-1===a?Ku(n,t):t[a+8],-1!==d&&h1(i,!1)?(o=t[1],a=_a(d),t=ya(d,t)):a=-1);-1!==a;){const k=t[1];if(d1(s,a,k.data)){const N=Xk(a,t,e,o,i,C);if(N!==u1)return N}d=t[a+8],-1!==d&&h1(i,t[1].data[a+8]===C)&&d1(s,a,t)?(o=k,a=_a(d),t=ya(d,t)):a=-1}}}return l1(t,e,i,r)}const u1={};function Kk(){return new ba(ei(),ke())}function Xk(n,t,e,i,r,s){const o=t[1],a=o.data[n+8],k=Qu(a,o,e,null==i?Lu(a)&&m0:i!=o&&0!=(3&a.type),r&xt.Host&&s===a);return null!==k?ql(t,o,k,a):u1}function Qu(n,t,e,i,r){const s=n.providerIndexes,o=t.data,a=1048575&s,d=n.directiveStart,k=s>>20,G=r?a+k:n.directiveEnd;for(let X=i?a:a+k;X=d&&re.type===e)return X}if(r){const X=o[d];if(X&&Ar(X)&&X.type===e)return d}return null}function ql(n,t,e,i){let r=n[e];const s=t.data;if(function jk(n){return n instanceof Gl}(r)){const o=r;o.resolving&&function Te(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new Ke(-200,`Circular dependency in DI detected for ${n}${e}`)}(_e(s[e]));const a=qu(o.canSeeViewProviders);o.resolving=!0;const d=o.injectImpl?Fs(o.injectImpl):null;K_(n,i,xt.Default);try{r=n[e]=o.factory(void 0,s,n,i),t.firstCreatePass&&e>=i.directiveStart&&function Vk(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const o=L_(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==d&&Fs(d),qu(a),o.resolving=!1,J_()}}return r}function d1(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[fs]||_0(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[fs]||_0(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function _0(n){return _i(n)?()=>{const t=_0(Dt(n));return t&&t()}:bo(n)}function dr(n){return function qk(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function y0(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(d,C,k){const N=d.hasOwnProperty(Ca)?d[Ca]:Object.defineProperty(d,Ca,{value:[]})[Ca];for(;N.length<=k;)N.push(null);return(N[k]=N[k]||[]).push(o),d}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class Ie{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=xe({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Jk=new Ie("AnalyzeForEntryComponents");function hr(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?Wr(e,t):t(e))}function p1(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Zu(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Ql(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function nA(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function w0(n,t){const e=Ea(n,t);if(e>=0)return n[1|e]}function Ea(n,t){return function v1(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=n[s<t?r=s:i=s+1}return~(r<({token:n})),-1),xi=tc(Ma("Optional"),8),Yr=tc(Ma("SkipSelf"),4);let id;function xa(n){var t;return(null===(t=function S0(){if(void 0===id&&(id=null,vn.trustedTypes))try{id=vn.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return id}())||void 0===t?void 0:t.createHTML(n))||n}class wo{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class SA extends wo{getTypeName(){return"HTML"}}class xA extends wo{getTypeName(){return"Style"}}class kA extends wo{getTypeName(){return"Script"}}class AA extends wo{getTypeName(){return"URL"}}class TA extends wo{getTypeName(){return"ResourceURL"}}function Xi(n){return n instanceof wo?n.changingThisBreaksApplicationSecurity:n}function qr(n,t){const e=A1(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function A1(n){return n instanceof wo&&n.getTypeName()||null}class NA{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(xa(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class LA{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=xa(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=xa(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0ic(t.trim())).join(", ")}function Kr(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function rc(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const R1=Kr("area,br,col,hr,img,wbr"),O1=Kr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),F1=Kr("rp,rt"),k0=rc(R1,rc(O1,Kr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),rc(F1,Kr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),rc(F1,O1)),A0=Kr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),T0=Kr("srcset"),P1=rc(A0,T0,Kr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Kr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),jA=Kr("script,style,template");class zA{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!k0.hasOwnProperty(e))return this.sanitizedSomething=!0,!jA.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();k0.hasOwnProperty(e)&&!R1.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(N1(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const UA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$A=/([^\#-~ |!])/g;function N1(n){return n.replace(/&/g,"&").replace(UA,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace($A,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let sd;function L1(n,t){let e=null;try{sd=sd||function T1(n){const t=new LA(n);return function BA(){try{return!!(new window.DOMParser).parseFromString(xa(""),"text/html")}catch(n){return!1}}()?new NA(t):t}(n);let i=t?String(t):"";e=sd.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=e.innerHTML,e=sd.getInertBodyElement(i)}while(i!==s);return xa((new zA).sanitizeChildren(I0(e)||e))}finally{if(e){const i=I0(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function I0(n){return"content"in n&&function GA(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var dn=(()=>((dn=dn||{})[dn.NONE=0]="NONE",dn[dn.HTML=1]="HTML",dn[dn.STYLE=2]="STYLE",dn[dn.SCRIPT=3]="SCRIPT",dn[dn.URL=4]="URL",dn[dn.RESOURCE_URL=5]="RESOURCE_URL",dn))();function od(n){const t=function sc(){const n=ke();return n&&n[12]}();return t?t.sanitize(dn.URL,n)||"":qr(n,"URL")?Xi(n):ic(ae(n))}const H1="__ngContext__";function Ci(n,t){n[H1]=t}function O0(n){const t=function oc(n){return n[H1]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function P0(n){return n.ngOriginalError}function lT(n,...t){n.error(...t)}class Hs{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=function aT(n){return n&&n.ngErrorLogger||lT}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&P0(t);for(;e&&P0(e);)e=P0(e);return e||null}}const _T=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(vn))();function Xr(n){return n instanceof Function?n():n}var Qi=(()=>((Qi=Qi||{})[Qi.Important=1]="Important",Qi[Qi.DashCase=2]="DashCase",Qi))();function L0(n,t){return undefined(n,t)}function ac(n){const t=n[3];return kr(t)?t[3]:t}function B0(n){return K1(n[13])}function V0(n){return K1(n[4])}function K1(n){for(;null!==n&&!kr(n);)n=n[4];return n}function Aa(n,t,e,i,r){if(null!=i){let s,o=!1;kr(i)?s=i:$r(i)&&(o=!0,i=i[0]);const a=Wn(i);0===n&&null!==e?null==r?ty(t,e,a):Co(t,e,a,r||null,!0):1===n&&null!==e?Co(t,e,a,r||null,!0):2===n?function ly(n,t,e){const i=ad(n,t);i&&function RT(n,t,e,i){Bn(n)?n.removeChild(t,e,i):t.removeChild(e)}(n,i,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function PT(n,t,e,i,r){const s=e[7];s!==Wn(e)&&Aa(t,n,i,s,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const s=Zu(n,10+t);!function MT(n,t){lc(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Z1(n,t){if(!(256&t[2])){const e=t[11];Bn(e)&&e.destroyNode&&lc(n,t,e,3,null,null),function xT(n){let t=n[13];if(!t)return U0(n[1],n);for(;t;){let e=null;if($r(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)$r(t)&&U0(t[1],t),t=t[3];null===t&&(t=n),$r(t)&&U0(t[1],t),e=t&&t[4]}t=e}}(t)}}function U0(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function IT(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=C]():i[r=-C].unsubscribe(),s+=2}else{const o=i[r=e[s+1]];e[s].call(o)}if(null!==i){for(let s=r+1;ss?"":r[N+1].toLowerCase();const X=8&i?G:null;if(X&&-1!==dy(X,C,0)||2&i&&C!==G){if(Tr(i))return!1;o=!0}}}}else{if(!o&&!Tr(i)&&!Tr(d))return!1;if(o&&Tr(d))continue;o=!1,i=d|1&i}}return Tr(i)||o}function Tr(n){return 0==(1&n)}function HT(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let s=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Tr(o)&&(t+=my(s,r),r=""),i=o,s=s||!Tr(i);e++}return""!==r&&(t+=my(s,r)),t}const It={};function he(n){gy(cn(),ke(),Si()+n,!1)}function gy(n,t,e,i){if(!i)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&$u(t,s,e)}else{const s=n.preOrderHooks;null!==s&&Gu(t,s,0,e)}Bs(e)}function ud(n,t){return n<<17|t<<2}function Ir(n){return n>>17&32767}function q0(n){return 2|n}function gs(n){return(131068&n)>>2}function K0(n,t){return-131069&n|t<<2}function X0(n){return 1|n}function xy(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i20&&gy(n,t,20,!1),e(i,r)}finally{Bs(s)}}function Ay(n,t,e){if(Kf(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=d&&a.push(d),a.push(i,r,o)}}function Ly(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function By(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function b6(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&up(e)}}function up(n){for(let i=B0(n);null!==i;i=V0(i))for(let r=10;r0&&up(s)}const e=n[1].components;if(null!==e)for(let i=0;i0&&up(r)}}function x6(n,t){const e=qi(t,n),i=e[1];(function k6(n,t){for(let e=t.length;ePromise.resolve(null))();function Uy(n){return n[7]||(n[7]=[])}function $y(n){return n.cleanup||(n.cleanup=[])}function Gy(n,t,e){return(null===n||Ar(n))&&(e=function wk(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function Wy(n,t){const e=n[9],i=e?e.get(Hs,null):null;i&&i.handleError(t)}function Yy(n,t,e,i,r){for(let s=0;sthis.processProvider(a,t,e)),Wr([t],a=>this.processInjectorType(a,[],s)),this.records.set(mp,Oa(void 0,this));const o=this.records.get(gp);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:vt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Zl,i=xt.Default){this.assertNotDestroyed();const r=b1(this),s=Fs(void 0);try{if(!(i&xt.SkipSelf)){let a=this.records.get(t);if(void 0===a){const d=function z6(n){return"function"==typeof n||"object"==typeof n&&n instanceof Ie}(t)&&zf(t);a=d&&this.injectableDefInScope(d)?Oa(_p(t),dc):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&xt.Self?Ky():this.parent).get(t,e=i&xt.Optional&&e===Zl?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[ed]=o[ed]||[]).unshift(vt(t)),r)throw o;return function pA(n,t,e,i){const r=n[ed];throw t[y1]&&r.unshift(t[y1]),n.message=function mA(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=vt(t);if(Array.isArray(t))r=t.map(vt).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):vt(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(cA,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[ed]=null,n}(o,t,"R3InjectorError",this.source)}throw o}finally{Fs(s),b1(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(vt(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ke(205,!1)}processInjectorType(t,e,i){if(!(t=Dt(t)))return!1;let r=k_(t);const s=null==r&&t.ngModule||void 0,o=void 0===s?t:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=k_(s)),null==r)return!1;if(null!=r.imports&&!a){let k;i.push(o);try{Wr(r.imports,N=>{this.processInjectorType(N,e,i)&&(void 0===k&&(k=[]),k.push(N))})}finally{}if(void 0!==k)for(let N=0;Nthis.processProvider(re,G,X||bn))}}this.injectorDefTypes.add(o);const d=bo(o)||(()=>new o);this.records.set(o,Oa(d,dc));const C=r.providers;if(null!=C&&!a){const k=t;Wr(C,N=>this.processProvider(N,k,C))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let r=Fa(t=Dt(t))?t:Dt(t&&t.provide);const s=function N6(n,t,e){return Jy(n)?Oa(void 0,n.useValue):Oa(Zy(n),dc)}(t);if(Fa(t)||!0!==t.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Oa(void 0,dc,!0),o.factory=()=>M0(o.multi),this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,s)}hydrate(t,e){return e.value===dc&&(e.value=O6,e.value=e.factory()),"object"==typeof e.value&&e.value&&function j6(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=Dt(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function _p(n){const t=zf(n),e=null!==t?t.factory:bo(n);if(null!==e)return e;if(n instanceof Ie)throw new Ke(204,!1);if(n instanceof Function)return function P6(n){const t=n.length;if(t>0)throw Ql(t,"?"),new Ke(204,!1);const e=function Kx(n){const t=n&&(n[Ru]||n[A_]);if(t){const e=function Xx(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Ke(204,!1)}function Zy(n,t,e){let i;if(Fa(n)){const r=Dt(n);return bo(r)||_p(r)}if(Jy(n))i=()=>Dt(n.useValue);else if(function B6(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...M0(n.deps||[]));else if(function L6(n){return!(!n||!n.useExisting)}(n))i=()=>ue(Dt(n.useExisting));else{const r=Dt(n&&(n.useClass||n.provide));if(!function H6(n){return!!n.deps}(n))return bo(r)||_p(r);i=()=>new r(...M0(n.deps))}return i}function Oa(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function Jy(n){return null!==n&&"object"==typeof n&&dA in n}function Fa(n){return"function"==typeof n}let Dn=(()=>{class n{static create(e,i){var r;if(Array.isArray(e))return Xy({name:""},i,e,"");{const s=null!==(r=e.name)&&void 0!==r?r:"";return Xy({name:s},e.parent,e.providers,s)}}}return n.THROW_IF_NOT_FOUND=Zl,n.NULL=new qy,n.\u0275prov=xe({token:n,providedIn:"any",factory:()=>ue(mp)}),n.__NG_ELEMENT_ID__=-1,n})();function X6(n,t){Uu(O0(n)[1],ei())}function Pe(n){let t=function db(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(Ar(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Ke(903,"");r=t.\u0275dir}if(r){if(e){i.push(r);const o=n;o.inputs=wp(n.inputs),o.declaredInputs=wp(n.declaredInputs),o.outputs=wp(n.outputs);const a=r.hostBindings;a&&e5(n,a);const d=r.viewQuery,C=r.contentQueries;if(d&&Z6(n,d),C&&J6(n,C),Jn(n.inputs,r.inputs),Jn(n.declaredInputs,r.declaredInputs),Jn(n.outputs,r.outputs),Ar(r)&&r.data.animation){const k=n.data;k.animation=(k.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Yu(r.hostAttrs,e=Yu(e,r.hostAttrs))}}(i)}function wp(n){return n===da?{}:n===bn?[]:n}function Z6(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function J6(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,s)=>{t(i,r,s),e(i,r,s)}:t}function e5(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let gd=null;function Pa(){if(!gd){const n=vn.Symbol;if(n&&n.iterator)gd=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Wn(it[i.index])):i.index;if(Bn(e)){let it=null;if(!a&&d&&(it=function T5(n,t,e,i){const r=n.cleanup;if(null!=r)for(let s=0;sd?a[d]:null}"string"==typeof o&&(s+=2)}return null}(n,t,r,i.index)),null!==it)(it.__ngLastListenerFn__||it).__ngNextListenerFn__=s,it.__ngLastListenerFn__=s,X=!1;else{s=Ap(i,t,N,s,!1);const Wt=e.listen(Me,r,s);G.push(s,Wt),k&&k.push(r,Ne,pe,pe+1)}}else s=Ap(i,t,N,s,!0),Me.addEventListener(r,s,o),G.push(s),k&&k.push(r,Ne,pe,o)}else s=Ap(i,t,N,s,!1);const re=i.outputs;let de;if(X&&null!==re&&(de=re[r])){const ve=de.length;if(ve)for(let Me=0;Me0;)t=t[15],n--;return t}(n,Tt.lFrame.contextLView))[8]}(n)}function I5(n,t){let e=null;const i=function jT(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r=0}const ni={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function zb(n){return n.substring(ni.key,ni.keyEnd)}function Ub(n,t){const e=ni.textEnd;return e===t?-1:(t=ni.keyEnd=function B5(n,t,e){for(;t32;)t++;return t}(n,ni.key=t,e),Ka(n,t,e))}function Ka(n,t,e){for(;t=0;e=Ub(t,e))Ki(n,zb(t),!0)}function Pr(n,t,e,i){const r=ke(),s=cn(),o=ms(2);s.firstUpdatePass&&Kb(s,n,o,i),t!==It&&Di(r,o,t)&&Qb(s,s.data[Si()],r,r[11],n,r[o+1]=function K5(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=vt(Xi(n)))),n}(t,e),i,o)}function qb(n,t){return t>=n.expandoStartIndex}function Kb(n,t,e,i){const r=n.data;if(null===r[e+1]){const s=r[Si()],o=qb(n,e);Jb(s,i)&&null===t&&!o&&(t=!1),t=function U5(n,t,e,i){const r=c0(n);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=mc(e=Ip(null,n,t,e,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==r)if(e=Ip(r,n,t,e,i),null===s){let d=function $5(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==gs(i))return n[Ir(i)]}(n,t,i);void 0!==d&&Array.isArray(d)&&(d=Ip(null,n,t,d[1],i),d=mc(d,t.attrs,i),function G5(n,t,e,i){n[Ir(e?t.classBindings:t.styleBindings)]=i}(n,t,i,d))}else s=function W5(n,t,e){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(C=!0)}else k=e;if(r)if(0!==d){const G=Ir(n[a+1]);n[i+1]=ud(G,a),0!==G&&(n[G+1]=K0(n[G+1],i)),n[a+1]=function qT(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=ud(a,0),0!==a&&(n[a+1]=K0(n[a+1],i)),a=i;else n[i+1]=ud(d,0),0===a?a=i:n[d+1]=K0(n[d+1],i),d=i;C&&(n[i+1]=q0(n[i+1])),jb(n,k,i,!0),jb(n,k,i,!1),function O5(n,t,e,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&Ea(s,t)>=0&&(e[i+1]=X0(e[i+1]))}(t,k,n,i,s),o=ud(a,d),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,i)}}function Ip(n,t,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const d=n[r],C=Array.isArray(d),k=C?d[1]:d,N=null===k;let G=e[r+1];G===It&&(G=N?bn:void 0);let X=N?w0(G,i):k===i?G:void 0;if(C&&!yd(X)&&(X=w0(d,i)),yd(X)&&(a=X,o))return a;const re=n[r+1];r=o?Ir(re):gs(re)}if(null!==t){let d=s?t.residualClasses:t.residualStyles;null!=d&&(a=w0(d,i))}return a}function yd(n){return void 0!==n}function Jb(n,t){return 0!=(n.flags&(t?16:32))}function we(n,t=""){const e=ke(),i=cn(),r=n+20,s=i.firstCreatePass?Ta(i,r,1,t,null):i.data[r],o=e[r]=function H0(n,t){return Bn(n)?n.createText(t):n.createTextNode(t)}(e[11],t);ld(i,e,o,s),Gr(s,!1)}function xn(n){return Rn("",n,""),xn}function Rn(n,t,e){const i=ke(),r=La(i,n,t,e);return r!==It&&vs(i,Si(),r),Rn}function Rp(n,t,e,i,r){const s=ke(),o=Ba(s,n,t,e,i,r);return o!==It&&vs(s,Si(),o),Rp}function aw(n,t,e){!function Nr(n,t,e,i){const r=cn(),s=ms(2);r.firstUpdatePass&&Kb(r,null,s,i);const o=ke();if(e!==It&&Di(o,s,e)){const a=r.data[Si()];if(Jb(a,i)&&!qb(r,s)){let d=i?a.classesWithoutHost:a.stylesWithoutHost;null!==d&&(e=Mi(d,e||"")),xp(r,a,o,e,i)}else!function q5(n,t,e,i,r,s,o,a){r===It&&(r=bn);let d=0,C=0,k=0>20;if(Fa(n)||!n.multi){const X=new Gl(d,r,V),re=Lp(a,t,r?k:k+G,N);-1===re?(Xu(Yl(C,o),s,a),Np(s,n,t.length),t.push(a),C.directiveStart++,C.directiveEnd++,r&&(C.providerIndexes+=1048576),e.push(X),o.push(X)):(e[re]=X,o[re]=X)}else{const X=Lp(a,t,k+G,N),re=Lp(a,t,k,k+G),de=X>=0&&e[X],ve=re>=0&&e[re];if(r&&!ve||!r&&!de){Xu(Yl(C,o),s,a);const Me=function fI(n,t,e,i,r){const s=new Gl(n,e,V);return s.multi=[],s.index=t,s.componentProviders=0,Uw(s,r,i&&!e),s}(r?hI:dI,e.length,r,i,d);!r&&ve&&(e[re].providerFactory=Me),Np(s,n,t.length,0),t.push(a),C.directiveStart++,C.directiveEnd++,r&&(C.providerIndexes+=1048576),e.push(Me),o.push(Me)}else Np(s,n,X>-1?X:re,Uw(e[r?re:X],d,!r&&i));!r&&i&&ve&&e[re].componentProviders++}}}function Np(n,t,e,i){const r=Fa(t),s=function V6(n){return!!n.useClass}(t);if(r||s){const d=(s?Dt(t.useClass):t).prototype.ngOnDestroy;if(d){const C=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const k=C.indexOf(e);-1===k?C.push(e,[i,d]):C[k+1].push(i,d)}else C.push(e,d)}}}function Uw(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Lp(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function uI(n,t,e){const i=cn();if(i.firstCreatePass){const r=Ar(n);Pp(e,i.data,i.blueprint,r,!0),Pp(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class $w{}class gI{resolveComponentFactory(t){throw function mI(n){const t=Error(`No component factory found for ${vt(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Eo=(()=>{class n{}return n.NULL=new gI,n})();function vI(){return Ja(ei(),ke())}function Ja(n,t){return new nt(ur(n,t))}let nt=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=vI,n})();function _I(n){return n instanceof nt?n.nativeElement:n}class bc{}let _s=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function bI(){const n=ke(),e=qi(ei().index,n);return function yI(n){return n[11]}($r(e)?e:n)}(),n})(),wI=(()=>{class n{}return n.\u0275prov=xe({token:n,providedIn:"root",factory:()=>null}),n})();class So{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const CI=new So("13.3.10"),Vp={};function Ed(n,t,e,i,r=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&i.push(Wn(s)),kr(s))for(let a=10;a-1&&(z0(t,i),Zu(e,i))}this._attachedToViewContainer=!1}Z1(this._lView[1],this._lView)}onDestroy(t){Oy(this._lView[1],this._lView,null,t)}markForCheck(){dp(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function fp(n,t,e){const i=t[10];i.begin&&i.begin();try{Ra(n,t,n.template,e)}catch(r){throw Wy(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ke(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ST(n,t){lc(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Ke(902,"");this._appRef=t}}class DI extends wc{constructor(t){super(t),this._view=t}detectChanges(){zy(this._view)}checkNoChanges(){}get context(){return null}}class Ww extends Eo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=bi(t);return new Hp(e,this.ngModule)}}function Yw(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class Hp extends $w{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function WT(n){return n.map(GT).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Yw(this.componentDef.inputs)}get outputs(){return Yw(this.componentDef.outputs)}create(t,e,i,r){const s=(r=r||this.ngModule)?function EI(n,t){return{get:(e,i,r)=>{const s=n.get(e,Vp,r);return s!==Vp||i===Vp?s:t.get(e,i,r)}}}(t,r.injector):t,o=s.get(bc,H_),a=s.get(wI,null),d=o.createRenderer(null,this.componentDef),C=this.componentDef.selectors[0][0]||"div",k=i?function Ry(n,t,e){if(Bn(n))return n.selectRootElement(t,e===Sr.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(d,i,this.componentDef.encapsulation):j0(o.createRenderer(null,this.componentDef),C,function MI(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(C)),N=this.componentDef.onPush?576:528,G=function ub(n,t){return{components:[],scheduler:n||_T,clean:T6,playerHandler:t||null,flags:0}}(),X=fd(0,null,null,1,0,null,null,null,null,null),re=cc(null,X,G,N,null,null,o,d,a,s);let de,ve;ju(re);try{const Me=function lb(n,t,e,i,r,s){const o=e[1];e[20]=n;const d=Ta(o,20,2,"#host",null),C=d.mergedAttrs=t.hostAttrs;null!==C&&(md(d,C,!0),null!==n&&(Wu(r,n,C),null!==d.classes&&Y0(r,n,d.classes),null!==d.styles&&uy(r,n,d.styles)));const k=i.createRenderer(n,t),N=cc(e,Ty(t),null,t.onPush?64:16,e[20],d,i,k,s||null,null);return o.firstCreatePass&&(Xu(Yl(d,e),o,t.type),By(o,d),Vy(d,e.length,1)),pd(e,N),e[20]=N}(k,this.componentDef,re,o,d);if(k)if(i)Wu(d,k,["ng-version",CI.full]);else{const{attrs:pe,classes:Ne}=function YT(n){const t=[],e=[];let i=1,r=2;for(;i0&&Y0(d,k,Ne.join(" "))}if(ve=n0(X,20),void 0!==e){const pe=ve.projection=[];for(let Ne=0;Ned(o,t)),t.contentQueries){const d=ei();t.contentQueries(1,o,d.directiveStart)}const a=ei();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Bs(a.index),Ny(e[1],a,0,a.directiveStart,a.directiveEnd,t),Ly(t,o)),o}(Me,this.componentDef,re,G,[X6]),uc(X,re,null)}finally{zu()}return new xI(this.componentType,de,Ja(ve,re),re,ve)}}class xI extends class pI{}{constructor(t,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new DI(r),this.componentType=t}get injector(){return new ba(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class ys{}class qw{}const el=new Map;class Qw extends ys{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ww(this);const i=ar(t);this._bootstrapComponents=Xr(i.bootstrap),this._r3Injector=Qy(t,e,[{provide:ys,useValue:this},{provide:Eo,useValue:this.componentFactoryResolver}],vt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Dn.THROW_IF_NOT_FOUND,i=xt.Default){return t===Dn||t===ys||t===mp?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class jp extends qw{constructor(t){super(),this.moduleType=t,null!==ar(t)&&function AI(n){const t=new Set;!function e(i){const r=ar(i,!0),s=r.id;null!==s&&(function Kw(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${vt(t)} vs ${vt(t.name)}`)}(s,el.get(s),i),el.set(s,i));const o=Xr(r.imports);for(const a of o)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new Qw(this.moduleType,t)}}function zp(n){return t=>{setTimeout(n,void 0,t)}}const Le=class YI extends U{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,s,o;let a=t,d=e||(()=>null),C=i;if(t&&"object"==typeof t){const N=t;a=null===(r=N.next)||void 0===r?void 0:r.bind(N),d=null===(s=N.error)||void 0===s?void 0:s.bind(N),C=null===(o=N.complete)||void 0===o?void 0:o.bind(N)}this.__isAsync&&(d=zp(d),a&&(a=zp(a)),C&&(C=zp(C)));const k=super.subscribe({next:a,error:d,complete:C});return t instanceof y&&t.add(k),k}};function qI(){return this._results[Pa()]()}class xo{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Pa(),i=xo.prototype;i[e]||(i[e]=qI)}get changes(){return this._changes||(this._changes=new Le)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=hr(t);(this._changesDetected=!function eA(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=QI,n})();const KI=kn,XI=class extends KI{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=cc(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(e)),uc(e,i,t),new wc(i)}};function QI(){return Sd(ei(),ke())}function Sd(n,t){return 4&n.type?new XI(t,n,Ja(n,t)):null}let On=(()=>{class n{}return n.__NG_ELEMENT_ID__=ZI,n})();function ZI(){return o2(ei(),ke())}const JI=On,r2=class extends JI{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Ja(this._hostTNode,this._hostLView)}get injector(){return new ba(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ku(this._hostTNode,this._hostLView);if(r1(t)){const e=ya(t,this._hostLView),i=_a(t);return new ba(e[1].data[i+8],e)}return new ba(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=s2(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const r=t.createEmbeddedView(e||{});return this.insert(r,i),r}createComponent(t,e,i,r,s){const o=t&&!function Xl(n){return"function"==typeof n}(t);let a;if(o)a=e;else{const N=e||{};a=N.index,i=N.injector,r=N.projectableNodes,s=N.ngModuleRef}const d=o?t:new Hp(bi(t)),C=i||this.parentInjector;if(!s&&null==d.ngModule){const G=(o?C:this.parentInjector).get(ys,null);G&&(s=G)}const k=d.create(C,r,void 0,s);return this.insert(k.hostView,a),k}insert(t,e){const i=t._lView,r=i[1];if(function Dk(n){return kr(n[3])}(i)){const k=this.indexOf(t);if(-1!==k)this.detach(k);else{const N=i[3],G=new r2(N,N[6],N[3]);G.detach(G.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function kT(n,t,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=t),i0)i.push(o[a/2]);else{const C=s[a+1],k=t[-d];for(let N=10;N{class n{constructor(e){this.appInits=e,this.resolve=Ad,this.reject=Ad,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{s.subscribe({complete:a,error:d})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(ue(Td,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ec=new Ie("AppId",{providedIn:"root",factory:function k2(){return`${tm()}${tm()}${tm()}`}});function tm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const A2=new Ie("Platform Initializer"),nl=new Ie("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),T2=new Ie("appBootstrapListener");let ER=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const bs=new Ie("LocaleId",{providedIn:"root",factory:()=>ec(bs,xt.Optional|xt.SkipSelf)||function SR(){return"undefined"!=typeof $localize&&$localize.locale||bd}()});class kR{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let I2=(()=>{class n{compileModuleSync(e){return new jp(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),s=Xr(ar(e).declarations).reduce((o,a)=>{const d=bi(a);return d&&o.push(new Hp(d)),o},[]);return new kR(i,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const TR=(()=>Promise.resolve(0))();function nm(n){"undefined"==typeof Zone?TR.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ct{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Le(!1),this.onMicrotaskEmpty=new Le(!1),this.onStable=new Le(!1),this.onError=new Le(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function IR(){let n=vn.requestAnimationFrame,t=vn.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function FR(n){const t=()=>{!function OR(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(vn,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,rm(n),n.isCheckStableRunning=!0,im(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),rm(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return R2(n),e.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),O2(n)}},onInvoke:(e,i,r,s,o,a,d)=>{try{return R2(n),e.invoke(r,s,o,a,d)}finally{n.shouldCoalesceRunChangeDetection&&t(),O2(n)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,rm(n),im(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ct.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ct.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,RR,Ad,Ad);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const RR={};function im(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function rm(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function R2(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function O2(n){n._nesting--,im(n)}class PR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Le,this.onMicrotaskEmpty=new Le,this.onStable=new Le,this.onError=new Le}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}let sm=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ct.assertNotInAngularZone(),nm(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())nm(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(ue(ct))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),NR=(()=>{class n{constructor(){this._applications=new Map,om.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return om.findTestabilityInTree(this,e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class LR{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let om=new LR,ko=null;const F2=new Ie("AllowMultipleToken"),P2=new Ie("PlatformOnDestroy");class N2{constructor(t,e){this.name=t,this.token=e}}function L2(n,t,e=[]){const i=`Platform: ${t}`,r=new Ie(i);return(s=[])=>{let o=am();if(!o||o.injector.get(F2,!1)){const a=[...e,...s,{provide:r,useValue:!0}];n?n(a):function jR(n){if(ko&&!ko.get(F2,!1))throw new Ke(400,"");ko=n;const t=n.get(B2),e=n.get(A2,null);e&&e.forEach(i=>i())}(function UR(n=[],t){return Dn.create({name:t,providers:[{provide:gp,useValue:"platform"},{provide:P2,useValue:()=>ko=null},...n]})}(a,i))}return function zR(n){const t=am();if(!t)throw new Ke(401,"");return t}()}}function am(){var n;return null!==(n=null==ko?void 0:ko.get(B2))&&void 0!==n?n:null}let B2=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function $R(n,t){let e;return e="noop"===n?new PR:("zone.js"===n?void 0:n)||new ct({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),d=[{provide:ct,useValue:a}];return a.run(()=>{const C=Dn.create({providers:d,parent:this.injector,name:e.moduleType.name}),k=e.create(C),N=k.injector.get(Hs,null);if(!N)throw new Ke(402,"");return a.runOutsideAngular(()=>{const G=a.onError.subscribe({next:X=>{N.handleError(X)}});k.onDestroy(()=>{lm(this._modules,k),G.unsubscribe()})}),function GR(n,t,e){try{const i=e();return pc(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(N,a,()=>{const G=k.injector.get(em);return G.runInitializers(),G.donePromise.then(()=>(function y4(n){tn(n,"Expected localeId to be defined"),"string"==typeof n&&(yw=n.toLowerCase().replace(/_/g,"-"))}(k.injector.get(bs,bd)||bd),this._moduleDoBootstrap(k),k))})})}bootstrapModule(e,i=[]){const r=V2({},i);return function VR(n,t,e){const i=new jp(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(Sc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Ke(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ke(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(P2,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(ue(Dn))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function V2(n,t){return Array.isArray(t)?t.reduce(V2,n):Object.assign(Object.assign({},n),t)}let Sc=(()=>{class n{constructor(e,i,r,s){this._zone=e,this._injector=i,this._exceptionHandler=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new j(d=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{d.next(this._stable),d.complete()})}),a=new j(d=>{let C;this._zone.runOutsideAngular(()=>{C=this._zone.onStable.subscribe(()=>{ct.assertNotInAngularZone(),nm(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,d.next(!0))})})});const k=this._zone.onUnstable.subscribe(()=>{ct.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{d.next(!1)}))});return()=>{C.unsubscribe(),k.unsubscribe()}});this.isStable=Ae(o,a.pipe(Ni()))}bootstrap(e,i){if(!this._initStatus.done)throw new Ke(405,"");let r;r=e instanceof $w?e:this._injector.get(Eo).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const s=function HR(n){return n.isBoundToModule}(r)?void 0:this._injector.get(ys),a=r.create(Dn.NULL,[],i||r.selector,s),d=a.location.nativeElement,C=a.injector.get(sm,null),k=C&&a.injector.get(NR);return C&&k&&k.registerApplication(d,C),a.onDestroy(()=>{this.detachView(a.hostView),lm(this.components,a),k&&k.unregisterApplication(d)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Ke(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;lm(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(T2,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(ue(ct),ue(Dn),ue(Hs),ue(em))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function lm(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let j2=!0,an=(()=>{class n{}return n.__NG_ELEMENT_ID__=qR,n})();function qR(n){return function KR(n,t,e){if(Lu(n)&&!e){const i=qi(n.index,t);return new wc(i,i)}return 47&n.type?new wc(t[16],t):null}(ei(),ke(),16==(16&n))}class W2{constructor(){}supports(t){return hc(t)}create(t){return new tO(t)}}const eO=(n,t)=>t;class tO{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||eO}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new nO(e,i),s,r),t}_verifyReinsertion(t,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Y2),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Y2),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class nO{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class iO{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Y2{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new iO,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function q2(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new sO(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class sO{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function X2(){return new ns([new W2])}let ns=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||X2()),deps:[[n,new Yr,new xi]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Ke(901,"")}}return n.\u0275prov=xe({token:n,providedIn:"root",factory:X2}),n})();function Q2(){return new xc([new K2])}let xc=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||Q2()),deps:[[n,new Yr,new xi]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(i)return i;throw new Ke(901,"")}}return n.\u0275prov=xe({token:n,providedIn:"root",factory:Q2}),n})();const lO=L2(null,"core",[]);let cO=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(ue(Sc))},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})(),Od=null;function is(){return Od}const Et=new Ie("DocumentToken");let To=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:function(){return function fO(){return ue(Z2)}()},providedIn:"platform"}),n})();const pO=new Ie("Location Initialized");let Z2=(()=>{class n extends To{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return is().getBaseHref(this._doc)}onPopState(e){const i=is().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=is().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,r){J2()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){J2()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(ue(Et))},n.\u0275prov=xe({token:n,factory:function(){return function mO(){return new Z2(ue(Et))}()},providedIn:"platform"}),n})();function J2(){return!!window.history.pushState}function fm(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function eC(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function ws(n){return n&&"?"!==n[0]?"?"+n:n}let il=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:function(){return function gO(n){const t=ue(Et).location;return new tC(ue(To),t&&t.origin||"")}()},providedIn:"root"}),n})();const pm=new Ie("appBaseHref");let tC=(()=>{class n extends il{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return fm(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+ws(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+ws(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+ws(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(ue(To),ue(pm,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),vO=(()=>{class n extends il{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=fm(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,s){let o=this.prepareExternalUrl(r+ws(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){let o=this.prepareExternalUrl(r+ws(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(ue(To),ue(pm,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),kc=(()=>{class n{constructor(e,i){this._subject=new Le,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=eC(nC(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+ws(i))}normalize(e){return n.stripTrailingSlash(function yO(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,nC(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._platformStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ws(i)),r)}replaceState(e,i="",r=null){this._platformStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ws(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=ws,n.joinWithSlash=fm,n.stripTrailingSlash=eC,n.\u0275fac=function(e){return new(e||n)(ue(il),ue(To))},n.\u0275prov=xe({token:n,factory:function(){return function _O(){return new kc(ue(il),ue(To))}()},providedIn:"root"}),n})();function nC(n){return n.replace(/\/index.html$/,"")}function dC(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}let rl=(()=>{class n{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(hc(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${vt(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(V(ns),V(xc),V(nt),V(_s))},n.\u0275dir=De({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class r8{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let rs=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new r8(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),hC(a,r)}});for(let r=0,s=i.length;r{hC(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(V(On),V(kn),V(ns))},n.\u0275dir=De({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function hC(n,t){n.context.$implicit=t.item}let hi=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new s8,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){fC("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){fC("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(V(On),V(kn))},n.\u0275dir=De({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class s8{constructor(){this.$implicit=null,this.ngIf=null}}function fC(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${vt(t)}'.`)}class Mm{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let sl=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new Mm(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(V(On),V(kn),V(sl,9))},n.\u0275dir=De({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),pC=(()=>{class n{constructor(e,i,r){r._addDefault(new Mm(e,i))}}return n.\u0275fac=function(e){return new(e||n)(V(On),V(kn),V(sl,9))},n.\u0275dir=De({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),Em=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,s]=e.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(xc),V(_s))},n.\u0275dir=De({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),Ri=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();const vC="browser";function km(n){return n===vC}let R8=(()=>{class n{}return n.\u0275prov=xe({token:n,providedIn:"root",factory:()=>new O8(ue(Et),window)}),n})();class O8{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function F8(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const s=r.shadowRoot;if(s){const o=s.getElementById(t)||s.querySelector(`[name="${t}"]`);if(o)return o}r=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],r-s[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=_C(this.window.history)||_C(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function _C(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class yC{}class Am extends class P8 extends class hO{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function dO(n){Od||(Od=n)}(new Am)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function N8(){return Ic=Ic||document.querySelector("base"),Ic?Ic.getAttribute("href"):null}();return null==e?null:function L8(n){$d=$d||document.createElement("a"),$d.setAttribute("href",n);const t=$d.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Ic=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return dC(document.cookie,t)}}let $d,Ic=null;const bC=new Ie("TRANSITION_ID"),V8=[{provide:Td,useFactory:function B8(n,t,e){return()=>{e.get(em).donePromise.then(()=>{const i=is(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s{const s=t.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},vn.getAllAngularTestabilities=()=>t.getAllTestabilities(),vn.getAllAngularRootElements=()=>t.getAllRootElements(),vn.frameworkStabilizers||(vn.frameworkStabilizers=[]),vn.frameworkStabilizers.push(i=>{const r=vn.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(d){o=o||d,s--,0==s&&i(o)};r.forEach(function(d){d.whenStable(a)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?is().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let H8=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const Gd=new Ie("EventManagerPlugins");let Wd=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let s=0;s{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),Rc=(()=>{class n extends CC{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(DC),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(DC))}}return n.\u0275fac=function(e){return new(e||n)(ue(Et))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();function DC(n){is().remove(n)}const Im={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Rm=/%COMP%/g;function Yd(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let qd=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Om(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Sr.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new W8(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Sr.ShadowDom:return new Y8(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Yd(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(ue(Wd),ue(Rc),ue(Ec))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();class Om{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(Im[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const s=Im[r];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=Im[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(Qi.DashCase|Qi.Important)?t.style.setProperty(e,i,r&Qi.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Qi.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,SC(i)):this.eventManager.addEventListener(t,e,SC(i))}}class W8 extends Om{constructor(t,e,i,r){super(t),this.component=i;const s=Yd(r+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr=function U8(n){return"_ngcontent-%COMP%".replace(Rm,n)}(r+"-"+i.id),this.hostAttr=function $8(n){return"_nghost-%COMP%".replace(Rm,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class Y8 extends Om{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Yd(r.id,r.styles,[]);for(let o=0;o{class n extends wC{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(ue(Et))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const kC=["alt","control","meta","shift"],X8={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},AC={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Q8={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let Z8=(()=>{class n extends wC{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>is().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(kC.forEach(d=>{const C=i.indexOf(d);C>-1&&(i.splice(C,1),o+=d+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(e){let i="",r=function J8(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&AC.hasOwnProperty(t)&&(t=AC[t]))}return X8[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),kC.forEach(s=>{s!=r&&Q8[s](e)&&(i+=s+".")}),i+=r,i}static eventCallback(e,i,r){return s=>{n.getEventFullKey(s)===e&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(ue(Et))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const iF=L2(lO,"browser",[{provide:nl,useValue:vC},{provide:A2,useValue:function eF(){Am.makeCurrent(),Tm.init()},multi:!0},{provide:Et,useFactory:function nF(){return function yk(n){e0=n}(document),document},deps:[]}]),rF=[{provide:gp,useValue:"root"},{provide:Hs,useFactory:function tF(){return new Hs},deps:[]},{provide:Gd,useClass:q8,multi:!0,deps:[Et,ct,nl]},{provide:Gd,useClass:Z8,multi:!0,deps:[Et]},{provide:qd,useClass:qd,deps:[Wd,Rc,Ec]},{provide:bc,useExisting:qd},{provide:CC,useExisting:Rc},{provide:Rc,useClass:Rc,deps:[Et]},{provide:sm,useClass:sm,deps:[ct]},{provide:Wd,useClass:Wd,deps:[Gd,ct]},{provide:yC,useClass:H8,deps:[]}];let TC=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:Ec,useValue:e.appId},{provide:bC,useExisting:Ec},V8]}}}return n.\u0275fac=function(e){return new(e||n)(ue(n,12))},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:rF,imports:[Ri,cO]}),n})();"undefined"!=typeof window&&window;let Pm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:function(e){let i=null;return i=e?new(e||n):ue(OC),i},providedIn:"root"}),n})(),OC=(()=>{class n extends Pm{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case dn.NONE:return i;case dn.HTML:return qr(i,"HTML")?Xi(i):L1(this._doc,String(i)).toString();case dn.STYLE:return qr(i,"Style")?Xi(i):i;case dn.SCRIPT:if(qr(i,"Script"))return Xi(i);throw new Error("unsafe value used in a script context");case dn.URL:return A1(i),qr(i,"URL")?Xi(i):ic(String(i));case dn.RESOURCE_URL:if(qr(i,"ResourceURL"))return Xi(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function IA(n){return new SA(n)}(e)}bypassSecurityTrustStyle(e){return function RA(n){return new xA(n)}(e)}bypassSecurityTrustScript(e){return function OA(n){return new kA(n)}(e)}bypassSecurityTrustUrl(e){return function FA(n){return new AA(n)}(e)}bypassSecurityTrustResourceUrl(e){return function PA(n){return new TA(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(ue(Et))},n.\u0275prov=xe({token:n,factory:function(e){let i=null;return i=e?new e:function pF(n){return new OC(n.get(Et))}(ue(Dn)),i},providedIn:"root"}),n})();var Kd=M(9186);function ht(n){return null!=n&&"false"!=`${n}`}function gr(n,t=0){return FC(n)?Number(n):t}function FC(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Xd(n){return Array.isArray(n)?n:[n]}function Kn(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Ds(n){return n instanceof nt?n.nativeElement:n}function PC(n,t=/\s+/){const e=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(t);for(const r of i){const s=`${r}`.trim();s&&e.push(s)}}return e}class mF extends h{notifyNext(t,e,i,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class gF extends h{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function vF(n,t,e,i,r=new gF(n,e,i)){if(!r.closed)return t instanceof j?t.subscribe(r):Fe(t)(r)}const NC={};function Oc(...n){let t,e;return z(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&c(n[0])&&(n=n[0]),Ce(n,e).lift(new _F(t))}class _F{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new yF(t,this.resultSelector))}}class yF extends mF{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(NC),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),Ys=new j(n=>n.complete());function Qd(n){return n?function wF(n){return new j(t=>n.schedule(()=>t.complete()))}(n):Ys}function ln(n){return t=>0===n?Qd():t.lift(new CF(n))}class CF{constructor(t){if(this.total=t,this.total<0)throw new LC}call(t,e){return e.subscribe(new DF(t,this.total))}}class DF extends h{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function BC(n){return t=>t.lift(new MF(n))}class MF{constructor(t){this.total=t}call(t,e){return e.subscribe(new EF(t,this.total))}}class EF extends h{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}class SF extends y{constructor(t,e){super()}schedule(t,e=0){return this}}class Zd extends SF{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let VC=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class Vr extends VC{constructor(t,e=VC.now){super(t,()=>Vr.delegate&&Vr.delegate!==this?Vr.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Vr.delegate&&Vr.delegate!==this?Vr.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const ol=new Vr(Zd);function Pc(n,t=ol){return e=>e.lift(new xF(n,t))}class xF{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new kF(t,this.dueTime,this.scheduler))}}class kF extends h{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(AF,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function AF(n){n.debouncedNext()}function jn(...n){const t=n[n.length-1];return z(t)?(n.pop(),e=>Fc(n,e,t)):e=>Fc(n,e)}function Ut(n){return t=>t.lift(new TF(n))}class TF{constructor(t){this.notifier=t}call(t,e){const i=new IF(t),r=kt(this.notifier,new ut(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class IF extends Jt{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let Nm;try{Nm="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Nm=!1}let al,$n=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?km(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Nm)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(ue(nl))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const HC=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function jC(){if(al)return al;if("object"!=typeof document||!document)return al=new Set(HC),al;let n=document.createElement("input");return al=new Set(HC.filter(t=>(n.setAttribute("type",t),n.type===t))),al}let Nc,Jd,Io,Lm;function ll(n){return function RF(){if(null==Nc&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Nc=!0}))}finally{Nc=Nc||!1}return Nc}()?n:!!n.capture}function zC(){if(null==Io){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Io=!1,Io;if("scrollBehavior"in document.documentElement.style)Io=!0;else{const n=Element.prototype.scrollTo;Io=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Io}function Lc(){if("object"!=typeof document||!document)return 0;if(null==Jd){const n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",n.appendChild(e),document.body.appendChild(n),Jd=0,0===n.scrollLeft&&(n.scrollLeft=1,Jd=0===n.scrollLeft?1:2),n.remove()}return Jd}function Bc(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function qs(n){return n.composedPath?n.composedPath()[0]:n.target}function Bm(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}let PF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();const UC=new Set;let cl,NF=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):BF}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function LF(n){if(!UC.has(n))try{cl||(cl=document.createElement("style"),cl.setAttribute("type","text/css"),document.head.appendChild(cl)),cl.sheet&&(cl.sheet.insertRule(`@media ${n} {body{ }}`,0),UC.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(ue($n))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function BF(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let Vm=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new U}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return $C(Xd(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let s=Oc($C(Xd(e)).map(o=>this._registerQuery(o).observable));return s=Fc(s.pipe(ln(1)),s.pipe(BC(1),Pc(0))),s.pipe(L(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:d,query:C})=>{a.matches=a.matches||d,a.breakpoints[C]=d}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),s={observable:new j(o=>{const a=d=>this._zone.run(()=>o.next(d));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(jn(i),L(({matches:o})=>({query:e,matches:o})),Ut(this._destroySubject)),mql:i};return this._queries.set(e,s),s}}return n.\u0275fac=function(e){return new(e||n)(ue(NF),ue(ct))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function $C(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function Hr(n,t,e,i){return A(e)&&(i=e,e=void 0),i?Hr(n,t,e).pipe(L(r=>c(r)?i(...r):i(r))):new j(r=>{WC(n,t,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,e)})}function WC(n,t,e,i,r){let s;if(function jF(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(t,e,r),s=()=>o.removeEventListener(t,e,r)}else if(function HF(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(t,e),s=()=>o.off(t,e)}else if(function VF(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(t,e),s=()=>o.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let GF=1;const WF=Promise.resolve(),eh={};function YC(n){return n in eh&&(delete eh[n],!0)}const qC={setImmediate(n){const t=GF++;return eh[t]=!0,WF.then(()=>YC(t)&&n()),t},clearImmediate(n){YC(n)}},Hm=new class qF extends Vr{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=qC.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(qC.clearImmediate(e),t.scheduled=void 0)}});function jm(n){return!!n&&(n instanceof j||"function"==typeof n.lift&&"function"==typeof n.subscribe)}function Vc(n,t){return e=>e.lift(new KF(n,t))}class KF{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new XF(t,this.compare,this.keySelector))}}class XF extends h{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}class ZF{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new JF(t,this.durationSelector))}}class JF extends Jt{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=kt(e,new ut(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function zm(n){return!c(n)&&n-parseFloat(n)+1>=0}function KC(n=0,t,e){let i=-1;return zm(t)?i=Number(t)<1?1:Number(t):z(t)&&(e=t),z(e)||(e=ol),new j(r=>{const s=zm(n)?n:+n-e.now();return e.schedule(eP,s,{index:0,period:i,subscriber:r})})}function eP(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}function Um(n,t=ol){return function QF(n){return function(e){return e.lift(new ZF(n))}}(()=>KC(n,t))}function $t(n,t){return function(i){return i.lift(new tP(n,t))}}class tP{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new nP(t,this.predicate,this.thisArg))}}class nP extends h{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class rP{call(t,e){return e.subscribe(new sP(t))}}class sP extends h{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}function Xn(n,t){return"function"==typeof t?e=>e.pipe(Xn((i,r)=>Re(n(i,r)).pipe(L((s,o)=>t(i,s,r,o))))):e=>e.lift(new oP(n))}class oP{constructor(t){this.project=t}call(t,e){return e.subscribe(new aP(t,this.project))}}class aP extends Jt{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new ut(this),r=this.destination;r.add(i),this.innerSubscription=kt(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const uP=new class cP extends Vr{}(class lP extends Zd{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}});function Ro(n,t){return new j(t?e=>t.schedule(dP,0,{error:n,subscriber:e}):e=>e.error(n))}function dP({error:n,subscriber:t}){t.error(n)}class Hi{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Qe(this.value);case"E":return Ro(this.error);case"C":return Qd()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new Hi("N",t):Hi.undefinedValueNotification}static createError(t){return new Hi("E",void 0,t)}static createComplete(){return Hi.completeNotification}}Hi.completeNotification=new Hi("C"),Hi.undefinedValueNotification=new Hi("N",void 0);class th extends h{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(th.dispatch,this.delay,new fP(t,this.destination)))}_next(t){this.scheduleMessage(Hi.createNext(t))}_error(t){this.scheduleMessage(Hi.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Hi.createComplete()),this.unsubscribe()}}class fP{constructor(t,e){this.notification=t,this.destination=e}}class Oo extends U{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new pP(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new W;if(this.isStopped||this.hasError?o=y.EMPTY:(this.observers.push(t),o=new q(this,t)),r&&t.add(t=new th(t,r)),e)for(let a=0;ae&&(o=Math.max(o,s-e)),o>0&&r.splice(0,o),r}}class pP{constructor(t,e){this.time=t,this.value=e}}const vP=new Ie("cdk-dir-doc",{providedIn:"root",factory:function _P(){return ec(Et)}}),yP=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let fi=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new Le,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function bP(n){const t=(null==n?void 0:n.toLowerCase())||"";return"auto"===t&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?yP.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(ue(vP,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();class XC{}function nh(n){return n&&"function"==typeof n.connect}class wP extends XC{constructor(t){super(),this._data=t}connect(){return jm(this._data)?this._data:Qe(this._data)}disconnect(){}}class QC{applyChanges(t,e,i,r,s){t.forEachOperation((o,a,d)=>{let C,k;if(null==o.previousIndex){const N=i(o,a,d);C=e.createEmbeddedView(N.templateRef,N.context,N.index),k=1}else null==d?(e.remove(a),k=3):(C=e.get(a),e.move(C,d),k=2);s&&s({context:null==C?void 0:C.context,operation:k,record:o})})}detach(){}}class $m{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,i,r,s){t.forEachOperation((o,a,d)=>{let C,k;null==o.previousIndex?(C=this._insertView(()=>i(o,a,d),d,e,r(o)),k=C?1:0):null==d?(this._detachAndCacheView(a,e),k=3):(C=this._moveView(a,d,e,r(o)),k=2),s&&s({context:null==C?void 0:C.context,operation:k,record:o})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,i,r){const s=this._insertViewFromCache(e,i);if(s)return void(s.context.$implicit=r);const o=t();return i.createEmbeddedView(o.templateRef,o.context,o.index)}_detachAndCacheView(t,e){const i=e.detach(t);this._maybeCacheView(i,e)}_moveView(t,e,i,r){const s=i.get(t);return i.move(s,e),s.context.$implicit=r,s}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let ZC=(()=>{class n{constructor(){this._listeners=[]}notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Fo=new Ie("_ViewRepeater"),CP=["contentWrapper"],DP=["*"],JC=new Ie("VIRTUAL_SCROLL_STRATEGY");let ul=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new U,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new j(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Um(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Qe()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe($t(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Ds(i),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Hr(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(ue(ct),ue($n),ue(Et,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ks=(()=>{class n{constructor(e,i,r,s){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=s,this._destroyed=new U,this._elementScrolled=new j(o=>this.ngZone.runOutsideAngular(()=>Hr(this.elementRef.nativeElement,"scroll").pipe(Ut(this._destroyed)).subscribe(o)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&0!=Lc()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==Lc()?e.left=e.right:1==Lc()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;zC()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",r="right",s=this.elementRef.nativeElement;if("top"==e)return s.scrollTop;if("bottom"==e)return s.scrollHeight-s.clientHeight-s.scrollTop;const o=this.dir&&"rtl"==this.dir.value;return"start"==e?e=o?r:i:"end"==e&&(e=o?i:r),o&&2==Lc()?e==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:o&&1==Lc()?e==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:e==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(ul),V(ct),V(fi,8))},n.\u0275dir=De({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),Po=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new U,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Um(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(ue($n),ue(ct),ue(Et,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const kP="undefined"!=typeof requestAnimationFrame?$F:Hm;let eD=(()=>{class n extends Ks{constructor(e,i,r,s,o,a,d){super(e,a,r,o),this.elementRef=e,this._changeDetectorRef=i,this._scrollStrategy=s,this._detachedSubject=new U,this._renderedRangeSubject=new U,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new j(C=>this._scrollStrategy.scrolledIndexChange.subscribe(k=>Promise.resolve().then(()=>this.ngZone.run(()=>C.next(k))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=y.EMPTY,this._viewportChanges=d.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=ht(e)}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe(jn(null),Um(0,kP)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(Ut(this._detachedSubject)).subscribe(i=>{const r=i.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function xP(n,t){return n.start==t.start&&n.end==t.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,i="to-start"){const s="horizontal"==this.orientation,o=s?"X":"Y";let d=`translate${o}(${Number((s&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e=this.appendOnly&&"to-start"===i?0:e,"to-end"===i&&(d+=` translate${o}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=d&&(this._renderedContentTransform=d,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,i="auto"){const r={behavior:i};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollTo(r)}scrollToIndex(e,i="auto"){this._scrollStrategy.scrollToIndex(e,i)}measureScrollOffset(e){return super.measureScrollOffset(e||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const e=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?e.clientWidth:e.clientHeight}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const i of e)i()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(an),V(ct),V(JC,8),V(fi,8),V(ul),V(Po))},n.\u0275cmp=Ge({type:n,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,i){if(1&e&&jt(CP,7),2&e){let r;He(r=je())&&(i._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,i){2&e&&Nt("cdk-virtual-scroll-orientation-horizontal","horizontal"===i.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==i.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[lt([{provide:Ks,useExisting:n}]),Pe],ngContentSelectors:DP,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,i){1&e&&(mn(),oe(0,"div",0,1),bt(2),le(),yt(3,"div",2)),2&e&&(he(3),Ai("width",i._totalContentWidth)("height",i._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),n})();function tD(n,t,e){if(!e.getBoundingClientRect)return 0;const r=e.getBoundingClientRect();return"horizontal"===n?"start"===t?r.left:r.right:"start"===t?r.top:r.bottom}let AP=(()=>{class n{constructor(e,i,r,s,o,a){this._viewContainerRef=e,this._template=i,this._differs=r,this._viewRepeater=s,this._viewport=o,this.viewChange=new U,this._dataSourceChanges=new U,this.dataStream=this._dataSourceChanges.pipe(jn(null),function iP(){return n=>n.lift(new rP)}(),Xn(([d,C])=>this._changeDataSource(d,C)),function mP(n,t,e){let i;return i=n&&"object"==typeof n?n:{bufferSize:n,windowTime:t,refCount:!1,scheduler:e},r=>r.lift(function gP({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:e,scheduler:i}){let r,o,s=0,a=!1,d=!1;return function(k){let N;s++,!r||a?(a=!1,r=new Oo(n,t,i),N=r.subscribe(this),o=k.subscribe({next(G){r.next(G)},error(G){a=!0,r.error(G)},complete(){d=!0,o=void 0,r.complete()}}),d&&(o=void 0)):N=r.subscribe(this),this.add(()=>{s--,N.unsubscribe(),N=void 0,o&&!d&&e&&0===s&&(o.unsubscribe(),o=void 0,r=void 0)})}}(i))}(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new U,this.dataStream.subscribe(d=>{this._data=d,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(Ut(this._destroyed)).subscribe(d=>{this._renderedRange=d,this.viewChange.observers.length&&a.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,nh(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new wP(jm(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(i,r)=>e(i+(this._renderedRange?this._renderedRange.start:0),r):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=gr(e)}measureRangeSize(e,i){if(e.start>=e.end)return 0;const r=e.start-this._renderedRange.start,s=e.end-e.start;let o,a;for(let d=0;d-1;d--){const C=this._viewContainerRef.get(d+r);if(C&&C.rootNodes.length){a=C.rootNodes[C.rootNodes.length-1];break}}return o&&a?tD(i,"end",a)-tD(i,"start",o):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,i)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,i):i)),this._needsUpdate=!0)}_changeDataSource(e,i){return e&&e.disconnect(this),this._needsUpdate=!0,i?i.connect(this):Qe()}_updateContext(){const e=this._data.length;let i=this._viewContainerRef.length;for(;i--;){const r=this._viewContainerRef.get(i);r.context.index=this._renderedRange.start+i,r.context.count=e,this._updateComputedContextProperties(r.context),r.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(s,o,a)=>this._getEmbeddedViewArgs(s,a),s=>s.item),e.forEachIdentityChange(s=>{this._viewContainerRef.get(s.currentIndex).context.$implicit=s.item});const i=this._data.length;let r=this._viewContainerRef.length;for(;r--;){const s=this._viewContainerRef.get(r);s.context.index=this._renderedRange.start+r,s.context.count=i,this._updateComputedContextProperties(s.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,i){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:i}}}return n.\u0275fac=function(e){return new(e||n)(V(On),V(kn),V(ns),V(Fo),V(eD,4),V(ct))},n.\u0275dir=De({type:n,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[lt([{provide:Fo,useClass:$m}])]}),n})(),Xs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})(),ih=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Hc,Xs],Hc,Xs]}),n})();function dl(n,t){return Rt(n,t,1)}class nD{}class iD{}class Ms{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),s=r.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Ms?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Ms;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Ms?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class TP{encodeKey(t){return rD(t)}encodeValue(t){return rD(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const RP=/%(\d[a-f0-9])/gi,OP={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function rD(n){return encodeURIComponent(n).replace(RP,(t,e)=>{var i;return null!==(i=OP[e])&&void 0!==i?i:t})}function sD(n){return`${n}`}class Qs{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new TP,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function IP(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,s)),t.decodeValue(r.slice(s+1))],d=e.get(o)||[];d.push(a),e.set(o,d)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(s=>{e.push({param:i,value:s,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Qs({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(sD(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(sD(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class FP{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function oD(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function aD(n){return"undefined"!=typeof Blob&&n instanceof Blob}function lD(n){return"undefined"!=typeof FormData&&n instanceof FormData}class jc{constructor(t,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function PP(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Ms),this.context||(this.context=new FP),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":aG.set(X,t.setHeaders[X]),C)),t.setParams&&(k=Object.keys(t.setParams).reduce((G,X)=>G.set(X,t.setParams[X]),k)),new jc(i,r,o,{params:k,headers:C,context:N,reportProgress:d,responseType:s,withCredentials:a})}}var Qn=(()=>((Qn=Qn||{})[Qn.Sent=0]="Sent",Qn[Qn.UploadProgress=1]="UploadProgress",Qn[Qn.ResponseHeader=2]="ResponseHeader",Qn[Qn.DownloadProgress=3]="DownloadProgress",Qn[Qn.Response=4]="Response",Qn[Qn.User=5]="User",Qn))();class Wm{constructor(t,e=200,i="OK"){this.headers=t.headers||new Ms,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Ym extends Wm{constructor(t={}){super(t),this.type=Qn.ResponseHeader}clone(t={}){return new Ym({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class rh extends Wm{constructor(t={}){super(t),this.type=Qn.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new rh({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class cD extends Wm{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function qm(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let hl=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof jc)s=e;else{let d,C;d=r.headers instanceof Ms?r.headers:new Ms(r.headers),r.params&&(C=r.params instanceof Qs?r.params:new Qs({fromObject:r.params})),s=new jc(e,i,void 0!==r.body?r.body:null,{headers:d,context:r.context,params:C,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=Qe(s).pipe(dl(d=>this.handler.handle(d)));if(e instanceof jc||"events"===r.observe)return o;const a=o.pipe($t(d=>d instanceof rh));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(L(d=>{if(null!==d.body&&!(d.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return d.body}));case"blob":return a.pipe(L(d=>{if(null!==d.body&&!(d.body instanceof Blob))throw new Error("Response is not a Blob.");return d.body}));case"text":return a.pipe(L(d=>{if(null!==d.body&&"string"!=typeof d.body)throw new Error("Response is not a string.");return d.body}));default:return a.pipe(L(d=>d.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Qs).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,qm(r,i))}post(e,i,r={}){return this.request("POST",e,qm(r,i))}put(e,i,r={}){return this.request("PUT",e,qm(r,i))}}return n.\u0275fac=function(e){return new(e||n)(ue(nD))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();class uD{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const dD=new Ie("HTTP_INTERCEPTORS");let LP=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const BP=/^\)\]\}',?\n/;let hD=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new j(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((X,re)=>r.setRequestHeader(X,re.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const X=e.detectContentTypeHeader();null!==X&&r.setRequestHeader("Content-Type",X)}if(e.responseType){const X=e.responseType.toLowerCase();r.responseType="json"!==X?X:"text"}const s=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const X=r.statusText||"OK",re=new Ms(r.getAllResponseHeaders()),de=function VP(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return o=new Ym({headers:re,status:r.status,statusText:X,url:de}),o},d=()=>{let{headers:X,status:re,statusText:de,url:ve}=a(),Me=null;204!==re&&(Me=void 0===r.response?r.responseText:r.response),0===re&&(re=Me?200:0);let pe=re>=200&&re<300;if("json"===e.responseType&&"string"==typeof Me){const Ne=Me;Me=Me.replace(BP,"");try{Me=""!==Me?JSON.parse(Me):null}catch(it){Me=Ne,pe&&(pe=!1,Me={error:it,text:Me})}}pe?(i.next(new rh({body:Me,headers:X,status:re,statusText:de,url:ve||void 0})),i.complete()):i.error(new cD({error:Me,headers:X,status:re,statusText:de,url:ve||void 0}))},C=X=>{const{url:re}=a(),de=new cD({error:X,status:r.status||0,statusText:r.statusText||"Unknown Error",url:re||void 0});i.error(de)};let k=!1;const N=X=>{k||(i.next(a()),k=!0);let re={type:Qn.DownloadProgress,loaded:X.loaded};X.lengthComputable&&(re.total=X.total),"text"===e.responseType&&!!r.responseText&&(re.partialText=r.responseText),i.next(re)},G=X=>{let re={type:Qn.UploadProgress,loaded:X.loaded};X.lengthComputable&&(re.total=X.total),i.next(re)};return r.addEventListener("load",d),r.addEventListener("error",C),r.addEventListener("timeout",C),r.addEventListener("abort",C),e.reportProgress&&(r.addEventListener("progress",N),null!==s&&r.upload&&r.upload.addEventListener("progress",G)),r.send(s),i.next({type:Qn.Sent}),()=>{r.removeEventListener("error",C),r.removeEventListener("abort",C),r.removeEventListener("load",d),r.removeEventListener("timeout",C),e.reportProgress&&(r.removeEventListener("progress",N),null!==s&&r.upload&&r.upload.removeEventListener("progress",G)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(ue(yC))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const Km=new Ie("XSRF_COOKIE_NAME"),Xm=new Ie("XSRF_HEADER_NAME");class fD{}let HP=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=dC(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(ue(Et),ue(nl),ue(Km))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),Qm=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const s=this.tokenService.getToken();return null!==s&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,s)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(ue(fD),ue(Xm))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),jP=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(dD,[]);this.chain=i.reduceRight((r,s)=>new uD(r,s),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(ue(iD),ue(Dn))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),zP=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:Qm,useClass:LP}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:Km,useValue:e.cookieName}:[],e.headerName?{provide:Xm,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[Qm,{provide:dD,useExisting:Qm,multi:!0},{provide:fD,useClass:HP},{provide:Km,useValue:"XSRF-TOKEN"},{provide:Xm,useValue:"X-XSRF-TOKEN"}]}),n})(),UP=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[hl,{provide:nD,useClass:jP},hD,{provide:iD,useExisting:hD}],imports:[[zP.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),n})();function Zm(...n){if(1===n.length){const t=n[0];if(c(t))return sh(t,null);if(f(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return sh(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return sh(n=1===n.length&&c(n[0])?n[0]:n,null).pipe(L(e=>t(...e)))}return sh(n,null)}function sh(n,t){return new j(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a{C||(C=!0,o++),r[a]=k},error:k=>e.error(k),complete:()=>{s++,(s===i||!C)&&(o===i&&e.next(t?t.reduce((k,N,G)=>(k[N]=r[G],k),{}):r),e.complete())}}))}})}let pD=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(V(_s),V(nt))},n.\u0275dir=De({type:n}),n})(),No=(()=>{class n extends pD{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,features:[Pe]}),n})();const ji=new Ie("NgValueAccessor"),GP={provide:ji,useExisting:Ot(()=>ss),multi:!0},YP=new Ie("CompositionEventMode");let ss=(()=>{class n extends pD{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function WP(){const n=is()?is().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(V(_s),V(nt),V(YP,8))},n.\u0275dir=De({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&Oe("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[lt([GP]),Pe]}),n})();function Zs(n){return null==n||0===n.length}function gD(n){return null!=n&&"number"==typeof n.length}const pi=new Ie("NgValidators"),Js=new Ie("NgAsyncValidators"),qP=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Jm{static min(t){return function vD(n){return t=>{if(Zs(t.value)||Zs(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(Zs(t.value)||Zs(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function yD(n){return Zs(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function bD(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function wD(n){return Zs(n.value)||qP.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function CD(n){return t=>Zs(t.value)||!gD(t.value)?null:t.value.lengthgD(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function MD(n){if(!n)return oh;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(Zs(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return TD(t)}static composeAsync(t){return ID(t)}}function oh(n){return null}function ED(n){return null!=n}function SD(n){const t=pc(n)?Re(n):n;return kp(t),t}function xD(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function kD(n,t){return t.map(e=>e(n))}function AD(n){return n.map(t=>function KP(n){return!n.validate}(t)?t:e=>t.validate(e))}function TD(n){if(!n)return null;const t=n.filter(ED);return 0==t.length?null:function(e){return xD(kD(e,t))}}function eg(n){return null!=n?TD(AD(n)):null}function ID(n){if(!n)return null;const t=n.filter(ED);return 0==t.length?null:function(e){return Zm(kD(e,t).map(SD)).pipe(L(xD))}}function tg(n){return null!=n?ID(AD(n)):null}function RD(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function OD(n){return n._rawValidators}function FD(n){return n._rawAsyncValidators}function ng(n){return n?Array.isArray(n)?n:[n]:[]}function ah(n,t){return Array.isArray(n)?n.includes(t):n===t}function PD(n,t){const e=ng(t);return ng(n).forEach(r=>{ah(e,r)||e.push(r)}),e}function ND(n,t){return ng(t).filter(e=>!ah(n,e))}class LD{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=eg(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=tg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class os extends LD{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Oi extends LD{get formDirective(){return null}get path(){return null}}class BD{constructor(t){this._cd=t}is(t){var e,i,r;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[t])}}let eo=(()=>{class n extends BD{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(V(os,2))},n.\u0275dir=De({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Nt("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[Pe]}),n})(),zc=(()=>{class n extends BD{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(V(Oi,10))},n.\u0275dir=De({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Nt("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))("ng-submitted",i.is("submitted"))},features:[Pe]}),n})();function Uc(n,t){sg(n,t),t.valueAccessor.writeValue(n.value),function i9(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&HD(n,t)})}(n,t),function s9(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function r9(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&HD(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function n9(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function uh(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),hh(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function dh(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function sg(n,t){const e=OD(n);null!==t.validator?n.setValidators(RD(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=FD(n);null!==t.asyncValidator?n.setAsyncValidators(RD(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();dh(t._rawValidators,r),dh(t._rawAsyncValidators,r)}function hh(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=OD(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.validator);s.length!==r.length&&(e=!0,n.setValidators(s))}}if(null!==t.asyncValidator){const r=FD(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.asyncValidator);s.length!==r.length&&(e=!0,n.setAsyncValidators(s))}}}const i=()=>{};return dh(t._rawValidators,i),dh(t._rawAsyncValidators,i),e}function HD(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function jD(n,t){sg(n,t)}function og(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function UD(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function ag(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(s=>{s.constructor===ss?e=s:function l9(n){return Object.getPrototypeOf(n.constructor)===No}(s)?i=s:r=s}),r||i||e||null}function lg(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const $c="VALID",fh="INVALID",fl="PENDING",Gc="DISABLED";function ug(n){return(ph(n)?n.validators:n)||null}function $D(n){return Array.isArray(n)?eg(n):n||null}function dg(n,t){return(ph(t)?t.asyncValidators:n)||null}function GD(n){return Array.isArray(n)?tg(n):n||null}function ph(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const WD=n=>n instanceof Lo,hg=n=>n instanceof pg;function YD(n){return WD(n)?n.value:n.getRawValue()}function qD(n,t){const e=hg(n),i=n.controls;if(!(e?Object.keys(i):i).length)throw new Ke(1e3,"");if(!i[t])throw new Ke(1001,"")}function KD(n,t){hg(n),n._forEachChild((i,r)=>{if(void 0===t[r])throw new Ke(1002,"")})}class fg{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=$D(this._rawValidators),this._composedAsyncValidatorFn=GD(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===$c}get invalid(){return this.status===fh}get pending(){return this.status==fl}get disabled(){return this.status===Gc}get enabled(){return this.status!==Gc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=$D(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=GD(t)}addValidators(t){this.setValidators(PD(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(PD(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(ND(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(ND(t,this._rawAsyncValidators))}hasValidator(t){return ah(this._rawValidators,t)}hasAsyncValidator(t){return ah(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=fl,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Gc,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=$c,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===$c||this.status===fl)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gc:$c}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=fl,this._hasOwnPendingAsyncValidator=!0;const e=SD(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function c9(n,t,e){if(null==t||(Array.isArray(t)||(t=t.split(e)),Array.isArray(t)&&0===t.length))return null;let i=n;return t.forEach(r=>{i=hg(i)?i.controls.hasOwnProperty(r)?i.controls[r]:null:(n=>n instanceof d9)(i)&&i.at(r)||null}),i}(this,t,".")}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Le,this.statusChanges=new Le}_calculateStatus(){return this._allControlsDisabled()?Gc:this.errors?fh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(fl)?fl:this._anyControlsHaveStatus(fh)?fh:$c}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ph(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Lo extends fg{constructor(t=null,e,i){super(ug(e),dg(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ph(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){lg(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){lg(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class pg extends fg{constructor(t,e,i){super(ug(e),dg(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){KD(this,t),Object.keys(t).forEach(i=>{qD(this,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=YD(e),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class d9 extends fg{constructor(t,e,i){super(ug(e),dg(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){KD(this,t),t.forEach((i,r)=>{qD(this,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>YD(t))}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const h9={provide:Oi,useExisting:Ot(()=>Es)},Wc=(()=>Promise.resolve(null))();let Es=(()=>{class n extends Oi{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new Le,this.form=new pg({},eg(e),tg(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Wc.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Uc(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Wc.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Wc.then(()=>{const i=this._findContainer(e.path),r=new pg({});jD(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Wc.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Wc.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,UD(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(V(pi,10),V(Js,10))},n.\u0275dir=De({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&Oe("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[lt([h9]),Pe]}),n})();const p9={provide:os,useExisting:Ot(()=>Bo)},ZD=(()=>Promise.resolve(null))();let Bo=(()=>{class n extends os{constructor(e,i,r,s,o){super(),this._changeDetectorRef=o,this.control=new Lo,this._registered=!1,this.update=new Le,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=ag(0,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),og(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Uc(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){ZD.then(()=>{var i;this.control.setValue(e,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=""===i||i&&"false"!==i;ZD.then(()=>{var s;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(s=this._changeDetectorRef)||void 0===s||s.markForCheck()})}_getPath(e){return this._parent?function ch(n,t){return[...t.path,n]}(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(V(Oi,9),V(pi,10),V(Js,10),V(ji,10),V(an,8))},n.\u0275dir=De({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[lt([p9]),Pe,on]}),n})(),Yc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const m9={provide:ji,useExisting:Ot(()=>mg),multi:!0};let mg=(()=>{class n extends No{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&Oe("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[lt([m9]),Pe]}),n})(),JD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();const gg=new Ie("NgModelWithFormControlWarning"),y9={provide:os,useExisting:Ot(()=>mh)};let mh=(()=>{class n extends os{constructor(e,i,r,s){super(),this._ngModelWarningConfig=s,this.update=new Le,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=ag(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&uh(i,this,!1),Uc(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}og(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&uh(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(V(pi,10),V(Js,10),V(ji,10),V(gg,8))},n.\u0275dir=De({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[lt([y9]),Pe,on]}),n})();const b9={provide:Oi,useExisting:Ot(()=>qc)};let qc=(()=>{class n extends Oi{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Le,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(hh(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Uc(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){uh(e.control||null,e,!1),lg(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,UD(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(uh(i||null,e),WD(r)&&(Uc(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);jD(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function o9(n,t){return hh(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){sg(this.form,this),this._oldForm&&hh(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(V(pi,10),V(Js,10))},n.\u0275dir=De({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&Oe("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[lt([b9]),Pe,on]}),n})(),m3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[JD]]}),n})(),V9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[m3]}),n})(),H9=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:gg,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[m3]}),n})();class oi extends U{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new W;return this._value}next(t){super.next(this._value=t)}}function ai(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function Ss(){}function ri(n,t,e){return function(r){return r.lift(new K9(n,t,e))}}class K9{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new X9(t,this.nextOrObserver,this.error,this.complete))}}class X9 extends h{constructor(t,e,i,r){super(t),this._tapNext=Ss,this._tapError=Ss,this._tapComplete=Ss,this._tapError=i||Ss,this._tapComplete=r||Ss,A(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Ss,this._tapError=e.error||Ss,this._tapComplete=e.complete||Ss)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}let v3=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Q9=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Ds(e);return new j(r=>{const o=this._observeElement(i).subscribe(r);return()=>{o.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new U,r=this._mutationObserverFactory.create(s=>i.next(s));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(ue(v3))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Z9=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Le,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ht(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=gr(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Pc(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(V(Q9),V(nt),V(ct))},n.\u0275dir=De({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),_3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[v3]}),n})();function _h(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const b3="cdk-describedby-message",yh="cdk-describedby-host";let w3=0,t7=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+w3++,this._document=e}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const s=Dg(i,r);"string"!=typeof i?(C3(i),this._messageRegistry.set(s,{messageElement:i,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,s)||this._addMessageReference(e,s)}removeDescription(e,i,r){var s;if(!i||!this._isElementNode(e))return;const o=Dg(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===(null===(s=this._messagesContainer)||void 0===s?void 0:s.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const i=this._document.querySelectorAll(`[${yh}="${this._id}"]`);for(let r=0;r0!=r.indexOf(b3));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function J9(n,t,e){const i=_h(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(yh,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function e7(n,t,e){const r=_h(n,t).filter(s=>s!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(yh)}_isElementDescribedByMessage(e,i){const r=_h(e,"aria-describedby"),s=this._messageRegistry.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=e.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(ue(Et),ue($n))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Dg(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function C3(n){n.id||(n.id=`${b3}-${w3++}`)}class D3{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new U,this._typeaheadSubscription=y.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new U,this.change=new U,t instanceof xo&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ri(e=>this._pressedLetters.push(e)),Pc(t),$t(()=>this._pressedLetters.length>0),L(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||ai(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),r=e[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof xo?this._items.toArray():this._items}}class M3 extends D3{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class E3 extends D3{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Mg=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function i7(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function n7(n){try{return n.frameElement}catch(t){return null}}(function d7(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===x3(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),s=x3(e);return e.hasAttribute("contenteditable")?-1!==s:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function c7(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==s:"video"===r?-1!==s&&(null!==s||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function u7(n){return!function s7(n){return function a7(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function r7(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function o7(n){return function l7(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||S3(n))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(ue($n))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function S3(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function x3(n){if(!S3(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class h7{constructor(t,e,i,r,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return null==i||i.focus(t),!!i}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let i=0;i=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(ln(1)).subscribe(t)}}let Eg=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new h7(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(ue(Mg),ue(ct),ue(Et))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),f7=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=ht(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=ht(e)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Bc(),this.focusTrap.focusInitialElementWhenReady()}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(Eg),V(Et))},n.\u0275dir=De({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[on]}),n})();function Sg(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function xg(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const p7=new Ie("cdk-input-modality-detector-options"),m7={ignoreKeys:[18,17,224,91,16]},pl=ll({passive:!0,capture:!0});let g7=(()=>{class n{constructor(e,i,r,s){this._platform=e,this._mostRecentTarget=null,this._modality=new oi(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,d;(null===(d=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===d?void 0:d.some(C=>C===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=qs(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Sg(o)?"keyboard":"mouse"),this._mostRecentTarget=qs(o))},this._onTouchstart=o=>{xg(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=qs(o))},this._options=Object.assign(Object.assign({},m7),s),this.modalityDetected=this._modality.pipe(BC(1)),this.modalityChanged=this.modalityDetected.pipe(Vc()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,pl),r.addEventListener("mousedown",this._onMousedown,pl),r.addEventListener("touchstart",this._onTouchstart,pl)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,pl),document.removeEventListener("mousedown",this._onMousedown,pl),document.removeEventListener("touchstart",this._onTouchstart,pl))}}return n.\u0275fac=function(e){return new(e||n)(ue($n),ue(ct),ue(Et),ue(p7,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const v7=new Ie("liveAnnouncerElement",{providedIn:"root",factory:function _7(){return null}}),y7=new Ie("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let kg=(()=>{class n{constructor(e,i,r,s){this._ngZone=i,this._defaultOptions=s,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let s,o;return 1===i.length&&"number"==typeof i[0]?o=i[0]:[s,o]=i,this.clear(),clearTimeout(this._previousTimeout),s||(s=r&&r.politeness?r.politeness:"polite"),null==o&&r&&(o=r.duration),this._liveElement.setAttribute("aria-live",s),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof o&&(this._previousTimeout=setTimeout(()=>this.clear(),o)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,i;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(i=this._currentResolve)||void 0===i||i.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let s=0;s{class n{constructor(e,i,r,s,o){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new U,this._rootNodeFocusAndBlurListener=a=>{const d=qs(a),C="focus"===a.type?this._onFocus:this._onBlur;for(let k=d;k;k=k.parentElement)C.call(this,a,k)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,i=!1){const r=Ds(e);if(!this._platform.isBrowser||1!==r.nodeType)return Qe(null);const s=function FF(n){if(function OF(){if(null==Lm){const n="undefined"!=typeof document?document.head:null;Lm=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Lm}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new U,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Ds(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const s=Ds(e);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,d])=>this._originChanged(a,i,d)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),s=qs(e);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,bh),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,bh)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ut(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,bh),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,bh),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,s)=>{(s===e||r.checkChildren&&s.contains(e))&&i.push([s,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(ue(ct),ue($n),ue(g7),ue(Et,8),ue(b7,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),w7=(()=>{class n{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this.cdkFocusChange=new Le}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>this.cdkFocusChange.emit(i))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(as))},n.\u0275dir=De({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),n})();const A3="cdk-high-contrast-black-on-white",T3="cdk-high-contrast-white-on-black",Ag="cdk-high-contrast-active";let I3=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Ag),e.remove(A3),e.remove(T3),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(Ag),e.add(A3)):2===i&&(e.add(Ag),e.add(T3))}}}return n.\u0275fac=function(e){return new(e||n)(ue($n),ue(Et))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),C7=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(ue(I3))},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[_3]]}),n})();class O3{}const xs="*";function li(n,t){return{type:7,name:n,definitions:t,options:{}}}function wn(n,t=null){return{type:4,styles:t,timings:n}}function F3(n,t=null){return{type:3,steps:n,options:t}}function P3(n,t=null){return{type:2,steps:n,options:t}}function ft(n){return{type:6,styles:n,offset:null}}function fn(n,t,e){return{type:0,name:n,styles:t,options:e}}function ml(n){return{type:5,steps:n}}function gn(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function wh(n=null){return{type:9,options:n}}function Ch(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function N3(n){Promise.resolve(null).then(n)}class Qc{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){N3(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class L3{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const s=this.players.length;0==s?N3(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const nn=!1;function B3(n){return new Ke(3e3,nn)}function iN(){return"undefined"!=typeof window&&void 0!==window.document}function Ig(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ro(n){switch(n.length){case 0:return new Qc;case 1:return n[0];default:return new L3(n)}}function V3(n,t,e,i,r={},s={}){const o=[],a=[];let d=-1,C=null;if(i.forEach(k=>{const N=k.offset,G=N==d,X=G&&C||{};Object.keys(k).forEach(re=>{let de=re,ve=k[re];if("offset"!==re)switch(de=t.normalizePropertyName(de,o),ve){case"!":ve=r[re];break;case xs:ve=s[re];break;default:ve=t.normalizeStyleValue(re,de,ve,o)}X[de]=ve}),G||a.push(X),C=X,d=N}),o.length)throw function W7(n){return new Ke(3502,nn)}();return a}function Rg(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Og(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Og(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Og(e,"destroy",n)))}}function Og(n,t,e){const i=e.totalTime,s=Fg(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function Fg(n,t,e,i,r="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function er(n,t,e){let i;return n instanceof Map?(i=n.get(t),i||n.set(t,i=e)):(i=n[t],i||(i=n[t]=e)),i}function H3(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let Pg=(n,t)=>!1,j3=(n,t,e)=>[],z3=null;function Ng(n){const t=n.parentNode||n.host;return t===z3?null:t}(Ig()||"undefined"!=typeof Element)&&(iN()?(z3=(()=>document.documentElement)(),Pg=(n,t)=>{for(;t;){if(t===n)return!0;t=Ng(t)}return!1}):Pg=(n,t)=>n.contains(t),j3=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let Ho=null,U3=!1;function $3(n){Ho||(Ho=function sN(){return"undefined"!=typeof document?document.body:null}()||{},U3=!!Ho.style&&"WebkitAppearance"in Ho.style);let t=!0;return Ho.style&&!function rN(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Ho.style,!t&&U3&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Ho.style)),t}const G3=Pg,W3=j3;let Y3=(()=>{class n{validateStyleProperty(e){return $3(e)}matchesElement(e,i){return!1}containsElement(e,i){return G3(e,i)}getParentElement(e){return Ng(e)}query(e,i,r){return W3(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],d){return new Qc(r,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),Lg=(()=>{class n{}return n.NOOP=new Y3,n})();const Bg="ng-enter",Mh="ng-leave",Eh="ng-trigger",Sh=".ng-trigger",K3="ng-animating",Vg=".ng-animating";function jo(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Hg(parseFloat(t[1]),t[2])}function Hg(n,t){return"s"===t?1e3*n:n}function xh(n,t,e){return n.hasOwnProperty("duration")?n:function lN(n,t,e){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(B3()),{duration:0,delay:0,easing:""};r=Hg(parseFloat(a[1]),a[2]);const d=a[3];null!=d&&(s=Hg(parseFloat(d),a[4]));const C=a[5];C&&(o=C)}else r=n;if(!e){let a=!1,d=t.length;r<0&&(t.push(function M7(){return new Ke(3100,nn)}()),a=!0),s<0&&(t.push(function E7(){return new Ke(3101,nn)}()),a=!0),a&&t.splice(d,0,B3())}return{duration:r,delay:s,easing:o}}(n,t,e)}function gl(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function so(n,t,e={}){if(t)for(let i in n)e[i]=n[i];else gl(n,e);return e}function Q3(n,t,e){return e?t+":"+e+";":""}function Z3(n){let t="";for(let e=0;e{const r=zg(i);e&&!e.hasOwnProperty(i)&&(e[i]=n.style[r]),n.style[r]=t[i]}),Ig()&&Z3(n))}function zo(n,t){n.style&&(Object.keys(t).forEach(e=>{const i=zg(e);n.style[i]=""}),Ig()&&Z3(n))}function Zc(n){return Array.isArray(n)?1==n.length?n[0]:P3(n):n}const jg=new RegExp("{{\\s*(.+?)\\s*}}","g");function J3(n){let t=[];if("string"==typeof n){let e;for(;e=jg.exec(n);)t.push(e[1]);jg.lastIndex=0}return t}function kh(n,t,e){const i=n.toString(),r=i.replace(jg,(s,o)=>{let a=t[o];return t.hasOwnProperty(o)||(e.push(function x7(n){return new Ke(3003,nn)}()),a=""),a.toString()});return r==i?n:r}function Ah(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const uN=/-+([a-z0-9])/g;function zg(n){return n.replace(uN,(...t)=>t[1].toUpperCase())}function dN(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function tr(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function k7(n){return new Ke(3004,nn)}()}}function eM(n,t){return window.getComputedStyle(n)[t]}function vN(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function _N(n,t,e){if(":"==n[0]){const d=function yN(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof d)return void t.push(d);n=d}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function j7(n){return new Ke(3015,nn)}()),t;const r=i[1],s=i[2],o=i[3];t.push(tM(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&t.push(tM(o,r))}(i,e,t)):e.push(n),e}const Oh=new Set(["true","1"]),Fh=new Set(["false","0"]);function tM(n,t){const e=Oh.has(n)||Fh.has(n),i=Oh.has(t)||Fh.has(t);return(r,s)=>{let o="*"==n||n==r,a="*"==t||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?Oh.has(n):Fh.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?Oh.has(t):Fh.has(t)),o&&a}}const bN=new RegExp("s*:selfs*,?","g");function Ug(n,t,e,i){return new wN(n).build(t,e,i)}class wN{constructor(t){this._driver=t}build(t,e,i){const r=new MN(e);this._resetContextStyleTimingState(r);const s=tr(this,Zc(t),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push(function T7(){return new Ke(3006,nn)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const d=a,C=d.name;C.toString().split(/\s*,\s*/).forEach(k=>{d.name=k,s.push(this.visitState(d,e))}),d.name=C}else if(1==a.type){const d=this.visitTransition(a,e);i+=d.queryCount,r+=d.depCount,o.push(d)}else e.errors.push(function I7(){return new Ke(3007,nn)}())}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(Ph(a)){const d=a;Object.keys(d).forEach(C=>{J3(d[C]).forEach(k=>{o.hasOwnProperty(k)||s.add(k)})})}}),s.size&&(Ah(s.values()),e.errors.push(function R7(n,t){return new Ke(3008,nn)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=tr(this,Zc(t.animation),e);return{type:1,matchers:vN(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Uo(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>tr(this,i,e)),options:Uo(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=i;const a=tr(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:Uo(t.options)}}visitAnimate(t,e){const i=function SN(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return $g(xh(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=$g(0,0,"");return s.dynamic=!0,s.strValue=e,s}const r=xh(e,t);return $g(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:ft({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const C={};i.easing&&(C.easing=i.easing),o=ft(C)}e.currentTime+=i.duration+i.delay;const d=this.visitStyle(o,e);d.isEmptyStep=a,r=d}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(o=>{"string"==typeof o?o==xs?i.push(o):e.errors.push(function O7(n){return new Ke(3002,nn)}()):i.push(o)}):i.push(t.styles);let r=!1,s=null;return i.forEach(o=>{if(Ph(o)){const a=o,d=a.easing;if(d&&(s=d,delete a.easing),!r)for(let C in a)if(a[C].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void e.unsupportedCSSPropertiesFound.add(a);const d=e.collectedStyles[e.currentQuerySelector],C=d[a];let k=!0;C&&(s!=r&&s>=C.startTime&&r<=C.endTime&&(e.errors.push(function F7(n,t,e,i,r){return new Ke(3010,nn)}()),k=!1),s=C.startTime),k&&(d[a]={startTime:s,endTime:r}),e.options&&function cN(n,t,e){const i=t.params||{},r=J3(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(function S7(n){return new Ke(3001,nn)}())})}(o[a],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function P7(){return new Ke(3011,nn)}()),i;let s=0;const o=[];let a=!1,d=!1,C=0;const k=t.steps.map(Me=>{const pe=this._makeStyleAst(Me,e);let Ne=null!=pe.offset?pe.offset:function EN(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(Ph(e)&&e.hasOwnProperty("offset")){const i=e;t=parseFloat(i.offset),delete i.offset}});else if(Ph(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(pe.styles),it=0;return null!=Ne&&(s++,it=pe.offset=Ne),d=d||it<0||it>1,a=a||it0&&s{const Ne=G>0?pe==X?1:G*pe:o[pe],it=Ne*ve;e.currentTime=re+de.delay+it,de.duration=it,this._validateStyleAst(Me,e),Me.offset=Ne,i.styles.push(Me)}),i}visitReference(t,e){return{type:8,animation:tr(this,Zc(t.animation),e),options:Uo(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Uo(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Uo(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function CN(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(bN,"")),n=n.replace(/@\*/g,Sh).replace(/@\w+/g,e=>Sh+"-"+e.substr(1)).replace(/:animating/g,Vg),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,er(e.collectedStyles,e.currentQuerySelector,{});const a=tr(this,Zc(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:Uo(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function V7(){return new Ke(3013,nn)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:xh(t.timings,e.errors,!0);return{type:12,animation:tr(this,Zc(t.animation),e),timings:i,options:null}}}class MN{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Ph(n){return!Array.isArray(n)&&"object"==typeof n}function Uo(n){return n?(n=gl(n)).params&&(n.params=function DN(n){return n?gl(n):null}(n.params)):n={},n}function $g(n,t,e){return{duration:n,delay:t,easing:e}}function Gg(n,t,e,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class Nh{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const AN=new RegExp(":enter","g"),IN=new RegExp(":leave","g");function Wg(n,t,e,i,r,s={},o={},a,d,C=[]){return(new RN).buildKeyframes(n,t,e,i,r,s,o,a,d,C)}class RN{buildKeyframes(t,e,i,r,s,o,a,d,C,k=[]){C=C||new Nh;const N=new Yg(t,e,C,r,s,k,[]);N.options=d,N.currentTimeline.setStyles([o],null,N.errors,d),tr(this,i,N);const G=N.timelines.filter(X=>X.containsAnimation());if(Object.keys(a).length){let X;for(let re=G.length-1;re>=0;re--){const de=G[re];if(de.element===e){X=de;break}}X&&!X.allowOnlyTimelineStyles()&&X.setStyles([a],null,N.errors,d)}return G.length?G.map(X=>X.buildKeyframes()):[Gg(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?jo(i.duration):null,a=null!=i.delay?jo(i.delay):null;return 0!==o&&t.forEach(d=>{const C=e.appendInstructionToTimeline(d,o,a);s=Math.max(s,C.duration+C.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),tr(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Lh);const o=jo(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>tr(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?jo(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),tr(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return xh(e.params?kh(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(d=>{a.forwardTime((d.offset||0)*s),a.setStyles(d.styles,d.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?jo(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Lh);let o=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let d=null;a.forEach((C,k)=>{e.currentQueryIndex=k;const N=e.createSubContext(t.options,C);s&&N.delayNextStep(s),C===e.element&&(d=N.currentTimeline),tr(this,t.animation,N),N.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,N.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),d&&(e.currentTimeline.mergeTimelineCollectedStyles(d),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let d=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":d=a-d;break;case"full":d=i.currentStaggerTime}const k=e.currentTimeline;d&&k.delayNextStep(d);const N=k.currentTime;tr(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-N+(r.startTime-i.currentTimeline.startTime)}}const Lh={};class Yg{constructor(t,e,i,r,s,o,a,d){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Lh,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=d||new Bh(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=jo(i.duration)),null!=i.delay&&(r.delay=jo(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=kh(s[a],o,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,s=new Yg(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Lh,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new ON(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(AN,"."+this._enterClassName)).replace(IN,"."+this._leaveClassName);let C=this._driver.query(this.element,t,1!=i);0!==i&&(C=i<0?C.slice(C.length+i,C.length):C.slice(0,i)),a.push(...C)}return!s&&0==a.length&&o.push(function H7(n){return new Ke(3014,nn)}()),a}}class Bh{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Bh(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||xs,this._currentKeyframe[e]=xs}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},o=function FN(n,t){const e={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(t),i.forEach(s=>{e[s]=xs})):so(r,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const d=kh(o[a],s,i);this._pendingStyles[a]=d,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:xs),this._updateStyle(a,d)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=t[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],r=t._styleSummary[e];(!i||r.time>i.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,d)=>{const C=so(a,!0);Object.keys(C).forEach(k=>{const N=C[k];"!"==N?t.add(k):N==xs&&e.add(k)}),i||(C.offset=d/this.duration),r.push(C)});const s=t.size?Ah(t.values()):[],o=e.size?Ah(e.values()):[];if(i){const a=r[0],d=gl(a);a.offset=0,d.offset=1,r=[a,d]}return Gg(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class ON extends Bh{constructor(t,e,i,r,s,o,a=!1){super(t,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,d=so(t[0],!1);d.offset=0,s.push(d);const C=so(t[0],!1);C.offset=rM(a),s.push(C);const k=t.length-1;for(let N=1;N<=k;N++){let G=so(t[N],!1);G.offset=rM((e+G.offset*i)/o),s.push(G)}i=o,e=0,r="",t=s}return Gg(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function rM(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class qg{}class PN extends qg{normalizePropertyName(t,e){return zg(t)}normalizeStyleValue(t,e,i,r){let s="";const o=i.toString().trim();if(NN[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function A7(n,t){return new Ke(3005,nn)}())}return o+s}}const NN=(()=>function LN(n){const t={};return n.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function sM(n,t,e,i,r,s,o,a,d,C,k,N,G){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:d,preStyleProps:C,postStyleProps:k,totalTime:N,errors:G}}const Kg={};class oM{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function BN(n,t,e,i,r){return n.some(s=>s(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){const r=this._stateStyles["*"],s=this._stateStyles[t],o=r?r.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,r,s,o,a,d,C,k){const N=[],G=this.ast.options&&this.ast.options.params||Kg,re=this.buildStyles(i,a&&a.params||Kg,N),de=d&&d.params||Kg,ve=this.buildStyles(r,de,N),Me=new Set,pe=new Map,Ne=new Map,it="void"===r,Wt={params:Object.assign(Object.assign({},G),de)},An=k?[]:Wg(t,e,this.ast.animation,s,o,re,ve,Wt,C,N);let Pn=0;if(An.forEach(rr=>{Pn=Math.max(rr.duration+rr.delay,Pn)}),N.length)return sM(e,this._triggerName,i,r,it,re,ve,[],[],pe,Ne,Pn,N);An.forEach(rr=>{const sr=rr.element,Pl=er(pe,sr,{});rr.preStyleProps.forEach(Ur=>Pl[Ur]=!0);const Os=er(Ne,sr,{});rr.postStyleProps.forEach(Ur=>Os[Ur]=!0),sr!==e&&Me.add(sr)});const ir=Ah(Me.values());return sM(e,this._triggerName,i,r,it,re,ve,An,ir,pe,Ne,Pn)}}class VN{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i={},r=gl(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let d=o[a];d.length>1&&(d=kh(d,r,e));const C=this.normalizer.normalizePropertyName(a,e);d=this.normalizer.normalizeStyleValue(a,C,d,e),i[C]=d})}}),i}}class jN{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new VN(r.style,r.options&&r.options.params||{},i)}),aM(this.states,"true","1"),aM(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new oM(t,r,this.states))}),this.fallbackTransition=function zN(n,t,e){return new oM(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function aM(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const UN=new Nh;class $N{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],s=Ug(this._driver,e,i,[]);if(i.length)throw function Y7(n){return new Ke(3503,nn)}();this._animations[t]=s}_buildPlayer(t,e,i){const r=t.element,s=V3(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],s=this._animations[t];let o;const a=new Map;if(s?(o=Wg(this._driver,e,s,Bg,Mh,{},{},i,UN,r),o.forEach(k=>{const N=er(a,k.element,{});k.postStyleProps.forEach(G=>N[G]=null)})):(r.push(function q7(){return new Ke(3300,nn)}()),o=[]),r.length)throw function K7(n){return new Ke(3504,nn)}();a.forEach((k,N)=>{Object.keys(k).forEach(G=>{k[G]=this._driver.computeStyle(N,G,xs)})});const C=ro(o.map(k=>{const N=a.get(k.element);return this._buildPlayer(k,{},N)}));return this._playersById[t]=C,C.onDestroy(()=>this.destroy(t)),this.players.push(C),C}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw function X7(n){return new Ke(3301,nn)}();return e}listen(t,e,i,r){const s=Fg(e,"","","");return Rg(this._getPlayer(t),i,s,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const lM="ng-animate-queued",Xg="ng-animate-disabled",KN=[],cM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},XN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},_r="__ng_removed";class Qg{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function eL(n){return null!=n?n:null}(i?t.value:t),i){const s=gl(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Jc="void",Zg=new Qg(Jc);class QN{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,yr(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.hasOwnProperty(e))throw function Q7(n,t){return new Ke(3302,nn)}();if(null==i||0==i.length)throw function Z7(n){return new Ke(3303,nn)}();if(!function tL(n){return"start"==n||"done"==n}(i))throw function J7(n,t){return new Ke(3400,nn)}();const s=er(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};s.push(o);const a=er(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(yr(t,Eh),yr(t,Eh+"-"+e),a[e]=Zg),()=>{this._engine.afterFlush(()=>{const d=s.indexOf(o);d>=0&&s.splice(d,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw function eN(n){return new Ke(3401,nn)}();return e}trigger(t,e,i,r=!0){const s=this._getTrigger(e),o=new Jg(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(yr(t,Eh),yr(t,Eh+"-"+e),this._engine.statesByElement.set(t,a={}));let d=a[e];const C=new Qg(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&d&&C.absorbOptions(d.options),a[e]=C,d||(d=Zg),C.value!==Jc&&d.value===C.value){if(!function rL(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{zo(t,ve),ls(t,Me)})}return}const G=er(this._engine.playersByElement,t,[]);G.forEach(de=>{de.namespaceId==this.id&&de.triggerName==e&&de.queued&&de.destroy()});let X=s.matchTransition(d.value,C.value,t,C.params),re=!1;if(!X){if(!r)return;X=s.fallbackTransition,re=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:X,fromState:d,toState:C,player:o,isFallbackTransition:re}),re||(yr(t,lM),o.onStart(()=>{vl(t,lM)})),o.onDone(()=>{let de=this.players.indexOf(o);de>=0&&this.players.splice(de,1);const ve=this._engine.playersByElement.get(t);if(ve){let Me=ve.indexOf(o);Me>=0&&ve.splice(Me,1)}}),this.players.push(o),G.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Sh,!0);i.forEach(r=>{if(r[_r])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const s=this._engine.statesByElement.get(t),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(d=>{if(o.set(d,s[d].value),this._triggers[d]){const C=this.trigger(t,d,Jc,r);C&&a.push(C)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),i&&ro(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const d=this._triggers[o].fallbackTransition,C=i[o]||Zg,k=new Qg(Jc),N=new Jg(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:d,fromState:C,toState:k,player:N,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const s=t[_r];(!s||s===cM)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){yr(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const d=Fg(s,i.triggerName,i.fromState.value,i.toState.value);d._data=t,Rg(i.player,a.phase,d,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class ZN{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new QN(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const d=r.get(a);if(d){const C=i.indexOf(d);i.splice(C+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,e)){i.splice(a+1,0,t),o=!0;break}o||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const r=Object.keys(i);for(let s=0;s=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),yr(t,Xg)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),vl(t,Xg))}removeNode(t,e,i,r){if(Vh(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,s){this.collectedLeaveElements.push(e),e[_r]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,r,s){return Vh(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Sh,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Vg,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return ro(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const i=t[_r];if(i&&i.setForRemoval){if(t[_r]=cM,i.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}(null===(e=t.classList)||void 0===e?void 0:e.contains(Xg))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?ro(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function tN(n){return new Ke(3402,nn)}()}_flushAnimations(t,e){const i=new Nh,r=[],s=new Map,o=[],a=new Map,d=new Map,C=new Map,k=new Set;this.disabledNodes.forEach(Je=>{k.add(Je);const pt=this.driver.query(Je,".ng-animate-queued",!0);for(let St=0;St{const St=Bg+de++;re.set(pt,St),Je.forEach(un=>yr(un,St))});const ve=[],Me=new Set,pe=new Set;for(let Je=0;JeMe.add(un)):pe.add(pt))}const Ne=new Map,it=hM(G,Array.from(Me));it.forEach((Je,pt)=>{const St=Mh+de++;Ne.set(pt,St),Je.forEach(un=>yr(un,St))}),t.push(()=>{X.forEach((Je,pt)=>{const St=re.get(pt);Je.forEach(un=>vl(un,St))}),it.forEach((Je,pt)=>{const St=Ne.get(pt);Je.forEach(un=>vl(un,St))}),ve.forEach(Je=>{this.processLeaveNode(Je)})});const Wt=[],An=[];for(let Je=this._namespaceList.length-1;Je>=0;Je--)this._namespaceList[Je].drainQueuedTransitions(e).forEach(St=>{const un=St.player,ui=St.element;if(Wt.push(un),this.collectedEnterElements.length){const Pi=ui[_r];if(Pi&&Pi.setForMove){if(Pi.previousTriggersValues&&Pi.previousTriggersValues.has(St.triggerName)){const la=Pi.previousTriggersValues.get(St.triggerName),mo=this.statesByElement.get(St.element);mo&&mo[St.triggerName]&&(mo[St.triggerName].value=la)}return void un.destroy()}}const ds=!N||!this.driver.containsElement(N,ui),or=Ne.get(ui),po=re.get(ui),Nn=this._buildInstruction(St,i,po,or,ds);if(Nn.errors&&Nn.errors.length)return void An.push(Nn);if(ds)return un.onStart(()=>zo(ui,Nn.fromStyles)),un.onDestroy(()=>ls(ui,Nn.toStyles)),void r.push(un);if(St.isFallbackTransition)return un.onStart(()=>zo(ui,Nn.fromStyles)),un.onDestroy(()=>ls(ui,Nn.toStyles)),void r.push(un);const qx=[];Nn.timelines.forEach(Pi=>{Pi.stretchStartingKeyframe=!0,this.disabledNodes.has(Pi.element)||qx.push(Pi)}),Nn.timelines=qx,i.append(ui,Nn.timelines),o.push({instruction:Nn,player:un,element:ui}),Nn.queriedElements.forEach(Pi=>er(a,Pi,[]).push(un)),Nn.preStyleProps.forEach((Pi,la)=>{const mo=Object.keys(Pi);if(mo.length){let ca=d.get(la);ca||d.set(la,ca=new Set),mo.forEach(E_=>ca.add(E_))}}),Nn.postStyleProps.forEach((Pi,la)=>{const mo=Object.keys(Pi);let ca=C.get(la);ca||C.set(la,ca=new Set),mo.forEach(E_=>ca.add(E_))})});if(An.length){const Je=[];An.forEach(pt=>{Je.push(function nN(n,t){return new Ke(3505,nn)}())}),Wt.forEach(pt=>pt.destroy()),this.reportError(Je)}const Pn=new Map,ir=new Map;o.forEach(Je=>{const pt=Je.element;i.has(pt)&&(ir.set(pt,pt),this._beforeAnimationBuild(Je.player.namespaceId,Je.instruction,Pn))}),r.forEach(Je=>{const pt=Je.element;this._getPreviousPlayers(pt,!1,Je.namespaceId,Je.triggerName,null).forEach(un=>{er(Pn,pt,[]).push(un),un.destroy()})});const rr=ve.filter(Je=>pM(Je,d,C)),sr=new Map;dM(sr,this.driver,pe,C,xs).forEach(Je=>{pM(Je,d,C)&&rr.push(Je)});const Os=new Map;X.forEach((Je,pt)=>{dM(Os,this.driver,new Set(Je),d,"!")}),rr.forEach(Je=>{const pt=sr.get(Je),St=Os.get(Je);sr.set(Je,Object.assign(Object.assign({},pt),St))});const Ur=[],Nl=[],Ll={};o.forEach(Je=>{const{element:pt,player:St,instruction:un}=Je;if(i.has(pt)){if(k.has(pt))return St.onDestroy(()=>ls(pt,un.toStyles)),St.disabled=!0,St.overrideTotalTime(un.totalTime),void r.push(St);let ui=Ll;if(ir.size>1){let or=pt;const po=[];for(;or=or.parentNode;){const Nn=ir.get(or);if(Nn){ui=Nn;break}po.push(or)}po.forEach(Nn=>ir.set(Nn,ui))}const ds=this._buildAnimation(St.namespaceId,un,Pn,s,Os,sr);if(St.setRealPlayer(ds),ui===Ll)Ur.push(St);else{const or=this.playersByElement.get(ui);or&&or.length&&(St.parentPlayer=ro(or)),r.push(St)}}else zo(pt,un.fromStyles),St.onDestroy(()=>ls(pt,un.toStyles)),Nl.push(St),k.has(pt)&&r.push(St)}),Nl.forEach(Je=>{const pt=s.get(Je.element);if(pt&&pt.length){const St=ro(pt);Je.setRealPlayer(St)}}),r.forEach(Je=>{Je.parentPlayer?Je.syncPlayerEvents(Je.parentPlayer):Je.destroy()});for(let Je=0;Je!ds.destroyed);ui.length?nL(this,pt,ui):this.processLeaveNode(pt)}return ve.length=0,Ur.forEach(Je=>{this.players.push(Je),Je.onDone(()=>{Je.destroy();const pt=this.players.indexOf(Je);this.players.splice(pt,1)}),Je.play()}),Ur}elementContainsData(t,e){let i=!1;const r=e[_r];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const d=!s||s==Jc;a.forEach(C=>{C.queued||!d&&C.triggerName!=r||o.push(C)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,i){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const d of e.timelines){const C=d.element,k=C!==s,N=er(i,C,[]);this._getPreviousPlayers(C,k,o,a,e.toState).forEach(X=>{const re=X.getRealPlayer();re.beforeDestroy&&re.beforeDestroy(),X.destroy(),N.push(X)})}zo(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,o){const a=e.triggerName,d=e.element,C=[],k=new Set,N=new Set,G=e.timelines.map(re=>{const de=re.element;k.add(de);const ve=de[_r];if(ve&&ve.removedBeforeQueried)return new Qc(re.duration,re.delay);const Me=de!==d,pe=function iL(n){const t=[];return fM(n,t),t}((i.get(de)||KN).map(Pn=>Pn.getRealPlayer())).filter(Pn=>!!Pn.element&&Pn.element===de),Ne=s.get(de),it=o.get(de),Wt=V3(0,this._normalizer,0,re.keyframes,Ne,it),An=this._buildPlayer(re,Wt,pe);if(re.subTimeline&&r&&N.add(de),Me){const Pn=new Jg(t,a,de);Pn.setRealPlayer(An),C.push(Pn)}return An});C.forEach(re=>{er(this.playersByQueriedElement,re.element,[]).push(re),re.onDone(()=>function JN(n,t,e){let i;if(n instanceof Map){if(i=n.get(t),i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}}else if(i=n[t],i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&delete n[t]}return i}(this.playersByQueriedElement,re.element,re))}),k.forEach(re=>yr(re,K3));const X=ro(G);return X.onDestroy(()=>{k.forEach(re=>vl(re,K3)),ls(d,e.toStyles)}),N.forEach(re=>{er(r,re,[]).push(X)}),X}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Qc(t.duration,t.delay)}}class Jg{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Qc,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>Rg(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){er(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Vh(n){return n&&1===n.nodeType}function uM(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function dM(n,t,e,i,r){const s=[];e.forEach(d=>s.push(uM(d)));const o=[];i.forEach((d,C)=>{const k={};d.forEach(N=>{const G=k[N]=t.computeStyle(C,N,r);(!G||0==G.length)&&(C[_r]=XN,o.push(C))}),n.set(C,k)});let a=0;return e.forEach(d=>uM(d,s[a++])),o}function hM(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),s=new Map;function o(a){if(!a)return 1;let d=s.get(a);if(d)return d;const C=a.parentNode;return d=e.has(C)?C:r.has(C)?1:o(C),s.set(a,d),d}return t.forEach(a=>{const d=o(a);1!==d&&e.get(d).push(a)}),e}function yr(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function vl(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function nL(n,t,e){ro(e).onDone(()=>n.processLeaveNode(t))}function fM(n,t){for(let e=0;er.add(s)):t.set(n,i),e.delete(n),!0}class Hh{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new ZN(t,e,i),this._timelineEngine=new $N(t,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const d=[],k=Ug(this._driver,s,d,[]);if(d.length)throw function G7(n,t){return new Ke(3404,nn)}();a=function HN(n,t,e){return new jN(n,t,e)}(r,k,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[s,o]=H3(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=H3(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let oL=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ls(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ls(this._element,this._initialStyles),this._endStyles&&(ls(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(zo(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(zo(this._element,this._endStyles),this._endStyles=null),ls(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ev(n){let t=null;const e=Object.keys(n);for(let i=0;it()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(t[i]=this._finished?e[i]:eM(this.element,i))})}this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class lL{validateStyleProperty(t){return $3(t)}matchesElement(t,e){return!1}containsElement(t,e){return G3(t,e)}getParentElement(t){return Ng(t)}query(t,e,i){return W3(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,s,o=[]){const d={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(d.easing=s);const C={},k=o.filter(G=>G instanceof mM);(function hN(n,t){return 0===n||0===t})(i,r)&&k.forEach(G=>{let X=G.currentSnapshot;Object.keys(X).forEach(re=>C[re]=X[re])}),e=function fN(n,t,e){const i=Object.keys(e);if(i.length&&t.length){let s=t[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var r=1;rso(G,!1)),C);const N=function sL(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=ev(t[0]),t.length>1&&(i=ev(t[t.length-1]))):t&&(e=ev(t)),e||i?new oL(n,e,i):null}(t,e);return new mM(t,e,d,N)}}let cL=(()=>{class n extends O3{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Sr.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?P3(e):e;return gM(this._renderer,null,i,"register",[r]),new uL(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(ue(bc),ue(Et))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();class uL extends class D7{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new dL(this._id,t,e||{},this._renderer)}}class dL{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return gM(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function gM(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const vM="@.disabled";let hL=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let k=this._rendererCache.get(s);return k||(k=new _M("",s,this.engine),this._rendererCache.set(s,k)),k}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const d=k=>{Array.isArray(k)?k.forEach(d):this.engine.registerTrigger(o,a,e,k.name,k)};return i.data.animation.forEach(d),new fL(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(ue(bc),ue(Hh),ue(ct))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();class _M{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==vM?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class fL extends _M{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==vM?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function pL(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function mL(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let gL=(()=>{class n extends Hh{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(ue(Et),ue(Lg),ue(qg))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const br=new Ie("AnimationModuleType"),yM=[{provide:O3,useClass:cL},{provide:qg,useFactory:function vL(){return new PN}},{provide:Hh,useClass:gL},{provide:bc,useFactory:function _L(n,t,e){return new hL(n,t,e)},deps:[qd,Hh,ct]}],bM=[{provide:Lg,useFactory:()=>new lL},{provide:br,useValue:"BrowserAnimations"},...yM],yL=[{provide:Lg,useClass:Y3},{provide:br,useValue:"NoopAnimations"},...yM];let bL=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?yL:bM}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:bM,imports:[TC]}),n})();function wL(n,t){if(1&n&&yt(0,"mat-pseudo-checkbox",4),2&n){const e=Ue();ge("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function CL(n,t){if(1&n&&(oe(0,"span",5),we(1),le()),2&n){const e=Ue();he(1),Rn("(",e.group.label,")")}}const DL=["*"];let ML=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),EL=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const xL=new Ie("mat-sanity-checks",{providedIn:"root",factory:function SL(){return!0}});let Gt=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Bm()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(ue(I3),ue(xL,8),ue(Et))},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Hc],Hc]}),n})();function $o(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=ht(t)}}}function Go(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function oo(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=ht(t)}}}function tv(n,t=0){return class extends n{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?gr(e):this.defaultTabIndex}}}function CM(n){return class extends n{constructor(...t){super(...t),this.stateChanges=new U,this.errorState=!1}updateErrorState(){const t=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==t&&(this.errorState=s,this.stateChanges.next())}}}function kL(n){return class extends n{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new j(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const AL=new Ie("MAT_DATE_LOCALE",{providedIn:"root",factory:function TL(){return ec(bs)}});class mi{constructor(){this._localeChanges=new U,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),r=this.isValid(e);return i&&r?!this.compareDate(t,e):i==r}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const Wo=new Ie("mat-date-formats"),IL=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function nv(n,t){const e=Array(n);for(let i=0;i{class n extends mi{constructor(e,i){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return nv(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return nv(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){const i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return nv(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){const i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let s=this._createDateWithOverflow(e,i,r);return s.getMonth(),s}today(){return new Date}parse(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},i),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,12*i)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(IL.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,i,r){const s=new Date;return s.setFullYear(e,i,r),s.setHours(0,0,0,0),s}_2digit(e){return("00"+e).slice(-2)}_format(e,i){const r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}}return n.\u0275fac=function(e){return new(e||n)(ue(AL,8),ue($n))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const OL={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let FL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[{provide:mi,useClass:RL}]}),n})(),PL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[{provide:Wo,useValue:OL}],imports:[[FL]]}),n})(),iv=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),DM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function eu(n,t,e){n.nativeElement.classList.toggle(t,e)}let EM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Gt],Gt]}),n})();class NL{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const SM={enterDuration:225,exitDuration:150},rv=ll({passive:!0}),xM=["mousedown","touchstart"],kM=["mouseup","mouseleave","touchend","touchcancel"];class BL{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Ds(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},SM),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=i.radius||function HL(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,d=e-r.top,C=s.enterDuration,k=document.createElement("div");k.classList.add("mat-ripple-element"),k.style.left=a-o+"px",k.style.top=d-o+"px",k.style.height=2*o+"px",k.style.width=2*o+"px",null!=i.color&&(k.style.backgroundColor=i.color),k.style.transitionDuration=`${C}ms`,this._containerElement.appendChild(k),function VL(n){window.getComputedStyle(n).getPropertyValue("opacity")}(k),k.style.transform="scale(1)";const N=new NL(this,k,i);return N.state=0,this._activeRipples.add(N),i.persistent||(this._mostRecentTransientRipple=N),this._runTimeoutOutsideZone(()=>{const G=N===this._mostRecentTransientRipple;N.state=1,!i.persistent&&(!G||!this._isPointerDown)&&N.fadeOut()},C),N}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,r=Object.assign(Object.assign({},SM),t.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Ds(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(xM))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(kM),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Sg(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,rv)})})}_removeTriggerEvents(){this._triggerElement&&(xM.forEach(t=>{this._triggerElement.removeEventListener(t,this,rv)}),this._pointerUpEventsRegistered&&kM.forEach(t=>{this._triggerElement.removeEventListener(t,this,rv)}))}}const jL=new Ie("mat-ripple-global-options");let _l=(()=>{class n{constructor(e,i,r,s,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new BL(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(ct),V($n),V(jL,8),V(br,8))},n.\u0275dir=De({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&Nt("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),zh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Gt],Gt]}),n})(),AM=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(V(br,8))},n.\u0275cmp=Ge({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&Nt("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),sv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Gt]]}),n})();const ov=new Ie("MAT_OPTION_PARENT_COMPONENT"),av=new Ie("MatOptgroup");let zL=0;class TM{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let UL=(()=>{class n{constructor(e,i,r,s){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+zL++,this.onSelectionChange=new Le,this._stateChanges=new U}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=ht(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!ai(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new TM(this,e))}}return n.\u0275fac=function(e){Wa()},n.\u0275dir=De({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),tu=(()=>{class n extends UL{constructor(e,i,r,s){super(e,i,r,s)}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(an),V(ov,8),V(av,8))},n.\u0275cmp=Ge({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&Oe("click",function(){return i._selectViaInteraction()})("keydown",function(s){return i._handleKeydown(s)}),2&e&&(Gs("id",i.id),_t("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),Nt("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[Pe],ngContentSelectors:DL,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(mn(),ze(0,wL,1,2,"mat-pseudo-checkbox",0),oe(1,"span",1),bt(2),le(),ze(3,CL,2,1,"span",2),yt(4,"div",3)),2&e&&(ge("ngIf",i.multiple),he(3),ge("ngIf",i.group&&i.group._inert),he(1),ge("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[AM,hi,_l],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function lv(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),s=0;for(let o=0;oe+i?Math.max(0,n-i+t):e}let Uh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[zh,Ri,Gt,sv]]}),n})();function Yo(n){return new j(t=>{let e;try{e=n()}catch(r){return void t.error(r)}return(e?Re(e):Qd()).subscribe(t)})}class cv{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class qo extends cv{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class Ko extends cv{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class $L extends cv{constructor(t){super(),this.element=t instanceof nt?t.nativeElement:t}}class $h{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof qo?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ko?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof $L?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class GL extends $h{constructor(t,e,i,r,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,d=this._document.createComment("dom-portal");a.parentNode.insertBefore(d,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{d.parentNode&&d.parentNode.replaceChild(a,d)})},this._document=s}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector||Dn.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Xo=(()=>{class n extends $h{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Le,this.attachDomPortal=s=>{const o=s.element,a=this._document.createComment("dom-portal");s.setAttachedHost(this),o.parentNode.insertBefore(a,o),this._getRootNode().appendChild(o),this._attachedPortal=s,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(o,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,s=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),o=i.createComponent(s,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(V(Eo),V(On),V(Et))},n.\u0275dir=De({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Pe]}),n})(),nu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();class YL{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new qL(t,this.predicate,this.inclusive))}}class qL extends h{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const RM=zC();class KL{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Kn(-this._previousScrollPosition.left),t.style.top=Kn(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),RM&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),RM&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class XL{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class OM{enable(){}disable(){}attach(){}}function uv(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function FM(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class QL{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();uv(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let ZL=(()=>{class n{constructor(e,i,r,s){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new OM,this.close=o=>new XL(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new KL(this._viewportRuler,this._document),this.reposition=o=>new QL(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(e){return new(e||n)(ue(ul),ue(Po),ue(ct),ue(Et))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Qo{constructor(t){if(this.scrollStrategy=new OM,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class JL{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}class eB{constructor(t,e,i,r,s,o,a,d,C){this._portalOutlet=t,this._host=e,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=d,this._outsideClickDispatcher=C,this._backdropElement=null,this._backdropClick=new U,this._attachments=new U,this._detachments=new U,this._locationChanges=y.EMPTY,this._backdropClickHandler=k=>this._backdropClick.next(k),this._backdropTransitionendHandler=k=>{this._disposeBackdrop(k.target)},this._keydownEvents=new U,this._outsidePointerEvents=new U,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(ln(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){var t;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(t=this._host)||void 0===t||t.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Kn(this._config.width),t.height=Kn(this._config.height),t.minWidth=Kn(this._config.minWidth),t.minHeight=Kn(this._config.minHeight),t.maxWidth=Kn(this._config.maxWidth),t.maxHeight=Kn(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;!t||(t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500)))}_toggleClasses(t,e,i){const r=Xd(e||[]).filter(s=>!!s);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Ut(Ae(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let dv=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Bm()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let d=this._getOriginPoint(t,r,a),C=this._getOverlayPoint(d,e,a),k=this._getOverlayFit(C,e,i,a);if(k.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,d);this._canFitWithFlexibleDimensions(k,C,i)?s.push({position:a,origin:d,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(d,a)}):(!o||o.overlayFit.visibleAread&&(d=k,a=C)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Zo(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(PM),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,s;if("center"==i.originX)r=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?o:a}return e.left<0&&(r-=e.left),s="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(s-=e.top),{x:r,y:s}}_getOverlayPoint(t,e,i){let r,s;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,i,r){const s=BM(e);let{x:o,y:a}=t,d=this._getOffset(r,"x"),C=this._getOffset(r,"y");d&&(o+=d),C&&(a+=C);let G=0-a,X=a+s.height-i.height,re=this._subtractOverflows(s.width,0-o,o+s.width-i.width),de=this._subtractOverflows(s.height,G,X),ve=re*de;return{visibleArea:ve,isCompletelyWithinViewport:s.width*s.height===ve,fitsInViewportVertically:de===s.height,fitsInViewportHorizontally:re==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,s=i.right-e.x,o=LM(this._overlayRef.getConfig().minHeight),a=LM(this._overlayRef.getConfig().minWidth),C=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=o&&o<=r)&&C}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=BM(e),s=this._viewportRect,o=Math.max(t.x+r.width-s.width,0),a=Math.max(t.y+r.height-s.height,0),d=Math.max(s.top-i.top-t.y,0),C=Math.max(s.left-i.left-t.x,0);let k=0,N=0;return k=r.width<=s.width?C||-o:t.xre&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-re/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)G=i.width-t.x+this._viewportMargin,k=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)N=t.x,k=i.right-t.x;else{const X=Math.min(i.right-t.x+i.left,t.x),re=this._lastBoundingBoxSize.width;k=2*X,N=t.x-X,k>re&&!this._isInitialRender&&!this._growAfterOpen&&(N=t.x-re/2)}return{top:o,left:N,bottom:a,right:G,width:k,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Kn(i.height),r.top=Kn(i.top),r.bottom=Kn(i.bottom),r.width=Kn(i.width),r.left=Kn(i.left),r.right=Kn(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=Kn(s)),o&&(r.maxWidth=Kn(o))}this._lastBoundingBoxSize=i,Zo(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Zo(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Zo(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const k=this._viewportRuler.getViewportScrollPosition();Zo(i,this._getExactOverlayY(e,t,k)),Zo(i,this._getExactOverlayX(e,t,k))}else i.position="static";let a="",d=this._getOffset(e,"x"),C=this._getOffset(e,"y");d&&(a+=`translateX(${d}px) `),C&&(a+=`translateY(${C}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=Kn(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=Kn(o.maxWidth):s&&(i.maxWidth="")),Zo(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=Kn(s.y),r}_getExactOverlayX(t,e,i){let o,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Kn(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:FM(t,i),isOriginOutsideView:uv(t,i),isOverlayClipped:FM(e,i),isOverlayOutsideView:uv(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Xd(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof nt)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Zo(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function LM(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(tB);return e&&"px"!==e?null:parseFloat(t)}return n||null}function BM(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const VM="cdk-global-overlay-wrapper";class nB{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(VM),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,d=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),C=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=d?"0":this._leftOffset,t.marginTop=C?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,d?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=C?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(VM),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let iB=(()=>{class n{constructor(e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new nB}flexibleConnectedTo(e){return new NM(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(ue(Po),ue(Et),ue($n),ue(dv))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),HM=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(ue(Et))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rB=(()=>{class n extends HM{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const s=this._attachedOverlays;for(let o=s.length-1;o>-1;o--)if(s[o]._keydownEvents.observers.length>0){const a=s[o]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(ue(Et),ue(ct,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sB=(()=>{class n extends HM{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=qs(s)},this._clickListener=s=>{const o=qs(s),a="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;this._pointerDownEventTarget=null;const d=this._attachedOverlays.slice();for(let C=d.length-1;C>-1;C--){const k=d[C];if(k._outsidePointerEvents.observers.length<1||!k.hasAttached())continue;if(k.overlayElement.contains(o)||k.overlayElement.contains(a))break;const N=k._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>N.next(s)):N.next(s)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(ue(Et),ue($n),ue(ct,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),oB=0,Ui=(()=>{class n{constructor(e,i,r,s,o,a,d,C,k,N,G){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=d,this._document=C,this._directionality=k,this._location=N,this._outsideClickDispatcher=G}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new Qo(e);return o.direction=o.direction||this._directionality.value,new eB(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+oB++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Sc)),new GL(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(ue(ZL),ue(dv),ue(Eo),ue(iB),ue(rB),ue(Dn),ue(ct),ue(Et),ue(fi),ue(kc),ue(sB))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const aB=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],jM=new Ie("cdk-connected-overlay-scroll-strategy");let zM=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(V(nt))},n.\u0275dir=De({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),UM=(()=>{class n{constructor(e,i,r,s,o){this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=y.EMPTY,this._attachSubscription=y.EMPTY,this._detachSubscription=y.EMPTY,this._positionSubscription=y.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Le,this.positionChange=new Le,this.attach=new Le,this.detach=new Le,this.overlayKeydown=new Le,this.overlayOutsideClick=new Le,this._templatePortal=new Ko(i,r),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ht(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=ht(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=ht(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=ht(e)}get push(){return this._push}set push(e){this._push=ht(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=aB);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!ai(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Qo({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof zM?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function WL(n,t=!1){return e=>e.lift(new YL(n,t))}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(V(Ui),V(kn),V(On),V(jM),V(fi,8))},n.\u0275dir=De({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[on]}),n})();const cB={provide:jM,deps:[Ui],useFactory:function lB(n){return()=>n.scrollStrategies.reposition()}};let yl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[Ui,cB],imports:[[Hc,nu,ih],ih]}),n})();const uB=["connectionContainer"],dB=["inputContainer"],hB=["label"];function fB(n,t){1&n&&(Or(0),oe(1,"div",14),yt(2,"div",15)(3,"div",16)(4,"div",17),le(),oe(5,"div",18),yt(6,"div",15)(7,"div",16)(8,"div",17),le(),Fr())}function pB(n,t){if(1&n){const e=In();oe(0,"div",19),Oe("cdkObserveContent",function(){return Qt(e),Ue().updateOutlineGap()}),bt(1,1),le()}2&n&&ge("cdkObserveContentDisabled","outline"!=Ue().appearance)}function mB(n,t){if(1&n&&(Or(0),bt(1,2),oe(2,"span"),we(3),le(),Fr()),2&n){const e=Ue(2);he(3),xn(e._control.placeholder)}}function gB(n,t){1&n&&bt(0,3,["*ngSwitchCase","true"])}function vB(n,t){1&n&&(oe(0,"span",23),we(1," *"),le())}function _B(n,t){if(1&n){const e=In();oe(0,"label",20,21),Oe("cdkObserveContent",function(){return Qt(e),Ue().updateOutlineGap()}),ze(2,mB,4,1,"ng-container",12),ze(3,gB,1,0,"ng-content",12),ze(4,vB,2,0,"span",22),le()}if(2&n){const e=Ue();Nt("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),ge("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),_t("for",e._control.id)("aria-owns",e._control.id),he(2),ge("ngSwitchCase",!1),he(1),ge("ngSwitchCase",!0),he(1),ge("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function yB(n,t){1&n&&(oe(0,"div",24),bt(1,4),le())}function bB(n,t){if(1&n&&(oe(0,"div",25),yt(1,"span",26),le()),2&n){const e=Ue();he(1),Nt("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function wB(n,t){1&n&&(oe(0,"div"),bt(1,5),le()),2&n&&ge("@transitionMessages",Ue()._subscriptAnimationState)}function CB(n,t){if(1&n&&(oe(0,"div",30),we(1),le()),2&n){const e=Ue(2);ge("id",e._hintLabelId),he(1),xn(e.hintLabel)}}function DB(n,t){if(1&n&&(oe(0,"div",27),ze(1,CB,2,2,"div",28),bt(2,6),yt(3,"div",29),bt(4,7),le()),2&n){const e=Ue();ge("@transitionMessages",e._subscriptAnimationState),he(1),ge("ngIf",e.hintLabel)}}const MB=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],EB=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],SB=new Ie("MatError"),xB={transitionMessages:li("transitionMessages",[fn("enter",ft({opacity:1,transform:"translateY(0%)"})),gn("void => enter",[ft({opacity:0,transform:"translateY(-5px)"}),wn("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Gh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n}),n})();const kB=new Ie("MatHint");let bl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["mat-label"]]}),n})(),AB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["mat-placeholder"]]}),n})();const TB=new Ie("MatPrefix"),$M=new Ie("MatSuffix");let IB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["","matSuffix",""]],features:[lt([{provide:$M,useExisting:n}])]}),n})(),GM=0;const OB=Go(class{constructor(n){this._elementRef=n}},"primary"),FB=new Ie("MAT_FORM_FIELD_DEFAULT_OPTIONS"),iu=new Ie("MatFormField");let Jo=(()=>{class n extends OB{constructor(e,i,r,s,o,a,d){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=s,this._platform=o,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new U,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+GM++,this._labelId="mat-form-field-label-"+GM++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==d,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ht(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(jn(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ut(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ut(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Ae(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(jn(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(jn(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ut(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Hr(this._label.nativeElement,"transitionend").pipe(ln(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,r=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",s=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const k=i.querySelectorAll(`${r}, ${s}`);for(let N=0;N0?.75*re+10:0}for(let k=0;k{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Ri,Gt,_3],Gt]}),n})();function Yh(n,t=ol){const i=function PB(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-t.now():Math.abs(n);return r=>r.lift(new NB(i,t))}class NB{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new hv(t,this.delay,this.scheduler))}}class hv extends h{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,r=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const o=Math.max(0,i[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(hv.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new LB(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Hi.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Hi.createComplete()),this.unsubscribe()}}class LB{constructor(t,e){this.time=t,this.notification=e}}const BB=["panel"];function VB(n,t){if(1&n&&(oe(0,"div",0,1),bt(2),le()),2&n){const e=t.id,i=Ue();ge("id",i.id)("ngClass",i._classList),_t("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const HB=["*"];let jB=0;class zB{constructor(t,e){this.source=t,this.option=e}}const UB=oo(class{}),YM=new Ie("mat-autocomplete-default-options",{providedIn:"root",factory:function $B(){return{autoActiveFirstOption:!1}}});let GB=(()=>{class n extends UB{constructor(e,i,r,s){super(),this._changeDetectorRef=e,this._elementRef=i,this._activeOptionChanges=y.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Le,this.opened=new Le,this.closed=new Le,this.optionActivated=new Le,this._classList={},this.id="mat-autocomplete-"+jB++,this.inertGroups=(null==s?void 0:s.SAFARI)||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=ht(e)}set classList(e){this._classList=e&&e.length?PC(e).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new M3(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new zB(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return n.\u0275fac=function(e){return new(e||n)(V(an),V(nt),V(YM),V($n))},n.\u0275dir=De({type:n,viewQuery:function(e,i){if(1&e&&(jt(kn,7),jt(BB,5)),2&e){let r;He(r=je())&&(i.template=r.first),He(r=je())&&(i.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Pe]}),n})(),WB=(()=>{class n extends GB{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,i,r){if(1&e&&(Lt(r,av,5),Lt(r,tu,5)),2&e){let s;He(s=je())&&(i.optionGroups=s),He(s=je())&&(i.options=s)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[lt([{provide:ov,useExisting:n}]),Pe],ngContentSelectors:HB,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,i){1&e&&(mn(),ze(0,VB,3,4,"ng-template"))},directives:[rl],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),n})();const qM=new Ie("mat-autocomplete-scroll-strategy"),qB={provide:qM,deps:[Ui],useFactory:function YB(n){return()=>n.scrollStrategies.reposition()}},KB={provide:ji,useExisting:Ot(()=>KM),multi:!0};let XB=(()=>{class n{constructor(e,i,r,s,o,a,d,C,k,N,G){this._element=e,this._overlay=i,this._viewContainerRef=r,this._zone=s,this._changeDetectorRef=o,this._dir=d,this._formField=C,this._document=k,this._viewportRuler=N,this._defaults=G,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=y.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new U,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Yo(()=>{const X=this.autocomplete?this.autocomplete.options:null;return X?X.changes.pipe(jn(X),Xn(()=>Ae(...X.map(re=>re.onSelectionChange)))):this._zone.onStable.pipe(ln(1),Xn(()=>this.optionSelections))}),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=ht(e)}ngAfterViewInit(){const e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Ae(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe($t(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe($t(()=>this._overlayAttached)):Qe()).pipe(L(e=>e instanceof TM?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Ae(Hr(this._document,"click"),Hr(this._document,"auxclick"),Hr(this._document,"touchend")).pipe($t(e=>{const i=qs(e),r=this._formField?this._formField._elementRef.nativeElement:null,s=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(i))&&(!s||!s.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve().then(()=>this._setTriggerValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode,r=ai(e);if(27===i&&!r&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const s=this.autocomplete._keyManager.activeItem,o=38===i||40===i;9===i||o&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):o&&this._canOpen()&&this.openPanel(),(o||this.autocomplete._keyManager.activeItem!==s)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(e){let i=e.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return Ae(this._zone.onStable.pipe(ln(1)),this.autocomplete.options.changes.pipe(ri(()=>this._positionStrategy.reapplyLastPosition()),Yh(0))).pipe(Xn(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&(this._overlayRef.updatePosition(),r!==this.panelOpen&&this.autocomplete.opened.emit())}),this.panelClosingActions)),ln(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,r=null!=i?i:"";this._formField?this._formField._control.value=r:this._element.nativeElement.value=r,this._previousValue=r}_setValueAndClose(e){const i=e&&e.source;i&&(this._clearPreviousSelectedOption(i),this._setTriggerValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(i=>{i!==e&&i.selected&&i.deselect()})}_attachOverlay(){var e;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new Ko(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,i.keydownEvents().subscribe(s=>{(27===s.keyCode&&!ai(s)||38===s.keyCode&&ai(s,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),s.stopPropagation(),s.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var e;return new Qo({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,s=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let o;o="above"===this.position?s:"below"===this.position?i:[...i,...s],e.withPositions(o)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}_scrollToOption(e){const i=this.autocomplete,r=lv(e,i.options,i.optionGroups);if(0===e&&1===r)i._setScrollTop(0);else if(i.panel){const s=i.options.toArray()[e];if(s){const o=s._getHostElement(),a=IM(o.offsetTop,o.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(a)}}}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(Ui),V(On),V(ct),V(an),V(qM),V(fi,8),V(iu,9),V(Et,8),V(Po),V(YM,8))},n.\u0275dir=De({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[on]}),n})(),KM=(()=>{class n extends XB{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,i){1&e&&Oe("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(s){return i._handleInput(s)})("keydown",function(s){return i._handleKeydown(s)})("click",function(){return i._handleClick()}),2&e&&_t("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[lt([KB]),Pe]}),n})(),QB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[qB],imports:[[yl,Uh,Gt,Ri],Xs,Uh,Gt]}),n})();const ZB=["mat-button",""],JB=["*"],tV=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],nV=Go($o(oo(class{constructor(n){this._elementRef=n}})));let Fi=(()=>{class n extends nV{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of tV)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(as),V(br,8))},n.\u0275cmp=Ge({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&jt(_l,5),2&e){let r;He(r=je())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(_t("disabled",i.disabled||null),Nt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Pe],attrs:ZB,ngContentSelectors:JB,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(mn(),oe(0,"span",0),bt(1),le(),yt(2,"span",1)(3,"span",2)),2&e&&(he(2),Nt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),ge("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[_l],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),fv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[zh,Gt],Gt]}),n})();const XM=ll({passive:!0});let iV=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ys;const i=Ds(e),r=this._monitoredElements.get(i);if(r)return r.subject;const s=new U,o="cdk-text-field-autofilled",a=d=>{"cdk-text-field-autofill-start"!==d.animationName||i.classList.contains(o)?"cdk-text-field-autofill-end"===d.animationName&&i.classList.contains(o)&&(i.classList.remove(o),this._ngZone.run(()=>s.next({target:d.target,isAutofilled:!1}))):(i.classList.add(o),this._ngZone.run(()=>s.next({target:d.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,XM),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:s,unlisten:()=>{i.removeEventListener("animationstart",a,XM)}}),s}stopMonitoring(e){const i=Ds(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(ue($n),ue(ct))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),QM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();const ZM=new Ie("MAT_INPUT_VALUE_ACCESSOR"),rV=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let sV=0;const oV=CM(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i}});let ea=(()=>{class n extends oV{constructor(e,i,r,s,o,a,d,C,k,N){super(a,s,o,r),this._elementRef=e,this._platform=i,this._autofillMonitor=C,this._formField=N,this._uid="mat-input-"+sV++,this.focused=!1,this.stateChanges=new U,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(re=>jC().has(re)),this._iOSKeyupListener=re=>{const de=re.target;!de.value&&0===de.selectionStart&&0===de.selectionEnd&&(de.setSelectionRange(1,1),de.setSelectionRange(0,0))};const G=this._elementRef.nativeElement,X=G.nodeName.toLowerCase();this._inputValueAccessor=d||G,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&k.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===X,this._isTextarea="textarea"===X,this._isInFormField=!!N,this._isNativeSelect&&(this.controlType=G.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ht(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,i,r,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(Jm.required))&&void 0!==s&&s}set required(e){this._required=ht(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&jC().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ht(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,i;const r=(null===(i=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===i?void 0:i.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=r,r?s.setAttribute("placeholder",r):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){rV.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V($n),V(os,10),V(Es,8),V(qc,8),V(iv),V(ZM,10),V(iV),V(ct),V(iu,8))},n.\u0275dir=De({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,i){1&e&&Oe("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Gs("disabled",i.disabled)("required",i.required),_t("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),Nt("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[lt([{provide:Gh,useExisting:n}]),Pe,on]}),n})(),aV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[iv],imports:[[QM,Wh,Gt],QM,Wh]}),n})();const lV=["mat-calendar-body",""];function cV(n,t){if(1&n&&(oe(0,"tr",2)(1,"td",3),we(2),le()()),2&n){const e=Ue();he(1),Ai("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),_t("colspan",e.numCols),he(1),Rn(" ",e.label," ")}}function uV(n,t){if(1&n&&(oe(0,"td",3),we(1),le()),2&n){const e=Ue(2);Ai("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),_t("colspan",e._firstRowOffset),he(1),Rn(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function dV(n,t){if(1&n){const e=In();oe(0,"td",7)(1,"button",8),Oe("click",function(r){const o=Qt(e).$implicit;return Ue(2)._cellClicked(o,r)}),oe(2,"div",9),we(3),le(),yt(4,"div",10),le()()}if(2&n){const e=t.$implicit,i=t.index,r=Ue().index,s=Ue();Ai("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),_t("data-mat-row",r)("data-mat-col",i),he(1),Nt("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",s._isActiveCell(r,i))("mat-calendar-body-range-start",s._isRangeStart(e.compareValue))("mat-calendar-body-range-end",s._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",s._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",s._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",s._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",s._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",s._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",s._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",s._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",s._isInPreview(e.compareValue)),ge("ngClass",e.cssClasses)("tabindex",s._isActiveCell(r,i)?0:-1),_t("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",s._isSelected(e.compareValue))("aria-current",s.todayValue===e.compareValue?"date":null),he(1),Nt("mat-calendar-body-selected",s._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",s._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",s.todayValue===e.compareValue),he(1),Rn(" ",e.displayValue," ")}}function hV(n,t){if(1&n&&(oe(0,"tr",4),ze(1,uV,2,6,"td",5),ze(2,dV,5,47,"td",6),le()),2&n){const e=t.$implicit,i=t.index,r=Ue();he(1),ge("ngIf",0===i&&r._firstRowOffset),he(1),ge("ngForOf",e)}}function fV(n,t){if(1&n&&(oe(0,"th",5)(1,"span",6),we(2),le(),oe(3,"span",7),we(4),le()()),2&n){const e=t.$implicit;he(2),xn(e.long),he(2),xn(e.narrow)}}const pV=["*"];function mV(n,t){}function gV(n,t){if(1&n){const e=In();oe(0,"mat-month-view",5),Oe("activeDateChange",function(r){return Qt(e),Ue().activeDate=r})("_userSelection",function(r){return Qt(e),Ue()._dateSelected(r)}),le()}if(2&n){const e=Ue();ge("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function vV(n,t){if(1&n){const e=In();oe(0,"mat-year-view",6),Oe("activeDateChange",function(r){return Qt(e),Ue().activeDate=r})("monthSelected",function(r){return Qt(e),Ue()._monthSelectedInYearView(r)})("selectedChange",function(r){return Qt(e),Ue()._goToDateInView(r,"month")}),le()}if(2&n){const e=Ue();ge("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function _V(n,t){if(1&n){const e=In();oe(0,"mat-multi-year-view",7),Oe("activeDateChange",function(r){return Qt(e),Ue().activeDate=r})("yearSelected",function(r){return Qt(e),Ue()._yearSelectedInMultiYearView(r)})("selectedChange",function(r){return Qt(e),Ue()._goToDateInView(r,"year")}),le()}if(2&n){const e=Ue();ge("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function yV(n,t){}const bV=["button"];function wV(n,t){1&n&&($l(),oe(0,"svg",3),yt(1,"path",4),le())}const CV=[[["","matDatepickerToggleIcon",""]]],DV=["[matDatepickerToggleIcon]"];class pv{constructor(t,e,i,r,s={},o=t,a){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=s,this.compareValue=o,this.rawValue=a}}let wl=(()=>{class n{constructor(e,i){this._elementRef=e,this._ngZone=i,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new Le,this.previewChange=new Le,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const s=this._getCellFromElement(r.target);s&&this._ngZone.run(()=>this.previewChange.emit({value:s.enabled?s:null,event:r}))}},this._leaveHandler=r=>{null!==this.previewEnd&&this.isRange&&r.target&&this._getCellFromElement(r.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r}))},i.runOutsideAngular(()=>{const r=e.nativeElement;r.addEventListener("mouseenter",this._enterHandler,!0),r.addEventListener("focus",this._enterHandler,!0),r.addEventListener("mouseleave",this._leaveHandler,!0),r.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(e,i){e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const i=e.numCols,{rows:r,numCols:s}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?s-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/s+"%"),(i||!this._cellWidth)&&(this._cellWidth=100/s+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ln(1)).subscribe(()=>{setTimeout(()=>{const i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})})})}_isRangeStart(e){return mv(e,this.startValue,this.endValue)}_isRangeEnd(e){return gv(e,this.startValue,this.endValue)}_isInRange(e){return vv(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return mv(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let s=this.rows[i][r-1];if(!s){const o=this.rows[i-1];s=o&&o[o.length-1]}return s&&!this._isRangeEnd(s.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let s=this.rows[i][r+1];if(!s){const o=this.rows[i+1];s=o&&o[0]}return s&&!this._isRangeStart(s.compareValue)}_isComparisonEnd(e){return gv(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return vv(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return mv(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return gv(e,this.previewStart,this.previewEnd)}_isInPreview(e){return vv(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let i;if(JM(e)?i=e:JM(e.parentNode)&&(i=e.parentNode),i){const r=i.getAttribute("data-mat-row"),s=i.getAttribute("data-mat-col");if(r&&s)return this.rows[parseInt(r)][parseInt(s)]}return null}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(ct))},n.\u0275cmp=Ge({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[on],attrs:lV,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,i){1&e&&(ze(0,cV,3,6,"tr",0),ze(1,hV,3,2,"tr",1)),2&e&&(ge("ngIf",i._firstRowOffset.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),n})();function JM(n){return"TD"===n.nodeName}function mv(n,t,e){return null!==e&&t!==e&&n=t&&n===e}function vv(n,t,e,i){return i&&null!==t&&null!==e&&t!==e&&n>=t&&n<=e}class $i{constructor(t,e){this.start=t,this.end=e}}let ao=(()=>{class n{constructor(e,i){this.selection=e,this._adapter=i,this._selectionChanged=new U,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,i){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return n.\u0275fac=function(e){Wa()},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),MV=(()=>{class n extends ao{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new n(this._adapter);return e.updateSelection(this.selection,this),e}}return n.\u0275fac=function(e){return new(e||n)(ue(mi))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const eE={provide:ao,deps:[[new xi,new Yr,ao],mi],useFactory:function SV(n,t){return n||new MV(t)}},qh=new Ie("MAT_DATE_RANGE_SELECTION_STRATEGY");let tE=(()=>{class n{constructor(e,i,r,s,o){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=s,this._rangeStrategy=o,this._rerenderSubscription=y.EMPTY,this.selectedChange=new Le,this._userSelection=new Le,this.activeDateChange=new Le,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof $i?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(jn(null)).subscribe(()=>this._init())}ngOnChanges(e){const i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const i=e.value,r=this._dateAdapter.getYear(this.activeDate),s=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.createDate(r,s,i);let a,d;this._selected instanceof $i?(a=this._getDateInCurrentMonth(this._selected.start),d=this._getDateInCurrentMonth(this._selected.end)):a=d=this._getDateInCurrentMonth(this._selected),(a!==i||d!==i)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!ai(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_previewChanged({event:e,value:i}){if(this._rangeStrategy){const s=this._rangeStrategy.createPreview(i?i.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow");let s=this._dateAdapter.getDayOfWeekNames("long").map((o,a)=>({long:o,narrow:i[a]}));this._weekdays=s.slice(e).concat(s.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,s=this._firstWeekOffset;r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!(!e||!i||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(i)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){const i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),s=this._dateAdapter.getDate(e);return new Date(i,r,s).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof $i?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return n.\u0275fac=function(e){return new(e||n)(V(an),V(Wo,8),V(mi,8),V(fi,8),V(qh,8))},n.\u0275cmp=Ge({type:n,selectors:[["mat-month-view"]],viewQuery:function(e,i){if(1&e&&jt(wl,5),2&e){let r;He(r=je())&&(i._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[on],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,i){1&e&&(oe(0,"table",0)(1,"thead",1)(2,"tr"),ze(3,fV,5,2,"th",2),le(),oe(4,"tr"),yt(5,"th",3),le()(),oe(6,"tbody",4),Oe("selectedValueChange",function(s){return i._dateSelected(s)})("previewChange",function(s){return i._previewChanged(s)})("keyup",function(s){return i._handleCalendarBodyKeyup(s)})("keydown",function(s){return i._handleCalendarBodyKeydown(s)}),le()()),2&e&&(he(3),ge("ngForOf",i._weekdays),he(3),ge("label",i._monthLabel)("rows",i._weeks)("todayValue",i._todayDate)("startValue",i._rangeStart)("endValue",i._rangeEnd)("comparisonStart",i._comparisonRangeStart)("comparisonEnd",i._comparisonRangeEnd)("previewStart",i._previewStart)("previewEnd",i._previewEnd)("isRange",i._isRange)("labelMinRequiredCells",3)("activeCell",i._dateAdapter.getDate(i.activeDate)-1))},directives:[wl,rs],encapsulation:2,changeDetection:0}),n})(),nE=(()=>{class n{constructor(e,i,r){this._changeDetectorRef=e,this._dateAdapter=i,this._dir=r,this._rerenderSubscription=y.EMPTY,this.selectedChange=new Le,this.yearSelected=new Le,this.activeDateChange=new Le,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),iE(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof $i?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(jn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const i=this._dateAdapter.getYear(this._activeDate)-ru(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,s=[];r<24;r++)s.push(i+r),4==s.length&&(this._years.push(s.map(o=>this._createCellForYear(o))),s=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const i=e.value;this.yearSelected.emit(this._dateAdapter.createDate(i,0,1));let r=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(i,r,1));this.selectedChange.emit(this._dateAdapter.createDate(i,r,Math.min(this._dateAdapter.getDate(this.activeDate),s)))}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ru(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-ru(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return ru(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(e){const i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),s=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new pv(e,r,r,this._shouldEnableYear(e),s)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class n{constructor(e,i,r,s){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=s,this._rerenderSubscription=y.EMPTY,this.selectedChange=new Le,this.monthSelected=new Le,this.activeDateChange=new Le,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof $i?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(jn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);const s=this._dateAdapter.getNumDaysInMonth(r);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,Math.min(this._dateAdapter.getDate(this.activeDate),s)))}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_createCellForMonth(e,i){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),s=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),o=this.dateClass?this.dateClass(r,"year"):void 0;return new pv(e,i.toLocaleUpperCase(),s,this._shouldEnableMonth(e),o)}_shouldEnableMonth(e){const i=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;for(let s=this._dateAdapter.createDate(i,e,1);this._dateAdapter.getMonth(s)==e;s=this._dateAdapter.addCalendarDays(s,1))if(this.dateFilter(s))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),s=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>s}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),s=this._dateAdapter.getMonth(this.minDate);return e{class n{constructor(){this.changes=new U,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(e,i){return`${e} \u2013 ${i}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),IV=0,RV=(()=>{class n{constructor(e,i,r,s,o){this._intl=e,this.calendar=i,this._dateAdapter=r,this._dateFormats=s,this._buttonDescriptionId="mat-calendar-button-"+IV++,this.calendar.stateChanges.subscribe(()=>o.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const i=this._dateAdapter.getYear(this.calendar.activeDate)-ru(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+24-1,s=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),o=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return this._intl.formatYearRange(s,o)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,i){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):iE(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}}return n.\u0275fac=function(e){return new(e||n)(V(su),V(Ot(()=>bv)),V(mi,8),V(Wo,8),V(an))},n.\u0275cmp=Ge({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:pV,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,i){1&e&&(mn(),oe(0,"div",0)(1,"div",1)(2,"button",2),Oe("click",function(){return i.currentPeriodClicked()}),oe(3,"span"),we(4),le(),$l(),oe(5,"svg",3),yt(6,"polygon",4),le()(),d0(),yt(7,"div",5),bt(8),oe(9,"button",6),Oe("click",function(){return i.previousClicked()}),le(),oe(10,"button",7),Oe("click",function(){return i.nextClicked()}),le()()()),2&e&&(he(2),_t("aria-label",i.periodButtonLabel)("aria-describedby",i._buttonDescriptionId),he(1),_t("id",i._buttonDescriptionId),he(1),xn(i.periodButtonText),he(1),Nt("mat-calendar-invert","month"!==i.calendar.currentView),he(4),ge("disabled",!i.previousEnabled()),_t("aria-label",i.prevButtonLabel),he(1),ge("disabled",!i.nextEnabled()),_t("aria-label",i.nextButtonLabel))},directives:[Fi],encapsulation:2,changeDetection:0}),n})(),bv=(()=>{class n{constructor(e,i,r,s){this._dateAdapter=i,this._dateFormats=r,this._changeDetectorRef=s,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new Le,this.yearSelected=new Le,this.monthSelected=new Le,this.viewChanged=new Le(!0),this._userSelection=new Le,this.stateChanges=new U,this._intlChanges=e.changes.subscribe(()=>{s.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof $i?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&this.viewChanged.emit(i)}ngAfterContentInit(){this._calendarHeaderPortal=new qo(this.headerComponent||RV),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,s=i||r||e.dateFilter;if(s&&!s.firstChange){const o=this._getCurrentViewComponent();o&&(this._changeDetectorRef.detectChanges(),o._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const i=e.value;(this.selected instanceof $i||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return n.\u0275fac=function(e){return new(e||n)(V(su),V(mi,8),V(Wo,8),V(an))},n.\u0275cmp=Ge({type:n,selectors:[["mat-calendar"]],viewQuery:function(e,i){if(1&e&&(jt(tE,5),jt(sE,5),jt(nE,5)),2&e){let r;He(r=je())&&(i.monthView=r.first),He(r=je())&&(i.yearView=r.first),He(r=je())&&(i.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[lt([eE]),on],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,i){1&e&&(ze(0,mV,0,0,"ng-template",0),oe(1,"div",1),ze(2,gV,1,8,"mat-month-view",2),ze(3,vV,1,6,"mat-year-view",3),ze(4,_V,1,6,"mat-multi-year-view",4),le()),2&e&&(ge("cdkPortalOutlet",i._calendarHeaderPortal),he(1),ge("ngSwitch",i.currentView),he(1),ge("ngSwitchCase","month"),he(1),ge("ngSwitchCase","year"),he(1),ge("ngSwitchCase","multi-year"))},directives:[tE,sE,nE,Xo,w7,sl,Ud],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),n})();const oE={transformPanel:li("transformPanel",[gn("void => enter-dropdown",wn("120ms cubic-bezier(0, 0, 0.2, 1)",ml([ft({opacity:0,transform:"scale(1, 0.8)"}),ft({opacity:1,transform:"scale(1, 1)"})]))),gn("void => enter-dialog",wn("150ms cubic-bezier(0, 0, 0.2, 1)",ml([ft({opacity:0,transform:"scale(0.7)"}),ft({transform:"none",opacity:1})]))),gn("* => void",wn("100ms linear",ft({opacity:0})))]),fadeInCalendar:li("fadeInCalendar",[fn("void",ft({opacity:0})),fn("enter",ft({opacity:1})),gn("void => *",wn("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let OV=0;const aE=new Ie("mat-datepicker-scroll-strategy"),PV={provide:aE,deps:[Ui],useFactory:function FV(n){return()=>n.scrollStrategies.reposition()}},NV=Go(class{constructor(n){this._elementRef=n}});let LV=(()=>{class n extends NV{constructor(e,i,r,s,o,a){super(e),this._changeDetectorRef=i,this._globalModel=r,this._dateAdapter=s,this._rangeSelectionStrategy=o,this._subscriptions=new y,this._animationDone=new U,this._actionsPortal=null,this._closeButtonText=a.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const i=this._model.selection,r=e.value,s=i instanceof $i;if(s&&this._rangeSelectionStrategy){const o=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(o,this)}else r&&(s||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(an),V(ao),V(mi),V(qh,8),V(su))},n.\u0275cmp=Ge({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(e,i){if(1&e&&jt(bv,5),2&e){let r;He(r=je())&&(i._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,i){1&e&&Ya("@transformPanel.done",function(){return i._animationDone.next()}),2&e&&(Xa("@transformPanel",i._animationState),Nt("mat-datepicker-content-touch",i.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[Pe],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,i){if(1&e&&(oe(0,"div",0)(1,"mat-calendar",1),Oe("yearSelected",function(s){return i.datepicker._selectYear(s)})("monthSelected",function(s){return i.datepicker._selectMonth(s)})("viewChanged",function(s){return i.datepicker._viewChanged(s)})("_userSelection",function(s){return i._handleUserSelection(s)}),le(),ze(2,yV,0,0,"ng-template",2),oe(3,"button",3),Oe("focus",function(){return i._closeButtonFocused=!0})("blur",function(){return i._closeButtonFocused=!1})("click",function(){return i.datepicker.close()}),we(4),le()()),2&e){let r;Nt("mat-datepicker-content-container-with-custom-header",i.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",i._actionsPortal),_t("aria-modal",!0)("aria-labelledby",null!==(r=i._dialogLabelId)&&void 0!==r?r:void 0),he(1),ge("id",i.datepicker.id)("ngClass",i.datepicker.panelClass)("startAt",i.datepicker.startAt)("startView",i.datepicker.startView)("minDate",i.datepicker._getMinDate())("maxDate",i.datepicker._getMaxDate())("dateFilter",i.datepicker._getDateFilter())("headerComponent",i.datepicker.calendarHeaderComponent)("selected",i._getSelected())("dateClass",i.datepicker.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)("@fadeInCalendar","enter"),he(1),ge("cdkPortalOutlet",i._actionsPortal),he(1),Nt("cdk-visually-hidden",!i._closeButtonFocused),ge("color",i.color||"primary"),he(1),xn(i._closeButtonText)}},directives:[bv,Fi,f7,rl,Xo],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[oE.transformPanel,oE.fadeInCalendar]},changeDetection:0}),n})(),lE=(()=>{class n{constructor(e,i,r,s,o,a,d){this._overlay=e,this._ngZone=i,this._viewContainerRef=r,this._dateAdapter=o,this._dir=a,this._model=d,this._inputStateChanges=y.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new Le,this.monthSelected=new Le,this.viewChanged=new Le(!0),this.openedStream=new Le,this.closedStream=new Le,this._opened=!1,this.id="mat-datepicker-"+OV++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new U,this._scrollStrategy=s}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=ht(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const i=ht(e);i!==this._disabled&&(this._disabled=i,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=ht(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=PC(e)}get opened(){return this._opened}set opened(e){ht(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(e){const i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;r instanceof NM&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Bc(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const i=this._componentRef.instance;i._startExitAnimation(),i._animationDone.pipe(ln(1)).subscribe(()=>this._destroyOverlay())}const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_applyPendingSelection(){var e,i;null===(i=null===(e=this._componentRef)||void 0===e?void 0:e.instance)||void 0===i||i._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._actionsPortal=this._actionsPortal,e._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const e=this.touchUi,i=new qo(LV,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new Qo({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(r).subscribe(s=>{s&&s.preventDefault(),this.close()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(ln(1)).subscribe(()=>r.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const i="end"===this.xPosition?"end":"start",r="start"===i?"end":"start",s="above"===this.yPosition?"bottom":"top",o="top"===s?"bottom":"top";return e.withPositions([{originX:i,originY:o,overlayX:i,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:s},{originX:r,originY:s,overlayX:r,overlayY:o}])}_getCloseStream(e){return Ae(e.backdropClick(),e.detachments(),e.keydownEvents().pipe($t(i=>27===i.keyCode&&!ai(i)||this.datepickerInput&&ai(i,"altKey")&&38===i.keyCode)))}}return n.\u0275fac=function(e){return new(e||n)(V(Ui),V(ct),V(On),V(aE),V(mi,8),V(fi,8),V(ao))},n.\u0275dir=De({type:n,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[on]}),n})(),BV=(()=>{class n extends lE{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[lt([eE,{provide:lE,useExisting:n}]),Pe],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0}),n})();class Kh{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let VV=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._dateAdapter=i,this._dateFormats=r,this.dateChange=new Le,this.dateInput=new Le,this.stateChanges=new U,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=y.EMPTY,this._localeSubscription=y.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=s=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value));return!o||this._matchesFilter(o)?null:{matDatepickerFilter:!0}},this._minValidator=s=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),a=this._getMinDate();return!a||!o||this._dateAdapter.compareDate(a,o)<=0?null:{matDatepickerMin:{min:a,actual:o}}},this._maxValidator=s=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),a=this._getMaxDate();return!a||!o||this._dateAdapter.compareDate(a,o)>=0?null:{matDatepickerMax:{max:a,actual:o}}},this._lastValueValid=!1,this._localeSubscription=i.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const i=ht(e),r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){const r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new Kh(this,this._elementRef.nativeElement)),this.dateChange.emit(new Kh(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function HV(n,t){const e=Object.keys(n);for(let i of e){const{previousValue:r,currentValue:s}=n[i];if(!t.isDateInstance(r)||!t.isDateInstance(s))return!0;if(!t.sameDate(r,s))return!0}return!1})(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const i=this._lastValueValid;let r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);const s=!this._dateAdapter.sameDate(r,this.value);!r||s?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),i!==this._lastValueValid&&this._validatorOnChange()),s&&(this._assignValue(r),this.dateInput.emit(new Kh(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Kh(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const i=this._getDateFilter();return!i||i(e)}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(mi,8),V(Wo,8))},n.\u0275dir=De({type:n,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[on]}),n})();const jV={provide:ji,useExisting:Ot(()=>wv),multi:!0},zV={provide:pi,useExisting:Ot(()=>wv),multi:!0};let wv=(()=>{class n extends VV{constructor(e,i,r,s){super(e,i,r),this._formField=s,this._closedSubscription=y.EMPTY,this._validator=Jm.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}get max(){return this._max}set max(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(mi,8),V(Wo,8),V(iu,8))},n.\u0275dir=De({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,i){1&e&&Oe("input",function(s){return i._onInput(s.target.value)})("change",function(){return i._onChange()})("blur",function(){return i._onBlur()})("keydown",function(s){return i._onKeydown(s)}),2&e&&(Gs("disabled",i.disabled),_t("aria-haspopup",i._datepicker?"dialog":null)("aria-owns",(null==i._datepicker?null:i._datepicker.opened)&&i._datepicker.id||null)("min",i.min?i._dateAdapter.toIso8601(i.min):null)("max",i.max?i._dateAdapter.toIso8601(i.max):null)("data-mat-calendar",i._datepicker?i._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[lt([jV,zV,{provide:ZM,useExisting:n}]),Pe]}),n})(),UV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["","matDatepickerToggleIcon",""]]}),n})(),$V=(()=>{class n{constructor(e,i,r){this._intl=e,this._changeDetectorRef=i,this._stateChanges=y.EMPTY;const s=Number(r);this.tabIndex=s||0===s?s:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=ht(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:Qe(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Qe(),r=this.datepicker?Ae(this.datepicker.openedStream,this.datepicker.closedStream):Qe();this._stateChanges.unsubscribe(),this._stateChanges=Ae(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(V(su),V(an),dr("tabindex"))},n.\u0275cmp=Ge({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,i,r){if(1&e&&Lt(r,UV,5),2&e){let s;He(s=je())&&(i._customIcon=s.first)}},viewQuery:function(e,i){if(1&e&&jt(bV,5),2&e){let r;He(r=je())&&(i._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,i){1&e&&Oe("click",function(s){return i._open(s)}),2&e&&(_t("tabindex",null)("data-mat-calendar",i.datepicker?i.datepicker.id:null),Nt("mat-datepicker-toggle-active",i.datepicker&&i.datepicker.opened)("mat-accent",i.datepicker&&"accent"===i.datepicker.color)("mat-warn",i.datepicker&&"warn"===i.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[on],ngContentSelectors:DV,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,i){1&e&&(mn(CV),oe(0,"button",0,1),ze(2,wV,2,0,"svg",2),bt(3),le()),2&e&&(ge("disabled",i.disabled)("disableRipple",i.disableRipple),_t("aria-haspopup",i.datepicker?"dialog":null)("aria-label",i.ariaLabel||i._intl.openCalendarLabel)("tabindex",i.disabled?-1:i.tabIndex),he(2),ge("ngIf",!i._customIcon))},directives:[Fi,hi],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),n})(),GV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[su,PV],imports:[[Ri,fv,yl,C7,nu,Gt],Xs]}),n})();function WV(n,t){}class Cv{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const YV={dialogContainer:li("dialogContainer",[fn("void, exit",ft({opacity:0,transform:"scale(0.7)"})),fn("enter",ft({transform:"none"})),gn("* => enter",F3([wn("150ms cubic-bezier(0, 0, 0.2, 1)",ft({transform:"none",opacity:1})),Ch("@*",wh(),{optional:!0})])),gn("* => void, * => exit",F3([wn("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",ft({opacity:0})),Ch("@*",wh(),{optional:!0})]))])};let qV=(()=>{class n extends $h{constructor(e,i,r,s,o,a,d,C){super(),this._elementRef=e,this._focusTrapFactory=i,this._changeDetectorRef=r,this._config=o,this._interactivityChecker=a,this._ngZone=d,this._focusMonitor=C,this._animationStateChanged=new Le,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=k=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(k)),this._ariaLabelledBy=o.ariaLabelledBy||null,this._document=s}_initializeWithAttachedContent(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Bc())}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const i=Bc(),r=this._elementRef.nativeElement;(!i||i===this._document.body||i===r||r.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=Bc();return e===i||e.contains(i)}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(Eg),V(an),V(Et,8),V(Cv),V(Mg),V(ct),V(as))},n.\u0275dir=De({type:n,viewQuery:function(e,i){if(1&e&&jt(Xo,7),2&e){let r;He(r=je())&&(i._portalOutlet=r.first)}},features:[Pe]}),n})(),KV=(()=>{class n extends qV{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:i}))}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_initializeWithAttachedContent(){super._initializeWithAttachedContent(),this._config.delayFocusTrap||this._trapFocus()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,i){1&e&&Ya("@dialogContainer.start",function(s){return i._onAnimationStart(s)})("@dialogContainer.done",function(s){return i._onAnimationDone(s)}),2&e&&(Gs("id",i._id),_t("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),Xa("@dialogContainer",i._state))},features:[Pe],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&ze(0,WV,0,0,"ng-template",0)},directives:[Xo],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[YV.dialogContainer]}}),n})(),XV=0;class ou{constructor(t,e,i="mat-dialog-"+XV++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new U,this._afterClosed=new U,this._beforeClosed=new U,this._state=0,e._id=i,e._animationStateChanged.pipe($t(r=>"opened"===r.state),ln(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe($t(r=>"closed"===r.state),ln(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe($t(r=>27===r.keyCode&&!this.disableClose&&!ai(r))).subscribe(r=>{r.preventDefault(),Dv(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Dv(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe($t(e=>"closing"===e.state),ln(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Dv(n,t,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=t),n.close(e)}const QV=new Ie("MatDialogData"),ZV=new Ie("mat-dialog-default-options"),cE=new Ie("mat-dialog-scroll-strategy"),eH={provide:cE,deps:[Ui],useFactory:function JV(n){return()=>n.scrollStrategies.block()}};let tH=(()=>{class n{constructor(e,i,r,s,o,a,d,C,k,N){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=s,this._overlayContainer=o,this._dialogRefConstructor=d,this._dialogContainerType=C,this._dialogDataToken=k,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new U,this._afterOpenedAtThisLevel=new U,this._ariaHiddenElements=new Map,this.afterAllClosed=Yo(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(jn(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){i=function nH(n,t){return Object.assign(Object.assign({},t),n)}(i,this._defaultOptions||new Cv),i.id&&this.getDialogById(i.id);const r=this._createOverlay(i),s=this._attachDialogContainer(r,i),o=this._attachDialogContent(e,s,r,i);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(()=>this._removeOpenDialog(o)),this.afterOpened.next(o),s._initializeWithAttachedContent(),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const i=this._getOverlayConfig(e);return this._overlay.create(i)}_getOverlayConfig(e){const i=new Qo({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachDialogContainer(e,i){const s=Dn.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Cv,useValue:i}]}),o=new qo(this._dialogContainerType,i.viewContainerRef,s,i.componentFactoryResolver);return e.attach(o).instance}_attachDialogContent(e,i,r,s){const o=new this._dialogRefConstructor(r,i,s.id);if(e instanceof kn)i.attachTemplatePortal(new Ko(e,null,{$implicit:s.data,dialogRef:o}));else{const a=this._createInjector(s,o,i),d=i.attachComponentPortal(new qo(e,s.viewContainerRef,a,s.componentFactoryResolver));o.componentInstance=d.instance}return o.updateSize(s.width,s.height).updatePosition(s.position),o}_createInjector(e,i,r){const s=e&&e.viewContainerRef&&e.viewContainerRef.injector,o=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:i}];return e.direction&&(!s||!s.get(fi,null,xt.Optional))&&o.push({provide:fi,useValue:{value:e.direction,change:Qe()}}),Dn.create({parent:s||this._injector,providers:o})}_removeOpenDialog(e){const i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,s)=>{r?s.setAttribute("aria-hidden",r):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let s=i[r];s!==e&&"SCRIPT"!==s.nodeName&&"STYLE"!==s.nodeName&&!s.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){Wa()},n.\u0275dir=De({type:n}),n})(),au=(()=>{class n extends tH{constructor(e,i,r,s,o,a,d,C){super(e,i,s,a,d,o,ou,KV,QV,C)}}return n.\u0275fac=function(e){return new(e||n)(ue(Ui),ue(Dn),ue(kc,8),ue(ZV,8),ue(cE),ue(n,12),ue(dv),ue(br,8))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),iH=0,uE=(()=>{class n{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=pE(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){Dv(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return n.\u0275fac=function(e){return new(e||n)(V(ou,8),V(nt),V(au))},n.\u0275dir=De({type:n,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,i){1&e&&Oe("click",function(s){return i._onButtonClick(s)}),2&e&&_t("aria-label",i.ariaLabel||null)("type",i.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[on]}),n})(),dE=(()=>{class n{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r,this.id="mat-dialog-title-"+iH++}ngOnInit(){this._dialogRef||(this._dialogRef=pE(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(V(ou,8),V(nt),V(au))},n.\u0275dir=De({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,i){2&e&&Gs("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),hE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),fE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n})();function pE(n,t){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?t.find(i=>i.id===e.id):null}let rH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[au,eH],imports:[[yl,nu,Gt],Gt]}),n})();const mE=new Ie("CdkAccordion");let sH=0,oH=(()=>{class n{constructor(e,i,r){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=r,this._openCloseAllSubscription=y.EMPTY,this.closed=new Le,this.opened=new Le,this.destroyed=new Le,this.expandedChange=new Le,this.id="cdk-accordion-child-"+sH++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((s,o)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===o&&this.id!==s&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=ht(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=ht(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(V(mE,12),V(an),V(ZC))},n.\u0275dir=De({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[lt([{provide:mE,useValue:void 0}])]}),n})(),aH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();const lH=["body"];function cH(n,t){}const uH=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],dH=["mat-expansion-panel-header","*","mat-action-row"];function hH(n,t){1&n&&yt(0,"span",2),2&n&&ge("@indicatorRotate",Ue()._getExpandedState())}const fH=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],pH=["mat-panel-title","mat-panel-description","*"],gE=new Ie("MAT_ACCORDION"),vE="225ms cubic-bezier(0.4,0.0,0.2,1)",_E={indicatorRotate:li("indicatorRotate",[fn("collapsed, void",ft({transform:"rotate(0deg)"})),fn("expanded",ft({transform:"rotate(180deg)"})),gn("expanded <=> collapsed, void => collapsed",wn(vE))]),bodyExpansion:li("bodyExpansion",[fn("collapsed, void",ft({height:"0px",visibility:"hidden"})),fn("expanded",ft({height:"*",visibility:"visible"})),gn("expanded <=> collapsed, void => collapsed",wn(vE))])};let mH=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(V(kn))},n.\u0275dir=De({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),gH=0;const yE=new Ie("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let bE=(()=>{class n extends oH{constructor(e,i,r,s,o,a,d){super(e,i,r),this._viewContainerRef=s,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new Le,this.afterCollapse=new Le,this._inputChanges=new U,this._headerId="mat-expansion-panel-header-"+gH++,this._bodyAnimationDone=new U,this.accordion=e,this._document=o,this._bodyAnimationDone.pipe(Vc((C,k)=>C.fromState===k.fromState&&C.toState===k.toState)).subscribe(C=>{"void"!==C.fromState&&("expanded"===C.toState?this.afterExpand.emit():"collapsed"===C.toState&&this.afterCollapse.emit())}),d&&(this.hideToggle=d.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=ht(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(jn(null),$t(()=>this.expanded&&!this._portal),ln(1)).subscribe(()=>{this._portal=new Ko(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(V(gE,12),V(an),V(ZC),V(On),V(Et),V(br,8),V(yE,8))},n.\u0275cmp=Ge({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,i,r){if(1&e&&Lt(r,mH,5),2&e){let s;He(s=je())&&(i._lazyContent=s.first)}},viewQuery:function(e,i){if(1&e&&jt(lH,5),2&e){let r;He(r=je())&&(i._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,i){2&e&&Nt("mat-expanded",i.expanded)("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[lt([{provide:gE,useValue:void 0}]),Pe,on],ngContentSelectors:dH,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,i){1&e&&(mn(uH),bt(0),oe(1,"div",0,1),Oe("@bodyExpansion.done",function(s){return i._bodyAnimationDone.next(s)}),oe(3,"div",2),bt(4,1),ze(5,cH,0,0,"ng-template",3),le(),bt(6,2),le()),2&e&&(he(1),ge("@bodyExpansion",i._getExpandedState())("id",i.id),_t("aria-labelledby",i._headerId),he(4),ge("cdkPortalOutlet",i._portal))},directives:[Xo],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}\n'],encapsulation:2,data:{animation:[_E.bodyExpansion]},changeDetection:0}),n})(),vH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),n})();class _H{}const yH=tv(_H);let bH=(()=>{class n extends yH{constructor(e,i,r,s,o,a,d){super(),this.panel=e,this._element=i,this._focusMonitor=r,this._changeDetectorRef=s,this._animationMode=a,this._parentChangeSubscription=y.EMPTY;const C=e.accordion?e.accordion._stateChanges.pipe($t(k=>!(!k.hideToggle&&!k.togglePosition))):Ys;this.tabIndex=parseInt(d||"")||0,this._parentChangeSubscription=Ae(e.opened,e.closed,C,e._inputChanges.pipe($t(k=>!!(k.hideToggle||k.disabled||k.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe($t(()=>e._containsFocus())).subscribe(()=>r.focusVia(i,"program")),o&&(this.expandedHeight=o.expandedHeight,this.collapsedHeight=o.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:ai(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(V(bE,1),V(nt),V(as),V(an),V(yE,8),V(br,8),dr("tabindex"))},n.\u0275cmp=Ge({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&Oe("click",function(){return i._toggle()})("keydown",function(s){return i._keydown(s)}),2&e&&(_t("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),Ai("height",i._getHeaderHeight()),Nt("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after","after"===i._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===i._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[Pe],ngContentSelectors:pH,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,i){1&e&&(mn(fH),oe(0,"span",0),bt(1),bt(2,1),bt(3,2),le(),ze(4,hH,1,1,"span",1)),2&e&&(he(4),ge("ngIf",i._showToggle()))},directives:[hi],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[_E.indicatorRotate]},changeDetection:0}),n})(),wH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),CH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Ri,Gt,aH,nu]]}),n})();function lo(n){return function(e){const i=new DH(n),r=e.lift(i);return i.caught=r}}class DH{constructor(t){this.selector=t}call(t,e){return e.subscribe(new MH(t,this.selector,this.caught))}}class MH extends Jt{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new ut(this);this.add(i);const r=kt(e,i);r!==i&&this.add(r)}}}function wE(n){return t=>t.lift(new EH(n))}class EH{constructor(t){this.callback=t}call(t,e){return e.subscribe(new SH(t,this.callback))}}class SH extends h{constructor(t,e){super(t),this.add(new y(e))}}const xH=["*"];let Xh;function lu(n){var t;return(null===(t=function kH(){if(void 0===Xh&&(Xh=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(Xh=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Xh}())||void 0===t?void 0:t.createHTML(n))||n}function CE(n){return Error(`Unable to find icon with the name "${n}"`)}function DE(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function ME(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class ta{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Qh=(()=>{class n{constructor(e,i,r,s){this._httpClient=e,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,s){return this._addSvgIconConfig(e,i,new ta(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,s){const o=this._sanitizer.sanitize(dn.HTML,r);if(!o)throw ME(r);const a=lu(o);return this._addSvgIconConfig(e,i,new ta("",a,s))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new ta(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const s=this._sanitizer.sanitize(dn.HTML,i);if(!s)throw ME(i);const o=lu(s);return this._addSvgIconSetConfig(e,new ta("",o,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(dn.RESOURCE_URL,e);if(!i)throw DE(e);const r=this._cachedIconsByUrl.get(i);return r?Qe(Zh(r)):this._loadSvgIconFromConfig(new ta(e,null)).pipe(ri(s=>this._cachedIconsByUrl.set(i,s)),L(s=>Zh(s)))}getNamedSvgIcon(e,i=""){const r=EE(i,e);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(e,o):Ro(CE(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Qe(Zh(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(L(i=>Zh(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?Qe(r):Zm(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(lo(a=>{const C=`Loading icon set URL: ${this._sanitizer.sanitize(dn.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(C)),Qe(null)})))).pipe(L(()=>{const o=this._extractIconWithNameFromAnySet(e,i);if(!o)throw CE(e);return o}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,e,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(ri(i=>e.svgText=i),L(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Qe(null):this._fetchIcon(e).pipe(ri(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const s=e.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(lu(""));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(lu("")),r=e.attributes;for(let s=0;slu(k)),wE(()=>this._inProgressUrlFetches.delete(a)),Ni());return this._inProgressUrlFetches.set(a,C),C}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(EE(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}}),SE=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],PH=SE.map(n=>`[${n}]`).join(", "),NH=/^url\(['"]?#(.*?)['"]?\)$/;let cu=(()=>{class n extends RH{constructor(e,i,r,s,o){super(e),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=y.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ht(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),i&&e.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(PH),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{const a=i[s],d=a.getAttribute(o),C=d?d.match(NH):null;if(C){let k=r.get(a);k||(k=[],r.set(a,k)),k.push({name:o,value:C[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(ln(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(Qh),dr("aria-hidden"),V(OH),V(Hs))},n.\u0275cmp=Ge({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(_t("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),Nt("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Pe],ngContentSelectors:xH,decls:1,vars:0,template:function(e,i){1&e&&(mn(),bt(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),LH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Gt],Gt]}),n})(),BH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Gt],Gt]}),n})();const Mv=["*"],VH=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],HH=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],kE=$o(oo(class{})),GH=oo(class{}),AE=new Ie("MatList"),TE=new Ie("MatNavList");let WH=(()=>{class n extends kE{constructor(){super(...arguments),this._stateChanges=new U}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[lt([{provide:TE,useExisting:n}]),Pe,on],ngContentSelectors:Mv,decls:1,vars:0,template:function(e,i){1&e&&(mn(),bt(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),n})(),Jh=(()=>{class n extends kE{constructor(e){super(),this._elementRef=e,this._stateChanges=new U,"action-list"===this._getListType()&&e.nativeElement.classList.add("mat-action-list")}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(V(nt))},n.\u0275cmp=Ge({type:n,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[lt([{provide:AE,useExisting:n}]),Pe,on],ngContentSelectors:Mv,decls:1,vars:0,template:function(e,i){1&e&&(mn(),bt(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),n})(),IE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),RE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),uu=(()=>{class n extends GH{constructor(e,i,r,s){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new U,this._disabled=!1,this._isInteractiveList=!!(r||s&&"action-list"===s._getListType()),this._list=r||s;const o=this._getHostElement();"button"===o.nodeName.toLowerCase()&&!o.hasAttribute("type")&&o.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Ut(this._destroyed)).subscribe(()=>{i.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=ht(e)}ngAfterContentInit(){!function MM(n,t,e="mat"){n.changes.pipe(jn(n)).subscribe(({length:i})=>{eu(t,`${e}-2-line`,!1),eu(t,`${e}-3-line`,!1),eu(t,`${e}-multi-line`,!1),2===i||3===i?eu(t,`${e}-${i}-line`,!0):i>3&&eu(t,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(an),V(TE,8),V(AE,8))},n.\u0275cmp=Ge({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,i,r){if(1&e&&(Lt(r,IE,5),Lt(r,RE,5),Lt(r,DM,5)),2&e){let s;He(s=je())&&(i._avatar=s.first),He(s=je())&&(i._icon=s.first),He(s=je())&&(i._lines=s)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,i){2&e&&Nt("mat-list-item-disabled",i.disabled)("mat-list-item-avatar",i._avatar||i._icon)("mat-list-item-with-avatar",i._avatar||i._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[Pe],ngContentSelectors:HH,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,i){1&e&&(mn(VH),oe(0,"span",0),yt(1,"span",1),bt(2),oe(3,"span",2),bt(4,1),le(),bt(5,2),le()),2&e&&(he(1),ge("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()))},directives:[_l],encapsulation:2,changeDetection:0}),n})(),ZH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[EM,zh,Gt,sv,Ri],EM,Gt,sv,BH]}),n})();const JH=["mat-menu-item",""];function ej(n,t){1&n&&($l(),oe(0,"svg",2),yt(1,"polygon",3),le())}const FE=["*"];function tj(n,t){if(1&n){const e=In();oe(0,"div",0),Oe("keydown",function(r){return Qt(e),Ue()._handleKeydown(r)})("click",function(){return Qt(e),Ue().closed.emit("click")})("@transformMenu.start",function(r){return Qt(e),Ue()._onAnimationStart(r)})("@transformMenu.done",function(r){return Qt(e),Ue()._onAnimationDone(r)}),oe(1,"div",1),bt(2),le()()}if(2&n){const e=Ue();ge("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),_t("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const ef={transformMenu:li("transformMenu",[fn("void",ft({opacity:0,transform:"scale(0.8)"})),gn("void => enter",wn("120ms cubic-bezier(0, 0, 0.2, 1)",ft({opacity:1,transform:"scale(1)"}))),gn("* => void",wn("100ms 25ms linear",ft({opacity:0})))]),fadeInItems:li("fadeInItems",[fn("showing",ft({opacity:1})),gn("void => *",[ft({opacity:0}),wn("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},nj=new Ie("MatMenuContent"),Ev=new Ie("MAT_MENU_PANEL"),ij=oo($o(class{}));let tf=(()=>{class n extends ij{constructor(e,i,r,s,o){var a;super(),this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=s,this._changeDetectorRef=o,this.role="menuitem",this._hovered=new U,this._focused=new U,this._highlighted=!1,this._triggersSubmenu=!1,null===(a=null==s?void 0:s.addItem)||void 0===a||a.call(s,this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const i=this._elementRef.nativeElement.cloneNode(!0),r=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class n{constructor(e,i,r,s){this._elementRef=e,this._ngZone=i,this._defaultOptions=r,this._changeDetectorRef=s,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new xo,this._tabSubscription=y.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new U,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Le,this.close=this.closed,this.panelId="mat-menu-panel-"+sj++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=ht(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ht(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new E3(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(jn(this._directDescendantItems),Xn(e=>Ae(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var i;const r=this._keyManager;if("enter"===this._panelAnimationState&&(null===(i=r.activeItem)||void 0===i?void 0:i._hasFocus())){const s=e.toArray(),o=Math.max(0,Math.min(s.length-1,r.activeItemIndex||0));s[o]&&!s[o].disabled?r.setActiveItem(o):r.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(jn(this._directDescendantItems),Xn(i=>Ae(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:ai(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe(ln(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,s=Object.keys(this._classList).find(o=>o.startsWith(this._elevationPrefix));(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){var r;const s=this._classList;s["mat-menu-before"]="before"===e,s["mat-menu-after"]="after"===e,s["mat-menu-above"]="above"===i,s["mat-menu-below"]="below"===i,null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(jn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(ct),V(PE),V(an))},n.\u0275dir=De({type:n,contentQueries:function(e,i,r){if(1&e&&(Lt(r,nj,5),Lt(r,tf,5),Lt(r,tf,4)),2&e){let s;He(s=je())&&(i.lazyContent=s.first),He(s=je())&&(i._allItems=s),He(s=je())&&(i.items=s)}},viewQuery:function(e,i){if(1&e&&jt(kn,5),2&e){let r;He(r=je())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),oj=(()=>{class n extends du{constructor(e,i,r,s){super(e,i,r,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(ct),V(PE),V(an))},n.\u0275cmp=Ge({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&_t("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[lt([{provide:Ev,useExisting:n}]),Pe],ngContentSelectors:FE,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,i){1&e&&(mn(),ze(0,tj,3,6,"ng-template"))},directives:[rl],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[ef.transformMenu,ef.fadeInItems]},changeDetection:0}),n})();const NE=new Ie("mat-menu-scroll-strategy"),lj={provide:NE,deps:[Ui],useFactory:function aj(n){return()=>n.scrollStrategies.reposition()}},BE=ll({passive:!0});let cj=(()=>{class n{constructor(e,i,r,s,o,a,d,C,k){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=d,this._focusMonitor=C,this._ngZone=k,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=y.EMPTY,this._hoverSubscription=y.EMPTY,this._menuCloseSubscription=y.EMPTY,this._handleTouchStart=N=>{xg(N)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Le,this.onMenuOpen=this.menuOpened,this.menuClosed=new Le,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=o instanceof du?o:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,BE),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,BE),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),i=e.getConfig(),r=i.positionStrategy;this._setPosition(r),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof du&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(Ut(this.menu.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof du?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe($t(r=>"void"===r.toState),ln(1),Ut(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,i=this.menu.parentMenu;for(;i;)e++,i=i.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Qo({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(i=>{const r="start"===i.connectionPair.overlayX?"after":"before",s="top"===i.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(r,s)):this.menu.setPositionClasses(r,s)})}_setPosition(e){let[i,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[s,o]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,d]=[s,o],[C,k]=[i,r],N=0;this.triggersSubmenu()?(k=i="before"===this.menu.xPosition?"start":"end",r=C="end"===i?"start":"end",N="bottom"===s?8:-8):this.menu.overlapTrigger||(a="top"===s?"bottom":"top",d="top"===o?"bottom":"top"),e.withPositions([{originX:i,originY:a,overlayX:C,overlayY:s,offsetY:N},{originX:r,originY:a,overlayX:k,overlayY:s,offsetY:N},{originX:i,originY:d,overlayX:C,overlayY:o,offsetY:-N},{originX:r,originY:d,overlayX:k,overlayY:o,offsetY:-N}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Ae(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Qe(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe($t(o=>o!==this._menuItemInstance),$t(()=>this._menuOpen)):Qe(),i)}_handleMousedown(e){Sg(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe($t(e=>e===this._menuItemInstance&&!e.disabled),Yh(0,Hm)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof du&&this.menu._isAnimating?this.menu._animationDone.pipe(ln(1),Yh(0,Hm),Ut(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Ko(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(V(Ui),V(nt),V(On),V(NE),V(Ev,8),V(tf,10),V(fi,8),V(as),V(ct))},n.\u0275dir=De({type:n,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(e,i){1&e&&Oe("click",function(s){return i._handleClick(s)})("mousedown",function(s){return i._handleMousedown(s)})("keydown",function(s){return i._handleKeydown(s)}),2&e&&_t("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),uj=(()=>{class n extends cj{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Pe]}),n})(),dj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[lj],imports:[[Ri,Gt,zh,yl],Xs,Gt]}),n})();const hj=["primaryValueBar"],fj=Go(class{constructor(n){this._elementRef=n}},"primary"),pj=new Ie("mat-progress-bar-location",{providedIn:"root",factory:function mj(){const n=ec(Et),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),gj=new Ie("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let vj=0,VE=(()=>{class n extends fj{constructor(e,i,r,s,o,a){super(e),this._ngZone=i,this._animationMode=r,this._changeDetectorRef=a,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new Le,this._animationEndSubscription=y.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+vj++;const d=s?s.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${d}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===r,o&&(o.color&&(this.color=this.defaultColor=o.color),this.mode=o.mode||this.mode)}get value(){return this._value}set value(e){var i;this._value=HE(gr(e)||0),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(e){var i;this._bufferValue=HE(e||0),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=this._primaryValueBar.nativeElement;this._animationEndSubscription=Hr(e,"transitionend").pipe($t(i=>i.target===e)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(ct),V(br,8),V(pj,8),V(gj,8),V(an))},n.\u0275cmp=Ge({type:n,selectors:[["mat-progress-bar"]],viewQuery:function(e,i){if(1&e&&jt(hj,5),2&e){let r;He(r=je())&&(i._primaryValueBar=r.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(e,i){2&e&&(_t("aria-valuenow","indeterminate"===i.mode||"query"===i.mode?null:i.value)("mode",i.mode),Nt("_mat-animation-noopable",i._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[Pe],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(e,i){1&e&&(oe(0,"div",0),$l(),oe(1,"svg",1)(2,"defs")(3,"pattern",2),yt(4,"circle",3),le()(),yt(5,"rect",4),le(),d0(),yt(6,"div",5)(7,"div",6,7)(9,"div",8),le()),2&e&&(he(3),ge("id",i.progressbarId),he(2),_t("fill",i._rectangleFillValue),he(1),ge("ngStyle",i._bufferTransform()),he(1),ge("ngStyle",i._primaryTransform()))},directives:[Em],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),n})();function HE(n,t=0,e=100){return Math.max(t,Math.min(e,n))}let _j=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Ri,Gt],Gt]}),n})();const yj=["trigger"],bj=["panel"];function wj(n,t){if(1&n&&(oe(0,"span",8),we(1),le()),2&n){const e=Ue();he(1),xn(e.placeholder)}}function Cj(n,t){if(1&n&&(oe(0,"span",12),we(1),le()),2&n){const e=Ue(2);he(1),xn(e.triggerValue)}}function Dj(n,t){1&n&&bt(0,0,["*ngSwitchCase","true"])}function Mj(n,t){1&n&&(oe(0,"span",9),ze(1,Cj,2,1,"span",10),ze(2,Dj,1,0,"ng-content",11),le()),2&n&&(ge("ngSwitch",!!Ue().customTrigger),he(2),ge("ngSwitchCase",!0))}function Ej(n,t){if(1&n){const e=In();oe(0,"div",13)(1,"div",14,15),Oe("@transformPanel.done",function(r){return Qt(e),Ue()._panelDoneAnimatingStream.next(r.toState)})("keydown",function(r){return Qt(e),Ue()._handleKeydown(r)}),bt(3,1),le()()}if(2&n){const e=Ue();ge("@transformPanelWrap",void 0),he(1),aw("mat-select-panel ",e._getPanelTheme(),""),Ai("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),ge("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),_t("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const Sj=[[["mat-select-trigger"]],"*"],xj=["mat-select-trigger","*"],jE={transformPanelWrap:li("transformPanelWrap",[gn("* => void",Ch("@transformPanel",[wh()],{optional:!0}))]),transformPanel:li("transformPanel",[fn("void",ft({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),fn("showing",ft({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),fn("showing-multiple",ft({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),gn("void => *",wn("120ms cubic-bezier(0, 0, 0.2, 1)")),gn("* => void",wn("100ms 25ms linear",ft({opacity:0})))])};let zE=0;const $E=new Ie("mat-select-scroll-strategy"),Ij=new Ie("MAT_SELECT_CONFIG"),Rj={provide:$E,deps:[Ui],useFactory:function Tj(n){return()=>n.scrollStrategies.reposition()}};class Oj{constructor(t,e){this.source=t,this.value=e}}const Fj=oo(tv($o(CM(class{constructor(n,t,e,i,r){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r}})))),Pj=new Ie("MatSelectTrigger");let Nj=(()=>{class n extends Fj{constructor(e,i,r,s,o,a,d,C,k,N,G,X,re,de){var ve,Me,pe;super(o,s,d,C,N),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=a,this._parentFormField=k,this._liveAnnouncer=re,this._defaultOptions=de,this._panelOpen=!1,this._compareWith=(Ne,it)=>Ne===it,this._uid="mat-select-"+zE++,this._triggerAriaLabelledBy=null,this._destroy=new U,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+zE++,this._panelDoneAnimatingStream=new U,this._overlayPanelClass=(null===(ve=this._defaultOptions)||void 0===ve?void 0:ve.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(pe=null===(Me=this._defaultOptions)||void 0===Me?void 0:Me.disableOptionCentering)&&void 0!==pe&&pe,this.ariaLabel="",this.optionSelectionChanges=Yo(()=>{const Ne=this.options;return Ne?Ne.changes.pipe(jn(Ne),Xn(()=>Ae(...Ne.map(it=>it.onSelectionChange)))):this._ngZone.onStable.pipe(ln(1),Xn(()=>this.optionSelectionChanges))}),this.openedChange=new Le,this._openedStream=this.openedChange.pipe($t(Ne=>Ne),L(()=>{})),this._closedStream=this.openedChange.pipe($t(Ne=>!Ne),L(()=>{})),this.selectionChange=new Le,this.valueChange=new Le,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==de?void 0:de.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=de.typeaheadDebounceInterval),this._scrollStrategyFactory=X,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(G)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,i,r,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(Jm.required))&&void 0!==s&&s}set required(e){this._required=ht(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=ht(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=ht(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=gr(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Gm(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Vc(),Ut(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Ut(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(jn(null),Ut(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,s=13===i||32===i,o=this._keyManager;if(!o.isTyping()&&s&&!ai(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;o.onKeydown(e);const d=this.selected;d&&a!==d&&this._liveAnnouncer.announce(d.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,s=40===r||38===r,o=i.isTyping();if(s&&e.altKey)e.preventDefault(),this.close();else if(o||13!==r&&32!==r||!i.activeItem||ai(e))if(!o&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(d=>!d.disabled&&!d.selected);this.options.forEach(d=>{d.disabled||(a?d.select():d.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&s&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(ln(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch(s){return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new M3(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ut(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Ut(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=Ae(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ut(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Ae(...this.options.map(i=>i._stateChanges)).pipe(Ut(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(V(Po),V(an),V(ct),V(iv),V(nt),V(fi,8),V(Es,8),V(qc,8),V(iu,8),V(os,10),dr("tabindex"),V($E),V(kg),V(Ij,8))},n.\u0275dir=De({type:n,viewQuery:function(e,i){if(1&e&&(jt(yj,5),jt(bj,5),jt(UM,5)),2&e){let r;He(r=je())&&(i.trigger=r.first),He(r=je())&&(i.panel=r.first),He(r=je())&&(i._overlayDir=r.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Pe,on]}),n})(),GE=(()=>{class n extends Nj{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,r){const s=this._getItemHeight();return Math.min(Math.max(0,s*e-i+s/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Ut(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(ln(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=lv(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:IM((e+i)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new Oj(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),r=this._isRtl(),s=this.multiple?56:32;let o;if(this.multiple)o=40;else if(this.disableOptionCentering)o=16;else{let C=this._selectionModel.selected[0]||this.options.first;o=C&&C.group?32:16}r||(o*=-1);const a=0-(e.left+o-(r?s:0)),d=e.right+o-i.width+(r?0:s);a>0?o+=a+8:d>0&&(o-=d+8),this._overlayDir.offsetX=Math.round(o),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,r){const s=this._getItemHeight(),o=(s-this._triggerRect.height)/2,a=Math.floor(256/s);let d;return this.disableOptionCentering?0:(d=0===this._scrollTop?e*s:this._scrollTop===r?(e-(this._getItemCount()-a))*s+(s-(this._getItemCount()*s-256)%s):i-s/2,Math.round(-1*d-o))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),s=this._triggerRect.top-8,o=r.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),C=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;C>o?this._adjustPanelUp(C,o):a>s?this._adjustPanelDown(a,s,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const r=Math.round(e-i);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,r){const s=Math.round(e-i);if(this._scrollTop+=s,this._offsetY+=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),r=Math.min(i*e,256),o=i*e-r;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=lv(a,this.options,this.optionGroups);const d=r/2;this._scrollTop=this._calculateOverlayScroll(a,d,o),this._offsetY=this._calculateOverlayOffsetY(a,d,o),this._checkOverlayWithinViewport(o)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(Lt(r,Pj,5),Lt(r,tu,5),Lt(r,av,5)),2&e){let s;He(s=je())&&(i.customTrigger=s.first),He(s=je())&&(i.options=s),He(s=je())&&(i.optionGroups=s)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,i){1&e&&Oe("keydown",function(s){return i._handleKeydown(s)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(_t("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-describedby",i._ariaDescribedby||null)("aria-activedescendant",i._getAriaActiveDescendant()),Nt("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[lt([{provide:Gh,useExisting:n},{provide:ov,useExisting:n}]),Pe],ngContentSelectors:xj,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(mn(Sj),oe(0,"div",0,1),Oe("click",function(){return i.toggle()}),oe(3,"div",2),ze(4,wj,2,1,"span",3),ze(5,Mj,3,2,"span",4),le(),oe(6,"div",5),yt(7,"div",6),le()(),ze(8,Ej,4,14,"ng-template",7),Oe("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=Us(1);_t("aria-owns",i.panelOpen?i.id+"-panel":null),he(3),ge("ngSwitch",i.empty),_t("id",i._valueId),he(1),ge("ngSwitchCase",!0),he(1),ge("ngSwitchCase",!1),he(3),ge("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},directives:[zM,sl,Ud,pC,UM,rl],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[jE.transformPanelWrap,jE.transformPanel]},changeDetection:0}),n})(),Lj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[Rj],imports:[[Ri,yl,Uh,Gt],Xs,Wh,Uh,Gt]}),n})();function WE(n){return t=>t.lift(new Bj(n))}class Bj{constructor(t){this.value=t}call(t,e){return e.subscribe(new Vj(t,this.value))}}class Vj extends h{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}const rf=["*"],Hj=["content"];function jj(n,t){if(1&n){const e=In();oe(0,"div",2),Oe("click",function(){return Qt(e),Ue()._onBackdropClicked()}),le()}2&n&&Nt("mat-drawer-shown",Ue()._isShowingBackdrop())}function zj(n,t){1&n&&(oe(0,"mat-drawer-content"),bt(1,2),le())}const Uj=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],$j=["mat-drawer","mat-drawer-content","*"];function Gj(n,t){if(1&n){const e=In();oe(0,"div",2),Oe("click",function(){return Qt(e),Ue()._onBackdropClicked()}),le()}2&n&&Nt("mat-drawer-shown",Ue()._isShowingBackdrop())}function Wj(n,t){1&n&&(oe(0,"mat-sidenav-content"),bt(1,2),le())}const Yj=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],qj=["mat-sidenav","mat-sidenav-content","*"],YE={transformDrawer:li("transform",[fn("open, open-instant",ft({transform:"none",visibility:"visible"})),fn("void",ft({"box-shadow":"none",visibility:"hidden"})),gn("void => open-instant",wn("0ms")),gn("void <=> open, open-instant => void",wn("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Xj=new Ie("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Qj(){return!1}}),Sv=new Ie("MAT_DRAWER_CONTAINER");let sf=(()=>{class n extends Ks{constructor(e,i,r,s,o){super(r,s,o),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(V(an),V(Ot(()=>KE)),V(nt),V(ul),V(ct))},n.\u0275cmp=Ge({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,i){2&e&&Ai("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[lt([{provide:Ks,useExisting:n}]),Pe],ngContentSelectors:rf,decls:1,vars:0,template:function(e,i){1&e&&(mn(),bt(0))},encapsulation:2,changeDetection:0}),n})(),qE=(()=>{class n{constructor(e,i,r,s,o,a,d,C){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=r,this._platform=s,this._ngZone=o,this._interactivityChecker=a,this._doc=d,this._container=C,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new U,this._animationEnd=new U,this._animationState="void",this.openedChange=new Le(!0),this._openedStream=this.openedChange.pipe($t(k=>k),L(()=>{})),this.openedStart=this._animationStarted.pipe($t(k=>k.fromState!==k.toState&&0===k.toState.indexOf("open")),WE(void 0)),this._closedStream=this.openedChange.pipe($t(k=>!k),L(()=>{})),this.closedStart=this._animationStarted.pipe($t(k=>k.fromState!==k.toState&&"void"===k.toState),WE(void 0)),this._destroyed=new U,this.onPositionChanged=new Le,this._modeChanged=new U,this.openedChange.subscribe(k=>{k?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Hr(this._elementRef.nativeElement,"keydown").pipe($t(k=>27===k.keyCode&&!this.disableClose&&!ai(k)),Ut(this._destroyed)).subscribe(k=>this._ngZone.run(()=>{this.close(),k.stopPropagation(),k.preventDefault()}))}),this._animationEnd.pipe(Vc((k,N)=>k.fromState===N.fromState&&k.toState===N.toState)).subscribe(k=>{const{fromState:N,toState:G}=k;(0===G.indexOf("open")&&"void"===N||"void"===G&&0===N.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=ht(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=ht(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(ht(e))}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{!i&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,i){e&&i&&(this._openedVia=i);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(s=>{this.openedChange.pipe(ln(1)).subscribe(o=>s(o?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const i=this._elementRef.nativeElement,r=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(Eg),V(as),V($n),V(ct),V(Mg),V(Et,8),V(Sv,8))},n.\u0275cmp=Ge({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,i){if(1&e&&jt(Hj,5),2&e){let r;He(r=je())&&(i._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,i){1&e&&Ya("@transform.start",function(s){return i._animationStarted.next(s)})("@transform.done",function(s){return i._animationEnd.next(s)}),2&e&&(_t("align",null),Xa("@transform",i._animationState),Nt("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:rf,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(mn(),oe(0,"div",0,1),bt(2),le())},directives:[Ks],encapsulation:2,data:{animation:[YE.transformDrawer]},changeDetection:0}),n})(),KE=(()=>{class n{constructor(e,i,r,s,o,a=!1,d){this._dir=e,this._element=i,this._ngZone=r,this._changeDetectorRef=s,this._animationMode=d,this._drawers=new xo,this.backdropClick=new Le,this._destroyed=new U,this._doCheckSubject=new U,this._contentMargins={left:null,right:null},this._contentMarginChanges=new U,e&&e.change.pipe(Ut(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),o.change().pipe(Ut(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=a}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=ht(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:ht(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(jn(this._allDrawers),Ut(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(jn(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Pc(10),Ut(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,i-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();i+=r,e-=r}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe($t(i=>i.fromState!==i.toState),Ut(this._drawers.changes)).subscribe(i=>{"open-instant"!==i.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Ut(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(Ut(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(ln(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Ut(Ae(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return n.\u0275fac=function(e){return new(e||n)(V(fi,8),V(nt),V(ct),V(an),V(Po),V(Xj),V(br,8))},n.\u0275cmp=Ge({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,i,r){if(1&e&&(Lt(r,sf,5),Lt(r,qE,5)),2&e){let s;He(s=je())&&(i._content=s.first),He(s=je())&&(i._allDrawers=s)}},viewQuery:function(e,i){if(1&e&&jt(sf,5),2&e){let r;He(r=je())&&(i._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,i){2&e&&Nt("mat-drawer-container-explicit-backdrop",i._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[lt([{provide:Sv,useExisting:n}])],ngContentSelectors:$j,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(mn(Uj),ze(0,jj,1,2,"div",0),bt(1),bt(2,1),ze(3,zj,2,0,"mat-drawer-content",1)),2&e&&(ge("ngIf",i.hasBackdrop),he(3),ge("ngIf",!i._content))},directives:[sf,hi],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),n})(),xv=(()=>{class n extends sf{constructor(e,i,r,s,o){super(e,i,r,s,o)}}return n.\u0275fac=function(e){return new(e||n)(V(an),V(Ot(()=>QE)),V(nt),V(ul),V(ct))},n.\u0275cmp=Ge({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,i){2&e&&Ai("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[lt([{provide:Ks,useExisting:n}]),Pe],ngContentSelectors:rf,decls:1,vars:0,template:function(e,i){1&e&&(mn(),bt(0))},encapsulation:2,changeDetection:0}),n})(),XE=(()=>{class n extends qE{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=ht(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=gr(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=gr(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,i){2&e&&(_t("align",null),Ai("top",i.fixedInViewport?i.fixedTopGap:null,"px")("bottom",i.fixedInViewport?i.fixedBottomGap:null,"px"),Nt("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened)("mat-sidenav-fixed",i.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Pe],ngContentSelectors:rf,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(mn(),oe(0,"div",0,1),bt(2),le())},directives:[Ks],encapsulation:2,data:{animation:[YE.transformDrawer]},changeDetection:0}),n})(),QE=(()=>{class n extends KE{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,i,r){if(1&e&&(Lt(r,xv,5),Lt(r,XE,5)),2&e){let s;He(s=je())&&(i._content=s.first),He(s=je())&&(i._allDrawers=s)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,i){2&e&&Nt("mat-drawer-container-explicit-backdrop",i._backdropOverride)},exportAs:["matSidenavContainer"],features:[lt([{provide:Sv,useExisting:n}]),Pe],ngContentSelectors:qj,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(mn(Yj),ze(0,Gj,1,2,"div",0),bt(1),bt(2,1),ze(3,Wj,2,0,"mat-sidenav-content",1)),2&e&&(ge("ngIf",i.hasBackdrop),he(3),ge("ngIf",!i._content))},directives:[xv,hi],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),n})(),Zj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Ri,Gt,Xs],Xs,Gt]}),n})();const Jj=["sliderWrapper"],wr=ll({passive:!1}),rz={provide:ji,useExisting:Ot(()=>ZE),multi:!0};class sz{}const oz=tv(Go($o(class{constructor(n){this._elementRef=n}}),"accent"));let ZE=(()=>{class n extends oz{constructor(e,i,r,s,o,a,d,C){super(e),this._focusMonitor=i,this._changeDetectorRef=r,this._dir=s,this._ngZone=a,this._animationMode=C,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new Le,this.input=new Le,this.valueChange=new Le,this.onTouched=()=>{},this._percent=0,this._isSliding=null,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=y.EMPTY,this._pointerDown=k=>{this.disabled||this._isSliding||!fu(k)&&0!==k.button||this._ngZone.run(()=>{this._touchId=fu(k)?function az(n,t){for(let e=0;e{if("pointer"===this._isSliding){const N=eS(k,this._touchId);if(N){k.preventDefault();const G=this.value;this._lastPointerEvent=k,this._updateValueFromPosition(N),G!=this.value&&this._emitInputEvent()}}},this._pointerUp=k=>{"pointer"===this._isSliding&&(!fu(k)||"number"!=typeof this._touchId||kv(k.changedTouches,this._touchId))&&(k.preventDefault(),this._removeGlobalEvents(),this._isSliding=null,this._touchId=void 0,this._valueOnSlideStart!=this.value&&!this.disabled&&this._emitChangeEvent(),this._valueOnSlideStart=this._lastPointerEvent=null)},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=d,this.tabIndex=parseInt(o)||0,a.runOutsideAngular(()=>{const k=e.nativeElement;k.addEventListener("mousedown",this._pointerDown,wr),k.addEventListener("touchstart",this._pointerDown,wr)})}get invert(){return this._invert}set invert(e){this._invert=ht(e)}get max(){return this._max}set max(e){this._max=gr(e,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(e){this._min=gr(e,this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(e){this._step=gr(e,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(e){this._thumbLabel=ht(e)}get tickInterval(){return this._tickInterval}set tickInterval(e){this._tickInterval="auto"===e?"auto":"number"==typeof e||"string"==typeof e?gr(e,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(e){if(e!==this._value){let i=gr(e,0);this._roundToDecimal&&i!==this.min&&i!==this.max&&(i=parseFloat(i.toFixed(this._roundToDecimal))),this._value=i,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(e){this._vertical=ht(e)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(e){this._focusHostElement(e)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const i=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${i})`}}_getTrackFillStyles(){const e=this.percent,r=this.vertical?`1, ${e}, 1`:`${e}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${r})`,display:0===e?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let e=100*this._tickIntervalPercent,a={backgroundSize:this.vertical?`2px ${e}%`:`${e}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${e/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const d=this._shouldInvertAxis();let C;C=this.vertical?d?"Bottom":"Top":d?"Right":"Left",a[`padding${C}`]=`${this._getThumbGap()}px`}return a}_getThumbContainerStyles(){const e=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?e:!e)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const e=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?e:!e}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{this._isActive=!!e&&"keyboard"!==e,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mousedown",this._pointerDown,wr),e.removeEventListener("touchstart",this._pointerDown,wr),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(e){if(this.disabled||ai(e)||this._isSliding&&"keyboard"!==this._isSliding)return;const i=this.value;switch(e.keyCode){case 33:this._increment(10);break;case 34:this._increment(-10);break;case 35:this.value=this.max;break;case 36:this.value=this.min;break;case 37:this._increment("rtl"==this._getDirection()?1:-1);break;case 38:this._increment(1);break;case 39:this._increment("rtl"==this._getDirection()?-1:1);break;case 40:this._increment(-1);break;default:return}i!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding="keyboard",e.preventDefault()}_onKeyup(){"keyboard"===this._isSliding&&(this._isSliding=null)}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(e){const i=this._document,r=fu(e),o=r?"touchend":"mouseup";i.addEventListener(r?"touchmove":"mousemove",this._pointerMove,wr),i.addEventListener(o,this._pointerUp,wr),r&&i.addEventListener("touchcancel",this._pointerUp,wr);const a=this._getWindow();void 0!==a&&a&&a.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const e=this._document;e.removeEventListener("mousemove",this._pointerMove,wr),e.removeEventListener("mouseup",this._pointerUp,wr),e.removeEventListener("touchmove",this._pointerMove,wr),e.removeEventListener("touchend",this._pointerUp,wr),e.removeEventListener("touchcancel",this._pointerUp,wr);const i=this._getWindow();void 0!==i&&i&&i.removeEventListener("blur",this._windowBlur)}_increment(e){const i=this._clamp(this.value||0,this.min,this.max);this.value=this._clamp(i+this.step*e,this.min,this.max)}_updateValueFromPosition(e){if(!this._sliderDimensions)return;let o=this._clamp(((this.vertical?e.y:e.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(o=1-o),0===o)this.value=this.min;else if(1===o)this.value=this.max;else{const a=this._calculateValue(o),d=Math.round((a-this.min)/this.step)*this.step+this.min;this.value=this._clamp(d,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(!this.tickInterval||!this._sliderDimensions)return;let e;if("auto"==this.tickInterval){let i=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width;e=Math.ceil(30/(i*this.step/(this.max-this.min)))*this.step/i}else e=this.tickInterval*this.step/(this.max-this.min);this._tickIntervalPercent=JE(e)?e:0}_createChangeEvent(e=this.value){let i=new sz;return i.source=this,i.value=e,i}_calculatePercentage(e){const i=((e||0)-this.min)/(this.max-this.min);return JE(i)?i:0}_calculateValue(e){return this.min+e*(this.max-this.min)}_clamp(e,i=0,r=1){return Math.max(i,Math.min(e,r))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(e){this._elementRef.nativeElement.focus(e)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(e){this.value=e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V(as),V(an),V(fi,8),dr("tabindex"),V(ct),V(Et),V(br,8))},n.\u0275cmp=Ge({type:n,selectors:[["mat-slider"]],viewQuery:function(e,i){if(1&e&&jt(Jj,5),2&e){let r;He(r=je())&&(i._sliderWrapper=r.first)}},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:29,hostBindings:function(e,i){1&e&&Oe("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()})("keydown",function(s){return i._onKeydown(s)})("keyup",function(){return i._onKeyup()})("mouseenter",function(){return i._onMouseenter()})("selectstart",function(s){return s.preventDefault()}),2&e&&(Gs("tabIndex",i.tabIndex),_t("aria-disabled",i.disabled)("aria-valuemax",i.max)("aria-valuemin",i.min)("aria-valuenow",i.value)("aria-valuetext",null==i.valueText?i.displayValue:i.valueText)("aria-orientation",i.vertical?"vertical":"horizontal"),Nt("mat-slider-disabled",i.disabled)("mat-slider-has-ticks",i.tickInterval)("mat-slider-horizontal",!i.vertical)("mat-slider-axis-inverted",i._shouldInvertAxis())("mat-slider-invert-mouse-coords",i._shouldInvertMouseCoords())("mat-slider-sliding",i._isSliding)("mat-slider-thumb-label-showing",i.thumbLabel)("mat-slider-vertical",i.vertical)("mat-slider-min-value",i._isMinValue())("mat-slider-hide-last-tick",i.disabled||i._isMinValue()&&i._getThumbGap()&&i._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",value:"value",displayWith:"displayWith",valueText:"valueText",vertical:"vertical"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[lt([rz]),Pe],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(e,i){1&e&&(oe(0,"div",0,1)(2,"div",2),yt(3,"div",3)(4,"div",4),le(),oe(5,"div",5),yt(6,"div",6),le(),oe(7,"div",7),yt(8,"div",8)(9,"div",9),oe(10,"div",10)(11,"span",11),we(12),le()()()()),2&e&&(he(3),ge("ngStyle",i._getTrackBackgroundStyles()),he(1),ge("ngStyle",i._getTrackFillStyles()),he(1),ge("ngStyle",i._getTicksContainerStyles()),he(1),ge("ngStyle",i._getTicksStyles()),he(1),ge("ngStyle",i._getThumbContainerStyles()),he(5),xn(i.displayValue))},directives:[Em],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:grabbing}.mat-slider-wrapper{-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{-webkit-background-clip:content-box;background-clip:content-box;background-repeat:repeat;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\n'],encapsulation:2,changeDetection:0}),n})();function JE(n){return!isNaN(n)&&isFinite(n)}function fu(n){return"t"===n.type[0]}function eS(n,t){let e;return e=fu(n)?"number"==typeof t?kv(n.touches,t)||kv(n.changedTouches,t):n.touches[0]||n.changedTouches[0]:n,e?{x:e.clientX,y:e.clientY}:void 0}function kv(n,t){for(let e=0;e{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Ri,Gt],Gt]}),n})();function cz(n,t){if(1&n){const e=In();oe(0,"div",2)(1,"button",3),Oe("click",function(){return Qt(e),Ue().action()}),we(2),le()()}if(2&n){const e=Ue();he(2),xn(e.data.action)}}function uz(n,t){}const tS=new Ie("MatSnackBarData");class of{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const dz=Math.pow(2,31)-1;class Av{constructor(t,e){this._overlayRef=e,this._afterDismissed=new U,this._afterOpened=new U,this._onAction=new U,this._dismissedByAction=!1,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,dz))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let hz=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return n.\u0275fac=function(e){return new(e||n)(V(Av),V(tS))},n.\u0275cmp=Ge({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(oe(0,"span",0),we(1),le(),ze(2,cz,3,1,"div",1)),2&e&&(he(1),xn(i.data.message),he(1),ge("ngIf",i.hasAction))},directives:[Fi,hi],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),n})();const fz={snackBarState:li("state",[fn("void, hidden",ft({transform:"scale(0.8)",opacity:0})),fn("visible",ft({transform:"scale(1)",opacity:1})),gn("* => visible",wn("150ms cubic-bezier(0, 0, 0.2, 1)")),gn("* => void, * => hidden",wn("75ms cubic-bezier(0.4, 0.0, 1, 1)",ft({opacity:0})))])};let pz=(()=>{class n extends $h{constructor(e,i,r,s,o){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=s,this.snackBarConfig=o,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new U,this._onExit=new U,this._onEnter=new U,this._animationState="void",this.attachDomPortal=a=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(a)),this._live="assertive"!==o.politeness||o.announcementMessage?"off"===o.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const s=this._onEnter;this._ngZone.run(()=>{s.next(),s.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(ln(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_applySnackBarClasses(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),null==r||r.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return n.\u0275fac=function(e){return new(e||n)(V(ct),V(nt),V(an),V($n),V(of))},n.\u0275cmp=Ge({type:n,selectors:[["snack-bar-container"]],viewQuery:function(e,i){if(1&e&&jt(Xo,7),2&e){let r;He(r=je())&&(i._portalOutlet=r.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&Ya("@state.done",function(s){return i.onAnimationEnd(s)}),2&e&&Xa("@state",i._animationState)},features:[Pe],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(oe(0,"div",0),ze(1,uz,0,0,"ng-template",1),le(),yt(2,"div")),2&e&&(he(2),_t("aria-live",i._live)("role",i._role))},directives:[Xo],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[fz.snackBarState]}}),n})(),nS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[yl,nu,Ri,fv,Gt],Gt]}),n})();const iS=new Ie("mat-snack-bar-default-options",{providedIn:"root",factory:function mz(){return new of}});let gz=(()=>{class n{constructor(e,i,r,s,o,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=s,this._parentSnackBar=o,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const s=Object.assign(Object.assign({},this._defaultConfig),r);return s.data={message:e,action:i},s.announcementMessage===e&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const s=Dn.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:of,useValue:i}]}),o=new qo(this.snackBarContainerComponent,i.viewContainerRef,s),a=e.attach(o);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r=Object.assign(Object.assign(Object.assign({},new of),this._defaultConfig),i),s=this._createOverlay(r),o=this._attachSnackBarContainer(s,r),a=new Av(o,s);if(e instanceof kn){const d=new Ko(e,null,{$implicit:r.data,snackBarRef:a});a.instance=o.attachTemplatePortal(d)}else{const d=this._createInjector(r,a),C=new qo(e,void 0,d),k=o.attachComponentPortal(C);a.instance=k.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Ut(s.detachments())).subscribe(d=>{s.overlayElement.classList.toggle(this.handsetCssClass,d.matches)}),r.announcementMessage&&o._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new Qo;i.direction=e.direction;let r=this._overlay.position().global();const s="rtl"===e.direction,o="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!s||"end"===e.horizontalPosition&&s,a=!o&&"center"!==e.horizontalPosition;return o?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return Dn.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Av,useValue:i},{provide:tS,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(ue(Ui),ue(kg),ue(Dn),ue(Vm),ue(n,12),ue(iS))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),af=(()=>{class n extends gz{constructor(e,i,r,s,o,a){super(e,i,r,s,o,a),this.simpleSnackBarComponent=hz,this.snackBarContainerComponent=pz,this.handsetCssClass="mat-snack-bar-handset"}}return n.\u0275fac=function(e){return new(e||n)(ue(Ui),ue(kg),ue(Dn),ue(Vm),ue(n,12),ue(iS))},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:nS}),n})();const vz=["mat-sort-header",""];function _z(n,t){if(1&n){const e=In();oe(0,"div",3),Oe("@arrowPosition.start",function(){return Qt(e),Ue()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Qt(e),Ue()._disableViewStateAnimation=!1}),yt(1,"div",4),oe(2,"div",5),yt(3,"div",6)(4,"div",7)(5,"div",8),le()()}if(2&n){const e=Ue();ge("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),he(2),ge("@indicator",e._getArrowDirectionState()),he(1),ge("@leftPointer",e._getArrowDirectionState()),he(1),ge("@rightPointer",e._getArrowDirectionState())}}const yz=["*"],co=EL.ENTERING+" "+ML.STANDARD_CURVE,Dl={indicator:li("indicator",[fn("active-asc, asc",ft({transform:"translateY(0px)"})),fn("active-desc, desc",ft({transform:"translateY(10px)"})),gn("active-asc <=> active-desc",wn(co))]),leftPointer:li("leftPointer",[fn("active-asc, asc",ft({transform:"rotate(-45deg)"})),fn("active-desc, desc",ft({transform:"rotate(45deg)"})),gn("active-asc <=> active-desc",wn(co))]),rightPointer:li("rightPointer",[fn("active-asc, asc",ft({transform:"rotate(45deg)"})),fn("active-desc, desc",ft({transform:"rotate(-45deg)"})),gn("active-asc <=> active-desc",wn(co))]),arrowOpacity:li("arrowOpacity",[fn("desc-to-active, asc-to-active, active",ft({opacity:1})),fn("desc-to-hint, asc-to-hint, hint",ft({opacity:.54})),fn("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",ft({opacity:0})),gn("* => asc, * => desc, * => active, * => hint, * => void",wn("0ms")),gn("* <=> *",wn(co))]),arrowPosition:li("arrowPosition",[gn("* => desc-to-hint, * => desc-to-active",wn(co,ml([ft({transform:"translateY(-25%)"}),ft({transform:"translateY(0)"})]))),gn("* => hint-to-desc, * => active-to-desc",wn(co,ml([ft({transform:"translateY(0)"}),ft({transform:"translateY(25%)"})]))),gn("* => asc-to-hint, * => asc-to-active",wn(co,ml([ft({transform:"translateY(25%)"}),ft({transform:"translateY(0)"})]))),gn("* => hint-to-asc, * => active-to-asc",wn(co,ml([ft({transform:"translateY(0)"}),ft({transform:"translateY(-25%)"})]))),fn("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",ft({transform:"translateY(0)"})),fn("hint-to-desc, active-to-desc, desc",ft({transform:"translateY(-25%)"})),fn("hint-to-asc, active-to-asc, asc",ft({transform:"translateY(25%)"}))]),allowChildren:li("allowChildren",[gn("* <=> *",[Ch("@*",wh(),{optional:!0})])])};let lf=(()=>{class n{constructor(){this.changes=new U}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const wz={provide:lf,deps:[[new xi,new Yr,lf]],useFactory:function bz(n){return n||new lf}},Cz=new Ie("MAT_SORT_DEFAULT_OPTIONS"),Dz=kL($o(class{}));let Tv=(()=>{class n extends Dz{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new U,this.start="asc",this._direction="",this.sortChange=new Le}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=ht(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var i,r,s;if(!e)return"";const o=null!==(r=null!==(i=null==e?void 0:e.disableClear)&&void 0!==i?i:this.disableClear)&&void 0!==r?r:!!(null===(s=this._defaultOptions)||void 0===s?void 0:s.disableClear);let a=function Mz(n,t){let e=["asc","desc"];return"desc"==n&&e.reverse(),t||e.push(""),e}(e.start||this.start,o),d=a.indexOf(this.direction)+1;return d>=a.length&&(d=0),a[d]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(V(Cz,8))},n.\u0275dir=De({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Pe,on]}),n})();const Ez=$o(class{});let Sz=(()=>{class n extends Ez{constructor(e,i,r,s,o,a,d){super(),this._intl=e,this._changeDetectorRef=i,this._sort=r,this._columnDef=s,this._focusMonitor=o,this._elementRef=a,this._ariaDescriber=d,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=ht(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=!!e;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var i,r;this._sortButton&&(null===(i=this._ariaDescriber)||void 0===i||i.removeDescription(this._sortButton,this._sortActionDescription),null===(r=this._ariaDescriber)||void 0===r||r.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=Ae(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(V(lf),V(an),V(Tv,8),V("MAT_SORT_HEADER_COLUMN_DEF",8),V(as),V(nt),V(t7,8))},n.\u0275cmp=Ge({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,i){1&e&&Oe("click",function(){return i._handleClick()})("keydown",function(s){return i._handleKeydown(s)})("mouseenter",function(){return i._setIndicatorHintVisible(!0)})("mouseleave",function(){return i._setIndicatorHintVisible(!1)}),2&e&&(_t("aria-sort",i._getAriaSortAttribute()),Nt("mat-sort-header-disabled",i._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[Pe],attrs:vz,ngContentSelectors:yz,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,i){1&e&&(mn(),oe(0,"div",0)(1,"div",1),bt(2),le(),ze(3,_z,6,6,"div",2),le()),2&e&&(Nt("mat-sort-header-sorted",i._isSorted())("mat-sort-header-position-before","before"==i.arrowPosition),_t("tabindex",i._isDisabled()?null:0)("role",i._isDisabled()?null:"button"),he(3),ge("ngIf",i._renderArrow()))},directives:[hi],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[Dl.indicator,Dl.leftPointer,Dl.rightPointer,Dl.arrowOpacity,Dl.arrowPosition,Dl.allowChildren]},changeDetection:0}),n})(),xz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[wz],imports:[[Ri,Gt]]}),n})();const kz=[[["caption"]],[["colgroup"],["col"]]],Az=["caption","colgroup, col"];function Iv(n){return class extends n{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=ht(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const Ml=new Ie("CDK_TABLE");let El=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(V(kn))},n.\u0275dir=De({type:n,selectors:[["","cdkCellDef",""]]}),n})(),Sl=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(V(kn))},n.\u0275dir=De({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),cf=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(V(kn))},n.\u0275dir=De({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class Oz{}const Fz=Iv(Oz);let ks=(()=>{class n extends Fz{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=ht(e),this._hasStickyChanged=i!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(V(Ml,8))},n.\u0275dir=De({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,r){if(1&e&&(Lt(r,El,5),Lt(r,Sl,5),Lt(r,cf,5)),2&e){let s;He(s=je())&&(i.cell=s.first),He(s=je())&&(i.headerCell=s.first),He(s=je())&&(i.footerCell=s.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[lt([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),Pe]}),n})();class Rv{constructor(t,e){e.nativeElement.classList.add(...t._columnCssClassName)}}let Ov=(()=>{class n extends Rv{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(V(ks),V(nt))},n.\u0275dir=De({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Pe]}),n})(),Fv=(()=>{class n extends Rv{constructor(e,i){var r;if(super(e,i),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const s=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===s||"treegrid"===s?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(V(ks),V(nt))},n.\u0275dir=De({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Pe]}),n})();class sS{constructor(){this.tasks=[],this.endTasks=[]}}const Pv=new Ie("_COALESCED_STYLE_SCHEDULER");let oS=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new U}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new sS,this._getScheduleObservable().pipe(Ut(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new sS;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Re(Promise.resolve(void 0)):this._ngZone.onStable.pipe(ln(1))}}return n.\u0275fac=function(e){return new(e||n)(ue(ct))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),Nv=(()=>{class n{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof pu?e.headerCell.template:this instanceof mu?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(V(kn),V(ns))},n.\u0275dir=De({type:n,features:[on]}),n})();class Pz extends Nv{}const Nz=Iv(Pz);let pu=(()=>{class n extends Nz{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(V(kn),V(ns),V(Ml,8))},n.\u0275dir=De({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[Pe,on]}),n})();class Lz extends Nv{}const Bz=Iv(Lz);let mu=(()=>{class n extends Bz{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(V(kn),V(ns),V(Ml,8))},n.\u0275dir=De({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[Pe,on]}),n})(),uf=(()=>{class n extends Nv{constructor(e,i,r){super(e,i),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(V(kn),V(ns),V(Ml,8))},n.\u0275dir=De({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[Pe]}),n})(),As=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(V(On))},n.\u0275dir=De({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),Lv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ge({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Jr(0,0)},directives:[As],encapsulation:2}),n})(),Vv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ge({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Jr(0,0)},directives:[As],encapsulation:2}),n})(),df=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(V(kn))},n.\u0275dir=De({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const aS=["top","bottom","left","right"];class Vz{constructor(t,e,i,r,s=!0,o=!0,a){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=s,this._needsPositionStickyOnElement=o,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const r of t)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let s=0;s{for(const r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(t,e,i,r=!0){if(!t.length||!this._isBrowser||!e.some(G=>G)&&!i.some(G=>G))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],o=s.children.length,a=this._getCellWidths(s,r),d=this._getStickyStartColumnPositions(a,e),C=this._getStickyEndColumnPositions(a,i),k=e.lastIndexOf(!0),N=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const G="rtl"===this.direction,X=G?"right":"left",re=G?"left":"right";for(const de of t)for(let ve=0;vee[ve]?de:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===N?[]:a.slice(N).map((de,ve)=>i[ve+N]?de:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const r="bottom"===i?t.slice().reverse():t,s="bottom"===i?e.slice().reverse():e,o=[],a=[],d=[];for(let k=0,N=0;k{var k,N;for(let G=0;G{e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const r of e)t.style[r]="",t.classList.remove(this._borderCellCss[r]);aS.some(r=>-1===e.indexOf(r)&&t.style[r])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,r){t.classList.add(this._stickCellCss),r&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const r of aS)t.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],r=t.children;for(let s=0;s0;s--)e[s]&&(i[s]=r,r+=t[s]);return i}}const Hv=new Ie("CDK_SPL");let hf=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(V(On),V(nt))},n.\u0275dir=De({type:n,selectors:[["","rowOutlet",""]]}),n})(),ff=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(V(On),V(nt))},n.\u0275dir=De({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),pf=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(V(On),V(nt))},n.\u0275dir=De({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),mf=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(V(On),V(nt))},n.\u0275dir=De({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),gf=(()=>{class n{constructor(e,i,r,s,o,a,d,C,k,N,G,X){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=o,this._platform=d,this._viewRepeater=C,this._coalescedStyleScheduler=k,this._viewportRuler=N,this._stickyPositioningListener=G,this._ngZone=X,this._onDestroy=new U,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new Le,this.viewChange=new oi({start:0,end:Number.MAX_VALUE}),s||this._elementRef.nativeElement.setAttribute("role","table"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=ht(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=ht(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Ut(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),nh(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,s,o)=>this._getEmbeddedViewArgs(r.item,o),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{i.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&ct.isInAngularZone()?this._ngZone.onStable.pipe(ln(1),Ut(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const s=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,s,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const s=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,s,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,s),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((s,o)=>{this._addStickyColumnStyles([s],this._headerRowDefs[o])}),this._rowDefs.forEach(s=>{const o=[];for(let a=0;a{this._addStickyColumnStyles([s],this._footerRowDefs[o])}),Array.from(this._columnDefsByName.values()).forEach(s=>s.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const a=r&&r.has(o)?r.get(o):[];if(a.length){const d=a.shift();return d.dataIndex=i,d}return{data:e,rowDef:o,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),vf(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=vf(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=vf(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=vf(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(o,a)=>o||!!a.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const s=this._footerRowDefs.reduce(e,!1);return s&&this._forceRenderFooterRows(),i||r||s}_switchDataSource(e){this._data=[],nh(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;nh(this.dataSource)?e=this.dataSource.connect(this):jm(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Qe(this.dataSource)),this._renderChangeSubscription=e.pipe(Ut(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const r=Array.from(i.columns||[]).map(a=>this._columnDefsByName.get(a)),s=r.map(a=>a.sticky),o=r.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,s,o,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let r=0;r!s.when||s.when(i,e));else{let s=this._rowDefs.find(o=>o.when&&o.when(i,e))||this._defaultRowDef;s&&r.push(s)}return r}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,r,s={}){const o=e.viewContainer.createEmbeddedView(i.template,s,r);return this._renderCellTemplateForItem(i,s),o}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))As.mostRecentCellOutlet&&As.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{const r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of i){const s=this._document.createElement(r.tag);s.setAttribute("role","rowgroup");for(const o of r.outlets)s.appendChild(o.elementRef.nativeElement);e.appendChild(s)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Vz(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Qe()).pipe(Ut(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(i){const s=r.createEmbeddedView(e.templateRef),o=s.rootNodes[0];1===s.rootNodes.length&&(null==o?void 0:o.nodeType)===this._document.ELEMENT_NODE&&(o.setAttribute("role","row"),o.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=i}}return n.\u0275fac=function(e){return new(e||n)(V(ns),V(an),V(nt),dr("role"),V(fi,8),V(Et),V($n),V(Fo),V(Pv),V(Po),V(Hv,12),V(ct,8))},n.\u0275cmp=Ge({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,r){if(1&e&&(Lt(r,df,5),Lt(r,ks,5),Lt(r,uf,5),Lt(r,pu,5),Lt(r,mu,5)),2&e){let s;He(s=je())&&(i._noDataRow=s.first),He(s=je())&&(i._contentColumnDefs=s),He(s=je())&&(i._contentRowDefs=s),He(s=je())&&(i._contentHeaderRowDefs=s),He(s=je())&&(i._contentFooterRowDefs=s)}},viewQuery:function(e,i){if(1&e&&(jt(hf,7),jt(ff,7),jt(pf,7),jt(mf,7)),2&e){let r;He(r=je())&&(i._rowOutlet=r.first),He(r=je())&&(i._headerRowOutlet=r.first),He(r=je())&&(i._footerRowOutlet=r.first),He(r=je())&&(i._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&&Nt("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[lt([{provide:Ml,useExisting:n},{provide:Fo,useClass:QC},{provide:Pv,useClass:oS},{provide:Hv,useValue:null}])],ngContentSelectors:Az,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(mn(kz),bt(0),bt(1,1),Jr(2,0)(3,1)(4,2)(5,3))},directives:[ff,hf,mf,pf],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})();function vf(n,t){return n.concat(Array.from(t))}let jz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[ih]]}),n})();const zz=[[["caption"]],[["colgroup"],["col"]]],Uz=["caption","colgroup, col"];let cS=(()=>{class n extends gf{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&&Nt("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[lt([{provide:Fo,useClass:QC},{provide:gf,useExisting:n},{provide:Ml,useExisting:n},{provide:Pv,useClass:oS},{provide:Hv,useValue:null}]),Pe],ngContentSelectors:Uz,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(mn(zz),bt(0),bt(1,1),Jr(2,0)(3,1)(4,2)(5,3))},directives:[ff,hf,mf,pf],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})(),jv=(()=>{class n extends El{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["","matCellDef",""]],features:[lt([{provide:El,useExisting:n}]),Pe]}),n})(),zv=(()=>{class n extends Sl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["","matHeaderCellDef",""]],features:[lt([{provide:Sl,useExisting:n}]),Pe]}),n})(),Uv=(()=>{class n extends ks{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[lt([{provide:ks,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),Pe]}),n})(),$v=(()=>{class n extends Ov{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[Pe]}),n})(),Gv=(()=>{class n extends Fv{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[Pe]}),n})(),uS=(()=>{class n extends pu{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[lt([{provide:pu,useExisting:n}]),Pe]}),n})(),dS=(()=>{class n extends uf{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275dir=De({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[lt([{provide:uf,useExisting:n}]),Pe]}),n})(),hS=(()=>{class n extends Lv{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[lt([{provide:Lv,useExisting:n}]),Pe],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Jr(0,0)},directives:[As],encapsulation:2}),n})(),fS=(()=>{class n extends Vv{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ht(n)))(i||n)}}(),n.\u0275cmp=Ge({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[lt([{provide:Vv,useExisting:n}]),Pe],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Jr(0,0)},directives:[As],encapsulation:2}),n})(),Jz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[jz,Gt],Gt]}),n})();class tU extends XC{constructor(t=[]){super(),this._renderData=new oi([]),this._filter=new oi(""),this._internalPageChanges=new U,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const r=e[i];if(FC(r)){const s=Number(r);return s<9007199254740991?s:r}return r},this.sortData=(e,i)=>{const r=i.active,s=i.direction;return r&&""!=s?e.sort((o,a)=>{let d=this.sortingDataAccessor(o,r),C=this.sortingDataAccessor(a,r);const k=typeof d,N=typeof C;k!==N&&("number"===k&&(d+=""),"number"===N&&(C+=""));let G=0;return null!=d&&null!=C?d>C?G=1:d{const r=Object.keys(e).reduce((o,a)=>o+e[a]+"\u25ec","").toLowerCase(),s=i.trim().toLowerCase();return-1!=r.indexOf(s)},this._data=new oi(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){t=Array.isArray(t)?t:[],this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?Ae(this._sort.sortChange,this._sort.initialized):Qe(null),i=this._paginator?Ae(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Qe(null),s=Oc([this._data,this._filter]).pipe(L(([d])=>this._filterData(d))),o=Oc([s,e]).pipe(L(([d])=>this._orderData(d))),a=Oc([o,i]).pipe(L(([d])=>this._pageData(d)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=a.subscribe(d=>this._renderData.next(d))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}class nU extends tU{}const iU=["*",[["mat-toolbar-row"]]],rU=["*","mat-toolbar-row"],sU=Go(class{constructor(n){this._elementRef=n}});let oU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=De({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),aU=(()=>{class n extends sU{constructor(e,i,r){super(e),this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(V(nt),V($n),V(Et))},n.\u0275cmp=Ge({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,i,r){if(1&e&&Lt(r,oU,5),2&e){let s;He(s=je())&&(i._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&Nt("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Pe],ngContentSelectors:rU,decls:2,vars:0,template:function(e,i){1&e&&(mn(iU),bt(0),bt(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),lU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Gt],Gt]}),n})();const _f=(()=>{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();function pS(n,t){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new cU(n,t,e))}}class cU{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new uU(t,this.accumulator,this.seed,this.hasSeed))}}class uU extends h{constructor(t,e,i,r){super(t),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function Wv(n){return function(e){return 0===n?Qd():e.lift(new dU(n))}}class dU{constructor(t){if(this.total=t,this.total<0)throw new LC}call(t,e){return e.subscribe(new hU(t,this.total))}}class hU extends h{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;st.lift(new fU(n))}class fU{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new pU(t,this.errorFactory))}}class pU extends h{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function mU(){return new _f}function gS(n=null){return t=>t.lift(new gU(n))}class gU{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new vU(t,this.defaultValue))}}class vU extends h{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function xl(n,t){const e=arguments.length>=2;return i=>i.pipe(n?$t((r,s)=>n(r,s,i)):x,ln(1),e?gS(t):mS(()=>new _f))}class Ts{constructor(t,e){this.id=t,this.url=e}}class Yv extends Ts{constructor(t,e,i="imperative",r=null){super(t,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class gu extends Ts{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class vS extends Ts{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class yU extends Ts{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class bU extends Ts{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wU extends Ts{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class CU extends Ts{constructor(t,e,i,r,s){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class DU extends Ts{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class MU extends Ts{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _S{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class yS{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class EU{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class SU{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xU{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kU{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bS{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Kt="primary";class AU{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function kl(n){return new AU(n)}const wS="ngNavigationCancelingError";function qv(n){const t=Error("NavigationCancelingError: "+n);return t[wS]=!0,t}function IU(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[s]===r)}return n===t}function DS(n){return Array.prototype.concat.apply([],n)}function MS(n){return n.length>0?n[n.length-1]:null}function gi(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function us(n){return kp(n)?n:pc(n)?Re(Promise.resolve(n)):Qe(n)}const FU={exact:function xS(n,t,e){if(!ia(n.segments,t.segments)||!yf(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!xS(n.children[i],t.children[i],e))return!1;return!0},subset:kS},ES={exact:function PU(n,t){return cs(n,t)},subset:function NU(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>CS(n[e],t[e]))},ignored:()=>!0};function SS(n,t,e){return FU[e.paths](n.root,t.root,e.matrixParams)&&ES[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function kS(n,t,e){return AS(n,t,t.segments,e)}function AS(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!ia(r,e)||t.hasChildren()||!yf(r,e,i))}if(n.segments.length===e.length){if(!ia(n.segments,e)||!yf(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!kS(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),s=e.slice(n.segments.length);return!!(ia(n.segments,r)&&yf(n.segments,r,i)&&n.children[Kt])&&AS(n.children[Kt],t,s,i)}}function yf(n,t,e){return t.every((i,r)=>ES[e](n[r].parameters,i.parameters))}class na{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=kl(this.queryParams)),this._queryParamMap}toString(){return VU.serialize(this)}}class rn{constructor(t,e){this.segments=t,this.children=e,this.parent=null,gi(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bf(this)}}class vu{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=kl(this.parameters)),this._parameterMap}toString(){return FS(this)}}function ia(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}class TS{}class IS{parse(t){const e=new qU(t);return new na(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${_u(t.root,!0)}`,i=function zU(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${wf(e)}=${wf(r)}`).join("&"):`${wf(e)}=${wf(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams),r="string"==typeof t.fragment?`#${function HU(n){return encodeURI(n)}(t.fragment)}`:"";return`${e}${i}${r}`}}const VU=new IS;function bf(n){return n.segments.map(t=>FS(t)).join("/")}function _u(n,t){if(!n.hasChildren())return bf(n);if(t){const e=n.children[Kt]?_u(n.children[Kt],!1):"",i=[];return gi(n.children,(r,s)=>{s!==Kt&&i.push(`${s}:${_u(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function BU(n,t){let e=[];return gi(n.children,(i,r)=>{r===Kt&&(e=e.concat(t(i,r)))}),gi(n.children,(i,r)=>{r!==Kt&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===Kt?[_u(n.children[Kt],!1)]:[`${r}:${_u(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Kt]?`${bf(n)}/${e[0]}`:`${bf(n)}/(${e.join("//")})`}}function RS(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wf(n){return RS(n).replace(/%3B/gi,";")}function Kv(n){return RS(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Cf(n){return decodeURIComponent(n)}function OS(n){return Cf(n.replace(/\+/g,"%20"))}function FS(n){return`${Kv(n.path)}${function jU(n){return Object.keys(n).map(t=>`;${Kv(t)}=${Kv(n[t])}`).join("")}(n.parameters)}`}const UU=/^[^\/()?;=#]+/;function Df(n){const t=n.match(UU);return t?t[0]:""}const $U=/^[^=?&#]+/,WU=/^[^&#]+/;class qU{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new rn([],{}):new rn([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[Kt]=new rn(t,e)),i}parseSegment(){const t=Df(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new vu(Cf(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Df(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Df(this.remaining);r&&(i=r,this.capture(i))}t[Cf(e)]=Cf(i)}parseQueryParam(t){const e=function GU(n){const t=n.match($U);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=function YU(n){const t=n.match(WU);return t?t[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const r=OS(e),s=OS(i);if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)||(o=[o],t[r]=o),o.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Df(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=Kt);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o[Kt]:new rn([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class PS{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Xv(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=Xv(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Qv(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return Qv(t,this._root).map(e=>e.value)}}function Xv(n,t){if(n===t.value)return t;for(const e of t.children){const i=Xv(n,e);if(i)return i}return null}function Qv(n,t){if(n===t.value)return[t];for(const e of t.children){const i=Qv(n,e);if(i.length)return i.unshift(t),i}return[]}class Is{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Al(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class NS extends PS{constructor(t,e){super(t),this.snapshot=e,Zv(this,t)}toString(){return this.snapshot.toString()}}function LS(n,t){const e=function KU(n,t){const o=new Mf([],{},{},"",{},Kt,t,null,n.root,-1,{});return new VS("",new Is(o,[]))}(n,t),i=new oi([new vu("",{})]),r=new oi({}),s=new oi({}),o=new oi({}),a=new oi(""),d=new Gi(i,r,o,a,s,Kt,t,e.root);return d.snapshot=e.root,new NS(new Is(d,[]),e)}class Gi{constructor(t,e,i,r,s,o,a,d){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this._futureSnapshot=d}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(L(t=>kl(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(L(t=>kl(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function BS(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],s=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(s.component)break;i--}}return function XU(n){return n.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(i))}class Mf{constructor(t,e,i,r,s,o,a,d,C,k,N){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=d,this._urlSegment=C,this._lastPathIndex=k,this._resolve=N}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=kl(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=kl(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class VS extends PS{constructor(t,e){super(e),this.url=t,Zv(this,e)}toString(){return HS(this._root)}}function Zv(n,t){t.value._routerState=n,t.children.forEach(e=>Zv(n,e))}function HS(n){const t=n.children.length>0?` { ${n.children.map(HS).join(", ")} } `:"";return`${n.value}${t}`}function Jv(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,cs(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),cs(t.params,e.params)||n.params.next(e.params),function RU(n,t){if(n.length!==t.length)return!1;for(let e=0;ecs(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||e_(n.parent,t.parent))}function yu(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function ZU(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return yu(n,i,r);return yu(n,i)})}(n,t,e);return new Is(i,r)}{if(n.shouldAttach(t.value)){const s=n.retrieve(t.value);if(null!==s){const o=s.route;return o.value._futureSnapshot=t.value,o.children=t.children.map(a=>yu(n,a)),o}}const i=function JU(n){return new Gi(new oi(n.url),new oi(n.params),new oi(n.queryParams),new oi(n.fragment),new oi(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(s=>yu(n,s));return new Is(i,r)}}function Ef(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function bu(n){return"object"==typeof n&&null!=n&&n.outlets}function t_(n,t,e,i,r){let s={};if(i&&gi(i,(a,d)=>{s[d]=Array.isArray(a)?a.map(C=>`${C}`):`${a}`}),n===t)return new na(e,s,r);const o=jS(n,t,e);return new na(o,s,r)}function jS(n,t,e){const i={};return gi(n.children,(r,s)=>{i[s]=r===t?e:jS(r,t,e)}),new rn(n.segments,i)}class zS{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Ef(i[0]))throw new Error("Root segment cannot have matrix parameters");const r=i.find(bu);if(r&&r!==MS(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class n_{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function US(n,t,e){if(n||(n=new rn([],{})),0===n.segments.length&&n.hasChildren())return Sf(n,t,e);const i=function s$(n,t,e){let i=0,r=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return s;const o=n.segments[r],a=e[i];if(bu(a))break;const d=`${a}`,C=i0&&void 0===d)break;if(d&&C&&"object"==typeof C&&void 0===C.outlets){if(!GS(d,C,o))return s;i+=2}else{if(!GS(d,{},o))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=US(n.children[o],t,s))}),gi(n.children,(s,o)=>{void 0===i[o]&&(r[o]=s)}),new rn(n.segments,r)}}function i_(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=i_(new rn([],{}),0,e))}),t}function $S(n){const t={};return gi(n,(e,i)=>t[i]=`${e}`),t}function GS(n,t,e){return n==e.path&&cs(t,e.parameters)}class l${constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Jv(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=Al(e);t.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,r[o],i),delete r[o]}),gi(r,(s,o)=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(t,e,i){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const o=i.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=Al(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);if(i&&i.outlet){const o=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=Al(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=Al(e);t.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],i),this.forwardEvent(new kU(s.value.snapshot))}),t.children.length&&this.forwardEvent(new SU(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,s=e?e.value:null;if(Jv(r),r===s)if(r.component){const o=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,i);else if(r.component){const o=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Jv(a.route.value),this.activateChildRoutes(t,null,o.children)}else{const a=function c$(n){for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),d=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=d,o.outlet&&o.outlet.activateWith(r,d),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,i)}}class r_{constructor(t,e){this.routes=t,this.module=e}}function uo(n){return"function"==typeof n}function ra(n){return n instanceof na}const wu=Symbol("INITIAL_VALUE");function Cu(){return Xn(n=>Oc(n.map(t=>t.pipe(ln(1),jn(wu)))).pipe(pS((t,e)=>{let i=!1;return e.reduce((r,s,o)=>r!==wu?r:(s===wu&&(i=!0),i||!1!==s&&o!==e.length-1&&!ra(s)?r:s),t)},wu),$t(t=>t!==wu),L(t=>ra(t)?t:!0===t),ln(1)))}class m${constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Du,this.attachRef=null}}class Du{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new m$,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let s_=(()=>{class n{constructor(e,i,r,s,o){this.parentContexts=e,this.location=i,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new Le,this.deactivateEvents=new Le,this.attachEvents=new Le,this.detachEvents=new Le,this.name=s||Kt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const o=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,d=new g$(e,a,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,d),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(V(Du),V(On),V(Eo),dr("name"),V(an))},n.\u0275dir=De({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class g${constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Gi?this.route:t===Du?this.childContexts:this.parent.get(t,e)}}let WS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ge({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&yt(0,"router-outlet")},directives:[s_],encapsulation:2}),n})();function YS(n,t=""){for(let e=0;eCr(i)===t);return e.push(...n.filter(i=>Cr(i)!==t)),e}const KS={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function xf(n,t,e){var i;if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},KS):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const s=(t.matcher||IU)(e,n,t);if(!s)return Object.assign({},KS);const o={};gi(s.posParams,(d,C)=>{o[C]=d.path});const a=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,remainingSegments:e.slice(s.consumed.length),parameters:a,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function kf(n,t,e,i,r="corrected"){if(e.length>0&&function w$(n,t,e){return e.some(i=>Af(n,t,i)&&Cr(i)!==Kt)}(n,e,i)){const o=new rn(t,function b$(n,t,e,i){const r={};r[Kt]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const s of e)if(""===s.path&&Cr(s)!==Kt){const o=new rn([],{});o._sourceSegment=n,o._segmentIndexShift=t.length,r[Cr(s)]=o}return r}(n,t,i,new rn(e,n.children)));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function C$(n,t,e){return e.some(i=>Af(n,t,i))}(n,e,i)){const o=new rn(n.segments,function y$(n,t,e,i,r,s){const o={};for(const a of i)if(Af(n,e,a)&&!r[Cr(a)]){const d=new rn([],{});d._sourceSegment=n,d._segmentIndexShift="legacy"===s?n.segments.length:t.length,o[Cr(a)]=d}return Object.assign(Object.assign({},r),o)}(n,t,e,i,n.children,r));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}const s=new rn(n.segments,n.children);return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}function Af(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function XS(n,t,e,i){return!!(Cr(n)===i||i!==Kt&&Af(t,e,n))&&("**"===n.path||xf(t,n,e).matched)}function QS(n,t,e){return 0===t.length&&!n.children[e]}class Tf{constructor(t){this.segmentGroup=t||null}}class ZS{constructor(t){this.urlTree=t}}function Mu(n){return Ro(new Tf(n))}function JS(n){return Ro(new ZS(n))}function D$(n){return Ro(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`))}class S${constructor(t,e,i,r,s){this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(ys)}apply(){const t=kf(this.urlTree.root,[],[],this.config).segmentGroup,e=new rn(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Kt).pipe(L(s=>this.createUrlTree(a_(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(lo(s=>{if(s instanceof ZS)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof Tf?this.noMatchError(s):s}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Kt).pipe(L(r=>this.createUrlTree(a_(r),t.queryParams,t.fragment))).pipe(lo(r=>{throw r instanceof Tf?this.noMatchError(r):r}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const r=t.segments.length>0?new rn([],{[Kt]:t}):t;return new na(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(L(s=>new rn([],s))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const s of Object.keys(i.children))"primary"===s?r.unshift(s):r.push(s);return Re(r).pipe(dl(s=>{const o=i.children[s],a=qS(e,s);return this.expandSegmentGroup(t,a,o,s).pipe(L(d=>({segment:d,outlet:s})))}),pS((s,o)=>(s[o.outlet]=o.segment,s),{}),function _U(n,t){const e=arguments.length>=2;return i=>i.pipe(n?$t((r,s)=>n(r,s,i)):x,Wv(1),e?gS(t):mS(()=>new _f))}())}expandSegment(t,e,i,r,s,o){return Re(i).pipe(dl(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,s,o).pipe(lo(C=>{if(C instanceof Tf)return Qe(null);throw C}))),xl(a=>!!a),lo((a,d)=>{if(a instanceof _f||"EmptyError"===a.name)return QS(e,r,s)?Qe(new rn([],{})):Mu(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,s,o,a){return XS(r,e,s,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o):Mu(e):Mu(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?JS(s):this.lineralizeSegments(i,s).pipe(Rt(o=>{const a=new rn(o,{});return this.expandSegment(t,a,e,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o){const{matched:a,consumedSegments:d,remainingSegments:C,positionalParamSegments:k}=xf(e,r,s);if(!a)return Mu(e);const N=this.applyRedirectCommands(d,r.redirectTo,k);return r.redirectTo.startsWith("/")?JS(N):this.lineralizeSegments(r,N).pipe(Rt(G=>this.expandSegment(t,e,i,G.concat(C),o,!1)))}matchSegmentAgainstRoute(t,e,i,r,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?Qe(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(L(N=>(i._loadedConfig=N,new rn(r,{})))):Qe(new rn(r,{}));const{matched:o,consumedSegments:a,remainingSegments:d}=xf(e,i,r);return o?this.getChildConfig(t,i,r).pipe(Rt(k=>{const N=k.module,G=k.routes,{segmentGroup:X,slicedSegments:re}=kf(e,a,d,G),de=new rn(X.segments,X.children);if(0===re.length&&de.hasChildren())return this.expandChildren(N,G,de).pipe(L(Ne=>new rn(a,Ne)));if(0===G.length&&0===re.length)return Qe(new rn(a,{}));const ve=Cr(i)===s;return this.expandSegment(N,de,G,re,ve?Kt:s,!0).pipe(L(pe=>new rn(a.concat(pe.segments),pe.children)))})):Mu(e)}getChildConfig(t,e,i){return e.children?Qe(new r_(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Qe(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(Rt(r=>r?this.configLoader.load(t.injector,e).pipe(L(s=>(e._loadedConfig=s,s))):function M$(n){return Ro(qv(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`))}(e))):Qe(new r_([],t))}runCanLoadGuards(t,e,i){const r=e.canLoad;if(!r||0===r.length)return Qe(!0);const s=r.map(o=>{const a=t.get(o);let d;if(function d$(n){return n&&uo(n.canLoad)}(a))d=a.canLoad(e,i);else{if(!uo(a))throw new Error("Invalid CanLoad guard");d=a(e,i)}return us(d)});return Qe(s).pipe(Cu(),ri(o=>{if(!ra(o))return;const a=qv(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw a.url=o,a}),L(o=>!0===o))}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Qe(i);if(r.numberOfChildren>1||!r.children[Kt])return D$(t.redirectTo);r=r.children[Kt]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,r){const s=this.createSegmentGroup(t,e.root,i,r);return new na(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return gi(t,(r,s)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[s]=e[a]}else i[s]=r}),i}createSegmentGroup(t,e,i,r){const s=this.createSegments(t,e.segments,i,r);let o={};return gi(e.children,(a,d)=>{o[d]=this.createSegmentGroup(t,a,i,r)}),new rn(s,o)}createSegments(t,e,i,r){return e.map(s=>s.path.startsWith(":")?this.findPosParam(t,s,r):this.findOrReturn(s,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}function a_(n){const t={};for(const i of Object.keys(n.children)){const s=a_(n.children[i]);(s.segments.length>0||s.hasChildren())&&(t[i]=s)}return function x$(n){if(1===n.numberOfChildren&&n.children[Kt]){const t=n.children[Kt];return new rn(n.segments.concat(t.segments),t.children)}return n}(new rn(n.segments,t))}class ex{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class If{constructor(t,e){this.component=t,this.route=e}}function A$(n,t,e){const i=n._root;return Eu(i,t?t._root:null,e,[i.value])}function Rf(n,t,e){const i=function I$(n){if(!n)return null;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:e).get(n)}function Eu(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Al(t);return n.children.forEach(o=>{(function R$(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=n.value,o=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const d=function O$(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!ia(n.url,t.url);case"pathParamsOrQueryParamsChange":return!ia(n.url,t.url)||!cs(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!e_(n,t)||!cs(n.queryParams,t.queryParams);default:return!e_(n,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);d?r.canActivateChecks.push(new ex(i)):(s.data=o.data,s._resolvedData=o._resolvedData),Eu(n,t,s.component?a?a.children:null:e,i,r),d&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new If(a.outlet.component,o))}else o&&Su(t,a,r),r.canActivateChecks.push(new ex(i)),Eu(n,null,s.component?a?a.children:null:e,i,r)})(o,s[o.value.outlet],e,i.concat([o.value]),r),delete s[o.value.outlet]}),gi(s,(o,a)=>Su(o,e.getContext(a),r)),r}function Su(n,t,e){const i=Al(n),r=n.value;gi(i,(s,o)=>{Su(s,r.component?t?t.children.getContext(o):null:t,e)}),e.canDeactivateChecks.push(new If(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}class z${}function tx(n){return new j(t=>t.error(n))}class $${constructor(t,e,i,r,s,o){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=kf(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Kt);if(null===e)return null;const i=new Mf([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Kt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Is(i,e),s=new VS(this.url,r);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=BS(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const o=e.children[s],a=qS(t,s),d=this.processSegmentGroup(a,o,s);if(null===d)return null;i.push(...d)}const r=nx(i);return function G$(n){n.sort((t,e)=>t.value.outlet===Kt?-1:e.value.outlet===Kt?1:t.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(t,e,i,r){for(const s of t){const o=this.processSegmentAgainstRoute(s,e,i,r);if(null!==o)return o}return QS(e,i,r)?[]:null}processSegmentAgainstRoute(t,e,i,r){if(t.redirectTo||!XS(t,e,i,r))return null;let s,o=[],a=[];if("**"===t.path){const X=i.length>0?MS(i).parameters:{};s=new Mf(i,X,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,sx(t),Cr(t),t.component,t,ix(e),rx(e)+i.length,ox(t))}else{const X=xf(e,t,i);if(!X.matched)return null;o=X.consumedSegments,a=X.remainingSegments,s=new Mf(o,X.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,sx(t),Cr(t),t.component,t,ix(e),rx(e)+o.length,ox(t))}const d=function W$(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(t),{segmentGroup:C,slicedSegments:k}=kf(e,o,a,d.filter(X=>void 0===X.redirectTo),this.relativeLinkResolution);if(0===k.length&&C.hasChildren()){const X=this.processChildren(d,C);return null===X?null:[new Is(s,X)]}if(0===d.length&&0===k.length)return[new Is(s,[])];const N=Cr(t)===r,G=this.processSegment(d,C,k,N?Kt:r);return null===G?null:[new Is(s,G)]}}function Y$(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function nx(n){const t=[],e=new Set;for(const i of n){if(!Y$(i)){t.push(i);continue}const r=t.find(s=>i.value.routeConfig===s.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=nx(i.children);t.push(new Is(i.value,r))}return t.filter(i=>!e.has(i))}function ix(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function rx(n){let t=n,e=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift?t._segmentIndexShift:0;return e-1}function sx(n){return n.data||{}}function ox(n){return n.resolve||{}}function ax(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function l_(n){return Xn(t=>{const e=n(t);return e?Re(e).pipe(L(()=>t)):Qe(t)})}class lx{}class eG extends class J${shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const c_=new Ie("ROUTES");class cx{constructor(t,e,i,r){this.injector=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=r}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe(L(s=>{this.onLoadEndListener&&this.onLoadEndListener(e);const o=s.create(t);return new r_(DS(o.injector.get(c_,void 0,xt.Self|xt.Optional)).map(o_),o)}),lo(s=>{throw e._loader$=void 0,s}));return e._loader$=new rt(r,()=>new U).pipe(Yt()),e._loader$}loadModuleFactory(t){return us(t()).pipe(Rt(e=>e instanceof qw?Qe(e):Re(this.compiler.compileModuleAsync(e))))}}class nG{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function iG(n){throw n}function rG(n,t,e){return t.parse("/")}function ux(n,t){return Qe(null)}const sG={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},oG={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ci=(()=>{class n{constructor(e,i,r,s,o,a,d){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=s,this.config=d,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new U,this.errorHandler=iG,this.malformedUriErrorHandler=rG,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ux,afterPreactivation:ux},this.urlHandlingStrategy=new nG,this.routeReuseStrategy=new eG,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(ys),this.console=o.get(ER);const N=o.get(ct);this.isNgZoneEnabled=N instanceof ct&&ct.isInAngularZone(),this.resetConfig(d),this.currentUrlTree=function OU(){return new na(new rn([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new cx(o,a,G=>this.triggerEvent(new _S(G)),G=>this.triggerEvent(new yS(G))),this.routerState=LS(this.currentUrlTree,this.rootComponentType),this.transitions=new oi({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe($t(r=>0!==r.id),L(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Xn(r=>{let s=!1,o=!1;return Qe(r).pipe(ri(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Xn(a=>{const d=this.browserUrlTree.toString(),C=!this.navigated||a.extractedUrl.toString()!==d||d!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||C)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return dx(a.source)&&(this.browserUrlTree=a.extractedUrl),Qe(a).pipe(Xn(N=>{const G=this.transitions.getValue();return i.next(new Yv(N.id,this.serializeUrl(N.extractedUrl),N.source,N.restoredState)),G!==this.transitions.getValue()?Ys:Promise.resolve(N)}),function k$(n,t,e,i){return Xn(r=>function E$(n,t,e,i,r){return new S$(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(L(s=>Object.assign(Object.assign({},r),{urlAfterRedirects:s}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),ri(N=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:N.urlAfterRedirects})}),function q$(n,t,e,i,r){return Rt(s=>function U$(n,t,e,i,r="emptyOnly",s="legacy"){try{const o=new $$(n,t,e,i,r,s).recognize();return null===o?tx(new z$):Qe(o)}catch(o){return tx(o)}}(n,t,s.urlAfterRedirects,e(s.urlAfterRedirects),i,r).pipe(L(o=>Object.assign(Object.assign({},s),{targetSnapshot:o}))))}(this.rootComponentType,this.config,N=>this.serializeUrl(N),this.paramsInheritanceStrategy,this.relativeLinkResolution),ri(N=>{if("eager"===this.urlUpdateStrategy){if(!N.extras.skipLocationChange){const X=this.urlHandlingStrategy.merge(N.urlAfterRedirects,N.rawUrl);this.setBrowserUrl(X,N)}this.browserUrlTree=N.urlAfterRedirects}const G=new bU(N.id,this.serializeUrl(N.extractedUrl),this.serializeUrl(N.urlAfterRedirects),N.targetSnapshot);i.next(G)}));if(C&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:G,extractedUrl:X,source:re,restoredState:de,extras:ve}=a,Me=new Yv(G,this.serializeUrl(X),re,de);i.next(Me);const pe=LS(X,this.rootComponentType).snapshot;return Qe(Object.assign(Object.assign({},a),{targetSnapshot:pe,urlAfterRedirects:X,extras:Object.assign(Object.assign({},ve),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),Ys}),l_(a=>{const{targetSnapshot:d,id:C,extractedUrl:k,rawUrl:N,extras:{skipLocationChange:G,replaceUrl:X}}=a;return this.hooks.beforePreactivation(d,{navigationId:C,appliedUrlTree:k,rawUrlTree:N,skipLocationChange:!!G,replaceUrl:!!X})}),ri(a=>{const d=new wU(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(d)}),L(a=>Object.assign(Object.assign({},a),{guards:A$(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function F$(n,t){return Rt(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return 0===o.length&&0===s.length?Qe(Object.assign(Object.assign({},e),{guardsResult:!0})):function P$(n,t,e,i){return Re(n).pipe(Rt(r=>function j$(n,t,e,i,r){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?Qe(s.map(a=>{const d=Rf(a,t,r);let C;if(function p$(n){return n&&uo(n.canDeactivate)}(d))C=us(d.canDeactivate(n,t,e,i));else{if(!uo(d))throw new Error("Invalid CanDeactivate guard");C=us(d(n,t,e,i))}return C.pipe(xl())})).pipe(Cu()):Qe(!0)}(r.component,r.route,e,t,i)),xl(r=>!0!==r,!0))}(o,i,r,n).pipe(Rt(a=>a&&function u$(n){return"boolean"==typeof n}(a)?function N$(n,t,e,i){return Re(t).pipe(dl(r=>Fc(function B$(n,t){return null!==n&&t&&t(new EU(n)),Qe(!0)}(r.route.parent,i),function L$(n,t){return null!==n&&t&&t(new xU(n)),Qe(!0)}(r.route,i),function H$(n,t,e){const i=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>function T$(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(o)).filter(o=>null!==o).map(o=>Yo(()=>Qe(o.guards.map(d=>{const C=Rf(d,o.node,e);let k;if(function f$(n){return n&&uo(n.canActivateChild)}(C))k=us(C.canActivateChild(i,n));else{if(!uo(C))throw new Error("Invalid CanActivateChild guard");k=us(C(i,n))}return k.pipe(xl())})).pipe(Cu())));return Qe(s).pipe(Cu())}(n,r.path,e),function V$(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Qe(!0);const r=i.map(s=>Yo(()=>{const o=Rf(s,t,e);let a;if(function h$(n){return n&&uo(n.canActivate)}(o))a=us(o.canActivate(t,n));else{if(!uo(o))throw new Error("Invalid CanActivate guard");a=us(o(t,n))}return a.pipe(xl())}));return Qe(r).pipe(Cu())}(n,r.route,e))),xl(r=>!0!==r,!0))}(i,s,n,t):Qe(a)),L(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),ri(a=>{if(ra(a.guardsResult)){const C=qv(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw C.url=a.guardsResult,C}const d=new CU(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(d)}),$t(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),l_(a=>{if(a.guards.canActivateChecks.length)return Qe(a).pipe(ri(d=>{const C=new DU(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);this.triggerEvent(C)}),Xn(d=>{let C=!1;return Qe(d).pipe(function K$(n,t){return Rt(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Qe(e);let s=0;return Re(r).pipe(dl(o=>function X$(n,t,e,i){return function Q$(n,t,e,i){const r=ax(n);if(0===r.length)return Qe({});const s={};return Re(r).pipe(Rt(o=>function Z$(n,t,e,i){const r=Rf(n,t,i);return us(r.resolve?r.resolve(t,e):r(t,e))}(n[o],t,e,i).pipe(ri(a=>{s[o]=a}))),Wv(1),Rt(()=>ax(s).length===r.length?Qe(s):Ys))}(n._resolve,n,t,i).pipe(L(s=>(n._resolvedData=s,n.data=Object.assign(Object.assign({},n.data),BS(n,e).resolve),null)))}(o.route,i,n,t)),ri(()=>s++),Wv(1),Rt(o=>s===r.length?Qe(e):Ys))})}(this.paramsInheritanceStrategy,this.ngModule.injector),ri({next:()=>C=!0,complete:()=>{C||(this.restoreHistory(d),this.cancelNavigationTransition(d,"At least one route resolver didn't emit any value."))}}))}),ri(d=>{const C=new MU(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);this.triggerEvent(C)}))}),l_(a=>{const{targetSnapshot:d,id:C,extractedUrl:k,rawUrl:N,extras:{skipLocationChange:G,replaceUrl:X}}=a;return this.hooks.afterPreactivation(d,{navigationId:C,appliedUrlTree:k,rawUrlTree:N,skipLocationChange:!!G,replaceUrl:!!X})}),L(a=>{const d=function QU(n,t,e){const i=yu(n,t._root,e?e._root:void 0);return new NS(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:d})}),ri(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>L(i=>(new l$(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),ri({next(){s=!0},complete(){s=!0}}),wE(()=>{var a;s||o||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===r.id&&(this.currentNavigation=null)}),lo(a=>{if(o=!0,function TU(n){return n&&n[wS]}(a)){const d=ra(a.url);d||(this.navigated=!0,this.restoreHistory(r,!0));const C=new vS(r.id,this.serializeUrl(r.extractedUrl),a.message);i.next(C),d?setTimeout(()=>{const k=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),N={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||dx(r.source)};this.scheduleNavigation(k,"imperative",null,N,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const d=new yU(r.id,this.serializeUrl(r.extractedUrl),a);i.next(d);try{r.resolve(this.errorHandler(a))}catch(C){r.reject(C)}}return Ys}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var r;const s={replaceUrl:!0},o=(null===(r=e.state)||void 0===r?void 0:r.navigationId)?e.state:null;if(o){const d=Object.assign({},o);delete d.navigationId,delete d.\u0275routerPageId,0!==Object.keys(d).length&&(s.state=d)}const a=this.parseUrl(e.url);this.scheduleNavigation(a,i,o,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){YS(e),this.config=e.map(o_),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:d}=i,C=r||this.routerState.root,k=d?this.currentUrlTree.fragment:o;let N=null;switch(a){case"merge":N=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":N=this.currentUrlTree.queryParams;break;default:N=s||null}return null!==N&&(N=this.removeEmptyProps(N)),function e$(n,t,e,i,r){if(0===e.length)return t_(t.root,t.root,t.root,i,r);const s=function t$(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new zS(!0,0,n);let t=0,e=!1;const i=n.reduce((r,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return gi(s.outlets,(d,C)=>{a[C]="string"==typeof d?d.split("/"):d}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return"string"!=typeof s?[...r,s]:0===o?(s.split("/").forEach((a,d)=>{0==d&&"."===a||(0==d&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,s]},[]);return new zS(e,t,i)}(e);if(s.toRoot())return t_(t.root,t.root,new rn([],{}),i,r);const o=function n$(n,t,e){if(n.isAbsolute)return new n_(t.root,!0,0);if(-1===e.snapshot._lastPathIndex){const s=e.snapshot._urlSegment;return new n_(s,s===t.root,0)}const i=Ef(n.commands[0])?0:1;return function i$(n,t,e){let i=n,r=t,s=e;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new n_(i,!1,r-s)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,n.numberOfDoubleDots)}(s,t,n),a=o.processChildren?Sf(o.segmentGroup,o.index,s.commands):US(o.segmentGroup,o.index,s.commands);return t_(t.root,o.segmentGroup,a,i,r)}(C,this.currentUrlTree,e,N,null!=k?k:null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=ra(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function aG(n){for(let t=0;t{const s=e[r];return null!=s&&(i[r]=s),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new gu(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,s,o){var a,d;if(this.disposed)return Promise.resolve(!1);let C,k,N;o?(C=o.resolve,k=o.reject,N=o.promise):N=new Promise((re,de)=>{C=re,k=de});const G=++this.navigationId;let X;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),X=r&&r.\u0275routerPageId?r.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(d=this.browserPageId)&&void 0!==d?d:0)+1):X=0,this.setTransition({id:G,targetPageId:X,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:s,resolve:C,reject:k,promise:N,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),N.catch(re=>Promise.reject(re))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),s=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",s):this.location.go(r,"",s)}restoreHistory(e,i=!1){var r,s;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===o?this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const r=new vS(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){Wa()},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();function dx(n){return"imperative"!==n}let ho=(()=>{class n{constructor(e,i,r,s,o){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=s,this.el=o,this.commands=null,this.onChanges=new U,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const i=this.renderer,r=this.el.nativeElement;null!==e?i.setAttribute(r,"tabindex",e):i.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:Tl(this.skipLocationChange),replaceUrl:Tl(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Tl(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(V(ci),V(Gi),dr("tabindex"),V(_s),V(nt))},n.\u0275dir=De({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,i){1&e&&Oe("click",function(){return i.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[on]}),n})(),Of=(()=>{class n{constructor(e,i,r){this.router=e,this.route=i,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new U,this.subscription=e.events.subscribe(s=>{s instanceof gu&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,r,s,o){if(0!==e||i||r||s||o||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const a={skipLocationChange:Tl(this.skipLocationChange),replaceUrl:Tl(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Tl(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(V(ci),V(Gi),V(il))},n.\u0275dir=De({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&Oe("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&e&&_t("target",i.target)("href",i.href,od)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[on]}),n})();function Tl(n){return""===n||!!n}class hx{}class fx{preload(t,e){return Qe(null)}}let px=(()=>{class n{constructor(e,i,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new cx(r,i,d=>e.triggerEvent(new _S(d)),d=>e.triggerEvent(new yS(d)))}setUpPreloading(){this.subscription=this.router.events.pipe($t(e=>e instanceof gu),dl(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(ys);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const s of i)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const o=s._loadedConfig;r.push(this.processRoutes(o.module,o.routes))}else s.loadChildren&&!s.canLoad?r.push(this.preloadConfig(e,s)):s.children&&r.push(this.processRoutes(e,s.children));return Re(r).pipe(be(),L(s=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?Qe(i._loadedConfig):this.loader.load(e.injector,i)).pipe(Rt(s=>(i._loadedConfig=s,this.processRoutes(s.module,s.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(ue(ci),ue(I2),ue(Dn),ue(hx))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),u_=(()=>{class n{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Yv?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof gu&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof bS&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new bS(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){Wa()},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const sa=new Ie("ROUTER_CONFIGURATION"),mx=new Ie("ROUTER_FORROOT_GUARD"),dG=[kc,{provide:TS,useClass:IS},{provide:ci,useFactory:function vG(n,t,e,i,r,s,o={},a,d){const C=new ci(null,n,t,e,i,r,DS(s));return a&&(C.urlHandlingStrategy=a),d&&(C.routeReuseStrategy=d),function _G(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(t.canceledNavigationResolution=n.canceledNavigationResolution)}(o,C),o.enableTracing&&C.events.subscribe(k=>{var N,G;null===(N=console.group)||void 0===N||N.call(console,`Router Event: ${k.constructor.name}`),console.log(k.toString()),console.log(k),null===(G=console.groupEnd)||void 0===G||G.call(console)}),C},deps:[TS,Du,kc,Dn,I2,c_,sa,[class tG{},new xi],[lx,new xi]]},Du,{provide:Gi,useFactory:function yG(n){return n.routerState.root},deps:[ci]},px,fx,class uG{preload(t,e){return e().pipe(lo(()=>Qe(null)))}},{provide:sa,useValue:{enableTracing:!1}}];function hG(){return new N2("Router",ci)}let fG=(()=>{class n{constructor(e,i){}static forRoot(e,i){return{ngModule:n,providers:[dG,gx(e),{provide:mx,useFactory:gG,deps:[[ci,new xi,new Yr]]},{provide:sa,useValue:i||{}},{provide:il,useFactory:mG,deps:[To,[new td(pm),new xi],sa]},{provide:u_,useFactory:pG,deps:[ci,R8,sa]},{provide:hx,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:fx},{provide:N2,multi:!0,useFactory:hG},[d_,{provide:Td,multi:!0,useFactory:bG,deps:[d_]},{provide:vx,useFactory:wG,deps:[d_]},{provide:T2,multi:!0,useExisting:vx}]]}}static forChild(e){return{ngModule:n,providers:[gx(e)]}}}return n.\u0275fac=function(e){return new(e||n)(ue(mx,8),ue(ci,8))},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({}),n})();function pG(n,t,e){return e.scrollOffset&&t.setOffset(e.scrollOffset),new u_(n,t,e)}function mG(n,t,e={}){return e.useHash?new vO(n,t):new tC(n,t)}function gG(n){return"guarded"}function gx(n){return[{provide:Jk,multi:!0,useValue:n},{provide:c_,multi:!0,useValue:n}]}let d_=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new U}appInitializer(){return this.injector.get(pO,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const r=new Promise(a=>i=a),s=this.injector.get(ci),o=this.injector.get(sa);return"disabled"===o.initialNavigation?(s.setUpLocationChangeListener(),i(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(s.hooks.afterPreactivation=()=>this.initNavigation?Qe(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),s.initialNavigation()):i(!0),r})}bootstrapListener(e){const i=this.injector.get(sa),r=this.injector.get(px),s=this.injector.get(u_),o=this.injector.get(ci),a=this.injector.get(Sc);e===a.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&o.initialNavigation(),r.setUpPreloading(),s.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(ue(Dn))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();function bG(n){return n.appInitializer.bind(n)}function wG(n){return n.bootstrapListener.bind(n)}const vx=new Ie("Router Initializer"),fo=new j(Ss),xu="Service workers are disabled or not supported by this browser";class Ff{constructor(t){if(this.serviceWorker=t,t){const i=Hr(t,"controllerchange").pipe(L(()=>t.controller)),s=Fc(Yo(()=>Qe(t.controller)),i);this.worker=s.pipe($t(k=>!!k)),this.registration=this.worker.pipe(Xn(()=>t.getRegistration()));const C=Hr(t,"message").pipe(L(k=>k.data)).pipe($t(k=>k&&k.type)).pipe(function DG(n){return n?Dr(()=>new U,n):Dr(new U)}());C.connect(),this.events=C}else this.worker=this.events=this.registration=function MG(n){return Yo(()=>Ro(new Error(n)))}(xu)}postMessage(t,e){return this.worker.pipe(ln(1),ri(i=>{i.postMessage(Object.assign({action:t},e))})).toPromise().then(()=>{})}postMessageWithOperation(t,e,i){const r=this.waitForOperationCompleted(i),s=this.postMessage(t,e);return Promise.all([s,r]).then(([,o])=>o)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(t){let e;return e="string"==typeof t?i=>i.type===t:i=>t.includes(i.type),this.events.pipe($t(e))}nextEventOfType(t){return this.eventsOfType(t).pipe(ln(1))}waitForOperationCompleted(t){return this.eventsOfType("OPERATION_COMPLETED").pipe($t(e=>e.nonce===t),ln(1),L(e=>{if(void 0!==e.result)return e.result;throw new Error(e.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let EG=(()=>{class n{constructor(e){if(this.sw=e,this.subscriptionChanges=new U,!e.isEnabled)return this.messages=fo,this.notificationClicks=fo,void(this.subscription=fo);this.messages=this.sw.eventsOfType("PUSH").pipe(L(r=>r.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(L(r=>r.data)),this.pushManager=this.sw.registration.pipe(L(r=>r.pushManager));const i=this.pushManager.pipe(Xn(r=>r.getSubscription()));this.subscription=Ae(i,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(e){if(!this.sw.isEnabled)return Promise.reject(new Error(xu));const i={userVisibleOnly:!0};let r=this.decodeBase64(e.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),s=new Uint8Array(new ArrayBuffer(r.length));for(let o=0;oo.subscribe(i)),ln(1)).toPromise().then(o=>(this.subscriptionChanges.next(o),o))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe(ln(1),Xn(i=>{if(null===i)throw new Error("Not subscribed to push notifications.");return i.unsubscribe().then(r=>{if(!r)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(xu))}decodeBase64(e){return atob(e)}}return n.\u0275fac=function(e){return new(e||n)(ue(Ff))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),SG=(()=>{class n{constructor(e){if(this.sw=e,!e.isEnabled)return this.versionUpdates=fo,this.available=fo,this.activated=fo,void(this.unrecoverable=fo);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY"]),this.available=this.versionUpdates.pipe($t(i=>"VERSION_READY"===i.type),L(i=>({type:"UPDATE_AVAILABLE",current:i.currentVersion,available:i.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(xu));const e=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:e},e)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(xu));const e=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:e},e)}}return n.\u0275fac=function(e){return new(e||n)(ue(Ff))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();class h_{}const _x=new Ie("NGSW_REGISTER_SCRIPT");function xG(n,t,e,i){return()=>{if(!km(i)||!("serviceWorker"in navigator)||!1===e.enabled)return;let s;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof e.registrationStrategy)s=e.registrationStrategy();else{const[a,...d]=(e.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":s=Qe(null);break;case"registerWithDelay":s=yx(+d[0]||0);break;case"registerWhenStable":s=d[0]?Ae(bx(n),yx(+d[0])):bx(n);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${e.registrationStrategy}`)}}n.get(ct).runOutsideAngular(()=>s.pipe(ln(1)).subscribe(()=>navigator.serviceWorker.register(t,{scope:e.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function yx(n){return Qe(null).pipe(Yh(n))}function bx(n){return n.get(Sc).isStable.pipe($t(e=>e))}function kG(n,t){return new Ff(km(t)&&!1!==n.enabled?navigator.serviceWorker:void 0)}let AG=(()=>{class n{static register(e,i={}){return{ngModule:n,providers:[{provide:_x,useValue:e},{provide:h_,useValue:i},{provide:Ff,useFactory:kG,deps:[h_,nl]},{provide:Td,useFactory:xG,deps:[Dn,_x,h_,nl],multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({providers:[EG,SG]}),n})(),wx=(()=>{class n{constructor(){this.gsiLoadedSource=new Oo(1);const e=document.createElement("script");e.src="https://accounts.google.com/gsi/client",e.type="text/javascript",e.onload=()=>{this.gsiLoadedSource.next(!0),this.gsiLoadedSource.complete()},document.getElementsByTagName("head")[0].appendChild(e)}onLoad(){return this.gsiLoadedSource}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const Cx=new Ie("gsi.config");let f_=(()=>{class n{constructor(e,i){this.gsiLoader=i,this.clientLoaded=new Oo(1),this.gapiLoaded=new Oo(1),this.loadGapi(),Zm([this.onLoad(),this.gsiLoader.onLoad()]).subscribe(()=>{this.client=google.accounts.oauth2.initTokenClient({client_id:e.client_id,scope:e.scope,callback:()=>{},prompt:e.prompt||""}),this.clientLoaded.next(this.client),this.clientLoaded.complete()})}onClientLoaded(){return this.clientLoaded}onLoad(){return this.gapiLoaded}loadGapi(){const e=document.createElement("script");e.src="https://apis.google.com/js/api.js",e.type="text/javascript",e.onload=()=>{gapi.load("client",()=>{gapi.client.init({}).then(()=>{this.gapiLoaded.next(!0),this.gapiLoaded.complete()})})},document.getElementsByTagName("head")[0].appendChild(e)}}return n.\u0275fac=function(e){return new(e||n)(ue(Cx),ue(wx))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();function At(n,t,e,i){return new(e||(e=Promise))(function(s,o){function a(k){try{C(i.next(k))}catch(N){o(N)}}function d(k){try{C(i.throw(k))}catch(N){o(N)}}function C(k){k.done?s(k.value):function r(s){return s instanceof e?s:new e(function(o){o(s)})}(k.value).then(a,d)}C((i=i.apply(n,t||[])).next())})}const Nf="accessToken",m_="accessTokenRefresh";let g_=(()=>{class n{constructor(e){this.googleApiLoader=e,this.accessTokenSource=new Oo(1),this.googleApiLoader.onClientLoaded().subscribe(i=>this.checkStoredAccessToken(i))}checkStoredAccessToken(e){this.tokenClient=e;const i=localStorage.getItem(Nf);i&&(this.isTokenValid()?(console.log("reusing stored access token"),this.accessToken||(this.accessToken=i,gapi.client.setToken({access_token:this.accessToken}),this.accessTokenSource.next(this.accessToken))):this.fetchAccessToken())}isTokenValid(){const e=localStorage.getItem(Nf),i=parseInt(localStorage.getItem(m_)),r=(new Date).getTime();return e&&r{this.isTokenValid()?e(this.accessToken):this.googleApiLoader.onClientLoaded().subscribe(i=>{this.tokenClient=i,i.callback=r=>{e(this.handleAccessToken(r))},i.requestAccessToken()})})})}handleAccessToken(e){this.accessToken=e.access_token;const i=800*e.expires_in;return localStorage.setItem(Nf,this.accessToken),localStorage.setItem(m_,((new Date).getTime()+i).toString()),this.accessTokenSource.next(this.accessToken),this.accessToken}invalidate(){this.accessToken&&this.tokenClient&&(localStorage.removeItem(Nf),localStorage.removeItem(m_),this.accessToken="",this.accessTokenSource.next(this.accessToken))}}return n.\u0275fac=function(e){return new(e||n)(ue(f_))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),oa=(()=>{class n{constructor(e){this.accessTokenService=e,this.authState.subscribe(i=>{this.signedIn=!!i,this.signInPending=!1})}get authState(){return this.accessTokenService.accessTokenSource}signIn(){this.signInPending=!0,this.accessTokenService.fetchAccessToken()}refresh(){return this.accessTokenService.fetchAccessToken()}signOut(){this.accessTokenService.invalidate()}isSignedIn(){return this.signedIn}isSignInPending(){return this.signInPending}}return n.\u0275fac=function(e){return new(e||n)(ue(g_))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),FG=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[e,g_,f_,oa,wx]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n}),n.\u0275inj=dt({imports:[[Ri]]}),n})();var ku=M(1259),Il=M.n(ku);class Lf{constructor(t,e,i){this.tuneBook=t,this.descriptor=e,this.abc=i}}let xx=(()=>{class n{constructor(e){this.httpClient=e}loadTuneBook(e){return At(this,void 0,void 0,function*(){const i=yield this.httpClient.get(`assets/${e.uri}`,{responseType:"text"}).toPromise(),r=new ku.TuneBook(i);return new Lf(r,e,i)})}loadTuneBookCollection(){return At(this,void 0,void 0,function*(){return this.httpClient.get("assets/tunebook-collection.json").toPromise()})}}return n.\u0275fac=function(e){return new(e||n)(ue(hl))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();class PG{constructor(){this.boundary=Math.random().toString(36).slice(2),this.mimeType='multipart/related; boundary="'+this.boundary+'"',this.parts=[]}append(t,e){if(void 0!==this.body)throw new Error("Builder has already been finalized.");return this.parts.push("\r\n--",this.boundary,"\r\n","Content-Type: ",t,"\r\n\r\n",e),this}finish(){if(0===this.parts.length)throw new Error("No parts have been added.");return void 0===this.body&&(this.parts.push("\r\n--",this.boundary,"--"),this.body=this.parts.join("")),{type:this.mimeType,body:this.body}}}let Rl=(()=>{class n{constructor(e,i){this.googleApiLoader=e,this.googleAuth=i,this.driveApiLoaded=new Oo(1),this.log=(0,Kd.getLogger)("GoogleDriveService"),this.googleAuth.authState.subscribe(r=>{this.signedIn=!!r}),this.googleApiLoader.onClientLoaded().subscribe(r=>{gapi.client.load("drive","v3").then(()=>{this.log.info("Google Drive client initialized"),this.driveApiLoaded.next(!0),this.driveApiLoaded.complete()})})}isSignedIn(){return At(this,void 0,void 0,function*(){return!(!this.signedIn&&!this.googleAuth.isSignInPending())&&this.googleAuth.refresh().then(()=>!0)})}createTextFile(e,i){return At(this,void 0,void 0,function*(){if(yield this.isSignedIn())try{const r=yield this.findOrCreateFolder("Tune Browser"),s={name:e,mimeType:"text/plain",parents:[r]},o=(new PG).append("application/json",JSON.stringify(s)).append("text/plain",i).finish(),a=yield gapi.client.request({path:"/upload/drive/v3/files",method:"POST",params:{uploadType:"multipart"},headers:{"Content-Type":o.type},body:o.body});return this.log.info("Created file with id = {}",a.result.id),a.result.id}catch(r){return this.log.error("Error creating file",r),null}})}updateTextFile(e,i){return At(this,void 0,void 0,function*(){if(yield this.isSignedIn()){try{const r=yield gapi.client.request({path:"/upload/drive/v3/files/"+e,method:"PATCH",params:{uploadType:"media"},headers:{"Content-Type":"text/plain"},body:i});if(200===r.status)return this.log.info("Updated file with id = {}",r.result.id),r.result.id}catch(r){this.log.error("Error updating file",r)}return null}})}getTextFile(e){return At(this,void 0,void 0,function*(){return(yield gapi.client.drive.files.get({fileId:e,alt:"media"})).body})}listTextFiles(e){return At(this,void 0,void 0,function*(){return(yield this.isSignedIn())?(yield gapi.client.drive.files.list({q:`'${e}' in parents`,pageSize:100})).result.files.map(r=>this.toRef(r)):[]})}toRef(e){return{id:e.id,name:e.name}}createFolder(e){return At(this,void 0,void 0,function*(){const i=yield gapi.client.drive.files.create({resource:{name:e,mimeType:"application/vnd.google-apps.folder"}});return this.log.info(`Created folder ${e} with id = ${i.result.id}`),i.result.id})}findOrCreateFolder(e){return At(this,void 0,void 0,function*(){if(!(yield this.isSignedIn()))return;const r=(yield gapi.client.drive.files.list({q:`name = "${e}" and "root" in parents`})).result.files;return 1===r.length?r[0].id:this.createFolder(e)})}}return n.\u0275fac=function(e){return new(e||n)(ue(f_),ue(oa))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const kx="tunebook-collection.json";let Ax=(()=>{class n{constructor(e){this.googleDrive=e}loadTuneBook(e){return At(this,void 0,void 0,function*(){const i=yield this.googleDrive.getTextFile(e.uri),r=new ku.TuneBook(i);return new Lf(r,e,i)})}loadTuneBookCollection(){return At(this,void 0,void 0,function*(){const e=yield this.googleDrive.findOrCreateFolder("Tune Browser");if(!e)return{books:[]};const r=(yield this.googleDrive.listTextFiles(e)).find(o=>o.name===kx);let s;return void 0===r?(s='{"books": []}',this.collectionFileId=yield this.googleDrive.createTextFile(kx,s)):(this.collectionFileId=r.id,s=yield this.googleDrive.getTextFile(r.id)),JSON.parse(s)})}updateTuneBookCollection(e){return At(this,void 0,void 0,function*(){return this.googleDrive.updateTextFile(this.collectionFileId,JSON.stringify(e))})}}return n.\u0275fac=function(e){return new(e||n)(ue(Rl))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();class BG{constructor(t,e,i,r,s,o,a,d){this.id=t,this.pos=e,this.book=i,this.title=r,this.titleNormalized=s,this.rhythm=o,this.key=a,this.tags=d}hasTag(t){return this.tags&&this.tags.indexOf(t)>=0}}let Rs=(()=>{class n{constructor(){this.logger=(0,Kd.getLogger)("TuneBookIndex"),this.idToBookMap=new Map,this.entries=[],this.tuneBookReadySource=new U,this.allReadySource=new oi(!1),this.tuneBookReady=this.tuneBookReadySource.asObservable(),this.allReady=this.allReadySource.asObservable(),this.defaultBook="learner"}isReady(){return this.entries.length>0}fireAllReady(){this.allReadySource.next(!0)}addTuneBook(e){this.idToBookMap.set(e.descriptor.id,e),e.tuneBook.tunes.forEach((i,r)=>{this.entries.push(this.createEntry(i,r,e))}),this.tuneBookReadySource.next(e.descriptor.id)}updateTuneBook(e){this.deleteTuneBook(e),this.addTuneBook(e)}deleteTuneBook(e){this.idToBookMap.delete(e.descriptor.id),this.entries=this.entries.filter(i=>i.book!==e.descriptor.id)}createEntry(e,i,r){const s=this.findTuneDescriptor(e.id,r.descriptor),o=s&&s.tags,a=s&&s.rhythm,d=s&&s.key;return new BG(e.id,i,r.descriptor.id,e.title,this.normalize(e.title),a,d,o)}findTuneDescriptor(e,i){if(void 0!==i.tunes)return i.tunes.find(r=>r.id===e)}normalize(e){return e&&e.trim().toLocaleLowerCase()}findTunes(e){const i=e.title&&e.title.trim();if(this.startsWithDigit(i))return Array.from(this.idToBookMap.values()).filter(s=>e.matchesRef(s)).map(s=>this.findEntryById(s,i)).filter(s=>void 0!==s);{const r=this.normalize(i);return this.entries.filter(s=>this.matchesEntry(e,r,s))}}findEntryById(e,i){return this.entries.find(r=>r.book===e.descriptor.id&&r.id===i)}findEntryByTuneReference(e){return this.entries.find(i=>i.book===e.bookId&&i.id===e.tuneId)}setTagsForTune(e,i,r){const s=this.getBookById(i),o=this.findEntryById(s,e);s&&o?o.tags=r:this.logger.error(`Index entry not found for ${i}/${e}`)}matchesEntry(e,i,r){return!(!e.matchesName(r.book)||e.rhythm&&r.rhythm!==e.rhythm||e.key&&r.key!==e.key||e.tags&&!e.tags.find(s=>r.hasTag(s)))&&(!e.title||r.titleNormalized.includes(i))}getAbc(e){return this.idToBookMap.get(e.book).tuneBook.getTuneById(e.id).abc}findAllTunesInBook(e){var i;return null===(i=this.idToBookMap.get(e))||void 0===i?void 0:i.tuneBook.tunes}getBooks(){return Array.from(this.idToBookMap.values())}getBook(e){return this.idToBookMap.get(e.book)}getBookById(e){return this.idToBookMap.get(e)}startsWithDigit(e){if(!e)return!1;const i=e.charAt(0);return"0"<=i&&i<="9"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),Ol=(()=>{class n{constructor(e,i,r){this.websiteLoader=e,this.driveLoader=i,this.index=r,this.collection={books:[]},this.loadedBookIds=[],this.collectionLoadedSource=new Oo(1),this.loaders=[this.websiteLoader,this.driveLoader],this.collectionLoaded=this.collectionLoadedSource.asObservable()}loadCollections(){this.collection.books=[],this.loaders.forEach(e=>this.loadCollection(e))}getBooks(){return this.collection.books.map(e=>new Lf(null,e,""))}addBook(e){return At(this,void 0,void 0,function*(){this.collection.books.push(e);const i=new Lf(new ku.TuneBook(""),e,"");this.index.addTuneBook(i);const r=yield this.driveLoader.updateTuneBookCollection(this.extractUserCollection(this.collection));return this.collectionLoadedSource.next(""),r})}removeBook(e){return At(this,void 0,void 0,function*(){this.collection.books.forEach((r,s)=>{r.id===e&&this.collection.books.splice(s,1)});const i=yield this.driveLoader.updateTuneBookCollection(this.extractUserCollection(this.collection));return this.collectionLoadedSource.next(""),i})}setTagsForTune(e,i,r){return At(this,void 0,void 0,function*(){const s=this.collection.books.find(d=>d.id===i);void 0===s.tunes&&(s.tunes=[]);const o=s.tunes.find(d=>d.id===e);void 0===o?s.tunes.push({id:e,tags:r}):o.tags=r,this.index.setTagsForTune(e,i,r);const a=yield this.driveLoader.updateTuneBookCollection(this.extractUserCollection(this.collection));return this.collectionLoadedSource.next(""),a})}extractUserCollection(e){const i={books:[]};for(const r of e.books)if("googledrive"===r.storage)i.books.push(r);else{const s=this.extractTaggedTunes(r);i.books.push(s)}return i}extractTaggedTunes(e){const i={id:e.id,storage:e.storage,uri:e.uri,name:e.name,description:e.description,tunes:[]};for(const r of e.tunes)r.tags&&i.tunes.push({id:r.id,tags:r.tags});return i}loadCollection(e){return At(this,void 0,void 0,function*(){const i=yield e.loadTuneBookCollection();this.loadAndMergeCollections(this.collection,i),this.collectionLoadedSource.next("")})}loadAndMergeCollections(e,i){i.books.forEach(r=>{const s=this.mergeBooks(e.books,r);this.loadBook(s)})}mergeCollections(e,i){i.books.forEach(r=>this.mergeBooks(e.books,r))}mergeBooks(e,i){const r=e.find(s=>s.id===i.id);return void 0===r?(e.push(i),i):(i.tunes&&(void 0===r.tunes?r.tunes=i.tunes:this.mergeTunes(r.tunes,i.tunes)),r)}mergeTunes(e,i){i.forEach(r=>{const s=e.find(o=>o.id===r.id);void 0===s?e.push(r):this.mergeTune(s,r)})}mergeTune(e,i){if(void 0===e.key&&(e.key=i.key),void 0===e.rhythm&&(e.rhythm=i.rhythm),void 0===e.tags)e.tags=i.tags;else if(i.tags){const r=new Set(e.tags);i.tags.forEach(s=>r.add(s)),e.tags=Array.from(r.keys())}}addTagsToIndex(){for(const e of this.collection.books)if(e.tunes)for(const i of e.tunes)i.tags&&this.index.setTagsForTune(i.id,e.id,i.tags);this.index.fireAllReady()}loadBook(e){return At(this,void 0,void 0,function*(){if(this.loadedBookIds.indexOf(e.id)>=0)return;const r=yield this.selectLoader(e).loadTuneBook(e);return this.loadedBookIds.push(e.id),this.index.addTuneBook(r),this.loadedBookIds.length===this.collection.books.length&&this.addTagsToIndex(),r})}selectLoader(e){return"googledrive"===e.storage?this.driveLoader:this.websiteLoader}}return n.\u0275fac=function(e){return new(e||n)(ue(xx),ue(Ax),ue(Rs))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const VG=["snav"];function HG(n,t){if(1&n){const e=In();oe(0,"button",18),Oe("click",function(){return Qt(e),Ue(2),Us(3).toggle()}),oe(1,"mat-icon"),we(2,"menu"),le()()}}function jG(n,t){if(1&n&&(oe(0,"mat-toolbar",15),ze(1,HG,3,0,"button",16),oe(2,"h1",17),we(3,"Tune Browser"),le()()),2&n){const e=Ue();he(1),ge("ngIf",e.isHandset)}}function zG(n,t){if(1&n){const e=In();oe(0,"a",19),Oe("click",function(){return Qt(e),Ue().onClick()}),oe(1,"mat-icon"),we(2,"music_note"),le(),oe(3,"span",5),we(4,"Practice"),le()()}}function UG(n,t){if(1&n){const e=In();oe(0,"a",20),Oe("click",function(){return Qt(e),Ue().onClick()}),oe(1,"mat-icon"),we(2,"work"),le(),oe(3,"span",5),we(4,"Repertoire"),le()()}}function $G(n,t){if(1&n){const e=In();oe(0,"a",21),Oe("click",function(){return Qt(e),Ue().onClick()}),oe(1,"mat-icon"),we(2,"exit_to_app"),le(),oe(3,"span",5),we(4,"Log in"),le()()}}function GG(n,t){if(1&n){const e=In();oe(0,"a",22),Oe("click",function(){return Qt(e),Ue().onClick()}),oe(1,"mat-icon"),we(2,"cancel"),le(),oe(3,"span",5),we(4,"Log out"),le()()}}let WG=(()=>{class n{constructor(e,i,r,s,o,a){this.breakpointObserver=e,this.collectionService=i,this.accessTokenService=r,this.googleDriveService=s,this.zone=o,this.scroll=a,this.isHandset=!1,this.toolbarVisible=!0,this.breakpointObserver.observe(["(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"]).subscribe(d=>{this.isHandset=d.matches}),this.scroll.scrolled().subscribe(d=>{this.zone.run(()=>this.onWindowScroll(d))}),this.googleDriveService.driveApiLoaded.subscribe(d=>{this.accessTokenService.accessTokenSource.subscribe(C=>{this.zone.run(()=>{this.signedIn=!!C,this.collectionService.loadCollections()})})})}sidenavMode(){return this.isHandset?"over":"side"}onClick(){this.isHandset&&this.sidenav.close()}ngOnInit(){return At(this,void 0,void 0,function*(){this.collectionService.loadCollections()})}onWindowScroll(e){const i=e.getElementRef().nativeElement.scrollTop||0;let r=this.toolbarVisible;this.lastOffset>i+10||i<10?r=!0:i>50&&(r=!1),this.lastOffset=i,this.toolbarVisible=!this.isHandset||r}}return n.\u0275fac=function(e){return new(e||n)(V(Vm),V(Ol),V(g_),V(Rl),V(ct),V(ul))},n.\u0275cmp=Ge({type:n,selectors:[["app-root"]],viewQuery:function(e,i){if(1&e&&jt(VG,5),2&e){let r;He(r=je())&&(i.sidenav=r.first)}},decls:33,vars:7,consts:[["color","primary",4,"ngIf"],[1,"full-height"],[3,"mode","opened"],["snav",""],["mat-list-item","","routerLink","/search",3,"click"],[1,"nav-caption"],["mat-list-item","","routerLink","/record",3,"click"],["mat-list-item","","routerLink","/books",3,"click"],["mat-list-item","","routerLink","/practice",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/repertoire",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/login",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/logout",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/about",3,"click"],["cdkScrollable",""],[1,"main-content"],["color","primary"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"irish"],["mat-icon-button","",3,"click"],["mat-list-item","","routerLink","/practice",3,"click"],["mat-list-item","","routerLink","/repertoire",3,"click"],["mat-list-item","","routerLink","/login",3,"click"],["mat-list-item","","routerLink","/logout",3,"click"]],template:function(e,i){1&e&&(ze(0,jG,4,1,"mat-toolbar",0),oe(1,"mat-sidenav-container",1)(2,"mat-sidenav",2,3)(4,"mat-nav-list")(5,"a",4),Oe("click",function(){return i.onClick()}),oe(6,"mat-icon"),we(7,"search"),le(),oe(8,"span",5),we(9,"Search"),le()(),oe(10,"a",6),Oe("click",function(){return i.onClick()}),oe(11,"mat-icon"),we(12,"mic"),le(),oe(13,"span",5),we(14,"Recognize"),le()(),oe(15,"a",7),Oe("click",function(){return i.onClick()}),oe(16,"mat-icon"),we(17,"list"),le(),oe(18,"span",5),we(19,"Browse"),le()(),ze(20,zG,5,0,"a",8),ze(21,UG,5,0,"a",9),ze(22,$G,5,0,"a",10),ze(23,GG,5,0,"a",11),oe(24,"a",12),Oe("click",function(){return i.onClick()}),oe(25,"mat-icon"),we(26,"info"),le(),oe(27,"span",5),we(28,"About"),le()()()(),oe(29,"mat-sidenav-content",13)(30,"div")(31,"div",14),yt(32,"router-outlet"),le()()()()),2&e&&(ge("ngIf",i.toolbarVisible),he(2),ge("mode",i.sidenavMode())("opened",!i.isHandset),he(18),ge("ngIf",i.signedIn),he(1),ge("ngIf",i.signedIn),he(1),ge("ngIf",!i.signedIn),he(1),ge("ngIf",i.signedIn))},directives:[hi,aU,Fi,cu,QE,XE,WH,uu,Of,xv,Ks,s_],styles:[""]}),n})(),YG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ge({type:n,selectors:[["app-about"]],decls:61,vars:0,consts:[[1,"mat-body"],[1,"mat-h2"],[1,"mat-h3"],["href","https://tunepal.org"],["href","https://thesession.org"]],template:function(e,i){1&e&&(oe(0,"div",0)(1,"h2",1),we(2,"About Tune Browser"),le(),oe(3,"h3",2),we(4,"Release"),le(),oe(5,"p"),we(6,"Version: 0.28.3 (2023-11-28)"),le(),oe(7,"h3",2),we(8,"Features"),le(),oe(9,"ul")(10,"li"),we(11,"Browse tune books in ABC notation"),le(),oe(12,"li"),we(13,"Create PDF files of tunes or books for printing"),le(),oe(14,"li"),we(15,"Create and edit your own tune books on Google Drive"),le(),oe(16,"li"),we(17,"Add tags to tunes (requires Google Drive)"),le(),oe(18,"li"),we(19,"Find tunes by title or number, key, rhythm, books or tags"),le(),oe(20,"li"),we(21,"Play tunes and adjust tempo"),le(),oe(22,"li"),we(23,"Create repertoires and get practice assignments (requires Google Drive)"),le(),oe(24,"li"),we(25,"Record audio samples and recognize tunes from thesession.org"),le()(),oe(26,"h3",2),we(27,"Getting started"),le(),oe(28,"p"),we(29," Tune Browser is a web application which should work in any modern web browser, including mobile browsers on smartphones or tablets. "),le(),oe(30,"p"),we(31," On mobile devices, you can create a shortcut on your home screen which makes Tune Browser work in full screen mode, almost like a native app, without requiring installation from Play Store or App Store. "),le(),oe(32,"p"),we(33," If you have a Google account, you can create and edit your own tune books and store them on Google Drive. Before you can do so, you will have to log in to your Google account from Tune Browser. The login dialogue uses a separate browser window which directly communicates with Google. Tune Browser will create a folder "),oe(34,"code"),we(35,"Tune Browser"),le(),we(36," containing your tune books. "),le(),oe(37,"h3",2),we(38,"Practicing"),le(),oe(39,"p"),we(40," With a Google account, you can create one or more repertoires (e.g. for different instruments) with tunes from existing books and generate daily practice assignments. "),le(),oe(41,"p"),we(42," For each tune in a given repertoire, Tune Browser records the date you last practiced the tune and the date you added it. Based on this information, new tunes will be included in your assignment every day for the first week, and then in longer intervals in the following weeks. Older tunes will be rescheduled once a month. Some randomness gets applied to avoid repetitive assignments. "),le(),oe(43,"h3",2),we(44,"Recognize tunes"),le(),oe(45,"p"),we(46," You can record audio snippets and recognize tunes based on Bryan Duggan's MATT2 matching algorithm as published in "),oe(47,"a",3),we(48,"tunepal.org"),le(),we(49,". "),le(),oe(50,"p"),we(51," Tune Browser matches your audio against the tune corpus of "),oe(52,"a",4),we(53,"thesession.org"),le(),we(54,". The best matches are listed by confidence level and are linked to the corresponding pages on thesession.org. "),le(),oe(55,"h3",2),we(56,"Privacy"),le(),oe(57,"p"),we(58,"Tune Browser does not collect any personal data from its users."),le(),oe(59,"p"),we(60," Tune Browser is hosted on GitHub Pages and on Google Cloud Run. It optionally uses Google Drive for storing your tune books. If you are worried about privacy, please review the terms of service of these providers. Tune Browser has no influence on user tracking performed by these services. "),le()())},encapsulation:2}),n})(),Bf=(()=>{class n{constructor(e){this.httpClient=e}saveAsPdf(e){this.httpClient.post("https://abc2pdf-vkhoermztq-ew.a.run.app/print",'\n%%header "$P0\t\t$P1"\n%%titleformat "T, R-1 C1"\n%%pagewidth 21cm\n%%pageheight 29.7cm\n%%topmargin 1.5cm\n%%botmargin 1.5cm\n%%leftmargin 1.5cm\n%%rightmargin 1.5cm\n%%topspace 0cm\n'+e,{responseType:"arraybuffer"}).subscribe(i=>this.downloadFile(i,"application/pdf"))}downloadFile(e,i){const r=document.createElement("a");r.href=window.URL.createObjectURL(new Blob([e],{type:i})),r.target="pdf",document.body.appendChild(r),r.click(),r.parentNode.removeChild(r)}}return n.\u0275fac=function(e){return new(e||n)(ue(hl))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),KG=(()=>{class n{constructor(e,i,r,s){this.route=e,this.router=i,this.index=r,this.pdfService=s,this.index.tuneBookReady.subscribe(o=>this.onReady(o)),this.route.paramMap.subscribe(o=>{this.bookId=o.get("id"),this.onReady(this.bookId)})}onReady(e){const i=this.index.findAllTunesInBook(e).map(s=>s.abc).join("\n"),r=this.index.getBookById(e).descriptor.name;this.pdfService.saveAsPdf(`%%footer ${r}\n${i}`),this.router.navigate(["/books"])}}return n.\u0275fac=function(e){return new(e||n)(V(Gi),V(ci),V(Rs),V(Bf))},n.\u0275cmp=Ge({type:n,selectors:[["app-book-print"]],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})();function XG(n,t){1&n&&(oe(0,"mat-icon"),we(1,"edit"),le())}function QG(n,t){if(1&n&&(oe(0,"mat-list-item")(1,"div",4)(2,"button",5),ze(3,XG,2,0,"mat-icon",6),le()(),oe(4,"div",4)(5,"button",7)(6,"mat-icon"),we(7,"print"),le()()(),oe(8,"div",8)(9,"div",9),we(10),le(),oe(11,"div",10),we(12),le()()()),2&n){const e=t.$implicit,i=Ue();he(2),$s("routerLink","../edit/",e.descriptor.id,""),ge("disabled",!i.isEditable(e)),he(1),ge("ngIf",i.isEditable(e)),he(2),$s("routerLink","../print/",e.descriptor.id,""),he(4),$s("routerLink","../book/",e.descriptor.id,""),he(1),xn(e.descriptor.name),he(2),xn(e.descriptor.description)}}let ZG=(()=>{class n{constructor(e,i){this.collectionService=e,this.googleAuth=i,this.books=[],this.signedIn=!1,this.googleAuth.authState.subscribe(r=>{this.signedIn=!!r}),this.collectionService.collectionLoaded.subscribe(()=>this.books=this.collectionService.getBooks())}isEditable(e){return"googledrive"===e.descriptor.storage}}return n.\u0275fac=function(e){return new(e||n)(V(Ol),V(oa))},n.\u0275cmp=Ge({type:n,selectors:[["app-books-list"]],decls:7,vars:2,consts:[[1,"mat-h2"],[1,"tunebook-list"],[4,"ngFor","ngForOf"],["mat-raised-button","","routerLink","../createBook","color","primary",1,"create-book-button",3,"disabled"],[1,"tunebook-button"],["mat-icon-button","",3,"routerLink","disabled"],[4,"ngIf"],["mat-icon-button","",3,"routerLink"],[1,"tunebook-item"],[1,"tunebook-link",3,"routerLink"],[1,"tunebook-description"]],template:function(e,i){1&e&&(oe(0,"div")(1,"h2",0),we(2,"Tunebooks"),le(),oe(3,"mat-list",1),ze(4,QG,13,7,"mat-list-item",2),le(),oe(5,"button",3),we(6,"New Book"),le()()),2&e&&(he(4),ge("ngForOf",i.books),he(1),ge("disabled",!i.signedIn))},directives:[Jh,rs,uu,Fi,ho,hi,cu],encapsulation:2}),n})(),JG=(()=>{class n{constructor(e,i,r){this.snackBar=e,this.googleDrive=i,this.tuneBookCollectionService=r}createBook(){return At(this,void 0,void 0,function*(){const e=`${this.id}.abc`,i=yield this.googleDrive.createTextFile(e,""),r={description:this.description,id:this.id,name:this.title,storage:"googledrive",uri:i};yield this.tuneBookCollectionService.addBook(r),this.snackBar.open(`Created ${e} on Google Drive`,"Dismiss",{duration:3e3})})}}return n.\u0275fac=function(e){return new(e||n)(V(af),V(Rl),V(Ol))},n.\u0275cmp=Ge({type:n,selectors:[["app-create-book"]],decls:13,vars:3,consts:[[1,"mat-h2"],[1,"create-book-panel"],[1,"query"],["matInput","","name","title","type","text","placeholder","Title",3,"ngModel","ngModelChange"],["matInput","","name","description","type","text","placeholder","Description",3,"ngModel","ngModelChange"],["matInput","","name","id","type","text","placeholder","ID used in URL or file name",3,"ngModel","ngModelChange"],["mat-raised-button","","label","Create","color","primary",1,"create-book-button",3,"click"]],template:function(e,i){1&e&&(oe(0,"div")(1,"h2",0),we(2,"New tunebook"),le()(),oe(3,"div",1)(4,"form")(5,"mat-form-field",2)(6,"input",3),Oe("ngModelChange",function(s){return i.title=s}),le()(),oe(7,"mat-form-field",2)(8,"input",4),Oe("ngModelChange",function(s){return i.description=s}),le()(),oe(9,"mat-form-field",2)(10,"input",5),Oe("ngModelChange",function(s){return i.id=s}),le()(),oe(11,"button",6),Oe("click",function(){return i.createBook()}),we(12,"Create Book"),le()()()),2&e&&(he(6),ge("ngModel",i.title),he(2),ge("ngModel",i.description),he(2),ge("ngModel",i.id))},directives:[Yc,zc,Es,Jo,ea,ss,eo,Bo,Fi],encapsulation:2}),n})(),eW=(()=>{class n{constructor(e,i,r,s){this.route=e,this.router=i,this.zone=r,this.googleAuth=s,this.loginPending=!1,this.route.url.subscribe(o=>this.onAction()),this.googleAuth.authState.subscribe(o=>{this.loginPending&&(this.loginPending=!1,this.zone.run(()=>this.router.navigate(["/books"])))})}onAction(){this.loginPending=!0,this.googleAuth.signIn()}}return n.\u0275fac=function(e){return new(e||n)(V(Gi),V(ci),V(ct),V(oa))},n.\u0275cmp=Ge({type:n,selectors:[["app-login"]],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),tW=(()=>{class n{constructor(e,i,r){this.route=e,this.router=i,this.googleAuth=r,this.route.url.subscribe(()=>this.onAction())}onAction(){this.googleAuth.signOut(),this.router.navigate(["/books"])}}return n.\u0275fac=function(e){return new(e||n)(V(Gi),V(ci),V(oa))},n.\u0275cmp=Ge({type:n,selectors:[["app-logout"]],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})();function Au(n){let t=n.replace(/^\d+[a-z]?\s*/,"");return t.endsWith(", The")&&(t=t.replace(/, The$/,""),t="The "+t),t}let Tx=(()=>{class n{constructor(e){this.httpClient=e}findBestMatches(e){return At(this,void 0,void 0,function*(){return this.httpClient.get("https://matt-vkhoermztq-ew.a.run.app/match/"+e).toPromise()})}}return n.\u0275fac=function(e){return new(e||n)(ue(hl))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();function oW(n,t){1&n&&yt(0,"mat-progress-bar",5)}function aW(n,t){if(1&n&&(oe(0,"mat-list-item")(1,"div",6)(2,"a",7),we(3),le(),oe(4,"div",8),we(5),le()(),oe(6,"div",9),we(7),le()()),2&n){const e=t.$implicit,i=Ue();he(2),qa("href","https://thesession.org/tunes/",e.tune,"#setting",e.setting,"",od),he(1),xn(i.title(e)),he(2),xn(i.getRhythmAndKey(e)),he(2),Rn(" ",i.confidencePercentage(e)," % ")}}let lW=(()=>{class n{constructor(e,i){this.route=e,this.tuneMatcher=i,this.route.paramMap.subscribe(r=>this.matchTranscription(r))}matchTranscription(e){return At(this,void 0,void 0,function*(){const i=e.get("transcription");this.tunes=yield this.tuneMatcher.findBestMatches(i)})}confidencePercentage(e){return Math.round(100*e.confidence)}title(e){return Au(e.name)}getRhythmAndKey(e){return`${e.rhythm} in ${e.key}`}}return n.\u0275fac=function(e){return new(e||n)(V(Gi),V(Tx))},n.\u0275cmp=Ge({type:n,selectors:[["app-matcher"]],decls:6,vars:2,consts:[[1,"mat-h2"],["id","progress"],["mode","indeterminate",4,"ngIf"],[1,"tune-list"],[4,"ngFor","ngForOf"],["mode","indeterminate"],[1,"tune-item"],["target","thesession",1,"tune-link","md-accent",3,"href"],[1,"mat-small"],[1,"confidence"]],template:function(e,i){1&e&&(oe(0,"h2",0),we(1,"Matching tunes"),le(),oe(2,"div",1),ze(3,oW,1,0,"mat-progress-bar",2),le(),oe(4,"mat-list",3),ze(5,aW,8,5,"mat-list-item",4),le()),2&e&&(he(3),ge("ngIf",!i.tunes),he(2),ge("ngForOf",i.tunes))},directives:[hi,VE,Jh,rs,uu],encapsulation:2}),n})();const Ix="repertoire-collection.json",v_=[1,1,1,1,1,1,2,2,2,3,3,6,6,15];function uW(n,t){return"added"===n||"due"===n||"lastPracticed"===n?new Date(t):"items"===n?t.map(e=>new Rx(e.tune,e.added,e.timesPracticed,e.lastPracticed)):"instrument"!==n?t:void(this.name=t)}function dW(n,t){if("due"!==n)return t}class Rx{constructor(t,e,i,r){this.tune=t,this.added=e,this.timesPracticed=i,this.lastPracticed=r}practicedOn(t){this.lastPracticed=t,this.timesPracticed++}referencedBy(t){return!!t&&this.tune.bookId===t.bookId&&this.tune.tuneId===t.tuneId}}let Tu=(()=>{class n{constructor(e){this.googleDrive=e}load(){return At(this,void 0,void 0,function*(){if(!(yield this.googleDrive.isSignedIn()))return{repertoires:[]};if(this.repertoireCollection)return this.repertoireCollection;const e=yield this.googleDrive.findOrCreateFolder("Tune Browser"),r=(yield this.googleDrive.listTextFiles(e)).find(o=>o.name===Ix);let s;return void 0===r?(s='{"repertoires": []}',this.collectionFileId=yield this.googleDrive.createTextFile(Ix,s)):(this.collectionFileId=r.id,s=yield this.googleDrive.getTextFile(r.id)),this.repertoireCollection=JSON.parse(s,uW),this.repertoireCollection})}saveCollection(e){return At(this,void 0,void 0,function*(){return this.googleDrive.updateTextFile(this.collectionFileId,JSON.stringify(e,dW))})}save(){return At(this,void 0,void 0,function*(){return this.repertoireCollection?this.saveCollection(this.repertoireCollection):null})}addRepertoireItem(e,i){return At(this,void 0,void 0,function*(){const r=yield this.load();let s=yield this.findRepertoire(i.name);void 0===s&&(s={name:i.name,maxAge:30,numTunesPerAssignment:10,items:[]},r.repertoires.push(s),r.current=i.name);const o=s.items.find(a=>a.referencedBy(e));return o?o.added=i.added:s.items.push(new Rx(e,i.added,0)),this.saveCollection(r)})}findRepertoire(e){return At(this,void 0,void 0,function*(){const i=yield this.load();return e||(e=i.current),e?i.repertoires.find(r=>r.name===e):i.repertoires[0]})}}return n.\u0275fac=function(e){return new(e||n)(ue(Rl))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();function hW(n){if(null===n||!0===n||!1===n)return NaN;var t=Number(n);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Iu(n,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Vf(n){Iu(1,arguments);var t=Object.prototype.toString.call(n);return n instanceof Date||"object"==typeof n&&"[object Date]"===t?new Date(n.getTime()):"number"==typeof n||"[object Number]"===t?new Date(n):(("string"==typeof n||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function __(n,t){Iu(2,arguments);var e=Vf(n),i=hW(t);return isNaN(i)?new Date(NaN):(i&&e.setDate(e.getDate()+i),e)}function Ox(n){var t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),n.getTime()-t.getTime()}function Fx(n){Iu(1,arguments);var t=Vf(n);return t.setHours(0,0,0,0),t}function pW(n,t){Iu(2,arguments);var e=Fx(n),i=Fx(t),r=e.getTime()-Ox(e),s=i.getTime()-Ox(i);return Math.round((r-s)/864e5)}function Px(n,t){var e=n.getFullYear()-t.getFullYear()||n.getMonth()-t.getMonth()||n.getDate()-t.getDate()||n.getHours()-t.getHours()||n.getMinutes()-t.getMinutes()||n.getSeconds()-t.getSeconds()||n.getMilliseconds()-t.getMilliseconds();return e<0?-1:e>0?1:e}function Hf(n,t){Iu(2,arguments);var e=Vf(n),i=Vf(t),r=Px(e,i),s=Math.abs(pW(e,i));e.setDate(e.getDate()-r*s);var o=Number(Px(e,i)===-r),a=r*(s-o);return 0===a?0:a}function y_(n){return __(n,Math.trunc(3*Math.random())-1)}let Nx=(()=>{class n{buildPracticeAssignment(e,i){const r=[...e.items];r.forEach(a=>this.computeDueDate(a,e,i)),r.sort((a,d)=>Hf(a.due,d.due));const s=r.filter(a=>this.isDueOnDay(a,i));if(s.length>=e.numTunesPerAssignment){const a=s.slice(0,e.numTunesPerAssignment),C=s.slice(e.numTunesPerAssignment+1).filter(k=>k.timesPracticed<=v_.length);if(C.length>0){const k=C.slice(0,e.numTunesPerAssignment/2),N=a.slice(0,e.numTunesPerAssignment-k.length);return k.concat(N)}return s.slice(0,e.numTunesPerAssignment)}const o=r.filter(a=>!this.isDueOnDay(a,i)&&!this.isRecentOnDay(a,i));return s.concat(o.slice(0,e.numTunesPerAssignment-s.length))}isDueOnDay(e,i){return Hf(e.due,i)<=0}isRecentOnDay(e,i){return Hf(i,e.added)<=30}computeDueDate(e,i,r){if(Hf(y_(r||new Date),e.added)>i.maxAge||e.timesPracticed>=v_.length)e.due=__(y_(e.lastPracticed||e.added),i.maxAge);else if(e.timesPracticed>0){const o=v_[e.timesPracticed];e.due=__(y_(e.lastPracticed),o)}else e.due=e.added}markAsPracticed(e,i){e.forEach(r=>r.practicedOn(i))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();function mW(n,t){if(1&n&&(oe(0,"mat-option",12),we(1),le()),2&n){const e=t.$implicit;ge("value",e.name),he(1),Rn(" ",e.name," ")}}function gW(n,t){if(1&n){const e=In();oe(0,"div",3)(1,"div",4)(2,"mat-form-field")(3,"mat-label"),we(4,"Repertoire"),le(),oe(5,"mat-select",5),Oe("valueChange",function(r){return Qt(e),Ue().repertoire=r}),ze(6,mW,2,2,"mat-option",6),le()(),oe(7,"mat-form-field",7)(8,"input",8),Oe("ngModelChange",function(r){return Qt(e),Ue().maxAge=r}),le()(),oe(9,"mat-form-field",9)(10,"input",10),Oe("ngModelChange",function(r){return Qt(e),Ue().numTunes=r}),le()()(),oe(11,"button",11),Oe("click",function(){return Qt(e),Ue().buildAssignment()}),we(12,"Get assignment"),le()()}if(2&n){const e=Ue();he(5),ge("value",e.repertoire),he(1),ge("ngForOf",e.repertoires()),he(2),ge("ngModel",e.maxAge),he(2),ge("ngModel",e.numTunes)}}function vW(n,t){if(1&n&&(oe(0,"mat-list-item")(1,"div",16),we(2),le()()),2&n){const e=t.$implicit,i=Ue(2);he(1),qa("routerLink","../tune/",e.book,"/",e.id,""),he(1),Rn(" ",i.titleWithoutNumber(e.title),"")}}function _W(n,t){if(1&n){const e=In();oe(0,"div",13)(1,"mat-list"),ze(2,vW,3,3,"mat-list-item",14),le(),oe(3,"button",15),Oe("click",function(){return Qt(e),Ue().markAsPracticed()}),we(4,"All done"),le()()}if(2&n){const e=Ue();he(2),ge("ngForOf",e.entries),he(1),ge("disabled",e.saved)}}let yW=(()=>{class n{constructor(e,i,r,s,o){this.snackBar=e,this.repertoireRepository=i,this.googleAuth=r,this.practiceService=s,this.index=o,this.saved=!1,this.titleWithoutNumber=Au,this.googleAuth.authState.subscribe(()=>this.loadRepertoires())}loadRepertoires(){return At(this,void 0,void 0,function*(){this.repertoireCollection=yield this.repertoireRepository.load(),this.repertoireCollection.current&&(this.repertoire=this.repertoireCollection.current);const e=yield this.repertoireRepository.findRepertoire();!e||(this.numTunes=e.numTunesPerAssignment,this.maxAge=e.maxAge,this.repertoireRepository.currentAssignment&&(this.assignment=this.repertoireRepository.currentAssignment,this.entries=this.assignment.map(i=>this.index.findEntryByTuneReference(i.tune))))})}hasAssignment(){return void 0!==this.entries}buildAssignment(){return At(this,void 0,void 0,function*(){const e=yield this.repertoireRepository.findRepertoire(this.repertoire);this.numTunes>0&&(e.numTunesPerAssignment=this.numTunes,e.maxAge=this.maxAge,this.repertoireCollection.current=this.repertoire),this.assignment=this.practiceService.buildPracticeAssignment(e,new Date),this.repertoireRepository.currentAssignment=this.assignment,this.entries=this.assignment.map(i=>this.index.findEntryByTuneReference(i.tune))})}markAsPracticed(){return At(this,void 0,void 0,function*(){this.practiceService.markAsPracticed(this.assignment,new Date),(yield this.repertoireRepository.save())?(this.saved=!0,this.snackBar.open("Updated repertoire on Google Drive","Dismiss",{duration:3e3})):this.snackBar.open("ERROR SAVING REPERTOIRE","Dismiss",{duration:3e3})})}repertoires(){return void 0===this.repertoireCollection?[]:this.repertoireCollection.repertoires}}return n.\u0275fac=function(e){return new(e||n)(V(af),V(Tu),V(oa),V(Nx),V(Rs))},n.\u0275cmp=Ge({type:n,selectors:[["app-practice"]],decls:5,vars:2,consts:[[1,"mat-h2"],["id","initial",4,"ngIf"],["id","assignment",4,"ngIf"],["id","initial"],[1,"form-container"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"max-age"],["matInput","","name","maxAge","type","number","placeholder","Maximum age in days",3,"ngModel","ngModelChange"],[1,"num-tunes"],["matInput","","name","numTunes","type","number","placeholder","Number of tunes",3,"ngModel","ngModelChange"],["mat-raised-button","","color","primary",1,"search-button",3,"click"],[3,"value"],["id","assignment"],[4,"ngFor","ngForOf"],["mat-raised-button","","label","All done","color","primary",1,"search-button",3,"disabled","click"],[1,"tune-link",3,"routerLink"]],template:function(e,i){1&e&&(oe(0,"div")(1,"h2",0),we(2,"Practice"),le(),ze(3,gW,13,4,"div",1),ze(4,_W,5,2,"div",2),le()),2&e&&(he(3),ge("ngIf",!i.hasAssignment()),he(1),ge("ngIf",i.hasAssignment()))},directives:[hi,Jo,bl,GE,rs,tu,ea,mg,ss,eo,Bo,Fi,Jh,uu,ho],encapsulation:2}),n})();function wW(n){const{subscriber:t,counter:e,period:i}=n;t.next(e),this.schedule({subscriber:t,counter:e+1,period:i},i)}let Lx=(()=>{class n{audioContext(){return At(this,void 0,void 0,function*(){if(!this.instance){const e=window.AudioContext||window.webkitAudioContext;this.instance=new e,"suspended"===this.instance.state&&(yield this.instance.resume())}return this.instance})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const Bx=Symbol("Comlink.proxy"),CW=Symbol("Comlink.endpoint"),DW=Symbol("Comlink.releaseProxy"),b_=Symbol("Comlink.thrown"),Vx=n=>"object"==typeof n&&null!==n||"function"==typeof n,MW={canHandle:n=>Vx(n)&&n[Bx],serialize(n){const{port1:t,port2:e}=new MessageChannel;return jx(n,t),[e,[e]]},deserialize:n=>(n.start(),Ux(n))},EW={canHandle:n=>Vx(n)&&b_ in n,serialize({value:n}){let t;return t=n instanceof Error?{isError:!0,value:{message:n.message,name:n.name,stack:n.stack}}:{isError:!1,value:n},[t,[]]},deserialize(n){throw n.isError?Object.assign(new Error(n.value.message),n.value):n.value}},Hx=new Map([["proxy",MW],["throw",EW]]);function jx(n,t=self){t.addEventListener("message",function e(i){if(!i||!i.data)return;const{id:r,type:s,path:o}=Object.assign({path:[]},i.data),a=(i.data.argumentList||[]).map(aa);let d;try{const C=o.slice(0,-1).reduce((N,G)=>N[G],n),k=o.reduce((N,G)=>N[G],n);switch(s){case"GET":d=k;break;case"SET":C[o.slice(-1)[0]]=aa(i.data.value),d=!0;break;case"APPLY":d=k.apply(C,a);break;case"CONSTRUCT":d=function AW(n){return Object.assign(n,{[Bx]:!0})}(new k(...a));break;case"ENDPOINT":{const{port1:N,port2:G}=new MessageChannel;jx(n,G),d=function kW(n,t){return Gx.set(n,t),n}(N,[N])}break;case"RELEASE":d=void 0;break;default:return}}catch(C){d={value:C,[b_]:0}}Promise.resolve(d).catch(C=>({value:C,[b_]:0})).then(C=>{const[k,N]=C_(C);t.postMessage(Object.assign(Object.assign({},k),{id:r}),N),"RELEASE"===s&&(t.removeEventListener("message",e),zx(t))})}),t.start&&t.start()}function zx(n){(function SW(n){return"MessagePort"===n.constructor.name})(n)&&n.close()}function Ux(n,t){return w_(n,[],t)}function jf(n){if(n)throw new Error("Proxy has been released and is not useable")}function w_(n,t=[],e=function(){}){let i=!1;const r=new Proxy(e,{get(s,o){if(jf(i),o===DW)return()=>Fl(n,{type:"RELEASE",path:t.map(a=>a.toString())}).then(()=>{zx(n),i=!0});if("then"===o){if(0===t.length)return{then:()=>r};const a=Fl(n,{type:"GET",path:t.map(d=>d.toString())}).then(aa);return a.then.bind(a)}return w_(n,[...t,o])},set(s,o,a){jf(i);const[d,C]=C_(a);return Fl(n,{type:"SET",path:[...t,o].map(k=>k.toString()),value:d},C).then(aa)},apply(s,o,a){jf(i);const d=t[t.length-1];if(d===CW)return Fl(n,{type:"ENDPOINT"}).then(aa);if("bind"===d)return w_(n,t.slice(0,-1));const[C,k]=$x(a);return Fl(n,{type:"APPLY",path:t.map(N=>N.toString()),argumentList:C},k).then(aa)},construct(s,o){jf(i);const[a,d]=$x(o);return Fl(n,{type:"CONSTRUCT",path:t.map(C=>C.toString()),argumentList:a},d).then(aa)}});return r}function xW(n){return Array.prototype.concat.apply([],n)}function $x(n){const t=n.map(C_);return[t.map(e=>e[0]),xW(t.map(e=>e[1]))]}const Gx=new WeakMap;function C_(n){for(const[t,e]of Hx)if(e.canHandle(n)){const[i,r]=e.serialize(n);return[{type:"HANDLER",name:t,value:i},r]}return[{type:"RAW",value:n},Gx.get(n)||[]]}function aa(n){switch(n.type){case"HANDLER":return Hx.get(n.name).deserialize(n.value);case"RAW":return n.value}}function Fl(n,t,e){return new Promise(i=>{const r=function TW(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}();n.addEventListener("message",function s(o){!o.data||!o.data.id||o.data.id!==r||(n.removeEventListener("message",s),i(o.data))}),n.start&&n.start(),n.postMessage(Object.assign({id:r},t),e)})}let Wx=(()=>{class n{transcriber(){if(!this.instance){const e=new Worker(M.tu(new URL(M.p+M.u(911),M.b)),{name:"transcriber",type:void 0});this.instance=Ux(e)}return this.instance}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),Yx=(()=>{class n{constructor(e,i,r){this.audioContextProvider=e,this.transcriberProvider=i,this.zone=r,this.timeRecorded=0,this.tickTime=.01,this.progressSource=new oi(0),this.transcriptionResultSource=new U,this.progress=this.progressSource.asObservable(),this.transcriptionResult=this.transcriptionResultSource.asObservable(),this.transcriber=this.transcriberProvider.transcriber(),this.status=zr.STOPPED}get sampleTime(){return 12}get blankTime(){return 0}get fundamental(){return"D"}get sampleRate(){return this.audioContext.sampleRate}get progressPercentage(){return 100*this.timeRecorded/(this.blankTime+this.sampleTime)}onTranscribed(e){this.zone.run(()=>this.transcriptionResultSource.next(e.transcription))}initAudio(){return At(this,void 0,void 0,function*(){this.audioContext=yield this.audioContextProvider.audioContext();try{if(this.stream=yield navigator.mediaDevices.getUserMedia({audio:!0}),this.stream){this.status=zr.INIT_SUCCEEDED;const e=4096;this.input=this.audioContext.createMediaStreamSource(this.stream),this.analyser=this.audioContext.createAnalyser(),this.analyser.fftSize=e,this.input.connect(this.analyser)}}catch(e){this.status=zr.INIT_FAILED}})}start(){this.stream&&(this.transcriber.initialize({inputSampleRate:this.audioContext.sampleRate,sampleTime:this.sampleTime,blankTime:this.blankTime,tickTime:this.tickTime,fundamental:this.fundamental}).then(()=>this.status=zr.RECORDING),this.fftBuffer=new Float32Array(this.analyser.frequencyBinCount),this.timer=KC(0,1e3*this.tickTime),this.subscription=this.timer.subscribe(()=>this.pushSpectrum()))}pushSpectrum(){return At(this,void 0,void 0,function*(){this.status==zr.RECORDING&&(this.analyser.getFloatFrequencyData(this.fftBuffer),this.transcriber.pushSignal(this.fftBuffer),this.timeRecorded+=this.tickTime,this.zone.run(()=>this.progressSource.next(this.progressPercentage)),this.recordingComplete()&&(this.subscription.unsubscribe(),yield this.analyzeSignal()))})}recordingComplete(){return this.timeRecorded>=this.sampleTime}stop(){this.status=zr.STOPPED,this.timeRecorded=0,this.stream&&(this.stream.getTracks().forEach(e=>e.stop()),this.stream=null),this.input.disconnect(this.analyser)}destroy(){this.stop()}analyzeSignal(){return At(this,void 0,void 0,function*(){this.stop(),this.status=zr.ANALYZING;const e=yield this.transcriber.transcribe();this.status=zr.ANALYSIS_SUCCEEDED,this.onTranscribed(e)})}}return n.\u0275fac=function(e){return new(e||n)(ue(Lx),ue(Wx),ue(ct))},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();var zr=(()=>(function(n){n.STOPPED="STOPPED",n.INIT="INIT",n.INIT_SUCCEEDED="INIT_SUCCEEDED",n.INIT_FAILED="INIT_FAILED",n.RECORDING="RECORDING",n.ANALYZING="ANALYZING",n.ANALYSIS_SUCCEEDED="ANALYSIS_SUCCEEDED",n.API_MISSING="API_MISSING"}(zr||(zr={})),zr))();let OW=(()=>{class n{constructor(e,i){this.router=e,this.recorder=i,this.recorder.progress.subscribe(r=>this.progress=r),this.recorder.transcriptionResult.subscribe(r=>{this.progress=0,this.progressbarValue=0,r&&this.router.navigate([`/match/${r}`])})}startRecording(){return At(this,void 0,void 0,function*(){const i=function bW(n=0,t=ol){return(!zm(n)||n<0)&&(n=0),(!t||"function"!=typeof t.schedule)&&(t=ol),new j(e=>(e.add(t.schedule(wW,n,{subscriber:e,counter:0,period:n})),e))}(100).subscribe(r=>{this.progressbarValue=this.progress,this.progressbarValue>=100&&i.unsubscribe()});yield this.recorder.initAudio(),this.recorder.start()})}}return n.\u0275fac=function(e){return new(e||n)(V(ci),V(Yx))},n.\u0275cmp=Ge({type:n,selectors:[["app-record"]],decls:8,vars:1,consts:[[1,"mat-h2"],["id","progress"],["mode","determinate",3,"value"],["id","button-container"],["mat-raised-button","","color","primary",1,"search-button",3,"click"]],template:function(e,i){1&e&&(oe(0,"div")(1,"h2",0),we(2,"Recognize"),le(),oe(3,"div",1),yt(4,"mat-progress-bar",2),le(),oe(5,"div",3)(6,"button",4),Oe("click",function(){return i.startRecording()}),we(7,"Start"),le()()()),2&e&&(he(4),ge("value",i.progressbarValue))},directives:[VE,Fi],encapsulation:2}),n})(),FW=(()=>{class n{constructor(e){this.dialogRef=e,this.instrument=new Lo,this.maxAge=new Lo(30),this.numTunesPerAssignment=new Lo(10)}onNoClick(){this.dialogRef.close(void 0)}repertoire(){return{name:this.instrument.value,maxAge:this.maxAge.value,numTunesPerAssignment:this.numTunesPerAssignment.value,items:[]}}}return n.\u0275fac=function(e){return new(e||n)(V(ou))},n.\u0275cmp=Ge({type:n,selectors:[["app-new-repertoire"]],decls:14,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"form-container"],["matInput","","name","name","placeholder","Name",3,"formControl"],["matInput","","name","maxAge","placeholder","Maximum age in days",3,"formControl"],["matInput","","name","numTunes","placeholder","Number of tunes per assignment",3,"formControl"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(e,i){1&e&&(oe(0,"h1",0),we(1,"New repertoire"),le(),oe(2,"div",1)(3,"mat-form-field"),yt(4,"input",2),le(),oe(5,"mat-form-field"),yt(6,"input",3),le(),oe(7,"mat-form-field"),yt(8,"input",4),le()(),oe(9,"div",5)(10,"button",6),Oe("click",function(){return i.onNoClick()}),we(11,"Cancel"),le(),oe(12,"button",7),we(13,"Ok"),le()()),2&e&&(he(4),ge("formControl",i.instrument),he(2),ge("formControl",i.maxAge),he(2),ge("formControl",i.numTunesPerAssignment),he(4),ge("mat-dialog-close",i.repertoire()))},directives:[dE,hE,Jo,ea,ss,eo,mh,fE,Fi,uE],encapsulation:2}),n})();function PW(n,t){if(1&n){const e=In();oe(0,"button",5),Oe("click",function(){const s=Qt(e).$implicit;return Ue().selectRepertoire(s)}),we(1),le()}if(2&n){const e=t.$implicit;he(1),xn(e.name)}}function NW(n,t){1&n&&(oe(0,"th",16),we(1,"Title"),le())}function LW(n,t){if(1&n&&(oe(0,"td",17)(1,"div",18),we(2),le()()),2&n){const e=t.$implicit;he(1),Tp("routerLink",e.uri),he(1),xn(e.title)}}function BW(n,t){1&n&&(oe(0,"th",16),we(1,"Times practiced"),le())}function VW(n,t){if(1&n&&(oe(0,"td",17),we(1),le()),2&n){const e=t.$implicit;he(1),Rn(" ",e.timesPracticed," ")}}function HW(n,t){1&n&&(oe(0,"th",16),we(1,"Last practiced"),le())}function jW(n,t){if(1&n&&(oe(0,"td",17),we(1),le()),2&n){const e=t.$implicit;he(1),Rn(" ",e.lastPracticed?e.lastPracticed.toLocaleDateString():""," ")}}function zW(n,t){1&n&&(oe(0,"th",16),we(1,"Added"),le())}function UW(n,t){if(1&n&&(oe(0,"td",17),we(1),le()),2&n){const e=t.$implicit;he(1),Rn(" ",e.added.toLocaleDateString()," ")}}function $W(n,t){1&n&&yt(0,"tr",19)}function GW(n,t){1&n&&yt(0,"tr",20)}let WW=(()=>{class n{constructor(e,i,r){this.dialog=e,this.repertoireRepository=i,this.index=r,this.tunes=[],this.displayedColumns=["title","timesPracticed","lastPracticed","added"],this.titleWithoutNumber=Au}ngOnInit(){this.index.allReady.subscribe(()=>this.loadRepertoire())}newRepertoire(e){this.repertoireCollection.repertoires.push(e),this.selectRepertoire(e)}openDialog(){this.dialog.open(FW).afterClosed().subscribe(i=>this.newRepertoire(i))}selectRepertoire(e){this.currentRepertoire=e,this.prepareTunes()}repertoires(){return void 0===this.repertoireCollection?[]:this.repertoireCollection.repertoires}loadRepertoire(){return At(this,void 0,void 0,function*(){this.repertoireCollection=yield this.repertoireRepository.load();const e=yield this.repertoireRepository.findRepertoire();this.currentRepertoire=e,e&&this.prepareTunes()})}prepareTunes(){this.tunes=this.currentRepertoire.items.map(e=>this.toRepertoireTune(e)),this.dataSource=new nU(this.tunes),this.dataSource.sort=this.sort}toRepertoireTune(e){const i=this.index.findEntryByTuneReference(e.tune);return{added:e.added,lastPracticed:e.lastPracticed,timesPracticed:e.timesPracticed,title:Au(i.title),uri:`../tune/${e.tune.bookId}/${e.tune.tuneId}`}}}return n.\u0275fac=function(e){return new(e||n)(V(au),V(Tu),V(Rs))},n.\u0275cmp=Ge({type:n,selectors:[["app-repertoire"]],viewQuery:function(e,i){if(1&e&&jt(Tv,7),2&e){let r;He(r=je())&&(i.sort=r.first)}},decls:29,vars:7,consts:[[1,"repertoire-header"],[1,"mat-h2"],["mat-mini-fab","","color","accent",3,"matMenuTriggerFor"],["repertoireMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[1,"mat-body"],["mat-table","","matSort","",1,"repertoire",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","timesPracticed"],["matColumnDef","lastPracticed"],["matColumnDef","added"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"tune-link",3,"routerLink"],["mat-header-row",""],["mat-row",""]],template:function(e,i){if(1&e&&(oe(0,"div")(1,"div",0)(2,"h2",1),we(3),le(),oe(4,"button",2)(5,"mat-icon"),we(6,"more_vert"),le()(),oe(7,"mat-menu",null,3),ze(9,PW,2,1,"button",4),oe(10,"button",5),Oe("click",function(){return i.openDialog()}),we(11,"New repertoire"),le()()(),oe(12,"p",6),we(13),le(),oe(14,"table",7),Or(15,8),ze(16,NW,2,0,"th",9),ze(17,LW,3,2,"td",10),Fr(),Or(18,11),ze(19,BW,2,0,"th",9),ze(20,VW,2,1,"td",10),Fr(),Or(21,12),ze(22,HW,2,0,"th",9),ze(23,jW,2,1,"td",10),Fr(),Or(24,13),ze(25,zW,2,0,"th",9),ze(26,UW,2,1,"td",10),Fr(),ze(27,$W,1,0,"tr",14),ze(28,GW,1,0,"tr",15),le()()),2&e){const r=Us(8);he(3),Rn("",i.currentRepertoire?i.currentRepertoire.name+" ":"","Repertoire"),he(1),ge("matMenuTriggerFor",r),he(5),ge("ngForOf",i.repertoires()),he(4),Rn("",i.tunes.length," tunes"),he(1),ge("dataSource",i.dataSource),he(13),ge("matHeaderRowDef",i.displayedColumns),he(1),ge("matRowDefColumns",i.displayedColumns)}},directives:[Fi,uj,cu,oj,rs,tf,cS,Tv,Uv,zv,$v,Sz,jv,Gv,ho,uS,hS,dS,fS],encapsulation:2}),n})();function D_(n){if(n)return n.split(/\s*,\s*/).filter(t=>t.length>0)}class M_{constructor(t,e,i,r,s){this.title=t,this.rhythm=e,this.key=i,this.books=r,this.tags=s}matchesRef(t){return!!this.allBooks()||this.books.includes(t.descriptor.id)}matchesName(t){return!!this.allBooks()||this.books.includes(t)}allBooks(){return!this.books||0===this.books.length}}const YW=["snippet"];let qW=(()=>{class n{constructor(e){this.zone=e,this.tune="",this.rendered=!1}ngAfterViewInit(){this.renderSnippet()}ngOnChanges(){this.rendered=!1,this.zone.runOutsideAngular(()=>this.renderSnippet())}renderSnippet(){if(void 0!==this.div&&this.tune&&!this.rendered){const e=function sW(n){const t=n.split("\n"),e=[],i=[];for(const r of t)if(/^[A-Za-z]:/.test(r))/^[XMLK]:/.test(r)&&e.push(r);else if(i.push(...r.split("|")),i.length>2){e.push(i.slice(0,3).join("|"));break}return e.join("\n")}(this.tune);Il().renderAbc(this.div.nativeElement,e,{scale:.8,paddingtop:0,paddingbottom:0}),this.rendered=!0}}}return n.\u0275fac=function(e){return new(e||n)(V(ct))},n.\u0275cmp=Ge({type:n,selectors:[["app-snippet-view"]],viewQuery:function(e,i){if(1&e&&jt(YW,5),2&e){let r;He(r=je())&&(i.div=r.first)}},inputs:{tune:"tune"},features:[on],decls:2,vars:0,consts:[["snippet",""]],template:function(e,i){1&e&&yt(0,"div",null,0)},encapsulation:2}),n})();function KW(n,t){if(1&n&&(oe(0,"mat-option",16),we(1),le()),2&n){const e=t.$implicit;ge("value",e.descriptor.id),he(1),Rn("",e.descriptor.name," ")}}function XW(n,t){1&n&&(oe(0,"div",17)(1,"p",18),we(2,"No matching tunes"),le()())}function QW(n,t){if(1&n&&(oe(0,"div",25),we(1),le()),2&n){const e=Ue().$implicit,i=Ue(2);he(1),Rn("Tags: ",i.getTags(e),"")}}function ZW(n,t){if(1&n){const e=In();oe(0,"tr",22)(1,"td",23)(2,"div")(3,"span",24),Oe("click",function(){const s=Qt(e).$implicit;return Ue(2).navigateToTune(s)}),we(4),le()(),oe(5,"div",25),we(6),le(),oe(7,"div",25),we(8),le(),ze(9,QW,2,1,"div",26),le(),oe(10,"td",27),Oe("click",function(){const s=Qt(e).$implicit;return Ue(2).navigateToTune(s)}),yt(11,"app-snippet-view",28),le()()}if(2&n){const e=t.$implicit,i=Ue(2);he(4),xn(e.title),he(2),Rp("",i.getBookName(e)," #",e.id,""),he(2),xn(i.getRhythmAndKey(e)),he(1),ge("ngIf",i.hasTags(e)),he(2),ge("tune",i.getAbc(e))}}function JW(n,t){if(1&n&&(oe(0,"div",19)(1,"p",18),we(2),le(),oe(3,"cdk-virtual-scroll-viewport",20)(4,"table")(5,"tbody"),ze(6,ZW,12,6,"tr",21),le()()()()),2&n){const e=Ue();he(2),Rn("",e.tunes.length," tunes"),he(4),ge("cdkVirtualForOf",e.tunes)("cdkVirtualForTemplateCacheSize",0)}}let eY=(()=>{class n extends class MP{constructor(t,e,i){this._scrolledIndexChange=new U,this.scrolledIndexChange=this._scrolledIndexChange.pipe(Vc()),this._viewport=null,this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=i}attach(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(t,e,i){this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=i,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(t,e){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const t=this._viewport.getRenderedRange(),e={start:t.start,end:t.end},i=this._viewport.getViewportSize(),r=this._viewport.getDataLength();let s=this._viewport.measureScrollOffset(),o=this._itemSize>0?s/this._itemSize:0;if(e.end>r){const d=Math.ceil(i/this._itemSize),C=Math.max(0,Math.min(o,r-d));o!=C&&(o=C,s=C*this._itemSize,e.start=Math.floor(o)),e.end=Math.max(0,Math.min(r,e.start+d))}const a=s-e.start*this._itemSize;if(a0&&(e.end=Math.min(r,e.end+C),e.start=Math.max(0,Math.floor(o-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(o))}}{constructor(){super(100,800,1200),this.contentScrolledSource=new U,this.contentScrolledSource.asObservable().pipe(Pc(200)).subscribe(()=>{super.onContentScrolled()})}onContentScrolled(){this.contentScrolledSource.next("")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})(),tY=(()=>{class n{constructor(e,i,r){this.tuneBookIndex=e,this.route=i,this.router=r,this.tunes=[],this.selectedBooks=[],this.searchCompleted=!1,this.indexReady=!1}ngOnInit(){this.selectedBooks=[this.tuneBookIndex.defaultBook],this.route.queryParamMap.subscribe(e=>this.consumeParameters(e)),this.tuneBookIndex.allReady.subscribe(e=>{this.indexReady=e,this.extractParamsAndRunQuery()})}extractParamsAndRunQuery(){this.indexReady&&this.queryParams.keys.length>0&&(this.query=this.queryParams.get("q"),this.key=this.queryParams.get("key"),this.rhythm=this.queryParams.get("rhythm"),this.selectedBooks=this.queryParams.getAll("book"),this.tags=this.queryParams.getAll("tag").join(", "),this.runQuery())}consumeParameters(e){this.queryParams=e,this.extractParamsAndRunQuery()}noResults(){return this.searchCompleted&&0===this.tunes.length}uniqueResult(){return 1===this.tunes.length}multipleResults(){return this.tunes.length>=2}currentTune(){return this.uniqueResult()?this.tuneBookIndex.getAbc(this.tunes[0]):""}findTunes(){this.router.navigate(["/search"],{queryParams:{q:this.query,rhythm:this.rhythm,key:this.key,book:this.selectedBooks,tag:D_(this.tags)}})}runQuery(){(void 0===this.selectedBooks||0===this.selectedBooks.length)&&(this.selectedBooks=[this.tuneBookIndex.getBooks()[0].descriptor.id]);const e=this.rhythm&&this.rhythm.toLowerCase(),i=new M_(this.query,e,this.key,this.selectedBooks,D_(this.tags));this.tunes=this.tuneBookIndex.findTunes(i),this.searchCompleted=!0,this.uniqueResult()&&this.navigateToTune(this.tunes[0])}navigateToTune(e){this.router.navigate([`/tune/${e.book}/${e.id}`])}getAbc(e){return this.tuneBookIndex.getAbc(e)}getBookName(e){return this.tuneBookIndex.getBook(e).descriptor.name}getRhythmAndKey(e){return void 0===e.rhythm&&void 0===e.key?"":void 0===e.key?e.rhythm:void 0===e.rhythm?e.key:`${e.rhythm} in ${e.key}`}hasTags(e){return e.tags&&e.tags.length>0}getTags(e){return e.tags.join(", ")}books(){return this.tuneBookIndex.getBooks()}}return n.\u0275fac=function(e){return new(e||n)(V(Rs),V(Gi),V(ci))},n.\u0275cmp=Ge({type:n,selectors:[["app-search"]],features:[lt([{provide:JC,useClass:eY}])],decls:24,vars:9,consts:[[1,"search-panel"],[3,"expanded"],[1,"query"],["matInput","","name","query","type","text","placeholder","Tune number or part of title",3,"ngModel","ngModelChange"],[1,"rhythm"],["matInput","","name","rhythm","type","text","placeholder","Rhythm",3,"ngModel","ngModelChange"],[1,"key"],["matInput","","name","key","type","text","placeholder","Key",3,"ngModel","ngModelChange"],[1,"tunebooks"],["multiple","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"tags"],["matInput","","name","tags","type","text","placeholder","Tags",3,"ngModel","ngModelChange"],["mat-raised-button","","label","Search","color","primary",1,"search-button",3,"click"],["id","noMatches",4,"ngIf"],["id","overview",4,"ngIf"],[3,"value"],["id","noMatches"],[1,"mat-body"],["id","overview"],[1,"search-result-viewport"],["class","tune-preview",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTemplateCacheSize"],[1,"tune-preview"],[1,"tune-link","tune-title"],[1,"tune-link","mat-body",3,"click"],[1,"mat-small"],["class","mat-small",4,"ngIf"],[1,"tune-link",3,"click"],[3,"tune"]],template:function(e,i){1&e&&(oe(0,"div",0)(1,"mat-expansion-panel",1)(2,"mat-expansion-panel-header")(3,"mat-panel-title"),we(4,"Find tunes"),le()(),oe(5,"form")(6,"mat-form-field",2)(7,"input",3),Oe("ngModelChange",function(s){return i.query=s}),le()(),oe(8,"mat-form-field",4)(9,"input",5),Oe("ngModelChange",function(s){return i.rhythm=s}),le()(),oe(10,"mat-form-field",6)(11,"input",7),Oe("ngModelChange",function(s){return i.key=s}),le()(),oe(12,"mat-form-field",8)(13,"mat-label"),we(14,"Tune books"),le(),oe(15,"mat-select",9),Oe("valueChange",function(s){return i.selectedBooks=s}),ze(16,KW,2,2,"mat-option",10),le()(),oe(17,"mat-form-field",11)(18,"input",12),Oe("ngModelChange",function(s){return i.tags=s}),le()(),oe(19,"mat-action-row")(20,"button",13),Oe("click",function(){return i.findTunes()}),we(21,"Search"),le()()()()(),ze(22,XW,3,0,"div",14),ze(23,JW,7,3,"div",15)),2&e&&(he(1),ge("expanded",!i.searchCompleted),he(6),ge("ngModel",i.query),he(2),ge("ngModel",i.rhythm),he(2),ge("ngModel",i.key),he(4),ge("value",i.selectedBooks),he(1),ge("ngForOf",i.books()),he(2),ge("ngModel",i.tags),he(4),ge("ngIf",i.noResults()),he(1),ge("ngIf",i.multipleResults()))},directives:[bE,bH,wH,Yc,zc,Es,Jo,ea,ss,eo,Bo,bl,GE,rs,tu,vH,Fi,hi,eD,AP,qW],encapsulation:2}),n})(),nY=(()=>{class n{constructor(e){this.element=e,this.caret=new Le}ngAfterViewInit(){if(this.$element=this.element.nativeElement,!this.contentEditable()&&!this.isTextarea())throw new Error("appCaretTracker directive can be used either on textarea or contenteditable element only")}contentEditable(){return this.$element.isContentEditable&&"true"===this.$element.getAttribute("contenteditable")}onFocus(e){this.emitEvent(e)}onKeyup(e){this.emitEvent(e)}onMouseup(e){this.onFocus(e)}emitEvent(e){this.caret.emit({textPos:this.getTextPos(),event:e})}getTextPos(){return this.isTextarea()?this.$element.selectionStart:-1}isTextarea(e){const i=e||this.$element;return"TEXTAREA"===i.tagName&&i instanceof HTMLTextAreaElement}}return n.\u0275fac=function(e){return new(e||n)(V(nt))},n.\u0275dir=De({type:n,selectors:[["","appCaretTracker",""]],hostBindings:function(e,i){1&e&&Oe("focus",function(s){return i.onFocus(s)})("keyup",function(s){return i.onKeyup(s)})("mouseup",function(s){return i.onMouseup(s)})},outputs:{caret:"caret"}}),n})();const iY=["notation"];let rY=(()=>{class n{constructor(e,i,r,s,o,a){this.index=e,this.collectionService=i,this.googleDrive=r,this.pdfService=s,this.route=o,this.snackBar=a,this.abc="",this.route.paramMap.subscribe(d=>{this.bookId=d.get("id"),this.bookRef=this.index.getBookById(this.bookId),this.tune=this.bookRef.abc}),this.index.tuneBookReady.subscribe(d=>{d===this.bookId&&(this.bookRef=this.index.getBookById(this.bookId),this.tune=this.bookRef.abc,this.renderNotation(this.abc))})}set tune(e){this.abc=e}get tune(){return this.abc}ngAfterViewInit(){this.renderNotation(this.abc)}onCaret(e){this.renderNotation(this.extractTuneAtCaret(e.textPos))}save(){return At(this,void 0,void 0,function*(){yield this.googleDrive.updateTextFile(this.bookRef.descriptor.uri,this.tune),this.bookRef.abc=this.tune,this.bookRef.tuneBook=new ku.TuneBook(this.tune),this.index.updateTuneBook(this.bookRef),this.snackBar.open(`Updated ${this.bookRef.descriptor.name} on Google Drive`,"Dismiss",{duration:3e3})})}delete(){return At(this,void 0,void 0,function*(){yield this.collectionService.removeBook(this.bookId),this.snackBar.open(`Removed ${this.bookRef.descriptor.name} from collection`,"Dismiss",{duration:3e3})})}exportAsPdf(){return At(this,void 0,void 0,function*(){this.pdfService.saveAsPdf(this.tune),this.snackBar.open("PDF will be displayed in separate window","Dismiss",{duration:3e3})})}renderNotation(e){void 0!==this.div&&e.length>0&&Il().renderAbc(this.div.nativeElement,e,{paddingleft:0,paddingright:0,paddingtop:0,paddingbottom:0,staffwidth:1e3,responsive:"resize"})}extractTuneAtCaret(e){const i=Math.max(0,this.abc.lastIndexOf("X:",e));let r=this.abc.indexOf("X:",i+2);return-1===r&&(r=this.abc.length),this.abc.substring(i,r)}}return n.\u0275fac=function(e){return new(e||n)(V(Rs),V(Ol),V(Rl),V(Bf),V(Gi),V(af))},n.\u0275cmp=Ge({type:n,selectors:[["app-tune-editor"]],viewQuery:function(e,i){if(1&e&&jt(iY,5),2&e){let r;He(r=je())&&(i.div=r.first)}},inputs:{tune:"tune"},decls:12,vars:1,consts:[[1,"example-form"],[1,"editor"],["appCaretTracker","","name","abc-area","matInput","","placeholder","Enter ABC notation",3,"ngModel","caret","ngModelChange"],["mat-raised-button","","label","Save","color","primary",1,"search-button",3,"click"],["mat-raised-button","","label","Delete","color","primary",1,"pdf-button",3,"click"],["mat-raised-button","","color","primary",1,"pdf-button",3,"click"],[1,"tune-view"],["notation",""]],template:function(e,i){1&e&&(oe(0,"form",0)(1,"mat-form-field",1)(2,"textarea",2),Oe("caret",function(s){return i.onCaret(s)})("ngModelChange",function(s){return i.tune=s}),le()(),oe(3,"button",3),Oe("click",function(){return i.save()}),we(4,"Save"),le(),oe(5,"button",4),Oe("click",function(){return i.delete()}),we(6,"Delete"),le(),oe(7,"button",5),Oe("click",function(){return i.exportAsPdf()}),oe(8,"mat-icon"),we(9,"print"),le()()(),yt(10,"div",6,7)),2&e&&(he(2),ge("ngModel",i.tune))},directives:[Yc,zc,Es,Jo,ea,ss,nY,eo,Bo,Fi,cu],encapsulation:2}),n})();function sY(n,t){if(1&n&&(oe(0,"mat-option",11),we(1),le()),2&n){const e=t.$implicit;ge("value",e.name),he(1),Rn(" ",e.name," ")}}let oY=(()=>{class n{constructor(e,i){this.dialogRef=e,this.repertoireRepository=i,this.added=new Lo(new Date),this.repertoire=new Lo}ngOnInit(){return At(this,void 0,void 0,function*(){this.repertoireCollection=yield this.repertoireRepository.load()})}onNoClick(){this.dialogRef.close(void 0)}repertoires(){return void 0===this.repertoireCollection?[]:this.repertoireCollection.repertoires}repertoireName(e){return e.name}selection(){return{name:this.repertoire.value,added:this.added.value}}}return n.\u0275fac=function(e){return new(e||n)(V(ou),V(Tu))},n.\u0275cmp=Ge({type:n,selectors:[["app-add-to-repertoire"]],decls:20,vars:7,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"form-container"],["type","text","matInput","",3,"formControl","matAutocomplete"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","added","placeholder","Added on",3,"matDatepicker","formControl"],["myDatepicker",""],["matSuffix","",3,"for"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close"],[3,"value"]],template:function(e,i){if(1&e&&(oe(0,"h1",0),we(1,"Add to repertoire"),le(),oe(2,"div",1)(3,"mat-form-field")(4,"mat-label"),we(5,"Repertoire"),le(),yt(6,"input",2),le(),oe(7,"mat-autocomplete",null,3),ze(9,sY,2,2,"mat-option",4),le(),oe(10,"mat-form-field"),yt(11,"input",5)(12,"mat-datepicker",null,6)(14,"mat-datepicker-toggle",7),le()(),oe(15,"div",8)(16,"button",9),Oe("click",function(){return i.onNoClick()}),we(17,"Cancel"),le(),oe(18,"button",10),we(19,"Ok"),le()()),2&e){const r=Us(8),s=Us(13);he(6),ge("formControl",i.repertoire)("matAutocomplete",r),he(3),ge("ngForOf",i.repertoires()),he(2),ge("matDatepicker",s)("formControl",i.added),he(3),ge("for",s),he(4),ge("mat-dialog-close",i.selection())}},directives:[dE,hE,Jo,bl,ea,ss,KM,eo,mh,WB,rs,tu,wv,BV,$V,IB,fE,Fi,uE],encapsulation:2}),n})();const aY=["midiplayer"];let lY=(()=>{class n{constructor(){this.bpm=100,this.abc="",this.synthControl=new(Il().synth.SynthController)}set tune(e){this.abc=e,this.parsedTune=Il().renderAbc("*",this.abc)[0]}get tune(){return this.abc}set tempo(e){this.bpm=e,this.synthControl.setWarp(e)}get tempo(){return this.bpm}ngAfterViewInit(){this.renderMidiPlayer()}ngOnChanges(){this.renderMidiPlayer()}renderMidiPlayer(){return At(this,void 0,void 0,function*(){if(void 0!==this.div&&this.tune.length>0)return this.synthControl.load(this.div.nativeElement,null,{displayLoop:!0,displayRestart:!0,displayPlay:!0,displayProgress:!0,displayWarp:!0}),this.parsedTune.metaText.tempo={bpm:this.bpm,startChar:0,endChar:0},this.synthControl.setTune(this.parsedTune,!0,{chordsOff:!0,program:this.instrumentByName("flute")})})}instrumentByName(e){return Il().synth.instrumentIndexToName.indexOf(e.toLowerCase())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ge({type:n,selectors:[["app-tune-player"]],viewQuery:function(e,i){if(1&e&&jt(aY,5),2&e){let r;He(r=je())&&(i.div=r.first)}},inputs:{tune:"tune",tempo:"tempo"},features:[on],decls:2,vars:0,consts:[[1,"midi-player"],["midiplayer",""]],template:function(e,i){1&e&&yt(0,"div",0,1)},encapsulation:2}),n})();const cY=["notation"];let uY=(()=>{class n{constructor(){this.tune=""}ngAfterViewInit(){this.renderNotation()}ngOnChanges(){this.renderNotation()}renderNotation(){void 0!==this.div&&this.tune.length>0&&Il().renderAbc(this.div.nativeElement,this.includeNumberInTitle(this.tune),{paddingleft:0,paddingright:0,paddingtop:0,paddingbottom:0,staffwidth:1e3,responsive:"resize"})}includeNumberInTitle(e){if(e.match(/^T:(\s*)(\d+[a-z]?\s*)/m))return e;const r=e.match(/^X:(\s*)(\w+)/m);if(!r)return;const s=r[2],o=e.match(/^T:(\s*)(.+?)(, The)?$/m);return e.replace(o[0],`T: ${s} ${o[3]?"The ":""}${o[2]}`)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ge({type:n,selectors:[["app-tune-view"]],viewQuery:function(e,i){if(1&e&&jt(cY,5),2&e){let r;He(r=je())&&(i.div=r.first)}},inputs:{tune:"tune"},features:[on],decls:2,vars:0,consts:[[1,"tune-view"],["notation",""]],template:function(e,i){1&e&&yt(0,"div",0,1)},encapsulation:2}),n})(),dY=(()=>{class n{constructor(e,i,r,s,o,a,d,C){this.index=e,this.googleAuth=i,this.pdfService=r,this.route=s,this.snackBar=o,this.dialog=a,this.collectionService=d,this.repertoireRepository=C,this.tune="",this.allTags="",this.signedIn=!1,this.googleAuth.authState.subscribe(k=>{this.signedIn=!!k})}ngOnInit(){this.route.paramMap.subscribe(e=>this.consumeRef(e)),this.index.tuneBookReady.subscribe(()=>{this.displayTune(this.bookId,this.ref)})}save(){return At(this,void 0,void 0,function*(){const e=D_(this.allTags),i=yield this.collectionService.setTagsForTune(this.ref,this.bookId,e);return this.snackBar.open("Updated tags on Google Drive","Dismiss",{duration:3e3}),i})}openDialog(){return At(this,void 0,void 0,function*(){this.dialog.open(oY).afterClosed().subscribe(i=>this.addToRepertoire(i))})}exportAsPdf(){return At(this,void 0,void 0,function*(){this.pdfService.saveAsPdf(this.tune),this.snackBar.open("PDF will be displayed in separate window","Dismiss",{duration:3e3})})}tuneForDisplay(){return"%%stretchlast\n"+this.tune}addToRepertoire(e){return At(this,void 0,void 0,function*(){if(!e)return;const i={bookId:this.bookId,tuneId:this.ref};yield this.repertoireRepository.addRepertoireItem(i,e),this.snackBar.open("Added to repertoire on Google Drive","Dismiss",{duration:3e3})})}consumeRef(e){this.ref=e.get("ref"),this.bookId=e.get("bookId"),this.displayTune(this.bookId,this.ref)}displayTune(e,i){if(void 0!==i&&this.index.isReady()){const r=this.index.findEntryByTuneReference({bookId:e,tuneId:i});if(r){this.tune=this.index.getAbc(r),r.tags&&(this.allTags=r.tags.join(", "));const s=this.index.getBookById(e);this.prevRef=void 0,this.nextRef=void 0;const o=r.pos-1;o>=0&&(this.prevRef=s.tuneBook.tunes[o].id);const a=r.pos+1;a{class n{constructor(e,i){this.index=e,this.route=i,this.entries=[],this.titleWithoutNumber=Au,this.index.tuneBookReady.subscribe(r=>this.onReady(r)),this.route.paramMap.subscribe(r=>{this.bookId=r.get("id"),this.onReady(this.bookId)})}bookName(){var e;return null===(e=this.index.getBookById(this.bookId))||void 0===e?void 0:e.descriptor.name}onReady(e){e==this.bookId&&(this.entries=this.index.findAllTunesInBook(e))}}return n.\u0275fac=function(e){return new(e||n)(V(Rs),V(Gi))},n.\u0275cmp=Ge({type:n,selectors:[["app-tunes-list"]],decls:5,vars:2,consts:[[1,"mat-h2"],[4,"ngFor","ngForOf"],[1,"tune-id",3,"routerLink"],[1,"tune-link",3,"routerLink"]],template:function(e,i){1&e&&(oe(0,"div")(1,"h2",0),we(2),le(),oe(3,"mat-list"),ze(4,hY,5,6,"mat-list-item",1),le()()),2&e&&(he(2),xn(i.bookName()),he(2),ge("ngForOf",i.entries))},directives:[Jh,rs,uu,ho],encapsulation:2}),n})(),pY=(()=>{class n{constructor(){this.handlers={}}shouldDetach(e){return!0}store(e,i){this.handlers[e.url.join("/")||e.parent.url.join("/")]=i}shouldAttach(e){return!!this.handlers[e.url.join("/")||e.parent.url.join("/")]}retrieve(e){return this.handlers[e.url.join("/")||e.parent.url.join("/")]}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=xe({token:n,factory:n.\u0275fac}),n})();const mY=[{path:"about",component:YG},{path:"books",component:ZG},{path:"createBook",component:JG},{path:"edit/:id",component:rY},{path:"book/:id",component:fY},{path:"print/:id",component:KG},{path:"login",component:eW},{path:"logout",component:tW},{path:"match/:transcription",component:lW},{path:"practice",component:yW},{path:"record",component:OW},{path:"repertoire",component:WW},{path:"search",component:tY},{path:"tune/:bookId/:ref",component:dY},{path:"",redirectTo:"/search",pathMatch:"full"}],gY={client_id:"98237286064-bf0vbgpqqklhj434vifvfafvtckaja12.apps.googleusercontent.com",discoveryDocs:["https://www.googleapis.com/discovery/v1/apis/drive/v3/rest"],scope:"https://www.googleapis.com/auth/drive.appfolder https://www.googleapis.com/auth/drive.file",prompt:""};let vY=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=mt({type:n,bootstrap:[WG]}),n.\u0275inj=dt({providers:[Lx,Yx,Rl,Ax,Bf,Nx,Tu,Tx,{provide:lx,useClass:pY},Wx,Ol,Rs,xx],imports:[[bL,TC,FG.forRoot({provide:Cx,useValue:gY}),UP,V9,PF,QB,fv,GV,rH,CH,Wh,LH,aV,ZH,dj,PL,_j,Lj,Zj,lz,nS,xz,Jz,lU,H9,fG.forRoot(mY,{relativeLinkResolution:"legacy"}),ih,AG.register("ngsw-worker.js",{enabled:true})]]}),n})();(0,Kd.configure)({level:Kd.LogLevel.INFO,virtualConsole:!1}),function YR(){j2=!1}(),iF().bootstrapModule(vY).catch(n=>console.error(n))},1259:(Z,H,M)=>{var A=M(9866),I=M(5970),D=M(7927),p=M(652),b=M(1091),c={};c.signature="abcjs-basic v"+A,Object.keys(I).forEach(function(x){c[x]=I[x]}),Object.keys(D).forEach(function(x){c[x]=D[x]}),c.renderAbc=M(4255),c.TimingCallbacks=M(7233);var f=M(6547);c.setGlyph=f.setSymbol,c.strTranspose=b;var m=M(6142),_=M(7657),y=M(7977),E=M(974),g=M(8720),l=M(5921),h=M(9938),w=M(4053),u=M(9435),v=M(6221),S=M(3294);c.synth={CreateSynth:m,instrumentIndexToName:_,pitchToNoteName:y,SynthController:v,SynthSequence:E,CreateSynthControl:g,registerAudioContext:l,activeAudioContext:h,supportsAudio:w,playEvent:u,getMidiFile:S,sequence:p},c.Editor=M(1318),c.EditArea=M(9527),Z.exports=c},5970:(Z,H,M)=>{var A=M(7233),I={};(function(){"use strict";var D,p;I.startAnimation=function(b,c,f){function m(w){for(var u=0;u{var A=M(7374),I=M(3597),D={violin:"ViolinTab",fiddle:"ViolinTab",mandolin:"ViolinTab",guitar:"GuitarTab"};Z.exports={inited:!1,plugins:{},register:function(b){this.plugins[b.name]=b.tablature},setError:function(b,c){b.warnings?b.warning.push(c):b.warnings=[c]},preparePlugins:function(b,c,f){var m=null;if(f.tablature){var y=f.tablature;m=[];for(var E=0;E{Z.exports=function(A,I){var D=this;I||(I={}),D.qpm=I.qpm?parseInt(I.qpm,10):null,D.qpm||(D.qpm=A.getBpm(A.metaText?A.metaText.tempo:null)),D.extraMeasuresAtBeginning=I.extraMeasuresAtBeginning?parseInt(I.extraMeasuresAtBeginning,10):0,D.beatCallback=I.beatCallback,D.eventCallback=I.eventCallback,D.lineEndCallback=I.lineEndCallback,D.lineEndAnticipation=I.lineEndAnticipation?parseInt(I.lineEndAnticipation,10):0,D.beatSubdivisions=I.beatSubdivisions?parseInt(I.beatSubdivisions,10):1,D.joggerTimer=null,D.replaceTarget=function(c){D.noteTimings=c.setTiming(D.qpm,D.extraMeasuresAtBeginning),0===c.noteTimings.length&&(D.noteTimings=c.setTiming(0,0)),D.lineEndCallback&&(D.lineEndTimings=function M(A,I){for(var D=[],p=null,b=0;bD.currentEvent&&D.noteTimings[D.currentEvent].millisecondsD.currentLine&&D.lineEndTimings[D.currentLine].milliseconds=D.lastMoment)if(D.eventCallback){var E=D.eventCallback(null);D.shouldStop(E).then(function(g){g&&D.stop()})}else D.stop()}},D.shouldStop=function(c){return new Promise(function(f){return c?"continue"===c?f(!1):void(c.then&&c.then(function(m){f("continue"!==m)})):f(!0)})},D.doBeatCallback=function(c){if(D.beatCallback){for(var f=D.currentEvent;f=0&&null===D.noteTimings[f].left;)f--;_=D.noteTimings[f]}var y={},E={};if(_){y.top=_.top,y.height=_.height;var g=Math.max(0,c-D.startTime-_.milliseconds),l=m-_.milliseconds,h=_.endX-_.left,w=l?g*h/l:0;y.left=_.left+w,0===D.currentEvent&&_.milliseconds>c-D.startTime&&(y.left=void 0),E={timestamp:c,startTime:D.startTime,ev:_,endMs:m,offMs:g,offPx:w,gapMs:l,gapPx:h}}else E={timestamp:c,startTime:D.startTime};var u=D.startTime;if(D.beatCallback(D.currentBeat/D.beatSubdivisions,D.totalBeats/D.beatSubdivisions,D.lastMoment,y,E),u!==D.startTime)return c-D.startTime;D.currentBeat++}return null},D.animationJogger=function(){D.isRunning&&(D.doTiming(performance.now()),D.joggerTimer=setTimeout(D.animationJogger,60))},D.start=function(c,f){if(D.isRunning=!0,D.isPaused&&(D.isPaused=!1,void 0===c&&(D.justUnpaused=!0)),c)D.setProgress(c,f);else if(0===c)D.reset();else if(null!==D.pausedPercent){var m=performance.now();D.currentTime=D.lastMoment*D.pausedPercent,D.startTime=m-D.currentTime,D.pausedPercent=null,D.reportNext=!0}requestAnimationFrame(D.doTiming),D.joggerTimer=setTimeout(D.animationJogger,60)},D.pause=function(){D.isPaused=!0;var c=performance.now();D.pausedPercent=(c-D.startTime)/D.lastMoment,D.isRunning=!1,D.joggerTimer&&(clearTimeout(D.joggerTimer),D.joggerTimer=null)},D.currentMillisecond=function(){return D.currentTime},D.reset=function(){D.currentBeat=0,D.currentEvent=0,D.currentLine=0,D.startTime=null,D.pausedPercent=null},D.stop=function(){D.pause(),D.reset()},D.setProgress=function(c,f){var m;switch(f){case"seconds":D.currentTime=1e3*c,D.currentTime<0&&(D.currentTime=0),D.currentTime>D.lastMoment&&(D.currentTime=D.lastMoment),m=D.currentTime/D.lastMoment;break;case"beats":D.currentTime=c*D.millisecondsPerBeat*D.beatSubdivisions,D.currentTime<0&&(D.currentTime=0),D.currentTime>D.lastMoment&&(D.currentTime=D.lastMoment),m=D.currentTime/D.lastMoment;break;default:(m=c)<0&&(m=0),m>1&&(m=1),D.currentTime=D.lastMoment*m}D.isRunning||(D.pausedPercent=m);var _=performance.now();for(D.startTime=_-D.currentTime,D.currentEvent=0;D.noteTimings.length>D.currentEvent&&D.noteTimings[D.currentEvent].millisecondsD.currentLine&&D.lineEndTimings[D.currentLine].milliseconds+D.lineEndAnticipation=0&&"event"===D.noteTimings[D.currentEvent].type&&D.eventCallback(D.noteTimings[D.currentEvent]),D.lineEndCallback&&D.lineEndCallback(D.lineEndTimings[D.currentLine],D.noteTimings[D.currentEvent],{line:D.currentLine,endTimings:D.lineEndTimings}),D.joggerTimer=setTimeout(D.animationJogger,60)}}},7927:(Z,H,M)=>{var A=M(1041),I=M(5802),D=M(1975),p={};(function(){"use strict";p.numberOfTunes=function(m){var y=m.split("\nX:").length;return 0===y&&(y=1),y};var b=p.TuneBook=function(m){var _=I(m);this.header=_.header,this.tunes=_.tunes};b.prototype.getTuneById=function(m){for(var _=0;_=0&&h0,Y=0;Y=0&&(S=z.startChar,v=void 0===z.chord?u:null),z.chord&&(u=z),"bar"===z.el_type){if(O){var P={abc:g.abc.substring(S,z.endChar)};(u=v&&v.chord&&v.chord.length>0?v.chord[0].name:null)&&(P.lastChord=u),z.startEnding&&(P.startEnding=z.startEnding),z.endEnding&&(P.endEnding=z.endEnding),x.push(P),S=null,O=!1}}else"note"===z.el_type&&(O=!0)}}_.push({header:w,measures:x,hasPickup:j})}return _}})(),Z.exports=p},4255:(Z,H,M)=>{var A=M(7927),D=(M(2334),M(9923)),p=M(1041),b=M(7102),c={};function f(){var E=window.innerWidth;for(var g in c)if(c.hasOwnProperty(g)){var l=c[g];l.style.width=(E-=2*l.offsetLeft)+"px"}}try{window.addEventListener("resize",f),window.addEventListener("orientationChange",f)}catch(E){}function m(E,g,l,h,w){l.viewportHorizontal?(E.innerHTML='
',l.scrollHorizontal?(E.style.overflowX="auto",E.style.overflowY="hidden"):E.style.overflow="hidden",c[E.id]=E,E=E.children[0]):l.viewportVertical?(E.innerHTML='
',E.style.overflowX="hidden",E.style.overflowY="auto",E=E.children[0]):E.innerHTML="";var u=new D(E,l);u.engraveABC(g,h,w),g.engraver=u,(l.viewportVertical||l.viewportHorizontal)&&(E.parentNode.style.width=E.style.width)}Z.exports=function(E,g,l,h,w){var v,u={};if(l){for(v in l)l.hasOwnProperty(v)&&(u[v]=l[v]);u.warnings_id&&u.tablature&&(u.tablature.warning_id=u.warnings_id)}if(h)for(v in h)h.hasOwnProperty(v)&&("listener"===v?h[v].highlight&&(u.clickListener=h[v].highlight):u[v]=h[v]);if(w)for(v in w)w.hasOwnProperty(v)&&(u[v]=w[v]);return A.renderEngine(function S(x,O,B,j){var Y=!1;return"*"===x&&(Y=!0,(x=document.createElement("div")).setAttribute("style","visibility: hidden;"),document.body.appendChild(x)),u.afterParsing&&u.afterParsing(O,B,j),!Y&&u.wrap&&u.staffwidth?(O=function y(E,g,l,h,w){var v=new D(E,w).getMeasureWidths(g),S=b.calcLineWraps(g,v,w);if(S.reParse){var x=new p;x.parse(h,S.revisedParams),g=x.getTune();var O=x.getWarnings();O&&(g.warnings=O)}return m(E,g,S.revisedParams,l,0),g.explanation=S.explanation,g}(x,O,B,j,u),O):(m(x,O,u,B,0),Y&&x.parentNode.removeChild(x),null)},E,g,u)}},3463:(Z,H,M)=>{var{relativeMajor:A}=M(9285),I={acc:"sharp",note:"f"},D={acc:"sharp",note:"c"},p={acc:"sharp",note:"g"},b={acc:"sharp",note:"d"},c={acc:"sharp",note:"A"},f={acc:"sharp",note:"e"},_={acc:"flat",note:"B"},y={acc:"flat",note:"e"},E={acc:"flat",note:"A"},g={acc:"flat",note:"d"},l={acc:"flat",note:"G"},h={acc:"flat",note:"c"},u={"C#":[I,D,p,b,c,f,{acc:"sharp",note:"B"}],"F#":[I,D,p,b,c,f],B:[I,D,p,b,c],E:[I,D,p,b],A:[I,D,p],D:[I,D],G:[I],C:[],F:[_],Bb:[_,y],Eb:[_,y,E],Cm:[_,y,E],Ab:[_,y,E,g],Db:[_,y,E,g,l],Gb:[_,y,E,g,l,h],Cb:[_,y,E,g,l,h,{acc:"flat",note:"F"}],"A#":[_,y],"B#":[],"D#":[_,y,E],"E#":[_],"G#":[_,y,E,g],none:[]};Z.exports=function v(S){var x=u[A(S)];return x?JSON.parse(JSON.stringify(x)):null}},9285:Z=>{var H={C:{modes:["CMaj","Amin","Am","GMix","DDor","EPhr","FLyd","BLoc"],stepsFromC:0},Db:{modes:["DbMaj","Bbmin","Bbm","AbMix","EbDor","FPhr","GbLyd","CLoc"],stepsFromC:1},D:{modes:["DMaj","Bmin","Bm","AMix","EDor","F#Phr","GLyd","C#Loc"],stepsFromC:2},Eb:{modes:["EbMaj","Cmin","Cm","BbMix","FDor","GPhr","AbLyd","DLoc"],stepsFromC:3},E:{modes:["EMaj","C#min","C#m","BMix","F#Dor","G#Phr","ALyd","D#Loc"],stepsFromC:4},F:{modes:["FMaj","Dmin","Dm","CMix","GDor","APhr","BbLyd","ELoc"],stepsFromC:5},Gb:{modes:["GbMaj","Ebmin","Ebm","DbMix","AbDor","BbPhr","CbLyd","FLoc"],stepsFromC:6},G:{modes:["GMaj","Emin","Em","DMix","ADor","BPhr","CLyd","F#Loc"],stepsFromC:7},Ab:{modes:["AbMaj","Fmin","Fm","EbMix","BbDor","CPhr","DbLyd","GLoc"],stepsFromC:8},A:{modes:["AMaj","F#min","F#m","EMix","BDor","C#Phr","DLyd","G#Loc"],stepsFromC:9},Bb:{modes:["BbMaj","Gmin","Gm","FMix","CDor","DPhr","EbLyd","ALoc"],stepsFromC:10},B:{modes:["BMaj","G#min","G#m","F#Mix","C#Dor","D#Phr","ELyd","A#Loc"],stepsFromC:11},"C#":{modes:["C#Maj","A#min","A#m","G#Mix","D#Dor","E#Phr","F#Lyd","B#Loc"],stepsFromC:1},"F#":{modes:["F#Maj","D#min","D#m","C#Mix","G#Dor","A#Phr","BLyd","E#Loc"],stepsFromC:6},Cb:{modes:["CbMaj","Abmin","Abm","GbMix","DbDor","EbPhr","FbLyd","BbLoc"],stepsFromC:11}},M=null;Z.exports={relativeMajor:function I(b){M||function A(){M={};for(var b=Object.keys(H),c=0;c{var A=M(5339),I=M(2866),D=M(652),p=M(6470),b=M(1618);Z.exports=function(){function f(l,h,w,u){for(var v=0;v=h&&(w-=h),"bar"===x[B].el_type)return w;return w}(this.lines,l);return h<1e-8||l-h<1e-8?0:h},this.getBarLength=function(){var l=this.getMeterFraction();return l.num/l.den},this.getTotalTime=function(){return this.totalTime},this.getTotalBeats=function(){return this.totalBeats},this.millisecondsPerMeasure=function(l){var h;return(h=l||this.getBpm(this.metaText?this.metaText.tempo:null))<=0&&(h=1),this.getBeatsPerMeasure()/h*6e4},this.getBeatsPerMeasure=function(){var l=this.getBeatLength();return this.getBarLength()/l},this.getMeter=function(){for(var l=0;ll)return B}}return null},this.addElementToEvents=function(l,h,w,u,v,S,x,O,B,j){if(h.hint)return{isTiedState:void 0,duration:0};var Y=h.durationClass?h.durationClass:h.duration;if(h.abcelem.rest&&"spacer"===h.abcelem.rest.type&&(Y=0),Y>0){for(var te=[],W=0;W0)for(var S=v.staffs[0],x=S.absoluteY,O=x-S.top*I.STEP,B=v.staffs[v.staffs.length-1],Y=(x=B.absoluteY)-B.bottom*I.STEP-O,te=v.voices,W=0;W0&&S["event"+q]&&(R="event"+q),q=Math.round(1e3*W),"bar"===Q.type){var F=Q.abcelem.type,J="1"===Q.abcelem.startEnding,se="bar_left_repeat"===F||"bar_dbl_repeat"===F||"bar_right_repeat"===F;if("bar_right_repeat"===F||"bar_dbl_repeat"===F){P>0&&(S[R].endX=Q.x),-1===U&&(U=P);var ie=0;L=-1;for(var ye=ee;ye=0;S--){var x=l[S];"bar"===x.type?(x.top=u,x.nextTop=h,h=u,x.bottom=v,x.nextBottom=w,w=v):"event"===x.type&&(u=x.top,v=x.top+x.height)}}(v),function g(l,h){if(!(h.length<1)){for(var w=0;wu.left&&(u.endX=Math.min(u.endX,S)):u.endX=S}}var x=h[h.length-1];x.endX=l[x.line].staffGroup.w}}(this.lines,v),v.push({type:"end",milliseconds:Y}),this.addUsefulCallbackInfo(v,z*u),v},this.addUsefulCallbackInfo=function(l,h){for(var w=this.millisecondsPerMeasure(h),u=0;u0?l.duration[0]:w)/w}if(!h){h=180;var v=this.getMeterFraction();v&&3!==v.num&&v.num%3==0&&(h=120)}return h},this.setTiming=function(l,h){if(h=h||0,!this.engraver||!this.engraver.staffgroups)return console.log("setTiming cannot be called before the tune is drawn."),this.noteTimings=[],this.noteTimings;var w=this.metaText?this.metaText.tempo:null,u=this.getBpm(w),v=1;l?w&&(v=l/u):l=u;var S=this.getBeatLength(),x=l/60,B=this.getBarLength()/S*h/x;return B&&(B-=this.getPickupLength()/S/x),this.noteTimings=this.setupEvents(B,S*x,l,v),this.noteTimings.length>0?(this.totalTime=this.noteTimings[this.noteTimings.length-1].milliseconds/1e3,this.totalBeats=this.totalTime*x):(this.totalTime=void 0,this.totalBeats=void 0),this.noteTimings},this.setUpAudio=function(l){l||(l={});var h=D(this,l);return p(h,l,this.formatting.percmap,this.formatting.midi)},this.deline=function(l){return b(this.lines,l)}}},1618:Z=>{function M(f,m){return"abselem"===f?"abselem":m}function A(f,m){f.el_type="meter",f.startChar=-1,f.endChar=-1;for(var _=0;_{try{if("function"!=typeof window.CustomEvent){var H=function(A,I){I=I||{bubbles:!1,cancelable:!1,detail:void 0};var D=document.createEvent("CustomEvent");return D.initCustomEvent(A,I.bubbles,I.cancelable,I.detail),D};H.prototype=window.Event.prototype,window.CustomEvent=H}}catch(A){}var M=function(A){this.textarea=document.getElementById(A),this.initialText=this.textarea.value,this.isDragging=!1};M.prototype.addSelectionListener=function(A){this.textarea.onmousemove=function(I){this.isDragging&&A.fireSelectionChanged()}},M.prototype.addChangeListener=function(A){this.changelistener=A,this.textarea.onkeyup=function(){A.fireChanged()},this.textarea.onmousedown=function(){this.isDragging=!0,A.fireSelectionChanged()},this.textarea.onmouseup=function(){this.isDragging=!1,A.fireChanged()},this.textarea.onchange=function(){A.fireChanged()}},M.prototype.getSelection=function(){return{start:this.textarea.selectionStart,end:this.textarea.selectionEnd}},M.prototype.setSelection=function(A,I){if(this.textarea.setSelectionRange)this.textarea.setSelectionRange(A,I);else if(this.textarea.createTextRange){var D=this.textarea.createTextRange();D.collapse(!0),D.moveEnd("character",I),D.moveStart("character",A),D.select()}this.textarea.focus()},M.prototype.getString=function(){return this.textarea.value},M.prototype.setString=function(A){this.textarea.value=A,this.initialText=this.getString(),this.changelistener&&this.changelistener.fireChanged()},M.prototype.getElem=function(){return this.textarea},Z.exports=M},1318:(Z,H,M)=>{var A=M(5339),I=M(6221),D=M(4053),p=M(4255),b=M(9527),f=function(m,_){this.abcjsParams=function c(m){var y,_={};if(m.abcjsParams)for(y in m.abcjsParams)m.abcjsParams.hasOwnProperty(y)&&(_[y]=m.abcjsParams[y]);if(m.midi_options)for(y in m.midi_options)m.midi_options.hasOwnProperty(y)&&(_[y]=m.midi_options[y]);if(m.parser_options)for(y in m.parser_options)m.parser_options.hasOwnProperty(y)&&(_[y]=m.parser_options[y]);if(m.render_options)for(y in m.render_options)m.render_options.hasOwnProperty(y)&&(_[y]=m.render_options[y]);return _.tablature&&m.warnings_id&&(_.tablature.warnings_id=m.warnings_id),_}(_),_.indicate_changed&&(this.indicate_changed=!0),this.editarea="string"==typeof m?new b(m):m,this.editarea.addSelectionListener(this),this.editarea.addChangeListener(this),_.canvas_id?this.div=_.canvas_id:_.paper_id?this.div=_.paper_id:(this.div=document.createElement("DIV"),this.editarea.getElem().parentNode.insertBefore(this.div,this.editarea.getElem())),"string"==typeof this.div&&(this.div=document.getElementById(this.div)),_.selectionChangeCallback&&(this.selectionChangeCallback=_.selectionChangeCallback),this.clientClickListener=this.abcjsParams.clickListener,this.abcjsParams.clickListener=this.highlight.bind(this),_.synth&&D()&&(this.synth={el:_.synth.el,cursorControl:_.synth.cursorControl,options:_.synth.options}),_.generate_midi&&(this.generate_midi=_.generate_midi,this.abcjsParams.generateDownload&&("string"==typeof _.midi_download_id?this.downloadMidi=document.getElementById(_.midi_download_id):_.midi_download_id&&(this.downloadMidi=_.midi_download_id)),!1!==this.abcjsParams.generateInline&&("string"==typeof _.midi_id?this.inlineMidi=document.getElementById(_.midi_id):_.midi_id&&(this.inlineMidi=_.midi_id))),_.warnings_id?this.warningsdiv="string"==typeof _.warnings_id?document.getElementById(_.warnings_id):_.warnings_id:_.generate_warnings&&(this.warningsdiv=document.createElement("div"),this.div.parentNode.insertBefore(this.warningsdiv,this.div)),this.onchangeCallback=_.onchange,this.currentAbc="",this.tunes=[],this.bReentry=!1,this.parseABC(),this.modelChanged(),this.addClassName=function(y,E){var h,w;return h=E,(w=y.className).length>0&&(w===h||new RegExp("(^|\\s)"+h+"(\\s|$)").test(w))||(y.className+=(y.className?" ":"")+E),y},this.removeClassName=function(y,E){return y.className=A.strip(y.className.replace(new RegExp("(^|\\s+)"+E+"(\\s+|$)")," ")),y},this.setReadOnly=function(y){var E="abc_textarea_readonly",g=this.editarea.getElem();y?(g.setAttribute("readonly","yes"),this.addClassName(g,E)):(g.removeAttribute("readonly"),this.removeClassName(g,E))}};f.prototype.redrawMidi=function(){if(this.generate_midi&&!this.midiPause){var m=new window.CustomEvent("generateMidi",{detail:{tunes:this.tunes,abcjsParams:this.abcjsParams,downloadMidiEl:this.downloadMidi,inlineMidiEl:this.inlineMidi,engravingEl:this.div}});window.dispatchEvent(m)}if(this.synth){var _=this.synth.synthControl;this.synth.synthControl||(this.synth.synthControl=new I,this.synth.synthControl.load(this.synth.el,this.synth.cursorControl,this.synth.options)),this.synth.synthControl.setTune(this.tunes[0],_,this.synth.options)}},f.prototype.modelChanged=function(){if(!this.bReentry){this.bReentry=!0;try{this.timerId=null,this.synth&&this.synth.synthControl&&this.synth.synthControl.disable(!0),this.tunes=p(this.div,this.currentAbc,this.abcjsParams),this.tunes.length>0&&(this.warnings=this.tunes[0].warnings),this.redrawMidi()}catch(m){console.error("ABCJS error: ",m),this.warnings||(this.warnings=[]),this.warnings.push(m.message)}this.warningsdiv&&(this.warningsdiv.innerHTML=this.warnings?this.warnings.join("
"):"No errors"),this.updateSelection(),this.bReentry=!1}},f.prototype.paramChanged=function(m){if(m)for(var _ in m)m.hasOwnProperty(_)&&(this.abcjsParams[_]=m[_]);this.currentAbc="",this.fireChanged()},f.prototype.synthParamChanged=function(m){if(this.synth){if(this.synth.options={},m)for(var _ in m)m.hasOwnProperty(_)&&(this.synth.options[_]=m[_]);this.currentAbc="",this.fireChanged()}},f.prototype.parseABC=function(){var m=this.editarea.getString();return m===this.currentAbc?(this.updateSelection(),!1):(this.currentAbc=m,!0)},f.prototype.updateSelection=function(){var m=this.editarea.getSelection();try{this.tunes.length>0&&this.tunes[0].engraver&&this.tunes[0].engraver.rangeHighlight(m.start,m.end)}catch(_){}this.selectionChangeCallback&&this.selectionChangeCallback(m.start,m.end)},f.prototype.fireSelectionChanged=function(){this.updateSelection()},f.prototype.setDirtyStyle=function(m){if(void 0!==this.indicate_changed){var E="abc_textarea_dirty",g=this.editarea.getElem();m?(v=E,(S=(l=g).className).length>0&&(S===v||new RegExp("(^|\\s)"+v+"(\\s|$)").test(S))||(l.className+=(l.className?" ":"")+"abc_textarea_dirty")):function(l,h){l.className=A.strip(l.className.replace(new RegExp("(^|\\s+)abc_textarea_dirty(\\s+|$)")," "))}(g)}var l,v,S},f.prototype.fireChanged=function(){if(!this.bIsPaused&&this.parseABC()){var m=this;this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){m.modelChanged()},300);var _=this.isDirty();this.wasDirty!==_&&(this.wasDirty=_,this.setDirtyStyle(_)),this.onchangeCallback&&this.onchangeCallback(this)}},f.prototype.setNotDirty=function(){this.editarea.initialText=this.editarea.getString(),this.wasDirty=!1,this.setDirtyStyle(!1)},f.prototype.isDirty=function(){return void 0!==this.indicate_changed&&this.editarea.initialText!==this.editarea.getString()},f.prototype.highlight=function(m,_,y,E,g,l){this.editarea.setSelection(m.startChar,m.endChar),this.selectionChangeCallback&&this.selectionChangeCallback(m.startChar,m.endChar),this.clientClickListener&&this.clientClickListener(m,_,y,E,g,l)},f.prototype.pause=function(m){this.bIsPaused=m,m||this.fireChanged()},f.prototype.millisecondsPerMeasure=function(){return this.synth&&this.synth.synthControl&&this.synth.synthControl.visualObj?this.synth.synthControl.visualObj.millisecondsPerMeasure():0},f.prototype.pauseMidi=function(m){this.midiPause=m,m||this.redrawMidi()},Z.exports=f},3538:(Z,H,M)=>{var I,A=M(9237);(function(){"use strict";function p(b,c,f){for(var m=Object.keys(c),_=0;_y&&(b.addRest((m[E]-y)*f),y=m[E]);for(var h=0;h128&&(_=_.substring(0,124)+"...");var y=b.getKeySignature(),E=b.getMeterFraction(),g=f.tempo/60;m.setGlobalInfo(f.tempo,_,y,E);for(var l=0;ll&&(v=c.pan[l]),128===u.instrument?(m.setChannel(9,v),m.setInstrument(0)):(m.setChannel(u.channel,v),m.setInstrument(u.instrument));break;case"note":var x=u.start,O=x+u.duration-u.gap*g;h[x]||(h[x]=[]),h[x].push({pitch:u.pitch,volume:u.volume,cents:u.cents}),h[O]||(h[O]=[]),h[O].push({pitch:u.pitch,volume:0});break;default:console.log("MIDI create Unknown: "+u.cmd)}}p(m,h,1920),m.endTrack()}return m.getData()}})(),Z.exports=I},5339:Z=>{var H={clone:function(M){var A={};for(var I in M)M.hasOwnProperty(I)&&(A[I]=M[I]);return A},cloneArray:function(M){for(var A=[],I=0;I=0&&M.lastIndexOf(A)===I},last:function(M){return 0===M.length?null:M[M.length-1]}};Z.exports=H},1041:(Z,H,M)=>{var A=M(5339),I=M(467),D=M(9085),p=M(1380),b=M(7701),c=M(7102),f=M(2334),m=M(5399);Z.exports=function(){"use strict";var g,y=new f,E=new m(y),l="",h="";function w(z,L,P){z.positioning||(z.positioning={}),z.positioning[L]=P}function u(z,L,P){z.fonts||(z.fonts={}),z.fonts[L]=P}this.getTune=function(){var z={formatting:y.formatting,lines:y.lines,media:y.media,metaText:y.metaText,metaTextInfo:y.metaTextInfo,version:y.version,addElementToEvents:y.addElementToEvents,addUsefulCallbackInfo:y.addUsefulCallbackInfo,getTotalTime:y.getTotalTime,getTotalBeats:y.getTotalBeats,getBarLength:y.getBarLength,getBeatLength:y.getBeatLength,getBeatsPerMeasure:y.getBeatsPerMeasure,getBpm:y.getBpm,getMeter:y.getMeter,getMeterFraction:y.getMeterFraction,getPickupLength:y.getPickupLength,getKeySignature:y.getKeySignature,getElementFromChar:y.getElementFromChar,makeVoicesArray:y.makeVoicesArray,millisecondsPerMeasure:y.millisecondsPerMeasure,setupEvents:y.setupEvents,setTiming:y.setTiming,setUpAudio:y.setUpAudio,deline:y.deline};return y.lineBreaks&&(z.lineBreaks=y.lineBreaks),y.visualTranspose&&(z.visualTranspose=y.visualTranspose),z};var j,Y,v={reset:function(){for(var z in this)this.hasOwnProperty(z)&&"function"!=typeof this[z]&&delete this[z];this.iChar=0,this.key={accidentals:[],root:"none",acc:"",mode:""},this.meter=null,this.origMeter=null,this.hasMainTitle=!1,this.default_length=.125,this.clef={type:"treble",verticalPos:0},this.octave=0,this.next_note_duration=0,this.start_new_line=!0,this.is_in_header=!0,this.partForNextLine={},this.tempoForNextLine=[],this.havent_set_length=!0,this.voices={},this.staves=[],this.macros={},this.currBarNumber=1,this.barCounter={},this.ignoredDecorations=[],this.score_is_present=!1,this.inEnding=!1,this.inTie=[],this.inTieChord={},this.vocalPosition="auto",this.dynamicPosition="auto",this.chordPosition="auto",this.ornamentPosition="auto",this.volumePosition="auto",this.openSlurs=[],this.freegchord=!1,this.endingHoldOver={}},differentFont:function(z,L){return this[z].decoration!==L[z].decoration||this[z].face!==L[z].face||this[z].size!==L[z].size||this[z].style!==L[z].style||this[z].weight!==L[z].weight},addFormattingOptions:function(z,L,P){"note"===P?("auto"!==this.vocalPosition&&w(z,"vocalPosition",this.vocalPosition),"auto"!==this.dynamicPosition&&w(z,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&w(z,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&w(z,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&w(z,"volumePosition",this.volumePosition),this.differentFont("annotationfont",L)&&u(z,"annotationfont",this.annotationfont),this.differentFont("gchordfont",L)&&u(z,"gchordfont",this.gchordfont),this.differentFont("vocalfont",L)&&u(z,"vocalfont",this.vocalfont),this.differentFont("tripletfont",L)&&u(z,"tripletfont",this.tripletfont)):"bar"===P&&("auto"!==this.dynamicPosition&&w(z,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&w(z,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&w(z,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&w(z,"volumePosition",this.volumePosition),this.differentFont("measurefont",L)&&u(z,"measurefont",this.measurefont),this.differentFont("repeatfont",L)&&u(z,"repeatfont",this.repeatfont))},duplicateStartEndingHoldOvers:function(){this.endingHoldOver={inTie:[],inTieChord:{}};for(var z=0;z/g,">")},B=function(z,L,P){L||(L=" ");var $=L[P];(" "===$||!$)&&($="SPACE");var Q=O(L.substring(P-64,P))+''+$+""+O(L.substring(P+1).substring(0,64));(function(z){v.warnings||(v.warnings=[]),v.warnings.push(z)})("Music Line:"+g.lineIndex+":"+(P+1)+": "+z+": "+Q),function(z){v.warningObjects||(v.warningObjects=[]),v.warningObjects.push(z)}({message:z,line:L,startChar:v.iChar+P,column:P})};this.getWarnings=function(){return v.warnings},this.getWarningObjects=function(){return v.warningObjects};var te=function(z,L){if(L.indexOf("\x12")>=0)l+=L;else if(L=l+L,l="",z){"-"!==(L=A.strip(L))[L.length-1]&&(L+=" ");for(var P=[],$=0,Q=!1,T=function(J){var se=A.strip(L.substring($,J));if(se=se.replace(/\\([-_*|~])/g,"$1"),$=J+1,se.length>0){Q&&(se=se.replace(/~/g," "));var ie=L[J];return"_"!==ie&&"-"!==ie&&(ie=" "),P.push({syllable:g.translateString(se),divider:ie}),Q=!1,!0}return!1},R=!1,F=0;F0&&(A.last(P).divider="-",P.push({skip:!0,to:"next"}));break;case"_":R||(T(F),P.push({skip:!0,to:"slur"}));break;case"*":R||(T(F),P.push({skip:!0,to:"next"}));break;case"|":R||(T(F),P.push({skip:!0,to:"bar"}));break;case"~":R||(Q=!0)}R="\\"===L[F]}z.forEach(function(J){if(0!==P.length)if(P[0].skip){switch(P[0].to){case"next":case"slur":"note"===J.el_type&&null!==J.pitches&&P.shift();break;case"bar":"bar"===J.el_type&&P.shift()}"bar"!==J.el_type&&(void 0===J.lyric?J.lyric=[{syllable:"",divider:" "}]:J.lyric.push({syllable:"",divider:" "}))}else if("note"===J.el_type&&void 0===J.rest){var se=P.shift();se.syllable&&(se.syllable=se.syllable.replace(/ +/g,"\xa0")),void 0===J.lyric?J.lyric=[se]:J.lyric.push(se)}})}else B("Can't add words before the first line of music",z,0)},W=function(z,L){if(L.indexOf("\x12")>=0)h+=L;else if(L=h+L,h="",z){"-"!==(L=A.strip(L))[L.length-1]&&(L+=" ");for(var P=[],$=0,Q=!1,T=function(K){var J=A.strip(L.substring($,K));if($=K+1,J.length>0){Q&&(J=J.replace(/~/g," "));var se=L[K];return"_"!==se&&"-"!==se&&(se=" "),P.push({syllable:g.translateString(J),divider:se}),Q=!1,!0}return!1},R=0;R0&&(A.last(P).divider="-",P.push({skip:!0,to:"next"}));break;case"_":T(R),P.push({skip:!0,to:"slur"});break;case"*":T(R),P.push({skip:!0,to:"next"});break;case"|":T(R),P.push({skip:!0,to:"bar"});break;case"~":Q=!0}z.forEach(function(K){if(0!==P.length)if(P[0].skip)switch(P[0].to){case"next":case"slur":"note"===K.el_type&&null!==K.pitches&&P.shift();break;case"bar":"bar"===K.el_type&&P.shift()}else if("note"===K.el_type&&void 0===K.rest){var J=P.shift();void 0===K.lyric?K.lyric=[J]:K.lyric.push(J)}})}else B("Can't add symbols before the first line of music",z,0)},q=function(z){if(A.startsWith(z,"%%")){var L=I.addDirective(z.substring(2));L&&B(L,z,2)}else{var P=z.indexOf("%");if(P>=0&&(z=z.substring(0,P)),0!==(z=z.replace(/\s+$/,"")).length){if(l)return void te(E.getCurrentVoice(),z.substring(2));if(h)return void W(E.getCurrentVoice(),z.substring(2));if(z.length<2||":"!==z[1]||Y.lineContinuation)return void Y.parseMusic(z);var $=j.parseHeader(z);$.regular&&Y.parseMusic(z),$.newline&&Y.startNewLine(),$.words&&te(E.getCurrentVoice(),z.substring(2)),$.symbols&&W(E.getCurrentVoice(),z.substring(2))}}};function ee(z,L){z.push({el_type:"hint"});for(var P=0;P1){for(var Q=1;Q<$.length;Q++)for(;$[Q].length>0&&"\n"!==$[Q][0];)$[Q]=$[Q].substr(1),$[Q-1]+=" ";z=$.join(" ")}var T=(z=z.replace(/\\([ \t]*)(%.*)*\n/g,function(ie,ye,Fe){return ye+"\x12"+(Fe?Array(Fe.length+1).join(" "):"")+"\n"})).split("\n");0===A.last(T).length&&T.pop(),g=new b(T,v),j=new D(g,B,v,y,E),Y=new p(g,B,v,y,E,j),L.print&&(y.media="print"),v.reset(),v.iChar=P,L.visualTranspose?(v.globalTranspose=parseInt(L.visualTranspose),0===v.globalTranspose?v.globalTranspose=void 0:E.setVisualTranspose(L.visualTranspose)):v.globalTranspose=void 0,L.lineBreaks&&(v.lineBreaks=L.lineBreaks),j.reset(g,B,v,y);try{L.format&&I.globalFormatting(L.format);for(var R=g.nextLine();R;){if(L.header_only&&!1===v.is_in_header||L.stop_on_warning&&v.warnings)throw"normal_abort";var F=v.is_in_header;q(R),F&&!v.is_in_header&&(E.setRunningFont("annotationfont",v.annotationfont),E.setRunningFont("gchordfont",v.gchordfont),E.setRunningFont("tripletfont",v.tripletfont),E.setRunningFont("vocalfont",v.vocalfont)),R=g.nextLine()}l&&te(E.getCurrentVoice(),""),h&&W(E.getCurrentVoice(),""),v.openSlurs=E.cleanUp(v.barsperstaff,v.staffnonote,v.openSlurs)}catch(ie){if("normal_abort"!==ie)throw ie}var K=792,J=612;switch(v.papersize){case"legal":K=1008,J=612;break;case"A4":K=842.4,J=597.6}if(v.landscape){var se=K;K=J,J=se}y.formatting.pagewidth||(y.formatting.pagewidth=J),y.formatting.pageheight||(y.formatting.pageheight=K),L.hint_measures&&function ne(){for(var z=0;z{var A=M(5339);Z.exports=function(D){"use strict";for(var p="",b=D.match(/(\s*)/),c=(D=A.strip(D)).split("\nX:"),f=1;f1&&!A.startsWith(_[0].abc,"X:")&&_.shift().abc.split("\n").forEach(function(l){A.startsWith(l,"%%")&&(p+=l+"\n")});var g=p;return _.forEach(function(l){var h=l.abc.indexOf("\n\n");h>0&&(l.abc=l.abc.substring(0,h)),l.pure=l.abc,l.abc=p+l.abc,l.title="";var w=l.pure.split("T:");w.length>1&&(w=w[1].split("\n"),l.title=A.strip(w[0]));var u=l.pure.substring(2,l.pure.indexOf("\n"));l.id=A.strip(u)}),{header:g,tunes:_}}},467:(Z,H,M)=>{var A=M(5339),I={};(function(){"use strict";var D,p,b,c,f;I.initialize=function(T,R,F,K,J){D=T,p=R,b=F,c=K,f=J,function m(){b.annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},b.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},b.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},b.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},b.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},b.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},b.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},b.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},b.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},b.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},b.wordsfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},c.formatting.composerfont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},c.formatting.subtitlefont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},c.formatting.tempofont={face:'"Times New Roman"',size:15,weight:"bold",style:"normal",decoration:"none"},c.formatting.titlefont={face:'"Times New Roman"',size:20,weight:"normal",style:"normal",decoration:"none"},c.formatting.footerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},c.formatting.headerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},c.formatting.voicefont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},c.formatting.tablabelfont={face:'"Trebuchet MS"',size:16,weight:"normal",style:"normal",decoration:"none"},c.formatting.tabnumberfont={face:'"Arial"',size:11,weight:"normal",style:"normal",decoration:"none"},c.formatting.tabgracefont={face:'"Arial"',size:8,weight:"normal",style:"normal",decoration:"none"},c.formatting.annotationfont=b.annotationfont,c.formatting.gchordfont=b.gchordfont,c.formatting.historyfont=b.historyfont,c.formatting.infofont=b.infofont,c.formatting.measurefont=b.measurefont,c.formatting.partsfont=b.partsfont,c.formatting.repeatfont=b.repeatfont,c.formatting.textfont=b.textfont,c.formatting.tripletfont=b.tripletfont,c.formatting.vocalfont=b.vocalfont,c.formatting.wordsfont=b.wordsfont}()};var _={gchordfont:!0,measurefont:!0,partsfont:!0,annotationfont:!0,composerfont:!0,historyfont:!0,infofont:!0,subtitlefont:!0,textfont:!0,titlefont:!0,voicefont:!0},E=function(T,R,F,K,J){function se(){var Bt=parseInt(T[0].token);return T.shift(),R?0===T.length?{face:R.face,weight:R.weight,style:R.style,decoration:R.decoration,size:Bt}:1===T.length&&"box"===T[0].token&&_[J]?{face:R.face,weight:R.weight,style:R.style,decoration:R.decoration,size:Bt,box:!0}:(p("Extra parameters in font definition.",F,K),{face:R.face,weight:R.weight,style:R.style,decoration:R.decoration,size:Bt}):(p("Can't set just the size of the font since there is no default value.",F,K),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:Bt})}if("*"===T[0].token){if(T.shift(),"number"===T[0].type)return se();p("Expected font size number after *.",F,K)}if("number"===T[0].type)return se();for(var ye,ie=[],Fe="normal",me="normal",Ve="none",et=!1,qe="face",Be=!1;T.length;){var $e=T.shift(),st=$e.token.toLowerCase();switch(qe){case"face":Be||"utf"!==st&&"number"!==$e.type&&"bold"!==st&&"italic"!==st&&"underline"!==st&&"box"!==st?ie.length>0&&"-"===$e.token?(Be=!0,ie[ie.length-1]=ie[ie.length-1]+$e.token):Be?(Be=!1,ie[ie.length-1]=ie[ie.length-1]+$e.token):ie.push($e.token):"number"===$e.type?(ye?p("Font size specified twice in font definition.",F,K):ye=$e.token,qe="modifier"):"bold"===st?Fe="bold":"italic"===st?me="italic":"underline"===st?Ve="underline":"box"===st?(_[J]?et=!0:p('This font style doesn\'t support "box"',F,K),qe="finished"):"utf"===st?($e=T.shift(),qe="size"):p("Unknown parameter "+$e.token+" in font definition.",F,K);break;case"size":"number"===$e.type?ye?p("Font size specified twice in font definition.",F,K):ye=$e.token:p("Expected font size in font definition.",F,K),qe="modifier";break;case"modifier":"bold"===st?Fe="bold":"italic"===st?me="italic":"underline"===st?Ve="underline":"box"===st?(_[J]?et=!0:p('This font style doesn\'t support "box"',F,K),qe="finished"):p("Unknown parameter "+$e.token+" in font definition.",F,K);break;case"finished":p('Extra characters found after "box" in font definition.',F,K)}}void 0===ye?R?ye=R.size:(p("Must specify the size of the font since there is no default value.",F,K),ye=12):ye=parseFloat(ye),""===(ie=ie.join(" "))&&(R?ie=R.face:(p("Must specify the name of the font since there is no default value.",F,K),ie="sans-serif"));var Re=function(T){switch(T){case"Arial-Italic":return{face:"Arial",weight:"normal",style:"italic",decoration:"none"};case"Arial-Bold":return{face:"Arial",weight:"bold",style:"normal",decoration:"none"};case"Bookman-Demi":return{face:"Bookman,serif",weight:"bold",style:"normal",decoration:"none"};case"Bookman-DemiItalic":return{face:"Bookman,serif",weight:"bold",style:"italic",decoration:"none"};case"Bookman-Light":return{face:"Bookman,serif",weight:"normal",style:"normal",decoration:"none"};case"Bookman-LightItalic":return{face:"Bookman,serif",weight:"normal",style:"italic",decoration:"none"};case"Courier":return{face:'"Courier New"',weight:"normal",style:"normal",decoration:"none"};case"Courier-Oblique":return{face:'"Courier New"',weight:"normal",style:"italic",decoration:"none"};case"Courier-Bold":return{face:'"Courier New"',weight:"bold",style:"normal",decoration:"none"};case"Courier-BoldOblique":return{face:'"Courier New"',weight:"bold",style:"italic",decoration:"none"};case"AvantGarde-Book":return{face:"AvantGarde,Arial",weight:"normal",style:"normal",decoration:"none"};case"AvantGarde-BookOblique":return{face:"AvantGarde,Arial",weight:"normal",style:"italic",decoration:"none"};case"AvantGarde-Demi":case"Avant-Garde-Demi":return{face:"AvantGarde,Arial",weight:"bold",style:"normal",decoration:"none"};case"AvantGarde-DemiOblique":return{face:"AvantGarde,Arial",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Oblique":return{face:"Helvetica",weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Bold":return{face:"Helvetica",weight:"bold",style:"normal",decoration:"none"};case"Helvetica-BoldOblique":return{face:"Helvetica",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Narrow":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"normal",decoration:"none"};case"Helvetica-Narrow-Oblique":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Narrow-Bold":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"normal",decoration:"none"};case"Helvetica-Narrow-BoldOblique":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"italic",decoration:"none"};case"Palatino-Roman":return{face:"Palatino",weight:"normal",style:"normal",decoration:"none"};case"Palatino-Italic":return{face:"Palatino",weight:"normal",style:"italic",decoration:"none"};case"Palatino-Bold":return{face:"Palatino",weight:"bold",style:"normal",decoration:"none"};case"Palatino-BoldItalic":return{face:"Palatino",weight:"bold",style:"italic",decoration:"none"};case"NewCenturySchlbk-Roman":return{face:'"New Century",serif',weight:"normal",style:"normal",decoration:"none"};case"NewCenturySchlbk-Italic":return{face:'"New Century",serif',weight:"normal",style:"italic",decoration:"none"};case"NewCenturySchlbk-Bold":return{face:'"New Century",serif',weight:"bold",style:"normal",decoration:"none"};case"NewCenturySchlbk-BoldItalic":return{face:'"New Century",serif',weight:"bold",style:"italic",decoration:"none"};case"Times":case"Times-Roman":case"Times-Narrow":case"Times-Courier":case"Times-New-Roman":return{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none"};case"Times-Italic":case"Times-Italics":return{face:'"Times New Roman"',weight:"normal",style:"italic",decoration:"none"};case"Times-Bold":return{face:'"Times New Roman"',weight:"bold",style:"normal",decoration:"none"};case"Times-BoldItalic":return{face:'"Times New Roman"',weight:"bold",style:"italic",decoration:"none"};case"ZapfChancery-MediumItalic":return{face:'"Zapf Chancery",cursive,serif',weight:"normal",style:"normal",decoration:"none"};default:return null}}(ie),ut={};return Re?(ut.face=Re.face,ut.weight=Re.weight,ut.style=Re.style,ut.decoration=Re.decoration,ut.size=ye,et&&(ut.box=!0),ut):(ut.face=ie,ut.weight=Fe,ut.style=me,ut.decoration=Ve,ut.size=ye,et&&(ut.box=!0),ut)},g=function(T,R,F){return 0===R.length?'Directive "'+T+'" requires a font as a parameter.':(b[T]=E(R,b[T],F,0,T),b.is_in_header&&(c.formatting[T]=b[T]),null)},h=function(T,R){var F="";R.forEach(function(J){F+=J.token});var K=parseFloat(F);if(isNaN(K)||0===K)return'Directive "'+T+'" requires a number as a parameter.';c.formatting.scale=K},w=["acoustic-bass-drum","bass-drum-1","side-stick","acoustic-snare","hand-clap","electric-snare","low-floor-tom","closed-hi-hat","high-floor-tom","pedal-hi-hat","low-tom","open-hi-hat","low-mid-tom","hi-mid-tom","crash-cymbal-1","high-tom","ride-cymbal-1","chinese-cymbal","ride-bell","tambourine","splash-cymbal","cowbell","crash-cymbal-2","vibraslap","ride-cymbal-2","hi-bongo","low-bongo","mute-hi-conga","open-hi-conga","low-conga","high-timbale","low-timbale","high-agogo","low-agogo","cabasa","maracas","short-whistle","long-whistle","short-guiro","long-guiro","claves","hi-wood-block","low-wood-block","mute-cuica","open-cuica","mute-triangle","open-triangle"],x=function(T,R,F,K,J){if(1!==F.length||"number"!==F[0].type)return'Directive "'+R+'" requires a number as a parameter.';var se=F[0].intt;return void 0!==K&&seJ?'Directive "'+R+'" requires a number less than or equal to '+J+" as a parameter.":(b[T]=se,null)},O=function(T,R,F){if(1===F.length&&("true"===F[0].token||"false"===F[0].token))return b[T]="true"===F[0].token,null;var K=x(T,R,F,0,1);return null!==K?K:(b[T]=1===b[T],null)},B=function(T,R,F,K){if(1!==F.length)return'Directive "'+R+'" requires one of [ '+K.join(", ")+" ] as a parameter.";for(var J=F[0].token,se=!1,ie=0;!se&&ie1&&b.setfont){for(var F=[{text:R[0]}],K=1;K1)return F}return T};var $=["auto","above","below","hidden"];function Q(T){if(0===T.length)return{value:1};if(1===T.length)if("number"===T[0].type){if(T[0].floatt>=0||T[0].floatt<=1)return{value:T[0].floatt}}else{if("false"===T[0].token)return{value:0};if("true"===T[0].token)return{value:1}}return{error:"Directive stretchlast requires zero or one parameter: false, true, or number between 0 and 1 (received "+T[0].token+")"}}I.addDirective=function(T){var R=D.tokenize(T,0,T.length);if(0===R.length||"alpha"!==R[0].type)return null;var F=T.substring(T.indexOf(R[0].token)+R[0].token.length);F=D.stripComment(F);var se,K=R.shift().token.toLowerCase(),J="";switch(K){case"bagpipes":c.formatting.bagpipes=!0;break;case"flatbeams":c.formatting.flatbeams=!0;break;case"jazzchords":c.formatting.jazzchords=!0;break;case"germanAlphabet":c.formatting.germanAlphabet=!0;break;case"landscape":b.landscape=!0;break;case"papersize":b.papersize=F;break;case"graceslurs":if(1!==R.length)return"Directive graceslurs requires one parameter: 0 or 1";if("0"===R[0].token||"false"===R[0].token)c.formatting.graceSlurs=!1;else{if("1"!==R[0].token&&"true"!==R[0].token)return"Directive graceslurs requires one parameter: 0 or 1 (received "+R[0].token+")";c.formatting.graceSlurs=!0}break;case"lineThickness":var ie=Q(R);if(void 0!==ie.value&&(c.formatting.lineThickness=ie.value),ie.error)return ie.error;break;case"stretchlast":var ye=Q(R);if(void 0!==ye.value&&(c.formatting.stretchlast=ye.value),ye.error)return ye.error;break;case"titlecaps":b.titlecaps=!0;break;case"titleleft":c.formatting.titleleft=!0;break;case"measurebox":c.formatting.measurebox=!0;break;case"vocal":return B("vocalPosition",K,R,$);case"dynamic":return B("dynamicPosition",K,R,$);case"gchord":return B("chordPosition",K,R,$);case"ornament":return B("ornamentPosition",K,R,$);case"volume":return B("volumePosition",K,R,$);case"botmargin":case"botspace":case"composerspace":case"indent":case"leftmargin":case"linesep":case"musicspace":case"partsspace":case"pageheight":case"pagewidth":case"rightmargin":case"staffsep":case"staffwidth":case"subtitlespace":case"sysstaffsep":case"systemsep":case"textspace":case"titlespace":case"topmargin":case"topspace":case"vocalspace":case"wordsspace":return function(T,R){var F=D.getMeasurement(R);return 0===F.used||0!==R.length?'Directive "'+T+'" requires a measurement as a parameter.':(c.formatting[T]=F.value,null)}(K,R);case"voicescale":if(1!==R.length||"number"!==R[0].type)return"voicescale requires one float as a parameter";var Fe=R.shift();return b.currentVoice&&(b.currentVoice.scale=Fe.floatt,f.changeVoiceScale(b.currentVoice.scale)),null;case"voicecolor":if(1!==R.length)return"voicecolor requires one string as a parameter";var me=R.shift();return b.currentVoice&&(b.currentVoice.color=me.token,f.changeVoiceColor(b.currentVoice.color)),null;case"vskip":var Ve=Math.round(function(T,R){var F=D.getMeasurement(R);return 0===F.used||0!==R.length?{error:'Directive "'+T+'" requires a measurement as a parameter.'}:F.value}(K,R));return Ve.error?Ve.error:(f.addSpacing(Ve),null);case"scale":h(K,R);break;case"sep":if(0===R.length)f.addSeparator(14,14,85,{startChar:b.iChar,endChar:b.iChar+5});else{var et=D.getMeasurement(R);if(0===et.used)return'Directive "'+K+'" requires 3 numbers: space above, space below, length of line';var qe=et.value;if(0===(et=D.getMeasurement(R)).used)return'Directive "'+K+'" requires 3 numbers: space above, space below, length of line';var Be=et.value;if(0===(et=D.getMeasurement(R)).used||0!==R.length)return'Directive "'+K+'" requires 3 numbers: space above, space below, length of line';f.addSeparator(qe,Be,et.value,{startChar:b.iChar,endChar:b.iChar+F.length})}break;case"barsperstaff":if(null!==(J=x("barsperstaff",K,R)))return J;break;case"staffnonote":if(1!==R.length)return"Directive staffnonote requires one parameter: 0 or 1";if("0"===R[0].token)b.staffnonote=!0;else{if("1"!==R[0].token)return"Directive staffnonote requires one parameter: 0 or 1 (received "+R[0].token+")";b.staffnonote=!1}break;case"printtempo":if(null!==(J=O("printTempo",K,R)))return J;break;case"partsbox":if(null!==(J=O("partsBox",K,R)))return J;b.partsfont.box=b.partsBox;break;case"freegchord":if(null!==(J=O("freegchord",K,R)))return J;break;case"measurenb":case"barnumbers":if(null!==(J=x("barNumbers",K,R)))return J;break;case"setbarnb":if(1!==R.length||"number"!==R[0].type)return"Directive setbarnb requires a number as a parameter.";b.currBarNumber=f.setBarNumberImmediate(R[0].intt);break;case"begintext":var st="";for(se=D.nextLine();se&&0!==se.indexOf("%%endtext");)A.startsWith(se,"%%")?st+=se.substring(2)+"\n":st+=se+"\n",se=D.nextLine();f.addText(st,{startChar:b.iChar,endChar:b.iChar+st.length+7});break;case"continueall":b.continueall=!0;break;case"beginps":for(se=D.nextLine();se&&0!==se.indexOf("%%endps");)D.nextLine();p("Postscript ignored",T,0);break;case"deco":F.length>0&&b.ignoredDecorations.push(F.substring(0,F.indexOf(" "))),p("Decoration redefinition ignored",T,0);break;case"text":var Re=D.translateString(F);f.addText(I.parseFontChangeLine(Re),{startChar:b.iChar,endChar:b.iChar+F.length+7});break;case"center":var ut=D.translateString(F);f.addCentered(I.parseFontChangeLine(ut));break;case"font":break;case"setfont":var Bt=D.tokenize(F,0,F.length);if(Bt.length>=4&&"-"===Bt[0].token&&"number"===Bt[1].type){var Jt=parseInt(Bt[1].token);Jt>=1&&Jt<=4&&(b.setfont||(b.setfont=[]),Bt.shift(),Bt.shift(),b.setfont[Jt]=E(Bt,b.setfont[Jt],T,0,"setfont"))}break;case"gchordfont":case"partsfont":case"tripletfont":case"vocalfont":case"textfont":case"annotationfont":case"historyfont":case"infofont":case"measurefont":case"repeatfont":case"wordsfont":return g(K,R,T);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return function(T,R,F){return 0===R.length?'Directive "'+T+'" requires a font as a parameter.':(c.formatting[T]=E(R,c.formatting[T],F,0,T),null)}(K,R,T);case"barlabelfont":case"barnumberfont":case"barnumfont":return g("measurefont",R,T);case"staves":case"score":b.score_is_present=!0;for(var Ae,_n=function(vt,Mi,Wi,Ot,Dt){(Mi||0===b.staves.length)&&b.staves.push({index:b.staves.length,numVoices:0});var _i=A.last(b.staves);void 0!==Wi&&void 0===_i.bracket&&(_i.bracket=Wi),void 0!==Ot&&void 0===_i.brace&&(_i.brace=Ot),Dt&&(_i.connectBarLines="end"),void 0===b.voices[vt]&&(b.voices[vt]={staffNum:_i.index,index:_i.numVoices},_i.numVoices++)},kt=!1,Rt=!1,yn=!1,fe=!1,ce=!1,be=!1,Ce=!1,Yt=function(){if(Ce=!0,Ae){var vt="start";Ae.staffNum>0&&("start"===b.staves[Ae.staffNum-1].connectBarLines||"continue"===b.staves[Ae.staffNum-1].connectBarLines)&&(vt="continue"),b.staves[Ae.staffNum].connectBarLines=vt}};R.length;){var tt=R.shift();switch(tt.token){case"(":kt?p("Can't nest parenthesis in %%score",T,tt.start):(kt=!0,fe=!0);break;case")":!kt||fe?p("Unexpected close parenthesis in %%score",T,tt.start):kt=!1;break;case"[":Rt?p("Can't nest brackets in %%score",T,tt.start):(Rt=!0,ce=!0);break;case"]":!Rt||ce?p("Unexpected close bracket in %%score",T,tt.start):(Rt=!1,b.staves[Ae.staffNum].bracket="end");break;case"{":yn?p("Can't nest braces in %%score",T,tt.start):(yn=!0,be=!0);break;case"}":!yn||be?p("Unexpected close brace in %%score",T,tt.start):(yn=!1,b.staves[Ae.staffNum].brace="end");break;case"|":Yt();break;default:for(var Ct="";("alpha"===tt.type||"number"===tt.type)&&(Ct+=tt.token,tt.continueId);)tt=R.shift();_n(Ct,!kt||fe,ce?"start":Rt?"continue":void 0,be?"start":yn?"continue":void 0,Ce),fe=!1,ce=!1,be=!1,Ce=!1,Ae=b.voices[Ct],"staves"===K&&Yt()}}break;case"newpage":var Zn=D.getInt(F);f.addNewPage(0===Zn.digits?-1:Zn.value);break;case"abc":var vi=F.split(" ");switch(vi[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var Dr=vi.shift();f.addMetaText(K+Dr,vi.join(" "),{startChar:b.iChar,endChar:b.iChar+F.length+5});break;default:return"Unknown directive: "+K+vi[0]}break;case"header":case"footer":var Ln=D.getMeat(F,0,F.length);'"'===(Ln=F.substring(Ln.start,Ln.end))[0]&&'"'===Ln[Ln.length-1]&&(Ln=Ln.substring(1,Ln.length-1));var Ni,Tn=Ln.split("\t");Ni=1===Tn.length?{left:"",center:Tn[0],right:""}:2===Tn.length?{left:Tn[0],center:Tn[1],right:""}:{left:Tn[0],center:Tn[1],right:Tn[2]},Tn.length>3&&p("Too many tabs in "+K+": "+Tn.length+" found.",F,0),f.addMetaTextObj(K,Ni,{startChar:b.iChar,endChar:b.iChar+T.length});break;case"midi":var gt=D.tokenize(F,0,F.length,!0);gt.length>0&&"="===gt[0].token&>.shift(),0===gt.length?p("Expected midi command",F,0):function(T,R,F){var K=T.shift().token,J=[];if(j.indexOf(K)>=0)0!==T.length&&p("Unexpected parameter in MIDI "+K,F,0);else if(Y.indexOf(K)>=0)1!==T.length?p("Expected one parameter in MIDI "+K,F,0):J.push(T[0].token);else if(te.indexOf(K)>=0)1!==T.length?p("Expected one parameter in MIDI "+K,F,0):"number"!==T[0].type?p("Expected one integer parameter in MIDI "+K,F,0):J.push(T[0].intt);else if(W.indexOf(K)>=0)1!==T.length&&2!==T.length?p("Expected one or two parameters in MIDI "+K,F,0):"number"!==T[0].type||2===T.length&&"number"!==T[1].type?p("Expected integer parameter in MIDI "+K,F,0):(J.push(T[0].intt),2===T.length&&J.push(T[1].intt));else if(q.indexOf(K)>=0)2!==T.length?p("Expected two parameters in MIDI "+K,F,0):"number"!==T[0].type||"number"!==T[1].type?p("Expected two integer parameters in MIDI "+K,F,0):(J.push(T[0].intt),J.push(T[1].intt));else if(ne.indexOf(K)>=0)2!==T.length?p("Expected two parameters in MIDI "+K,F,0):"alpha"!==T[0].type||"number"!==T[1].type?p("Expected one string and one integer parameters in MIDI "+K,F,0):(J.push(T[0].token),J.push(T[1].intt));else if("drummap"===K)2===T.length&&"alpha"===T[0].type&&"number"===T[1].type?(R.formatting||(R.formatting={}),R.formatting.midi||(R.formatting.midi={}),R.formatting.midi.drummap||(R.formatting.midi.drummap={}),R.formatting.midi.drummap[T[0].token]=T[1].intt,J=R.formatting.midi.drummap):3===T.length&&"punct"===T[0].type&&"alpha"===T[1].type&&"number"===T[2].type?(R.formatting||(R.formatting={}),R.formatting.midi||(R.formatting.midi={}),R.formatting.midi.drummap||(R.formatting.midi.drummap={}),R.formatting.midi.drummap[T[0].token+T[1].token]=T[2].intt,J=R.formatting.midi.drummap):p("Expected one note name and one integer parameter in MIDI "+K,F,0);else if(z.indexOf(K)>=0)3!==T.length||"number"!==T[0].type||"/"!==T[1].token||"number"!==T[2].type?p("Expected fraction parameter in MIDI "+K,F,0):(J.push(T[0].intt),J.push(T[2].intt));else if(ee.indexOf(K)>=0)4!==T.length?p("Expected four parameters in MIDI "+K,F,0):"number"!==T[0].type||"number"!==T[1].type||"number"!==T[2].type||"number"!==T[3].type?p("Expected four integer parameters in MIDI "+K,F,0):(J.push(T[0].intt),J.push(T[1].intt),J.push(T[2].intt),J.push(T[3].intt));else if(U.indexOf(K)>=0)5!==T.length?p("Expected five parameters in MIDI "+K,F,0):"number"!==T[0].type||"number"!==T[1].type||"number"!==T[2].type||"number"!==T[3].type||"number"!==T[4].type?p("Expected five integer parameters in MIDI "+K,F,0):(J.push(T[0].intt),J.push(T[1].intt),J.push(T[2].intt),J.push(T[3].intt),J.push(T[4].intt));else if(W.indexOf(K)>=0)1!==T.length||4!==T.length?p("Expected one or two parameters in MIDI "+K,F,0):"number"!==T[0].type?p("Expected integer parameter in MIDI "+K,F,0):4===T.length?("octave"!==T[1].token&&p("Expected octave parameter in MIDI "+K,F,0),"="!==T[2].token&&p("Expected octave parameter in MIDI "+K,F,0),"number"!==T[3].type&&p("Expected integer parameter for octave in MIDI "+K,F,0)):(J.push(T[0].intt),4===T.length&&J.push(T[3].intt));else if(L.indexOf(K)>=0)if(T.length<2)p("Expected string parameter and at least one integer parameter in MIDI "+K,F,0);else if("alpha"!==T[0].type)p("Expected string parameter and at least one integer parameter in MIDI "+K,F,0);else{var se=T.shift();for(J.push(se.token);T.length>0;)"number"!==(se=T.shift()).type&&p("Expected integer parameter in MIDI "+K,F,0),J.push(se.intt)}f.hasBeginMusic()?f.appendElement("midi",-1,-1,{cmd:K,params:J}):(void 0===R.formatting.midi&&(R.formatting.midi={}),R.formatting.midi[K]=J)}(gt,c,F);break;case"percmap":var Jn=function(T){var R=T.split(/\s+/);if(2!==R.length&&3!==R.length)return{error:'Expected parameters "abc-note", "drum-sound", and optionally "note-head"'};var F=R[0],K=parseInt(R[1],10);if((isNaN(K)||K<35||K>81)&&R[1]&&(K=w.indexOf(R[1].toLowerCase())+35),isNaN(K)||K<35||K>81)return{error:'Expected drum name, received "'+R[1]+'"'};var J={sound:K};return 3===R.length&&(J.noteHead=R[2]),{key:F,value:J}}(F);Jn.error?p(Jn.error,T,8):(c.formatting.percmap||(c.formatting.percmap={}),c.formatting.percmap[Jn.key]=Jn.value);break;case"map":case"playtempo":case"auquality":case"continuous":case"nobarcheck":c.formatting[K]=F;break;default:return"Unknown directive: "+K}return null},I.globalFormatting=function(T){for(var R in T)if(T.hasOwnProperty(R)){var J,F=""+T[R],K=D.tokenize(F,0,F.length);switch(R){case"titlefont":case"gchordfont":case"composerfont":case"footerfont":case"headerfont":case"historyfont":case"infofont":case"measurefont":case"partsfont":case"repeatfont":case"subtitlefont":case"tempofont":case"textfont":case"voicefont":case"tripletfont":case"vocalfont":case"wordsfont":case"annotationfont":case"tablabelfont":case"tabnumberfont":case"tabgracefont":g(R,K,F);break;case"scale":h(R,K);break;case"partsbox":null!==(J=O("partsBox",R,K))&&p(J),b.partsfont.box=b.partsBox;break;case"freegchord":null!==(J=O("freegchord",R,K))&&p(J);break;case"fontboxpadding":(1!==K.length||"number"!==K[0].type)&&p('Directive "'+R+'" requires a number as a parameter.'),c.formatting.fontboxpadding=K[0].floatt;break;case"stretchlast":var se=Q(K);if(void 0!==se.value&&(c.formatting.stretchlast=se.value),se.error)return se.error;break;default:p("Formatting directive unrecognized: ",R,0)}}}})(),Z.exports=I},9085:(Z,H,M)=>{var A=M(5339),I=M(467),D=M(1875);Z.exports=function(b,c,f,m,_){this.reset=function(g,l,h,w){D.initialize(g,l,h,w,_),I.initialize(g,l,h,w,_)},this.reset(b,c,f,m),this.setTitle=function(g){if(f.hasMainTitle)_.addSubtitle(b.translateString(b.stripComment(g)),{startChar:f.iChar,endChar:f.iChar+g.length+2});else{var l=b.translateString(b.theReverser(b.stripComment(g)));f.titlecaps&&(l=l.toUpperCase()),_.addMetaText("title",l,{startChar:f.iChar,endChar:f.iChar+g.length+2}),f.hasMainTitle=!0}},this.setMeter=function(g){if("C"===(g=b.stripComment(g)))return!0===f.havent_set_length&&(f.default_length=.125,f.havent_set_length=!1),{type:"common_time"};if("C|"===g)return!0===f.havent_set_length&&(f.default_length=.125,f.havent_set_length=!1),{type:"cut_time"};if("o"===g)return!0===f.havent_set_length&&(f.default_length=.125,f.havent_set_length=!1),{type:"tempus_perfectum"};if("c"===g)return!0===f.havent_set_length&&(f.default_length=.125,f.havent_set_length=!1),{type:"tempus_imperfectum"};if("o."===g)return!0===f.havent_set_length&&(f.default_length=.125,f.havent_set_length=!1),{type:"tempus_perfectum_prolatio"};if("c."===g)return!0===f.havent_set_length&&(f.default_length=.125,f.havent_set_length=!1),{type:"tempus_imperfectum_prolatio"};if(0===g.length||"none"===g.toLowerCase())return!0===f.havent_set_length&&(f.default_length=.125,f.havent_set_length=!1),null;var l=b.tokenize(g,0,g.length);try{var w=function(){var O=function(){var O={value:0,num:""},B=l.shift();for("("===B.token&&(B=l.shift());;){if("number"!==B.type)throw"Expected top number of meter";if(O.value+=parseInt(B.token),O.num+=B.token,0===l.length||"/"===l[0].token)return O;if(")"===(B=l.shift()).token){if(0===l.length||"/"===l[0].token)return O;throw"Unexpected paren in meter"}if("."!==B.token&&"+"!==B.token||(O.num+=B.token,0===l.length))throw"Expected top number of meter";B=l.shift()}return O}();if(0===l.length)return O;var B=l.shift();if("/"!==B.token)throw"Expected slash in meter";if("number"!==(B=l.shift()).type)throw"Expected bottom number of meter";return O.den=B.token,O.value=O.value/parseInt(O.den),O};if(0===l.length)throw"Expected meter definition in M: line";for(var u={type:"specified",value:[]},v=0;;){var S=w();v+=S.value;var x={num:S.num};if(void 0!==S.den&&(x.den=S.den),u.value.push(x),0===l.length)break}return!0===f.havent_set_length&&(f.default_length=v<.75?.0625:.125,f.havent_set_length=!1),u}catch(O){c(O,g,0)}return null},this.calcTempo=function(g){var l=.25;f.meter&&"specified"===f.meter.type?l=1/parseInt(f.meter.value[0].den):f.origMeter&&"specified"===f.origMeter.type&&(l=1/parseInt(f.origMeter.value[0].den));for(var h=0;h0&&(f.default_length=v/S,f.havent_set_length=!1)}else 1===u.length&&"1"===u[0]&&(f.default_length=1,f.havent_set_length=!1)};var y={larghissimo:20,adagissimo:24,sostenuto:28,grave:32,largo:40,lento:50,larghetto:60,adagio:68,adagietto:74,andante:80,andantino:88,"marcia moderato":84,"andante moderato":100,moderato:112,allegretto:116,"allegro moderato":120,allegro:126,animato:132,agitato:140,veloce:148,"mosso vivo":156,vivace:164,vivacissimo:172,allegrissimo:176,presto:184,prestissimo:210};this.setTempo=function(g,l,h,w){try{var u=b.tokenize(g,l,h);if(0===u.length)throw"Missing parameter in Q: field";var v={startChar:w+l-2,endChar:w+h},S=!0,x=u.shift();if("quote"===x.type&&(v.preString=x.token,x=u.shift(),0===u.length))return y[v.preString.toLowerCase()]&&(v.bpm=y[v.preString.toLowerCase()],v.suppressBpm=!0),{type:"immediate",tempo:v};if("alpha"===x.type&&"C"===x.token){if(0===u.length)throw"Missing tempo after C in Q: field";if("punct"===(x=u.shift()).type&&"="===x.token){if(0===u.length)throw"Missing tempo after = in Q: field";if("number"!==(x=u.shift()).type)throw"Expected number after = in Q: field";v.duration=[1],v.bpm=parseInt(x.token)}else{if("number"!==x.type)throw"Expected number or equal after C in Q: field";if(v.duration=[parseInt(x.token)],0===u.length)throw"Missing = after duration in Q: field";if("punct"!==(x=u.shift()).type||"="!==x.token)throw"Expected = after duration in Q: field";if(0===u.length)throw"Missing tempo after = in Q: field";if("number"!==(x=u.shift()).type)throw"Expected number after = in Q: field";v.bpm=parseInt(x.token)}}else{if("number"!==x.type)throw"Unknown value in Q: field";var O=parseInt(x.token);if(0===u.length||"quote"===u[0].type)v.duration=[1],v.bpm=O;else{if(S=!1,"punct"!==(x=u.shift()).type&&"/"!==x.token||"number"!==(x=u.shift()).type)throw"Expected fraction in Q: field";var B=parseInt(x.token);for(v.duration=[O/B];u.length>0&&"="!==u[0].token&&"quote"!==u[0].type;){if("number"!==(x=u.shift()).type||(O=parseInt(x.token),"punct"!==(x=u.shift()).type&&"/"!==x.token)||"number"!==(x=u.shift()).type)throw"Expected fraction in Q: field";B=parseInt(x.token),v.duration.push(O/B)}if("punct"!==(x=u.shift()).type&&"="!==x.token)throw"Expected = in Q: field";if("number"!==(x=u.shift()).type)throw"Expected tempo in Q: field";v.bpm=parseInt(x.token)}}if(0!==u.length&&("quote"===(x=u.shift()).type&&(v.postString=x.token,x=u.shift()),0!==u.length))throw"Unexpected string at end of Q: field";return!1===f.printTempo&&(v.suppress=!0),{type:S?"delaySet":"immediate",tempo:v}}catch(j){return c(j,g,l),{type:"none"}}},this.letter_to_inline_header=function(g,l,h){var w=b.eatWhiteSpace(g,l);if(g.length>=(l+=w)+5&&"["===g[l]&&":"===g[l+2]){var u=g.indexOf("]",l),v=f.iChar+l,S=f.iChar+u+1;switch(g.substring(l,l+3)){case"[I:":var x=I.addDirective(g.substring(l+3,u));return x&&c(x,g,l),[u-l+1+w];case"[M:":var O=this.setMeter(g.substring(l+3,u));return _.hasBeginMusic()&&O?_.appendStartingElement("meter",v,S,O):f.meter=O,[u-l+1+w];case"[K:":var B=D.parseKey(g.substring(l+3,u),!0);return B.foundClef&&_.hasBeginMusic()&&_.appendStartingElement("clef",v,S,f.clef),B.foundKey&&_.hasBeginMusic()&&_.appendStartingElement("key",v,S,D.fixKey(f.clef,f.key)),[u-l+1+w];case"[P:":return h||m.lines.length<=m.lineNum?f.partForNextLine={title:g.substring(l+3,u),startChar:v,endChar:S}:_.appendElement("part",v,S,{title:g.substring(l+3,u)}),[u-l+1+w];case"[L:":return this.setDefaultLength(g,l+3,u),[u-l+1+w];case"[Q:":if(u>0){var j=this.setTempo(g,l+3,u,f.iChar);return"delaySet"===j.type?_.hasBeginMusic()?_.appendElement("tempo",v,S,this.calcTempo(j.tempo)):f.tempoForNextLine=["tempo",v,S,this.calcTempo(j.tempo)]:"immediate"===j.type&&(!h&&_.hasBeginMusic()?_.appendElement("tempo",v,S,j.tempo):f.tempoForNextLine=["tempo",v,S,j.tempo]),[u-l+1+w,g[l+1],g.substring(l+3,u)]}break;case"[V:":if(u>0)return D.parseVoice(g,l+3,u),[u-l+1+w,g[l+1],g.substring(l+3,u)];break;case"[r:":return[u-l+1+w]}}return[0]},this.letter_to_body_header=function(g,l){if(g.length>=l+3)switch(g.substring(l,l+2)){case"I:":var h=I.addDirective(g.substring(l+2));return h&&c(h,g,l),[g.length];case"M:":var w=this.setMeter(g.substring(l+2));return _.hasBeginMusic()&&w&&_.appendStartingElement("meter",f.iChar+l,f.iChar+g.length,w),[g.length];case"K:":var u=D.parseKey(g.substring(l+2),_.hasBeginMusic());return u.foundClef&&_.hasBeginMusic()&&_.appendStartingElement("clef",f.iChar+l,f.iChar+g.length,f.clef),u.foundKey&&_.hasBeginMusic()&&_.appendStartingElement("key",f.iChar+l,f.iChar+g.length,D.fixKey(f.clef,f.key)),[g.length];case"P:":return _.hasBeginMusic()&&_.appendElement("part",f.iChar+l,f.iChar+g.length,{title:g.substring(l+2)}),[g.length];case"L:":return this.setDefaultLength(g,l+2,g.length),[g.length];case"Q:":var v=g.indexOf("\x12",l+2);-1===v&&(v=g.length);var S=this.setTempo(g,l+2,v,f.iChar);return"delaySet"===S.type?_.appendElement("tempo",f.iChar+l,f.iChar+g.length,this.calcTempo(S.tempo)):"immediate"===S.type&&_.appendElement("tempo",f.iChar+l,f.iChar+g.length,S.tempo),[v,g[l],A.strip(g.substring(l+2))];case"V:":return D.parseVoice(g,l+2,g.length),[g.length,g[l],A.strip(g.substring(l+2))]}return[0]};var E={A:"author",B:"book",C:"composer",D:"discography",F:"url",G:"group",I:"instruction",N:"notes",O:"origin",R:"rhythm",S:"source",W:"unalignedWords",Z:"transcription"};this.parseHeader=function(g){var l=E[g[0]];if(void 0!==l)return"unalignedWords"===l?_.addMetaTextArray(l,I.parseFontChangeLine(b.translateString(b.stripComment(g.substring(2)))),{startChar:f.iChar,endChar:f.iChar+g.length}):_.addMetaText(l,b.translateString(b.stripComment(g.substring(2))),{startChar:f.iChar,endChar:f.iChar+g.length}),{};var h=f.iChar,w=h+g.length;switch(g[0]){case"H":for(_.addMetaText("history",b.translateString(b.stripComment(g.substring(2))),{startChar:f.iChar,endChar:f.iChar+g.length}),g=b.peekLine();g&&":"!==g[1];)b.nextLine(),_.addMetaText("history",b.translateString(b.stripComment(g)),{startChar:f.iChar,endChar:f.iChar+g.length}),g=b.peekLine();break;case"K":this.resolveTempo();var u=D.parseKey(g.substring(2),!1);!f.is_in_header&&_.hasBeginMusic()&&(u.foundClef&&_.appendStartingElement("clef",h,w,f.clef),u.foundKey&&_.appendStartingElement("key",h,w,D.fixKey(f.clef,f.key))),f.is_in_header=!1;break;case"L":this.setDefaultLength(g,2,g.length);break;case"M":f.origMeter=f.meter=this.setMeter(g.substring(2));break;case"P":f.is_in_header?_.addMetaText("partOrder",b.translateString(b.stripComment(g.substring(2))),{startChar:f.iChar,endChar:f.iChar+g.length}):f.partForNextLine={title:b.translateString(b.stripComment(g.substring(2))),startChar:h,endChar:w};break;case"Q":var v=this.setTempo(g,2,g.length,f.iChar);"delaySet"===v.type?f.tempo=v.tempo:"immediate"===v.type&&(m.metaText.tempo?f.tempoForNextLine=["tempo",h,w,v.tempo]:m.metaText.tempo=v.tempo);break;case"T":this.setTitle(g.substring(2));break;case"U":this.addUserDefinition(g,2,g.length);break;case"V":if(D.parseVoice(g,2,g.length),!f.is_in_header)return{newline:!0};break;case"s":return{symbols:!0};case"w":return{words:!0};case"X":break;case"E":case"m":c("Ignored header",g,0);break;default:return{regular:!0}}return{}}}},1875:(Z,H,M)=>{var A=M(5339),I=M(467),D=M(7704),p={};(function(){var b,c,f,_;p.initialize=function(u,v,S,x,O){b=u,c=v,f=S,_=O},p.standardKey=function(u,v,S,x){return D.keySignature(f,u,v,S,x)};var y={treble:{clef:"treble",pitch:4,mid:0},"treble+8":{clef:"treble+8",pitch:4,mid:0},"treble-8":{clef:"treble-8",pitch:4,mid:0},"treble^8":{clef:"treble+8",pitch:4,mid:0},treble_8:{clef:"treble-8",pitch:4,mid:0},treble1:{clef:"treble",pitch:2,mid:2},treble2:{clef:"treble",pitch:4,mid:0},treble3:{clef:"treble",pitch:6,mid:-2},treble4:{clef:"treble",pitch:8,mid:-4},treble5:{clef:"treble",pitch:10,mid:-6},perc:{clef:"perc",pitch:6,mid:0},none:{clef:"none",mid:0},bass:{clef:"bass",pitch:8,mid:-12},"bass+8":{clef:"bass+8",pitch:8,mid:-12},"bass-8":{clef:"bass-8",pitch:8,mid:-12},"bass^8":{clef:"bass+8",pitch:8,mid:-12},bass_8:{clef:"bass-8",pitch:8,mid:-12},"bass+16":{clef:"bass",pitch:8,mid:-12},"bass-16":{clef:"bass",pitch:8,mid:-12},"bass^16":{clef:"bass",pitch:8,mid:-12},bass_16:{clef:"bass",pitch:8,mid:-12},bass1:{clef:"bass",pitch:2,mid:-6},bass2:{clef:"bass",pitch:4,mid:-8},bass3:{clef:"bass",pitch:6,mid:-10},bass4:{clef:"bass",pitch:8,mid:-12},bass5:{clef:"bass",pitch:10,mid:-14},tenor:{clef:"alto",pitch:8,mid:-8},tenor1:{clef:"alto",pitch:2,mid:-2},tenor2:{clef:"alto",pitch:4,mid:-4},tenor3:{clef:"alto",pitch:6,mid:-6},tenor4:{clef:"alto",pitch:8,mid:-8},tenor5:{clef:"alto",pitch:10,mid:-10},alto:{clef:"alto",pitch:6,mid:-6},alto1:{clef:"alto",pitch:2,mid:-2},alto2:{clef:"alto",pitch:4,mid:-4},alto3:{clef:"alto",pitch:6,mid:-6},alto4:{clef:"alto",pitch:8,mid:-8},alto5:{clef:"alto",pitch:10,mid:-10},"alto+8":{clef:"alto+8",pitch:6,mid:-6},"alto-8":{clef:"alto-8",pitch:6,mid:-6},"alto^8":{clef:"alto+8",pitch:6,mid:-6},alto_8:{clef:"alto-8",pitch:6,mid:-6}},E=function(u,v){var S=y[u];return(S?S.mid:0)+v};p.fixClef=function(u){var v=y[u.type];v&&(u.clefPos=v.pitch,u.type=v.clef)},p.deepCopyKey=function(u){var v={accidentals:[],root:u.root,acc:u.acc,mode:u.mode};return u.accidentals.forEach(function(S){v.accidentals.push(A.clone(S))}),v};var g={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11};p.addPosToKey=function(u,v){var S=u.verticalPos;v.accidentals.forEach(function(x){var O=g[x.note];x.verticalPos=O-=S}),v.impliedNaturals&&v.impliedNaturals.forEach(function(x){var O=g[x.note];x.verticalPos=O-=S}),S<-10?(v.accidentals.forEach(function(x){x.verticalPos-=7,(x.verticalPos>=11||10===x.verticalPos&&"flat"===x.acc)&&(x.verticalPos-=7),"A"===x.note&&"sharp"===x.acc&&(x.verticalPos-=7),("G"===x.note||"F"===x.note)&&"flat"===x.acc&&(x.verticalPos-=7)}),v.impliedNaturals&&v.impliedNaturals.forEach(function(x){x.verticalPos-=7,(x.verticalPos>=11||10===x.verticalPos&&"flat"===x.acc)&&(x.verticalPos-=7),"A"===x.note&&"sharp"===x.acc&&(x.verticalPos-=7),("G"===x.note||"F"===x.note)&&"flat"===x.acc&&(x.verticalPos-=7)})):S<-4?(v.accidentals.forEach(function(x){x.verticalPos-=7,-8===S&&("f"===x.note||"g"===x.note)&&"sharp"===x.acc&&(x.verticalPos-=7)}),v.impliedNaturals&&v.impliedNaturals.forEach(function(x){x.verticalPos-=7,-8===S&&("f"===x.note||"g"===x.note)&&"sharp"===x.acc&&(x.verticalPos-=7)})):S>=7&&(v.accidentals.forEach(function(x){x.verticalPos+=7}),v.impliedNaturals&&v.impliedNaturals.forEach(function(x){x.verticalPos+=7}))},p.fixKey=function(u,v){var S=A.clone(v);return p.addPosToKey(u,S),S};var l=function(u){var v=0,S=u[v++];("^"===S||"_"===S)&&(S=u[v++]);var x=g[S];for(void 0===x&&(x=6);v0){x.foundKey=!0;var B="",j="";S[0].token.length>1?S[0].token=S[0].token.substring(1):S.shift();var Y=O.token;if(S.length>0){var te=b.getSharpFlat(S[0].token);if(te.len>0&&(S[0].token.length>1?S[0].token=S[0].token.substring(1):S.shift(),Y+=te.token,B=te.token),S.length>0){var W=b.getMode(S[0].token);W.len>0&&(S.shift(),Y+=W.token,j=W.token)}if(void 0===p.standardKey(Y,O.token,B,0))return c("Unsupported key signature: "+Y,u,0),x}var U,q=p.deepCopyKey(f.key);if(v&&(U=f.globalTransposeOrigKeySig),f.key=p.deepCopyKey(p.standardKey(Y,O.token,B,!v&&f.globalTranspose?-f.globalTranspose:0)),v&&(f.globalTransposeOrigKeySig=U),f.key.mode=j,q){for(var ne,z=0;z0;)switch(S[0].token){case"m":case"middle":if(S.shift(),0===S.length)return c("Expected = after middle",u,0),x;if("="!==(R=S.shift()).token){c("Expected = after middle",u,R.start);break}if(0===S.length)return c("Expected parameter after middle=",u,0),x;var F=b.getPitchFromTokens(S);F.warn&&c(F.warn,u,0),F.position&&(f.clef.verticalPos=F.position-6);break;case"transpose":if(S.shift(),0===S.length)return c("Expected = after transpose",u,0),x;if("="!==(R=S.shift()).token){c("Expected = after transpose",u,R.start);break}if(0===S.length)return c("Expected parameter after transpose=",u,0),x;if("number"!==S[0].type){c("Expected number after transpose",u,S[0].start);break}f.clef.transpose=S[0].intt,S.shift();break;case"stafflines":if(S.shift(),0===S.length)return c("Expected = after stafflines",u,0),x;if("="!==(R=S.shift()).token){c("Expected = after stafflines",u,R.start);break}if(0===S.length)return c("Expected parameter after stafflines=",u,0),x;if("number"!==S[0].type){c("Expected number after stafflines",u,S[0].start);break}f.clef.stafflines=S[0].intt,S.shift();break;case"staffscale":if(S.shift(),0===S.length)return c("Expected = after staffscale",u,0),x;if("="!==(R=S.shift()).token){c("Expected = after staffscale",u,R.start);break}if(0===S.length)return c("Expected parameter after staffscale=",u,0),x;if("number"!==S[0].type){c("Expected number after staffscale",u,S[0].start);break}f.clef.staffscale=S[0].floatt,S.shift();break;case"octave":if(S.shift(),0===S.length)return c("Expected = after octave",u,0),x;if("="!==(R=S.shift()).token){c("Expected = after octave",u,R.start);break}if(0===S.length)return c("Expected parameter after octave=",u,0),x;if("number"!==S[0].type){c("Expected number after octave",u,S[0].start);break}f.octave=S[0].intt,S.shift();break;case"style":if(S.shift(),0===S.length)return c("Expected = after style",u,0),x;if("="!==(R=S.shift()).token){c("Expected = after style",u,R.start);break}if(0===S.length)return c("Expected parameter after style=",u,0),x;switch(S[0].token){case"normal":case"harmonic":case"rhythm":case"x":case"triangle":f.style=S[0].token,S.shift();break;default:c("error parsing style element: "+S[0].token,u,S[0].start)}break;case"clef":if(S.shift(),0===S.length)return c("Expected = after clef",u,0),x;if("="!==(R=S.shift()).token){c("Expected = after clef",u,R.start);break}if(0===S.length)return c("Expected parameter after clef=",u,0),x;case"treble":case"bass":case"alto":case"tenor":case"perc":case"none":var K=S.shift();switch(K.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":case"c":K.token="alto";break;case"F":case"f":K.token="bass";break;case"G":case"g":K.token="treble";break;default:c("Expected clef name. Found "+K.token,u,K.start)}S.length>0&&"number"===S[0].type&&(K.token+=S[0].token,S.shift()),S.length>1&&("-"===S[0].token||"+"===S[0].token||"^"===S[0].token||"_"===S[0].token)&&"8"===S[1].token&&(K.token+=S[0].token+S[1].token,S.shift(),S.shift()),f.clef={type:K.token,verticalPos:E(K.token,0)},f.currentVoice&&void 0!==f.currentVoice.transpose&&(f.clef.transpose=f.currentVoice.transpose),x.foundClef=!0;break;default:c("Unknown parameter: "+S[0].token,u,S[0].start),S.shift()}return x},p.parseVoice=function(u,v,S){var x=b.getMeat(u,v,S),O=x.start,B=x.end,j=b.getToken(u,O,B);if(0!==j.length){var Y=!1;void 0===f.voices[j]&&(f.voices[j]={},Y=!0,f.score_is_present&&c("Can't have an unknown V: id when the %score directive is present",u,O)),O+=j.length,O+=b.eatWhiteSpace(u,O);for(var te={startStaff:Y},W=function(F){var K=b.getVoiceToken(u,O,B);void 0!==K.warn?c("Expected value for "+F+" in voice: "+K.warn,u,O):void 0!==K.err?c("Expected value for "+F+" in voice: "+K.err,u,O):0===K.token.length&&'"'!==u[O]?c("Expected value for "+F+" in voice",u,O):te[F]=K.token,O+=K.len},q=function(F,K,J){var se=b.getVoiceToken(u,O,B);void 0!==se.warn?c("Expected value for "+K+" in voice: "+se.warn,u,O):void 0!==se.err?c("Expected value for "+K+" in voice: "+se.err,u,O):0===se.token.length&&'"'!==u[O]?c("Expected value for "+K+" in voice",u,O):("number"===J&&(se.token=parseFloat(se.token)),f.voices[F][K]=se.token),O+=se.len},ee=function(F,K){var J=b.getVoiceToken(u,O,B);if(void 0!==J.warn)c("Expected value for "+F+" in voice: "+J.warn,u,O);else if(void 0!==J.err)c("Expected value for "+F+" in voice: "+J.err,u,O);else{if(0!==J.token.length||'"'===u[O])return"number"===K&&(J.token=parseFloat(J.token)),J.token;c("Expected value for "+F+" in voice",u,O)}O+=J.len},U=function(F,K){var se=b.getVoiceToken(u,O,B);if(void 0!==se.warn)c("Expected one of (_B, _E, _b, _e) for "+K+" in voice: "+se.warn,u,O);else if(0===se.token.length&&'"'!==u[O])c("Expected one of (_B, _E, _b, _e) for "+K+" in voice",u,O);else{var ie={_B:2,_E:9,_b:-10,_e:-3}[se.token];ie?f.voices[F][K]=ie:c("Expected one of (_B, _E, _b, _e) for "+K+" in voice",u,O)}O+=se.len};O{var p,b,c,f,m,_,A=M(5339),I=M(1875),D=M(7704),y=function(T,R,F,K,J,se){p=T,b=R,c=F,f=K,m=J,_=se,this.lineContinuation=!1},g=function(T,R,F){return void 0!==T.inTie[R]&&!(!T.inTie[R][T.currentVoice?100*T.currentVoice.staffNum+T.currentVoice.index:0]||void 0===F.pitches&&"spacer"===F.rest.type)},l={};y.prototype.parseMusic=function(T){_.resolveTempo(),c.is_in_header=!1;for(var R=0,F=c.iChar;p.isWhiteSpace(T[R])&&R0&&(R+=se[0],"V"===se[1]&&this.startNewLine());for(var ie=0;R0)R+=Fe[0],"V"===Fe[1]&&(K=!0);else{(!m.hasBeginMusic()||K&&!this.lineContinuation)&&(this.startNewLine(),K=!1);for(var me;;)if((me=p.eatWhiteSpace(T,R))>0&&(R+=me),R>0&&"\x12"===T[R-1]&&(me=_.letter_to_body_header(T,R))[0]>0&&("V"===me[1]&&this.startNewLine(),R=me[0],c.start_new_line=!1),(me=W(T,R))[0]>0&&(R+=me[0]),(me=w(T,R))[0]>0){l.chord||(l.chord=[]);var Ve=p.translateString(me[1]);Ve=Ve.replace(/;/g,"\n");for(var et=!1,qe=0;qe0&&(l.force_end_beam_last=!0),R+=Be}else if((me=-1==="ABCDEFGabcdefgxyzZ[]|^_{".indexOf(T[R])?te(T,R):[0])[0]>0)null===me[1]?R+10&&(0===me[1].indexOf("style=")?l.style=me[1].substr(6):(void 0===l.decoration&&(l.decoration=[]),"beambr1"===me[1]?l.beambr=1:"beambr2"===me[1]?l.beambr=2:l.decoration.push(me[1]))),R+=me[0];else{if(!((me=u(T,R))[0]>0))break;l.gracenotes=me[1],R+=me[0]}if((me=q(T,R))[0]>0){ie=0,void 0!==l.gracenotes&&(l.rest={type:"spacer"},l.duration=.125,c.addFormattingOptions(l,f.formatting,"note"),m.appendElement("note",F+R,F+R+me[0],l),c.measureNotEmpty=!0,l={});var $e={type:me[1]};0===$e.type.length?b("Unknown bar type",T,R):(c.inEnding&&"bar_thin"!==$e.type&&($e.endEnding=!0,c.inEnding=!1),me[2]&&($e.startEnding=me[2],c.inEnding&&($e.endEnding=!0),c.inEnding=!0,"bar_right_repeat"===me[1]?c.restoreStartEndingHoldOvers():c.duplicateStartEndingHoldOvers()),void 0!==l.decoration&&($e.decoration=l.decoration),void 0!==l.chord&&($e.chord=l.chord),$e.startEnding&&void 0===c.barFirstEndingNum?c.barFirstEndingNum=c.currBarNumber:$e.startEnding&&$e.endEnding&&c.barFirstEndingNum?c.currBarNumber=c.barFirstEndingNum:$e.endEnding&&(c.barFirstEndingNum=void 0),"bar_invisible"!==$e.type&&c.measureNotEmpty&&(void 0===c.currentVoice||0===c.currentVoice.staffNum&&0===c.currentVoice.index)&&(c.currBarNumber++,c.barNumbers&&c.currBarNumber%c.barNumbers==0&&($e.barNumber=c.currBarNumber)),c.addFormattingOptions(l,f.formatting,"bar"),m.appendElement("bar",F+ye,F+R+me[0],$e),c.measureNotEmpty=!1,l={}),R+=me[0]}else if("&"===T[R])(me=v(T,R))[0]>0&&(m.appendElement("overlay",F,F+1,{}),R+=1,ie++);else{if((me=U(T,R)).consumed>0&&(void 0!==me.startSlur&&(l.startSlur=me.startSlur),me.dottedSlur&&(l.dottedSlur=!0),void 0!==me.triplet&&(J>0?b("Can't nest triplets",T,R):(l.startTriplet=me.triplet,l.tripletMultiplier=me.tripletQ/me.triplet,l.tripletR=me.num_notes,J=void 0===me.num_notes?me.triplet:me.num_notes)),R+=me.consumed),"["===T[R]){R++;for(var ut=null,Bt=!1,Jt=!1;!Jt;){var _n=te(T,R);_n[0]>0&&(R+=_n[0]);var kt=$(T,R,{},!1);if(null!==kt&&void 0!==kt.pitch)_n[0]>0&&0!==_n[1].indexOf("style=")&&(void 0===l.decoration&&(l.decoration=[]),l.decoration.push(_n[1])),kt.end_beam&&(l.end_beam=!0,delete kt.end_beam),void 0===l.pitches?(l.duration=kt.duration,l.pitches=[kt]):l.pitches.push(kt),delete kt.duration,_n[0]>0&&0===_n[1].indexOf("style=")&&(l.pitches[l.pitches.length-1].style=_n[1].substr(6)),c.inTieChord[l.pitches.length]&&(kt.endTie=!0,c.inTieChord[l.pitches.length]=void 0),kt.startTie&&(c.inTieChord[l.pitches.length]=!0),R=kt.endChar,delete kt.endChar;else if(" "===T[R])b("Spaces are not allowed in chords",T,R),R++;else{if(R0&&(!l.rest||"spacer"!==l.rest.type)&&0==--J&&(l.endTriplet=!0);for(var Rt=!1;R":case"<":var yn=Q(T,R);R+=yn[0]-1,c.next_note_duration=yn[2],ut?ut*=yn[1]:ut=yn[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var fe=p.getFraction(T,R);ut=fe.value;var ce=T[R=fe.index];" "===ce&&(Bt=!0),"-"===ce||")"===ce||" "===ce||"<"===ce||">"===ce?R--:Rt=!0;break;default:Rt=!0}Rt||R++}}else b("Expected ']' to end the chords",T,R);void 0!==l.pitches&&(null!==ut&&(l.duration=l.duration*ut,Bt&&ne(l)),c.addFormattingOptions(l,f.formatting,"note"),m.appendElement("note",F+ye,F+R,l),c.measureNotEmpty=!0,l={}),Jt=!0}}}else{var be={},Ce=$(T,R,be,!0);void 0!==be.endTie&&h(c,ie,!0),null!==Ce&&(void 0!==Ce.pitch?(l.pitches=[{}],void 0!==Ce.accidental&&(l.pitches[0].accidental=Ce.accidental),l.pitches[0].pitch=Ce.pitch,l.pitches[0].name=Ce.name,(Ce.midipitch||0===Ce.midipitch)&&(l.pitches[0].midipitch=Ce.midipitch),void 0!==Ce.endSlur&&(l.pitches[0].endSlur=Ce.endSlur),void 0!==Ce.endTie&&(l.pitches[0].endTie=Ce.endTie),void 0!==Ce.startSlur&&(l.pitches[0].startSlur=Ce.startSlur),void 0!==l.startSlur&&(l.pitches[0].startSlur=l.startSlur),void 0!==l.dottedSlur&&(l.pitches[0].dottedSlur=!0),void 0!==Ce.startTie&&(l.pitches[0].startTie=Ce.startTie),void 0!==l.startTie&&(l.pitches[0].startTie=l.startTie)):(l.rest=Ce.rest,void 0!==Ce.endSlur&&(l.endSlur=Ce.endSlur),void 0!==Ce.endTie&&(l.rest.endTie=Ce.endTie),void 0!==Ce.startSlur&&(l.startSlur=Ce.startSlur),void 0!==Ce.startTie&&(l.rest.startTie=Ce.startTie),void 0!==l.startTie&&(l.rest.startTie=l.startTie)),void 0!==Ce.chord&&(l.chord=Ce.chord),void 0!==Ce.duration&&(l.duration=Ce.duration),void 0!==Ce.decoration&&(l.decoration=Ce.decoration),void 0!==Ce.graceNotes&&(l.graceNotes=Ce.graceNotes),delete l.startSlur,delete l.dottedSlur,g(c,ie,l)&&(void 0!==l.pitches?l.pitches[0].endTie=!0:"spacer"!==l.rest.type&&(l.rest.endTie=!0),h(c,ie,!1)),(Ce.startTie||l.startTie)&&h(c,ie,!0),R=Ce.endChar,J>0&&!(Ce.rest&&"spacer"===Ce.rest.type)&&0==--J&&(l.endTriplet=!0),Ce.end_beam&&ne(l),l.rest&&"rest"===l.rest.type&&1===l.duration&&S(c)<=1&&(l.rest.type="whole",l.duration=S(c)),l.duration<1&&-1===[.5,.75,.875,.9375,.96875,.984375,.25,.375,.4375,.46875,.484375,.4921875,.125,.1875,.21875,.234375,.2421875,.24609375,.0625,.09375,.109375,.1171875,.12109375,.123046875,.03125,.046875,.0546875,.05859375,.060546875,.0615234375,.015625,.0234375,.02734375,.029296875,.0302734375,.03076171875].indexOf(l.duration)&&0!==l.duration&&(!l.rest||"spacer"!==l.rest.type)&&b("Duration not representable: "+T.substring(ye,R),T,R),c.addFormattingOptions(l,f.formatting,"note"),m.appendElement("note",F+ye,F+R,l),c.measureNotEmpty=!0,l={})}R===ye&&(" "!==T[R]&&"`"!==T[R]&&b("Unknown character ignored",T,R),R++)}}}this.lineContinuation=T.indexOf("\x12")>=0||se[0]>0,this.lineContinuation||(l={})}};var h=function(T,R,F){var K=T.currentVoice?100*T.currentVoice.staffNum+T.currentVoice.index:0;void 0===T.inTie[R]&&(T.inTie[R]=[]),T.inTie[R][K]=F},w=function(T,R){if('"'===T[R]){var F=p.getBrackettedSubstring(T,R,5);if(F[2]||b("Missing the closing quote while parsing the chord symbol",T,R),F[0]>0&&F[1].length>0&&"^"===F[1][0])F[1]=F[1].substring(1),F[2]="above";else if(F[0]>0&&F[1].length>0&&"_"===F[1][0])F[1]=F[1].substring(1),F[2]="below";else if(F[0]>0&&F[1].length>0&&"<"===F[1][0])F[1]=F[1].substring(1),F[2]="left";else if(F[0]>0&&F[1].length>0&&">"===F[1][0])F[1]=F[1].substring(1),F[2]="right";else if(F[0]>0&&F[1].length>0&&"@"===F[1][0]){F[1]=F[1].substring(1);var K=p.getFloat(F[1]);0===K.digits&&b("Missing first position in absolutely positioned annotation.",T,R),F[1]=F[1].substring(K.digits),","!==F[1][0]&&b("Missing comma absolutely positioned annotation.",T,R),F[1]=F[1].substring(1);var J=p.getFloat(F[1]);0===J.digits&&b("Missing second position in absolutely positioned annotation.",T,R),F[1]=F[1].substring(J.digits);var se=p.skipWhiteSpace(F[1]);F[1]=F[1].substring(se),F[2]=null,F[3]={x:K.value,y:J.value}}else!0!==c.freegchord&&(F[1]=F[1].replace(/([ABCDEFG0-9])b/g,"$1\u266d"),F[1]=F[1].replace(/([ABCDEFG0-9])#/g,"$1\u266f"),F[1]=F[1].replace(/^([ABCDEFG])([\u266f\u266d]?)o([^A-Za-z])/g,"$1$2\xb0$3"),F[1]=F[1].replace(/^([ABCDEFG])([\u266f\u266d]?)o$/g,"$1$2\xb0"),F[1]=F[1].replace(/^([ABCDEFG])([\u266f\u266d]?)0([^A-Za-z])/g,"$1$2\xf8$3"),F[1]=F[1].replace(/^([ABCDEFG])([\u266f\u266d]?)\^([^A-Za-z])/g,"$1$2\u2206$3")),F[2]="default",F[1]=D.chordName(c,F[1]);return F}return[0,""]},u=function(T,R){if("{"===T[R]){var F=p.getBrackettedSubstring(T,R,1,"}");F[2]||b("Missing the closing '}' while parsing grace note",T,R),")"===T[R+F[0]]&&(F[0]++,F[1]+=")");for(var K=[],J=0,se=!1;J0&&(K[K.length-1].endBeam=!0):b("Unknown character '"+F[1][J]+"' while parsing grace note",T,R),J++)}if(K.length)return[F[0],K]}return[0]};function v(T,R){if("&"===T[R]){for(var F=R;T[R]&&":"!==T[R]&&"|"!==T[R];)R++;return[R-F,T.substring(F+1,R)]}return[0]}function S(T){var R=T.origMeter;return R&&"specified"===R.type&&R.value&&0!==R.value.length?parseInt(R.value[0].num,10)/parseInt(R.value[0].den,10):1}var x=["trill","lowermordent","uppermordent","mordent","pralltriller","accent","fermata","invertedfermata","tenuto","0","1","2","3","4","5","+","wedge","open","thumb","snap","turn","roll","breath","shortphrase","mediumphrase","longphrase","segno","coda","D.S.","D.C.","fine","beambr1","beambr2","slide","marcato","upbow","downbow","/","//","///","////","trem1","trem2","trem3","trem4","turnx","invertedturn","invertedturnx","trill(","trill)","arpeggio","xstem","mark","umarcato","style=normal","style=harmonic","style=rhythm","style=x","style=triangle","D.C.alcoda","D.C.alfine","D.S.alcoda","D.S.alfine","editorial","courtesy"],O=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz"],B=["crescendo(","crescendo)","diminuendo(","diminuendo)","glissando(","glissando)"],j=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]],Y=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]],te=function(T,R){var F=c.macros[T[R]];if(void 0!==F)return("!"===F[0]||"+"===F[0])&&(F=F.substring(1)),("!"===F[F.length-1]||"+"===F[F.length-1])&&(F=F.substring(0,F.length-1)),x.includes(F)?[1,F]:O.includes(F)?("hidden"===c.volumePosition&&(F=""),[1,F]):B.includes(F)?("hidden"===c.dynamicPosition&&(F=""),[1,F]):(c.ignoredDecorations.includes(F)||b("Unknown macro: "+F,T,R),[1,""]);switch(T[R]){case".":if("("===T[R+1]||"-"===T[R+1])break;return[1,"staccato"];case"u":return[1,"upbow"];case"v":return[1,"downbow"];case"~":return[1,"irishroll"];case"!":case"+":var K=p.getBrackettedSubstring(T,R,5);if(K[1].length>1&&("^"===K[1][0]||"_"===K[1][0])&&(K[1]=K[1].substring(1)),x.includes(K[1]))return K;if(O.includes(K[1]))return"hidden"===c.volumePosition&&(K[1]=""),K;if(B.includes(K[1]))return"hidden"===c.dynamicPosition&&(K[1]=""),K;var J=j.findIndex(function(se){return K[1]===se[0]});return J>=0?(K[1]=j[J][1],K):(J=Y.findIndex(function(se){return K[1]===se[0]}))>=0?(K[1]=Y[J][1],"hidden"===c.dynamicPosition&&(K[1]=""),K):"!"!==T[R]||1!==K[0]&&"!"===T[R+K[0]-1]?(b("Unknown decoration: "+K[1],T,R),K[1]="",K):[1,null];case"H":return[1,"fermata"];case"J":return[1,"slide"];case"L":return[1,"accent"];case"M":return[1,"mordent"];case"O":return[1,"coda"];case"P":return[1,"pralltriller"];case"R":return[1,"roll"];case"S":return[1,"segno"];case"T":return[1,"trill"]}return[0,0]},W=function(T,R){for(var F=R;p.isWhiteSpace(T[R]);)R++;return[R-F]},q=function(T,R){var F=p.getBarLine(T,R);if(0===F.len)return[0,""];if(F.warn)return b(F.warn,T,R),[F.len,""];for(var K=0;K="2"&&T[R+1]<="9"?(void 0!==F.triplet?b("Can't nest triplets",T,R):(F.triplet=T[R+1]-"0",F.tripletQ=ee[F.triplet],F.num_notes=F.triplet,R+2="1"&&T[R+4]<="9"?(F.num_notes=T[R+4]-"0",R+=3):b("expected number after the two colons after the triplet to mark the duration",T,R):R+3="1"&&T[R+3]<="9"?(F.tripletQ=T[R+3]-"0",R+4="1"&&T[R+5]<="9"&&(F.num_notes=T[R+5]-"0",R+=4):R+=2):b("expected number after the triplet to mark the duration",T,R))),R++):void 0===F.startSlur?F.startSlur=1:F.startSlur++),R++;return F.consumed=R-K,F};y.prototype.startNewLine=function(){var T={startChar:-1,endChar:-1};if(c.partForNextLine.title&&(T.part=c.partForNextLine),T.clef=A.clone(c.currentVoice&&void 0!==c.staves[c.currentVoice.staffNum].clef?c.staves[c.currentVoice.staffNum].clef:c.clef),T.key=I.standardKey(c.key.root+c.key.acc+c.key.mode,c.key.root,c.key.acc,c.currentVoice?c.currentVoice.scoreTranspose:0),T.key.mode=c.key.mode,c.key.impliedNaturals&&(T.key.impliedNaturals=c.key.impliedNaturals),c.key.explicitAccidentals)for(var F=0;F=0?(F.duration=f.getBarLength(),F.rest.text=1,ie="Zduration"):(K&&0!==c.next_note_duration?(F.duration=c.default_length*c.next_note_duration,c.next_note_duration=0,ye=!0):F.duration=c.default_length,ie="duration");break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"0":case"/":if("octave"===ie||"duration"===ie){var me=p.getFraction(T,R);for(F.duration=F.duration*me.value,F.endChar=me.index;me.index"!==T[R])return F;R--,ie="broken_rhythm";break;case">":case"<":if(!J(ie))return null;if(!K)return F.endChar=R,F;var et=Q(T,R);R+=et[0]-1,c.next_note_duration=et[2],F.duration=et[1]*F.duration,ie="end_slur";break;default:return J(ie)?(F.endChar=R,F):null}if(++R===T.length)return J(ie)?(F.endChar=R,F):null}return null},Q=function(T,R){switch(T[R]){case">":return R"===T[R+1]&&">"===T[R+2]?[3,1.875,.125]:R"===T[R+1]?[2,1.75,.25]:[1,1.5,.5];case"<":return R{var A=M(5339),I=function(D,p){this.lineIndex=0,this.lines=D,this.multilineVars=p,this.skipWhiteSpace=function(g){for(var l=0;l=g.length};this.eatWhiteSpace=function(g,l){for(var h=l;h="a"&&u[v]<="z"||u[v]>="A"&&u[v]<="Z");)v++;return v},h=this.skipWhiteSpace(g);if(b(g,h))return{len:0};var w=g.substring(h,h+3).toLowerCase();switch((w.length>1&&" "===w[1]||"^"===w[1]||"_"===w[1]||"="===w[1])&&(w=w[0]),w){case"mix":return{len:l(g,h),token:"Mix"};case"dor":return{len:l(g,h),token:"Dor"};case"phr":return{len:l(g,h),token:"Phr"};case"lyd":return{len:l(g,h),token:"Lyd"};case"loc":return{len:l(g,h),token:"Loc"};case"aeo":case"min":case"m":return{len:l(g,h),token:"m"};case"maj":case"ion":return{len:l(g,h),token:""}}return{len:0}},this.getClef=function(g,l){var h=g,w=this.skipWhiteSpace(g);if(b(g,w))return{len:0};var u=!1,v=g.substring(w);if(A.startsWith(v,"clef=")&&(u=!0,v=v.substring(5),w+=5),0===v.length&&u)return{len:w+5,warn:"No clef specified: "+h};var S=this.skipWhiteSpace(v);if(b(v,S))return{len:0};S>0&&(w+=S,v=v.substring(S));var x=null;if(A.startsWith(v,"treble"))x="treble";else if(A.startsWith(v,"bass3"))x="bass3";else if(A.startsWith(v,"bass"))x="bass";else if(A.startsWith(v,"tenor"))x="tenor";else if(A.startsWith(v,"alto2"))x="alto2";else if(A.startsWith(v,"alto1"))x="alto1";else if(A.startsWith(v,"alto"))x="alto";else if(!l&&u&&A.startsWith(v,"none"))x="none";else if(A.startsWith(v,"perc"))x="perc";else if(!l&&u&&A.startsWith(v,"C"))x="tenor";else if(!l&&u&&A.startsWith(v,"F"))x="bass";else{if(l||!u||!A.startsWith(v,"G"))return{len:w+5,warn:"Unknown clef specified: "+h};x="treble"}return v=v.substring(x.length),(S=this.isMatch(v,"+8"))>0?x+="+8":(S=this.isMatch(v,"-8"))>0&&(x+="-8"),{len:w+x.length,token:x,explicit:u}},this.getBarLine=function(g,l){switch(g[l]){case"]":switch(g[++l]){case"|":return{len:2,token:"bar_thick_thin"};case"[":return g[++l]>="1"&&g[l]<="9"||'"'===g[l]?{len:2,token:"bar_invisible"}:{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}break;case":":switch(g[++l]){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(g[++l]){case"]":return"|"===g[++l]&&":"===g[++l]?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};case"|":return":"===g[++l]?{len:4,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:2,token:"bar_right_repeat"}}break;default:return{len:1,warn:"Unknown bar symbol"}}break;case"[":if("|"!==g[++l])return g[l]>="1"&&g[l]<="9"||'"'===g[l]?{len:1,token:"bar_invisible"}:{len:0};switch(g[++l]){case":":return{len:3,token:"bar_left_repeat"};case"]":return{len:3,token:"bar_invisible"};default:return{len:2,token:"bar_thick_thin"}}break;case"|":switch(g[++l]){case"]":return{len:2,token:"bar_thin_thick"};case"|":return":"===g[++l]?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var h=0;":"===g[l+h];)h++;return{len:1+h,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(g,l){for(var h=0;h0;){var h;if("^"===g[0].token){if(h="sharp",g.shift(),0===g.length)return{accs:l,warn:"Expected note name after "+h};switch(g[0].token){case"^":h="dblsharp",g.shift();break;case"/":h="quartersharp",g.shift()}}else if("="===g[0].token)h="natural",g.shift();else{if("_"!==g[0].token)return{accs:l};if(h="flat",g.shift(),0===g.length)return{accs:l,warn:"Expected note name after "+h};switch(g[0].token){case"_":h="dblflat",g.shift();break;case"/":h="quarterflat",g.shift()}}if(0===g.length)return{accs:l,warn:"Expected note name after "+h};switch(g[0].token[0]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":void 0===l&&(l=[]),l.push({acc:h,note:g[0].token[0]}),1===g[0].token.length?g.shift():g[0].token=g[0].token.substring(1);break;default:return{accs:l,warn:"Expected note name after "+h+" Found: "+g[0].token}}}return{accs:l}},this.getKeyAccidental=function(g){var l={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},h=this.skipWhiteSpace(g);if(b(g,h))return{len:0};var w=null;switch(g[h]){case"^":case"_":case"=":w=g[h];break;default:return{len:0}}if(h++,b(g,h))return{len:1,warn:"Expected note name after accidental"};switch(g[h]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:h+1,token:{acc:l[w],note:g[h]}};case"^":case"_":case"/":if(w+=g[h],h++,b(g,h))return{len:2,warn:"Expected note name after accidental"};switch(g[h]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:h+1,token:{acc:l[w],note:g[h]}};default:return{len:2,warn:"Expected note name after accidental"}}break;default:return{len:1,warn:"Expected note name after accidental"}}},this.isWhiteSpace=function(g){return" "===g||"\t"===g||"\x12"===g},this.getMeat=function(g,l,h){var w=g.indexOf("%",l);for(w>=0&&w="A"&&g<="Z"||g>="a"&&g<="z"},f=function(g){return g>="0"&&g<="9"};this.tokenize=function(g,l,h,w){var u=this.getMeat(g,l,h);l=u.start,h=u.end;for(var S,v=[];l=h?{len:1,err:"Missing close quote"}:{len:u-l+1,token:this.translateString(g.substring(w+1,u))}}for(var v=w;v=0?g.substring(0,l):g)},this.getInt=function(g){var l=parseInt(g);if(isNaN(l))return{digits:0};var h=""+l;return{value:l,digits:g.indexOf(h)+h.length}},this.getFloat=function(g){var l=parseFloat(g);if(isNaN(l))return{digits:0};var h=""+l;return{value:l,digits:g.indexOf(h)+h.length}},this.getMeasurement=function(g){if(0===g.length)return{used:0};var l=1,h="";if("-"===g[0].token)g.shift(),h="-",l++;else if("number"!==g[0].type)return{used:0};if(h+=g.shift().token,0===g.length)return{used:1,value:parseInt(h)};var w=g.shift();if("."===w.token){if(l++,0===g.length)return{used:l,value:parseInt(h)};if("number"===g[0].type&&(h=h+"."+(w=g.shift()).token,l++,0===g.length))return{used:l,value:parseFloat(h)};w=g.shift()}switch(w.token){case"pt":case"px":return{used:l+1,value:parseFloat(h)};case"cm":return{used:l+1,value:parseFloat(h)/2.54*72};case"in":return{used:l+1,value:72*parseFloat(h)};default:return g.unshift(w),{used:l,value:parseFloat(h)}}};var E=function(g){return(g=g.replace(/\\n/g,"\n")).replace(/\\"/g,'"')};this.getBrackettedSubstring=function(g,l,h,w){for(var u=w||g[l],v=l+1,S=!1;vg.length-1&&(v=g.length-1),[v-l+1,E(g.substring(l+1,v)),!1])}};I.prototype.peekLine=function(){return this.lines[this.lineIndex]},I.prototype.nextLine=function(){if(this.lineIndex>0&&(this.multilineVars.iChar+=this.lines[this.lineIndex-1].length+1),this.lineIndex{var A=M(6682),I=M(7658),D=M(3463),p={},b={C:0,"C#":1,Db:1,D:2,"D#":3,Eb:3,E:4,F:5,"F#":6,Gb:6,G:7,"G#":8,Ab:8,A:9,"A#":10,Bb:10,B:11},c=["C","Db","D","Eb","E","F","F#","G","Ab","A","Bb","B"],f=["C","C#","D","D#","E","F","F#","G","G#","A","Bb","B"];p.keySignature=function(l,h,w,u,v){if("perc"===l.clef.type||"none"===l.clef.type)return{accidentals:D(h),root:w,acc:u};v||(v=0),l.localTransposeVerticalMovement=0,l.localTransposePreferFlats=!1;var S=D(h);if(!S)return l.key;if(l.localTranspose=(l.globalTranspose?l.globalTranspose:0)+v,!l.localTranspose)return{accidentals:S,root:w,acc:u};if(l.globalTransposeOrigKeySig=S,l.localTranspose%12==0)return l.localTransposeVerticalMovement=l.localTranspose/12*7,{accidentals:S,root:w,acc:u};var x=h[0];"b"===h[1]||"#"===h[1]?(x+=h[1],h=h.substr(2)):h=h.substr(1);var O=b[x],B=void 0!==O;B||(O=0,x="C",h="");for(var j=O+l.localTranspose;j<0;)j+=12;j>11&&(j%=12);var Y="m"===h[0]?f[j]:c[j],te=Y+h,W=D(te);W.length>0&&"flat"===W[0].acc&&(l.localTransposePreferFlats=!0);var q=te.charCodeAt(0)-x.charCodeAt(0);return l.localTranspose>0?(q<0||0===q&&("#"===x[1]||"b"===te[1]))&&(q+=7):l.localTranspose<0&&(q>0||0===q&&("b"===x[1]||"#"===te[1]))&&(q-=7),l.localTransposeVerticalMovement=l.localTranspose>0?q+7*Math.floor(l.localTranspose/12):q+7*Math.ceil(l.localTranspose/12),B?{accidentals:W,root:Y[0],acc:Y.length>1?Y[1]:""}:{accidentals:[],root:w,acc:u}},p.chordName=function(l,h){return I(h,l.localTranspose,l.localTransposePreferFlats,l.freegchord)};var m=["c","d","e","f","g","a","b"],y={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},E={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"},g={"-2":"__","-1":"_",0:"=",1:"^",2:"^^"};p.note=function(l,h){if(l.localTranspose&&"perc"!==l.clef.type){var w=h.pitch;if(l.localTransposeVerticalMovement&&(h.pitch=h.pitch+l.localTransposeVerticalMovement,h.name)){var u=h.accidental?h.name.substring(1):h.name,v=h.accidental?h.name[0]:"",S=A.pitchIndex(u);h.name=v+A.noteName(S+l.localTransposeVerticalMovement)}if(h.accidental){var x=function _(l,h,w,u,v){for(var S=m[(l+49)%7],x=0,O=0;O2&&(h++,q-="b"===Y||"e"===Y?1:2),[h,q]}(w,h.pitch,h.accidental,l.globalTransposeOrigKeySig,l.targetKey);h.pitch=x[0],h.accidental=E[x[1]],h.name&&(h.name=g[x[1]]+h.name.replace(/[_^=]/g,""))}}},Z.exports=p},6682:Z=>{var H={};const M=["C,,,","D,,,","E,,,","F,,,","G,,,","A,,,","B,,,","C,,","D,,","E,,","F,,","G,,","A,,","B,,","C,","D,","E,","F,","G,","A,","B,","C","D","E","F","G","A","B","c","d","e","f","g","a","b","c'","d'","e'","f'","g'","a'","b'","c''","d''","e''","f''","g''","a''","b''","c'''","d'''","e'''","f'''","g'''","a'''","b'''"];H.pitchIndex=function(A){return M.indexOf(A)},H.noteName=function(A){return M[A]},Z.exports=H},7658:Z=>{var H=["C","C\u266f","D","D\u266f","E","F","F\u266f","G","G\u266f","A","A\u266f","B"],M=["C","D\u266d","D","E\u266d","E","F","G\u266d","G","A\u266d","A","B\u266d","B"],A=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],I=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"];Z.exports=function D(p,b,c,f){if(!b||b%12==0)return p;for(;b<0;)b+=12;b>11&&(b%=12);var m=p.match(/^([A-G][b#\u266d\u266f]?)([^\/]+)?\/?([A-G][b#\u266d\u266f]?)?(.+)?/);if(!m)return p;var l,_=m[1],y=m[2],E=m[3],g=m[4];return(l=H.indexOf(_))<0&&(l=M.indexOf(_)),l<0&&(l=A.indexOf(_)),l<0&&(l=I.indexOf(_)),l<0||(l+=b,l%=12,p=c?f?I[l]:M[l]:f?A[l]:H[l],y&&(p+=y),E&&((l=H.indexOf(E))<0&&(l=M.indexOf(E)),l<0&&(l=A.indexOf(E)),l<0&&(l=I.indexOf(E)),p+="/",l>=0?(l+=b,l%=12,p+=c?f?I[l]:M[l]:f?A[l]:H[l]):p+=E),g&&(p+=g)),p}},5399:(Z,H,M)=>{var A=M(1875),I=M(5339);Z.exports=function(p){var b=this;function c(m,_){for(var y=_-1;y>0&&"bar"!==m[y].el_type;y--);return y}this.setVisualTranspose=function(m){m&&(p.visualTranspose=m)},this.resolveOverlays=function(){for(var m=!1,_=[],y=0;y0&&h[w].voice.push({el_type:"note",duration:v,rest:{type:"invisible"},startChar:j.startChar,endChar:j.endChar}),h[w].voice.push(j)),v=0):"note"===j.el_type?S?h[w].voice.push(j):(v+=j.duration,_[y]+=j.duration):("scale"===j.el_type||"stem"===j.el_type||"overlay"===j.el_type||"style"===j.el_type||"transpose"===j.el_type||"color"===j.el_type)&&h[w].voice.push(j);else{m=!0,S=!0,O=B,h[w].hasOverlay=!0,0===x&&(x=_[y]);for(var Y=0;Y=p.lines[Y].staff[0].voices.length&&p.lines[Y].staff[0].voices.push([{el_type:"note",duration:_[Y],rest:{type:"invisible"},startChar:j.startChar,endChar:j.endChar}])}}h[w].hasOverlay&&0===h[w].snip.length&&h[w].snip.push({start:O,len:u.length-O})}for(w=0;w=0;W--){var q=te.snip[W];l.voices[w].splice(q.start,q.len),l.voices[w].splice(q.start+1,0,{el_type:"stem",direction:"auto"});var ee=c(l.voices[w],q.start);l.voices[w].splice(ee,0,{el_type:"stem",direction:"up"})}for(W=0;W=q&&zq;){if(W[q].staff)return W[q];q++}return null}for(p.lineNum=0;p.lineNum0&&j[j.length-1].barNumber){var te=O(p.lines,p.lineNum);te&&(te.staff[0].barNumber=j[j.length-1].barNumber),delete j[j.length-1].barNumber}}}return delete p.staffNum,delete p.voiceNum,delete p.lineNum,delete p.potentialStartBeam,delete p.potentialEndBeam,delete p.vskipPending,y},p.reset(),this.getLastNote=function(){if(p.lines[p.lineNum]&&p.lines[p.lineNum].staff&&p.lines[p.lineNum].staff[p.staffNum]&&p.lines[p.lineNum].staff[p.staffNum].voices[p.voiceNum])for(var m=p.lines[p.lineNum].staff[p.staffNum].voices[p.voiceNum].length-1;m>=0;m--){var _=p.lines[p.lineNum].staff[p.staffNum].voices[p.voiceNum][m];if("note"===_.el_type)return _}return null},this.addTieToLastNote=function(m){var _=this.getLastNote();return!!(_&&_.pitches&&_.pitches.length>0)&&(_.pitches[0].startTie={},m&&(_.pitches[0].startTie.style="dotted"),!0)},this.getDuration=function(m){return m.duration?m.duration:0},this.closeLine=function(){p.potentialStartBeam&&p.potentialEndBeam&&(p.potentialStartBeam.startBeam=!0,p.potentialEndBeam.endBeam=!0),delete p.potentialStartBeam,delete p.potentialEndBeam},this.appendElement=function(m,_,y,E){var g=p;E.el_type=m,null!==_&&(E.startChar=_),null!==y&&(E.endChar=y);var w=function(){void 0!==g.potentialStartBeam&&void 0!==g.potentialEndBeam&&(g.potentialStartBeam.startBeam=!0,g.potentialEndBeam.endBeam=!0),delete g.potentialStartBeam,delete g.potentialEndBeam};"note"===m?b.getDuration(E)>=.25||E.force_end_beam_last&&void 0!==g.potentialStartBeam?w():E.end_beam&&void 0!==g.potentialStartBeam?void 0===E.rest?(g.potentialStartBeam.startBeam=!0,E.endBeam=!0,delete g.potentialStartBeam,delete g.potentialEndBeam):w():void 0===E.rest&&(void 0===g.potentialStartBeam?E.end_beam||(g.potentialStartBeam=E,delete g.potentialEndBeam):g.potentialEndBeam=E):w(),delete E.end_beam,delete E.force_end_beam_last,function(v){var S=g.lines[g.lineNum].staff[g.staffNum];if(S){if(void 0!==v.pitches){var x=S.workingClef.verticalPos;v.pitches.forEach(function(B){B.verticalPos=B.pitch-x})}if(void 0!==v.gracenotes){var O=S.workingClef.verticalPos;v.gracenotes.forEach(function(B){B.verticalPos=B.pitch-O})}S.voices[g.voiceNum].push(v)}}(E)},this.appendStartingElement=function(m,_,y,E){var g;this.closeLine(),"key"===m&&(g=E.impliedNaturals,delete E.impliedNaturals,delete E.explicitAccidentals);var l=I.clone(E);if(p.lines[p.lineNum]&&p.lines[p.lineNum].staff){p.lines[p.lineNum].staff.length<=p.staffNum&&(p.lines[p.lineNum].staff[p.staffNum]={},p.lines[p.lineNum].staff[p.staffNum].clef=I.clone(p.lines[p.lineNum].staff[0].clef),p.lines[p.lineNum].staff[p.staffNum].key=I.clone(p.lines[p.lineNum].staff[0].key),p.lines[p.lineNum].staff[0].meter&&(p.lines[p.lineNum].staff[p.staffNum].meter=I.clone(p.lines[p.lineNum].staff[0].meter)),p.lines[p.lineNum].staff[p.staffNum].workingClef=I.clone(p.lines[p.lineNum].staff[0].workingClef),p.lines[p.lineNum].staff[p.staffNum].voices=[[]]),"clef"===m&&(p.lines[p.lineNum].staff[p.staffNum].workingClef=l);for(var h=p.lines[p.lineNum].staff[p.staffNum].voices[p.voiceNum],w=0;w0){if(void 0!==h.voices[0]){for(var w=!1,u=0;u0){var y=_[_.length-1];if("bar"!==y.el_type)return m-1;void 0!==y.barNumber&&(y.barNumber=m)}return m},this.hasBeginMusic=function(){for(var m=0;m=0;_--)if(void 0!==p.lines[_].staff)return!1;return!0},this.getCurrentVoice=function(){var m=p.lines[p.lineNum];if(!m)return null;var _=m.staff[p.staffNum];return _&&void 0!==_.voices[p.voiceNum]?_.voices[p.voiceNum]:null},this.setCurrentVoice=function(m,_){p.staffNum=m,p.voiceNum=_;for(var y=0;y{function I(_,y){for(var E=[],g=[],l=0,h=0;h<_.length;h++){var w=_[h],u=l+w;u0?(E.push(h-1),g.push(Math.round(l-w)),l=w):h<_.length-1&&(E.push(h),g.push(Math.round(l)),l=0)}return g.push(Math.round(l)),{lineBreaks:E,totals:g}}function D(_){for(var y=[],E=0;E<_.length;E++)y.push(_[E]);return y}function p(_,y,E,g,l,h,w,u,v,S,x){for(var O=S;O<_.length;O++){var B=_[O];E+=B,g+=B;var j=Math.abs(E-y[u]);if(Math.abs(j-h)h&&O<_.length-1&&(te=D(l),W=D(v),x.push({accumulator:E,lineAccumulator:g,lineWidths:te,lastVariance:j,highestVariance:Math.max(w,j),currLine:u,lineBreaks:W,startIndex:O+1}));j>h?(v.push(O-1),u++,w=Math.max(w,h),h=Math.abs(E-y[u]),l.push(g-B),g=B):h=j}l.push(g)}function b(_,y,E,g){for(var l=Math.ceil(_.total/y),h=Math.floor(_.total/l),w=[],u=0;uy&&(w=!0),u%E==E-1&&(u!==_.length-1&&g.push(u),l.push(Math.round(h)),h=0);return{failed:w,totals:l,lineBreaks:g}}Z.exports={wrapLines:function H(_,y,E){if(y&&0!==_.lines.length){var g=_.deline({lineBreaks:!1}),l=function A(_,y){for(var E=[],g=0,l=0,h=0,w=0;w<_.length;w++){var u=_[w];if(u.staff){var v=l,S=y[g];g++;for(var x=0;x0&&(g[v.line].staff[v.staff].barNumber=w);for(var x=Object.keys(S),O=0;O=0;Y--)if("key"===j[Y].el_type){l[v.staff]={root:j[Y].root,acc:j[Y].acc,mode:j[Y].mode,accidentals:j[Y].accidentals.filter(function(W){return"natural"!==W.acc})};break}for(Y=j.length-1;Y>=0;Y--)if("stem"===j[Y].el_type){h[10*v.staff+v.voice]={direction:j[Y].direction};break}if(void 0!==E&&0===v.staff&&0===v.voice)for(Y=0;Y0&&O.measureWidths.length<25&&(U=b(O,j,0,W),W.attempts.push({type:"Optimize",failed:U.failed,reason:U.reason,lineBreaks:U.lineBreaks,totals:U.totals}),U.failed||(q=U.lineBreaks))}v.push(q),S.push(W)}var z=function f(_,y,E){var g={lineBreaks:_,staffwidth:y};for(var l in E)E.hasOwnProperty(l)&&"wrap"!==l&&"staffwidth"!==l&&(g[l]=E[l]);return{revisedParams:g}}(v,E.staffwidth,E);return z.explanation=S,z.reParse=!0,z}}},1091:(Z,H,M)=>{var c,A=M(3463),{relativeMajor:I,transposeKey:D,relativeMode:p}=M(9285),b=M(7658);(function(){"use strict";function f(q,ee,U){var ne=[],z=ee.getKeySignature();if("Hp"===z.root||"HP"===z.root)return ne;ne=ne.concat(function m(q,ee){for(var U=[],ne=q.split("K:"),z=ne[0].length,L=1;L2?ne+=7:-12===U&&(ne-=7):U>0&&ne<0?ne+=7:U<0&&ne>0&&(ne-=7),U>12?ne+=7:U<-12&&(ne-=7),ne}function g(q,ee,U,ne,z,L){for(var P=[],$=E(z,U,L),Q={},T={},R=0;R1?z[1]:"",accidentals:L}}function u(q,ee,U,ne){for(var z=q.pitch,L=l.indexOf(q.name),$=(l.indexOf(ee.root)+z)%7,Q=L+U,T=q.oct;Q>6;)T++,Q-=7;for(;Q<0;)T--,Q+=7;for(var R=l[$],F="",K=q.adj,J="=",se=0;se4&&(R=R.toLowerCase()),{acc:F,name:R,upper:R.toUpperCase()}}var v=/([_^=]*)([A-Ga-g])([,']*)/,S=/([_^=]*[A-Ga-g][,']*)(\d*\/*\d*)([\>\<\-\)\.\s\\]*)/,x=/([_^=]*[A-Ga-g][,']*)?(\d*\/*\d*)?([\>\<\-\)]*)?/,O=/(\s*)$/;function B(q,ee,U,ne){var z="none"===ee?0:l.indexOf(ee),L=q.match(v),P=L[2].toUpperCase(),$=l.indexOf(P)-z;$<0&&($+=7);var Q=h.indexOf(L[3]);P===L[2]&&Q--;var T=ne[P]||U[P]||"=";return{acc:L[1],name:P,pitch:$,oct:Q,adj:W(L[1],U[P],ne[P]),courtesy:L[1]===T}}function j(q,ee,U,ne,z){var L=q.substring(ee,U),P=L.match(new RegExp(S.source+O.source),"");if(P){var Q=P[2].length+P[3].length+P[4].length;ee+=U-ee-P[1].length-Q,U-=Q}else if(P=L.match(new RegExp(/([^\[]*)/.source+/\[/.source+x.source+x.source+x.source+x.source+x.source+x.source+x.source+x.source+/\-?](\d*\/*\d*)?([\>\<\-\)]*)/.source+O.source))){for(var J=1+P[1].length,se=0;se{var A,I=M(5339),D=M(6515);(function(){"use strict";var p,b,c,m,_,y,g,l,h,u,v,x,O,B,j,U,ne,z,L,J,se,ye,Ve,qe,E=1,S={num:4,den:4},Y=0,te=0,W=128,q=64,ee=48,P=!1,$=!1,Q=!0,T=105,R=95,F=85,K=.25,ie=0,me={},et=0;function Re(ae){for(var _e=h.length-1;_e>=0;_e--)if("program"===h[_e].cmd)return void(h[_e].channel=ae)}function ut(){for(var ae=!0,_e=0;_e0&&ae[0].length>0&&(et=ae[0][0].pickupLength),function _n(ae,_e){for(var Te=0;Te=0)&&(Xe=!0);for(var ot=0;ot0&&(!1===O||Se===O)&&(Dt(L,Bt(at.time)),U=[]),p=[],0===Se&&Ke(ae.length+1),$=!1,z=ne,L=Bt(at.time);break;case"bagpipes":break;case"instrument":if(void 0===g&&(g=at.program),l=at.program,h.length>0&&"program"===h[h.length-1].cmd)h[h.length-1].instrument=at.program;else{var Xt;for(Xt=h.length-1;Xt>=0&&"program"!==h[Xt].cmd;Xt--);(Xt<0||h[Xt].instrument!==at.program)&&h.push({cmd:"program",channel:0,instrument:at.program})}break;case"channel":Re(at.channel);break;case"drum":me=_i(at.params),ua();break;case"gchord":_e.chordsOff||(P=at.tacet);break;case"beat":T=at.beats[0],R=at.beats[1],F=at.beats[2];break;case"vol":J=at.volume;break;case"volinc":se=at.volume;break;case"beataccents":Q=at.value;break;default:console.log("MIDI creation. Unknown el_type: "+at.el_type+"\n")}}void 0===h[0].instrument&&(h[0].instrument=g||0),u&&h.unshift(u),m.push(h),ut()||(B=!0)}return _e.detuneOctave&&function Bl(ae,_e){for(var Te={},Ee=0;Ee1){var at=(ot=ot.sort(function(en,En){return en.pitch-En.pitch}))[ot.length-1],sn=at.pitch%12,Xt=!1;for(Se=0;!Xt&&Se0&&m.push(ye),{tempo:_,instrument:g,tracks:m,totalDuration:v}};var Rt=["break","(break)","no chord","n.c.","tacet"];function fe(ae,_e,Te){return(Te-ae)/_e}function Ae(ae,_e){var Se=_e.start,Xe=_e.duration,ot=Jt(1/32);switch(ae){case"trill":for(var at=1;Xe>0;)h.push({cmd:"note",pitch:_e.pitch+at,volume:_e.volume,start:Se,duration:ot,gap:0,instrument:l,style:"decoration"}),at=1===at?0:1,Xe-=ot,Se+=ot;break;case"mordent":h.push({cmd:"note",pitch:_e.pitch,volume:_e.volume,start:Se,duration:ot,gap:0,instrument:l,style:"decoration"}),Xe-=ot,h.push({cmd:"note",pitch:_e.pitch+1,volume:_e.volume,start:Se+=ot,duration:ot,gap:0,instrument:l,style:"decoration"}),h.push({cmd:"note",pitch:_e.pitch,volume:_e.volume,start:Se+=ot,duration:Xe-=ot,gap:0,instrument:l});break;case"lowermordent":h.push({cmd:"note",pitch:_e.pitch,volume:_e.volume,start:Se,duration:ot,gap:0,instrument:l,style:"decoration"}),Xe-=ot,h.push({cmd:"note",pitch:_e.pitch-1,volume:_e.volume,start:Se+=ot,duration:ot,gap:0,instrument:l,style:"decoration"}),h.push({cmd:"note",pitch:_e.pitch,volume:_e.volume,start:Se+=ot,duration:Xe-=ot,gap:0,instrument:l});break;case"turn":h.push({cmd:"note",pitch:_e.pitch,volume:_e.volume,start:Se,duration:ot=_e.duration/5,gap:0,instrument:l,style:"decoration"}),h.push({cmd:"note",pitch:_e.pitch+1,volume:_e.volume,start:Se+ot,duration:ot,gap:0,instrument:l,style:"decoration"}),h.push({cmd:"note",pitch:_e.pitch,volume:_e.volume,start:Se+2*ot,duration:ot,gap:0,instrument:l,style:"decoration"}),h.push({cmd:"note",pitch:_e.pitch+1,volume:_e.volume,start:Se+3*ot,duration:ot,gap:0,instrument:l,style:"decoration"}),h.push({cmd:"note",pitch:_e.pitch,volume:_e.volume,start:Se+4*ot,duration:ot,gap:0,instrument:l});break;case"roll":for(;Xe>0;)h.push({cmd:"note",pitch:_e.pitch,volume:_e.volume,start:Se,duration:ot,gap:0,instrument:l,style:"decoration"}),Xe-=2*ot,Se+=2*ot}}function Yt(ae,_e){var Ze,Ee=function ce(ae,_e){if(_e)return 0;var Te;if(J)Te=J,J=void 0;else if(Q)if(et>ae)Te=F;else{var Se=fe(L,kt(S),ae);Te=0===Se?T:parseInt(Se,10)===Se?R:F}else Te=R;return se&&(Te+=se,se=void 0),Te<0&&(Te=0),Te>127&&(Te=127),_e?0:Te}(Bt(ae.time),_e),Se=function be(ae){var _e=!1,Te=function yn(ae){if(P)return"break";if(B||!ae.chord||0===ae.chord.length)return null;for(var _e=0;_e=0)return"break"}return null}(ae);if(Te){var Ee=function gt(ae){if(0!==ae.length){if("break"===ae)return{chick:[]};var _e=ae.substring(0,1);if("("===_e){if(0===(ae=ae.substring(1,ae.length-2)).length)return;_e=ae.substring(0,1)}var Te=Ni[_e];if(Te){for(var Ee=c;Ee<-8;)Ee+=12;for(;Ee>8;)Ee-=12;var Ze,Se=(Te+=Ee)-5;1===ae.length&&(Ze=vt(Te,""));var Xe=ae.substring(1),ot=Xe.substring(0,1);"b"===ot||"\u266d"===ot?(Te--,Se--,Xe=Xe.substring(1)):("#"===ot||"\u266f"===ot)&&(Te++,Se++,Xe=Xe.substring(1));var at=Xe.split("/");if((Ze=vt(Te,at[0])).length>=3&&(Se=Se+(Ze[2]-Ze[0])-7),2===at.length&&Ni[at[1].substring(0,1)]){var en={"#":1,"\u266f":1,b:-1,"\u266d":-1}[at[1].substring(1)]||0;Se=Te=Ni[at[1].substring(0,1)]+en+Ee}return{boom:Te,boom2:Se,chick:Ze}}}}(Te);if(Ee){0===x.length&&(_e=!0,x.push({cmd:"program",channel:j,instrument:te})),ne=Ee;var Se=fe(L,kt(S),Bt(ae.time));U.push({chord:ne,beat:Se,start:Bt(ae.time)})}}return _e}(ae);if(ae.gracenotes&&ae.pitches&&ae.pitches.length>0&&ae.pitches[0]&&(Ze=function Pt(ae,_e){for(var Se,Te=0,Ee=[],Ze=0;Ze0?tn.endType="tenuto":Xt&&(tn.endType=Xt),tn.endType){case"tenuto":tn.gap=-.001;break;case"staccato":tn.gap=_/60*(.4*tn.duration);break;default:tn.gap=0}h.push(tn)}}}}var S_=function tt(ae){return ae.pitches&&ae.pitches.length>0&&ae.pitches[0]?ae.pitches[0].duration:ae.elem?ae.elem.duration:ae.duration}(ae);return v=Math.max(v,Bt(ae.time)+Jt(S_)),Se}var Ct=[0,2,4,5,7,9,11];function rt(ae){if(void 0!==ae.midipitch)return ae.midipitch;var _e=ae.pitch;if(ae.accidental)switch(ae.accidental){case"sharp":p[_e]=1;break;case"flat":p[_e]=-1;break;case"natural":p[_e]=0;break;case"dblsharp":p[_e]=2;break;case"dblflat":p[_e]=-2;break;case"quartersharp":p[_e]=.25;break;case"quarterflat":p[_e]=-.25}var Te=12*function Ln(ae){return Math.floor(ae/7)}(_e)+Ct[Tn(_e)]+60;return(Te+=void 0!==p[_e]?p[_e]:b[Tn(_e)])+c}function Ft(ae){var _e=[0,0,0,0,0,0,0];if(!ae.accidentals)return _e;for(var Te=0;Te=0?(ae.pitch=Math.round(ae.pitch),ae.cents=-50):_e.indexOf(".25")>=0&&(ae.pitch=Math.round(ae.pitch),ae.cents=50),ae}function Tn(ae){return(ae%=7)<0&&(ae+=7),ae}var Ni={A:33,B:35,C:36,D:38,E:40,F:41,G:43},Jn={dim:[0,3,6],"\xb0":[0,3,6],"\u02da":[0,3,6],dim7:[0,3,6,9],"\xb07":[0,3,6,9],"\u02da7":[0,3,6,9],\u00f87:[0,3,6,10],"m7(b5)":[0,3,6,10],m7b5:[0,3,6,10],"m7\u266d5":[0,3,6,10],"-7(b5)":[0,3,6,10],"-7b5":[0,3,6,10],"7b5":[0,4,6,10],"7(b5)":[0,4,6,10],"7\u266d5":[0,4,6,10],"7(b9,b5)":[0,4,6,10,13],"7b9,b5":[0,4,6,10,13],"7(#9,b5)":[0,4,6,10,15],"7#9b5":[0,4,6,10,15],"maj7(b5)":[0,4,6,11],maj7b5:[0,4,6,11],"13(b5)":[0,4,6,10,14,21],"13b5":[0,4,6,10,14,21],m:[0,3,7],"-":[0,3,7],m6:[0,3,7,9],"-6":[0,3,7,9],m7:[0,3,7,10],"-7":[0,3,7,10],"-(b6)":[0,3,7,8],"-b6":[0,3,7,8],"-6/9":[0,3,7,9,14],"-7(b9)":[0,3,7,10,13],"-7b9":[0,3,7,10,13],"-maj7":[0,3,7,11],"-9+7":[0,3,7,11,13],"-11":[0,3,7,11,14,17],m11:[0,3,7,11,14,17],"-maj9":[0,3,7,11,14],"-\u22069":[0,3,7,11,14],mM9:[0,3,7,11,14],M:[0,4,7],6:[0,4,7,9],"6/9":[0,4,7,9,14],"6add9":[0,4,7,9,14],69:[0,4,7,9,14],7:[0,4,7,10],9:[0,4,7,10,14],11:[0,7,10,14,17],13:[0,4,7,10,14,21],"7b9":[0,4,7,10,13],"7\u266d9":[0,4,7,10,13],"7(b9)":[0,4,7,10,13],"7(#9)":[0,4,7,10,15],"7#9":[0,4,7,10,15],"(13)":[0,4,7,10,14,21],"7(9,13)":[0,4,7,10,14,21],"7(#9,b13)":[0,4,7,10,15,20],"7(#11)":[0,4,7,10,14,18],"7#11":[0,4,7,10,14,18],"7(b13)":[0,4,7,10,20],"7b13":[0,4,7,10,20],"9(#11)":[0,4,7,10,14,18],"9#11":[0,4,7,10,14,18],"13(#11)":[0,4,7,10,18,21],"13#11":[0,4,7,10,18,21],maj7:[0,4,7,11],"\u22067":[0,4,7,11],\u03947:[0,4,7,11],maj9:[0,4,7,11,14],"maj7(9)":[0,4,7,11,14],"maj7(11)":[0,4,7,11,17],"maj7(#11)":[0,4,7,11,18],"maj7(13)":[0,4,7,14,21],"maj7(9,13)":[0,4,7,11,14,21],"7sus4":[0,5,7,10],m7sus4:[0,3,7,10,17],sus4:[0,5,7],sus2:[0,2,7],"7sus2":[0,2,7,10],"9sus4":[0,5,7,10,14],"13sus4":[0,5,7,10,14,21],aug7:[0,4,8,10],"+7":[0,4,8,10],"+":[0,4,8],"7#5":[0,4,8,10],"7\u266f5":[0,4,8,10],"7+5":[0,4,8,10],"9#5":[0,4,8,10,14],"9\u266f5":[0,4,8,10,14],"9+5":[0,4,8,10,14],"-7(#5)":[0,3,8,10],"-7#5":[0,3,8,10],"7(#5)":[0,4,8,10],"7(b9,#5)":[0,4,8,10,13],"7b9#5":[0,4,8,10,13],"maj7(#5)":[0,4,8,11],"maj7#5":[0,4,8,11],"maj7(#5,#11)":[0,4,8,11,18],"maj7#5#11":[0,4,8,11,18],"9(#5)":[0,4,8,10,14],"13(#5)":[0,4,8,10,14,21],"13#5":[0,4,8,10,14,21]};function vt(ae,_e){var Te=Jn[_e];Te||(Te="ma"===_e.slice(0,2).toLowerCase()||"M"===_e[0]?Jn.M:"m"===_e[0]||"-"===_e[0]?Jn.m:Jn.M),ae+=12;for(var Ee=[],Se=0;Se{var I,A=M(6793);(function(){"use strict";function D(l,h){for(var w in h)h.hasOwnProperty(w)&&l.setAttribute(w,h[w]);return l}function p(){this.trackstrings="",this.trackcount=0,this.noteOnAndChannel="%90",this.noteOffAndChannel="%80"}function c(l,h){for(var w="",u=0;uh&&(w=w.substring(0,h)),function _(l){for(var h="",w=0;w>=7;for(var u=w.length-1;u>=0;u--){h<<=8;var v=w[u];0!==u&&(v|=128),h|=v}var S=h.toString(16).length;return y(h,S+=S%2)}p.prototype.setTempo=function(l){0===this.trackcount&&(this.startTrack(),this.track+="%00%FF%51%03"+y(Math.round(6e7/l),6),this.endTrack())},p.prototype.setGlobalInfo=function(l,h,w,u){if(0===this.trackcount){this.startTrack();var v=Math.round(6e7/l);this.track+="%00%FF%51%03"+y(v,6),w&&(this.track+=function f(l){if(!l||!l.accidentals)return"";for(var w=0,u=256,v=0;v{var A,I=M(5339);(function(){"use strict";var D=1,p=128;function b(u,v,S){for(var x=0,O=v+1;O=0)return x;return x}function c(u,v,S){for(var x=Math.min(u.length,v+3),O=v;O=0)return u[O].decoration[B];return null}function m(u){for(var v=0;v=0&&"bar"!==S[x].el_type;)S[x].noChordVoice=!0,x--}function _(u,v){if(u&&!(u.length<=v)&&u[v].title)return u[v].title.join(" ")}function y(u,v){var S=.25;u.duration&&(S=u.duration[0]);var x=60;return u.bpm&&(x=u.bpm),S*x/v}function E(u){var v;switch(u.type){case"common_time":v={el_type:"meter",num:4,den:4};break;case"cut_time":v={el_type:"meter",num:2,den:2};break;case"specified":v={el_type:"meter",num:u.value[0].num,den:u.value[0].den};break;default:v={el_type:"meter"}}return D=v.num/v.den,v}function g(u){for(var v=[],S=0;S=0;S--)if(u[S].el_type===v.el_type)return void(JSON.stringify(u[S])!==JSON.stringify(v)&&u.push(v));u.push(v)}A=function(u,v){var S,x=(v=v||{}).program||0,O=v.midiTranspose||0;u.visualTranspose&&(O-=u.visualTranspose);var B=v.channel||0,j=!1,Y=v.drum||"",te=v.drumBars||1,W=v.drumIntro||0,q=""!==Y,ee=[];x=parseInt(x,10),O=parseInt(O,10),10===(B=parseInt(B,10))&&(x=p),Y=Y.split(" "),te=parseInt(te,10),W=parseInt(W,10);var z=u.formatting.bagpipes;z&&(x=71);var L=[];if(u.formatting.midi){var P=u.formatting.midi;P.program&&P.program.length>0&&(x=P.program[0],P.program.length>1&&(x=P.program[1],B=P.program[0]),j=!0),P.transpose&&(O=P.transpose[0]),P.channel&&(B=P.channel[0],j=!0),P.drum&&(Y=P.drum),P.drumbars&&(te=P.drumbars[0]),P.drumon&&(q=!0),10===B&&(x=p),P.beat&&L.push({el_type:"beat",beats:P.beat}),P.nobeataccents&&L.push({el_type:"beataccents",value:!1})}S=v.qpm?parseInt(v.qpm,10):u.metaText.tempo?y(u.metaText.tempo,u.getBeatLength()):v.defaultQpm?v.defaultQpm:180;var $=[];z&&$.push({el_type:"bagpipes"}),$.push({el_type:"instrument",program:x}),B&&$.push({el_type:"channel",channel:B}),O&&$.push({el_type:"transpose",transpose:O}),$.push({el_type:"tempo",qpm:S});for(var Q=0;Q=0?vt="pppp":gt.decoration.indexOf("ppp")>=0?vt="ppp":gt.decoration.indexOf("pp")>=0?vt="pp":gt.decoration.indexOf("p")>=0?vt="p":gt.decoration.indexOf("mp")>=0?vt="mp":gt.decoration.indexOf("mf")>=0?vt="mf":gt.decoration.indexOf("f")>=0?vt="f":gt.decoration.indexOf("ff")>=0?vt="ff":gt.decoration.indexOf("fff")>=0?vt="fff":gt.decoration.indexOf("ffff")>=0&&(vt="ffff"),vt&&(se=Jn[vt].slice(0),T[Be].push({el_type:"beat",beats:se.slice(0)}),R[Re]=!1,F[Re]=!1),gt.decoration.indexOf("crescendo(")>=0){var Mi=b(ut,fe,"crescendo)"),Wi=Math.min(127,se[0]+50),Ot=c(ut,fe+Mi+1,Object.keys(Jn));Ot&&(Wi=Jn[Ot][0]),R[Re]=Mi>0&&Math.floor((Wi-se[0])/Mi),F[Re]=!1}else if(gt.decoration.indexOf("crescendo)")>=0)R[Re]=!1;else if(gt.decoration.indexOf("diminuendo(")>=0){var Dt=b(ut,fe,"diminuendo)"),_i=Math.max(15,se[0]-50),ua=c(ut,fe+Dt+1,Object.keys(Jn));ua&&(_i=Jn[ua][0]),R[Re]=!1,F[Re]=Dt>0&&Math.floor((_i-se[0])/Dt)}else gt.decoration.indexOf("diminuendo)")>=0&&(F[Re]=!1)};for(var qe=et.staff,Be=0,$e=0;$e=0?T[Be].push({el_type:"transpose",transpose:-12}):st.clef.type.indexOf("+8")>=0&&T[Be].push({el_type:"transpose",transpose:12})),u.formatting.midi&&u.formatting.midi.drumoff&&(T[Be].push({el_type:"bar"}),T[Be].push({el_type:"drum",params:{pattern:"",on:!1}}));var _n=0,kt=0,Rt=0,yn=0;se=[105,95,85,1];for(var fe=0;fe=0?T[Be].push({el_type:"transpose",transpose:-12}):ce.type.indexOf("+8")>=0&&T[Be].push({el_type:"transpose",transpose:12}));break;case"tempo":S=y(ce,u.getBeatLength()),T[Be].push({el_type:"tempo",qpm:S,timing:K[Be]}),J[""+K[Be]]={el_type:"tempo",qpm:S,timing:K[Be]};break;case"bar":_n>0&&T[Be].push({el_type:"bar"}),Ni(ce),_n=0;var tt="1"===ce.startEnding,Ct="bar_left_repeat"===ce.type||"bar_dbl_repeat"===ce.type||"bar_right_repeat"===ce.type;if("bar_right_repeat"===ce.type||"bar_dbl_repeat"===ce.type){var rt=ie[Be];rt||(rt=0);var Ft=ye[Be];Ft||(Ft=T[Be].length);for(var Pt=rt;Pt=0&&B!==v[""+Y.timing].qpm&&(B=v[""+Y.timing].qpm,"tempo"===Y.el_type?(Y.qpm=v[""+Y.timing].qpm,j++):(u[x].splice(j,0,{el_type:"tempo",qpm:v[""+Y.timing].qpm,timing:Y.timing}),j+=2))}}(T,J),W)for(var Dr=u.getPickupLength(),Ln=0;LnTn;)Tn++;if(T[Ln].length>Tn)for(Ae=0;Ae0&&T[0].length>0&&(T[0][0].pickupLength=u.getPickupLength()),T}})(),Z.exports=A},9938:(Z,H,M)=>{var A=M(5921);Z.exports=function I(){return window.abcjsAudioContext||A(),window.abcjsAudioContext}},6793:Z=>{Z.exports=function H(M){return Math.pow(2,M/1200)}},9849:(Z,H,M)=>{var A=M(7657);Z.exports=function(D){for(var p=[],b=0;b0){var E=y.gap?y.gap:0,g=y.duration;E=Math.min(E,2*g/3);var l={pitch:y.pitch,instrument:f,start:Math.round(1e6*y.start)/1e6,end:Math.round(1e6*(y.start+g-E))/1e6,volume:y.volume};y.startChar&&(l.startChar=y.startChar),y.endChar&&(l.endChar=y.endChar),y.style&&(l.style=y.style),y.cents&&(l.cents=y.cents),p[_].push(l)}break;case"program":f=A[y.instrument];break;case"text":break;default:console.log("Unhandled midi event",y)}})}),p}},8720:(Z,H,M)=>{var A=M(4053),I=M(5921),D=M(9938),p=M(5339),b=M(4413),c=M(2712),f=M(8109),m=M(5808),_=M(1208);function g(w,u,v,S,x){var O=!0;if(D()?O="suspended"===D().state:I(),!A())throw{status:"NotSupported",message:"This browser does not support audio."};(O||x)&&v&&v.classList.add("abcjs-loading"),O?D().resume().then(function(){S?S().then(function(B){l(w,u,v,x)}):l(w,u,v,x)}):l(w,u,v,x)}function l(w,u,v,S){S?w(u).then(function(){v&&v.classList.remove("abcjs-loading")}):(w(u),v&&v.classList.remove("abcjs-loading"))}Z.exports=function y(w,u){var v=this;if("string"==typeof w){var S=w;if(!(w=document.querySelector(S)))throw new Error('Cannot find element "'+S+'" in the DOM.')}else if(!(w instanceof HTMLElement))throw new Error("The first parameter must be a valid element or selector in the DOM.");if(v.parent=w,v.options={},u&&(v.options=p.clone(u)),v.options.ac&&I(v.options.ac),function E(w,u){var Y='
\n';if(u.loopHandler){var te=u.repeatTitle?u.repeatTitle:"Click to toggle play once/repeat.";Y+='\n"}if(u.restartHandler){var q=u.restartTitle?u.restartTitle:"Click to go to beginning.";Y+='\n"}if(u.playHandler||u.playPromiseHandler){var U=u.playTitle?u.playTitle:"Click to play/pause.";Y+='\n"}if(u.progressHandler){var z=u.randomTitle?u.randomTitle:"Click to change the playback position.";Y+='\n'}if(!1!==u.hasClock&&(Y+='\n'),u.warpHandler){var P=u.warpTitle?u.warpTitle:"Change the playback speed.";Y+=' ( '+(u.bpm?u.bpm:"BPM")+")\n"}Y+='
CSS required: load abcjs-audio.css
',w.innerHTML=Y+="
\n"}(v.parent,v.options),function h(w){var u=!!w.options.loopHandler,v=!!w.options.restartHandler,S=!!w.options.playHandler||!!w.options.playPromiseHandler,x=!!w.options.progressHandler,O=!!w.options.warpHandler,B=w.parent.querySelector(".abcjs-midi-start");u&&w.parent.querySelector(".abcjs-midi-loop").addEventListener("click",function(j){g(w.options.loopHandler,j,B,w.options.afterResume)}),v&&w.parent.querySelector(".abcjs-midi-reset").addEventListener("click",function(j){g(w.options.restartHandler,j,B,w.options.afterResume)}),S&&B.addEventListener("click",function(j){g(w.options.playPromiseHandler||w.options.playHandler,j,B,w.options.afterResume,!!w.options.playPromiseHandler)}),x&&w.parent.querySelector(".abcjs-midi-progress-background").addEventListener("click",function(j){g(w.options.progressHandler,j,B,w.options.afterResume)}),O&&w.parent.querySelector(".abcjs-midi-tempo").addEventListener("change",function(j){g(w.options.warpHandler,j,B,w.options.afterResume)})}(v),v.disable=function(O){var B=v.parent.querySelector(".abcjs-inline-audio");O?B.classList.add("abcjs-disabled"):B.classList.remove("abcjs-disabled")},v.setWarp=function(O,B){v.parent.querySelector(".abcjs-midi-tempo").value=Math.round(B),v.setTempo(O)},v.setTempo=function(O){var B=v.parent.querySelector(".abcjs-midi-current-tempo");B&&(B.innerHTML=Math.round(O))},v.resetAll=function(){for(var O=v.parent.querySelectorAll(".abcjs-pushed"),B=0;B{var A=M(9443),I=M(9849),D=M(5921),p=M(9938),b=M(4053),c=M(7977),f=M(7657),m=M(6247),_=M(8637),y=M(3627),E="MIDI is not supported in this browser.",g="https://paulrosen.github.io/midi-js-soundfonts/abcjs/",l="https://paulrosen.github.io/midi-js-soundfonts/FluidR3_GM/";Z.exports=function w(){var u=this;u.audioBufferPossible=void 0,u.directSource=[],u.startTimeSec=void 0,u.pausedTimeSec=void 0,u.audioBuffers=[],u.duration=void 0,u.isRunning=!1,u.init=function(S){S||(S={}),D(S.audioContext);var x=p().currentTime;if(u.debugCallback=S.debugCallback,u.debugCallback&&u.debugCallback("init called"),u.audioBufferPossible=u._deviceCapable(),!u.audioBufferPossible)return Promise.reject({status:"NotSupported",message:E});var O=S.options?S.options:{};u.soundFontUrl=O.soundFontUrl?O.soundFontUrl:l,"/"!==u.soundFontUrl[u.soundFontUrl.length-1]&&(u.soundFontUrl+="/"),u.soundFontVolumeMultiplier=O.soundFontVolumeMultiplier||0===O.soundFontVolumeMultiplier?O.soundFontVolumeMultiplier:u.soundFontUrl===l||"https://paulrosen.github.io/midi-js-soundfonts/MusyngKite/"===u.soundFontUrl?3:u.soundFontUrl===g?.4:1,u.programOffsets=O.programOffsets?O.programOffsets:u.soundFontUrl===g?{bright_acoustic_piano:20,honkytonk_piano:20,electric_piano_1:30,electric_piano_2:30,harpsichord:40,clavinet:20,celesta:20,glockenspiel:40,vibraphone:30,marimba:35,xylophone:30,tubular_bells:35,dulcimer:30,drawbar_organ:20,percussive_organ:25,rock_organ:20,church_organ:40,reed_organ:40,accordion:40,harmonica:40,acoustic_guitar_nylon:20,acoustic_guitar_steel:30,electric_guitar_jazz:25,electric_guitar_clean:15,electric_guitar_muted:35,overdriven_guitar:25,distortion_guitar:20,guitar_harmonics:30,electric_bass_finger:15,electric_bass_pick:30,fretless_bass:40,violin:105,viola:50,cello:40,contrabass:60,trumpet:10,trombone:90,alto_sax:20,tenor_sax:20,clarinet:20,flute:50,banjo:50,woodblock:20}:{};var B=void 0!==O.fadeLength?parseInt(O.fadeLength,10):NaN;if(u.fadeLength=isNaN(B)?200:B,B=void 0!==O.noteEnd?parseInt(O.noteEnd,10):NaN,u.noteEnd=isNaN(B)?0:B,u.pan=O.pan,u.meterSize=1,S.visualObj)u.flattened=S.visualObj.setUpAudio(O),S.visualObj.getMeterFraction().den&&(u.meterSize=S.visualObj.getMeterFraction().num/S.visualObj.getMeterFraction().den);else{if(!S.sequence)return Promise.reject(new Error("Must pass in either a visualObj or a sequence"));u.flattened=S.sequence}u.millisecondsPerMeasure=S.millisecondsPerMeasure?S.millisecondsPerMeasure:S.visualObj?S.visualObj.millisecondsPerMeasure(u.flattened.tempo):1e3,u.beatsPerMeasure=S.visualObj?S.visualObj.getBeatsPerMeasure():4,u.sequenceCallback=O.sequenceCallback,u.callbackContext=O.callbackContext,u.onEnded=O.onEnded;var Y={},te=[],W=[],q=f[0];u.flattened.tracks.forEach(function(L){L.forEach(function(P){if("program"===P.cmd&&f[P.instrument]&&(q=f[P.instrument]),void 0!==P.pitch){var $=P.pitch,Q=c[$];if(Q)if(Y[q]||(Y[q]={}),y[q]&&y[q][Q]){var T=q+":"+Q;te.indexOf(T)<0&&te.push(T)}else Y[q][Q]=!0;else{var R=q+":"+Q;console.log("Can't find note: ",$,R),W.indexOf(R)<0&&W.push(R)}}})}),u.debugCallback&&u.debugCallback("note gathering time = "+Math.floor(1e3*(p().currentTime-x))+"ms"),x=p().currentTime;var ee=[];Object.keys(Y).forEach(function(L){Object.keys(Y[L]).forEach(function(P){ee.push({instrument:L,note:P})})}),u.debugCallback&&u.debugCallback("notes "+JSON.stringify(ee));for(var U=[],z=0;z0){if(u.debugCallback&&u.debugCallback("pending "+JSON.stringify(q)),B?B*=2:B=50,B<9e4)return new Promise(function($,Q){setTimeout(function(){var T=[];for(U=0;U1&&(j=1),O.push(j)}else O.push(0);return O}var Y=parseFloat(x);if(Y*(S-1)>2)return null;for(var te=S%2==0,W=te?0-Y/2:0,q=W+Y,ee=0;eeQ?te[Q]:0;$.forEach(function(R){var F=R.instrument+":"+R.pitch+":"+R.volume+":"+Math.round(1e3*(R.end-R.start))/1e3+":"+T+":"+B+":"+(R.cents?R.cents:0);u.debugCallback&&u.debugCallback("noteMapTrack "+F),W[F]||(W[F]=[]),W[F].push(R.start)})});for(var q=[],ee=p().createBuffer(2,j,p().sampleRate),U=0;U0?$.audioBuffers[0].duration:0;return{status:p().state,duration:Q}}u.audioBuffers=[ee],u.debugCallback&&(u.debugCallback("sampleRate = "+p().sampleRate),u.debugCallback("totalSamples = "+j),u.debugCallback("creationTime = "+Math.floor(1e3*(p().currentTime-O))+"ms")),Promise.all(q).then(function(){"suspended"===p().state?p().resume().then(function(){x(P(u))}):"interrupted"===p().state?p().suspend().then(function(){p().resume().then(function(){x(P(u))})}):x(P(u))})})):Promise.reject(new Error(E))},u.start=function(){if(!u.audioBufferPossible)throw new Error(E);u.debugCallback&&u.debugCallback("start called");var S=u.pausedTimeSec?u.pausedTimeSec:0;u._kickOffSound(S),u.startTimeSec=p().currentTime-S,u.pausedTimeSec=void 0,u.debugCallback&&u.debugCallback("MIDI STARTED",u.startTimeSec)},u.pause=function(){if(!u.audioBufferPossible)throw new Error(E);return u.debugCallback&&u.debugCallback("pause called"),u.pausedTimeSec=u.stop(),u.pausedTimeSec},u.resume=function(){u.start()},u.seek=function(S,x){var O;switch(x){case"seconds":O=S;break;case"beats":O=S*u.millisecondsPerMeasure/u.beatsPerMeasure/1e3;break;default:O=(u.duration-u.fadeLength/1e3)*S}if(!u.audioBufferPossible)throw new Error(E);u.debugCallback&&u.debugCallback("seek called sec="+O),u.isRunning?(u.stop(),u._kickOffSound(O)):u.pausedTimeSec=O,u.pausedTimeSec=O},u.stop=function(){return u.isRunning=!1,u.pausedTimeSec=void 0,u.directSource.forEach(function(x){try{x.stop()}catch(O){console.log("direct source didn't stop:",O)}}),u.directSource=[],p().currentTime-u.startTimeSec},u.finished=function(){u.startTimeSec=void 0,u.pausedTimeSec=void 0,u.isRunning=!1},u.download=function(){return m(u)},u.getAudioBuffer=function(){return u.audioBuffers[0]},u._deviceCapable=function(){return!!b()||(console.warn(E),u.debugCallback&&u.debugCallback(E),!1)},u._kickOffSound=function(S){u.isRunning=!0,u.directSource=[],u.audioBuffers.forEach(function(x,O){u.directSource[O]=p().createBufferSource(),u.directSource[O].buffer=x,u.directSource[O].connect(p().destination)}),u.directSource.forEach(function(x){x.start(0,S)}),u.onEnded&&(u.directSource[0].onended=function(){u.onEnded(u.callbackContext)})}}},6247:Z=>{Z.exports=function(A){return window.URL.createObjectURL(function M(A){var m,_,I=A[0],D=I.numberOfChannels,p=I.length*D*2+44,b=new ArrayBuffer(p),c=new DataView(b),f=[],y=0,E=0;for(l(1179011410),l(p-8),l(1163280727),l(544501094),l(16),g(1),g(D),l(I.sampleRate),l(2*I.sampleRate*D),g(2*D),g(16),l(1635017060),l(p-E-4),m=0;m{var A=M(7927),I=M(3538);Z.exports=function(c,f){var m={};if(f)for(var _ in f)f.hasOwnProperty(_)&&(m[_]=f[_]);function y(E,g,l){var h=I(g,m);switch(m.midiOutputType){case"encoded":return h;case"binary":var w=h.replace("data:audio/midi,","");w=(w=w.replace(/MThd/g,"%4d%54%68%64")).replace(/MTrk/g,"%4d%54%72%6b");for(var u=new ArrayBuffer(w.length/3),v=new Uint8Array(u),S=0;S';f.preTextDownload&&(E+=f.preTextDownload);var l,g=c.metaText&&c.metaText.title?c.metaText.title:"Untitled";return l=f.downloadLabel&&function p(c){return c&&"[object Function]"==={}.toString.call(c)}(f.downloadLabel)?f.downloadLabel(c,_):f.downloadLabel?f.downloadLabel.replace(/%T/,g):'Download MIDI for "'+g+'"',g=g.toLowerCase().replace(/'/g,"").replace(/\W/g,"_").replace(/__/g,"_"),E+=''+l+"",f.postTextDownload&&(E+=f.postTextDownload),E+""}(g,m,h,l)}}return m.generateInline=!1,"string"==typeof c?A.renderEngine(y,"*",c,m):y(0,c,0)}},5808:Z=>{Z.exports='\n\n \n\n'},4413:Z=>{Z.exports='\n\n\t\n\t\n\t\n\t\n\n'},8109:Z=>{Z.exports='\n\n \n \n \n \n\n'},2712:Z=>{Z.exports='\n\n \n \n \n\n'},1208:Z=>{Z.exports='\n\n \n \n \n \n\n'},7657:Z=>{Z.exports=["acoustic_grand_piano","bright_acoustic_piano","electric_grand_piano","honkytonk_piano","electric_piano_1","electric_piano_2","harpsichord","clavinet","celesta","glockenspiel","music_box","vibraphone","marimba","xylophone","tubular_bells","dulcimer","drawbar_organ","percussive_organ","rock_organ","church_organ","reed_organ","accordion","harmonica","tango_accordion","acoustic_guitar_nylon","acoustic_guitar_steel","electric_guitar_jazz","electric_guitar_clean","electric_guitar_muted","overdriven_guitar","distortion_guitar","guitar_harmonics","acoustic_bass","electric_bass_finger","electric_bass_pick","fretless_bass","slap_bass_1","slap_bass_2","synth_bass_1","synth_bass_2","violin","viola","cello","contrabass","tremolo_strings","pizzicato_strings","orchestral_harp","timpani","string_ensemble_1","string_ensemble_2","synth_strings_1","synth_strings_2","choir_aahs","voice_oohs","synth_choir","orchestra_hit","trumpet","trombone","tuba","muted_trumpet","french_horn","brass_section","synth_brass_1","synth_brass_2","soprano_sax","alto_sax","tenor_sax","baritone_sax","oboe","english_horn","bassoon","clarinet","piccolo","flute","recorder","pan_flute","blown_bottle","shakuhachi","whistle","ocarina","lead_1_square","lead_2_sawtooth","lead_3_calliope","lead_4_chiff","lead_5_charang","lead_6_voice","lead_7_fifths","lead_8_bass_lead","pad_1_new_age","pad_2_warm","pad_3_polysynth","pad_4_choir","pad_5_bowed","pad_6_metallic","pad_7_halo","pad_8_sweep","fx_1_rain","fx_2_soundtrack","fx_3_crystal","fx_4_atmosphere","fx_5_brightness","fx_6_goblins","fx_7_echoes","fx_8_scifi","sitar","banjo","shamisen","koto","kalimba","bagpipe","fiddle","shanai","tinkle_bell","agogo","steel_drums","woodblock","taiko_drum","melodic_tom","synth_drum","reverse_cymbal","guitar_fret_noise","breath_noise","seashore","bird_tweet","telephone_ring","helicopter","applause","gunshot","percussion"]},9443:(Z,H,M)=>{var A=M(3627);Z.exports=function(D,p,b,c){A[p]||(A[p]={});var f=A[p];return f[b]||(f[b]=new Promise(function(m,_){var y=new XMLHttpRequest;let E=D+p+"-mp3/"+b+".mp3";y.open("GET",E,!0),y.responseType="arraybuffer",y.onload=function(){if(200===y.status){var l=c.decodeAudioData(y.response,function(h){m({instrument:p,name:b,status:"loaded",audioBuffer:h})},function(){_(Error("Can't decode sound at "+E))});l&&"function"==typeof l.catch&&l.catch(_)}else _(Error("Can't load sound at "+E+" status="+y.status))},y.onerror=function(){_(Error("Can't load sound at "+E))},y.send()}).catch(m=>{throw console.error("Didn't load note",p,b,":",m.message),m})),f[b]}},8167:Z=>{var H={__:-2,_:-1,"_/":-.5,"=":0,"":0,"^/":.5,"^":1,"^^":2},M=["C","-","D","-","E","F","-","G","-","A","-","B","c","-","d","-","e","f","-","g","-","a","-","b"];Z.exports={noteToMidi:function A(D){var p=D.match(/([_^\/]*)([ABCDEFGabcdefg])(,*)('*)/);if(p&&5===p.length){var b=H[p[1]];return 48+M.indexOf(p[2])+b+12*(p[4].length-p[3].length)}return 0},midiToNote:function I(D){D=parseInt(D,10);var p=Math.floor(D/12),b=D%12,c=M[b];if("-"===c&&(c="^"+M[b-1]),p>4)for(c=c.toLowerCase(),p-=5;p>0;)c+="'",p--;else for(;p<4;)c+=",",p++;return c}}},7977:Z=>{Z.exports={21:"A0",22:"Bb0",23:"B0",24:"C1",25:"Db1",26:"D1",27:"Eb1",28:"E1",29:"F1",30:"Gb1",31:"G1",32:"Ab1",33:"A1",34:"Bb1",35:"B1",36:"C2",37:"Db2",38:"D2",39:"Eb2",40:"E2",41:"F2",42:"Gb2",43:"G2",44:"Ab2",45:"A2",46:"Bb2",47:"B2",48:"C3",49:"Db3",50:"D3",51:"Eb3",52:"E3",53:"F3",54:"Gb3",55:"G3",56:"Ab3",57:"A3",58:"Bb3",59:"B3",60:"C4",61:"Db4",62:"D4",63:"Eb4",64:"E4",65:"F4",66:"Gb4",67:"G4",68:"Ab4",69:"A4",70:"Bb4",71:"B4",72:"C5",73:"Db5",74:"D5",75:"Eb5",76:"E5",77:"F5",78:"Gb5",79:"G5",80:"Ab5",81:"A5",82:"Bb5",83:"B5",84:"C6",85:"Db6",86:"D6",87:"Eb6",88:"E6",89:"F6",90:"Gb6",91:"G6",92:"Ab6",93:"A6",94:"Bb6",95:"B6",96:"C7",97:"Db7",98:"D7",99:"Eb7",100:"E7",101:"F7",102:"Gb7",103:"G7",104:"Ab7",105:"A7",106:"Bb7",107:"B7",108:"C8",109:"Db8",110:"D8",111:"Eb8",112:"E8",113:"F8",114:"Gb8",115:"G8",116:"Ab8",117:"A8",118:"Bb8",119:"B8",120:"C9",121:"Db9"}},6515:Z=>{var H={f0:"_C",n0:"=C",s0:"^C",x0:"C",f1:"_D",n1:"=D",s1:"^D",x1:"D",f2:"_E",n2:"=E",s2:"^E",x2:"E",f3:"_F",n3:"=F",s3:"^F",x3:"F",f4:"_G",n4:"=G",s4:"^G",x4:"G",f5:"_A",n5:"=A",s5:"^A",x5:"A",f6:"_B",n6:"=B",s6:"^B",x6:"B",f7:"_c",n7:"=c",s7:"^c",x7:"c",f8:"_d",n8:"=d",s8:"^d",x8:"d",f9:"_e",n9:"=e",s9:"^e",x9:"e",f10:"_f",n10:"=f",s10:"^f",x10:"f",f11:"_g",n11:"=g",s11:"^g",x11:"g",f12:"_a",n12:"=a",s12:"^a",x12:"a",f13:"_b",n13:"=b",s13:"^b",x13:"b",f14:"_c'",n14:"=c'",s14:"^c'",x14:"c'",f15:"_d'",n15:"=d'",s15:"^d'",x15:"d'",f16:"_e'",n16:"=e'",s16:"^e'",x16:"e'"};Z.exports=function M(A){return H[(A.accidental?A.accidental[0]:"x")+A.verticalPos]}},8637:(Z,H,M)=>{var A=M(3627),I=M(7977),D=M(6793),b=function(c,f,m){for(var _=0;_<2;_++)for(var y=f.getChannelData(_),E=c.getChannelData(_),g=0;g{var A=M(974),I=M(6142),D=M(9938);function b(c,f){var m=new I;return m.init({sequence:c,millisecondsPerMeasure:f}).then(function(){return m.prime()}).then(function(){return m.start(),Promise.resolve()})}Z.exports=function p(c,f,m){for(var _=new A,y=0;y{Z.exports=function H(M){if(M)window.abcjsAudioContext=M;else if(!window.abcjsAudioContext){var A=window.AudioContext||window.webkitAudioContext;if(!A)return!1;window.abcjsAudioContext=new A}return"suspended"!==window.abcjsAudioContext.state}},3627:Z=>{Z.exports={}},4053:(Z,H,M)=>{var A=M(9938);Z.exports=function I(){if(!window.Promise||!window.AudioContext&&!window.webkitAudioContext&&!navigator.mozAudioContext&&!navigator.msAudioContext)return!1;var D=A();return D?void 0!==D.resume:void 0}},6221:(Z,H,M)=>{var A=M(8720),I=M(6142),D=M(7233),p=M(9938);Z.exports=function b(){var c=this;c.warp=100,c.cursorControl=null,c.visualObj=null,c.timer=null,c.midiBuffer=null,c.options=null,c.currentTempo=null,c.control=null,c.isLooping=!1,c.isStarted=!1,c.isLoaded=!1,c.isLoading=!1,c.load=function(m,_,y){y||(y={}),c.control=new A(m,{loopHandler:y.displayLoop?c.toggleLoop:void 0,restartHandler:y.displayRestart?c.restart:void 0,playPromiseHandler:y.displayPlay?c.play:void 0,progressHandler:y.displayProgress?c.randomAccess:void 0,warpHandler:y.displayWarp?c.onWarp:void 0,afterResume:c.init}),c.cursorControl=_,c.disable(!0)},c.disable=function(m){c.control&&c.control.disable(m)},c.setTune=function(m,_,y){return c.visualObj=m,c.disable(!1),c.options=y,c.control&&(c.pause(),c.setProgress(0,1),c.control.resetAll(),c.restart(),c.isStarted=!1),c.isLooping=!1,_?c.go():Promise.resolve({status:"no-audio-context"})},c.go=function(){c.isLoading=!0;var _,m=100*c.visualObj.millisecondsPerMeasure()/c.warp;return c.currentTempo=Math.round(c.visualObj.getBeatsPerMeasure()/m*6e4),c.control&&c.control.setTempo(c.currentTempo),c.percent=0,c.midiBuffer||(c.midiBuffer=new I),p().resume().then(function(y){return c.midiBuffer.init({visualObj:c.visualObj,options:c.options,millisecondsPerMeasure:m})}).then(function(y){return _=y,c.midiBuffer.prime()}).then(function(){var y=16;return c.cursorControl&&void 0!==c.cursorControl.beatSubdivisions&&parseInt(c.cursorControl.beatSubdivisions,10)>=1&&parseInt(c.cursorControl.beatSubdivisions,10)<=64&&(y=parseInt(c.cursorControl.beatSubdivisions,10)),c.timer=new D(c.visualObj,{beatCallback:c.beatCallback,eventCallback:c.eventCallback,lineEndCallback:c.lineEndCallback,qpm:c.currentTempo,extraMeasuresAtBeginning:c.cursorControl?c.cursorControl.extraMeasuresAtBeginning:void 0,lineEndAnticipation:c.cursorControl?c.cursorControl.lineEndAnticipation:0,beatSubdivisions:y}),c.cursorControl&&c.cursorControl.onReady&&"function"==typeof c.cursorControl.onReady&&c.cursorControl.onReady(c),c.isLoaded=!0,c.isLoading=!1,Promise.resolve({status:"created",notesStatus:_})})},c.destroy=function(){c.timer&&(c.timer.reset(),c.timer.stop(),c.timer=null),c.midiBuffer&&(c.midiBuffer.stop(),c.midiBuffer=null),c.setProgress(0,1),c.control&&c.control.resetAll()},c.play=function(){return c.runWhenReady(c._play,void 0)},c.runWhenReady=function(m,_){return c.visualObj?c.isLoading?function f(m){return new Promise(function(_){setTimeout(_,m)})}(500).then(function(){return c.isLoading?c.runWhenReady(m,_):m(_)}):c.isLoaded?m(_):c.go().then(function(){return m(_)}):Promise.resolve({status:"loading"})},c._play=function(){return p().resume().then(function(){return c.isStarted=!c.isStarted,c.isStarted?(c.cursorControl&&c.cursorControl.onStart&&"function"==typeof c.cursorControl.onStart&&c.cursorControl.onStart(),c.midiBuffer.start(),c.timer.start(c.percent),c.control&&c.control.pushPlay(!0)):c.pause(),Promise.resolve({status:"ok"})})},c.pause=function(){c.timer&&(c.timer.pause(),c.midiBuffer.pause(),c.control&&c.control.pushPlay(!1))},c.toggleLoop=function(){c.isLooping=!c.isLooping,c.control&&c.control.pushLoop(c.isLooping)},c.restart=function(){c.timer&&(c.timer.setProgress(0),c.midiBuffer.seek(0))},c.randomAccess=function(m){return c.runWhenReady(c._randomAccess,m)},c._randomAccess=function(m){var _=m.target.classList.contains("abcjs-midi-progress-indicator")?m.target.parentNode:m.target,y=(m.x-_.offsetLeft)/_.offsetWidth;return y<0&&(y=0),y>1&&(y=1),c.seek(y),Promise.resolve({status:"ok"})},c.seek=function(m,_){c.timer&&c.midiBuffer&&(c.timer.setProgress(m,_),c.midiBuffer.seek(m,_))},c.setWarp=function(m){if(parseInt(m,10)>0){c.warp=parseInt(m,10);var _=c.isStarted,y=c.percent;return c.destroy(),c.isStarted=!1,c.go().then(function(){return c.setProgress(y,1e3*c.midiBuffer.duration),c.control&&c.control.setWarp(c.currentTempo,c.warp),_?c.play().then(function(){return c.seek(y),Promise.resolve()}):(c.seek(y),Promise.resolve())})}return Promise.resolve()},c.onWarp=function(m){return c.setWarp(m.target.value)},c.setProgress=function(m,_){c.percent=m,c.control&&c.control.setProgress(m,_)},c.finished=function(){if(c.timer.reset(),c.isLooping)return c.timer.start(0),c.midiBuffer.finished(),c.midiBuffer.start(),"continue";c.timer.stop(),c.isStarted&&(c.control&&c.control.pushPlay(!1),c.isStarted=!1,c.midiBuffer.finished(),c.cursorControl&&c.cursorControl.onFinished&&"function"==typeof c.cursorControl.onFinished&&c.cursorControl.onFinished(),c.setProgress(0,1))},c.beatCallback=function(m,_,y,E){c.setProgress(m/_,y),c.cursorControl&&c.cursorControl.onBeat&&"function"==typeof c.cursorControl.onBeat&&c.cursorControl.onBeat(m,_,y,E)},c.eventCallback=function(m){if(!m)return c.finished();c.cursorControl&&c.cursorControl.onEvent&&"function"==typeof c.cursorControl.onEvent&&c.cursorControl.onEvent(m)},c.lineEndCallback=function(m,_){c.cursorControl&&c.cursorControl.onLineEnd&&"function"==typeof c.cursorControl.onLineEnd&&c.cursorControl.onLineEnd(m,_)},c.getUrl=function(){return c.midiBuffer.download()},c.download=function(m){var _=c.getUrl(),y=document.createElement("a");document.body.appendChild(y),y.setAttribute("style","display: none;"),y.href=_,y.download=m||"output.wav",y.click(),window.URL.revokeObjectURL(_),document.body.removeChild(y)}}},974:Z=>{Z.exports=function(){var M=this;M.tracks=[],M.totalDuration=0,M.currentInstrument=[],M.starts=[],M.addTrack=function(){return M.tracks.push([]),M.currentInstrument.push(0),M.starts.push(0),M.tracks.length-1},M.setInstrument=function(A,I){M.tracks[A].push({channel:0,cmd:"program",instrument:I}),M.currentInstrument[A]=I},M.appendNote=function(A,I,D,p,b){var c={cmd:"note",duration:D,gap:0,instrument:M.currentInstrument[A],pitch:I,start:M.starts[A],volume:p};b&&(c.cents=b),M.tracks[A].push(c),M.starts[A]+=D,M.totalDuration=Math.max(M.totalDuration,M.starts[A])}}},3115:(Z,H,M)=>{var A=M(5952);function I(D){this.tuning=D._super.params.tuning,this.tuning||(this.tuning=["E,","A,","D","G","B","e"]),D.tuning=this.tuning,this.strings=new A(D)}I.prototype.notesToNumber=function(D,p){return this.strings.notesToNumber(D,p)},I.prototype.stringToPitch=function(D){return this.strings.stringToPitch(D)},Z.exports=I},3597:(Z,H,M)=>{var A=M(1832),I=M(1911),D=M(1090),p=M(3115);function b(){}b.prototype.init=function(f,m,_){var y=new I(f,m,_);this._super=y,this.abcTune=f,this.linePitch=3,this.nbLines=6,this.isTabBig=!0,this.capo=_.capo,this.transpose=_.visualTranspose,this.tablature=new A(this.nbLines,this.linePitch);var E=new p(this);this.semantics=E},b.prototype.render=function(f,m,_){this._super.inError||this.tablature.bypass(m)||new D(this,f,m,_).doLayout()},Z.exports=function(){return{name:"GuitarTab",tablature:b}}},5952:(Z,H,M)=>{const{noteToMidi:A}=M(8167);var I=M(8147),D=M(6249);function _(l,h,w,u,v){var S=l.strings;h.checkKeyAccidentals(l.accidentals,l.measureAccidentals),u&&(S=u);var x=h.emitNoAccidentals(),O=S[w].indexOf(x),B=h.acc;if(-1!=O){if(u&&(O+=v),(h.isFlat||-1==h.acc)&&0==O){var j=h.getAccidentalEquiv();O=S[++w].indexOf(j.emit()),B=0}return{num:O+B,str:w,note:h}}return null}function y(l,h){var w;(h.isAltered||h.natural)&&(h.isFlat?w=h.isDouble?"__":"_":h.isSharp?w=h.isDouble?"^^":"^":h.natural&&(w="="),l.measureAccidentals[h.name.toUpperCase()]=w);for(var u=l.stringPitches.length-1;u>=0;u--)if(h.pitch+h.pitchAltered>=l.stringPitches[u]){var v=h.pitch+h.pitchAltered-l.stringPitches[u];return"^"===h.quarter?v-=.5:"v"===h.quarter&&(v+=.5),{num:Math.round(v),str:l.stringPitches.length-1-u,note:h}}return{num:"?",str:l.stringPitches.length-1,note:h}}function E(l,h){l.push({num:"?",str:0,note:h}),l.error=h.emit()+": unexpected note for instrument"}function g(l){var h=l.tuning,w=l.capo,u=l._super.params.highestNote;this.linePitch=l.linePitch,this.highestNote="a'",u&&(this.highestNote=u),this.measureAccidentals={},this.capo=0,w&&(this.capo=parseInt(w,10)),this.transpose=l.transpose?l.transpose:0,this.tuning=h,this.stringPitches=[];for(var v=0;v0&&(this.capoTuning=function p(l){var h=null,w=l.tuning;if(l.capo>0){h=[];for(var u=0;u0&&(w=l.capoTuning);for(var u=w.length-1,v=0;v1?(S=function m(l,h){for(var w=[],u=0;u0&&(v+=" capo:"+l.capo),w=w.replace("%T",v)),w}return""},Z.exports=g},1832:Z=>{function H(M,A){this.numLines=M,this.lineSpace=A,this.verticalSize=this.numLines*this.lineSpace,this.bar={pitch:3,pitch2:A*M,height:5}}H.prototype.bypass=function(M){var A=M.staffGroup.voices;return!!(A.length>0&&A[0].isPercussion)},H.prototype.setRelative=function(M,A,I){switch(M.type){case"bar":A.pitch=this.bar.pitch,A.pitch2=this.bar.pitch2,A.height=this.height;break;case"symbol":var D=this.bar.pitch2/2;if("dots.dot"==M.name)return I?(A.pitch=D,!1):(A.pitch=D+this.lineSpace,!0)}return I},Z.exports=H},8147:(Z,H,M)=>{var{noteToMidi:A,midiToNote:I}=M(8167);function p(c,f){var m=A(c);f&&(m+=f);var g,_=I(m),y=!1,E=!1,l=null,h=null,w=!1,u=0;c.startsWith("_")?(y=!0,u=-1,"/"==c[1]?(y=!1,h="v",u=0):"_"==c[1]&&(w=!0,u-=1)):c.startsWith("^")?(E=!0,u=1,"/"==c[1]?(E=!1,h="^",u=0):"^"==c[1]&&(w=!0,u+=1)):c.startsWith("=")&&(l=!0,u=0),((g=y||E||null!=h)||l)&&(_=c.slice(null!=h||w?2:1));var v=(_.match(/,/g)||[]).length,S=(_.match(/'/g)||[]).length;this.pitch=m,this.pitchAltered=0,this.name=_,this.acc=u,this.isSharp=E,this.isKeySharp=!1,this.isDouble=w,this.isAltered=g,this.isFlat=y,this.isKeyFlat=!1,this.natural=l,this.quarter=h,this.isLower=this.name==this.name.toLowerCase(),this.name=this.name[0].toUpperCase(),this.hasComma=v,this.isQuoted=S}p.prototype.sameNoteAs=function(c){return c.pitch===this.pitch},p.prototype.isLowerThan=function(c){return c.pitch>this.pitch},p.prototype.checkKeyAccidentals=function(c,f){if(!this.isAltered&&!this.natural)if(f[this.name.toUpperCase()])switch(f[this.name.toUpperCase()]){case"__":return this.acc=-2,void(this.pitchAltered=-2);case"_":return this.acc=-1,void(this.pitchAltered=-1);case"=":return this.acc=0,void(this.pitchAltered=0);case"^":return this.acc=1,void(this.pitchAltered=1);case"^^":return this.acc=2,void(this.pitchAltered=2)}else if(c)for(var m=this.name,_=0;_{var A=M(8147),I=A.notes;function D(p,b){this.fromN=new A.TabNote(p),this.toN=new A.TabNote(b)}D.prototype.build=function(){var p=this.fromN,b=this.toN;if(b.isLowerThan(p)){var c=p.emit();return{error:"Invalid string Instrument tuning : "+b.emit()+" string lower than "+c+" string"}}var m=[],_=I.indexOf(p.name),y=I.indexOf(b.name);if(-1==_||-1==y)return m;for(var E=!1;!E;)m.push(p.emit()),(p=p.nextNote()).sameNoteAs(b)&&(E=!0);return m},Z.exports=D},7374:(Z,H,M)=>{var A=M(1832),I=M(1911),D=M(1090),p=M(4424);function b(){}b.prototype.init=function(f,m,_){var y=new I(f,m,_);this.abcTune=f,this._super=y,this.linePitch=3,this.nbLines=4,this.isTabBig=!1,this.capo=_.capo,this.transpose=_.visualTranspose,this.tablature=new A(this.nbLines,this.linePitch);var E=new p(this);this.semantics=E},b.prototype.render=function(f,m,_){this._super.inError||this.tablature.bypass(m)||new D(this,f,m,_).doLayout()},Z.exports=function(){return{name:"ViolinTab",tablature:b}}},4424:(Z,H,M)=>{var A=M(5952);function I(D){this.tuning=D._super.params.tuning,this.tuning||(this.tuning=["G,","D","A","e"]),D.tuning=this.tuning,this.strings=new A(D)}I.prototype.notesToNumber=function(D,p){return this.strings.notesToNumber(D,p)},I.prototype.stringToPitch=function(D){return this.strings.stringToPitch(D)},Z.exports=I},6605:(Z,H,M)=>{var A=M(6147),I=M(2291);function D(u){return null!=u&&u.constructor===Object}function p(u,v){for(var S in v)v.hasOwnProperty(S)&&(Array.isArray(v[S])||D(v[S])||(u[S]=v[S]))}function b(u){var v=new A("",0,0,"",0);return p(v,u),v.top=0,v.bottom=-1,u.abcelem&&(v.abcelem={},p(v.abcelem,u.abcelem),"note"===v.abcelem.el_type&&(v.abcelem.el_type="tabNumber")),u.cloned=v,v}function c(u,v){var S=b(u);if(v)for(var x=u.children,O=!0,B=0;B=0){if(S===v)return u.extra[x].x+u.extra[x].w/2;S++}return-1}function l(u){if(u.abcelem){var v=u.abcelem;if(v.rest)return v.gracenotes}return null}function h(u,v,S){var x=u.semantics.notesToNumber(v,S);return x.error?(u._super.setError(x.error),x):(x.graces&&x.notes&&(x.notes[x.notes.length-1].graces=x.graces),x)}function w(u,v,S,x,O){for(var B=0;B=0&&(u.semantics.strings.clefTranspose=-12),U.abcelem.type.indexOf("+8")>=0&&(u.semantics.strings.clefTranspose=12)),U.type){case"staff-extra key-signature":this.accidentals=U.abcelem.accidentals,u.semantics.strings.accidentals=this.accidentals;break;case"bar":u.semantics.strings.measureAccidentals={};var L=!1;ee===Y.children.length-1&&(L=!0);var P=c(U,u);if(P.abcelem.barNumber){delete P.abcelem.barNumber;for(var $=0;$0&&(q.abselem=T,S.push(q),te.children.push(T))}}},Z.exports=_},1911:Z=>{function H(M,A,I){this.tune=M,this.params=I,this.tuneNumber=A,this.inError=!1}H.prototype.setError=function(M){var A=this.tune;M&&(this.error=M,this.inError=!0,A.warnings?A.warnings.push(M):A.warnings=[M])},Z.exports=H},1090:(Z,H,M)=>{var A=M(3419),I=M(6605),D=M(2866);function c(u,v){var O=u.renderer.controller.getTextSize,B=u.plugin.semantics.strings.tabInfos(u.plugin),j=O.calc(B,"tablabelfont","text instrumentname");return v.tabNameInfos={textSize:j,name:B},j.height}function f(u,v,S,x){this.renderer=v,this.plugin=u,this.line=S,this.absolutes=new I,this.staffIndex=x,this.tabStaff={clef:{type:"TAB"}},this.tabSize=u.linePitch*u.nbLines}function m(u,v){return!(!v[u].isTabStaff||u!==v.length-1&&v[u+1].isTabStaff)}function y(u,v){for(var S=v;S>=0;S--)if(!u[S].isTabStaff)return S;return-1}function w(u,v){return"clef"===u[v].children[0].abcelem.el_type?null:0==v?"none":u[v-1].children[0]}f.prototype.doLayout=function(){var u=this.line.staff;if(u){var v=u[0];if(v&&v.clef&&0==v.clef.stafflines)return void this.plugin._super.setError("No tablatures when stafflines=0");u.splice(u.length,0,this.tabStaff)}var S=this.line.staffGroup,x=S.voices,B=function b(u){for(var v=0,S=0;Sv&&(v=x.specialY.lyricHeightBelow)}return v}(x[0]),te=S.staffs[this.staffIndex],W=this.tabSize+3-te.bottom-B;te.isTabStaff&&(W=te.top);var q={bottom:-1,isTabStaff:!0,specialY:{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0},lines:this.plugin.nbLines,linePitch:this.plugin.linePitch,dy:.15,top:W},ee=function l(u,v){for(var S=u.staffIndex,x=0,O=0,j=0;;){if(!v[x])return-1;if(v[x].isTabStaff||(j=v[x].voices.length),v[x].isTabStaff){if(O++,m(x,v)&&O=S&&(x+1==v.length||!v[x+1].isTabStaff))return x+1;if(++x>v.length)return-1}}(this,S.staffs);if(-1!==ee){q.parentIndex=ee-1,S.staffs.splice(ee,0,q),S.height+=this.tabSize+3;var U=function h(u,v){for(var S=v;S>=0;S--)if(!u[S].isTabStaff)return u[S];return null}(S.staffs,ee),ne=1;(function g(u,v){return 1===function _(u){for(var v=0,S=0;S1})(S.staffs,U)&&(ne=U.voices.length),this.tabStaff.voices=[];for(var z=0;z0&&(L.duplicate=!0);var P=c(this,L)/D.STEP;P=Math.max(P,1),S.staffs[this.staffIndex].top+=P,S.height+=P*D.STEP,L.staff=q,x.splice(x.length,0,L);var $=w(x,z+this.staffIndex);this.tabStaff.voices[z]=[],this.absolutes.build(this.plugin,x,this.tabStaff.voices[z],z,this.staffIndex,$)}!function E(u){for(var v=0;v{var A=M(6147),I=M(1658),D=M(4588),p=M(9552),b=M(8778),c=M(1691),f=M(8437),m=M(5419),_=M(8312),y=M(6547),E=M(2291),g=M(2866),l=M(1233),h=M(8412),w=M(9751),u=M(3864),v=M(3419),S=M(6976),x=M(6515),O=M(5339),B=function(L){var P=0;return L.duration&&(P=L.duration),P},j=!1,Y={rest:{0:"rests.whole",1:"rests.half",2:"rests.quarter",3:"rests.8th",4:"rests.16th",5:"rests.32nd",6:"rests.64th",7:"rests.128th",multi:"rests.multimeasure"},note:{"-1":"noteheads.dbl",0:"noteheads.whole",1:"noteheads.half",2:"noteheads.quarter",3:"noteheads.quarter",4:"noteheads.quarter",5:"noteheads.quarter",6:"noteheads.quarter",7:"noteheads.quarter",nostem:"noteheads.quarter"},rhythm:{"-1":"noteheads.slash.whole",0:"noteheads.slash.whole",1:"noteheads.slash.whole",2:"noteheads.slash.quarter",3:"noteheads.slash.quarter",4:"noteheads.slash.quarter",5:"noteheads.slash.quarter",6:"noteheads.slash.quarter",7:"noteheads.slash.quarter",nostem:"noteheads.slash.nostem"},x:{"-1":"noteheads.indeterminate",0:"noteheads.indeterminate",1:"noteheads.indeterminate",2:"noteheads.indeterminate",3:"noteheads.indeterminate",4:"noteheads.indeterminate",5:"noteheads.indeterminate",6:"noteheads.indeterminate",7:"noteheads.indeterminate",nostem:"noteheads.indeterminate"},harmonic:{"-1":"noteheads.harmonic.quarter",0:"noteheads.harmonic.quarter",1:"noteheads.harmonic.quarter",2:"noteheads.harmonic.quarter",3:"noteheads.harmonic.quarter",4:"noteheads.harmonic.quarter",5:"noteheads.harmonic.quarter",6:"noteheads.harmonic.quarter",7:"noteheads.harmonic.quarter",nostem:"noteheads.harmonic.quarter"},triangle:{"-1":"noteheads.triangle.quarter",0:"noteheads.triangle.quarter",1:"noteheads.triangle.quarter",2:"noteheads.triangle.quarter",3:"noteheads.triangle.quarter",4:"noteheads.triangle.quarter",5:"noteheads.triangle.quarter",6:"noteheads.triangle.quarter",7:"noteheads.triangle.quarter",nostem:"noteheads.triangle.quarter"},uflags:{3:"flags.u8th",4:"flags.u16th",5:"flags.u32nd",6:"flags.u64th"},dflags:{3:"flags.d8th",4:"flags.d16th",5:"flags.d32nd",6:"flags.d64th"}},te=function(L,P,$){this.decoration=new m,this.getTextSize=L,this.tuneNumber=P,this.isBagpipes=$.bagpipes,this.flatBeams=$.flatbeams,this.graceSlurs=$.graceSlurs,this.percmap=$.percmap,this.initialClef=$.initialClef,this.jazzchords=!!$.jazzchords,this.germanAlphabet=!!$.germanAlphabet,this.reset()};function W(L,P){var $=L[P];if("note"!==$.el_type||!$.startBeam||$.endBeam)return{count:1,elem:$};for(var Q=[];P0&&(T[0].invisible=!0);break;case"meter":T[0]=f(Q,this.tuneNumber),this.startlimitelem=T[0],$.duplicate&&T.length>0&&(T[0].invisible=!0);break;case"clef":if(T[0]=p(Q,this.tuneNumber),!T[0])return null;$.duplicate&&T.length>0&&(T[0].invisible=!0);break;case"key":var R=b(Q,this.tuneNumber);R&&(T[0]=R,this.startlimitelem=T[0]),$.duplicate&&T.length>0&&(T[0].invisible=!0);break;case"stem":this.stemdir="auto"===Q.direction?void 0:Q.direction;break;case"part":var F=new A(Q,0,0,"part",this.tuneNumber),K=this.getTextSize.calc(Q.title,"partsfont","part");F.addFixedX(new E(Q.title,0,0,void 0,{type:"part",height:K.height/g.STEP})),T[0]=F;break;case"tempo":var J=new A(Q,0,0,"tempo",this.tuneNumber);J.addFixedX(new h(Q,this.tuneNumber,c)),T[0]=J;break;case"style":"normal"===Q.head?delete this.style:this.style=Q.head;break;case"hint":j=!0,this.saveState();break;case"midi":break;case"scale":this.voiceScale=Q.size;break;case"color":this.voiceColor=Q.color,$.color=this.voiceColor;break;default:var se=new A(Q,0,0,"unsupported",this.tuneNumber);se.addFixed(new E("element type "+Q.el_type,0,0,void 0,{type:"debug"})),T[0]=se}return T},te.prototype.createBeam=function(L,P,$){var Q=[],T=new I(this.stemHeight*this.voiceScale,this.stemdir,this.flatBeams,$[0]);j&&T.setHint();for(var R=0;R<$.length;R++)T.runningDirection($[R]);T.setStemDirection();var F=this.stemdir;for(this.stemdir=T.stemsUp?"up":"down",R=0;R<$.length;R++){var J=this.createNote($[R],!0,L,P);Q.push(J),T.add(J),this.triplet&&this.triplet.isClosed()&&(P.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1)}return T.calcDir(),P.addBeam(T),this.stemdir=F,Q};var ee=function(L){var P;do{P=!0;for(var $=0;$L.pitches[$+1].pitch){P=!1;var Q=L.pitches[$];L.pitches[$]=L.pitches[$+1],L.pitches[$+1]=Q}}while(!P)},U=function(L,P,$,Q,T,R,F,K,J){for(var se=$;se>11;se--)se%2==0&&!Q&&L.addFixed(new E(null,K,(T+4)*J,se,{type:"ledger"}));for(se=P;se<1;se++)se%2==0&&!Q&&L.addFixed(new E(null,K,(T+4)*J,se,{type:"ledger"}));for(se=0;se1&&(se=new I(T,"grace",R),j&&se.setHint(),se.mainNote=$);var ye,Fe=[];for(ye=L.gracenotes.length-1;ye>=0;ye--)Fe[ye]=F+=10,L.gracenotes[ye].accidental&&(F+=7);for(ye=0;ye=6?"down":"up";for(Q&&($e=Q),(!(T=P.style?P.style:T)||"normal"===T)&&(T="note"),(st=R?Y[T].nostem:Y[T][-F])||console.log("noteSymbol:",T,F,R),Re="down"===$e?P.pitches.length-2:1;"down"===$e?Re>=0:Re11||Bt.verticalPos<1)&&et.push(Bt.verticalPos-Bt.verticalPos%2),"down"===$e?ye=y.getSymbolWidth(st)+2:se=y.getSymbolWidth(st)+2)}var _n=P.pitches.length;for(Re=0;Re0&&(ie.bottom=ie.bottom-1),L.addHead(ie)),ye+=Ce.accidentalshiftx,Fe=Math.max(Fe,Ce.dotshiftx)}if(be){var Ae=Math.round(70*this.voiceScale)/10,Yt="down"===$e?P.minpitch-Ae:P.minpitch+1/3;Yt>6&&!Q&&(Yt=6);var tt="down"===$e?P.maxpitch-1/3:P.maxpitch+Ae;tt<6&&!Q&&(tt=6),ie&&"noteheads.slash.quarter"===ie.c&&("down"===$e?tt-=1:Yt+=1),L.addRight(new E(null,"down"===$e||0===L.heads.length?0:L.heads[0].w,0,Yt,{type:"stem",pitch2:tt,linewidth:"down"===$e?1:-1,bottom:Yt-1})),me=Math.min(Yt,tt)}return{noteHead:ie,roomTaken:ye,roomTakenRight:Fe,min:me,additionalLedgers:et,dir:$e,symbolWidth:Be}},te.prototype.addLyric=function(L,P){var $="";P.lyric.forEach(function(R){$+=R.syllable+(" "===R.divider?"":R.divider)+"\n"});var Q=this.getTextSize.calc($,"vocalfont","lyric");L.addCentered(new E($,0,Q.width,void 0,{type:"lyric",position:P.positioning?P.positioning.vocalPosition:"below",height:Q.height/g.STEP,dim:this.getTextSize.attr("vocalfont","lyric")}))},te.prototype.createNote=function(L,P,$,Q){var se,T=null,R=0,F=0,K=0,J=[],ie=B(L),ye=!1;0===ie&&(ye=!0,ie=.25,P=!0);for(var Fe=Math.floor(Math.log(ie)/Math.log(2)),me=0,Ve=Math.pow(2,Fe),et=Ve/2;Ve1,this.stemdir,$,Fe,this.voiceScale);T=st.noteHead,R=st.roomTaken,F=st.roomTakenRight}else{var Re=this.addNoteToAbcElement($e,L,me,this.stemdir,this.style,ye,Fe,P,Q);void 0!==Re.min&&(this.minY=Math.min(Re.min,this.minY)),T=Re.noteHead,R=Re.roomTaken,F=Re.roomTakenRight,J=Re.additionalLedgers,se=Re.dir,K=Re.symbolWidth}if(void 0!==L.lyric&&this.addLyric($e,L),void 0!==L.gracenotes&&(R+=this.addGraceNotes(L,Q,$e,T,this.stemHeight*this.voiceScale,this.isBagpipes,R)),L.decoration&&this.decoration.createDecoration(Q,L.decoration,$e.top,T?T.w:0,$e,R,se,$e.bottom,L.positioning,this.hasVocals),L.barNumber&&$e.addFixed(new E(L.barNumber,-10,0,0,{type:"barNumber"})),U($e,L.minpitch,L.maxpitch,L.rest,K,J,se,-2,1),void 0!==L.chord){var ut=S(this.getTextSize,$e,L,R,F,K,this.jazzchords,this.germanAlphabet);R=ut.roomTaken,F=ut.roomTakenRight}return L.startTriplet&&(this.triplet=new u(L.startTriplet,T,{flatBeams:this.flatBeams})),L.endTriplet&&this.triplet&&this.triplet.setCloseAnchor(T),this.triplet&&!L.startTriplet&&!L.endTriplet&&!(L.rest&&"spacer"===L.rest.type)&&this.triplet.middleNote(T),$e},te.prototype.addSlursAndTies=function(L,P,$,Q,T,R){if(P.endTie&&this.ties.length>0){for(var F=!1,K=0;K10&&"treble"===P.abcelem.type?13:11)+$.height/g.STEP,{type:"barNumber",dim:this.getTextSize.attr("measurefont","bar-number")}))},te.prototype.createBarLine=function(L,P,$){var Q=new A(P,0,10,"bar",this.tuneNumber),T=null,R=0;P.barNumber&&this.addMeasureNumber(P.barNumber,Q);var F="bar_right_repeat"===P.type||"bar_dbl_repeat"===P.type,K="bar_left_repeat"!==P.type&&"bar_thick_thin"!==P.type&&"bar_invisible"!==P.type,J="bar_right_repeat"===P.type||"bar_dbl_repeat"===P.type||"bar_left_repeat"===P.type||"bar_thin_thick"===P.type||"bar_thick_thin"===P.type,se="bar_left_repeat"===P.type||"bar_thick_thin"===P.type||"bar_thin_thin"===P.type||"bar_dbl_repeat"===P.type,ie="bar_left_repeat"===P.type||"bar_dbl_repeat"===P.type;if(F||ie){for(var ye in this.slurs)this.slurs.hasOwnProperty(ye)&&this.slurs[ye].setEndX(Q);this.startlimitelem=Q}if(F&&(Q.addRight(new E("dots.dot",R,1,7)),Q.addRight(new E("dots.dot",R,1,5)),R+=6),K&&(T=new E(null,R,1,2,{type:"bar",pitch2:10,linewidth:.6}),Q.addRight(T)),"bar_invisible"===P.type&&(T=new E(null,R,1,2,{type:"none",pitch2:10,linewidth:.6}),Q.addRight(T)),P.decoration&&this.decoration.createDecoration(L,P.decoration,12,J?3:1,Q,0,"down",2,P.positioning,this.hasVocals),J&&(T=new E(null,R+=4,4,2,{type:"bar",pitch2:10,linewidth:4}),Q.addRight(T),R+=5),this.partstartelem&&P.endEnding&&(this.partstartelem.anchor2=T,this.partstartelem=null),se&&(T=new E(null,R+=3,1,2,{type:"bar",pitch2:10,linewidth:.6}),Q.addRight(T)),ie&&(Q.addRight(new E("dots.dot",R+=3,1,7)),Q.addRight(new E("dots.dot",R,1,5))),P.startEnding&&$){var Fe=this.getTextSize.calc(P.startEnding,"repeatfont","").width;Q.minspacing+=Fe+10,this.partstartelem=new _(P.startEnding,T,null),L.addOther(this.partstartelem)}return Q.extraw-=5,void 0!==P.chord&&S(this.getTextSize,Q,P,0,0,0,!1,this.germanAlphabet),Q},Z.exports=te},6976:(Z,H,M)=>{var A=M(2291),I=M(2866);const D=M(7292);Z.exports=function(b,c,f,m,_,y,E,g){for(var l=0;l=0;v--){var B,j,S=u[v],x=0;"left"===h||"right"===h||"below"===h||"above"===h||w?(B="annotationfont",j="annotation"):(B="gchordfont",j="chord",S=D(S,E,g));var Y=b.attr(B,j),te=b.calc(S,B,j),W=te.width,q=te.height/I.STEP;switch(h){case"left":c.addExtra(new A(S,x=-(m+=W+7),W+4,f.averagepitch,{type:"text",height:q,dim:Y,position:"left"}));break;case"right":c.addRight(new A(S,x=_+=4,W+4,f.averagepitch,{type:"text",height:q,dim:Y,position:"right"}));break;case"below":c.addRight(new A(S,0,0,void 0,{type:"text",position:"below",height:q,dim:Y,realWidth:W}));break;case"above":c.addRight(new A(S,0,0,void 0,{type:"text",position:"above",height:q,dim:Y,realWidth:W}));break;default:if(w)c.addRight(new A(S,x+w.x,0,f.minpitch+(w.y+3*I.STEP)/I.STEP,{position:"relative",type:"text",height:q,dim:Y}));else{var U="above";f.positioning&&f.positioning.chordPosition&&(U=f.positioning.chordPosition),"hidden"!==U&&c.addCentered(new A(S,y/2,W,void 0,{type:"chord",position:U,height:q,dim:Y,realWidth:W}))}}}return{roomTaken:m,roomTakenRight:_}}},8461:Z=>{Z.exports=function H(M,A,I){if(A.text){A.marginLeft||(A.marginLeft=0),A.klass||(A.klass=""),A.anchor||(A.anchor="start"),A.info||(A.info={startChar:-2,endChar:-2}),A.marginTop&&M.push({move:A.marginTop});var D={left:A.marginLeft,text:A.text,font:A.font,anchor:A.anchor,startChar:A.info.startChar,endChar:A.info.endChar};A.absElemType&&(D.absElemType=A.absElemType),A.inGroup||(D.klass=A.klass),A.name&&(D.name=A.name),M.push(D);var p=I.calc("A",A.font,A.klass),b=A.text.split("\n").length;"\n"===A.text[A.text.length-1]&&b--,A.noMove||(M.push({move:Math.round(1.1*p.height*b)}),A.marginBottom&&M.push({move:A.marginBottom}))}}},9112:Z=>{Z.exports=function(M){for(var A=0,I=0;I{var A=M(6147),I=M(6547),D=M(2291);Z.exports=function(c,f){var m,_=0;c.el_type="clef";var y=new A(c,0,10,"staff-extra clef",f);switch(y.isClef=!0,c.type){case"treble":m="clefs.G";break;case"tenor":case"alto":m="clefs.C";break;case"bass":m="clefs.F";break;case"treble+8":m="clefs.G",_=1;break;case"tenor+8":case"alto+8":m="clefs.C",_=1;break;case"bass+8":m="clefs.F",_=1;break;case"treble-8":m="clefs.G",_=-1;break;case"tenor-8":case"alto-8":m="clefs.C",_=-1;break;case"bass-8":m="clefs.F",_=-1;break;case"none":return null;case"perc":m="clefs.perc";break;default:y.addFixed(new D("clef="+c.type,0,0,void 0,{type:"debug"}))}if(m){var g=I.symbolHeightInPitches(m),l=function b(c){switch(c){case"clefs.G":return-5;case"clefs.C":case"clefs.F":return-4;case"clefs.perc":return-2;default:return 0}}(m);if(y.addRight(new D(m,5,I.getSymbolWidth(m),c.clefPos,{top:g+c.clefPos+l,bottom:c.clefPos+l})),0!==_){var h=.6666666666666666,w=(I.getSymbolWidth(m)-I.getSymbolWidth("8")*h)/2,u=_>0?y.top+3:y.bottom-1,v=_>0?y.top+3:y.bottom-3,S=v-2;"bass-8"===c.type&&(u=3,w=0),y.addRight(new D("8",5+w,I.getSymbolWidth("8")*h,u,{scalex:h,scaley:h,top:v,bottom:S}))}}return y}},8778:(Z,H,M)=>{var A=M(6147),I=M(6547),D=M(2291);Z.exports=function(b,c){if(b.el_type="keySignature",!b.accidentals||0===b.accidentals.length)return null;var f=new A(b,0,10,"staff-extra key-signature",c);f.isKeySig=!0;var m=0;return b.accidentals.forEach(function(_){var y,E=0;switch(_.acc){case"sharp":y="accidentals.sharp",E=-3;break;case"natural":y="accidentals.nat";break;case"flat":y="accidentals.flat",E=-1.2;break;case"quartersharp":y="accidentals.halfsharp",E=-2.5;break;case"quarterflat":y="accidentals.halfflat",E=-1.2;break;default:y="accidentals.flat"}f.addRight(new D(y,m,I.getSymbolWidth(y),_.verticalPos,{thickness:I.symbolHeightInPitches(y),top:_.verticalPos+I.symbolHeightInPitches(y)+E,bottom:_.verticalPos+E})),m+=I.getSymbolWidth(y)+2},this),f}},1691:(Z,H,M)=>{var A=M(6547),I=M(2291);Z.exports=function(p,b,c,f){f||(f={});var x,m=void 0!==f.dir?f.dir:null,_=void 0!==f.headx?f.headx:0,y=void 0!==f.extrax?f.extrax:0,E=void 0!==f.flag?f.flag:null,g=void 0!==f.dot?f.dot:0,l=void 0!==f.dotshiftx?f.dotshiftx:0,h=void 0!==f.scale?f.scale:1,w=void 0!==f.accidentalSlot?f.accidentalSlot:[],u=void 0!==f.shouldExtendStem&&f.shouldExtendStem,v=void 0===f.printAccidentals||f.printAccidentals,S=c.verticalPos,O=0,B=0,j=0;if(void 0===b)p.addFixed(new I("pitch is undefined",0,0,0,{type:"debug"}));else if(""===b)x=new I(null,0,0,S);else{var Y=_;if(c.printer_shift){var te="same"===c.printer_shift?1:0;Y="down"===m?-A.getSymbolWidth(b)*h+te:A.getSymbolWidth(b)*h-te}var W={scalex:h,scaley:h,thickness:A.symbolHeightInPitches(b)*h,name:c.name};if((x=new I(b,Y,A.getSymbolWidth(b)*h,S,W)).stemDir=m,E){var q=S+("down"===m?-7:7)*h;u&&("down"===m&&q>6&&(q=6),"up"===m&&q<6&&(q=6)),p.addRight(new I(E,"down"===m?_:_+x.w-.6,A.getSymbolWidth(E)*h,q,{scalex:h,scaley:h}))}for(B=x.w+l-2+5*g;g>0;g--){var U=1-Math.abs(S)%2;p.addRight(new I("dots.dot",x.w+l-2+5*g,A.getSymbolWidth("dots.dot"),S+U))}}if(x&&(x.highestVert=c.highestVert),v&&c.accidental){var ne;switch(c.accidental){case"quartersharp":ne="accidentals.halfsharp";break;case"dblsharp":ne="accidentals.dblsharp";break;case"sharp":ne="accidentals.sharp";break;case"quarterflat":ne="accidentals.halfflat";break;case"flat":ne="accidentals.flat";break;case"dblflat":ne="accidentals.dblflat";break;case"natural":ne="accidentals.nat"}for(var z=!1,L=y,P=0;P=6){w[P][0]=S,L=w[P][1],z=!0;break}!1===z&&(L-=A.getSymbolWidth(ne)*h+2,w.push([S,L]),O=A.getSymbolWidth(ne)*h+2);var $=A.symbolHeightInPitches(ne);p.addExtra(new I(ne,L,A.getSymbolWidth(ne),S,{scalex:h,scaley:h,top:S+$/2,bottom:S-$/2})),j=A.getSymbolWidth(ne)/2}return{notehead:x,accidentalshiftx:O,dotshiftx:B,extraLeft:j}}},8437:(Z,H,M)=>{var A=M(6147),I=M(6547),D=M(2291);Z.exports=function(b,c){b.el_type="timeSignature";var f=new A(b,0,10,"staff-extra time-signature",c);if("specified"===b.type)for(var m=0,_=0;_{var A=M(9898),I=M(7468),D=M(653),p=M(6547),b=M(2291),c=M(9751),f=function(){this.startDiminuendoX=void 0,this.startCrescendoX=void 0,this.minTop=12,this.minBottom=0};f.prototype.dynamicDecoration=function(l,h,w,u){for(var v,S,x,O=0;O",u)),S&&l.addOther(new I(S.start,S.stop,"<",u)),x&&l.addOther(new D(x.start,x.stop))},f.prototype.createDecoration=function(l,h,w,u,v,S,x,O,B,j){B||(B={ornamentPosition:"above",volumePosition:j?"above":"below",dynamicPosition:j?"above":"below"}),function(l,h,w,u){for(var v=0;v9&&B++;var te=u/2;"center"!==p.getSymbolAlign(Y)&&(te-=p.getSymbolWidth(Y)/2),v.addFixedX(new b(Y,te,p.getSymbolWidth(Y),B))}if("slide"===h[j]&&v.heads[0]){var W=v.heads[0].pitch,q=new b("",-S-15,0,(W-=2)-1),ee=new b("",-S-5,0,W+1);v.addFixedX(q),v.addFixedX(ee),l.addOther(new c({anchor1:q,anchor2:ee,fixedY:!0}))}}return void 0===B&&(B=w),{above:B,below:v.bottom}}(l,h,w,u,v,S,x,O);Y.above=Math.max(Y.above,this.minTop),function(l,h,w,u,v,S,x){function O(ee,U){"above"===ee?u.above+=U:u.below-=U}function B(ee){var U;return"above"===ee?(U=u.above)x&&(U=x),U}function j(ee,U,ne){var z=B(U);w.addFixedX(new b(ee,h/2,0,z+2,{type:"decoration",klass:"ornament",thickness:3,anchor:ne})),O(U,5)}function Y(ee,U){var ne=h/2;"center"!==p.getSymbolAlign(ee)&&(ne-=p.getSymbolWidth(ee)/2);var z=p.symbolHeightInPitches(ee)+1,L=B(U);L="above"===U?L+z/2:L-z/2,w.addFixedX(new b(ee,ne,p.getSymbolWidth(ee),L,{klass:"ornament",thickness:p.symbolHeightInPitches(ee)})),O(U,z)}for(var te={"+":"scripts.stopped",open:"scripts.open",snap:"scripts.snap",wedge:"scripts.wedge",thumb:"scripts.thumb",shortphrase:"scripts.shortphrase",mediumphrase:"scripts.mediumphrase",longphrase:"scripts.longphrase",trill:"scripts.trill",roll:"scripts.roll",irishroll:"scripts.roll",marcato:"scripts.umarcato",dmarcato:"scripts.dmarcato",umarcato:"scripts.umarcato",turn:"scripts.turn",uppermordent:"scripts.prall",pralltriller:"scripts.prall",mordent:"scripts.mordent",lowermordent:"scripts.mordent",downbow:"scripts.downbow",upbow:"scripts.upbow",fermata:"scripts.ufermata",invertedfermata:"scripts.dfermata",breath:",",coda:"scripts.coda",segno:"scripts.segno"},q=0;q{var A=M(1673),I=M(4020),D=function(b,c,f,m,_,y){y||(y={}),this.tuneNumber=_,this.abcelem=b,this.duration=c,this.durationClass=y.durationClassOveride?y.durationClassOveride:this.duration,this.minspacing=f||0,this.x=0,this.children=[],this.heads=[],this.extra=[],this.extraw=0,this.w=0,this.right=[],this.invisible=!1,this.bottom=void 0,this.top=void 0,this.type=m,this.fixed={w:0,t:void 0,b:void 0},this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};D.prototype.getFixedCoords=function(){return{x:this.x,w:this.fixed.w,t:this.fixed.t,b:this.fixed.b}},D.prototype.addExtra=function(p){this.fixed.w=Math.max(this.fixed.w,p.dx+p.w),this.fixed.t=void 0===this.fixed.t?p.top:Math.max(this.fixed.t,p.top),this.fixed.b=void 0===this.fixed.b?p.bottom:Math.min(this.fixed.b,p.bottom),p.dxthis.w&&(this.w=p.dx+p.w),this.right[this.right.length]=p,this._addChild(p)},D.prototype.addFixed=function(p){this._addChild(p)},D.prototype.addFixedX=function(p){this._addChild(p)},D.prototype.addCentered=function(p){var b=p.w/2;-bthis.w&&(this.w=p.dx+b),this.right[this.right.length]=p,this._addChild(p)},D.prototype.setLimit=function(p,b){!b[p]||(this.specialY[p]=this.specialY[p]?Math.max(this.specialY[p],b[p]):b[p])},D.prototype._addChild=function(p){p.parent=this,this.children[this.children.length]=p,this.pushTop(p.top),this.pushBottom(p.bottom),this.setLimit("tempoHeightAbove",p),this.setLimit("partHeightAbove",p),this.setLimit("volumeHeightAbove",p),this.setLimit("dynamicHeightAbove",p),this.setLimit("endingHeightAbove",p),this.setLimit("chordHeightAbove",p),this.setLimit("lyricHeightAbove",p),this.setLimit("lyricHeightBelow",p),this.setLimit("chordHeightBelow",p),this.setLimit("volumeHeightBelow",p),this.setLimit("dynamicHeightBelow",p)},D.prototype.pushTop=function(p){void 0!==p&&(this.top=void 0===this.top?p:Math.max(p,this.top))},D.prototype.pushBottom=function(p){void 0!==p&&(this.bottom=void 0===this.bottom?p:Math.min(p,this.bottom))},D.prototype.setX=function(p){this.x=p;for(var b=0;b{var H=function(I,D,p,b){this.type="BeamElem",this.isflat=!!p,this.isgrace=!(!D||"grace"!==D),this.forceup=!!(this.isgrace||D&&"up"===D),this.forcedown=!(!D||"down"!==D),this.elems=[],this.total=0,this.average=6,this.allrests=!0,this.stemHeight=I,this.beams=[],b&&b.duration?(this.duration=b.duration,b.startTriplet&&(this.duration*=b.tripletMultiplier),this.duration=Math.round(1e3*this.duration)/1e3):this.duration=0};function M(A,I){return I?A/I:0}H.prototype.setHint=function(){this.hint=!0},H.prototype.runningDirection=function(A){var I=A.averagepitch;void 0!==I&&(this.total=Math.round(this.total+I),this.count||(this.count=0),this.count++)},H.prototype.add=function(A){var I=A.abcelem.averagepitch;void 0!==I&&(A.abcelem.rest||(this.allrests=!1),A.beam=this,this.elems.push(A),this.total=Math.round(this.total+I),(void 0===this.min||A.abcelem.minpitchthis.max)&&(this.max=A.abcelem.maxpitch))},H.prototype.addBeam=function(A){this.beams.push(A)},H.prototype.setStemDirection=function(){this.average=M(this.total,this.count),this.stemsUp=!!this.forceup||!this.forcedown&&this.average<6,delete this.count,this.total=0},H.prototype.calcDir=function(){this.average=M(this.total,this.elems.length),this.stemsUp=!!this.forceup||!this.forcedown&&this.average<6;for(var I=this.stemsUp?"up":"down",D=0;D{const A=M(8461);function I(D,p,b,c,f,m){this.rows=[],D.unalignedWords&&D.unalignedWords.length>0&&this.unalignedWords(D.unalignedWords,c,f,m),this.extraText(D,c,f,m),D.footer&&b&&this.footer(D.footer,p,c,m)}I.prototype.unalignedWords=function(D,p,b,c){var f="meta-bottom unaligned-words",m="wordsfont";this.rows.push({startGroup:"unalignedWords",klass:"abcjs-meta-bottom abcjs-unaligned-words",name:"words"});var _=c.calc("i",m,f);this.rows.push({move:b.words});for(var y=0;y0&&A(this.rows,{marginLeft:p,text:f,font:"historyfont",klass:"meta-bottom extra-text",marginTop:b.info,absElemType:"extraText",name:"description"},c)},I.prototype.footer=function(D,p,b,c){var f="header meta-bottom",m="footerfont";this.rows.push({startGroup:"footer",klass:f}),A(this.rows,{marginLeft:b,text:D.left,font:m,klass:f,name:"footer"},c),A(this.rows,{marginLeft:b+p/2,text:D.center,font:m,klass:f,anchor:"middle",name:"footer"},c),A(this.rows,{marginLeft:b+p,text:D.right,font:m,klass:f,anchor:"end",name:"footer"},c)},Z.exports=I},4588:Z=>{var H=function(A,I){this.startVoice=A,this.type=I};H.prototype.setBottomStaff=function(M){this.endVoice=M,this.startVoice.header&&!this.endVoice.header&&(this.header=this.startVoice.header,delete this.startVoice.header)},H.prototype.continuing=function(M){this.lastContinuedVoice=M},H.prototype.getWidth=function(){return 10},H.prototype.isStartVoice=function(M){return!!(this.startVoice&&this.startVoice.staff&&this.startVoice.staff.voices.length>0&&this.startVoice.staff.voices[0]===M)},Z.exports=H},7468:Z=>{Z.exports=function(A,I,D,p){this.type="CrescendoElem",this.anchor1=A,this.anchor2=I,this.dir=D,"above"===p?this.dynamicHeightAbove=6:this.dynamicHeightBelow=6,this.pitch=void 0}},9898:Z=>{Z.exports=function(A,I,D){this.type="DynamicDecoration",this.anchor=A,this.dec=I,"below"===D?this.volumeHeightBelow=6:this.volumeHeightAbove=6,this.pitch=void 0}},8312:Z=>{Z.exports=function(A,I,D){this.type="EndingElem",this.text=A,this.anchor1=I,this.anchor2=D,this.endingHeightAbove=5,this.pitch=void 0}},9662:Z=>{Z.exports=function H(M,A,I,D,p,b){var f,c=M.text;this.rows=[],A&&this.rows.push({move:A});var m=I.calc("textfont","defined-text");if(""===c)this.rows.push({move:2*m.attr["font-size"]});else if("string"==typeof c)this.rows.push({move:m.attr["font-size"]/2}),this.rows.push({left:D,text:c,font:"textfont",klass:"defined-text",anchor:"start",startChar:M.startChar,endChar:M.endChar,absElemType:"freeText",name:"free-text"}),f=b.calc(c,"textfont","defined-text"),this.rows.push({move:f.height});else if(c){for(var _=0,y=D,E="textfont",g=0;g{Z.exports=function(A,I){this.type="GlissandoElem",this.anchor1=A,this.anchor2=I}},2291:Z=>{var H=function(A,I,D,p,b){switch(b=b||{},this.x=0,this.c=A,this.dx=I,this.w=D,this.pitch=p,this.scalex=b.scalex||1,this.scaley=b.scaley||1,this.type=b.type||"symbol",this.pitch2=b.pitch2,this.linewidth=b.linewidth,this.klass=b.klass,this.anchor=b.anchor?b.anchor:"middle",this.top=p,void 0!==this.pitch2&&this.pitch2>this.top&&(this.top=this.pitch2),this.bottom=p,void 0!==this.pitch2&&this.pitch20?this.top+=b.stemHeight:this.bottom+=b.stemHeight),b.dim&&(this.dim=b.dim),b.position&&(this.position=b.position),this.height=b.height?b.height:4,b.top&&(this.top=b.top),b.bottom&&(this.bottom=b.bottom),this.name=b.name?b.name:this.c?this.c:this.type,this.realWidth=b.realWidth?b.realWidth:this.w,this.centerVertically=!1,this.type){case"debug":this.chordHeightAbove=this.height;break;case"lyric":b.position&&"below"===b.position?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":b.position&&"below"===b.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":void 0===this.pitch?b.position&&"below"===b.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height:this.centerVertically=!0;break;case"part":this.partHeightAbove=this.height}};H.prototype.getChordDim=function(){if("debug"===this.type||!this.chordHeightAbove&&!this.chordHeightBelow)return null;var I=this.x-("chord"===this.type?this.realWidth/2:0)-0;return{left:I,right:I+this.realWidth+0}},H.prototype.invertLane=function(M){void 0===this.lane&&(this.lane=0),this.lane=M-this.lane-1},H.prototype.putChordInLane=function(M){this.lane=M,this.chordHeightAbove?this.chordHeightAbove=1.25*this.height*this.lane:this.chordHeightBelow=1.25*this.height*this.lane},H.prototype.getLane=function(){return void 0===this.lane?0:this.lane},H.prototype.setX=function(M){this.x=M+this.dx},Z.exports=H},7274:Z=>{Z.exports=function H(M,A,I){this.rows=[],M&&this.rows.push({move:M}),this.rows.push({separator:A,absElemType:"separator"}),I&&this.rows.push({move:I})}},1233:(Z,H,M)=>{var A=M(9112),I=function(D){this.getTextSize=D,this.voices=[],this.staffs=[],this.brace=void 0,this.bracket=void 0};I.prototype.setLimit=function(D,p){!p.specialY[D]||(p.staff.specialY[D]=p.staff.specialY[D]?Math.max(p.staff.specialY[D],p.specialY[D]):p.specialY[D])},I.prototype.addVoice=function(D,p,b){var c=this.voices.length;this.voices[c]=D,this.staffs[p]?this.staffs[p].voices.push(c):this.staffs[this.staffs.length]={top:10,bottom:2,lines:b,voices:[c],specialY:{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}},D.staff=this.staffs[p]},I.prototype.setHeight=function(){this.height=A(this)},I.prototype.setWidth=function(D){this.w=D;for(var p=0;p{Z.exports=function H(M,A,I,D,p,b){this.rows=[],M&&this.rows.push({move:M}),this.rows.push({left:A.titleleft?p:D,text:I.text,font:"subtitlefont",klass:"text subtitle",anchor:A.titleleft?"start":"middle",startChar:I.startChar,endChar:I.endChar,absElemType:"subtitle",name:"subtitle"});var m=b.calc(I.text,"subtitlefont","text subtitle");this.rows.push({move:m.height})}},8412:(Z,H,M)=>{var A=M(6147),I=M(2291),D=function(b,c,f){this.type="TempoElement",this.tempo=b,this.tempo.type="tempo",this.tuneNumber=c,this.totalHeightInPitches=6,this.tempoHeightAbove=this.totalHeightInPitches,this.pitch=void 0,this.tempo.duration&&!this.tempo.suppressBpm&&(this.note=this.createNote(f,b,c))};D.prototype.setX=function(p){this.x=p},D.prototype.createNote=function(p,b,c){var y,E,g,m=b.duration[0],_=new A(b,m,1,"tempo",c);m<=1/32?(g="noteheads.quarter",E="flags.u32nd",y=0):m<=1/16?(g="noteheads.quarter",E="flags.u16th",y=0):m<=3/32?(g="noteheads.quarter",E="flags.u16nd",y=1):m<=1/8?(g="noteheads.quarter",E="flags.u8th",y=0):m<=3/16?(g="noteheads.quarter",E="flags.u8th",y=1):m<=1/4?(g="noteheads.quarter",y=0):m<=3/8?(g="noteheads.quarter",y=1):m<=.5?(g="noteheads.half",y=0):m<=3/4?(g="noteheads.half",y=1):m<=1?(g="noteheads.whole",y=0):m<=1.5?(g="noteheads.whole",y=1):m<=2?(g="noteheads.dbl",y=0):(g="noteheads.dbl",y=1);var w,h=p(_,g,{verticalPos:0},{dir:"up",flag:E,dot:y,scale:.75}).notehead;return _.addHead(h),"noteheads.whole"!==g&&"noteheads.dbl"!==g&&(w=new I(null,h.dx+h.w,0,.25,{type:"stem",pitch2:3.75,linewidth:-.6}),_.addRight(w)),_},Z.exports=D},9751:Z=>{var H=function(A){this.type="TieElem",this.anchor1=A.anchor1,this.anchor2=A.anchor2,A.isGrace&&(this.isGrace=!0),A.fixedY&&(this.fixedY=!0),A.stemDir&&(this.stemDir=A.stemDir),void 0!==A.voiceNumber&&(this.voiceNumber=A.voiceNumber),void 0!==A.style&&(this.dotted=!0),this.internalNotes=[]};H.prototype.addInternalNote=function(M){this.internalNotes.push(M)},H.prototype.setEndAnchor=function(M){this.anchor2=M,this.anchor1?(this.top=Math.max(this.anchor1.pitch,this.anchor2.pitch)+4,this.bottom=Math.min(this.anchor1.pitch,this.anchor2.pitch)-4):(this.top=this.anchor2.pitch+4,this.bottom=this.anchor2.pitch-4)},H.prototype.setStartX=function(M){this.startLimitX=M},H.prototype.setEndX=function(M){this.endLimitX=M},H.prototype.setHint=function(){this.hint=!0},H.prototype.calcTieDirection=function(){if(this.isGrace)this.above=!1;else if(0===this.voiceNumber)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var M;M=this.anchor1?this.anchor1.pitch:this.anchor2?this.anchor2.pitch:14,this.above=!(!this.anchor1||"down"!==this.anchor1.stemDir||!this.anchor2||"down"!==this.anchor2.stemDir)||(!this.anchor1||"up"!==this.anchor1.stemDir||!this.anchor2||"up"!==this.anchor2.stemDir)&&(this.anchor1&&this.anchor2?M>=6:this.anchor1?"down"===this.anchor1.stemDir:this.anchor2?"down"===this.anchor2.stemDir:M>=6)}},H.prototype.calcSlurDirection=function(){if(this.isGrace)this.above=!1;else if(0===this.voiceNumber)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var M=!1;this.anchor1&&"down"===this.anchor1.stemDir&&(M=!0),this.anchor2&&"down"===this.anchor2.stemDir&&(M=!0);for(var A=0;AM&&(M=this.internalNotes[A].highestVert);M>this.startY&&M>this.endY&&(this.startY=this.endY=M-1)}},Z.exports=H},3128:(Z,H,M)=>{const A=M(8461);Z.exports=function I(D,p,b,c,f,m,_,y,E){if(this.rows=[],D.header&&m){var g=E.calc("X","headerfont","abcjs-header abcjs-meta-top").height;A(this.rows,{marginLeft:_,text:D.header.left,font:"headerfont",klass:"header meta-top",marginTop:-g,info:p.header,name:"header"},E),A(this.rows,{marginLeft:_+f/2,text:D.header.center,font:"headerfont",klass:"header meta-top",marginTop:-g,anchor:"middle",info:p.header,name:"header"},E),A(this.rows,{marginLeft:_+f,text:D.header.right,font:"headerfont",klass:"header meta-top",marginTop:-g,anchor:"end",info:p.header,name:"header"},E)}m&&this.rows.push({move:y.top});var l=b.titleleft?"start":"middle",h=b.titleleft?_:_+f/2;if(D.title&&A(this.rows,{marginLeft:h,text:D.title,font:"titlefont",klass:"title meta-top",marginTop:y.title,anchor:l,absElemType:"title",info:p.title,name:"title"},E),c.length)for(var w=0;w0&&A(this.rows,{marginLeft:_,text:D.rhythm,font:"infofont",klass:"meta-top rhythm",absElemType:"rhythm",noMove:!(!D.composer&&!D.origin),info:p.rhythm,name:"rhythm"},E);var v="";D.composer&&(v+=D.composer),D.origin&&(v+=" ("+D.origin+")"),v.length>0&&A(this.rows,{marginLeft:_+f,text:v,font:"composerfont",klass:"meta-top composer",anchor:"end",absElemType:"composer",info:p.composer,name:"composer"},E)}D.author&&D.author.length>0&&A(this.rows,{marginLeft:_+f,text:D.author,font:"composerfont",klass:"meta-top author",anchor:"end",absElemType:"author",info:p.author,name:"author"},E),D.partOrder&&D.partOrder.length>0&&A(this.rows,{marginLeft:_,text:D.partOrder,font:"partsfont",klass:"meta-top part-order",absElemType:"partOrder",info:p.partOrder,name:"part-order"},E)}},3864:Z=>{var H=function(A,I,D){this.type="TripletElem",this.anchor1=I,this.number=A,this.durationClass=("d"+Math.round(1e3*I.parent.durationClass)/1e3).replace(/\./,"-"),this.middleElems=[],this.flatBeams=D.flatBeams};H.prototype.isClosed=function(){return!!this.anchor2},H.prototype.middleNote=function(M){this.middleElems.push(M)},H.prototype.setCloseAnchor=function(M){this.anchor2=M,(!this.anchor1.parent.beam||"up"===this.anchor1.stemDir)&&(this.endingHeightAbove=4)},Z.exports=H},3419:Z=>{var H=function(A,I){this.children=[],this.beams=[],this.otherchildren=[],this.w=0,this.duplicate=!1,this.voicenumber=A,this.voicetotal=I,this.bottom=7,this.top=7,this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};H.prototype.addChild=function(M){if("bar"===M.type){for(var A=!0,I=0;A&&I{var A=M(2866),I={0:{d:[["M",4.83,-14.97],["c",.33,-.03,1.11,0,1.47,.06],["c",1.68,.36,2.97,1.59,3.78,3.6],["c",1.2,2.97,.81,6.96,-.9,9.27],["c",-.78,1.08,-1.71,1.71,-2.91,1.95],["c",-.45,.09,-1.32,.09,-1.77,0],["c",-.81,-.18,-1.47,-.51,-2.07,-1.02],["c",-2.34,-2.07,-3.15,-6.72,-1.74,-10.2],["c",.87,-2.16,2.28,-3.42,4.14,-3.66],["z"],["m",1.11,.87],["c",-.21,-.06,-.69,-.09,-.87,-.06],["c",-.54,.12,-.87,.42,-1.17,.99],["c",-.36,.66,-.51,1.56,-.6,3],["c",-.03,.75,-.03,4.59,0,5.31],["c",.09,1.5,.27,2.4,.6,3.06],["c",.24,.48,.57,.78,.96,.9],["c",.27,.09,.78,.09,1.05,0],["c",.39,-.12,.72,-.42,.96,-.9],["c",.33,-.66,.51,-1.56,.6,-3.06],["c",.03,-.72,.03,-4.56,0,-5.31],["c",-.09,-1.47,-.27,-2.37,-.6,-3.03],["c",-.24,-.48,-.54,-.78,-.93,-.9],["z"]],w:10.78,h:14.959},1:{d:[["M",3.3,-15.06],["c",.06,-.06,.21,-.03,.66,.15],["c",.81,.39,1.08,.39,1.83,.03],["c",.21,-.09,.39,-.15,.42,-.15],["c",.12,0,.21,.09,.27,.21],["c",.06,.12,.06,.33,.06,5.94],["c",0,3.93,0,5.85,.03,6.03],["c",.06,.36,.15,.69,.27,.96],["c",.36,.75,.93,1.17,1.68,1.26],["c",.3,.03,.39,.09,.39,.3],["c",0,.15,-.03,.18,-.09,.24],["c",-.06,.06,-.09,.06,-.48,.06],["c",-.42,0,-.69,-.03,-2.1,-.24],["c",-.9,-.15,-1.77,-.15,-2.67,0],["c",-1.41,.21,-1.68,.24,-2.1,.24],["c",-.39,0,-.42,0,-.48,-.06],["c",-.06,-.06,-.06,-.09,-.06,-.24],["c",0,-.21,.06,-.27,.36,-.3],["c",.75,-.09,1.32,-.51,1.68,-1.26],["c",.12,-.27,.21,-.6,.27,-.96],["c",.03,-.18,.03,-1.59,.03,-4.29],["c",0,-3.87,0,-4.05,-.06,-4.14],["c",-.09,-.15,-.18,-.24,-.39,-.24],["c",-.12,0,-.15,.03,-.21,.06],["c",-.03,.06,-.45,.99,-.96,2.13],["c",-.48,1.14,-.9,2.1,-.93,2.16],["c",-.06,.15,-.21,.24,-.33,.24],["c",-.24,0,-.42,-.18,-.42,-.39],["c",0,-.06,3.27,-7.62,3.33,-7.74],["z"]],w:8.94,h:15.058},2:{d:[["M",4.23,-14.97],["c",.57,-.06,1.68,0,2.34,.18],["c",.69,.18,1.5,.54,2.01,.9],["c",1.35,.96,1.95,2.25,1.77,3.81],["c",-.15,1.35,-.66,2.34,-1.68,3.15],["c",-.6,.48,-1.44,.93,-3.12,1.65],["c",-1.32,.57,-1.8,.81,-2.37,1.14],["c",-.57,.33,-.57,.33,-.24,.27],["c",.39,-.09,1.26,-.09,1.68,0],["c",.72,.15,1.41,.45,2.1,.9],["c",.99,.63,1.86,.87,2.55,.75],["c",.24,-.06,.42,-.15,.57,-.3],["c",.12,-.09,.3,-.42,.3,-.51],["c",0,-.09,.12,-.21,.24,-.24],["c",.18,-.03,.39,.12,.39,.3],["c",0,.12,-.15,.57,-.3,.87],["c",-.54,1.02,-1.56,1.74,-2.79,2.01],["c",-.42,.09,-1.23,.09,-1.62,.03],["c",-.81,-.18,-1.32,-.45,-2.01,-1.11],["c",-.45,-.45,-.63,-.57,-.96,-.69],["c",-.84,-.27,-1.89,.12,-2.25,.9],["c",-.12,.21,-.21,.54,-.21,.72],["c",0,.12,-.12,.21,-.27,.24],["c",-.15,0,-.27,-.03,-.33,-.15],["c",-.09,-.21,.09,-1.08,.33,-1.71],["c",.24,-.66,.66,-1.26,1.29,-1.89],["c",.45,-.45,.9,-.81,1.92,-1.56],["c",1.29,-.93,1.89,-1.44,2.34,-1.98],["c",.87,-1.05,1.26,-2.19,1.2,-3.63],["c",-.06,-1.29,-.39,-2.31,-.96,-2.91],["c",-.36,-.33,-.72,-.51,-1.17,-.54],["c",-.84,-.03,-1.53,.42,-1.59,1.05],["c",-.03,.33,.12,.6,.57,1.14],["c",.45,.54,.54,.87,.42,1.41],["c",-.15,.63,-.54,1.11,-1.08,1.38],["c",-.63,.33,-1.2,.33,-1.83,0],["c",-.24,-.12,-.33,-.18,-.54,-.39],["c",-.18,-.18,-.27,-.3,-.36,-.51],["c",-.24,-.45,-.27,-.84,-.21,-1.38],["c",.12,-.75,.45,-1.41,1.02,-1.98],["c",.72,-.72,1.74,-1.17,2.85,-1.32],["z"]],w:10.764,h:14.97},3:{d:[["M",3.78,-14.97],["c",.3,-.03,1.41,0,1.83,.06],["c",2.22,.3,3.51,1.32,3.72,2.91],["c",.03,.33,.03,1.26,-.03,1.65],["c",-.12,.84,-.48,1.47,-1.05,1.77],["c",-.27,.15,-.36,.24,-.45,.39],["c",-.09,.21,-.09,.36,0,.57],["c",.09,.15,.18,.24,.51,.39],["c",.75,.42,1.23,1.14,1.41,2.13],["c",.06,.42,.06,1.35,0,1.71],["c",-.18,.81,-.48,1.38,-1.02,1.95],["c",-.75,.72,-1.8,1.2,-3.18,1.38],["c",-.42,.06,-1.56,.06,-1.95,0],["c",-1.89,-.33,-3.18,-1.29,-3.51,-2.64],["c",-.03,-.12,-.03,-.33,-.03,-.6],["c",0,-.36,0,-.42,.06,-.63],["c",.12,-.3,.27,-.51,.51,-.75],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.36,.33,.57,.75,.6,1.2],["c",0,.21,0,.27,-.06,.42],["c",-.09,.18,-.12,.24,-.54,.54],["c",-.51,.36,-.63,.54,-.6,.87],["c",.06,.54,.54,.9,1.38,.99],["c",.36,.06,.72,.03,.96,-.06],["c",.81,-.27,1.29,-1.23,1.44,-2.79],["c",.03,-.45,.03,-1.95,-.03,-2.37],["c",-.09,-.75,-.33,-1.23,-.75,-1.44],["c",-.33,-.18,-.45,-.18,-1.98,-.18],["c",-1.35,0,-1.41,0,-1.5,-.06],["c",-.18,-.12,-.24,-.39,-.12,-.6],["c",.12,-.15,.15,-.15,1.68,-.15],["c",1.5,0,1.62,0,1.89,-.15],["c",.18,-.09,.42,-.36,.54,-.57],["c",.18,-.42,.27,-.9,.3,-1.95],["c",.03,-1.2,-.06,-1.8,-.36,-2.37],["c",-.24,-.48,-.63,-.81,-1.14,-.96],["c",-.3,-.06,-1.08,-.06,-1.38,.03],["c",-.6,.15,-.9,.42,-.96,.84],["c",-.03,.3,.06,.45,.63,.84],["c",.33,.24,.42,.39,.45,.63],["c",.03,.72,-.57,1.5,-1.32,1.65],["c",-1.05,.27,-2.1,-.57,-2.1,-1.65],["c",0,-.45,.15,-.96,.39,-1.38],["c",.12,-.21,.54,-.63,.81,-.81],["c",.57,-.42,1.38,-.69,2.25,-.81],["z"]],w:9.735,h:14.967},4:{d:[["M",8.64,-14.94],["c",.27,-.09,.42,-.12,.54,-.03],["c",.09,.06,.15,.21,.15,.3],["c",-.03,.06,-1.92,2.31,-4.23,5.04],["c",-2.31,2.73,-4.23,4.98,-4.26,5.01],["c",-.03,.06,.12,.06,2.55,.06],["l",2.61,0],["l",0,-2.37],["c",0,-2.19,.03,-2.37,.06,-2.46],["c",.03,-.06,.21,-.18,.57,-.42],["c",1.08,-.72,1.38,-1.08,1.86,-2.16],["c",.12,-.3,.24,-.54,.27,-.57],["c",.12,-.12,.39,-.06,.45,.12],["c",.06,.09,.06,.57,.06,3.96],["l",0,3.9],["l",1.08,0],["c",1.05,0,1.11,0,1.2,.06],["c",.24,.15,.24,.54,0,.69],["c",-.09,.06,-.15,.06,-1.2,.06],["l",-1.08,0],["l",0,.33],["c",0,.57,.09,1.11,.3,1.53],["c",.36,.75,.93,1.17,1.68,1.26],["c",.3,.03,.39,.09,.39,.3],["c",0,.15,-.03,.18,-.09,.24],["c",-.06,.06,-.09,.06,-.48,.06],["c",-.42,0,-.69,-.03,-2.1,-.24],["c",-.9,-.15,-1.77,-.15,-2.67,0],["c",-1.41,.21,-1.68,.24,-2.1,.24],["c",-.39,0,-.42,0,-.48,-.06],["c",-.06,-.06,-.06,-.09,-.06,-.24],["c",0,-.21,.06,-.27,.36,-.3],["c",.75,-.09,1.32,-.51,1.68,-1.26],["c",.21,-.42,.3,-.96,.3,-1.53],["l",0,-.33],["l",-2.7,0],["c",-2.91,0,-2.85,0,-3.09,-.15],["c",-.18,-.12,-.3,-.39,-.27,-.54],["c",.03,-.06,.18,-.24,.33,-.45],["c",.75,-.9,1.59,-2.07,2.13,-3.03],["c",.33,-.54,.84,-1.62,1.05,-2.16],["c",.57,-1.41,.84,-2.64,.9,-4.05],["c",.03,-.63,.06,-.72,.24,-.81],["l",.12,-.06],["l",.45,.12],["c",.66,.18,1.02,.24,1.47,.27],["c",.6,.03,1.23,-.09,2.01,-.33],["z"]],w:11.795,h:14.994},5:{d:[["M",1.02,-14.94],["c",.12,-.09,.03,-.09,1.08,.06],["c",2.49,.36,4.35,.36,6.96,-.06],["c",.57,-.09,.66,-.06,.81,.06],["c",.15,.18,.12,.24,-.15,.51],["c",-1.29,1.26,-3.24,2.04,-5.58,2.31],["c",-.6,.09,-1.2,.12,-1.71,.12],["c",-.39,0,-.45,0,-.57,.06],["c",-.09,.06,-.15,.12,-.21,.21],["l",-.06,.12],["l",0,1.65],["l",0,1.65],["l",.21,-.21],["c",.66,-.57,1.41,-.96,2.19,-1.14],["c",.33,-.06,1.41,-.06,1.95,0],["c",2.61,.36,4.02,1.74,4.26,4.14],["c",.03,.45,.03,1.08,-.03,1.44],["c",-.18,1.02,-.78,2.01,-1.59,2.7],["c",-.72,.57,-1.62,1.02,-2.49,1.2],["c",-1.38,.27,-3.03,.06,-4.2,-.54],["c",-1.08,-.54,-1.71,-1.32,-1.86,-2.28],["c",-.09,-.69,.09,-1.29,.57,-1.74],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.36,.33,.57,.75,.6,1.2],["c",0,.21,0,.27,-.06,.42],["c",-.09,.18,-.12,.24,-.54,.54],["c",-.18,.12,-.36,.3,-.42,.33],["c",-.36,.42,-.18,.99,.36,1.26],["c",.51,.27,1.47,.36,2.01,.27],["c",.93,-.21,1.47,-1.17,1.65,-2.91],["c",.06,-.45,.06,-1.89,0,-2.31],["c",-.15,-1.2,-.51,-2.1,-1.05,-2.55],["c",-.21,-.18,-.54,-.36,-.81,-.39],["c",-.3,-.06,-.84,-.03,-1.26,.06],["c",-.93,.18,-1.65,.6,-2.16,1.2],["c",-.15,.21,-.27,.3,-.39,.3],["c",-.15,0,-.3,-.09,-.36,-.18],["c",-.06,-.09,-.06,-.15,-.06,-3.66],["c",0,-3.39,0,-3.57,.06,-3.66],["c",.03,-.06,.09,-.15,.15,-.18],["z"]],w:10.212,h:14.997},6:{d:[["M",4.98,-14.97],["c",.36,-.03,1.2,0,1.59,.06],["c",.9,.15,1.68,.51,2.25,1.05],["c",.57,.51,.87,1.23,.84,1.98],["c",-.03,.51,-.21,.9,-.6,1.26],["c",-.24,.24,-.45,.39,-.75,.51],["c",-.21,.06,-.27,.06,-.6,.06],["c",-.33,0,-.39,0,-.6,-.06],["c",-.3,-.12,-.51,-.27,-.75,-.51],["c",-.39,-.36,-.57,-.78,-.57,-1.26],["c",0,-.27,0,-.3,.09,-.42],["c",.03,-.09,.18,-.21,.3,-.3],["c",.12,-.09,.3,-.21,.39,-.27],["c",.09,-.06,.21,-.18,.27,-.24],["c",.06,-.12,.09,-.15,.09,-.33],["c",0,-.18,-.03,-.24,-.09,-.36],["c",-.24,-.39,-.75,-.6,-1.38,-.57],["c",-.54,.03,-.9,.18,-1.23,.48],["c",-.81,.72,-1.08,2.16,-.96,5.37],["l",0,.63],["l",.3,-.12],["c",.78,-.27,1.29,-.33,2.1,-.27],["c",1.47,.12,2.49,.54,3.27,1.29],["c",.48,.51,.81,1.11,.96,1.89],["c",.06,.27,.06,.42,.06,.93],["c",0,.54,0,.69,-.06,.96],["c",-.15,.78,-.48,1.38,-.96,1.89],["c",-.54,.51,-1.17,.87,-1.98,1.08],["c",-1.14,.3,-2.4,.33,-3.24,.03],["c",-1.5,-.48,-2.64,-1.89,-3.27,-4.02],["c",-.36,-1.23,-.51,-2.82,-.42,-4.08],["c",.3,-3.66,2.28,-6.3,4.95,-6.66],["z"],["m",.66,7.41],["c",-.27,-.09,-.81,-.12,-1.08,-.06],["c",-.72,.18,-1.08,.69,-1.23,1.71],["c",-.06,.54,-.06,3,0,3.54],["c",.18,1.26,.72,1.77,1.8,1.74],["c",.39,-.03,.63,-.09,.9,-.27],["c",.66,-.42,.9,-1.32,.9,-3.24],["c",0,-2.22,-.36,-3.12,-1.29,-3.42],["z"]],w:9.956,h:14.982},7:{d:[["M",.21,-14.97],["c",.21,-.06,.45,0,.54,.15],["c",.06,.09,.06,.15,.06,.39],["c",0,.24,0,.33,.06,.42],["c",.06,.12,.21,.24,.27,.24],["c",.03,0,.12,-.12,.24,-.21],["c",.96,-1.2,2.58,-1.35,3.99,-.42],["c",.15,.12,.42,.3,.54,.45],["c",.48,.39,.81,.57,1.29,.6],["c",.69,.03,1.5,-.3,2.13,-.87],["c",.09,-.09,.27,-.3,.39,-.45],["c",.12,-.15,.24,-.27,.3,-.3],["c",.18,-.06,.39,.03,.51,.21],["c",.06,.18,.06,.24,-.27,.72],["c",-.18,.24,-.54,.78,-.78,1.17],["c",-2.37,3.54,-3.54,6.27,-3.87,9],["c",-.03,.33,-.03,.66,-.03,1.26],["c",0,.9,0,1.08,.15,1.89],["c",.06,.45,.06,.48,.03,.6],["c",-.06,.09,-.21,.21,-.3,.21],["c",-.03,0,-.27,-.06,-.54,-.15],["c",-.84,-.27,-1.11,-.3,-1.65,-.3],["c",-.57,0,-.84,.03,-1.56,.27],["c",-.6,.18,-.69,.21,-.81,.15],["c",-.12,-.06,-.21,-.18,-.21,-.3],["c",0,-.15,.6,-1.44,1.2,-2.61],["c",1.14,-2.22,2.73,-4.68,5.1,-8.01],["c",.21,-.27,.36,-.48,.33,-.48],["c",0,0,-.12,.06,-.27,.12],["c",-.54,.3,-.99,.39,-1.56,.39],["c",-.75,.03,-1.2,-.18,-1.83,-.75],["c",-.99,-.9,-1.83,-1.17,-2.31,-.72],["c",-.18,.15,-.36,.51,-.45,.84],["c",-.06,.24,-.06,.33,-.09,1.98],["c",0,1.62,-.03,1.74,-.06,1.8],["c",-.15,.24,-.54,.24,-.69,0],["c",-.06,-.09,-.06,-.15,-.06,-3.57],["c",0,-3.42,0,-3.48,.06,-3.57],["c",.03,-.06,.09,-.12,.15,-.15],["z"]],w:10.561,h:15.093},8:{d:[["M",4.98,-14.97],["c",.33,-.03,1.02,-.03,1.32,0],["c",1.32,.12,2.49,.6,3.21,1.32],["c",.39,.39,.66,.81,.78,1.29],["c",.09,.36,.09,1.08,0,1.44],["c",-.21,.84,-.66,1.59,-1.59,2.55],["l",-.3,.3],["l",.27,.18],["c",1.47,.93,2.31,2.31,2.25,3.75],["c",-.03,.75,-.24,1.35,-.63,1.95],["c",-.45,.66,-1.02,1.14,-1.83,1.53],["c",-1.8,.87,-4.2,.87,-6,.03],["c",-1.62,-.78,-2.52,-2.16,-2.46,-3.66],["c",.06,-.99,.54,-1.77,1.8,-2.97],["c",.54,-.51,.54,-.54,.48,-.57],["c",-.39,-.27,-.96,-.78,-1.2,-1.14],["c",-.75,-1.11,-.87,-2.4,-.3,-3.6],["c",.69,-1.35,2.25,-2.25,4.2,-2.4],["z"],["m",1.53,.69],["c",-.42,-.09,-1.11,-.12,-1.38,-.06],["c",-.3,.06,-.6,.18,-.81,.3],["c",-.21,.12,-.6,.51,-.72,.72],["c",-.51,.87,-.42,1.89,.21,2.52],["c",.21,.21,.36,.3,1.95,1.23],["c",.96,.54,1.74,.99,1.77,1.02],["c",.09,0,.63,-.6,.99,-1.11],["c",.21,-.36,.48,-.87,.57,-1.23],["c",.06,-.24,.06,-.36,.06,-.72],["c",0,-.45,-.03,-.66,-.15,-.99],["c",-.39,-.81,-1.29,-1.44,-2.49,-1.68],["z"],["m",-1.44,8.07],["l",-1.89,-1.08],["c",-.03,0,-.18,.15,-.39,.33],["c",-1.2,1.08,-1.65,1.95,-1.59,3],["c",.09,1.59,1.35,2.85,3.21,3.24],["c",.33,.06,.45,.06,.93,.06],["c",.63,0,.81,-.03,1.29,-.27],["c",.9,-.42,1.47,-1.41,1.41,-2.4],["c",-.06,-.66,-.39,-1.29,-.9,-1.65],["c",-.12,-.09,-1.05,-.63,-2.07,-1.23],["z"]],w:10.926,h:14.989},9:{d:[["M",4.23,-14.97],["c",.42,-.03,1.29,0,1.62,.06],["c",.51,.12,.93,.3,1.38,.57],["c",1.53,1.02,2.52,3.24,2.73,5.94],["c",.18,2.55,-.48,4.98,-1.83,6.57],["c",-1.05,1.26,-2.4,1.89,-3.93,1.83],["c",-1.23,-.06,-2.31,-.45,-3.03,-1.14],["c",-.57,-.51,-.87,-1.23,-.84,-1.98],["c",.03,-.51,.21,-.9,.6,-1.26],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.39,.36,.57,.78,.57,1.26],["c",0,.27,0,.3,-.09,.42],["c",-.03,.09,-.18,.21,-.3,.3],["c",-.12,.09,-.3,.21,-.39,.27],["c",-.09,.06,-.21,.18,-.27,.24],["c",-.06,.12,-.06,.15,-.06,.33],["c",0,.18,0,.24,.06,.36],["c",.24,.39,.75,.6,1.38,.57],["c",.54,-.03,.9,-.18,1.23,-.48],["c",.81,-.72,1.08,-2.16,.96,-5.37],["l",0,-.63],["l",-.3,.12],["c",-.78,.27,-1.29,.33,-2.1,.27],["c",-1.47,-.12,-2.49,-.54,-3.27,-1.29],["c",-.48,-.51,-.81,-1.11,-.96,-1.89],["c",-.06,-.27,-.06,-.42,-.06,-.96],["c",0,-.51,0,-.66,.06,-.93],["c",.15,-.78,.48,-1.38,.96,-1.89],["c",.15,-.12,.33,-.27,.42,-.36],["c",.69,-.51,1.62,-.81,2.76,-.93],["z"],["m",1.17,.66],["c",-.21,-.06,-.57,-.06,-.81,-.03],["c",-.78,.12,-1.26,.69,-1.41,1.74],["c",-.12,.63,-.15,1.95,-.09,2.79],["c",.12,1.71,.63,2.4,1.77,2.46],["c",1.08,.03,1.62,-.48,1.8,-1.74],["c",.06,-.54,.06,-3,0,-3.54],["c",-.15,-1.05,-.51,-1.53,-1.26,-1.68],["z"]],w:9.959,h:14.986},"rests.multimeasure":{d:[["M",0,-4],["l",0,16],["l",1,0],["l",0,-5],["l",40,0],["l",0,5],["l",1,0],["l",0,-16],["l",-1,0],["l",0,5],["l",-40,0],["l",0,-5],["z"]],w:42,h:18},"rests.whole":{d:[["M",.06,.03],["l",.09,-.06],["l",5.46,0],["l",5.49,0],["l",.09,.06],["l",.06,.09],["l",0,2.19],["l",0,2.19],["l",-.06,.09],["l",-.09,.06],["l",-5.49,0],["l",-5.46,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.half":{d:[["M",.06,-4.62],["l",.09,-.06],["l",5.46,0],["l",5.49,0],["l",.09,.06],["l",.06,.09],["l",0,2.19],["l",0,2.19],["l",-.06,.09],["l",-.09,.06],["l",-5.49,0],["l",-5.46,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.quarter":{d:[["M",1.89,-11.82],["c",.12,-.06,.24,-.06,.36,-.03],["c",.09,.06,4.74,5.58,4.86,5.82],["c",.21,.39,.15,.78,-.15,1.26],["c",-.24,.33,-.72,.81,-1.62,1.56],["c",-.45,.36,-.87,.75,-.96,.84],["c",-.93,.99,-1.14,2.49,-.6,3.63],["c",.18,.39,.27,.48,1.32,1.68],["c",1.92,2.25,1.83,2.16,1.83,2.34],["c",0,.18,-.18,.36,-.36,.39],["c",-.15,0,-.27,-.06,-.48,-.27],["c",-.75,-.75,-2.46,-1.29,-3.39,-1.08],["c",-.45,.09,-.69,.27,-.9,.69],["c",-.12,.3,-.21,.66,-.24,1.14],["c",-.03,.66,.09,1.35,.3,2.01],["c",.15,.42,.24,.66,.45,.96],["c",.18,.24,.18,.33,.03,.42],["c",-.12,.06,-.18,.03,-.45,-.3],["c",-1.08,-1.38,-2.07,-3.36,-2.4,-4.83],["c",-.27,-1.05,-.15,-1.77,.27,-2.07],["c",.21,-.12,.42,-.15,.87,-.15],["c",.87,.06,2.1,.39,3.3,.9],["l",.39,.18],["l",-1.65,-1.95],["c",-2.52,-2.97,-2.61,-3.09,-2.7,-3.27],["c",-.09,-.24,-.12,-.48,-.03,-.75],["c",.15,-.48,.57,-.96,1.83,-2.01],["c",.45,-.36,.84,-.72,.93,-.78],["c",.69,-.75,1.02,-1.8,.9,-2.79],["c",-.06,-.33,-.21,-.84,-.39,-1.11],["c",-.09,-.15,-.45,-.6,-.81,-1.05],["c",-.36,-.42,-.69,-.81,-.72,-.87],["c",-.09,-.18,0,-.42,.21,-.51],["z"]],w:7.888,h:21.435},"rests.8th":{d:[["M",1.68,-6.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.12,0,.18,0,.33,-.09],["c",.39,-.18,1.32,-1.29,1.68,-1.98],["c",.09,-.21,.24,-.3,.39,-.3],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.27,1.11,-1.86,6.42],["c",-1.02,3.48,-1.89,6.39,-1.92,6.42],["c",0,.03,-.12,.12,-.24,.15],["c",-.18,.09,-.21,.09,-.45,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.15,-.57,1.68,-4.92],["c",.96,-2.67,1.74,-4.89,1.71,-4.89],["l",-.51,.15],["c",-1.08,.36,-1.74,.48,-2.55,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:7.534,h:13.883},"rests.16th":{d:[["M",3.33,-6.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.15,.39,.57,.57,.87,.42],["c",.39,-.18,1.2,-1.23,1.62,-2.07],["c",.06,-.15,.24,-.24,.36,-.24],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.45,1.86,-2.67,10.17],["c",-1.5,5.55,-2.73,10.14,-2.76,10.17],["c",-.03,.03,-.12,.12,-.24,.15],["c",-.18,.09,-.21,.09,-.45,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.12,-.57,1.44,-4.92],["c",.81,-2.67,1.47,-4.86,1.47,-4.89],["c",-.03,0,-.27,.06,-.54,.15],["c",-1.08,.36,-1.77,.48,-2.58,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.09,.09,.27,.18,.45,.21],["c",.12,0,.18,0,.33,-.09],["c",.33,-.15,1.02,-.93,1.41,-1.59],["c",.12,-.21,.18,-.39,.39,-1.08],["c",.66,-2.1,1.17,-3.84,1.17,-3.87],["c",0,0,-.21,.06,-.42,.15],["c",-.51,.15,-1.2,.33,-1.68,.42],["c",-.33,.06,-.51,.06,-.96,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:9.724,h:21.383},"rests.32nd":{d:[["M",4.23,-13.62],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.12,0,.18,0,.27,-.06],["c",.33,-.21,.99,-1.11,1.44,-1.98],["c",.09,-.24,.21,-.33,.39,-.33],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.57,2.67,-3.21,13.89],["c",-1.8,7.62,-3.3,13.89,-3.3,13.92],["c",-.03,.06,-.12,.12,-.24,.18],["c",-.21,.09,-.24,.09,-.48,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.09,-.57,1.23,-4.92],["c",.69,-2.67,1.26,-4.86,1.29,-4.89],["c",0,-.03,-.12,-.03,-.48,.12],["c",-1.17,.39,-2.22,.57,-3,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.12,.09,.3,.18,.48,.21],["c",.12,0,.18,0,.3,-.09],["c",.42,-.21,1.29,-1.29,1.56,-1.89],["c",.03,-.12,1.23,-4.59,1.23,-4.65],["c",0,-.03,-.18,.03,-.39,.12],["c",-.63,.18,-1.2,.36,-1.74,.45],["c",-.39,.06,-.54,.06,-1.02,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.18,.18,.51,.27,.72,.15],["c",.3,-.12,.69,-.57,1.08,-1.17],["c",.42,-.6,.39,-.51,1.05,-3.03],["c",.33,-1.26,.6,-2.31,.6,-2.34],["c",0,0,-.21,.03,-.45,.12],["c",-.57,.18,-1.14,.33,-1.62,.42],["c",-.33,.06,-.51,.06,-.96,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:11.373,h:28.883},"rests.64th":{d:[["M",5.13,-13.62],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.21,.54,.3,.75,.18],["c",.24,-.12,.63,-.66,1.08,-1.56],["c",.33,-.66,.39,-.72,.6,-.72],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.69,3.66,-3.54,17.64],["c",-1.95,9.66,-3.57,17.61,-3.57,17.64],["c",-.03,.06,-.12,.12,-.24,.18],["c",-.21,.09,-.24,.09,-.48,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.06,-.57,1.05,-4.95],["c",.6,-2.7,1.08,-4.89,1.08,-4.92],["c",0,0,-.24,.06,-.51,.15],["c",-.66,.24,-1.2,.36,-1.77,.48],["c",-.42,.06,-.57,.06,-1.05,.06],["c",-.69,0,-.87,-.03,-1.35,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.09,.09,.27,.18,.45,.21],["c",.21,.03,.39,-.09,.72,-.42],["c",.45,-.45,1.02,-1.26,1.17,-1.65],["c",.03,-.09,.27,-1.14,.54,-2.34],["c",.27,-1.2,.48,-2.19,.51,-2.22],["c",0,-.03,-.09,-.03,-.48,.12],["c",-1.17,.39,-2.22,.57,-3,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.15,.39,.57,.57,.9,.42],["c",.36,-.18,1.2,-1.26,1.47,-1.89],["c",.03,-.09,.3,-1.2,.57,-2.43],["l",.51,-2.28],["l",-.54,.18],["c",-1.11,.36,-1.8,.48,-2.61,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.21,.21,.54,.3,.75,.18],["c",.36,-.18,.93,-.93,1.29,-1.68],["c",.12,-.24,.18,-.48,.63,-2.55],["l",.51,-2.31],["c",0,-.03,-.18,.03,-.39,.12],["c",-1.14,.36,-2.1,.54,-2.82,.51],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:12.453,h:36.383},"rests.128th":{d:[["M",6.03,-21.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.21,0,.33,-.06,.54,-.36],["c",.15,-.21,.54,-.93,.78,-1.47],["c",.15,-.33,.18,-.39,.3,-.48],["c",.18,-.09,.45,0,.51,.15],["c",.03,.09,-7.11,42.75,-7.17,42.84],["c",-.03,.03,-.15,.09,-.24,.15],["c",-.18,.06,-.24,.06,-.45,.06],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.03,-.57,.84,-4.98],["c",.51,-2.7,.93,-4.92,.9,-4.92],["c",0,0,-.15,.06,-.36,.12],["c",-.78,.27,-1.62,.48,-2.31,.57],["c",-.15,.03,-.54,.03,-.81,.03],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.63,.48],["c",.12,0,.18,0,.3,-.09],["c",.42,-.21,1.14,-1.11,1.5,-1.83],["c",.12,-.27,.12,-.27,.54,-2.52],["c",.24,-1.23,.42,-2.25,.39,-2.25],["c",0,0,-.24,.06,-.51,.18],["c",-1.26,.39,-2.25,.57,-3.06,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.21,.51,.3,.75,.18],["c",.36,-.15,1.05,-.99,1.41,-1.77],["l",.15,-.3],["l",.42,-2.25],["c",.21,-1.26,.42,-2.28,.39,-2.28],["l",-.51,.15],["c",-1.11,.39,-1.89,.51,-2.7,.51],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.18,.48,.27,.72,.21],["c",.33,-.12,1.14,-1.26,1.41,-1.95],["c",0,-.09,.21,-1.11,.45,-2.34],["c",.21,-1.2,.39,-2.22,.39,-2.28],["c",.03,-.03,0,-.03,-.45,.12],["c",-.57,.18,-1.2,.33,-1.71,.42],["c",-.3,.06,-.51,.06,-.93,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.18,0,.36,-.09,.57,-.33],["c",.33,-.36,.78,-1.14,.93,-1.56],["c",.03,-.12,.24,-1.2,.45,-2.4],["c",.24,-1.2,.42,-2.22,.42,-2.28],["c",.03,-.03,0,-.03,-.39,.09],["c",-1.05,.36,-1.8,.48,-2.58,.48],["c",-.63,0,-.84,-.03,-1.29,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:12.992,h:43.883},"accidentals.sharp":{d:[["M",5.73,-11.19],["c",.21,-.12,.54,-.03,.66,.24],["c",.06,.12,.06,.21,.06,2.31],["c",0,1.23,0,2.22,.03,2.22],["c",0,0,.27,-.12,.6,-.24],["c",.69,-.27,.78,-.3,.96,-.15],["c",.21,.15,.21,.18,.21,1.38],["c",0,1.02,0,1.11,-.06,1.2],["c",-.03,.06,-.09,.12,-.12,.15],["c",-.06,.03,-.42,.21,-.84,.36],["l",-.75,.33],["l",-.03,2.43],["c",0,1.32,0,2.43,.03,2.43],["c",0,0,.27,-.12,.6,-.24],["c",.69,-.27,.78,-.3,.96,-.15],["c",.21,.15,.21,.18,.21,1.38],["c",0,1.02,0,1.11,-.06,1.2],["c",-.03,.06,-.09,.12,-.12,.15],["c",-.06,.03,-.42,.21,-.84,.36],["l",-.75,.33],["l",-.03,2.52],["c",0,2.28,-.03,2.55,-.06,2.64],["c",-.21,.36,-.72,.36,-.93,0],["c",-.03,-.09,-.06,-.33,-.06,-2.43],["l",0,-2.31],["l",-1.29,.51],["l",-1.26,.51],["l",0,2.43],["c",0,2.58,0,2.52,-.15,2.67],["c",-.06,.09,-.27,.18,-.36,.18],["c",-.12,0,-.33,-.09,-.39,-.18],["c",-.15,-.15,-.15,-.09,-.15,-2.43],["c",0,-1.23,0,-2.22,-.03,-2.22],["c",0,0,-.27,.12,-.6,.24],["c",-.69,.27,-.78,.3,-.96,.15],["c",-.21,-.15,-.21,-.18,-.21,-1.38],["c",0,-1.02,0,-1.11,.06,-1.2],["c",.03,-.06,.09,-.12,.12,-.15],["c",.06,-.03,.42,-.21,.84,-.36],["l",.78,-.33],["l",0,-2.43],["c",0,-1.32,0,-2.43,-.03,-2.43],["c",0,0,-.27,.12,-.6,.24],["c",-.69,.27,-.78,.3,-.96,.15],["c",-.21,-.15,-.21,-.18,-.21,-1.38],["c",0,-1.02,0,-1.11,.06,-1.2],["c",.03,-.06,.09,-.12,.12,-.15],["c",.06,-.03,.42,-.21,.84,-.36],["l",.78,-.33],["l",0,-2.52],["c",0,-2.28,.03,-2.55,.06,-2.64],["c",.21,-.36,.72,-.36,.93,0],["c",.03,.09,.06,.33,.06,2.43],["l",.03,2.31],["l",1.26,-.51],["l",1.26,-.51],["l",0,-2.43],["c",0,-2.28,0,-2.43,.06,-2.55],["c",.06,-.12,.12,-.18,.27,-.24],["z"],["m",-.33,10.65],["l",0,-2.43],["l",-1.29,.51],["l",-1.26,.51],["l",0,2.46],["l",0,2.43],["l",.09,-.03],["c",.06,-.03,.63,-.27,1.29,-.51],["l",1.17,-.48],["l",0,-2.46],["z"]],w:8.25,h:22.462},"accidentals.halfsharp":{d:[["M",2.43,-10.05],["c",.21,-.12,.54,-.03,.66,.24],["c",.06,.12,.06,.21,.06,2.01],["c",0,1.05,0,1.89,.03,1.89],["l",.72,-.48],["c",.69,-.48,.69,-.51,.87,-.51],["c",.15,0,.18,.03,.27,.09],["c",.21,.15,.21,.18,.21,1.41],["c",0,1.11,-.03,1.14,-.09,1.23],["c",-.03,.03,-.48,.39,-1.02,.75],["l",-.99,.66],["l",0,2.37],["c",0,1.32,0,2.37,.03,2.37],["l",.72,-.48],["c",.69,-.48,.69,-.51,.87,-.51],["c",.15,0,.18,.03,.27,.09],["c",.21,.15,.21,.18,.21,1.41],["c",0,1.11,-.03,1.14,-.09,1.23],["c",-.03,.03,-.48,.39,-1.02,.75],["l",-.99,.66],["l",0,2.25],["c",0,1.95,0,2.28,-.06,2.37],["c",-.06,.12,-.12,.21,-.24,.27],["c",-.27,.12,-.54,.03,-.69,-.24],["c",-.06,-.12,-.06,-.21,-.06,-2.01],["c",0,-1.05,0,-1.89,-.03,-1.89],["l",-.72,.48],["c",-.69,.48,-.69,.48,-.87,.48],["c",-.15,0,-.18,0,-.27,-.06],["c",-.21,-.15,-.21,-.18,-.21,-1.41],["c",0,-1.11,.03,-1.14,.09,-1.23],["c",.03,-.03,.48,-.39,1.02,-.75],["l",.99,-.66],["l",0,-2.37],["c",0,-1.32,0,-2.37,-.03,-2.37],["l",-.72,.48],["c",-.69,.48,-.69,.48,-.87,.48],["c",-.15,0,-.18,0,-.27,-.06],["c",-.21,-.15,-.21,-.18,-.21,-1.41],["c",0,-1.11,.03,-1.14,.09,-1.23],["c",.03,-.03,.48,-.39,1.02,-.75],["l",.99,-.66],["l",0,-2.25],["c",0,-2.13,0,-2.28,.06,-2.4],["c",.06,-.12,.12,-.18,.27,-.24],["z"]],w:5.25,h:20.174},"accidentals.nat":{d:[["M",.21,-11.4],["c",.24,-.06,.78,0,.99,.15],["c",.03,.03,.03,.48,0,2.61],["c",-.03,1.44,-.03,2.61,-.03,2.61],["c",0,.03,.75,-.09,1.68,-.24],["c",.96,-.18,1.71,-.27,1.74,-.27],["c",.15,.03,.27,.15,.36,.3],["l",.06,.12],["l",.09,8.67],["c",.09,6.96,.12,8.67,.09,8.67],["c",-.03,.03,-.12,.06,-.21,.09],["c",-.24,.09,-.72,.09,-.96,0],["c",-.09,-.03,-.18,-.06,-.21,-.09],["c",-.03,-.03,-.03,-.48,0,-2.61],["c",.03,-1.44,.03,-2.61,.03,-2.61],["c",0,-.03,-.75,.09,-1.68,.24],["c",-.96,.18,-1.71,.27,-1.74,.27],["c",-.15,-.03,-.27,-.15,-.36,-.3],["l",-.06,-.15],["l",-.09,-7.53],["c",-.06,-4.14,-.09,-8.04,-.12,-8.67],["l",0,-1.11],["l",.15,-.06],["c",.09,-.03,.21,-.06,.27,-.09],["z"],["m",3.75,8.4],["c",0,-.33,0,-.42,-.03,-.42],["c",-.12,0,-2.79,.45,-2.79,.48],["c",-.03,0,-.09,6.3,-.09,6.33],["c",.03,0,2.79,-.45,2.82,-.48],["c",0,0,.09,-4.53,.09,-5.91],["z"]],w:5.4,h:22.8},"accidentals.flat":{d:[["M",-.36,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"]],w:6.75,h:18.801},"accidentals.halfflat":{d:[["M",4.83,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.6,-.12,9.06],["c",-.09,5.55,-.15,9.06,-.18,9.12],["c",-.03,.09,-.09,.18,-.15,.27],["c",-.24,.21,-.54,.24,-.81,.06],["c",-.06,-.03,-.27,-.24,-.45,-.42],["c",-.36,-.42,-.66,-.66,-1.8,-1.44],["c",-1.23,-.84,-1.83,-1.32,-2.25,-1.77],["c",-.66,-.78,-.96,-1.56,-.93,-2.46],["c",.09,-1.41,1.11,-2.58,2.4,-2.79],["c",.3,-.06,.84,-.03,1.23,.06],["c",.54,.12,1.08,.33,1.53,.63],["c",.12,.09,.24,.15,.24,.12],["c",0,0,-.12,-8.37,-.18,-9.75],["l",0,-.66],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",-1.65,10.95],["c",-.6,-.18,-1.08,.09,-1.38,.69],["c",-.27,.6,-.36,1.38,-.18,2.07],["c",.12,.42,.42,.99,.72,1.41],["c",.3,.42,.93,1.05,1.56,1.59],["l",.48,.39],["l",0,-.12],["c",.03,-.09,.03,-.48,.06,-.9],["c",.03,-.57,.03,-1.08,0,-2.22],["c",-.03,-1.62,-.03,-1.62,-.24,-2.07],["c",-.21,-.42,-.6,-.75,-1.02,-.84],["z"]],w:6.728,h:18.801},"accidentals.dblflat":{d:[["M",-.36,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"],["m",3,-11],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"]],w:12.1,h:18.804},"accidentals.dblsharp":{d:[["M",-.18,-3.96],["c",.06,-.03,.12,-.06,.15,-.06],["c",.09,0,2.76,.27,2.79,.3],["c",.12,.03,.15,.12,.15,.51],["c",.06,.96,.24,1.59,.57,2.1],["c",.06,.09,.15,.21,.18,.24],["l",.09,.06],["l",.09,-.06],["c",.03,-.03,.12,-.15,.18,-.24],["c",.33,-.51,.51,-1.14,.57,-2.1],["c",0,-.39,.03,-.45,.12,-.51],["c",.03,0,.66,-.09,1.44,-.15],["c",1.47,-.15,1.5,-.15,1.56,-.03],["c",.03,.06,0,.42,-.09,1.44],["c",-.09,.72,-.15,1.35,-.15,1.38],["c",0,.03,-.03,.09,-.06,.12],["c",-.06,.06,-.12,.09,-.51,.09],["c",-1.08,.06,-1.8,.3,-2.28,.75],["l",-.12,.09],["l",.09,.09],["c",.12,.15,.39,.33,.63,.45],["c",.42,.18,.96,.27,1.68,.33],["c",.39,0,.45,.03,.51,.09],["c",.03,.03,.06,.09,.06,.12],["c",0,.03,.06,.66,.15,1.38],["c",.09,1.02,.12,1.38,.09,1.44],["c",-.06,.12,-.09,.12,-1.56,-.03],["c",-.78,-.06,-1.41,-.15,-1.44,-.15],["c",-.09,-.06,-.12,-.12,-.12,-.54],["c",-.06,-.93,-.24,-1.56,-.57,-2.07],["c",-.06,-.09,-.15,-.21,-.18,-.24],["l",-.09,-.06],["l",-.09,.06],["c",-.03,.03,-.12,.15,-.18,.24],["c",-.33,.51,-.51,1.14,-.57,2.07],["c",0,.42,-.03,.48,-.12,.54],["c",-.03,0,-.66,.09,-1.44,.15],["c",-1.47,.15,-1.5,.15,-1.56,.03],["c",-.03,-.06,0,-.42,.09,-1.44],["c",.09,-.72,.15,-1.35,.15,-1.38],["c",0,-.03,.03,-.09,.06,-.12],["c",.06,-.06,.12,-.09,.51,-.09],["c",.72,-.06,1.26,-.15,1.68,-.33],["c",.24,-.12,.51,-.3,.63,-.45],["l",.09,-.09],["l",-.12,-.09],["c",-.48,-.45,-1.2,-.69,-2.28,-.75],["c",-.39,0,-.45,-.03,-.51,-.09],["c",-.03,-.03,-.06,-.09,-.06,-.12],["c",0,-.03,-.06,-.63,-.12,-1.38],["c",-.09,-.72,-.15,-1.35,-.15,-1.38],["z"]],w:7.95,h:7.977},"dots.dot":{d:[["M",1.32,-1.68],["c",.09,-.03,.27,-.06,.39,-.06],["c",.96,0,1.74,.78,1.74,1.71],["c",0,.96,-.78,1.74,-1.71,1.74],["c",-.96,0,-1.74,-.78,-1.74,-1.71],["c",0,-.78,.54,-1.5,1.32,-1.68],["z"]],w:3.45,h:3.45},"noteheads.dbl":{d:[["M",-.69,-4.02],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["c",.06,.15,.06,.18,.06,1.41],["l",0,1.23],["l",.12,-.18],["c",.72,-1.26,2.64,-2.31,4.86,-2.64],["c",.81,-.15,1.11,-.15,2.13,-.15],["c",.99,0,1.29,0,2.1,.15],["c",.75,.12,1.38,.27,2.04,.54],["c",1.35,.51,2.34,1.26,2.82,2.1],["l",.12,.18],["l",0,-1.23],["c",0,-1.2,0,-1.26,.06,-1.38],["c",.09,-.18,.15,-.24,.33,-.33],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,3.54],["l",0,3.54],["l",-.06,.15],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.06,-.12,-.06,-.18,-.06,-1.38],["l",0,-1.23],["l",-.12,.18],["c",-.48,.84,-1.47,1.59,-2.82,2.1],["c",-.84,.33,-1.71,.54,-2.85,.66],["c",-.45,.06,-2.16,.06,-2.61,0],["c",-1.14,-.12,-2.01,-.33,-2.85,-.66],["c",-1.35,-.51,-2.34,-1.26,-2.82,-2.1],["l",-.12,-.18],["l",0,1.23],["c",0,1.23,0,1.26,-.06,1.38],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["l",-.06,-.15],["l",0,-3.54],["c",0,-3.48,0,-3.54,.06,-3.66],["c",.09,-.18,.15,-.24,.33,-.33],["z"],["m",7.71,.63],["c",-.36,-.06,-.9,-.06,-1.14,0],["c",-.3,.03,-.66,.24,-.87,.42],["c",-.6,.54,-.9,1.62,-.75,2.82],["c",.12,.93,.51,1.68,1.11,2.31],["c",.75,.72,1.83,1.2,2.85,1.26],["c",1.05,.06,1.83,-.54,2.1,-1.65],["c",.21,-.9,.12,-1.95,-.24,-2.82],["c",-.36,-.81,-1.08,-1.53,-1.95,-1.95],["c",-.3,-.15,-.78,-.3,-1.11,-.39],["z"]],w:16.83,h:8.145},"noteheads.whole":{d:[["M",6.51,-4.05],["c",.51,-.03,2.01,0,2.52,.03],["c",1.41,.18,2.64,.51,3.72,1.08],["c",1.2,.63,1.95,1.41,2.19,2.31],["c",.09,.33,.09,.9,0,1.23],["c",-.24,.9,-.99,1.68,-2.19,2.31],["c",-1.08,.57,-2.28,.9,-3.75,1.08],["c",-.66,.06,-2.31,.06,-2.97,0],["c",-1.47,-.18,-2.67,-.51,-3.75,-1.08],["c",-1.2,-.63,-1.95,-1.41,-2.19,-2.31],["c",-.09,-.33,-.09,-.9,0,-1.23],["c",.24,-.9,.99,-1.68,2.19,-2.31],["c",1.2,-.63,2.61,-.99,4.23,-1.11],["z"],["m",.57,.66],["c",-.87,-.15,-1.53,0,-2.04,.51],["c",-.15,.15,-.24,.27,-.33,.48],["c",-.24,.51,-.36,1.08,-.33,1.77],["c",.03,.69,.18,1.26,.42,1.77],["c",.6,1.17,1.74,1.98,3.18,2.22],["c",1.11,.21,1.95,-.15,2.34,-.99],["c",.24,-.51,.36,-1.08,.33,-1.8],["c",-.06,-1.11,-.45,-2.04,-1.17,-2.76],["c",-.63,-.63,-1.47,-1.05,-2.4,-1.2],["z"]],w:14.985,h:8.097},"noteheads.half":{d:[["M",7.44,-4.05],["c",.06,-.03,.27,-.03,.48,-.03],["c",1.05,0,1.71,.24,2.1,.81],["c",.42,.6,.45,1.35,.18,2.4],["c",-.42,1.59,-1.14,2.73,-2.16,3.39],["c",-1.41,.93,-3.18,1.44,-5.4,1.53],["c",-1.17,.03,-1.89,-.21,-2.28,-.81],["c",-.42,-.6,-.45,-1.35,-.18,-2.4],["c",.42,-1.59,1.14,-2.73,2.16,-3.39],["c",.63,-.42,1.23,-.72,1.98,-.96],["c",.9,-.3,1.65,-.42,3.12,-.54],["z"],["m",1.29,.87],["c",-.27,-.09,-.63,-.12,-.9,-.03],["c",-.72,.24,-1.53,.69,-3.27,1.8],["c",-2.34,1.5,-3.3,2.25,-3.57,2.79],["c",-.36,.72,-.06,1.5,.66,1.77],["c",.24,.12,.69,.09,.99,0],["c",.84,-.3,1.92,-.93,4.14,-2.37],["c",1.62,-1.08,2.37,-1.71,2.61,-2.19],["c",.36,-.72,.06,-1.5,-.66,-1.77],["z"]],w:10.37,h:8.132},"noteheads.quarter":{d:[["M",6.09,-4.05],["c",.36,-.03,1.2,0,1.53,.06],["c",1.17,.24,1.89,.84,2.16,1.83],["c",.06,.18,.06,.3,.06,.66],["c",0,.45,0,.63,-.15,1.08],["c",-.66,2.04,-3.06,3.93,-5.52,4.38],["c",-.54,.09,-1.44,.09,-1.83,.03],["c",-1.23,-.27,-1.98,-.87,-2.25,-1.86],["c",-.06,-.18,-.06,-.3,-.06,-.66],["c",0,-.45,0,-.63,.15,-1.08],["c",.24,-.78,.75,-1.53,1.44,-2.22],["c",1.2,-1.2,2.85,-2.01,4.47,-2.22],["z"]],w:9.81,h:8.094},"noteheads.slash.nostem":{d:[["M",9.3,-7.77],["c",.06,-.06,.18,-.06,1.71,-.06],["l",1.65,0],["l",.09,.09],["c",.06,.06,.06,.09,.06,.15],["c",-.03,.12,-9.21,15.24,-9.3,15.33],["c",-.06,.06,-.18,.06,-1.71,.06],["l",-1.65,0],["l",-.09,-.09],["c",-.06,-.06,-.06,-.09,-.06,-.15],["c",.03,-.12,9.21,-15.24,9.3,-15.33],["z"]],w:12.81,h:15.63},"noteheads.indeterminate":{d:[["M",.78,-4.05],["c",.12,-.03,.24,-.03,.36,.03],["c",.03,.03,.93,.72,1.95,1.56],["l",1.86,1.5],["l",1.86,-1.5],["c",1.02,-.84,1.92,-1.53,1.95,-1.56],["c",.21,-.12,.33,-.09,.75,.24],["c",.3,.27,.36,.36,.36,.54],["c",0,.03,-.03,.12,-.06,.18],["c",-.03,.06,-.9,.75,-1.89,1.56],["l",-1.8,1.47],["c",0,.03,.81,.69,1.8,1.5],["c",.99,.81,1.86,1.5,1.89,1.56],["c",.03,.06,.06,.15,.06,.18],["c",0,.18,-.06,.27,-.36,.54],["c",-.42,.33,-.54,.36,-.75,.24],["c",-.03,-.03,-.93,-.72,-1.95,-1.56],["l",-1.86,-1.5],["l",-1.86,1.5],["c",-1.02,.84,-1.92,1.53,-1.95,1.56],["c",-.21,.12,-.33,.09,-.75,-.24],["c",-.3,-.27,-.36,-.36,-.36,-.54],["c",0,-.03,.03,-.12,.06,-.18],["c",.03,-.06,.9,-.75,1.89,-1.56],["l",1.8,-1.47],["c",0,-.03,-.81,-.69,-1.8,-1.5],["c",-.99,-.81,-1.86,-1.5,-1.89,-1.56],["c",-.06,-.12,-.09,-.21,-.03,-.36],["c",.03,-.09,.57,-.57,.72,-.63],["z"]],w:9.843,h:8.139},"scripts.ufermata":{d:[["M",-.75,-10.77],["c",.12,0,.45,-.03,.69,-.03],["c",2.91,-.03,5.55,1.53,7.41,4.35],["c",1.17,1.71,1.95,3.72,2.43,6.03],["c",.12,.51,.12,.57,.03,.69],["c",-.12,.21,-.48,.27,-.69,.12],["c",-.12,-.09,-.18,-.24,-.27,-.69],["c",-.78,-3.63,-3.42,-6.54,-6.78,-7.38],["c",-.78,-.21,-1.2,-.24,-2.07,-.24],["c",-.63,0,-.84,0,-1.2,.06],["c",-1.83,.27,-3.42,1.08,-4.8,2.37],["c",-1.41,1.35,-2.4,3.21,-2.85,5.19],["c",-.09,.45,-.15,.6,-.27,.69],["c",-.21,.15,-.57,.09,-.69,-.12],["c",-.09,-.12,-.09,-.18,.03,-.69],["c",.33,-1.62,.78,-3,1.47,-4.38],["c",1.77,-3.54,4.44,-5.67,7.56,-5.97],["z"],["m",.33,7.47],["c",1.38,-.3,2.58,.9,2.31,2.25],["c",-.15,.72,-.78,1.35,-1.47,1.5],["c",-1.38,.27,-2.58,-.93,-2.31,-2.31],["c",.15,-.69,.78,-1.29,1.47,-1.44],["z"]],w:19.748,h:11.289},"scripts.dfermata":{d:[["M",-9.63,-.42],["c",.15,-.09,.36,-.06,.51,.03],["c",.12,.09,.18,.24,.27,.66],["c",.78,3.66,3.42,6.57,6.78,7.41],["c",.78,.21,1.2,.24,2.07,.24],["c",.63,0,.84,0,1.2,-.06],["c",1.83,-.27,3.42,-1.08,4.8,-2.37],["c",1.41,-1.35,2.4,-3.21,2.85,-5.22],["c",.09,-.42,.15,-.57,.27,-.66],["c",.21,-.15,.57,-.09,.69,.12],["c",.09,.12,.09,.18,-.03,.69],["c",-.33,1.62,-.78,3,-1.47,4.38],["c",-1.92,3.84,-4.89,6,-8.31,6],["c",-3.42,0,-6.39,-2.16,-8.31,-6],["c",-.48,-.96,-.84,-1.92,-1.14,-2.97],["c",-.18,-.69,-.42,-1.74,-.42,-1.92],["c",0,-.12,.09,-.27,.24,-.33],["z"],["m",9.21,0],["c",1.2,-.27,2.34,.63,2.34,1.86],["c",0,.9,-.66,1.68,-1.5,1.89],["c",-1.38,.27,-2.58,-.93,-2.31,-2.31],["c",.15,-.69,.78,-1.29,1.47,-1.44],["z"]],w:19.744,h:11.274},"scripts.sforzato":{d:[["M",-6.45,-3.69],["c",.06,-.03,.15,-.06,.18,-.06],["c",.06,0,2.85,.72,6.24,1.59],["l",6.33,1.65],["c",.33,.06,.45,.21,.45,.51],["c",0,.3,-.12,.45,-.45,.51],["l",-6.33,1.65],["c",-3.39,.87,-6.18,1.59,-6.21,1.59],["c",-.21,0,-.48,-.24,-.51,-.45],["c",0,-.15,.06,-.36,.18,-.45],["c",.09,-.06,.87,-.27,3.84,-1.05],["c",2.04,-.54,3.84,-.99,4.02,-1.02],["c",.15,-.06,1.14,-.24,2.22,-.42],["c",1.05,-.18,1.92,-.36,1.92,-.36],["c",0,0,-.87,-.18,-1.92,-.36],["c",-1.08,-.18,-2.07,-.36,-2.22,-.42],["c",-.18,-.03,-1.98,-.48,-4.02,-1.02],["c",-2.97,-.78,-3.75,-.99,-3.84,-1.05],["c",-.12,-.09,-.18,-.3,-.18,-.45],["c",.03,-.15,.15,-.3,.3,-.39],["z"]],w:13.5,h:7.5},"scripts.staccato":{d:[["M",-.36,-1.47],["c",.93,-.21,1.86,.51,1.86,1.47],["c",0,.93,-.87,1.65,-1.8,1.47],["c",-.54,-.12,-1.02,-.57,-1.14,-1.08],["c",-.21,-.81,.27,-1.65,1.08,-1.86],["z"]],w:2.989,h:3.004},"scripts.tenuto":{d:[["M",-4.2,-.48],["l",.12,-.06],["l",4.08,0],["l",4.08,0],["l",.12,.06],["c",.39,.21,.39,.75,0,.96],["l",-.12,.06],["l",-4.08,0],["l",-4.08,0],["l",-.12,-.06],["c",-.39,-.21,-.39,-.75,0,-.96],["z"]],w:8.985,h:1.08},"scripts.umarcato":{d:[["M",-.15,-8.19],["c",.15,-.12,.36,-.03,.45,.15],["c",.21,.42,3.45,7.65,3.45,7.71],["c",0,.12,-.12,.27,-.21,.3],["c",-.03,.03,-.51,.03,-1.14,.03],["c",-1.05,0,-1.08,0,-1.17,-.06],["c",-.09,-.06,-.24,-.36,-1.17,-2.4],["c",-.57,-1.29,-1.05,-2.34,-1.08,-2.34],["c",0,-.03,-.51,1.02,-1.08,2.34],["c",-.93,2.07,-1.08,2.34,-1.14,2.4],["c",-.06,.03,-.15,.06,-.18,.06],["c",-.15,0,-.33,-.18,-.33,-.33],["c",0,-.06,3.24,-7.32,3.45,-7.71],["c",.03,-.06,.09,-.15,.15,-.15],["z"]],w:7.5,h:8.245},"scripts.dmarcato":{d:[["M",-3.57,.03],["c",.03,0,.57,-.03,1.17,-.03],["c",1.05,0,1.08,0,1.17,.06],["c",.09,.06,.24,.36,1.17,2.4],["c",.57,1.29,1.05,2.34,1.08,2.34],["c",0,.03,.51,-1.02,1.08,-2.34],["c",.93,-2.07,1.08,-2.34,1.14,-2.4],["c",.06,-.03,.15,-.06,.18,-.06],["c",.15,0,.33,.18,.33,.33],["c",0,.09,-3.45,7.74,-3.54,7.83],["c",-.12,.12,-.3,.12,-.42,0],["c",-.09,-.09,-3.54,-7.74,-3.54,-7.83],["c",0,-.09,.12,-.27,.18,-.3],["z"]],w:7.5,h:8.25},"scripts.stopped":{d:[["M",-.27,-4.08],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,1.5],["l",0,1.47],["l",1.47,0],["l",1.5,0],["l",.15,.06],["c",.15,.09,.21,.15,.3,.33],["c",.09,.18,.09,.36,0,.54],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.12,.06,-.18,.06,-1.62,.06],["l",-1.47,0],["l",0,1.47],["l",0,1.47],["l",-.06,.15],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["l",-.06,-.15],["l",0,-1.47],["l",0,-1.47],["l",-1.47,0],["c",-1.44,0,-1.5,0,-1.62,-.06],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.09,-.36,0,-.54],["c",.09,-.18,.15,-.24,.33,-.33],["l",.15,-.06],["l",1.47,0],["l",1.47,0],["l",0,-1.47],["c",0,-1.44,0,-1.5,.06,-1.62],["c",.09,-.18,.15,-.24,.33,-.33],["z"]],w:8.295,h:8.295},"scripts.upbow":{d:[["M",-4.65,-15.54],["c",.12,-.09,.36,-.06,.48,.03],["c",.03,.03,.09,.09,.12,.15],["c",.03,.06,.66,2.13,1.41,4.62],["c",1.35,4.41,1.38,4.56,2.01,6.96],["l",.63,2.46],["l",.63,-2.46],["c",.63,-2.4,.66,-2.55,2.01,-6.96],["c",.75,-2.49,1.38,-4.56,1.41,-4.62],["c",.06,-.15,.18,-.21,.36,-.24],["c",.15,0,.3,.06,.39,.18],["c",.15,.21,.24,-.18,-2.1,7.56],["c",-1.2,3.96,-2.22,7.32,-2.25,7.41],["c",0,.12,-.06,.27,-.09,.3],["c",-.12,.21,-.6,.21,-.72,0],["c",-.03,-.03,-.09,-.18,-.09,-.3],["c",-.03,-.09,-1.05,-3.45,-2.25,-7.41],["c",-2.34,-7.74,-2.25,-7.35,-2.1,-7.56],["c",.03,-.03,.09,-.09,.15,-.12],["z"]],w:9.73,h:15.608},"scripts.downbow":{d:[["M",-5.55,-9.93],["l",.09,-.06],["l",5.46,0],["l",5.46,0],["l",.09,.06],["l",.06,.09],["l",0,4.77],["c",0,5.28,0,4.89,-.18,5.01],["c",-.18,.12,-.42,.06,-.54,-.12],["c",-.06,-.09,-.06,-.18,-.06,-2.97],["l",0,-2.85],["l",-4.83,0],["l",-4.83,0],["l",0,2.85],["c",0,2.79,0,2.88,-.06,2.97],["c",-.15,.24,-.51,.24,-.66,0],["c",-.06,-.09,-.06,-.21,-.06,-4.89],["l",0,-4.77],["z"]],w:11.22,h:9.992},"scripts.turn":{d:[["M",-4.77,-3.9],["c",.36,-.06,1.05,-.06,1.44,.03],["c",.78,.15,1.5,.51,2.34,1.14],["c",.6,.45,1.05,.87,2.22,2.01],["c",1.11,1.08,1.62,1.5,2.22,1.86],["c",.6,.36,1.32,.57,1.92,.57],["c",.9,0,1.71,-.57,1.89,-1.35],["c",.24,-.93,-.39,-1.89,-1.35,-2.1],["l",-.15,-.06],["l",-.09,.15],["c",-.03,.09,-.15,.24,-.24,.33],["c",-.72,.72,-2.04,.54,-2.49,-.36],["c",-.48,-.93,.03,-1.86,1.17,-2.19],["c",.3,-.09,1.02,-.09,1.35,0],["c",.99,.27,1.74,.87,2.25,1.83],["c",.69,1.41,.63,3,-.21,4.26],["c",-.21,.3,-.69,.81,-.99,1.02],["c",-.3,.21,-.84,.45,-1.17,.54],["c",-1.23,.36,-2.49,.15,-3.72,-.6],["c",-.75,-.48,-1.41,-1.02,-2.85,-2.46],["c",-1.11,-1.08,-1.62,-1.5,-2.22,-1.86],["c",-.6,-.36,-1.32,-.57,-1.92,-.57],["c",-.9,0,-1.71,.57,-1.89,1.35],["c",-.24,.93,.39,1.89,1.35,2.1],["l",.15,.06],["l",.09,-.15],["c",.03,-.09,.15,-.24,.24,-.33],["c",.72,-.72,2.04,-.54,2.49,.36],["c",.48,.93,-.03,1.86,-1.17,2.19],["c",-.3,.09,-1.02,.09,-1.35,0],["c",-.99,-.27,-1.74,-.87,-2.25,-1.83],["c",-.69,-1.41,-.63,-3,.21,-4.26],["c",.21,-.3,.69,-.81,.99,-1.02],["c",.48,-.33,1.11,-.57,1.74,-.66],["z"]],w:16.366,h:7.893},"scripts.trill":{d:[["M",-.51,-16.02],["c",.12,-.09,.21,-.18,.21,-.18],["l",-.81,4.02],["l",-.81,4.02],["c",.03,0,.51,-.27,1.08,-.6],["c",.6,-.3,1.14,-.63,1.26,-.66],["c",1.14,-.54,2.31,-.6,3.09,-.18],["c",.27,.15,.54,.36,.6,.51],["l",.06,.12],["l",.21,-.21],["c",.9,-.81,2.22,-.99,3.12,-.42],["c",.6,.42,.9,1.14,.78,2.07],["c",-.15,1.29,-1.05,2.31,-1.95,2.25],["c",-.48,-.03,-.78,-.3,-.96,-.81],["c",-.09,-.27,-.09,-.9,-.03,-1.2],["c",.21,-.75,.81,-1.23,1.59,-1.32],["l",.24,-.03],["l",-.09,-.12],["c",-.51,-.66,-1.62,-.63,-2.31,.03],["c",-.39,.42,-.3,.09,-1.23,4.77],["l",-.81,4.14],["c",-.03,0,-.12,-.03,-.21,-.09],["c",-.33,-.15,-.54,-.18,-.99,-.18],["c",-.42,0,-.66,.03,-1.05,.18],["c",-.12,.06,-.21,.09,-.21,.09],["c",0,-.03,.36,-1.86,.81,-4.11],["c",.9,-4.47,.87,-4.26,.69,-4.53],["c",-.21,-.36,-.66,-.51,-1.17,-.36],["c",-.15,.06,-2.22,1.14,-2.58,1.38],["c",-.12,.09,-.12,.09,-.21,.6],["l",-.09,.51],["l",.21,.24],["c",.63,.75,1.02,1.47,1.2,2.19],["c",.06,.27,.06,.36,.06,.81],["c",0,.42,0,.54,-.06,.78],["c",-.15,.54,-.33,.93,-.63,1.35],["c",-.18,.24,-.57,.63,-.81,.78],["c",-.24,.15,-.63,.36,-.84,.42],["c",-.27,.06,-.66,.06,-.87,.03],["c",-.81,-.18,-1.32,-1.05,-1.38,-2.46],["c",-.03,-.6,.03,-.99,.33,-2.46],["c",.21,-1.08,.24,-1.32,.21,-1.29],["c",-1.2,.48,-2.4,.75,-3.21,.72],["c",-.69,-.06,-1.17,-.3,-1.41,-.72],["c",-.39,-.75,-.12,-1.8,.66,-2.46],["c",.24,-.18,.69,-.42,1.02,-.51],["c",.69,-.18,1.53,-.15,2.31,.09],["c",.3,.09,.75,.3,.99,.45],["c",.12,.09,.15,.09,.15,.03],["c",.03,-.03,.33,-1.59,.72,-3.45],["c",.36,-1.86,.66,-3.42,.69,-3.45],["c",0,-.03,.03,-.03,.21,.03],["c",.21,.06,.27,.06,.48,.06],["c",.42,-.03,.78,-.18,1.26,-.48],["c",.15,-.12,.36,-.27,.48,-.39],["z"],["m",-5.73,7.68],["c",-.27,-.03,-.96,-.06,-1.2,-.03],["c",-.81,.12,-1.35,.57,-1.5,1.2],["c",-.18,.66,.12,1.14,.75,1.29],["c",.66,.12,1.92,-.12,3.18,-.66],["l",.33,-.15],["l",.09,-.39],["c",.06,-.21,.09,-.42,.09,-.45],["c",0,-.03,-.45,-.3,-.75,-.45],["c",-.27,-.15,-.66,-.27,-.99,-.36],["z"],["m",4.29,3.63],["c",-.24,-.39,-.51,-.75,-.51,-.69],["c",-.06,.12,-.39,1.92,-.45,2.28],["c",-.09,.54,-.12,1.14,-.06,1.38],["c",.06,.42,.21,.6,.51,.57],["c",.39,-.06,.75,-.48,.93,-1.14],["c",.09,-.33,.09,-1.05,0,-1.38],["c",-.09,-.39,-.24,-.69,-.42,-1.02],["z"]],w:17.963,h:16.49},"scripts.segno":{d:[["M",-3.72,-11.22],["c",.78,-.09,1.59,.03,2.31,.42],["c",1.2,.6,2.01,1.71,2.31,3.09],["c",.09,.42,.09,1.2,.03,1.5],["c",-.15,.45,-.39,.81,-.66,.93],["c",-.33,.18,-.84,.21,-1.23,.15],["c",-.81,-.18,-1.32,-.93,-1.26,-1.89],["c",.03,-.36,.09,-.57,.24,-.9],["c",.15,-.33,.45,-.6,.72,-.75],["c",.12,-.06,.18,-.09,.18,-.12],["c",0,-.03,-.03,-.15,-.09,-.24],["c",-.18,-.45,-.54,-.87,-.96,-1.08],["c",-1.11,-.57,-2.34,-.18,-2.88,.9],["c",-.24,.51,-.33,1.11,-.24,1.83],["c",.27,1.92,1.5,3.54,3.93,5.13],["c",.48,.33,1.26,.78,1.29,.78],["c",.03,0,1.35,-2.19,2.94,-4.89],["l",2.88,-4.89],["l",.84,0],["l",.87,0],["l",-.03,.06],["c",-.15,.21,-6.15,10.41,-6.15,10.44],["c",0,0,.21,.15,.48,.27],["c",2.61,1.47,4.35,3.03,5.13,4.65],["c",1.14,2.34,.51,5.07,-1.44,6.39],["c",-.66,.42,-1.32,.63,-2.13,.69],["c",-2.01,.09,-3.81,-1.41,-4.26,-3.54],["c",-.09,-.42,-.09,-1.2,-.03,-1.5],["c",.15,-.45,.39,-.81,.66,-.93],["c",.33,-.18,.84,-.21,1.23,-.15],["c",.81,.18,1.32,.93,1.26,1.89],["c",-.03,.36,-.09,.57,-.24,.9],["c",-.15,.33,-.45,.6,-.72,.75],["c",-.12,.06,-.18,.09,-.18,.12],["c",0,.03,.03,.15,.09,.24],["c",.18,.45,.54,.87,.96,1.08],["c",1.11,.57,2.34,.18,2.88,-.9],["c",.24,-.51,.33,-1.11,.24,-1.83],["c",-.27,-1.92,-1.5,-3.54,-3.93,-5.13],["c",-.48,-.33,-1.26,-.78,-1.29,-.78],["c",-.03,0,-1.35,2.19,-2.91,4.89],["l",-2.88,4.89],["l",-.87,0],["l",-.87,0],["l",.03,-.06],["c",.15,-.21,6.15,-10.41,6.15,-10.44],["c",0,0,-.21,-.15,-.48,-.3],["c",-2.61,-1.44,-4.35,-3,-5.13,-4.62],["c",-.9,-1.89,-.72,-4.02,.48,-5.52],["c",.69,-.84,1.68,-1.41,2.73,-1.53],["z"],["m",8.76,9.09],["c",.03,-.03,.15,-.03,.27,-.03],["c",.33,.03,.57,.18,.72,.48],["c",.09,.18,.09,.57,0,.75],["c",-.09,.18,-.21,.3,-.36,.39],["c",-.15,.06,-.21,.06,-.39,.06],["c",-.21,0,-.27,0,-.39,-.06],["c",-.3,-.15,-.48,-.45,-.48,-.75],["c",0,-.39,.24,-.72,.63,-.84],["z"],["m",-10.53,2.61],["c",.03,-.03,.15,-.03,.27,-.03],["c",.33,.03,.57,.18,.72,.48],["c",.09,.18,.09,.57,0,.75],["c",-.09,.18,-.21,.3,-.36,.39],["c",-.15,.06,-.21,.06,-.39,.06],["c",-.21,0,-.27,0,-.39,-.06],["c",-.3,-.15,-.48,-.45,-.48,-.75],["c",0,-.39,.24,-.72,.63,-.84],["z"]],w:15,h:22.504},"scripts.coda":{d:[["M",-.21,-10.47],["c",.18,-.12,.42,-.06,.54,.12],["c",.06,.09,.06,.18,.06,1.5],["l",0,1.38],["l",.18,0],["c",.39,.06,.96,.24,1.38,.48],["c",1.68,.93,2.82,3.24,3.03,6.12],["c",.03,.24,.03,.45,.03,.45],["c",0,.03,.6,.03,1.35,.03],["c",1.5,0,1.47,0,1.59,.18],["c",.09,.12,.09,.3,0,.42],["c",-.12,.18,-.09,.18,-1.59,.18],["c",-.75,0,-1.35,0,-1.35,.03],["c",0,0,0,.21,-.03,.42],["c",-.24,3.15,-1.53,5.58,-3.45,6.36],["c",-.27,.12,-.72,.24,-.96,.27],["l",-.18,0],["l",0,1.38],["c",0,1.32,0,1.41,-.06,1.5],["c",-.15,.24,-.51,.24,-.66,0],["c",-.06,-.09,-.06,-.18,-.06,-1.5],["l",0,-1.38],["l",-.18,0],["c",-.39,-.06,-.96,-.24,-1.38,-.48],["c",-1.68,-.93,-2.82,-3.24,-3.03,-6.15],["c",-.03,-.21,-.03,-.42,-.03,-.42],["c",0,-.03,-.6,-.03,-1.35,-.03],["c",-1.5,0,-1.47,0,-1.59,-.18],["c",-.09,-.12,-.09,-.3,0,-.42],["c",.12,-.18,.09,-.18,1.59,-.18],["c",.75,0,1.35,0,1.35,-.03],["c",0,0,0,-.21,.03,-.45],["c",.24,-3.12,1.53,-5.55,3.45,-6.33],["c",.27,-.12,.72,-.24,.96,-.27],["l",.18,0],["l",0,-1.38],["c",0,-1.53,0,-1.5,.18,-1.62],["z"],["m",-.18,6.93],["c",0,-2.97,0,-3.15,-.06,-3.15],["c",-.09,0,-.51,.15,-.66,.21],["c",-.87,.51,-1.38,1.62,-1.56,3.51],["c",-.06,.54,-.12,1.59,-.12,2.16],["l",0,.42],["l",1.2,0],["l",1.2,0],["l",0,-3.15],["z"],["m",1.17,-3.06],["c",-.09,-.03,-.21,-.06,-.27,-.09],["l",-.12,0],["l",0,3.15],["l",0,3.15],["l",1.2,0],["l",1.2,0],["l",0,-.81],["c",-.06,-2.4,-.33,-3.69,-.93,-4.59],["c",-.27,-.39,-.66,-.69,-1.08,-.81],["z"],["m",-1.17,10.14],["l",0,-3.15],["l",-1.2,0],["l",-1.2,0],["l",0,.81],["c",.03,.96,.06,1.47,.15,2.13],["c",.24,2.04,.96,3.12,2.13,3.36],["l",.12,0],["l",0,-3.15],["z"],["m",3.18,-2.34],["l",0,-.81],["l",-1.2,0],["l",-1.2,0],["l",0,3.15],["l",0,3.15],["l",.12,0],["c",1.17,-.24,1.89,-1.32,2.13,-3.36],["c",.09,-.66,.12,-1.17,.15,-2.13],["z"]],w:16.035,h:21.062},"scripts.comma":{d:[["M",1.14,-4.62],["c",.3,-.12,.69,-.03,.93,.15],["c",.12,.12,.36,.45,.51,.78],["c",.9,1.77,.54,4.05,-1.08,6.75],["c",-.36,.63,-.87,1.38,-.96,1.44],["c",-.18,.12,-.42,.06,-.54,-.12],["c",-.09,-.18,-.09,-.3,.12,-.6],["c",.96,-1.44,1.44,-2.97,1.38,-4.35],["c",-.06,-.93,-.3,-1.68,-.78,-2.46],["c",-.27,-.39,-.33,-.63,-.24,-.96],["c",.09,-.27,.36,-.54,.66,-.63],["z"]],w:3.042,h:9.237},"scripts.roll":{d:[["M",1.95,-6],["c",.21,-.09,.36,-.09,.57,0],["c",.39,.15,.63,.39,1.47,1.35],["c",.66,.75,.78,.87,1.08,1.05],["c",.75,.45,1.65,.42,2.4,-.06],["c",.12,-.09,.27,-.27,.54,-.6],["c",.42,-.54,.51,-.63,.69,-.63],["c",.09,0,.3,.12,.36,.21],["c",.09,.12,.12,.3,.03,.42],["c",-.06,.12,-3.15,3.9,-3.3,4.08],["c",-.06,.06,-.18,.12,-.27,.18],["c",-.27,.12,-.6,.06,-.99,-.27],["c",-.27,-.21,-.42,-.39,-1.08,-1.14],["c",-.63,-.72,-.81,-.9,-1.17,-1.08],["c",-.36,-.18,-.57,-.21,-.99,-.21],["c",-.39,0,-.63,.03,-.93,.18],["c",-.36,.15,-.51,.27,-.9,.81],["c",-.24,.27,-.45,.51,-.48,.54],["c",-.12,.09,-.27,.06,-.39,0],["c",-.24,-.15,-.33,-.39,-.21,-.6],["c",.09,-.12,3.18,-3.87,3.33,-4.02],["c",.06,-.06,.18,-.15,.24,-.21],["z"]],w:10.817,h:6.125},"scripts.prall":{d:[["M",-4.38,-3.69],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["c",.03,0,.57,-.84,1.23,-1.83],["c",1.14,-1.68,1.23,-1.83,1.35,-1.89],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["l",.48,-.69],["c",.51,-.78,.54,-.84,.69,-.9],["c",.42,-.18,.87,.15,.81,.6],["c",-.03,.12,-.3,.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["c",-.03,0,-.57,.84,-1.23,1.83],["c",-1.14,1.68,-1.23,1.83,-1.35,1.89],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-.48,.69],["c",-.51,.78,-.54,.84,-.69,.9],["c",-.42,.18,-.87,-.15,-.81,-.6],["c",.03,-.12,.3,-.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["z"]],w:15.011,h:7.5},"scripts.arpeggio":{d:[["M",1.5,0],["c",1.5,2,1.5,3,1.5,3],["s",0,1,-2,1.5],["s",-.5,3,1,5.5],["l",1.5,0],["s",-1.75,-2,-1.9,-3.25],["s",2.15,-.6,2.95,-1.6],["s",.45,-1,.5,-1.25],["s",0,-1,-2,-3.9],["l",-1.5,0],["z"]],w:5,h:10},"scripts.mordent":{d:[["M",-.21,-4.95],["c",.27,-.15,.63,0,.75,.27],["c",.06,.12,.06,.24,.06,1.44],["l",0,1.29],["l",.57,-.84],["c",.51,-.75,.57,-.84,.69,-.9],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["l",.48,-.69],["c",.51,-.78,.54,-.84,.69,-.9],["c",.42,-.18,.87,.15,.81,.6],["c",-.03,.12,-.3,.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.83,-1.89],["c",-.81,-.99,-1.5,-1.8,-1.53,-1.86],["c",-.06,-.03,-.06,-.03,-.12,.03],["c",-.06,.06,-.06,.15,-.06,2.28],["c",0,1.95,0,2.25,-.06,2.34],["c",-.18,.45,-.81,.48,-1.05,.03],["c",-.03,-.06,-.06,-.24,-.06,-1.41],["l",0,-1.35],["l",-.57,.84],["c",-.54,.78,-.6,.87,-.72,.93],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-.48,.69],["c",-.51,.78,-.54,.84,-.69,.9],["c",-.42,.18,-.87,-.15,-.81,-.6],["c",.03,-.12,.3,-.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["c",.03,0,.06,-.06,.09,-.09],["c",.06,-.12,.06,-.15,.06,-2.28],["c",0,-1.92,0,-2.22,.06,-2.31],["c",.06,-.15,.15,-.24,.3,-.3],["z"]],w:15.011,h:10.012},"flags.u8th":{d:[["M",-.42,3.75],["l",0,-3.75],["l",.21,0],["l",.21,0],["l",0,.18],["c",0,.3,.06,.84,.12,1.23],["c",.24,1.53,.9,3.12,2.13,5.16],["l",.99,1.59],["c",.87,1.44,1.38,2.34,1.77,3.09],["c",.81,1.68,1.2,3.06,1.26,4.53],["c",.03,1.53,-.21,3.27,-.75,5.01],["c",-.21,.69,-.51,1.5,-.6,1.59],["c",-.09,.12,-.27,.21,-.42,.21],["c",-.15,0,-.42,-.12,-.51,-.21],["c",-.15,-.18,-.18,-.42,-.09,-.66],["c",.15,-.33,.45,-1.2,.57,-1.62],["c",.42,-1.38,.6,-2.58,.6,-3.9],["c",0,-.66,0,-.81,-.06,-1.11],["c",-.39,-2.07,-1.8,-4.26,-4.59,-7.14],["l",-.42,-.45],["l",-.21,0],["l",-.21,0],["l",0,-3.75],["z"]],w:6.692,h:22.59},"flags.u16th":{d:[["M",-.42,7.5],["l",0,-7.5],["l",.21,0],["l",.21,0],["l",0,.39],["c",.06,1.08,.39,2.19,.99,3.39],["c",.45,.9,.87,1.59,1.95,3.12],["c",1.29,1.86,1.77,2.64,2.22,3.57],["c",.45,.93,.72,1.8,.87,2.64],["c",.06,.51,.06,1.5,0,1.92],["c",-.12,.6,-.3,1.2,-.54,1.71],["l",-.09,.24],["l",.18,.45],["c",.51,1.2,.72,2.22,.69,3.42],["c",-.06,1.53,-.39,3.03,-.99,4.53],["c",-.3,.75,-.36,.81,-.57,.9],["c",-.15,.09,-.33,.06,-.48,0],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.12,-.75],["c",.66,-1.41,1.02,-2.88,1.08,-4.32],["c",0,-.6,-.03,-1.05,-.18,-1.59],["c",-.3,-1.2,-.99,-2.4,-2.25,-3.87],["c",-.42,-.48,-1.53,-1.62,-2.19,-2.22],["l",-.45,-.42],["l",-.03,1.11],["l",0,1.11],["l",-.21,0],["l",-.21,0],["l",0,-7.5],["z"],["m",1.65,.09],["c",-.3,-.3,-.69,-.72,-.9,-.87],["l",-.33,-.33],["l",0,.15],["c",0,.3,.06,.81,.15,1.26],["c",.27,1.29,.87,2.61,2.04,4.29],["c",.15,.24,.6,.87,.96,1.38],["l",1.08,1.53],["l",.42,.63],["c",.03,0,.12,-.36,.21,-.72],["c",.06,-.33,.06,-1.2,0,-1.62],["c",-.33,-1.71,-1.44,-3.48,-3.63,-5.7],["z"]],w:6.693,h:26.337},"flags.u32nd":{d:[["M",-.42,11.25],["l",0,-11.25],["l",.21,0],["l",.21,0],["l",0,.36],["c",.09,1.68,.69,3.27,2.07,5.46],["l",.87,1.35],["c",1.02,1.62,1.47,2.37,1.86,3.18],["c",.48,1.02,.78,1.92,.93,2.88],["c",.06,.48,.06,1.5,0,1.89],["c",-.09,.42,-.21,.87,-.36,1.26],["l",-.12,.3],["l",.15,.39],["c",.69,1.56,.84,2.88,.54,4.38],["c",-.09,.45,-.27,1.08,-.45,1.47],["l",-.12,.24],["l",.18,.36],["c",.33,.72,.57,1.56,.69,2.34],["c",.12,1.02,-.06,2.52,-.42,3.84],["c",-.27,.93,-.75,2.13,-.93,2.31],["c",-.18,.15,-.45,.18,-.66,.09],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.06,-.6],["c",.21,-.36,.42,-.9,.57,-1.38],["c",.51,-1.41,.69,-3.06,.48,-4.08],["c",-.15,-.81,-.57,-1.68,-1.2,-2.55],["c",-.72,-.99,-1.83,-2.13,-3.3,-3.33],["l",-.48,-.42],["l",-.03,1.53],["l",0,1.56],["l",-.21,0],["l",-.21,0],["l",0,-11.25],["z"],["m",1.26,-3.96],["c",-.27,-.3,-.54,-.6,-.66,-.72],["l",-.18,-.21],["l",0,.42],["c",.06,.87,.24,1.74,.66,2.67],["c",.36,.87,.96,1.86,1.92,3.18],["c",.21,.33,.63,.87,.87,1.23],["c",.27,.39,.6,.84,.75,1.08],["l",.27,.39],["l",.03,-.12],["c",.12,-.45,.15,-1.05,.09,-1.59],["c",-.27,-1.86,-1.38,-3.78,-3.75,-6.33],["z"],["m",-.27,6.09],["c",-.27,-.21,-.48,-.42,-.51,-.45],["c",-.06,-.03,-.06,-.03,-.06,.21],["c",0,.9,.3,2.04,.81,3.09],["c",.48,1.02,.96,1.77,2.37,3.63],["c",.6,.78,1.05,1.44,1.29,1.77],["c",.06,.12,.15,.21,.15,.18],["c",.03,-.03,.18,-.57,.24,-.87],["c",.06,-.45,.06,-1.32,-.03,-1.74],["c",-.09,-.48,-.24,-.9,-.51,-1.44],["c",-.66,-1.35,-1.83,-2.7,-3.75,-4.38],["z"]],w:6.697,h:32.145},"flags.u64th":{d:[["M",-.42,15],["l",0,-15],["l",.21,0],["l",.21,0],["l",0,.36],["c",.06,1.2,.39,2.37,1.02,3.66],["c",.39,.81,.84,1.56,1.8,3.09],["c",.81,1.26,1.05,1.68,1.35,2.22],["c",.87,1.5,1.35,2.79,1.56,4.08],["c",.06,.54,.06,1.56,-.03,2.04],["c",-.09,.48,-.21,.99,-.36,1.35],["l",-.12,.27],["l",.12,.27],["c",.09,.15,.21,.45,.27,.66],["c",.69,1.89,.63,3.66,-.18,5.46],["l",-.18,.39],["l",.15,.33],["c",.3,.66,.51,1.44,.63,2.1],["c",.06,.48,.06,1.35,0,1.71],["c",-.15,.57,-.42,1.2,-.78,1.68],["l",-.21,.27],["l",.18,.33],["c",.57,1.05,.93,2.13,1.02,3.18],["c",.06,.72,0,1.83,-.21,2.79],["c",-.18,1.02,-.63,2.34,-1.02,3.09],["c",-.15,.33,-.48,.45,-.78,.3],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.03,-.54],["c",.75,-1.5,1.23,-3.45,1.17,-4.89],["c",-.06,-1.02,-.42,-2.01,-1.17,-3.15],["c",-.48,-.72,-1.02,-1.35,-1.89,-2.22],["c",-.57,-.57,-1.56,-1.5,-1.92,-1.77],["l",-.12,-.09],["l",0,1.68],["l",0,1.68],["l",-.21,0],["l",-.21,0],["l",0,-15],["z"],["m",.93,-8.07],["c",-.27,-.3,-.48,-.54,-.51,-.54],["c",0,0,0,.69,.03,1.02],["c",.15,1.47,.75,2.94,2.04,4.83],["l",1.08,1.53],["c",.39,.57,.84,1.2,.99,1.44],["c",.15,.24,.3,.45,.3,.45],["c",0,0,.03,-.09,.06,-.21],["c",.36,-1.59,-.15,-3.33,-1.47,-5.4],["c",-.63,-.93,-1.35,-1.83,-2.52,-3.12],["z"],["m",.06,6.72],["c",-.24,-.21,-.48,-.42,-.51,-.45],["l",-.06,-.06],["l",0,.33],["c",0,1.2,.3,2.34,.93,3.6],["c",.45,.9,.96,1.68,2.25,3.51],["c",.39,.54,.84,1.17,1.02,1.44],["c",.21,.33,.33,.51,.33,.48],["c",.06,-.09,.21,-.63,.3,-.99],["c",.06,-.33,.06,-.45,.06,-.96],["c",0,-.6,-.03,-.84,-.18,-1.35],["c",-.3,-1.08,-1.02,-2.28,-2.13,-3.57],["c",-.39,-.45,-1.44,-1.47,-2.01,-1.98],["z"],["m",0,6.72],["c",-.24,-.21,-.48,-.39,-.51,-.42],["l",-.06,-.06],["l",0,.33],["c",0,1.41,.45,2.82,1.38,4.35],["c",.42,.72,.72,1.14,1.86,2.73],["c",.36,.45,.75,.99,.87,1.2],["c",.15,.21,.3,.36,.3,.36],["c",.06,0,.3,-.48,.39,-.75],["c",.09,-.36,.12,-.63,.12,-1.05],["c",-.06,-1.05,-.45,-2.04,-1.2,-3.18],["c",-.57,-.87,-1.11,-1.53,-2.07,-2.49],["c",-.36,-.33,-.84,-.78,-1.08,-1.02],["z"]],w:6.682,h:39.694},"flags.d8th":{d:[["M",5.67,-21.63],["c",.24,-.12,.54,-.06,.69,.15],["c",.06,.06,.21,.36,.39,.66],["c",.84,1.77,1.26,3.36,1.32,5.1],["c",.03,1.29,-.21,2.37,-.81,3.63],["c",-.6,1.23,-1.26,2.13,-3.21,4.38],["c",-1.35,1.53,-1.86,2.19,-2.4,2.97],["c",-.63,.93,-1.11,1.92,-1.38,2.79],["c",-.15,.54,-.27,1.35,-.27,1.8],["l",0,.15],["l",-.21,0],["l",-.21,0],["l",0,-3.75],["l",0,-3.75],["l",.21,0],["l",.21,0],["l",.48,-.3],["c",1.83,-1.11,3.12,-2.1,4.17,-3.12],["c",.78,-.81,1.32,-1.53,1.71,-2.31],["c",.45,-.93,.6,-1.74,.51,-2.88],["c",-.12,-1.56,-.63,-3.18,-1.47,-4.68],["c",-.12,-.21,-.15,-.33,-.06,-.51],["c",.06,-.15,.15,-.24,.33,-.33],["z"]],w:8.492,h:21.691},"flags.ugrace":{d:[["M",6.03,6.93],["c",.15,-.09,.33,-.06,.51,0],["c",.15,.09,.21,.15,.3,.33],["c",.09,.18,.06,.39,-.03,.54],["c",-.06,.15,-10.89,8.88,-11.07,8.97],["c",-.15,.09,-.33,.06,-.48,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.06,-.39,.03,-.54],["c",.06,-.15,10.89,-8.88,11.07,-8.97],["z"]],w:12.019,h:9.954},"flags.dgrace":{d:[["M",-6.06,-15.93],["c",.18,-.09,.33,-.12,.48,-.06],["c",.18,.09,14.01,8.04,14.1,8.1],["c",.12,.12,.18,.33,.18,.51],["c",-.03,.21,-.15,.39,-.36,.48],["c",-.18,.09,-.33,.12,-.48,.06],["c",-.18,-.09,-14.01,-8.04,-14.1,-8.1],["c",-.12,-.12,-.18,-.33,-.18,-.51],["c",.03,-.21,.15,-.39,.36,-.48],["z"]],w:15.12,h:9.212},"flags.d16th":{d:[["M",6.84,-22.53],["c",.27,-.12,.57,-.06,.72,.15],["c",.15,.15,.33,.87,.45,1.56],["c",.06,.33,.06,1.35,0,1.65],["c",-.06,.33,-.15,.78,-.27,1.11],["c",-.12,.33,-.45,.96,-.66,1.32],["l",-.18,.27],["l",.09,.18],["c",.48,1.02,.72,2.25,.69,3.3],["c",-.06,1.23,-.42,2.28,-1.26,3.45],["c",-.57,.87,-.99,1.32,-3,3.39],["c",-1.56,1.56,-2.22,2.4,-2.76,3.45],["c",-.42,.84,-.66,1.8,-.66,2.55],["l",0,.15],["l",-.21,0],["l",-.21,0],["l",0,-7.5],["l",0,-7.5],["l",.21,0],["l",.21,0],["l",0,1.14],["l",0,1.11],["l",.27,-.15],["c",1.11,-.57,1.77,-.99,2.52,-1.47],["c",2.37,-1.56,3.69,-3.15,4.05,-4.83],["c",.03,-.18,.03,-.39,.03,-.78],["c",0,-.6,-.03,-.93,-.24,-1.5],["c",-.06,-.18,-.12,-.39,-.15,-.45],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.63,7.5],["c",-.06,-.18,-.15,-.36,-.15,-.36],["c",-.03,0,-.03,.03,-.06,.06],["c",-.06,.12,-.96,1.02,-1.95,1.98],["c",-.63,.57,-1.26,1.17,-1.44,1.35],["c",-1.53,1.62,-2.28,2.85,-2.55,4.32],["c",-.03,.18,-.03,.54,-.06,.99],["l",0,.69],["l",.18,-.09],["c",.93,-.54,2.1,-1.29,2.82,-1.83],["c",.69,-.51,1.02,-.81,1.53,-1.29],["c",1.86,-1.89,2.37,-3.66,1.68,-5.82],["z"]],w:8.475,h:22.591},"flags.d32nd":{d:[["M",6.84,-29.13],["c",.27,-.12,.57,-.06,.72,.15],["c",.12,.12,.27,.63,.36,1.11],["c",.33,1.59,.06,3.06,-.81,4.47],["l",-.18,.27],["l",.09,.15],["c",.12,.24,.33,.69,.45,1.05],["c",.63,1.83,.45,3.57,-.57,5.22],["l",-.18,.3],["l",.15,.27],["c",.42,.87,.6,1.71,.57,2.61],["c",-.06,1.29,-.48,2.46,-1.35,3.78],["c",-.54,.81,-.93,1.29,-2.46,3],["c",-.51,.54,-1.05,1.17,-1.26,1.41],["c",-1.56,1.86,-2.25,3.36,-2.37,5.01],["l",0,.33],["l",-.21,0],["l",-.21,0],["l",0,-11.25],["l",0,-11.25],["l",.21,0],["l",.21,0],["l",0,1.35],["l",.03,1.35],["l",.78,-.39],["c",1.38,-.69,2.34,-1.26,3.24,-1.92],["c",1.38,-1.02,2.28,-2.13,2.64,-3.21],["c",.15,-.48,.18,-.72,.18,-1.29],["c",0,-.57,-.06,-.9,-.24,-1.47],["c",-.06,-.18,-.12,-.39,-.15,-.45],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.63,7.2],["c",-.09,-.18,-.12,-.21,-.12,-.15],["c",-.03,.09,-1.02,1.08,-2.04,2.04],["c",-1.17,1.08,-1.65,1.56,-2.07,2.04],["c",-.84,.96,-1.38,1.86,-1.68,2.76],["c",-.21,.57,-.27,.99,-.3,1.65],["l",0,.54],["l",.66,-.33],["c",3.57,-1.86,5.49,-3.69,5.94,-5.7],["c",.06,-.39,.06,-1.2,-.03,-1.65],["c",-.06,-.39,-.24,-.9,-.36,-1.2],["z"],["m",-.06,7.2],["c",-.06,-.15,-.12,-.33,-.15,-.45],["l",-.06,-.18],["l",-.18,.21],["l",-1.83,1.83],["c",-.87,.9,-1.77,1.8,-1.95,2.01],["c",-1.08,1.29,-1.62,2.31,-1.89,3.51],["c",-.06,.3,-.06,.51,-.09,.93],["l",0,.57],["l",.09,-.06],["c",.75,-.45,1.89,-1.26,2.52,-1.74],["c",.81,-.66,1.74,-1.53,2.22,-2.16],["c",1.26,-1.53,1.68,-3.06,1.32,-4.47],["z"]],w:8.385,h:29.191},"flags.d64th":{d:[["M",7.08,-32.88],["c",.3,-.12,.66,-.03,.78,.24],["c",.18,.33,.27,2.1,.15,2.64],["c",-.09,.39,-.21,.78,-.39,1.08],["l",-.15,.3],["l",.09,.27],["c",.03,.12,.09,.45,.12,.69],["c",.27,1.44,.18,2.55,-.3,3.6],["l",-.12,.33],["l",.06,.42],["c",.27,1.35,.33,2.82,.21,3.63],["c",-.12,.6,-.3,1.23,-.57,1.8],["l",-.15,.27],["l",.03,.42],["c",.06,1.02,.06,2.7,.03,3.06],["c",-.15,1.47,-.66,2.76,-1.74,4.41],["c",-.45,.69,-.75,1.11,-1.74,2.37],["c",-1.05,1.38,-1.5,1.98,-1.95,2.73],["c",-.93,1.5,-1.38,2.82,-1.44,4.2],["l",0,.42],["l",-.21,0],["l",-.21,0],["l",0,-15],["l",0,-15],["l",.21,0],["l",.21,0],["l",0,1.86],["l",0,1.89],["c",0,0,.21,-.03,.45,-.09],["c",2.22,-.39,4.08,-1.11,5.19,-2.01],["c",.63,-.54,1.02,-1.14,1.2,-1.8],["c",.06,-.3,.06,-1.14,-.03,-1.65],["c",-.03,-.18,-.06,-.39,-.09,-.48],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.45,6.15],["c",-.03,-.18,-.06,-.42,-.06,-.54],["l",-.03,-.18],["l",-.33,.3],["c",-.42,.36,-.87,.72,-1.68,1.29],["c",-1.98,1.38,-2.25,1.59,-2.85,2.16],["c",-.75,.69,-1.23,1.44,-1.47,2.19],["c",-.15,.45,-.18,.63,-.21,1.35],["l",0,.66],["l",.39,-.18],["c",1.83,-.9,3.45,-1.95,4.47,-2.91],["c",.93,-.9,1.53,-1.83,1.74,-2.82],["c",.06,-.33,.06,-.87,.03,-1.32],["z"],["m",-.27,4.86],["c",-.03,-.21,-.06,-.36,-.06,-.36],["c",0,-.03,-.12,.09,-.24,.24],["c",-.39,.48,-.99,1.08,-2.16,2.19],["c",-1.47,1.38,-1.92,1.83,-2.46,2.49],["c",-.66,.87,-1.08,1.74,-1.29,2.58],["c",-.09,.42,-.15,.87,-.15,1.44],["l",0,.54],["l",.48,-.33],["c",1.5,-1.02,2.58,-1.89,3.51,-2.82],["c",1.47,-1.47,2.25,-2.85,2.4,-4.26],["c",.03,-.39,.03,-1.17,-.03,-1.71],["z"],["m",-.66,7.68],["c",.03,-.15,.03,-.6,.03,-.99],["l",0,-.72],["l",-.27,.33],["l",-1.74,1.98],["c",-1.77,1.92,-2.43,2.76,-2.97,3.9],["c",-.51,1.02,-.72,1.77,-.75,2.91],["c",0,.63,0,.63,.06,.6],["c",.03,-.03,.3,-.27,.63,-.54],["c",.66,-.6,1.86,-1.8,2.31,-2.31],["c",1.65,-1.89,2.52,-3.54,2.7,-5.16],["z"]],w:8.485,h:32.932},"clefs.C":{d:[["M",.06,-14.94],["l",.09,-.06],["l",1.92,0],["l",1.92,0],["l",.09,.06],["l",.06,.09],["l",0,14.85],["l",0,14.82],["l",-.06,.09],["l",-.09,.06],["l",-1.92,0],["l",-1.92,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-14.82],["l",0,-14.85],["z"],["m",5.37,0],["c",.09,-.06,.09,-.06,.57,-.06],["c",.45,0,.45,0,.54,.06],["l",.06,.09],["l",0,7.14],["l",0,7.11],["l",.09,-.06],["c",.18,-.18,.72,-.84,.96,-1.2],["c",.3,-.45,.66,-1.17,.84,-1.65],["c",.36,-.9,.57,-1.83,.6,-2.79],["c",.03,-.48,.03,-.54,.09,-.63],["c",.12,-.18,.36,-.21,.54,-.12],["c",.18,.09,.21,.15,.24,.66],["c",.06,.87,.21,1.56,.57,2.22],["c",.51,1.02,1.26,1.68,2.22,1.92],["c",.21,.06,.33,.06,.78,.06],["c",.45,0,.57,0,.84,-.06],["c",.45,-.12,.81,-.33,1.08,-.6],["c",.57,-.57,.87,-1.41,.99,-2.88],["c",.06,-.54,.06,-3,0,-3.57],["c",-.21,-2.58,-.84,-3.87,-2.16,-4.5],["c",-.48,-.21,-1.17,-.36,-1.77,-.36],["c",-.69,0,-1.29,.27,-1.5,.72],["c",-.06,.15,-.06,.21,-.06,.42],["c",0,.24,0,.3,.06,.45],["c",.12,.24,.24,.39,.63,.66],["c",.42,.3,.57,.48,.69,.72],["c",.06,.15,.06,.21,.06,.48],["c",0,.39,-.03,.63,-.21,.96],["c",-.3,.6,-.87,1.08,-1.5,1.26],["c",-.27,.06,-.87,.06,-1.14,0],["c",-.78,-.24,-1.44,-.87,-1.65,-1.68],["c",-.12,-.42,-.09,-1.17,.09,-1.71],["c",.51,-1.65,1.98,-2.82,3.81,-3.09],["c",.84,-.09,2.46,.03,3.51,.27],["c",2.22,.57,3.69,1.8,4.44,3.75],["c",.36,.93,.57,2.13,.57,3.36],["c",0,1.44,-.48,2.73,-1.38,3.81],["c",-1.26,1.5,-3.27,2.43,-5.28,2.43],["c",-.48,0,-.51,0,-.75,-.09],["c",-.15,-.03,-.48,-.21,-.78,-.36],["c",-.69,-.36,-.87,-.42,-1.26,-.42],["c",-.27,0,-.3,0,-.51,.09],["c",-.57,.3,-.81,.9,-.81,2.1],["c",0,1.23,.24,1.83,.81,2.13],["c",.21,.09,.24,.09,.51,.09],["c",.39,0,.57,-.06,1.26,-.42],["c",.3,-.15,.63,-.33,.78,-.36],["c",.24,-.09,.27,-.09,.75,-.09],["c",2.01,0,4.02,.93,5.28,2.4],["c",.9,1.11,1.38,2.4,1.38,3.84],["c",0,1.5,-.3,2.88,-.84,3.96],["c",-.78,1.59,-2.19,2.64,-4.17,3.15],["c",-1.05,.24,-2.67,.36,-3.51,.27],["c",-1.83,-.27,-3.3,-1.44,-3.81,-3.09],["c",-.18,-.54,-.21,-1.29,-.09,-1.74],["c",.15,-.6,.63,-1.2,1.23,-1.47],["c",.36,-.18,.57,-.21,.99,-.21],["c",.42,0,.63,.03,1.02,.21],["c",.42,.21,.84,.63,1.05,1.05],["c",.18,.36,.21,.6,.21,.96],["c",0,.3,0,.36,-.06,.51],["c",-.12,.24,-.27,.42,-.69,.72],["c",-.57,.42,-.69,.63,-.69,1.08],["c",0,.24,0,.3,.06,.45],["c",.12,.21,.3,.39,.57,.54],["c",.42,.18,.87,.21,1.53,.15],["c",1.08,-.15,1.8,-.57,2.34,-1.32],["c",.54,-.75,.84,-1.83,.99,-3.51],["c",.06,-.57,.06,-3.03,0,-3.57],["c",-.12,-1.47,-.42,-2.31,-.99,-2.88],["c",-.27,-.27,-.63,-.48,-1.08,-.6],["c",-.27,-.06,-.39,-.06,-.84,-.06],["c",-.45,0,-.57,0,-.78,.06],["c",-1.14,.27,-2.01,1.17,-2.46,2.49],["c",-.21,.57,-.3,.99,-.33,1.65],["c",-.03,.51,-.06,.57,-.24,.66],["c",-.12,.06,-.27,.06,-.39,0],["c",-.21,-.09,-.21,-.15,-.24,-.75],["c",-.09,-1.92,-.78,-3.72,-2.01,-5.19],["c",-.18,-.21,-.36,-.42,-.39,-.45],["l",-.09,-.06],["l",0,7.11],["l",0,7.14],["l",-.06,.09],["c",-.09,.06,-.09,.06,-.54,.06],["c",-.48,0,-.48,0,-.57,-.06],["l",-.06,-.09],["l",0,-14.82],["l",0,-14.85],["z"]],w:20.31,h:29.97},"clefs.F":{d:[["M",6.3,-7.8],["c",.36,-.03,1.65,0,2.13,.03],["c",3.6,.42,6.03,2.1,6.93,4.86],["c",.27,.84,.36,1.5,.36,2.58],["c",0,.9,-.03,1.35,-.18,2.16],["c",-.78,3.78,-3.54,7.08,-8.37,9.96],["c",-1.74,1.05,-3.87,2.13,-6.18,3.12],["c",-.39,.18,-.75,.33,-.81,.36],["c",-.06,.03,-.15,.06,-.18,.06],["c",-.15,0,-.33,-.18,-.33,-.33],["c",0,-.15,.06,-.21,.51,-.48],["c",3,-1.77,5.13,-3.21,6.84,-4.74],["c",.51,-.45,1.59,-1.5,1.95,-1.95],["c",1.89,-2.19,2.88,-4.32,3.15,-6.78],["c",.06,-.42,.06,-1.77,0,-2.19],["c",-.24,-2.01,-.93,-3.63,-2.04,-4.71],["c",-.63,-.63,-1.29,-1.02,-2.07,-1.2],["c",-1.62,-.39,-3.36,.15,-4.56,1.44],["c",-.54,.6,-1.05,1.47,-1.32,2.22],["l",-.09,.21],["l",.24,-.12],["c",.39,-.21,.63,-.24,1.11,-.24],["c",.3,0,.45,0,.66,.06],["c",1.92,.48,2.85,2.55,1.95,4.38],["c",-.45,.99,-1.41,1.62,-2.46,1.71],["c",-1.47,.09,-2.91,-.87,-3.39,-2.25],["c",-.18,-.57,-.21,-1.32,-.03,-2.28],["c",.39,-2.25,1.83,-4.2,3.81,-5.19],["c",.69,-.36,1.59,-.6,2.37,-.69],["z"],["m",11.58,2.52],["c",.84,-.21,1.71,.3,1.89,1.14],["c",.3,1.17,-.72,2.19,-1.89,1.89],["c",-.99,-.21,-1.5,-1.32,-1.02,-2.25],["c",.18,-.39,.6,-.69,1.02,-.78],["z"],["m",0,7.5],["c",.84,-.21,1.71,.3,1.89,1.14],["c",.21,.87,-.3,1.71,-1.14,1.89],["c",-.87,.21,-1.71,-.3,-1.89,-1.14],["c",-.21,-.84,.3,-1.71,1.14,-1.89],["z"]],w:20.153,h:23.142},"clefs.G":{d:[["M",9.69,-37.41],["c",.09,-.09,.24,-.06,.36,0],["c",.12,.09,.57,.6,.96,1.11],["c",1.77,2.34,3.21,5.85,3.57,8.73],["c",.21,1.56,.03,3.27,-.45,4.86],["c",-.69,2.31,-1.92,4.47,-4.23,7.44],["c",-.3,.39,-.57,.72,-.6,.75],["c",-.03,.06,0,.15,.18,.78],["c",.54,1.68,1.38,4.44,1.68,5.49],["l",.09,.42],["l",.39,0],["c",1.47,.09,2.76,.51,3.96,1.29],["c",1.83,1.23,3.06,3.21,3.39,5.52],["c",.09,.45,.12,1.29,.06,1.74],["c",-.09,1.02,-.33,1.83,-.75,2.73],["c",-.84,1.71,-2.28,3.06,-4.02,3.72],["l",-.33,.12],["l",.03,1.26],["c",0,1.74,-.06,3.63,-.21,4.62],["c",-.45,3.06,-2.19,5.49,-4.47,6.21],["c",-.57,.18,-.9,.21,-1.59,.21],["c",-.69,0,-1.02,-.03,-1.65,-.21],["c",-1.14,-.27,-2.13,-.84,-2.94,-1.65],["c",-.99,-.99,-1.56,-2.16,-1.71,-3.54],["c",-.09,-.81,.06,-1.53,.45,-2.13],["c",.63,-.99,1.83,-1.56,3,-1.53],["c",1.5,.09,2.64,1.32,2.73,2.94],["c",.06,1.47,-.93,2.7,-2.37,2.97],["c",-.45,.06,-.84,.03,-1.29,-.09],["l",-.21,-.09],["l",.09,.12],["c",.39,.54,.78,.93,1.32,1.26],["c",1.35,.87,3.06,1.02,4.35,.36],["c",1.44,-.72,2.52,-2.28,2.97,-4.35],["c",.15,-.66,.24,-1.5,.3,-3.03],["c",.03,-.84,.03,-2.94,0,-3],["c",-.03,0,-.18,0,-.36,.03],["c",-.66,.12,-.99,.12,-1.83,.12],["c",-1.05,0,-1.71,-.06,-2.61,-.3],["c",-4.02,-.99,-7.11,-4.35,-7.8,-8.46],["c",-.12,-.66,-.12,-.99,-.12,-1.83],["c",0,-.84,0,-1.14,.15,-1.92],["c",.36,-2.28,1.41,-4.62,3.3,-7.29],["l",2.79,-3.6],["c",.54,-.66,.96,-1.2,.96,-1.23],["c",0,-.03,-.09,-.33,-.18,-.69],["c",-.96,-3.21,-1.41,-5.28,-1.59,-7.68],["c",-.12,-1.38,-.15,-3.09,-.06,-3.96],["c",.33,-2.67,1.38,-5.07,3.12,-7.08],["c",.36,-.42,.99,-1.05,1.17,-1.14],["z"],["m",2.01,4.71],["c",-.15,-.3,-.3,-.54,-.3,-.54],["c",-.03,0,-.18,.09,-.3,.21],["c",-2.4,1.74,-3.87,4.2,-4.26,7.11],["c",-.06,.54,-.06,1.41,-.03,1.89],["c",.09,1.29,.48,3.12,1.08,5.22],["c",.15,.42,.24,.78,.24,.81],["c",0,.03,.84,-1.11,1.23,-1.68],["c",1.89,-2.73,2.88,-5.07,3.15,-7.53],["c",.09,-.57,.12,-1.74,.06,-2.37],["c",-.09,-1.23,-.27,-1.92,-.87,-3.12],["z"],["m",-2.94,20.7],["c",-.21,-.72,-.39,-1.32,-.42,-1.32],["c",0,0,-1.2,1.47,-1.86,2.37],["c",-2.79,3.63,-4.02,6.3,-4.35,9.3],["c",-.03,.21,-.03,.69,-.03,1.08],["c",0,.69,0,.75,.06,1.11],["c",.12,.54,.27,.99,.51,1.47],["c",.69,1.38,1.83,2.55,3.42,3.42],["c",.96,.54,2.07,.9,3.21,1.08],["c",.78,.12,2.04,.12,2.94,-.03],["c",.51,-.06,.45,-.03,.42,-.3],["c",-.24,-3.33,-.72,-6.33,-1.62,-10.08],["c",-.09,-.39,-.18,-.75,-.18,-.78],["c",-.03,-.03,-.42,0,-.81,.09],["c",-.9,.18,-1.65,.57,-2.22,1.14],["c",-.72,.72,-1.08,1.65,-1.05,2.64],["c",.06,.96,.48,1.83,1.23,2.58],["c",.36,.36,.72,.63,1.17,.9],["c",.33,.18,.36,.21,.42,.33],["c",.18,.42,-.18,.9,-.6,.87],["c",-.18,-.03,-.84,-.36,-1.26,-.63],["c",-.78,-.51,-1.38,-1.11,-1.86,-1.83],["c",-1.77,-2.7,-.99,-6.42,1.71,-8.19],["c",.3,-.21,.81,-.48,1.17,-.63],["c",.3,-.09,1.02,-.3,1.14,-.3],["c",.06,0,.09,0,.09,-.03],["c",.03,-.03,-.51,-1.92,-1.23,-4.26],["z"],["m",3.78,7.41],["c",-.18,-.03,-.36,-.06,-.39,-.06],["c",-.03,0,0,.21,.18,1.02],["c",.75,3.18,1.26,6.3,1.5,9.09],["c",.06,.72,0,.69,.51,.42],["c",.78,-.36,1.44,-.96,1.98,-1.77],["c",1.08,-1.62,1.2,-3.69,.3,-5.55],["c",-.81,-1.62,-2.31,-2.79,-4.08,-3.15],["z"]],w:19.051,h:57.057},"clefs.perc":{d:[["M",5.07,-7.44],["l",.09,-.06],["l",1.53,0],["l",1.53,0],["l",.09,.06],["l",.06,.09],["l",0,7.35],["l",0,7.32],["l",-.06,.09],["l",-.09,.06],["l",-1.53,0],["l",-1.53,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-7.32],["l",0,-7.35],["z"],["m",6.63,0],["l",.09,-.06],["l",1.53,0],["l",1.53,0],["l",.09,.06],["l",.06,.09],["l",0,7.35],["l",0,7.32],["l",-.06,.09],["l",-.09,.06],["l",-1.53,0],["l",-1.53,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-7.32],["l",0,-7.35],["z"]],w:21,h:14.97},"tab.big":{d:[["M",20.16,-21.66],["c",.24,-.09,.66,.09,.78,.36],["c",.09,.21,.09,.24,-.18,.54],["c",-.78,.81,-1.86,1.44,-2.94,1.71],["c",-.87,.24,-1.71,.24,-2.55,.03],["l",-.06,-.03],["l",-.18,.99],["c",-.33,1.98,-.75,4.26,-.96,5.04],["c",-.42,1.65,-1.26,3.18,-2.28,4.14],["c",-.57,.57,-1.17,.9,-1.86,1.08],["c",-.18,.06,-.33,.06,-.66,.06],["c",-.54,0,-.78,-.03,-1.23,-.27],["c",-.39,-.18,-.66,-.39,-1.38,-.99],["c",-.3,-.24,-.66,-.51,-.75,-.57],["c",-.21,-.15,-.27,-.24,-.24,-.45],["c",.06,-.27,.36,-.6,.6,-.66],["c",.18,-.03,.33,.06,.9,.57],["c",.48,.42,.72,.57,.93,.69],["c",.66,.33,1.38,.21,1.95,-.36],["c",.63,-.6,1.05,-1.62,1.23,-3],["c",.03,-.18,.09,-.66,.09,-1.11],["c",.09,-1.56,.33,-3.81,.57,-5.49],["c",.06,-.33,.09,-.63,.09,-.63],["c",-.03,-.03,-.81,-.12,-1.02,-.12],["c",-.57,0,-1.32,.12,-1.8,.33],["c",-.87,.3,-1.35,.78,-1.5,1.41],["c",-.18,.63,.09,1.26,.66,1.65],["c",.12,.06,.15,.12,.18,.24],["c",.09,.27,.06,.57,-.09,.75],["c",-.03,.06,-.12,.09,-.27,.15],["c",-.72,.21,-1.44,.15,-2.1,-.18],["c",-.54,-.27,-.96,-.66,-1.2,-1.14],["c",-.39,-.75,-.33,-1.74,.15,-2.52],["c",.27,-.42,.84,-.93,1.41,-1.23],["c",1.17,-.57,2.88,-.9,4.8,-.9],["c",.69,0,.78,0,1.08,.06],["c",.45,.09,1.11,.3,2.07,.6],["c",1.47,.48,1.83,.57,2.55,.54],["c",1.02,-.06,2.04,-.45,2.94,-1.11],["c",.12,-.09,.24,-.18,.27,-.18],["z"],["m",-5.88,13.05],["c",.21,-.03,.81,0,1.08,.06],["c",.48,.12,.9,.42,.99,.69],["c",.03,.09,.03,.15,0,.27],["c",0,.09,-.03,.57,-.06,1.08],["c",-.09,2.19,-.24,5.76,-.39,8.28],["c",-.06,1.53,-.06,1.77,.03,2.01],["c",.09,.18,.15,.24,.3,.3],["c",.24,.12,.54,.06,1.23,-.27],["c",.57,-.27,.66,-.3,.75,-.24],["c",.09,.06,.18,.3,.18,.45],["c",0,.33,-.15,.51,-.45,.63],["c",-.12,.03,-.39,.15,-.6,.27],["c",-1.17,.6,-1.38,.69,-1.8,.72],["c",-.45,.03,-.78,-.09,-1.08,-.39],["c",-.39,-.42,-.66,-1.2,-1.02,-3.12],["c",-.24,-1.23,-.36,-2.07,-.54,-3.75],["l",0,-.18],["l",-.36,.45],["c",-.6,.75,-1.32,1.59,-1.95,2.25],["c",-.15,.18,-.27,.3,-.27,.33],["c",0,0,.06,.09,.15,.18],["c",.24,.33,.6,.57,1.05,.69],["c",.18,.06,.3,.06,.69,.06],["l",.48,.03],["l",.06,.12],["c",.15,.27,.03,.72,-.21,.9],["c",-.18,.12,-.93,.27,-1.41,.27],["c",-.84,0,-1.59,-.3,-1.98,-.84],["l",-.12,-.15],["l",-.45,.42],["c",-.99,.87,-1.53,1.32,-2.16,1.74],["c",-.78,.51,-1.5,.84,-2.1,.93],["c",-.69,.12,-1.2,.03,-1.95,-.42],["c",-.21,-.12,-.51,-.27,-.66,-.36],["c",-.24,-.12,-.3,-.18,-.33,-.24],["c",-.12,-.27,.15,-.78,.45,-.93],["c",.24,-.12,.33,-.09,.9,.18],["c",.6,.3,.84,.39,1.2,.36],["c",.87,-.09,1.77,-.69,3.24,-2.31],["c",2.67,-2.85,4.59,-5.94,5.7,-9.15],["c",.15,-.45,.24,-.63,.42,-.81],["c",.21,-.24,.6,-.45,.99,-.51],["z"],["m",-3.99,16.05],["c",.18,0,.69,-.03,1.17,0],["c",3.27,.03,5.37,.75,6,2.07],["c",.45,.99,.12,2.4,-.81,3.42],["c",-.24,.27,-.57,.57,-.84,.75],["c",-.09,.06,-.18,.09,-.18,.12],["c",0,0,.18,.03,.42,.09],["c",1.23,.3,2.01,.81,2.37,1.59],["c",.27,.54,.3,1.32,.09,2.1],["c",-.12,.36,-.45,1.05,-.69,1.35],["c",-.87,1.17,-2.1,1.92,-3.54,2.25],["c",-.36,.06,-.48,.06,-.96,.06],["c",-.45,0,-.66,0,-.84,-.03],["c",-.84,-.18,-1.47,-.51,-2.07,-1.11],["c",-.33,-.33,-.45,-.51,-.45,-.63],["c",0,-.06,.03,-.15,.06,-.24],["c",.18,-.33,.69,-.6,.93,-.48],["c",.03,.03,.15,.12,.27,.24],["c",.39,.42,.99,.57,1.62,.45],["c",1.05,-.21,1.98,-1.02,2.31,-2.01],["c",.48,-1.53,-.48,-2.55,-2.58,-2.67],["c",-.21,0,-.36,-.03,-.42,-.06],["c",-.15,-.09,-.21,-.51,-.06,-.78],["c",.12,-.27,.24,-.33,.6,-.36],["c",.57,-.06,1.11,-.42,1.5,-.99],["c",.48,-.72,.54,-1.59,.18,-2.31],["c",-.12,-.21,-.45,-.54,-.69,-.69],["c",-.33,-.21,-.93,-.45,-1.35,-.51],["l",-.12,-.03],["l",-.06,.48],["c",-.54,2.94,-1.14,6.24,-1.29,6.75],["c",-.33,1.35,-.93,2.61,-1.65,3.6],["c",-.3,.36,-.81,.9,-1.14,1.14],["c",-.3,.24,-.84,.48,-1.14,.57],["c",-.33,.09,-.96,.09,-1.26,.03],["c",-.45,-.12,-.87,-.39,-1.53,-.96],["c",-.24,-.15,-.51,-.39,-.63,-.48],["c",-.3,-.21,-.33,-.33,-.21,-.63],["c",.12,-.18,.27,-.36,.42,-.45],["c",.27,-.12,.36,-.09,.87,.33],["c",.78,.6,1.08,.75,1.65,.72],["c",.45,-.03,.81,-.21,1.17,-.54],["c",.87,-.9,1.38,-2.85,1.38,-5.37],["c",0,-.6,.03,-1.11,.12,-2.04],["c",.06,-.69,.24,-2.01,.33,-2.58],["c",.06,-.24,.06,-.42,.06,-.42],["c",0,0,-.12,.03,-.21,.09],["c",-1.44,.57,-2.16,1.65,-1.74,2.55],["c",.09,.15,.18,.24,.27,.33],["c",.24,.21,.3,.27,.33,.39],["c",.06,.24,0,.63,-.15,.78],["c",-.09,.12,-.54,.21,-.96,.24],["c",-1.02,.03,-2.01,-.48,-2.43,-1.32],["c",-.21,-.45,-.27,-.9,-.15,-1.44],["c",.06,-.27,.21,-.66,.39,-.93],["c",.87,-1.29,3,-2.22,5.64,-2.43],["z"]],w:19.643,h:43.325},"tab.tiny":{d:[["M",16.02,-17.25],["c",.12,-.09,.15,-.09,.27,-.09],["c",.21,.03,.51,.3,.51,.45],["c",0,.06,-.12,.18,-.3,.36],["c",-1.11,1.08,-2.55,1.59,-3.84,1.41],["c",-.15,-.03,-.33,-.06,-.39,-.09],["c",-.06,-.03,-.09,-.03,-.12,-.03],["c",0,0,-.06,.42,-.15,.93],["c",-.33,2.01,-.66,3.69,-.84,4.26],["c",-.42,1.41,-1.23,2.67,-2.16,3.33],["c",-.27,.18,-.75,.42,-.99,.48],["c",-.3,.09,-.72,.09,-1.02,.06],["c",-.45,-.09,-.84,-.33,-1.53,-.9],["c",-.21,-.18,-.51,-.39,-.63,-.48],["c",-.27,-.21,-.3,-.24,-.3,-.36],["c",0,-.12,.09,-.36,.18,-.45],["c",.09,-.09,.27,-.18,.36,-.18],["c",.12,0,.3,.12,.66,.45],["c",.57,.51,.87,.69,1.23,.72],["c",.93,.06,1.68,-.78,1.98,-2.37],["c",.09,-.39,.15,-.75,.18,-1.53],["c",.06,-.99,.24,-2.79,.42,-4.05],["c",.03,-.3,.06,-.57,.06,-.6],["c",0,-.06,-.03,-.09,-.15,-.12],["c",-.9,-.18,-2.13,.06,-2.76,.57],["c",-.36,.3,-.51,.6,-.51,1.02],["c",0,.45,.15,.75,.48,.99],["c",.06,.06,.15,.18,.18,.24],["c",.12,.24,.03,.63,-.15,.69],["c",-.24,.12,-.6,.15,-.9,.15],["c",-.36,-.03,-.57,-.09,-.87,-.24],["c",-.78,-.36,-1.23,-1.11,-1.2,-1.92],["c",.12,-1.53,1.74,-2.49,4.62,-2.7],["c",1.2,-.09,1.47,-.03,3.33,.57],["c",.9,.3,1.14,.36,1.56,.39],["c",.45,0,.93,-.06,1.38,-.21],["c",.51,-.18,.81,-.33,1.41,-.75],["z"],["m",-4.68,10.38],["c",.39,-.06,.84,0,1.2,.15],["c",.24,.12,.36,.21,.45,.36],["l",.09,.09],["l",-.06,1.41],["c",-.09,2.19,-.18,3.96,-.27,5.49],["c",-.03,.78,-.06,1.59,-.06,1.86],["c",0,.42,0,.48,.06,.57],["c",.06,.18,.18,.24,.36,.27],["c",.18,0,.39,-.06,.84,-.27],["c",.45,-.21,.54,-.24,.63,-.18],["c",.12,.12,.15,.54,.03,.69],["c",-.03,.03,-.15,.12,-.27,.18],["c",-.15,.03,-.3,.12,-.36,.15],["c",-.87,.45,-1.02,.51,-1.26,.57],["c",-.33,.09,-.6,.06,-.84,-.06],["c",-.42,-.18,-.63,-.6,-.87,-1.44],["c",-.3,-1.23,-.57,-2.97,-.66,-4.08],["c",0,-.18,-.03,-.3,-.03,-.33],["l",-.06,.06],["c",-.18,.27,-1.11,1.38,-1.68,2.01],["l",-.33,.33],["l",.06,.09],["c",.06,.15,.27,.33,.48,.42],["c",.27,.18,.51,.24,.96,.27],["l",.39,0],["l",.03,.12],["c",.12,.21,.03,.57,-.15,.69],["c",-.03,.03,-.21,.09,-.36,.15],["c",-.27,.06,-.39,.06,-.75,.06],["c",-.48,0,-.75,-.03,-1.08,-.21],["c",-.21,-.12,-.51,-.36,-.57,-.48],["l",-.03,-.09],["l",-.39,.36],["c",-1.47,1.35,-2.49,1.98,-3.42,2.13],["c",-.54,.09,-.96,-.03,-1.62,-.39],["c",-.21,-.15,-.45,-.27,-.54,-.3],["c",-.18,-.09,-.21,-.21,-.12,-.45],["c",.06,-.27,.33,-.48,.54,-.48],["c",.03,0,.27,.09,.48,.21],["c",.48,.24,.69,.27,.99,.27],["c",.6,-.06,1.17,-.42,2.1,-1.35],["c",2.22,-2.22,4.02,-4.98,4.95,-7.59],["c",.21,-.57,.3,-.78,.48,-.93],["c",.15,-.15,.42,-.27,.66,-.33],["z"],["m",-3.06,12.84],["c",.27,-.03,1.68,0,2.01,.03],["c",1.92,.18,3.15,.69,3.63,1.5],["c",.18,.33,.24,.51,.21,.93],["c",0,.45,-.06,.72,-.24,1.11],["c",-.24,.51,-.69,1.02,-1.17,1.35],["c",-.21,.15,-.21,.15,-.12,.18],["c",.72,.15,1.11,.3,1.5,.57],["c",.39,.24,.63,.57,.75,.96],["c",.09,.3,.09,.96,0,1.29],["c",-.15,.57,-.39,1.05,-.78,1.5],["c",-.66,.75,-1.62,1.32,-2.61,1.53],["c",-.27,.06,-.42,.06,-.84,.06],["c",-.48,0,-.57,0,-.81,-.06],["c",-.6,-.18,-1.05,-.42,-1.47,-.81],["c",-.36,-.39,-.42,-.51,-.3,-.75],["c",.12,-.21,.39,-.39,.6,-.39],["c",.09,0,.15,.03,.33,.18],["c",.12,.12,.27,.24,.36,.27],["c",.96,.48,2.46,-.33,2.82,-1.5],["c",.24,-.81,-.03,-1.44,-.69,-1.77],["c",-.39,-.21,-1.02,-.33,-1.53,-.33],["c",-.18,0,-.21,0,-.27,-.09],["c",-.06,-.09,-.06,-.3,-.03,-.48],["c",.06,-.18,.18,-.36,.33,-.36],["c",.39,-.06,.51,-.09,.72,-.18],["c",.69,-.36,1.11,-1.23,.99,-2.01],["c",-.09,-.51,-.42,-.9,-.93,-1.17],["c",-.24,-.12,-.6,-.27,-.87,-.3],["c",-.09,-.03,-.09,-.03,-.12,.12],["c",0,.09,-.21,1.11,-.42,2.25],["c",-.66,3.75,-.72,3.99,-1.26,5.07],["c",-.9,1.89,-2.25,2.85,-3.48,2.61],["c",-.39,-.09,-.69,-.27,-1.38,-.84],["c",-.63,-.51,-.63,-.48,-.63,-.6],["c",0,-.18,.18,-.48,.39,-.57],["c",.21,-.12,.3,-.09,.81,.33],["c",.15,.15,.39,.3,.54,.36],["c",.18,.12,.27,.12,.48,.15],["c",.99,.06,1.71,-.78,2.04,-2.46],["c",.12,-.66,.18,-1.14,.21,-2.22],["c",.03,-1.23,.12,-2.25,.36,-3.63],["c",.03,-.24,.06,-.45,.06,-.48],["c",-.06,-.03,-.66,.27,-.9,.42],["c",-.06,.06,-.21,.18,-.33,.3],["c",-.57,.57,-.6,1.35,-.06,1.74],["c",.18,.12,.24,.24,.21,.51],["c",-.03,.3,-.15,.42,-.57,.48],["c",-1.11,.24,-2.22,-.42,-2.43,-1.38],["c",-.09,-.45,.03,-1.02,.3,-1.47],["c",.18,-.24,.6,-.63,.9,-.84],["c",.9,-.6,2.28,-1.02,3.69,-1.11],["z"]],w:15.709,h:34.656},"timesig.common":{d:[["M",6.66,-7.83],["c",.72,-.06,1.41,-.03,1.98,.09],["c",1.2,.27,2.34,.96,3.09,1.92],["c",.63,.81,1.08,1.86,1.14,2.73],["c",.06,1.02,-.51,1.92,-1.44,2.22],["c",-.24,.09,-.3,.09,-.63,.09],["c",-.33,0,-.42,0,-.63,-.06],["c",-.66,-.24,-1.14,-.63,-1.41,-1.2],["c",-.15,-.3,-.21,-.51,-.24,-.9],["c",-.06,-1.08,.57,-2.04,1.56,-2.37],["c",.18,-.06,.27,-.06,.63,-.06],["l",.45,0],["c",.06,.03,.09,.03,.09,0],["c",0,0,-.09,-.12,-.24,-.27],["c",-1.02,-1.11,-2.55,-1.68,-4.08,-1.5],["c",-1.29,.15,-2.04,.69,-2.4,1.74],["c",-.36,.93,-.42,1.89,-.42,5.37],["c",0,2.97,.06,3.96,.24,4.77],["c",.24,1.08,.63,1.68,1.41,2.07],["c",.81,.39,2.16,.45,3.18,.09],["c",1.29,-.45,2.37,-1.53,3.03,-2.97],["c",.15,-.33,.33,-.87,.39,-1.17],["c",.09,-.24,.15,-.36,.3,-.39],["c",.21,-.03,.42,.15,.39,.36],["c",-.06,.39,-.42,1.38,-.69,1.89],["c",-.96,1.8,-2.49,2.94,-4.23,3.18],["c",-.99,.12,-2.58,-.06,-3.63,-.45],["c",-.96,-.36,-1.71,-.84,-2.4,-1.5],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-.06,-.6,-.06,-2.01,0,-2.61],["c",.24,-1.95,.9,-3.45,2.01,-4.56],["c",.69,-.66,1.44,-1.11,2.37,-1.47],["c",.63,-.24,1.47,-.42,2.22,-.48],["z"]],w:13.038,h:15.689},"timesig.cut":{d:[["M",6.24,-10.44],["c",.09,-.06,.09,-.06,.48,-.06],["c",.36,0,.36,0,.45,.06],["l",.06,.09],["l",0,1.23],["l",0,1.26],["l",.27,0],["c",1.26,0,2.49,.45,3.48,1.29],["c",1.05,.87,1.8,2.28,1.89,3.48],["c",.06,1.02,-.51,1.92,-1.44,2.22],["c",-.24,.09,-.3,.09,-.63,.09],["c",-.33,0,-.42,0,-.63,-.06],["c",-.66,-.24,-1.14,-.63,-1.41,-1.2],["c",-.15,-.3,-.21,-.51,-.24,-.9],["c",-.06,-1.08,.57,-2.04,1.56,-2.37],["c",.18,-.06,.27,-.06,.63,-.06],["l",.45,0],["c",.06,.03,.09,.03,.09,0],["c",0,-.03,-.45,-.51,-.66,-.69],["c",-.87,-.69,-1.83,-1.05,-2.94,-1.11],["l",-.42,0],["l",0,7.17],["l",0,7.14],["l",.42,0],["c",.69,-.03,1.23,-.18,1.86,-.51],["c",1.05,-.51,1.89,-1.47,2.46,-2.7],["c",.15,-.33,.33,-.87,.39,-1.17],["c",.09,-.24,.15,-.36,.3,-.39],["c",.21,-.03,.42,.15,.39,.36],["c",-.03,.24,-.21,.78,-.39,1.2],["c",-.96,2.37,-2.94,3.9,-5.13,3.9],["l",-.3,0],["l",0,1.26],["l",0,1.23],["l",-.06,.09],["c",-.09,.06,-.09,.06,-.45,.06],["c",-.39,0,-.39,0,-.48,-.06],["l",-.06,-.09],["l",0,-1.29],["l",0,-1.29],["l",-.21,-.03],["c",-1.23,-.21,-2.31,-.63,-3.21,-1.29],["c",-.15,-.09,-.45,-.36,-.66,-.57],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-.06,-.6,-.06,-2.01,0,-2.61],["c",.24,-1.95,.93,-3.45,2.04,-4.59],["c",.42,-.39,.78,-.66,1.26,-.93],["c",.75,-.45,1.65,-.75,2.61,-.9],["l",.21,-.03],["l",0,-1.29],["l",0,-1.29],["z"],["m",-.06,10.44],["c",0,-5.58,0,-6.99,-.03,-6.99],["c",-.15,0,-.63,.27,-.87,.45],["c",-.45,.36,-.75,.93,-.93,1.77],["c",-.18,.81,-.24,1.8,-.24,4.74],["c",0,2.97,.06,3.96,.24,4.77],["c",.24,1.08,.66,1.68,1.41,2.07],["c",.12,.06,.3,.12,.33,.15],["l",.09,0],["l",0,-6.96],["z"]],w:13.038,h:20.97},"timesig.imperfectum":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.imperfectum2":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum2":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},f:{d:[["M",9.93,-14.28],["c",1.53,-.18,2.88,.45,3.12,1.5],["c",.12,.51,0,1.32,-.27,1.86],["c",-.15,.3,-.42,.57,-.63,.69],["c",-.69,.36,-1.56,.03,-1.83,-.69],["c",-.09,-.24,-.09,-.69,0,-.87],["c",.06,-.12,.21,-.24,.45,-.42],["c",.42,-.24,.57,-.45,.6,-.72],["c",.03,-.33,-.09,-.39,-.63,-.42],["c",-.3,0,-.45,0,-.6,.03],["c",-.81,.21,-1.35,.93,-1.74,2.46],["c",-.06,.27,-.48,2.25,-.48,2.31],["c",0,.03,.39,.03,.9,.03],["c",.72,0,.9,0,.99,.06],["c",.42,.15,.45,.72,.03,.9],["c",-.12,.06,-.24,.06,-1.17,.06],["l",-1.05,0],["l",-.78,2.55],["c",-.45,1.41,-.87,2.79,-.96,3.06],["c",-.87,2.37,-2.37,4.74,-3.78,5.91],["c",-1.05,.9,-2.04,1.23,-3.09,1.08],["c",-1.11,-.18,-1.89,-.78,-2.04,-1.59],["c",-.12,-.66,.15,-1.71,.54,-2.19],["c",.69,-.75,1.86,-.54,2.22,.39],["c",.06,.15,.09,.27,.09,.48],["c",0,.24,-.03,.27,-.12,.42],["c",-.03,.09,-.15,.18,-.27,.27],["c",-.09,.06,-.27,.21,-.36,.27],["c",-.24,.18,-.36,.36,-.39,.6],["c",-.03,.33,.09,.39,.63,.42],["c",.42,0,.63,-.03,.9,-.15],["c",.6,-.3,.96,-.96,1.38,-2.64],["c",.09,-.42,.63,-2.55,1.17,-4.77],["l",1.02,-4.08],["c",0,-.03,-.36,-.03,-.81,-.03],["c",-.72,0,-.81,0,-.93,-.06],["c",-.42,-.18,-.39,-.75,.03,-.9],["c",.09,-.06,.27,-.06,1.05,-.06],["l",.96,0],["l",0,-.09],["c",.06,-.18,.3,-.72,.51,-1.17],["c",1.2,-2.46,3.3,-4.23,5.34,-4.5],["z"]],w:16.155,h:19.445},m:{d:[["M",2.79,-8.91],["c",.09,0,.3,-.03,.45,-.03],["c",.24,.03,.3,.03,.45,.12],["c",.36,.15,.63,.54,.75,1.02],["l",.03,.21],["l",.33,-.3],["c",.69,-.69,1.38,-1.02,2.07,-1.02],["c",.27,0,.33,0,.48,.06],["c",.21,.09,.48,.36,.63,.6],["c",.03,.09,.12,.27,.18,.42],["c",.03,.15,.09,.27,.12,.27],["c",0,0,.09,-.09,.18,-.21],["c",.33,-.39,.87,-.81,1.29,-.99],["c",.78,-.33,1.47,-.21,2.01,.33],["c",.3,.33,.48,.69,.6,1.14],["c",.09,.42,.06,.54,-.54,3.06],["c",-.33,1.29,-.57,2.4,-.57,2.43],["c",0,.12,.09,.21,.21,.21],["c",.24,0,.75,-.3,1.2,-.72],["c",.45,-.39,.6,-.45,.78,-.27],["c",.18,.18,.09,.36,-.45,.87],["c",-1.05,.96,-1.83,1.47,-2.58,1.71],["c",-.93,.33,-1.53,.21,-1.8,-.33],["c",-.06,-.15,-.06,-.21,-.06,-.45],["c",0,-.24,.03,-.48,.6,-2.82],["c",.42,-1.71,.6,-2.64,.63,-2.79],["c",.03,-.57,-.3,-.75,-.84,-.48],["c",-.24,.12,-.54,.39,-.66,.63],["c",-.03,.09,-.42,1.38,-.9,3],["c",-.9,3.15,-.84,3,-1.14,3.15],["l",-.15,.09],["l",-.78,0],["c",-.6,0,-.78,0,-.84,-.06],["c",-.09,-.03,-.18,-.18,-.18,-.27],["c",0,-.03,.36,-1.38,.84,-2.97],["c",.57,-2.04,.81,-2.97,.84,-3.12],["c",.03,-.54,-.3,-.72,-.84,-.45],["c",-.24,.12,-.57,.42,-.66,.63],["c",-.06,.09,-.51,1.44,-1.05,2.97],["c",-.51,1.56,-.99,2.85,-.99,2.91],["c",-.06,.12,-.21,.24,-.36,.3],["c",-.12,.06,-.21,.06,-.9,.06],["c",-.6,0,-.78,0,-.84,-.06],["c",-.09,-.03,-.18,-.18,-.18,-.27],["c",0,-.03,.45,-1.38,.99,-2.97],["c",1.05,-3.18,1.05,-3.18,.93,-3.45],["c",-.12,-.27,-.39,-.3,-.72,-.15],["c",-.54,.27,-1.14,1.17,-1.56,2.4],["c",-.06,.15,-.15,.3,-.18,.36],["c",-.21,.21,-.57,.27,-.72,.09],["c",-.09,-.09,-.06,-.21,.06,-.63],["c",.48,-1.26,1.26,-2.46,2.01,-3.21],["c",.57,-.54,1.2,-.87,1.83,-1.02],["z"]],w:14.687,h:9.126},p:{d:[["M",1.92,-8.7],["c",.27,-.09,.81,-.06,1.11,.03],["c",.54,.18,.93,.51,1.17,.99],["c",.09,.15,.15,.33,.18,.36],["l",0,.12],["l",.3,-.27],["c",.66,-.6,1.35,-1.02,2.13,-1.2],["c",.21,-.06,.33,-.06,.78,-.06],["c",.45,0,.51,0,.84,.09],["c",1.29,.33,2.07,1.32,2.25,2.79],["c",.09,.81,-.09,2.01,-.45,2.79],["c",-.54,1.26,-1.86,2.55,-3.18,3.03],["c",-.45,.18,-.81,.24,-1.29,.24],["c",-.69,-.03,-1.35,-.18,-1.86,-.45],["c",-.3,-.15,-.51,-.18,-.69,-.09],["c",-.09,.03,-.18,.09,-.18,.12],["c",-.09,.12,-1.05,2.94,-1.05,3.06],["c",0,.24,.18,.48,.51,.63],["c",.18,.06,.54,.15,.75,.15],["c",.21,0,.36,.06,.42,.18],["c",.12,.18,.06,.42,-.12,.54],["c",-.09,.03,-.15,.03,-.78,0],["c",-1.98,-.15,-3.81,-.15,-5.79,0],["c",-.63,.03,-.69,.03,-.78,0],["c",-.24,-.15,-.24,-.57,.03,-.66],["c",.06,-.03,.48,-.09,.99,-.12],["c",.87,-.06,1.11,-.09,1.35,-.21],["c",.18,-.06,.33,-.18,.39,-.3],["c",.06,-.12,3.24,-9.42,3.27,-9.6],["c",.06,-.33,.03,-.57,-.15,-.69],["c",-.09,-.06,-.12,-.06,-.3,-.06],["c",-.69,.06,-1.53,1.02,-2.28,2.61],["c",-.09,.21,-.21,.45,-.27,.51],["c",-.09,.12,-.33,.24,-.48,.24],["c",-.18,0,-.36,-.15,-.36,-.3],["c",0,-.24,.78,-1.83,1.26,-2.55],["c",.72,-1.11,1.47,-1.74,2.28,-1.92],["z"],["m",5.37,1.47],["c",-.27,-.12,-.75,-.03,-1.14,.21],["c",-.75,.48,-1.47,1.68,-1.89,3.15],["c",-.45,1.47,-.42,2.34,0,2.7],["c",.45,.39,1.26,.21,1.83,-.36],["c",.51,-.51,.99,-1.68,1.38,-3.27],["c",.3,-1.17,.33,-1.74,.15,-2.13],["c",-.09,-.15,-.15,-.21,-.33,-.3],["z"]],w:14.689,h:13.127},r:{d:[["M",6.33,-9.12],["c",.27,-.03,.93,0,1.2,.06],["c",.84,.21,1.23,.81,1.02,1.53],["c",-.24,.75,-.9,1.17,-1.56,.96],["c",-.33,-.09,-.51,-.3,-.66,-.75],["c",-.03,-.12,-.09,-.24,-.12,-.3],["c",-.09,-.15,-.3,-.24,-.48,-.24],["c",-.57,0,-1.38,.54,-1.65,1.08],["c",-.06,.15,-.33,1.17,-.9,3.27],["c",-.57,2.31,-.81,3.12,-.87,3.21],["c",-.03,.06,-.12,.15,-.18,.21],["l",-.12,.06],["l",-.81,.03],["c",-.69,0,-.81,0,-.9,-.03],["c",-.09,-.06,-.18,-.21,-.18,-.3],["c",0,-.06,.39,-1.62,.9,-3.51],["c",.84,-3.24,.87,-3.45,.87,-3.72],["c",0,-.21,0,-.27,-.03,-.36],["c",-.12,-.15,-.21,-.24,-.42,-.24],["c",-.24,0,-.45,.15,-.78,.42],["c",-.33,.36,-.45,.54,-.72,1.14],["c",-.03,.12,-.21,.24,-.36,.27],["c",-.12,0,-.15,0,-.24,-.06],["c",-.18,-.12,-.18,-.21,-.06,-.54],["c",.21,-.57,.42,-.93,.78,-1.32],["c",.54,-.51,1.2,-.81,1.95,-.87],["c",.81,-.03,1.53,.3,1.92,.87],["l",.12,.18],["l",.09,-.09],["c",.57,-.45,1.41,-.84,2.19,-.96],["z"]],w:9.41,h:9.132},s:{d:[["M",4.47,-8.73],["c",.09,0,.36,-.03,.57,-.03],["c",.75,.03,1.29,.24,1.71,.63],["c",.51,.54,.66,1.26,.36,1.83],["c",-.24,.42,-.63,.57,-1.11,.42],["c",-.33,-.09,-.6,-.36,-.6,-.57],["c",0,-.03,.06,-.21,.15,-.39],["c",.12,-.21,.15,-.33,.18,-.48],["c",0,-.24,-.06,-.48,-.15,-.6],["c",-.15,-.21,-.42,-.24,-.75,-.15],["c",-.27,.06,-.48,.18,-.69,.36],["c",-.39,.39,-.51,.96,-.33,1.38],["c",.09,.21,.42,.51,.78,.72],["c",1.11,.69,1.59,1.11,1.89,1.68],["c",.21,.39,.24,.78,.15,1.29],["c",-.18,1.2,-1.17,2.16,-2.52,2.52],["c",-1.02,.24,-1.95,.12,-2.7,-.42],["c",-.72,-.51,-.99,-1.47,-.6,-2.19],["c",.24,-.48,.72,-.63,1.17,-.42],["c",.33,.18,.54,.45,.57,.81],["c",0,.21,-.03,.3,-.33,.51],["c",-.33,.24,-.39,.42,-.27,.69],["c",.06,.15,.21,.27,.45,.33],["c",.3,.09,.87,.09,1.2,0],["c",.75,-.21,1.23,-.72,1.29,-1.35],["c",.03,-.42,-.15,-.81,-.54,-1.2],["c",-.24,-.24,-.48,-.42,-1.41,-1.02],["c",-.69,-.42,-1.05,-.93,-1.05,-1.47],["c",0,-.39,.12,-.87,.3,-1.23],["c",.27,-.57,.78,-1.05,1.38,-1.35],["c",.24,-.12,.63,-.27,.9,-.3],["z"]],w:6.632,h:8.758},z:{d:[["M",2.64,-7.95],["c",.36,-.09,.81,-.03,1.71,.27],["c",.78,.21,.96,.27,1.74,.3],["c",.87,.06,1.02,.03,1.38,-.21],["c",.21,-.15,.33,-.15,.48,-.06],["c",.15,.09,.21,.3,.15,.45],["c",-.03,.06,-1.26,1.26,-2.76,2.67],["l",-2.73,2.55],["l",.54,.03],["c",.54,.03,.72,.03,2.01,.15],["c",.36,.03,.9,.06,1.2,.09],["c",.66,0,.81,-.03,1.02,-.24],["c",.3,-.3,.39,-.72,.27,-1.23],["c",-.06,-.27,-.06,-.27,-.03,-.39],["c",.15,-.3,.54,-.27,.69,.03],["c",.15,.33,.27,1.02,.27,1.5],["c",0,1.47,-1.11,2.7,-2.52,2.79],["c",-.57,.03,-1.02,-.09,-2.01,-.51],["c",-1.02,-.42,-1.23,-.48,-2.13,-.54],["c",-.81,-.06,-.96,-.03,-1.26,.18],["c",-.12,.06,-.24,.12,-.27,.12],["c",-.27,0,-.45,-.3,-.36,-.51],["c",.03,-.06,1.32,-1.32,2.91,-2.79],["l",2.88,-2.73],["c",-.03,0,-.21,.03,-.42,.06],["c",-.21,.03,-.78,.09,-1.23,.12],["c",-1.11,.12,-1.23,.15,-1.95,.27],["c",-.72,.15,-1.17,.18,-1.29,.09],["c",-.27,-.18,-.21,-.75,.12,-1.26],["c",.39,-.6,.93,-1.02,1.59,-1.2],["z"]],w:8.573,h:8.743},"+":{d:[["M",3.48,-9.3],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,1.29],["l",0,1.29],["l",1.29,0],["c",1.23,0,1.29,0,1.41,.06],["c",.06,.03,.15,.09,.18,.12],["c",.12,.09,.21,.33,.21,.48],["c",0,.15,-.09,.39,-.21,.48],["c",-.03,.03,-.12,.09,-.18,.12],["c",-.12,.06,-.18,.06,-1.41,.06],["l",-1.29,0],["l",0,1.29],["c",0,1.23,0,1.29,-.06,1.41],["c",-.09,.18,-.15,.24,-.3,.33],["c",-.21,.09,-.39,.09,-.57,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.06,-.12,-.06,-.18,-.06,-1.41],["l",0,-1.29],["l",-1.29,0],["c",-1.23,0,-1.29,0,-1.41,-.06],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.09,-.36,0,-.54],["c",.09,-.18,.15,-.24,.33,-.33],["l",.15,-.06],["l",1.26,0],["l",1.29,0],["l",0,-1.29],["c",0,-1.23,0,-1.29,.06,-1.41],["c",.09,-.18,.15,-.24,.33,-.33],["z"]],w:7.507,h:7.515},",":{d:[["M",1.32,-3.36],["c",.57,-.15,1.17,.03,1.59,.45],["c",.45,.45,.6,.96,.51,1.89],["c",-.09,1.23,-.42,2.46,-.99,3.93],["c",-.3,.72,-.72,1.62,-.78,1.68],["c",-.18,.21,-.51,.18,-.66,-.06],["c",-.03,-.06,-.06,-.15,-.06,-.18],["c",0,-.06,.12,-.33,.24,-.63],["c",.84,-1.8,1.02,-2.61,.69,-3.24],["c",-.12,-.24,-.27,-.36,-.75,-.6],["c",-.36,-.15,-.42,-.21,-.6,-.39],["c",-.69,-.69,-.69,-1.71,0,-2.4],["c",.21,-.21,.51,-.39,.81,-.45],["z"]],w:3.452,h:8.143},"-":{d:[["M",.18,-5.34],["c",.09,-.06,.15,-.06,2.31,-.06],["c",2.46,0,2.37,0,2.46,.21],["c",.12,.21,.03,.42,-.15,.54],["c",-.09,.06,-.15,.06,-2.28,.06],["c",-2.16,0,-2.22,0,-2.31,-.06],["c",-.27,-.15,-.27,-.54,-.03,-.69],["z"]],w:5.001,h:.81},".":{d:[["M",1.32,-3.36],["c",1.05,-.27,2.1,.57,2.1,1.65],["c",0,1.08,-1.05,1.92,-2.1,1.65],["c",-.9,-.21,-1.5,-1.14,-1.26,-2.04],["c",.12,-.63,.63,-1.11,1.26,-1.26],["z"]],w:3.413,h:3.402},"scripts.wedge":{d:[["M",-3.66,-7.44],["c",.06,-.09,0,-.09,.81,.03],["c",1.86,.3,3.84,.3,5.73,0],["c",.78,-.12,.72,-.12,.78,-.03],["c",.15,.15,.12,.24,-.24,.6],["c",-.93,.93,-1.98,2.76,-2.67,4.62],["c",-.3,.78,-.51,1.71,-.51,2.13],["c",0,.15,0,.18,-.06,.27],["c",-.12,.09,-.24,.09,-.36,0],["c",-.06,-.09,-.06,-.12,-.06,-.27],["c",0,-.42,-.21,-1.35,-.51,-2.13],["c",-.69,-1.86,-1.74,-3.69,-2.67,-4.62],["c",-.36,-.36,-.39,-.45,-.24,-.6],["z"]],w:7.49,h:7.752},"scripts.thumb":{d:[["M",-.54,-3.69],["c",.15,-.03,.36,-.06,.51,-.06],["c",1.44,0,2.58,1.11,2.94,2.85],["c",.09,.48,.09,1.32,0,1.8],["c",-.27,1.41,-1.08,2.43,-2.16,2.73],["l",-.18,.06],["l",0,.12],["c",.03,.06,.06,.45,.09,.87],["c",.03,.57,.03,.78,0,.84],["c",-.09,.27,-.39,.48,-.66,.48],["c",-.27,0,-.57,-.21,-.66,-.48],["c",-.03,-.06,-.03,-.27,0,-.84],["c",.03,-.42,.06,-.81,.09,-.87],["l",0,-.12],["l",-.18,-.06],["c",-1.08,-.3,-1.89,-1.32,-2.16,-2.73],["c",-.09,-.48,-.09,-1.32,0,-1.8],["c",.15,-.84,.51,-1.53,1.02,-2.04],["c",.39,-.39,.84,-.63,1.35,-.75],["z"],["m",1.05,.9],["c",-.15,-.09,-.21,-.09,-.45,-.12],["c",-.15,0,-.3,.03,-.39,.03],["c",-.57,.18,-.9,.72,-1.08,1.74],["c",-.06,.48,-.06,1.8,0,2.28],["c",.15,.9,.42,1.44,.9,1.65],["c",.18,.09,.21,.09,.51,.09],["c",.3,0,.33,0,.51,-.09],["c",.48,-.21,.75,-.75,.9,-1.65],["c",.03,-.27,.03,-.54,.03,-1.14],["c",0,-.6,0,-.87,-.03,-1.14],["c",-.15,-.9,-.45,-1.44,-.9,-1.65],["z"]],w:5.955,h:9.75},"scripts.open":{d:[["M",-.54,-3.69],["c",.15,-.03,.36,-.06,.51,-.06],["c",1.44,0,2.58,1.11,2.94,2.85],["c",.09,.48,.09,1.32,0,1.8],["c",-.33,1.74,-1.47,2.85,-2.91,2.85],["c",-1.44,0,-2.58,-1.11,-2.91,-2.85],["c",-.09,-.48,-.09,-1.32,0,-1.8],["c",.15,-.84,.51,-1.53,1.02,-2.04],["c",.39,-.39,.84,-.63,1.35,-.75],["z"],["m",1.11,.9],["c",-.21,-.09,-.27,-.09,-.51,-.12],["c",-.3,0,-.42,.03,-.66,.15],["c",-.24,.12,-.51,.39,-.66,.63],["c",-.54,.93,-.63,2.64,-.21,3.81],["c",.21,.54,.51,.9,.93,1.11],["c",.21,.09,.24,.09,.54,.09],["c",.3,0,.33,0,.54,-.09],["c",.42,-.21,.72,-.57,.93,-1.11],["c",.36,-.99,.36,-2.37,0,-3.36],["c",-.21,-.54,-.51,-.9,-.9,-1.11],["z"]],w:5.955,h:7.5},"scripts.longphrase":{d:[["M",1.47,-15.09],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.54,.06,11.25],["l",0,11.25],["l",-.63,.15],["c",-.66,.18,-1.44,.39,-1.5,.39],["c",-.03,0,-.03,-3.39,-.03,-11.25],["l",0,-11.25],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:23.04},"scripts.mediumphrase":{d:[["M",1.47,-7.59],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.39,.06,7.5],["l",0,7.5],["l",-.63,.15],["c",-.66,.18,-1.44,.39,-1.5,.39],["c",-.03,0,-.03,-2.28,-.03,-7.5],["l",0,-7.5],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:15.54},"scripts.shortphrase":{d:[["M",1.47,-7.59],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.21,.06,3.75],["l",0,3.75],["l",-.42,.09],["c",-.57,.18,-1.65,.45,-1.71,.45],["c",-.03,0,-.03,-.72,-.03,-3.75],["l",0,-3.75],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:8.04},"scripts.snap":{d:[["M",4.5,-3.39],["c",.36,-.03,.96,-.03,1.35,0],["c",1.56,.15,3.15,.9,4.2,2.01],["c",.24,.27,.33,.42,.33,.6],["c",0,.27,.03,.24,-2.46,2.22],["c",-1.29,1.02,-2.4,1.86,-2.49,1.92],["c",-.18,.09,-.3,.09,-.48,0],["c",-.09,-.06,-1.2,-.9,-2.49,-1.92],["c",-2.49,-1.98,-2.46,-1.95,-2.46,-2.22],["c",0,-.18,.09,-.33,.33,-.6],["c",1.05,-1.08,2.64,-1.86,4.17,-2.01],["z"],["m",1.29,1.17],["c",-1.47,-.15,-2.97,.3,-4.14,1.2],["l",-.18,.15],["l",.06,.09],["c",.15,.12,3.63,2.85,3.66,2.85],["c",.03,0,3.51,-2.73,3.66,-2.85],["l",.06,-.09],["l",-.18,-.15],["c",-.84,-.66,-1.89,-1.08,-2.94,-1.2],["z"]],w:10.38,h:6.84},"noteheads.slash.whole":{d:[["M",5,-5],["l",1,1],["l",-5,5],["l",-1,-1],["z"],["m",4,6],["l",-5,-5],["l",2,-2],["l",5,5],["z"],["m",0,-2],["l",1,1],["l",-5,5],["l",-1,-1],["z"],["m",-4,6],["l",-5,-5],["l",2,-2],["l",5,5],["z"]],w:10.81,h:15.63},"noteheads.slash.quarter":{d:[["M",9,-6],["l",0,4],["l",-9,9],["l",0,-4],["z"]],w:9,h:9},"noteheads.harmonic.quarter":{d:[["M",3.63,-4.02],["c",.09,-.06,.18,-.09,.24,-.03],["c",.03,.03,.87,.93,1.83,2.01],["c",1.5,1.65,1.8,1.98,1.8,2.04],["c",0,.06,-.3,.39,-1.8,2.04],["c",-.96,1.08,-1.8,1.98,-1.83,2.01],["c",-.06,.06,-.15,.03,-.24,-.03],["c",-.12,-.09,-3.54,-3.84,-3.6,-3.93],["c",-.03,-.03,-.03,-.09,-.03,-.15],["c",.03,-.06,3.45,-3.84,3.63,-3.96],["z"]],w:7.5,h:8.165},"noteheads.triangle.quarter":{d:[["M",0,0],["l",9,0],["l",-4.5,-9],["z"]],w:9,h:9}},D=function(c){for(var f=[],m=0,_=c.length;m<_;m++){f[m]=[];for(var y=0,E=c[m].length;y{function H(A){switch(A){case"B#":return"H#";case"B\u266f":return"H\u266f";case"B":return"H";case"Bb":case"B\u266d":return"B"}return A}Z.exports=function M(A,I,D){var p=A.split("\n");for(let b=0;b{var A=M(3486),I=M(3761),D=M(2866),p=M(369),b=M(8796);Z.exports=function c(f,m,_,y,E){if(!m.invisible){var g=m.children.length>0&&"TempoElement"===m.children[0].type;m.elemset=[],b.beginGroup(f.paper,f.controller);for(var l=0;l0?v.classList[0]+" ":"")+m.overrideClasses),g)m.startChar=m.abcelem.startChar,m.endChar=m.abcelem.endChar,y.add(m,v,!1,E);else{m.elemset.push(v);var x=!1;("note"===m.type||"tabNumber"===m.type)&&(x=!0),y.add(m,v,x,E)}else m.elemset.length>0&&y.add(m,m.elemset[0],"note"===m.type,E);if(m.klass&&p(m.elemset,"mark","","#00ff00"),m.hint&&p(m.elemset,"abcjs-hint","",null),m.abcelem.abselem=m,m.heads&&m.heads.length>0){m.notePositions=[];for(var O=0;O{var A=M(8509),I=M(2492);function p(f,m,_,y,E,g){_=I(f.calcY(_)),E=I(f.calcY(E)),m=I(m),y=I(y);var l=I(_+g);return"M"+m+" "+_+" L"+y+" "+E+"L"+y+" "+I(E+g)+" L"+m+" "+l+"z"}function b(f,m,_,y,E){return(E-_)/(y-m)}function c(f,m,_,y){return m+(y-f)*_}Z.exports=function D(f,m){if(0!==m.beams.length){for(var _="",y=0;y{var A=M(2782),I=M(2866),D=M(5740);function f(_,y,E,g){return A("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",_+E[0],y+g[0],_+E[1],y+g[1],_+E[2],y+g[2],_+E[3],y+g[3],_+E[4],y+g[4],_+E[5],y+g[5],_+E[6],y+g[6])}Z.exports=function p(_,y,E){var g=y.startVoice.staff.absoluteY-10*I.STEP;return y.endY=y.endVoice&&y.endVoice.staff?y.endVoice.staff.absoluteY-2*I.STEP:y.lastContinuedVoice&&y.lastContinuedVoice.staff?y.lastContinuedVoice.staff.absoluteY-2*I.STEP:y.startVoice.staff.absoluteY-2*I.STEP,function(_,y,E,g,l,h,w){var u;if(h){_.paper.openGroup({klass:_.controller.classes.generate("staff-extra voice-name"),"data-name":l});var v=E+(g-E)/2;v-=_.controller.getTextSize.baselineToCenter(h,"voicefont","staff-extra voice-name",0,1),D(_,{x:_.padding.left,y:v,text:h,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0})}return"brace"===l?u=function c(_,y,E,g,l){var h=g-E,w=f(y,E,[7.5,-8,21,0,18.5,-10.5,7.5],[0,h/5.5,h/3.14,h/2,h/2.93,h/4.88,0]);return w+=f(y,E,[0,17.5,-7.5,6.6,-5,20,0],[h/2,h/1.46,h/1.22,h,h/1.19,h/1.42,h/2]),_.paper.path({path:w,stroke:_.foregroundColor,fill:_.foregroundColor,class:_.controller.classes.generate(l),"data-name":l})}(_,y,E,g,l):"bracket"===l&&(u=function b(_,y,E,g,l){var h=.75*I.STEP,w=.75*I.STEP,u=g-E,v=A("M %f %f l %f %f l %f %f l %f %f z",y+=I.STEP,E-w,0,u+2*w,h,0,0,-(u+2*w)),S=2*I.STEP,x=I.STEP;return v+=A("M %f %f q %f %f %f %f q %f %f %f %f z",y+h,E-w,.6*S,.2*x,S,-x,.1*-S,.3*x,-S,x+I.STEP),v+=A("M %f %f q %f %f %f %f q %f %f %f %f z",y+h,E+w+u,.6*S,.2*-x,S,x,.1*-S,.3*-x,-S,-x-I.STEP),_.paper.path({path:v,stroke:_.foregroundColor,fill:_.foregroundColor,class:_.controller.classes.generate(l),"data-name":l})}(_,y,E,g,l)),h&&(u=_.paper.closeGroup()),w.wrapSvgEl({el_type:l,startChar:-1,endChar:-1},u),u}(_,y.x,g,y.endY,y.type,y.header,E)}},6633:(Z,H,M)=>{var A=M(2782),I=M(8509),D=M(2492),b=function(c,f,m,_,y,E,g){f=D(f),m=D(m),_=D(_),y=D(y),E=D(E),g=D(g);var l=A("M %f %f L %f %f M %f %f L %f %f",E,f,g,m,E,_,g,y);return I(c,{path:l,highlight:"stroke",stroke:c.foregroundColor,class:c.controller.classes.generate("dynamics decoration"),"data-name":"dynamics"})};Z.exports=function p(c,f,m){void 0===f.pitch&&window.console.error("Crescendo Element y-coordinate not set.");var l,_=c.calcY(f.pitch)+4,E=f.anchor1?f.anchor1.x:0,g=f.anchor2?f.anchor2.x:800;return l="<"===f.dir?b(c,_+4,_,_+4,_+8,E,g):b(c,_,_+4,_+8,_+4,E,g),m.wrapSvgEl({el_type:"dynamicDecoration",startChar:-1,endChar:-1},l),[l]}},5238:Z=>{Z.exports=function H(M,A,I){var D=M.paper.rectBeneath(A);return I&&M.paper.text(I,{x:0,y:A.y+7,"text-anchor":"start","font-size":"14px",fill:"rgba(0,0,255,.4)",stroke:"rgba(0,0,255,.4)"}),D}},4390:(Z,H,M)=>{var A=M(1852),I=M(5008),D=M(6057),p=M(2866),b=M(8727);function f(_,y,E,g){return A(_,y,E,g),_.y+=y.height*p.STEP,y}function m(_,y,E,g){var v=(g.staffs[0].top-10-(E.staffs[E.staffs.length-1].bottom-2))*p.STEP;v=1&&m(_,_.spacing.staffSeparation,O[O.length-1],j.staffGroup);var Y=f(_,j.staffGroup,x,B);Y.line=S+B,O.push(Y),_.paper.closeGroup()}else j.nonMusic&&(_.paper.openGroup(),D(_,j.nonMusic,x),_.paper.closeGroup())}return y.reset(),E.bottomText&&E.bottomText.rows&&E.bottomText.rows.length>0&&(_.paper.openGroup(),_.moveY(24),D(_,E.bottomText,x),_.paper.closeGroup()),I(_,l,w,h),{staffgroups:O,selectables:x.getElements()}}},171:(Z,H,M)=>{var A=M(7697);Z.exports=function I(D,p,b){void 0===p.pitch&&window.console.error("Dynamic Element y-coordinate not set.");var m=A(D,p.anchor.x,p.pitch,p.dec,{scalex:1,scaley:1,klass:D.controller.classes.generate("decoration dynamics"),fill:D.foregroundColor,stroke:"none",name:"dynamics"});return b.wrapSvgEl({el_type:"dynamicDecoration",startChar:-1,endChar:-1,decoration:p.dec},m),[m]}},8:(Z,H,M)=>{var A=M(2782),I=M(5740),D=M(8509),p=M(2492);Z.exports=function b(c,f,m,_,y){void 0===f.pitch&&window.console.error("Ending Element y-coordinate not set.");var E=p(c.calcY(f.pitch)),l="";f.anchor1&&(m=p(f.anchor1.x+f.anchor1.w),l+=A("M %f %f L %f %f ",m,E,m,p(E+20))),f.anchor2&&(_=p(f.anchor2.x),l+=A("M %f %f L %f %f ",_,E,_,p(E+20))),l+=A("M %f %f L %f %f ",m,E,_,E),c.paper.openGroup({klass:c.controller.classes.generate("ending"),"data-name":"ending"}),D(c,{path:l,stroke:c.foregroundColor,fill:c.foregroundColor,"data-name":"line"}),f.anchor1&&I(c,{x:p(m+5),y:p(c.calcY(f.pitch-.5)),text:f.text,type:"repeatfont",klass:"ending",anchor:"start",noClass:!0,name:f.text});var h=c.paper.closeGroup();return y.wrapSvgEl({el_type:"ending",startChar:-1,endChar:-1},h),[h]}},6273:(Z,H,M)=>{var A=M(2782),I=M(8509),D=M(2492);function f(u,v,S){return D(u+S*v)}var _=[[3.5,-4.8]],y=[[1.5,-1],[.3,-.3],[-3.5,3.8]],E=[[-1.5,2]],g=[[3,4],[3,-4]],l=[[-3,4],[-3,-4]];function h(u,v){for(var S="",x=0;x{var A=M(2492);function I(){this.ingroup=!1}I.prototype.beginGroup=function(p,b){this.paper=p,this.controller=b,this.path=[],this.lastM=[0,0],this.ingroup=!0,this.paper.openGroup()},I.prototype.isInGroup=function(){return this.ingroup},I.prototype.addPath=function(p){if(0!==(p=p||[]).length){p[0][0]="m",p[0][1]=A(p[0][1]-this.lastM[0]),p[0][2]=A(p[0][2]-this.lastM[1]),this.lastM[0]+=p[0][1],this.lastM[1]+=p[0][2],this.path.push(p[0]);for(var b=1,c=p.length;b{var A=M(5794),I=M(5740);Z.exports=function D(p,b,c){for(var f=0;f{var A=M(2782),I=M(2492);Z.exports=function D(p,b,c,f,m,_,y){var E=p.foregroundColor;b=I(b),c=I(c);var g=I(f-y),l=I(f+y);if(p.firefox112){var h={x1:b,x2:c,y1:f+=y/2,y2:f,stroke:p.foregroundColor,"stroke-width":Math.abs(2*y)};return m&&(h.class=m),_&&(h["data-name"]=_),p.paper.lineToBack(h)}var u={path:A("M %f %f L %f %f L %f %f L %f %f z",b,g,c,g,c,l,b,l),stroke:"none",fill:E};return _&&(u["data-name"]=_),m&&(u.class=m),p.paper.pathToBack(u)}},8509:Z=>{Z.exports=function H(M,A,I){return M.paper.path(A)}},2574:(Z,H,M)=>{var A=M(8796),I=M(2492);Z.exports=function D(p,b,c,f,m,_,y){if(c<0||f{var A=M(5740),I=M(6547),D=M(8796);function b(c,f,m){var _=m;return"f"===c&&"f"===f&&(_=2*_/3),"p"===c&&"p"===f&&(_=5*_/6),"f"===c&&"z"===f&&(_=5*_/8),_}Z.exports=function p(c,f,m,_,y){var g;if(!_)return null;if(_.length>1&&_.indexOf(".")<0){var l=D.isInGroup()?"":y.klass;c.paper.openGroup({"data-name":y.name,klass:l});for(var h=0,w=0;w<_.length;w++){var u=_[w];g=I.getYCorr(u),I.printSymbol(f+h,c.calcY(m+g),u,c.paper,{stroke:y.stroke,fill:y.fill})?w<_.length-1&&(h+=b(u,_[w+1],I.getSymbolWidth(u))):A(c,{x:f,y:c.y,text:"no symbol:"+_,type:"debugfont",klass:"debug-msg",anchor:"start"},!1)}return c.paper.closeGroup()}return g=I.getYCorr(_),(D.isInGroup()?I.printSymbol(f,c.calcY(m+g),_,c.paper,{"data-name":y.name}):I.printSymbol(f,c.calcY(m+g),_,c.paper,{klass:y.klass,stroke:y.stroke,fill:y.fill,"data-name":y.name}))||(A(c,{x:f,y:c.y,text:"no symbol:"+_,type:"debugfont",klass:"debug-msg",anchor:"start"},!1),null)}},3761:(Z,H,M)=>{var A=M(5740),I=M(2574),D=M(7034),p=M(7697);Z.exports=function b(f,m,_){void 0===m.pitch&&window.console.error(m.type+" Relative Element y-coordinate not set.");var y=f.calcY(m.pitch);switch(m.type){case"symbol":if(null===m.c)return null;var E="symbol";m.klass&&(E+=" "+m.klass),m.graphelem=p(f,m.x,m.pitch,m.c,{scalex:m.scalex,scaley:m.scaley,klass:f.controller.classes.generate(E),name:m.name});break;case"debug":m.graphelem=A(f,{x:m.x,y:f.calcY(15),text:""+m.c,type:"debugfont",klass:f.controller.classes.generate("debug-msg"),anchor:"start",centerVertically:!1,dim:m.dim},!1);break;case"tabNumber":var l="tabnumberfont",h="tab-number";m.isGrace&&(l="tabgracefont",y+=2.5,h="tab-grace"),m.graphelem=A(f,{x:m.x,y,text:""+m.c,type:l,klass:f.controller.classes.generate(h),anchor:"middle",centerVertically:!1,dim:m.dim,cursor:"default"},!1);break;case"barNumber":m.graphelem=A(f,{x:m.x,y,text:""+m.c,type:"measurefont",klass:f.controller.classes.generate("bar-number"),anchor:"middle",dim:m.dim,name:"bar-number"},!0);break;case"lyric":m.graphelem=A(f,{x:m.x,y,text:m.c,type:"vocalfont",klass:f.controller.classes.generate("lyric"),anchor:"middle",dim:m.dim,name:"lyric"},!1);break;case"chord":m.graphelem=A(f,{x:m.x,y,text:m.c,type:"gchordfont",klass:f.controller.classes.generate("chord"),anchor:"middle",dim:m.dim,lane:m.getLane(),name:"chord"},!1);break;case"decoration":m.graphelem=A(f,{x:m.x,y:y+6,text:m.c,type:"annotationfont",klass:f.controller.classes.generate("annotation"),anchor:m.anchor,centerVertically:!0,dim:m.dim},!1);break;case"text":m.graphelem=A(f,{x:m.x,y,text:m.c,type:"annotationfont",klass:f.controller.classes.generate("annotation"),anchor:"start",centerVertically:m.centerVertically,dim:m.dim,lane:m.getLane(),name:"annotation"},!1);break;case"multimeasure-text":m.graphelem=A(f,{x:m.x+m.w/2,y,text:m.c,type:"tempofont",klass:f.controller.classes.generate("rest"),anchor:"middle",centerVertically:!1,dim:m.dim},!1);break;case"part":m.graphelem=A(f,{x:m.x,y,text:m.c,type:"partsfont",klass:f.controller.classes.generate("part"),anchor:"start",dim:m.dim,name:m.c},!0);break;case"bar":m.graphelem=I(f,m.x,m.linewidth+f.lineThickness,y,_||f.calcY(m.pitch2),null,"bar");break;case"stem":m.graphelem=I(f,m.x,m.linewidth>0?m.linewidth+f.lineThickness:m.linewidth-f.lineThickness,y,f.calcY(m.pitch2),"abcjs-stem","stem");break;case"ledger":m.graphelem=D(f,m.x,m.x+m.w,m.pitch,"abcjs-ledger","ledger",.35+f.lineThickness)}return 1!==m.scalex&&m.graphelem&&function c(f,m,_,y,E,g){f.setAttributeOnElement(m,{style:"transform:scale("+_+","+y+");transform-origin:"+E+"px "+g+"px;"})}(f.paper,m.graphelem,m.scalex,m.scaley,m.x,y),m.graphelem}},2492:Z=>{Z.exports=function H(M){return parseFloat(M.toFixed(2))}},8727:(Z,H,M)=>{var A=M(1673),I=M(4020);function D(p,b,c){this.elements=[],this.paper=p,this.tuneNumber=c,this.selectTypes=b}D.prototype.getElements=function(){return this.elements},D.prototype.add=function(p,b,c,f){if(this.canSelect(p)){this.paper.setAttributeOnElement(b,void 0===this.selectTypes?{selectable:!1,"data-index":this.elements.length}:{selectable:!0,tabindex:0,"data-index":this.elements.length});var _={absEl:p,svgEl:b,isDraggable:c};void 0!==f&&(_.staffPos=f),this.elements.push(_)}},D.prototype.canSelect=function(p){return!(!1===this.selectTypes||!p||!p.abcelem||!0!==this.selectTypes&&!(void 0===this.selectTypes?"note"===p.abcelem.el_type||"tabNumber"===p.abcelem.el_type:this.selectTypes.indexOf(p.abcelem.el_type)>=0))},D.prototype.wrapSvgEl=function(p,b){this.add({tuneNumber:this.tuneNumber,abcelem:p,elemset:[b],highlight:A,unhighlight:I},b,!1)},Z.exports=D},5794:Z=>{Z.exports=function H(M,A){var p=Math.round(M.y),c=(M.controller.width-A)/2,f=c+A;M.paper.pathToBack({path:"M "+c+" "+p+" L "+f+" "+p+" L "+f+" "+(p+1)+" L "+c+" "+(p+1)+" L "+c+" "+p+" z",stroke:"rgba(0,0,0,0)",fill:"rgba(0,0,0,255)",class:M.controller.classes.generate("defined-text")})}},5008:Z=>{Z.exports=function H(M,A,I,D){var p=(A+M.padding.right)*I,b=(M.y+M.padding.bottom)*I;if(M.isPrint&&(b=Math.max(b,1056)),""!==M.ariaLabel){var c="Sheet Music";M.abctune&&M.abctune.metaText&&M.abctune.metaText.title&&(c+=' for "'+M.abctune.metaText.title+'"'),M.paper.setTitle(c),M.paper.setAttribute("aria-label",M.ariaLabel?M.ariaLabel:c)}M.paper.insertStyles(".abcjs-dragging-in-progress text, .abcjs-dragging-in-progress tspan {"+["-webkit-touch-callout: none;","-webkit-user-select: none;","-khtml-user-select: none;","-moz-user-select: none;","-ms-user-select: none;","user-select: none;"].join(" ")+"}");var _={overflow:"hidden"};"resize"===D?M.paper.setResponsiveWidth(p,b):(_.width="",_.height=b+"px",I<1?(_.width=p+"px",M.paper.setSize(p/I,b/I)):M.paper.setSize(p,b)),M.paper.setScale(I),M.paper.setParentStyles(_)}},2782:Z=>{Z.exports=function(){for(var A,p,b,c,f,M=0,I=arguments[M++],D=[];I;){if(p=/^[^\x25]+/.exec(I))D.push(p[0]);else if(p=/^\x25{2}/.exec(I))D.push("%");else{if(!(p=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(I)))throw"Huh ?!";if(null==(A=arguments[p[1]||M++])||null==A)throw"Too few arguments.";if(/[^s]/.test(p[7])&&"number"!=typeof A)throw"Expecting number but found "+typeof A;switch(p[7]){case"b":A=A.toString(2);break;case"c":A=String.fromCharCode(A);break;case"d":A=parseInt(A);break;case"e":A=p[6]?A.toExponential(p[6]):A.toExponential();break;case"f":A=p[6]?parseFloat(A).toFixed(p[6]):parseFloat(A);break;case"o":A=A.toString(8);break;case"s":A=(A=String(A))&&p[6]?A.substring(0,p[6]):A;break;case"u":A=Math.abs(A);break;case"x":A=A.toString(16);break;case"X":A=A.toString(16).toUpperCase()}A=/[def]/.test(p[7])&&p[2]&&A>0?"+"+A:A,c=p[3]?"0"==p[3]?"0":p[3][1]:" ",f=p[5]-String(A).length,b=p[5]?str_repeat(c,f):"",D.push(p[4]?A+b:b+A)}I=I.substring(p[0].length)}return D.join("")}},1852:(Z,H,M)=>{var A=M(2866),I=M(3372),D=M(6357),p=M(5010),b=M(5238),c=M(2574),f=M(6057);function _(E,g,l,h,w){if(l)for(var u=0;u=0&&S.voices&&y(E,g.voices,S.voices),E.showDebug.indexOf("grid")>=0&&(E.paper.dottedLine({x1:E.padding.left,x2:E.padding.left+E.controller.width,y1:u,y2:u,stroke:"#0000ff"}),b(E,{x:E.padding.left,y:E.calcY(S.originalTop),width:E.controller.width,height:E.calcY(S.originalBottom)-E.calcY(S.originalTop),fill:E.foregroundColor,stroke:E.foregroundColor,"fill-opacity":.1,"stroke-opacity":.1}),w=0,L(S,"chordHeightAbove"),L(S,"chordHeightBelow"),L(S,"dynamicHeightAbove"),L(S,"dynamicHeightBelow"),L(S,"endingHeightAbove"),L(S,"lyricHeightAbove"),L(S,"lyricHeightBelow"),L(S,"partHeightAbove"),L(S,"tempoHeightAbove"),L(S,"volumeHeightAbove"),L(S,"volumeHeightBelow"))),E.moveY(A.STEP,-S.bottom),E.showDebug&&E.showDebug.indexOf("grid")>=0&&E.paper.dottedLine({x1:E.padding.left,x2:E.padding.left+E.controller.width,y1:E.y,y2:E.y,stroke:"#0000aa"})}for(var x,O,B=2,j=0,Y=0;Y6&&(w=0)}}z>1&&c(E,g.startx,.6,x=g.staffs[0].topLine,O=g.staffs[z-1].bottomLine,null),E.y=u}},7034:(Z,H,M)=>{var A=M(9121);Z.exports=function I(D,p,b,c,f,m,_){var y=D.calcY(c);return A(D,p,b,y,f,m,_)}},5010:(Z,H,M)=>{var A=M(7034);Z.exports=function I(D,p,b,c,f,m){var _="abcjs-top-line",y=2;f&&(y=f),D.paper.openGroup({prepend:!0,klass:D.controller.classes.generate("abcjs-staff")});var E=0,g=0;if(1===c)A(D,p,b,6,_,null,m+D.lineThickness),E=D.calcY(10),g=D.calcY(2);else for(var l=c-1;l>=0;l--){var h=(l+1)*y;g=D.calcY(h),0===E&&(E=g),A(D,p,b,h,_,null,m+D.lineThickness),_=void 0}return D.paper.closeGroup(),[E,g]}},3486:(Z,H,M)=>{var A=M(3761),I=M(5740);Z.exports=function D(p,b){var c=b.x;void 0===b.pitch&&window.console.error("Tempo Element y-coordinate not set."),b.tempo.el_type="tempo";var _,m=p.calcY(b.pitch)+2;if(b.tempo.preString){_=I(p,{x:c,y:m,text:b.tempo.preString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,"dominant-baseline":"ideographic",name:"pre"},!0);var E=p.controller.getTextSize.calc(b.tempo.preString,"tempofont","tempo",_).width;c+=E+E/b.tempo.preString.length}if(b.note){b.note.setX(c);for(var l=0;l{var A=M(2492);Z.exports=function I(D,p,b){var m,c=p.y;p.lane&&(c+=(p.dim.font.size+.25*p.dim.font.size)*p.lane),p.dim?(m=p.dim).attr.class=p.klass:m=D.controller.getFontAndAttr.calc(p.type,p.klass),p.anchor&&(m.attr["text-anchor"]=p.anchor),m.attr.x=p.x,m.attr.y=c,p.centerVertically||(m.attr.y+=m.font.size),"debugfont"===p.type&&(console.log("Debug msg: "+p.text),m.attr.stroke="#ff0000"),p.cursor&&(m.attr.cursor=p.cursor);var _=p.text.replace(/\n\n/g,"\n \n");_=_.replace(/^\n/,"\xa0\n"),m.font.box&&(b||D.paper.openGroup({klass:m.attr.class,fill:D.foregroundColor,"data-name":p.name}),"end"===m.attr["text-anchor"]?m.attr.x-=m.font.padding:"start"===m.attr["text-anchor"]&&(m.attr.x+=m.font.padding),m.attr.y+=m.font.padding,delete m.attr.class),p.noClass&&delete m.attr.class,m.attr.x=A(m.attr.x),m.attr.y=A(m.attr.y),p.name&&(m.attr["data-name"]=p.name);var y=D.paper.text(_,m.attr);if(m.font.box){var E=y.getBBox(),g=0;"middle"===m.attr["text-anchor"]?g=E.width/2+m.font.padding:"end"===m.attr["text-anchor"]&&(g=E.width+2*m.font.padding);var l=0;p.centerVertically&&(l=E.height-m.font.padding),D.paper.rect({"data-name":"box",x:Math.round(p.x-g),y:Math.round(c-l),width:Math.round(E.width+2*m.font.padding),height:Math.round(E.height+2*m.font.padding)}),b||(y=D.paper.closeGroup())}return y}},6111:(Z,H,M)=>{var A=M(2782),I=M(2492);Z.exports=function D(c,f,m,_,y){!function(c,f,m){c.isTie=!c.anchor1||!c.anchor2||c.anchor1.pitch===c.anchor2.pitch&&0===c.internalNotes.length,c.isTie?(c.calcTieDirection(),c.calcX(f,m),c.calcTieY()):(c.calcSlurDirection(),c.calcX(f,m),c.calcSlurY()),c.avoidCollisionAbove()}(f,m,_);var E="";E+=f.anchor1?"abcjs-start-m"+f.anchor1.parent.counters.measure+"-n"+f.anchor1.parent.counters.note:"abcjs-start-edge",E+=f.anchor2?" abcjs-end-m"+f.anchor2.parent.counters.measure+"-n"+f.anchor2.parent.counters.note:" abcjs-end-edge",f.hint&&(E="abcjs-hint");var g=f.fixedY?1.5:0,l=function(c,f,m,_,y,E,g,l,h){var w=l?1.2:1.5;f=I(f+6),m=I(m+4),y+=E?w:-w;var L,u=I(c.calcY(_+=E?w:-w)),v=I(c.calcY(y)),S=m-f,x=v-u,O=Math.sqrt(S*S+x*x),B=S/O,j=x/O,Y=O/3.5,W=(E?-1:1)*Math.min(l?10:25,Math.max(4,Y)),q=I(f+Y*B-W*j),ee=I(u+Y*j+W*B),U=I(m-Y*B-W*j),ne=I(v-Y*j+W*B);if(g?g+=" slur":g="slur",g+=l?" tie":" legato",h){g+=" dotted";var P=A("M %f %f C %f %f %f %f %f %f",f,u,q,ee,U,ne,m,v);L=c.paper.path({path:P,stroke:c.foregroundColor,fill:"none","stroke-dasharray":"5 5",class:c.controller.classes.generate(g),"data-name":l?"tie":"slur"})}else{var $=A("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",f,u,q,ee,U,ne,m,v,I(U-2*j),I(ne+2*B),I(q-2*j),I(ee+2*B),f,u);L=c.paper.path({path:$,stroke:"none",fill:c.foregroundColor,class:c.controller.classes.generate(g),"data-name":l?"tie":"slur"})}return L}(c,f.startX,f.endX,f.startY+g,f.endY+g,f.above,E,f.isTie,f.dotted);return y.wrapSvgEl({el_type:"slur",startChar:-1,endChar:-1},l),[l]}},4537:(Z,H,M)=>{var A=M(2782),I=M(5740),D=M(8509),p=M(2492);function c(m,_,y,E){return A("M %f %f L %f %f",p(m),p(_),p(y),p(E))}Z.exports=function b(m,_,y){m.paper.openGroup({klass:m.controller.classes.generate("triplet "+_.durationClass),"data-name":"triplet"}),_.hasBeam||function f(m,_,y,E,g){y=m.calcY(y),g=m.calcY(g);var h="";h+=c(_,y,_,y+5),h+=c(E,g,E,g+5);var w=_+(E-_)/2,v=(g-y)/(E-_),S=w-8;h+=c(_,y,S,y+(S-_)*v);var O=w+8;h+=c(O,y+(O-_)*v,E,g),D(m,{path:h,stroke:m.foregroundColor,"data-name":"triplet-bracket"})}(m,_.anchor1.x,_.startNote,_.anchor2.x+_.anchor2.w,_.endNote),I(m,{x:_.xTextPos,y:m.calcY(_.yTextPos-1),text:""+_.number,type:"tripletfont",anchor:"middle",centerVertically:!0,noClass:!0,name:""+_.number},!0);var E=m.paper.closeGroup();return y.wrapSvgEl({el_type:"triplet",startChar:-1,endChar:-1},E),E}},6357:(Z,H,M)=>{var A=M(6273),I=M(6633),D=M(171),p=M(4537),b=M(8),c=M(6111),f=M(4365),m=M(5740),_=M(8856);function E(g){return"rest"===g.type&&!(!g.abcelem||!g.abcelem.rest||"spacer"===g.abcelem.rest.type)}Z.exports=function y(g,l,h,w,u){var v=l.w-1;g.staffbottom=l.staff.bottom;var S=g.foregroundColor;if(l.color&&(g.foregroundColor=l.color),l.header){var x=m(g,{x:g.padding.left,y:g.calcY(l.headerPosition),text:l.header,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0,name:"voice-name"},!0);w.wrapSvgEl({el_type:"voiceName",startChar:-1,endChar:-1,text:l.header},x)}var O,B,j=!1;for(O=0;O{var A=M(2866),I=M(3220),D=M(3778),p=M(9662),b=M(7274),c=M(2508),f=M(3128),m=M(2124),_=M(3308),y=M(3011),E=M(6066),g=M(7445),l=M(5235),h=M(4390),w=M(1975),u=function(x,O){this.oneSvgPerLine=(O=O||{}).oneSvgPerLine,this.selectionColor=O.selectionColor,this.dragColor=O.dragColor?O.dragColor:O.selectionColor,this.dragging=!!O.dragging,this.selectTypes=O.selectTypes,this.responsive=O.responsive,this.space=3*A.SPACE,this.initialClef=O.initialClef,this.scale=O.scale?parseFloat(O.scale):0,this.classes=new E({shouldAddClasses:O.add_classes}),this.scale>.1||(this.scale=void 0),O.staffwidth?(this.staffwidthScreen=O.staffwidth,this.staffwidthPrint=O.staffwidth):(this.staffwidthScreen=740,this.staffwidthPrint=680),this.listeners=[],O.clickListener&&this.addSelectListener(O.clickListener),this.renderer=new D(x),this.renderer.setPaddingOverride(O),O.showDebug&&(this.renderer.showDebug=O.showDebug),O.jazzchords&&(this.jazzchords=O.jazzchords),O.germanAlphabet&&(this.germanAlphabet=O.germanAlphabet),O.lineThickness&&(this.lineThickness=O.lineThickness),this.renderer.controller=this,this.renderer.foregroundColor=O.foregroundColor?O.foregroundColor:"currentColor",void 0!==O.ariaLabel&&(this.renderer.ariaLabel=O.ariaLabel),this.renderer.minPadding=O.minPadding?O.minPadding:0,this.reset()};function S(x){for(var B=document.createElementNS("http://www.w3.org/2000/svg","svg"),j=0;j0)for(var W=te.staffGroup.voices[0],q=!1,ee=0,U=0;U g"),ee=0,ne=[],z=0;z{var H=function(A){this.shouldAddClasses=A.shouldAddClasses,this.reset()};H.prototype.reset=function(){this.lineNumber=null,this.voiceNumber=null,this.measureNumber=null,this.measureTotalPerLine=[],this.noteNumber=null},H.prototype.incrLine=function(){null===this.lineNumber?this.lineNumber=0:this.lineNumber++,this.voiceNumber=null,this.measureNumber=null,this.noteNumber=null},H.prototype.incrVoice=function(){null===this.voiceNumber?this.voiceNumber=0:this.voiceNumber++,this.measureNumber=null,this.noteNumber=null},H.prototype.isInMeasure=function(){return null!==this.measureNumber},H.prototype.newMeasure=function(){this.measureNumber&&(this.measureTotalPerLine[this.lineNumber]=this.measureNumber),this.measureNumber=null,this.noteNumber=null},H.prototype.startMeasure=function(){this.measureNumber=0,this.noteNumber=0},H.prototype.incrMeasure=function(){this.measureNumber++,this.noteNumber=0},H.prototype.incrNote=function(){this.noteNumber++},H.prototype.measureTotal=function(){for(var M=0,A=0;A0&&A.push(M),"tab-number"===M)return A.join(" ");if("text instrument-name"===M)return"abcjs-text abcjs-instrument-name";if(null!==this.lineNumber&&A.push("l"+this.lineNumber),null!==this.measureNumber&&A.push("m"+this.measureNumber),null!==this.measureNumber&&A.push("mm"+this.measureTotal()),null!==this.voiceNumber&&A.push("v"+this.voiceNumber),M&&(M.indexOf("note")>=0||M.indexOf("rest")>=0||M.indexOf("lyric")>=0)&&null!==this.noteNumber&&A.push("n"+this.noteNumber),A.length>0){A=(A=A.join(" ")).split(" ");for(var I=0;I0&&(A[I]="abcjs-"+A[I])}return A.join(" ")},Z.exports=H},7445:Z=>{var H=function(A,I){this.formatting=A,this.classes=I};H.prototype.updateFonts=function(M){M.gchordfont&&(this.formatting.gchordfont=M.gchordfont),M.tripletfont&&(this.formatting.tripletfont=M.tripletfont),M.annotationfont&&(this.formatting.annotationfont=M.annotationfont),M.vocalfont&&(this.formatting.vocalfont=M.vocalfont)},H.prototype.calc=function(M,A){var I;return(I="string"==typeof M?(I=this.formatting[M])?{face:I.face,size:Math.round(4*I.size/3),decoration:I.decoration,style:I.style,weight:I.weight,box:I.box}:{face:"Arial",size:Math.round(16),decoration:"underline",style:"normal",weight:"normal"}:{face:M.face,size:Math.round(4*M.size/3),decoration:M.decoration,style:M.style,weight:M.weight,box:M.box}).padding=I.size*(this.formatting.fontboxpadding?this.formatting.fontboxpadding:.1),{font:I,attr:{"font-size":I.size,"font-style":I.style,"font-family":I.face,"font-weight":I.weight,"text-decoration":I.decoration,class:this.classes.generate(A)}}},Z.exports=H},5235:Z=>{var H=function(A,I){this.getFontAndAttr=A,this.svg=I};H.prototype.updateFonts=function(M){this.getFontAndAttr.updateFonts(M)},H.prototype.attr=function(M,A){return this.getFontAndAttr.calc(M,A)},H.prototype.calc=function(M,A,I,D){var p;p="string"==typeof A?this.attr(A,I):{font:{face:A.face,size:A.size,decoration:A.decoration,style:A.style,weight:A.weight},attr:{"font-size":A.size,"font-style":A.style,"font-family":A.face,"font-weight":A.weight,"text-decoration":A.decoration,class:this.getFontAndAttr.classes.generate(I)}};var b=this.svg.getTextSize(M,p.attr,D);return p.font.box?{height:b.height+4*p.font.padding,width:b.width+4*p.font.padding}:b},H.prototype.baselineToCenter=function(M,A,I,D,p){return.5*this.calc(M,A,I).height+(p-D-2)*this.attr(A,I).font.size},Z.exports=H},369:Z=>{Z.exports=function(M,A,I,D){if(M)for(var p=0;p0&&(f.length>0&&" "!==f[f.length-1]&&(f+=" "),f+=A),b.setAttribute("class",f)}}},2866:Z=>{var H={FONTEM:360,FONTSIZE:30};H.STEP=93*H.FONTSIZE/720,H.SPACE=10,H.TOPNOTE=15,H.STAVEHEIGHT=100,H.INDENT=50,Z.exports=H},1673:(Z,H,M)=>{var A=M(369);Z.exports=function(D,p){void 0===D&&(D="abcjs-note_selected"),void 0===p&&(p="#ff0000"),A(this.elemset,D,"",p)}},3308:(Z,H,M)=>{var A=M(2866);function p(W){"keyboard"===this.dragMechanism&&0!==this.dragYStep&&this.dragTarget&&v.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,W),this.dragYStep=0}function b(W){switch(W.keyCode){case 38:case 40:W.preventDefault()}}function c(W){var q=!1,ee=W.target.dataset.index;switch(W.keyCode){case 13:case 32:q=!0,this.dragTarget=this.selectables[ee],this.dragIndex=ee,this.dragMechanism="keyboard",w.bind(this)(W);break;case 38:q=!0,this.dragTarget=this.selectables[ee],this.dragIndex=ee,this.dragTarget&&this.dragTarget.isDraggable&&(this.dragging&&this.dragTarget.isDraggable&&this.dragTarget.absEl.highlight(void 0,this.dragColor),this.dragYStep--,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+this.dragYStep*A.STEP+")"));break;case 40:q=!0,this.dragTarget=this.selectables[ee],this.dragIndex=ee,this.dragMechanism="keyboard",this.dragTarget&&this.dragTarget.isDraggable&&(this.dragging&&this.dragTarget.isDraggable&&this.dragTarget.absEl.highlight(void 0,this.dragColor),this.dragYStep++,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+this.dragYStep*A.STEP+")"));break;case 9:0!==this.dragYStep&&w.bind(this)(W)}q&&W.preventDefault()}function E(W,q){var ee,U,ne,z=function f(W,q){for(var ee=0;ee=0?(ne=function _(W,q,ee){return W.x<=q.offsetX&&W.x+W.width>=q.offsetX&&W.y<=q.offsetY&&W.y+W.height>=q.offsetY||Math.abs(q.layerY/ee-q.offsetY)<3?[q.offsetX,q.offsetY]:[q.layerX,q.layerY]}(W.selectables[z].svgEl.getBBox(),q,W.scale),ee=ne[0],U=ne[1]):(ne=function D(W){var L,P,q=1,ee=1,U=W.target.closest("svg"),ne=0;return U&&U.viewBox&&U.viewBox.baseVal&&(0!==U.viewBox.baseVal.width&&(q=U.viewBox.baseVal.width/U.clientWidth),0!==U.viewBox.baseVal.height&&(ee=U.viewBox.baseVal.height/U.clientHeight),ne=U.viewBox.baseVal.y),W.target&&"svg"===W.target.tagName?(L=W.offsetX,P=W.offsetY):(L=W.layerX,P=W.layerY),[L*=q,(P*=ee)+ne]}(q),z=function m(W,q,ee){for(var U=9999999,ne=-1,z=0;z0;z++){var L=W.selectables[z];if(W.getDim(L),L.dim.leftq&&L.dim.topee)ne=z,U=0;else if(L.dim.topee){var P=Math.min(Math.abs(L.dim.left-q),Math.abs(L.dim.right-q));Pq){var $=Math.min(Math.abs(L.dim.top-ee),Math.abs(L.dim.bottom-ee));$Math.abs(q-L.dim.right)?Math.abs(q-L.dim.right):Math.abs(q-L.dim.left),T=Math.abs(ee-L.dim.top)>Math.abs(ee-L.dim.bottom)?Math.abs(ee-L.dim.bottom):Math.abs(ee-L.dim.top),R=Math.sqrt(Q*Q+T*T);R=0&&U<=12?ne:-1}(W,ee=ne[0],U=ne[1])),{x:ee,y:U,clickedOn:z}}function g(W){if(W&&W.target&&W.touches&&!(W.touches.length<1)){var q=W.target.getBoundingClientRect(),U=W.touches[0].pageY-q.top;W.touches[0].offsetX=W.touches[0].pageX-q.left,W.touches[0].offsetY=U,W.touches[0].layerX=W.touches[0].pageX,W.touches[0].layerY=W.touches[0].pageY}}function l(W){var q=W;"touchstart"===W.type&&(g(W),W.touches.length>0&&(q=W.touches[0]));var ee=E(this,q);ee.clickedOn>=0&&("touchstart"===W.type||0===W.button)&&this.selectables[ee.clickedOn]&&(this.dragTarget=this.selectables[ee.clickedOn],this.dragIndex=ee.clickedOn,this.dragMechanism="mouse",this.dragMouseStart={x:ee.x,y:ee.y},this.dragging&&this.dragTarget.isDraggable&&(function Y(W,q){if(W){var ee=B(W.svg);ee[q]=!0,j(W.svg,ee)}}(this.renderer.paper,"abcjs-dragging-in-progress"),this.dragTarget.absEl.highlight(void 0,this.dragColor)))}function h(W){var q=W;if("touchmove"===W.type&&(g(W),W.touches.length>0&&(q=W.touches[0])),this.lastTouchMove=W,this.dragTarget&&this.dragging&&this.dragTarget.isDraggable&&"mouse"===this.dragMechanism&&this.dragMouseStart){var ee=E(this,q),U=Math.round((ee.y-this.dragMouseStart.y)/A.STEP);U!==this.dragYStep&&(this.dragYStep=U,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+U*A.STEP+")"))}}function w(W){var q=W;"touchend"===W.type&&this.lastTouchMove&&(g(this.lastTouchMove),this.lastTouchMove&&this.lastTouchMove.touches&&this.lastTouchMove.touches.length>0&&(q=this.lastTouchMove.touches[0])),this.dragTarget&&(x.bind(this)(),this.dragTarget.absEl&&this.dragTarget.absEl.highlight&&(this.selected=[this.dragTarget.absEl],this.dragTarget.absEl.highlight(void 0,this.selectionColor)),v.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,q),this.dragTarget.svgEl&&this.dragTarget.svgEl.focus&&(this.dragTarget.svgEl.focus(),this.dragTarget=null,this.dragIndex=-1),function te(W,q){if(W){var ee=B(W.svg);delete ee[q],j(W.svg,ee)}}(this.renderer.svg,"abcjs-dragging-in-progress"))}function u(W){W>=0&&Wz[L].abcelem.startChar&&W<$||q===W&&q===$)&&(this.selected[this.selected.length]=z[L],z[L].highlight(void 0,this.selectionColor))}}function B(W){var q=W.getAttribute("class");q||(q="");for(var ee=q.split(" "),U={},ne=0;ne{var A=M(369);Z.exports=function(D,p){void 0===D&&(D="abcjs-note_selected"),void 0===p&&(p="#000000"),A(this.elemset,"",D,p)}},5949:(Z,H,M)=>{var A=M(2291),I=M(2866),D=M(3660),b=function(l){return void 0===l?0:Math.floor(Math.log(l)/Math.log(2))};function c(l,h,w,u){if(!l.children)return u;for(var v=0;vS&&(v=S),v<-S&&(v=-S),v}(v,S,h,x),ee=W+Math.floor(q/2),U=W+Math.floor(-q/2);return j||(u&&W<6||!u&&W>6)&&(ee=6,U=6),[ee,U]}(l.average,l.elems.length,v,l.stemsUp,w.abcelem.averagepitch,u.abcelem.averagepitch,l.isflat,l.min,l.max,l.isgrace),O=_(l.stemsUp,w,u);l.addBeam({startX:O[0],endX:O[1],startY:x[0],endY:x[1],dy:h});for(var B=function g(l,h,w,u,v){for(var S=[],x=[],O=0;O0&&B.abcelem.beambr&&B.abcelem.beambr<=U+1){x[U].split||(x[U].split=[x[U].x]);var ne=_(h,l[O-1],B);x[U].split[x[U].split.length-1]>=ne[0]&&(ne[0]+=B.w),x[U].split.push(ne[0]),x[U].split.push(ne[1])}}for(var z=x.length-1;z>=0;z--)if(O===l.length-1||b(l[O+1].abcelem.duration)>-z-4){var L=Y,P=te+W*(z+1);x[z].single&&(P=D(w.startX,w.startY,w.endX,w.endY,L=0===O?Y+5:Y-5)+W*(z+1));var $={startX:x[z].x,endX:L,startY:x[z].y,endY:P,dy:v};if(void 0!==x[z].split){var Q=x[z].split;$.endX<=Q[Q.length-1]&&(Q[Q.length-1]-=B.w),Q.push($.endX),$.split=x[z].split}S.push($),x=x.slice(0,z)}}}return S}(l.elems,l.stemsUp,l.beams[0],l.isgrace,h),j=0;j{Z.exports=function H(M,A,I,D,p){return A+(D-A)/(I-M)*(p-M)}},1061:Z=>{function M(D,p,b){if(p)for(var c=0;c{var A=M(5292),I=M(4201),D=M(3070),p=M(1061),c=function(_,y,E,g,l,h,w){for(var u=p(_,g.getTextSize,g.voices,g.brace,g.bracket),v=E,S=0;S<8;S++){var x=D(v,_,w,g,u);if(v=f(h,l.stretchlast,y+_.padding.left,g.w,v,x.spacingUnits,x.minSpace,_.padding.left+_.padding.right),w&&console.log("setXSpace",S,g.w,v,g.minspace),null===v)break}!function m(_){for(var y=0;y<_.length;y++)for(var E=_[y],g=1;g0?((l=(E-(g-h*l))/h)*w>50&&(l=50/w),l):null}Z.exports=function(_,y,E,g){var l,h,w=E;for(l=0;lw&&(w=h.staffGroup.w));for(l=0;l{var A=M(2866);function p(g,l,h,w){if(g.specialY[h]){var u=g.specialY[h];w&&(u*=w),g.top+=u+1,l[h]=g.top}}function b(g,l,h){var w,u;for(w=0;w=0&&(u.originalTop=u.top,u.originalBottom=u.bottom),p(u,v,"lyricHeightAbove"),p(u,v,"chordHeightAbove",u.specialY.chordLines.above),u.specialY.endingHeightAbove&&(u.top+=u.specialY.chordHeightAbove?2:u.specialY.endingHeightAbove+1,v.endingHeightAbove=u.top),u.specialY.dynamicHeightAbove&&u.specialY.volumeHeightAbove?(u.top+=Math.max(u.specialY.dynamicHeightAbove,u.specialY.volumeHeightAbove)+1,v.dynamicHeightAbove=u.top,v.volumeHeightAbove=u.top):(p(u,v,"dynamicHeightAbove"),p(u,v,"volumeHeightAbove")),p(u,v,"partHeightAbove"),p(u,v,"tempoHeightAbove"),u.specialY.lyricHeightBelow&&(u.specialY.lyricHeightBelow+=g.spacing.vocal/A.STEP,v.lyricHeightBelow=u.bottom,u.bottom-=u.specialY.lyricHeightBelow+1),u.specialY.chordHeightBelow){v.chordHeightBelow=u.bottom;var S=u.specialY.chordHeightBelow;u.specialY.chordLines.below&&(S*=u.specialY.chordLines.below),u.bottom-=S+1}u.specialY.volumeHeightBelow&&u.specialY.dynamicHeightBelow?(v.volumeHeightBelow=u.bottom,v.dynamicHeightBelow=u.bottom,u.bottom-=Math.max(u.specialY.volumeHeightBelow,u.specialY.dynamicHeightBelow)+1):u.specialY.volumeHeightBelow?(v.volumeHeightBelow=u.bottom,u.bottom-=u.specialY.volumeHeightBelow+1):u.specialY.dynamicHeightBelow&&(v.dynamicHeightBelow=u.bottom,u.bottom-=u.specialY.dynamicHeightBelow+1),g.showDebug&&g.showDebug.indexOf("box")>=0&&(u.positionY=v);for(var x=0;x0&&(u.top+=te)}h=2-u.bottom}}},3070:(Z,H,M)=>{var A=M(6845);function p(f){for(var m=0;m0?0:5e-7)}function c(f,m){return!!(f&&f.staff&&f.staff.voices&&0!==f.staff.voices.length&&m&&m.staff&&m.staff.voices&&0!==m.staff.voices.length)&&f.staff.voices[0]===m.staff.voices[0]}Z.exports=function(f,m,_,y,E){var l=0,h=1e3,w=E;y.startx=w;var u,v=0;for(_&&console.log("init layout",f),u=0;u1e-7?O.push(y.voices[u]):x.push(y.voices[u]);S=0;var j=0;for(u=0;uw&&(w=A.getNextX(x[u]),S=A.getSpacingUnits(x[u]),j=x[u].spacingduration);l+=S,h=Math.min(h,S),_&&console.log("currentduration: ",v,l,h);var Y=void 0;for(u=0;u0){w=q;for(var U=0;Uw&&(w=A.getNextX(y.voices[u]),S=A.getSpacingUnits(y.voices[u]));return function I(f){for(var m=0,_=0;_0){var g=y.children[y.children.length-1];if("bar"===g.abcelem.el_type){var l=g.children[0].x;l>m?m=l:g.children[0].x=m}}}}(y.voices),l+=S,y.setWidth(w),{spacingUnits:l,minSpace:h}}},1554:(Z,H,M)=>{var A=M(3660);function D(c){return c.stemsUp}Z.exports=function I(c){if(c.anchor1&&c.anchor2){c.hasBeam=!!c.anchor1.parent.beam&&c.anchor1.parent.beam===c.anchor2.parent.beam;var f=c.anchor1.parent.beam;if(c.hasBeam&&(f.elems[0]!==c.anchor1.parent||f.elems[f.elems.length-1]!==c.anchor2.parent)&&(c.hasBeam=!1),c.hasBeam){var m=D(f)?c.anchor1.x+c.anchor1.w:c.anchor1.x;c.yTextPos=function p(c,f,m){return 0===m.beams.length?0:A((m=m.beams[0]).startX,m.startY,m.endX,m.endY,c+(f-c)/2)}(m,c.anchor2.x,f),c.yTextPos+=D(f)?3:-2,c.xTextPos=function b(c,f){return c+(f-c)/2}(m,c.anchor2.x),c.top=c.yTextPos+1,c.bottom=c.yTextPos-2,D(f)&&(c.endingHeightAbove=4)}else{c.startNote=Math.max(c.anchor1.parent.top,9)+4,c.endNote=Math.max(c.anchor2.parent.top,9)+4,"rest"===c.anchor1.parent.type&&"rest"!==c.anchor2.parent.type?c.startNote=c.endNote:"rest"===c.anchor2.parent.type&&"rest"!==c.anchor1.parent.type&&(c.endNote=c.startNote);for(var _=0,y=0;yc.startNote||_>c.endNote)&&(c.startNote=_,c.endNote=_),c.flatBeams&&(c.startNote=Math.max(c.startNote,c.endNote),c.endNote=Math.max(c.startNote,c.endNote)),c.yTextPos=c.startNote+(c.endNote-c.startNote)/2,c.xTextPos=c.anchor1.x+(c.anchor2.x+c.anchor2.w-c.anchor1.x)/2,c.top=c.yTextPos+1}}delete c.middleElems,delete c.flatBeams}},6845:Z=>{var H=function(){};H.beginLayout=function(I,D){D.i=0,D.durationindex=0,D.startx=I,D.minx=I,D.nextx=I,D.spacingduration=0},H.layoutEnded=function(I){return I.i>=I.children.length},H.getNextX=function(I){return Math.max(I.minx,I.nextx)},H.getSpacingUnits=function(I){return Math.sqrt(8*I.spacingduration)},H.layoutOneItem=function(I,D,p,b,c){var f=p.children[p.i];if(!f)return 0;var m=I-p.minx,_=p.durationindex+f.duration>0?b:0;if("note"===f.abcelem.el_type&&!f.abcelem.rest&&0!==p.voicenumber&&c){var y=c.children[c.i],E=y&&(f.abcelem.maxpitch<=y.abcelem.maxpitch+1&&f.abcelem.maxpitch>=y.abcelem.minpitch-1||f.abcelem.minpitch<=y.abcelem.maxpitch+1&&f.abcelem.minpitch>=y.abcelem.minpitch-1);if(E&&f.abcelem.minpitch===y.abcelem.minpitch&&f.abcelem.maxpitch===y.abcelem.maxpitch&&y.heads&&y.heads.length>0&&f.heads&&f.heads.length>0&&y.heads[0].c===f.heads[0].c&&(E=!1),E){var g=y.heads&&y.heads.length>0?y.heads[0].realWidth:y.fixed.w;f.adjustedWidth||(f.adjustedWidth=g+f.w),f.w=f.adjustedWidth;for(var l=0;l{var A=M(5949),I=M(3660),D=M(1554);function b(E){for(var l=0;l0&&g.putChordInLane(h),void(E[h]=l.right);E.push(l.right),g.putChordInLane(E.length-1)}}function m(E){for(var g=0,l=0;l=0;w--)(u=E[h].children[w]).chordHeightBelow&&c(l,u)}return(g.length>1||l.length>1)&&function _(E,g,l){for(var h=0;h{var A=M(2866),I=M(170),D=function(p){this.paper=new I(p),this.controller=null,this.space=3*A.SPACE,this.padding={},this.reset(),this.firefox112=navigator.userAgent.indexOf("Firefox/112.0")>=0};D.prototype.reset=function(){this.paper.clear(),this.y=0,this.abctune=null,this.path=null,this.isPrint=!1,this.lineThickness=0,this.initVerticalSpace()},D.prototype.newTune=function(p){this.abctune=p,this.setVerticalSpace(p.formatting),this.isPrint="print"===p.media,this.setPadding(p)},D.prototype.setLineThickness=function(p){this.lineThickness=p},D.prototype.setPaddingOverride=function(p){this.paddingOverride={top:p.paddingtop,bottom:p.paddingbottom,right:p.paddingright,left:p.paddingleft}},D.prototype.setPadding=function(p){function b(c,f,m,_,y){c.padding[f]=void 0!==p.formatting[m]?p.formatting[m]:void 0!==c.paddingOverride[f]?c.paddingOverride[f]:c.isPrint?_:y}b(this,"top","topmargin",38,15),b(this,"bottom","botmargin",38,15),b(this,"left","leftmargin",68,15),b(this,"right","rightmargin",68,15)},D.prototype.adjustNonScaledItems=function(p){this.padding.top/=p,this.padding.bottom/=p,this.padding.left/=p,this.padding.right/=p,this.abctune.formatting.headerfont.size/=p,this.abctune.formatting.footerfont.size/=p},D.prototype.initVerticalSpace=function(){this.spacing={composer:7.56,graceBefore:8.67,graceInside:10.67,graceAfter:16,info:0,lineSkipFactor:1.1,music:7.56,paragraphSkipFactor:.4,parts:11.33,slurHeight:1,staffSeparation:61.33,stemHeight:36.67,subtitle:3.78,systemStaffSeparation:48,text:18.9,title:7.56,top:30.24,vocal:0,words:0}},D.prototype.setVerticalSpace=function(p){void 0!==p.staffsep&&(this.spacing.staffSeparation=4*p.staffsep/3),void 0!==p.composerspace&&(this.spacing.composer=4*p.composerspace/3),void 0!==p.partsspace&&(this.spacing.parts=4*p.partsspace/3),void 0!==p.textspace&&(this.spacing.text=4*p.textspace/3),void 0!==p.musicspace&&(this.spacing.music=4*p.musicspace/3),void 0!==p.titlespace&&(this.spacing.title=4*p.titlespace/3),void 0!==p.sysstaffsep&&(this.spacing.systemStaffSeparation=4*p.sysstaffsep/3),void 0!==p.subtitlespace&&(this.spacing.subtitle=4*p.subtitlespace/3),void 0!==p.topspace&&(this.spacing.top=4*p.topspace/3),void 0!==p.vocalspace&&(this.spacing.vocal=4*p.vocalspace/3),void 0!==p.wordsspace&&(this.spacing.words=4*p.wordsspace/3)},D.prototype.calcY=function(p){return this.y-p*A.STEP},D.prototype.moveY=function(p,b){void 0===b&&(b=1),this.y+=p*b},D.prototype.absolutemoveY=function(p){this.y=p},Z.exports=D},170:Z=>{var H="http://www.w3.org/2000/svg";function M(b){this.svg=p(),this.currentGroup=[],b.appendChild(this.svg)}function A(b,c,f){var m=f-b;return"M "+b+" "+c+" l "+m+" 0 l 0 1 l "+-m+" 0 z "}function I(b,c,f){var m=f-c;return"M "+b+" "+c+" l 0 "+m+" l 1 0 l 0 "+-m+" z "}M.prototype.clear=function(){if(this.svg){var b=this.svg.parentNode;this.svg=p(),this.currentGroup=[],b&&(b.innerHTML="",b.appendChild(this.svg))}},M.prototype.setTitle=function(b){var c=document.createElement("title"),f=document.createTextNode(b);c.appendChild(f),this.svg.insertBefore(c,this.svg.firstChild)},M.prototype.setResponsiveWidth=function(b,c){if(this.svg.setAttribute("viewBox","0 0 "+b+" "+c),this.svg.setAttribute("preserveAspectRatio","xMinYMin meet"),this.svg.removeAttribute("height"),this.svg.removeAttribute("width"),this.svg.style.display="inline-block",this.svg.style.position="absolute",this.svg.style.top="0",this.svg.style.left="0",this.svg.parentNode){var f=this.svg.parentNode.getAttribute("class");f?f.indexOf("abcjs-container")<0&&this.svg.parentNode.setAttribute("class",f+" abcjs-container"):this.svg.parentNode.setAttribute("class","abcjs-container"),this.svg.parentNode.style.display="inline-block",this.svg.parentNode.style.position="relative",this.svg.parentNode.style.width="100%",this.svg.parentNode.style["padding-bottom"]=c/b*100+"%",this.svg.parentNode.style["vertical-align"]="middle",this.svg.parentNode.style.overflow="hidden"}},M.prototype.setSize=function(b,c){this.svg.setAttribute("width",b),this.svg.setAttribute("height",c)},M.prototype.setAttribute=function(b,c){this.svg.setAttribute(b,c)},M.prototype.setScale=function(b){1!==b?(this.svg.style.transform="scale("+b+","+b+")",this.svg.style["-ms-transform"]="scale("+b+","+b+")",this.svg.style["-webkit-transform"]="scale("+b+","+b+")",this.svg.style["transform-origin"]="0 0",this.svg.style["-ms-transform-origin-x"]="0",this.svg.style["-ms-transform-origin-y"]="0",this.svg.style["-webkit-transform-origin-x"]="0",this.svg.style["-webkit-transform-origin-y"]="0"):(this.svg.style.transform="",this.svg.style["-ms-transform"]="",this.svg.style["-webkit-transform"]="")},M.prototype.insertStyles=function(b){var c=document.createElementNS(H,"style");c.textContent=b,this.svg.insertBefore(c,this.svg.firstChild)},M.prototype.setParentStyles=function(b){for(var c in b)b.hasOwnProperty(c)&&this.svg.parentNode&&(this.svg.parentNode.style[c]=b[c]);this.dummySvg&&(document.querySelector("body").removeChild(this.dummySvg),this.dummySvg=null)},M.prototype.rect=function(b){var c=[],f=b.x,m=b.y,_=b.x+b.width,y=b.y+b.height;return c.push(A(f,m,_)),c.push(A(f,y,_)),c.push(I(_,m,y)),c.push(I(f,y,m)),this.path({path:c.join(" "),stroke:"none","data-name":b["data-name"]})},M.prototype.dottedLine=function(b){var c=document.createElementNS(H,"line");c.setAttribute("x1",b.x1),c.setAttribute("x2",b.x2),c.setAttribute("y1",b.y1),c.setAttribute("y2",b.y2),c.setAttribute("stroke",b.stroke),c.setAttribute("stroke-dasharray","5,5"),this.svg.insertBefore(c,this.svg.firstChild)},M.prototype.rectBeneath=function(b){var c=document.createElementNS(H,"rect");c.setAttribute("x",b.x),c.setAttribute("width",b.width),c.setAttribute("y",b.y),c.setAttribute("height",b.height),b.stroke&&c.setAttribute("stroke",b.stroke),b["stroke-opacity"]&&c.setAttribute("stroke-opacity",b["stroke-opacity"]),b.fill&&c.setAttribute("fill",b.fill),b["fill-opacity"]&&c.setAttribute("fill-opacity",b["fill-opacity"]),this.svg.insertBefore(c,this.svg.firstChild)},M.prototype.text=function(b,c,f){var m=document.createElementNS(H,"text");for(var _ in m.setAttribute("stroke","none"),c)c.hasOwnProperty(_)&&m.setAttribute(_,c[_]);for(var y=(""+b).split("\n"),E=0;E0?this.currentGroup[0].removeChild(f):this.svg.removeChild(f)),m&&(D[m]=y),y},M.prototype.openGroup=function(b){b=b||{};var c=document.createElementNS(H,"g");return b.klass&&c.setAttribute("class",b.klass),b.fill&&c.setAttribute("fill",b.fill),b.stroke&&c.setAttribute("stroke",b.stroke),b["data-name"]&&c.setAttribute("data-name",b["data-name"]),b.prepend?this.prepend(c):this.append(c),this.currentGroup.unshift(c),c},M.prototype.closeGroup=function(){var b=this.currentGroup.shift();return b&&0===b.children.length?(b.parentElement.removeChild(b),null):b},M.prototype.path=function(b){var c=document.createElementNS(H,"path");for(var f in b)b.hasOwnProperty(f)&&("path"===f?c.setAttributeNS(null,"d",b.path):"klass"===f?c.setAttributeNS(null,"class",b[f]):void 0!==b[f]&&c.setAttributeNS(null,f,b[f]));return this.append(c),c},M.prototype.pathToBack=function(b){var c=document.createElementNS(H,"path");for(var f in b)b.hasOwnProperty(f)&&("path"===f?c.setAttributeNS(null,"d",b.path):c.setAttributeNS(null,"klass"===f?"class":f,b[f]));return this.prepend(c),c},M.prototype.lineToBack=function(b){for(var c=document.createElementNS(H,"line"),f=Object.keys(b),m=0;m0?this.currentGroup[0].appendChild(b):this.svg.appendChild(b)},M.prototype.prepend=function(b){this.currentGroup.length>0?this.currentGroup[0].appendChild(b):this.svg.insertBefore(b,this.svg.firstChild)},M.prototype.setAttributeOnElement=function(b,c){for(var f in c)c.hasOwnProperty(f)&&b.setAttributeNS(null,f,c[f])},M.prototype.moveElementToChild=function(b,c){b.appendChild(c)},Z.exports=M},9866:Z=>{Z.exports="6.2.2"},3894:Z=>{Z.exports="function"==typeof Object.create?function(M,A){M.super_=A,M.prototype=Object.create(A.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}})}:function(M,A){M.super_=A;var I=function(){};I.prototype=A.prototype,M.prototype=new I,M.prototype.constructor=M}},5244:(Z,H,M)=>{"use strict";var A="win32"===process.platform,I=M(6788);function D(h,w){for(var u=[],v=0;v=0&&!h[v];v--);return 0===u&&v===w?h:u>v?[]:h.slice(u,v+1)}var b=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,c=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,f={};function m(h){var w=b.exec(h),u=(w[1]||"")+(w[2]||""),S=c.exec(w[3]||"");return[u,S[1],S[2],S[3]]}function _(h){var w=b.exec(h),u=w[1]||"",v=!!u&&":"!==u[1];return{device:u,isUnc:v,isAbsolute:v||!!w[2],tail:w[3]}}function y(h){return"\\\\"+h.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}f.resolve=function(){for(var h="",w="",u=!1,v=arguments.length-1;v>=-1;v--){var S;if(v>=0?S=arguments[v]:h?(!(S=process.env["="+h])||S.substr(0,3).toLowerCase()!==h.toLowerCase()+"\\")&&(S=h+"\\"):S=process.cwd(),!I.isString(S))throw new TypeError("Arguments to path.resolve must be strings");if(S){var x=_(S),O=x.device,B=x.isUnc,j=x.isAbsolute,Y=x.tail;if((!O||!h||O.toLowerCase()===h.toLowerCase())&&(h||(h=O),u||(w=Y+"\\"+w,u=j),h&&u))break}}return B&&(h=y(h)),h+(u?"\\":"")+(w=D(w.split(/[\\\/]+/),!u).join("\\"))||"."},f.normalize=function(h){var w=_(h),u=w.device,v=w.isUnc,S=w.isAbsolute,x=w.tail,O=/[\\\/]$/.test(x);return!(x=D(x.split(/[\\\/]+/),!S).join("\\"))&&!S&&(x="."),x&&O&&(x+="\\"),v&&(u=y(u)),u+(S?"\\":"")+x},f.isAbsolute=function(h){return _(h).isAbsolute},f.join=function(){for(var h=[],w=0;w=-1&&!w;u--){var v=u>=0?arguments[u]:process.cwd();if(!I.isString(v))throw new TypeError("Arguments to path.resolve must be strings");v&&(h=v+"/"+h,w="/"===v[0])}return(w?"/":"")+(h=D(h.split("/"),!w).join("/"))||"."},g.normalize=function(h){var w=g.isAbsolute(h),u=h&&"/"===h[h.length-1];return!(h=D(h.split("/"),!w).join("/"))&&!w&&(h="."),h&&u&&(h+="/"),(w?"/":"")+h},g.isAbsolute=function(h){return"/"===h.charAt(0)},g.join=function(){for(var h="",w=0;w{var Z,H;H=Z||(Z={}),function(M){var A="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),I=D(H);function D(p,b){return function(c,f){"function"!=typeof p[c]&&Object.defineProperty(p,c,{configurable:!0,writable:!0,value:f}),b&&b(c,f)}}void 0===A.Reflect?A.Reflect=H:I=D(A.Reflect,I),function(M){var A=Object.prototype.hasOwnProperty,I="function"==typeof Symbol,D=I&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",p=I&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",b="function"==typeof Object.create,c={__proto__:[]}instanceof Array,f=!b&&!c,m={create:b?function(){return yn(Object.create(null))}:c?function(){return yn({__proto__:null})}:function(){return yn({})},has:f?function(fe,ce){return A.call(fe,ce)}:function(fe,ce){return ce in fe},get:f?function(fe,ce){return A.call(fe,ce)?fe[ce]:void 0}:function(fe,ce){return fe[ce]}},_=Object.getPrototypeOf(Function),y="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,E=y||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function _n(){var fe={},ce=[],be=function(){function tt(Ct,rt,Ft){this._index=0,this._keys=Ct,this._values=rt,this._selector=Ft}return tt.prototype["@@iterator"]=function(){return this},tt.prototype[p]=function(){return this},tt.prototype.next=function(){var Ct=this._index;if(Ct>=0&&Ct=this._keys.length?(this._index=-1,this._keys=ce,this._values=ce):this._index++,{value:rt,done:!1}}return{value:void 0,done:!0}},tt.prototype.throw=function(Ct){throw this._index>=0&&(this._index=-1,this._keys=ce,this._values=ce),Ct},tt.prototype.return=function(Ct){return this._index>=0&&(this._index=-1,this._keys=ce,this._values=ce),{value:Ct,done:!0}},tt}();return function(){function tt(){this._keys=[],this._values=[],this._cacheKey=fe,this._cacheIndex=-2}return Object.defineProperty(tt.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),tt.prototype.has=function(Ct){return this._find(Ct,!1)>=0},tt.prototype.get=function(Ct){var rt=this._find(Ct,!1);return rt>=0?this._values[rt]:void 0},tt.prototype.set=function(Ct,rt){var Ft=this._find(Ct,!0);return this._values[Ft]=rt,this},tt.prototype.delete=function(Ct){var rt=this._find(Ct,!1);if(rt>=0){for(var Ft=this._keys.length,Pt=rt+1;Pt=0;--be){var Ae=(0,fe[be])(ce);if(!R(Ae)&&!F(Ae)){if(!qe(Ae))throw new TypeError;ce=Ae}}return ce}(fe,ce)}if(!Ve(fe))throw new TypeError;if(!J(ce))throw new TypeError;if(!J(Ce)&&!R(Ce)&&!F(Ce))throw new TypeError;return F(Ce)&&(Ce=void 0),function q(fe,ce,be,Ce){for(var Ae=fe.length-1;Ae>=0;--Ae){var tt=(0,fe[Ae])(ce,be,Ce);if(!R(tt)&&!F(tt)){if(!J(tt))throw new TypeError;Ce=tt}}return Ce}(fe,ce,be=me(be),Ce)}),M("metadata",function u(fe,ce){return function be(Ce,Ae){if(!J(Ce))throw new TypeError;if(!R(Ae)&&!function Be(fe){switch(T(fe)){case 3:case 4:return!0;default:return!1}}(Ae))throw new TypeError;P(fe,ce,Ce,Ae)}}),M("defineMetadata",function v(fe,ce,be,Ce){if(!J(be))throw new TypeError;return R(Ce)||(Ce=me(Ce)),P(fe,ce,be,Ce)}),M("hasMetadata",function S(fe,ce,be){if(!J(ce))throw new TypeError;return R(be)||(be=me(be)),U(fe,ce,be)}),M("hasOwnMetadata",function x(fe,ce,be){if(!J(ce))throw new TypeError;return R(be)||(be=me(be)),ne(fe,ce,be)}),M("getMetadata",function O(fe,ce,be){if(!J(ce))throw new TypeError;return R(be)||(be=me(be)),z(fe,ce,be)}),M("getOwnMetadata",function B(fe,ce,be){if(!J(ce))throw new TypeError;return R(be)||(be=me(be)),L(fe,ce,be)}),M("getMetadataKeys",function j(fe,ce){if(!J(fe))throw new TypeError;return R(ce)||(ce=me(ce)),$(fe,ce)}),M("getOwnMetadataKeys",function Y(fe,ce){if(!J(fe))throw new TypeError;return R(ce)||(ce=me(ce)),Q(fe,ce)}),M("deleteMetadata",function te(fe,ce,be){if(!J(ce))throw new TypeError;R(be)||(be=me(be));var Ce=ee(ce,be,!1);if(R(Ce)||!Ce.delete(fe))return!1;if(Ce.size>0)return!0;var Ae=h.get(ce);return Ae.delete(be),Ae.size>0||h.delete(ce),!0})}(I)}()},1451:Z=>{Z.exports=function(M){return M&&"object"==typeof M&&"function"==typeof M.copy&&"function"==typeof M.fill&&"function"==typeof M.readUInt8}},6788:(Z,H,M)=>{var A=/%[sdj%]/g;H.format=function($){if(!x($)){for(var Q=[],T=0;T=F)return se;switch(se){case"%s":return String(R[T++]);case"%d":return Number(R[T++]);case"%j":try{return JSON.stringify(R[T++])}catch(ie){return"[Circular]"}default:return se}}),J=R[T];T=3&&(T.depth=arguments[2]),arguments.length>=4&&(T.colors=arguments[3]),w(Q)?T.showHidden=Q:Q&&H._extend(T,Q),B(T.showHidden)&&(T.showHidden=!1),B(T.depth)&&(T.depth=2),B(T.colors)&&(T.colors=!1),B(T.customInspect)&&(T.customInspect=!0),T.colors&&(T.stylize=b),m(T,$,T.depth)}function b($,Q){var T=p.styles[Q];return T?"\x1b["+p.colors[T][0]+"m"+$+"\x1b["+p.colors[T][1]+"m":$}function c($,Q){return $}function m($,Q,T){if($.customInspect&&Q&&q(Q.inspect)&&Q.inspect!==H.inspect&&(!Q.constructor||Q.constructor.prototype!==Q)){var R=Q.inspect(T,$);return x(R)||(R=m($,R,T)),R}var F=function _($,Q){if(B(Q))return $.stylize("undefined","undefined");if(x(Q)){var T="'"+JSON.stringify(Q).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return $.stylize(T,"string")}return S(Q)?$.stylize(""+Q,"number"):w(Q)?$.stylize(""+Q,"boolean"):u(Q)?$.stylize("null","null"):void 0}($,Q);if(F)return F;var K=Object.keys(Q),J=function f($){var Q={};return $.forEach(function(T,R){Q[T]=!0}),Q}(K);if($.showHidden&&(K=Object.getOwnPropertyNames(Q)),W(Q)&&(K.indexOf("message")>=0||K.indexOf("description")>=0))return y(Q);if(0===K.length){if(q(Q))return $.stylize("[Function"+(Q.name?": "+Q.name:"")+"]","special");if(j(Q))return $.stylize(RegExp.prototype.toString.call(Q),"regexp");if(te(Q))return $.stylize(Date.prototype.toString.call(Q),"date");if(W(Q))return y(Q)}var Ve,ie="",ye=!1,Fe=["{","}"];return h(Q)&&(ye=!0,Fe=["[","]"]),q(Q)&&(ie=" [Function"+(Q.name?": "+Q.name:"")+"]"),j(Q)&&(ie=" "+RegExp.prototype.toString.call(Q)),te(Q)&&(ie=" "+Date.prototype.toUTCString.call(Q)),W(Q)&&(ie=" "+y(Q)),0!==K.length||ye&&0!=Q.length?T<0?j(Q)?$.stylize(RegExp.prototype.toString.call(Q),"regexp"):$.stylize("[Object]","special"):($.seen.push(Q),Ve=ye?function E($,Q,T,R,F){for(var K=[],J=0,se=Q.length;J60?T[0]+(""===Q?"":Q+"\n ")+" "+$.join(",\n ")+" "+T[1]:T[0]+Q+" "+$.join(", ")+" "+T[1]}(Ve,ie,Fe)):Fe[0]+ie+Fe[1]}function y($){return"["+Error.prototype.toString.call($)+"]"}function g($,Q,T,R,F,K){var J,se,ie;if((ie=Object.getOwnPropertyDescriptor(Q,F)||{value:Q[F]}).get?se=$.stylize(ie.set?"[Getter/Setter]":"[Getter]","special"):ie.set&&(se=$.stylize("[Setter]","special")),P(R,F)||(J="["+F+"]"),se||($.seen.indexOf(ie.value)<0?(se=u(T)?m($,ie.value,null):m($,ie.value,T-1)).indexOf("\n")>-1&&(se=K?se.split("\n").map(function(ye){return" "+ye}).join("\n").substr(2):"\n"+se.split("\n").map(function(ye){return" "+ye}).join("\n")):se=$.stylize("[Circular]","special")),B(J)){if(K&&F.match(/^\d+$/))return se;(J=JSON.stringify(""+F)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(J=J.substr(1,J.length-2),J=$.stylize(J,"name")):(J=J.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),J=$.stylize(J,"string"))}return J+": "+se}function h($){return Array.isArray($)}function w($){return"boolean"==typeof $}function u($){return null===$}function S($){return"number"==typeof $}function x($){return"string"==typeof $}function B($){return void 0===$}function j($){return Y($)&&"[object RegExp]"===U($)}function Y($){return"object"==typeof $&&null!==$}function te($){return Y($)&&"[object Date]"===U($)}function W($){return Y($)&&("[object Error]"===U($)||$ instanceof Error)}function q($){return"function"==typeof $}function U($){return Object.prototype.toString.call($)}function ne($){return $<10?"0"+$.toString(10):$.toString(10)}H.debuglog=function($){if(B(D)&&(D=process.env.NODE_DEBUG||""),$=$.toUpperCase(),!I[$])if(new RegExp("\\b"+$+"\\b","i").test(D)){var Q=process.pid;I[$]=function(){var T=H.format.apply(H,arguments);console.error("%s %d: %s",$,Q,T)}}else I[$]=function(){};return I[$]},H.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},H.isArray=h,H.isBoolean=w,H.isNull=u,H.isNullOrUndefined=function v($){return null==$},H.isNumber=S,H.isString=x,H.isSymbol=function O($){return"symbol"==typeof $},H.isUndefined=B,H.isRegExp=j,H.isObject=Y,H.isDate=te,H.isError=W,H.isFunction=q,H.isPrimitive=function ee($){return null===$||"boolean"==typeof $||"number"==typeof $||"string"==typeof $||"symbol"==typeof $||void 0===$},H.isBuffer=M(1451);var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function L(){var $=new Date,Q=[ne($.getHours()),ne($.getMinutes()),ne($.getSeconds())].join(":");return[$.getDate(),z[$.getMonth()],Q].join(" ")}function P($,Q){return Object.prototype.hasOwnProperty.call($,Q)}H.log=function(){console.log("%s - %s",L(),H.format.apply(H,arguments))},H.inherits=M(3894),H._extend=function($,Q){if(!Q||!Y(Q))return $;for(var T=Object.keys(Q),R=T.length;R--;)$[T[R]]=Q[T[R]];return $}}},Z=>{Z(Z.s=6892)}]); \ No newline at end of file diff --git a/tunebook/ngsw.json b/tunebook/ngsw.json index 4e0b0d1..feb873b 100644 --- a/tunebook/ngsw.json +++ b/tunebook/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1699458054971, + "timestamp": 1701204947967, "index": "/tunebook/index.html", "assetGroups": [ { @@ -13,7 +13,7 @@ "urls": [ "/tunebook/favicon.ico", "/tunebook/index.html", - "/tunebook/main.d6ecd478f98669bb.js", + "/tunebook/main.e19bcf950f0b0547.js", "/tunebook/polyfills.d727d0f4a0f55c80.js", "/tunebook/runtime.814b142fdf5fd5d5.js", "/tunebook/site.webmanifest", @@ -57,7 +57,7 @@ "/tunebook/android-chrome-192x192.png": "7fc125c6a8ce2904c4e14ed654977b374a524ec2", "/tunebook/android-chrome-512x512.png": "78e0d4aa86f29e36e9c785e03e3f6d8b6df6d1f5", "/tunebook/apple-touch-icon.png": "7b0c10efd7ac5b2454486cda97e1ef77a4217944", - "/tunebook/assets/LearnerSession.abc": "bf9f586f67b8e73ccc657cf1761855c56d870935", + "/tunebook/assets/LearnerSession.abc": "d67525a278fa8d7954616fef5e4dd7e5538b37ef", "/tunebook/assets/ONeill1001.abc": "e60aae6f84b0cfabfc818bd2294f43faacc1f42c", "/tunebook/assets/ONeill1850.abc": "cb120378aa89b0d6bf3d53e15faf9953b750560e", "/tunebook/assets/Oswald2.abc": "0184ba524602921b3518c23a4b7fbe44d9ad1c88", @@ -66,15 +66,15 @@ "/tunebook/assets/font/irishuncialfabeta-bold-webfont.woff": "7b4f62411f52233f2de8be6e01c947120986be68", "/tunebook/assets/font/irishuncialfabeta-bold-webfont.woff2": "e04fa53e407ed9bd2bc6472b8e2ac04f4590a738", "/tunebook/assets/normalized-tunes.json": "0db1a0b7ab55787ff230baa9dee8a57388a20763", - "/tunebook/assets/tunebook-collection.json": "fb24eb903a5b79b416bbc258c3862409601e9c65", + "/tunebook/assets/tunebook-collection.json": "fd4ec26272948d6ec19442df123ffa79f1a2cc0a", "/tunebook/assets/tunebooks.json": "91086d0235fc8f3d24175fc593f4958fd087c349", "/tunebook/favicon-16x16.png": "60ae12fec505dace727150c4757598f2b4d5f2f7", "/tunebook/favicon-32x32.png": "f14b1f5f197f692eca78cea7951ab8e82d5c4d8b", "/tunebook/favicon.ico": "c7cc37b24ac2e037be5b3d3c1f80563d33c92966", - "/tunebook/index.html": "fe460a44f83538a4a944fed8a624a965855e6d83", + "/tunebook/index.html": "2fe7bfb3c29855c201af8d7be62fb545956a05fb", "/tunebook/irishuncialfabeta-bold-webfont.5de5aab652b242e1.woff": "7b4f62411f52233f2de8be6e01c947120986be68", "/tunebook/irishuncialfabeta-bold-webfont.af950bef0b7893ca.woff2": "e04fa53e407ed9bd2bc6472b8e2ac04f4590a738", - "/tunebook/main.d6ecd478f98669bb.js": "e9f97bd5cfd6cb90c42796f7181fe8c8ef8125f8", + "/tunebook/main.e19bcf950f0b0547.js": "438d5bb7608199ccc944276d6ecbdf70a97825c4", "/tunebook/polyfills.d727d0f4a0f55c80.js": "5bb14b9c2c37a7eea0a3d23099f15529dccf5563", "/tunebook/runtime.814b142fdf5fd5d5.js": "67f2870bb5eae708eab38c00f1840c10b2f8ce34", "/tunebook/site.webmanifest": "d179e36f83872017fb7585f6adf21b6143568469",