@venite/components 0.16.15 → 0.16.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ion-segment_16.cjs.entry.js +2 -2
- package/dist/cjs/ldf-day-name_5.cjs.entry.js +16 -4
- package/dist/cjs/ldf-editable-add-block-menu.cjs.entry.js +2 -2
- package/dist/cjs/ldf-editable-filter-documents.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-lookup_2.cjs.entry.js +3 -3
- package/dist/cjs/ldf-editable-metadata.cjs.entry.js +3 -3
- package/dist/cjs/ldf.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{option-24f3d13a.js → option-a078d432.js} +4 -1
- package/dist/cjs/{rubric-586cf42b.js → rubric-0afbe4c0.js} +315 -1
- package/dist/cjs/{specific-class-bec65db8.js → specific-class-76b4d343.js} +2 -2
- package/dist/collection/components/string/dist/string.js +2 -2
- package/dist/collection/components/string/string.js +3 -3
- package/dist/collection/components/text/dist/text.js +29 -2
- package/dist/collection/components/text/text.js +56 -4
- package/dist/esm/ion-segment_16.entry.js +2 -2
- package/dist/esm/ldf-day-name_5.entry.js +16 -4
- package/dist/esm/ldf-editable-add-block-menu.entry.js +2 -2
- package/dist/esm/ldf-editable-filter-documents.entry.js +1 -1
- package/dist/esm/ldf-editable-lookup_2.entry.js +3 -3
- package/dist/esm/ldf-editable-metadata.entry.js +3 -3
- package/dist/esm/ldf.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{option-da8390ad.js → option-c16af13a.js} +4 -1
- package/dist/esm/{rubric-54f45eb5.js → rubric-f779c469.js} +315 -1
- package/dist/esm/{specific-class-b68bdee5.js → specific-class-09c98625.js} +2 -2
- package/dist/ldf/ldf.esm.js +1 -1
- package/dist/ldf/{p-7e50fd1d.entry.js → p-005ad01b.entry.js} +1 -1
- package/dist/ldf/p-00e5ee6b.js +1 -0
- package/dist/ldf/{p-21b1d984.entry.js → p-2c39ce94.entry.js} +1 -1
- package/dist/ldf/{p-1ff665a7.entry.js → p-304a2bdb.entry.js} +1 -1
- package/dist/ldf/p-59683bec.entry.js +1 -0
- package/dist/ldf/{p-8f3c4fdb.entry.js → p-95650471.entry.js} +1 -1
- package/dist/ldf/{p-93ea522c.entry.js → p-c0ef6296.entry.js} +1 -1
- package/dist/ldf/p-d56dff05.js +3 -0
- package/dist/ldf/p-e7a449d7.js +1 -0
- package/dist/types/components/text/text.d.ts +4 -0
- package/dist/types/components.d.ts +5 -0
- package/package.json +2 -2
- package/dist/ldf/p-3755f069.js +0 -1
- package/dist/ldf/p-3f8ef67b.entry.js +0 -1
- package/dist/ldf/p-883425cd.js +0 -3
- package/dist/ldf/p-9155f066.js +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{L as e}from"./p-4aa9a6f2.js";const o=[{name:"Genesis",aliases:["Gn","Gen","Genesis"]},{name:"Exodus",aliases:["Exod","Ex","Exo","Exodus"]},{name:"Leviticus",aliases:["Lev","Lv","Leviticus"]},{name:"Numbers",aliases:["Num","Numbers"]},{name:"Deuteronomy",aliases:["Deut","Deuteronomy"]},{name:"Joshua",aliases:["Josh","Joshua"]},{name:"Judges",aliases:["Judg","Jdg","Judges"]},{name:"Ruth",aliases:["Ruth"]},{name:"1 Samuel",aliases:["1Sam","1 Sam","1st Sam","1st Samuel","First Samuel","1 Samuel"]},{name:"2 Samuel",aliases:["2Sam","2 Sam","2nd Sam","2nd Samuel","Second Samuel","2 Samuel"]},{name:"1 Kings",aliases:["1Kgs","1 Kgs","1st Kgs","1st Kings","First Kings","1 Kings"]},{name:"2 Kings",aliases:["2Kgs","2 Kgs","2nd Kgs","2nd Kings","Second Kings","2 Kings"]},{name:"1 Chronicles",aliases:["1Chr","1 Chr","1st Chr","1st Chronicles","First Chronicles","1 Chronicles"]},{name:"2 Chronicles",aliases:["2Chr","2 Chr","2nd Chr","2nd Chronicles","Second Chronicles","2 Chronicles"]},{name:"Ezra",aliases:["Ezra"]},{name:"Nehemiah",aliases:["Neh","Nehemiah"]},{name:"Esther",aliases:["Esth","Est","Esther"]},{name:"Job",aliases:["Jb","Job"]},{name:"Psalms",aliases:["Ps","Psalm","Psalms"]},{name:"Proverbs",aliases:["Prov","Pro","Proverbs"]},{name:"Ecclesiastes",aliases:["Eccl","Ecc","Ecclesiastes"]},{name:"The Song of Solomon",aliases:["Song","Song of Songs","Song of Solomon","Cant"]},{name:"Isaiah",aliases:["Isa","Is","Isaiah"]},{name:"Jeremiah",aliases:["Jer","Jeremiah"]},{name:"Letter of Jeremiah",aliases:["EJer","EpJer","Epistle of Jeremiah"]},{name:"Lamentations",aliases:["Lam","Lamentations"]},{name:"Ezekiel",aliases:["Ezek","Ezekiel"]},{name:"Daniel",aliases:["Dan","Daniel"]},{name:"Hosea",aliases:["Hos","Hosea"]},{name:"Joel",aliases:["Joel"]},{name:"Amos",aliases:["Amos"]},{name:"Obadiah",aliases:["Obad","Oba","Obadiah"]},{name:"Jonah",aliases:["Jon","Jonah"]},{name:"Micah",aliases:["Mic","Micah"]},{name:"Nahum",aliases:["Nah","Nahum"]},{name:"Habakkuk",aliases:["Hab","Habakkuk"]},{name:"Zephaniah",aliases:["Zeph","Zephaniah"]},{name:"Haggai",aliases:["Hag","Haggai"]},{name:"Zechariah",aliases:["Zech","Zechariah"]},{name:"Malachi",aliases:["Mal","Malachi"]},{name:"Tobit",aliases:["Tob","Tobit"]},{name:"Judith",aliases:["Jdt","Judith"]},{name:"Baruch",aliases:["Bar","Baruch"]},{name:"1 Maccabees",aliases:["1Macc","1 Maccabees","First Maccabees","1 Macc"]},{name:"2 Maccabees",aliases:["2Macc","2 Maccabees","Second Maccabees","2 Macc"]},{name:"Wisdom",aliases:["Wis","Wisdom"]},{name:"Sirach",aliases:["Sir","Ecclus","Ben Sira","Ecclesiasticus"]},{name:"1 Esdras",aliases:["1 Esdr","1 Esdras","1 Esd","1Esdras","1Esdr","1Esd"]},{name:"2 Esdras",aliases:["2 Esdr","2 Esdras","2 Esd","2Esdras","2Esdr","2Esd"]},{name:"Bel",aliases:["Bel","Bel & the Dragon"]},{name:"Azariah",aliases:["Azariah","Song of the Three Young Men","Song of the Three Childr.","Song of the Three Children"]},{name:"Matthew",aliases:["Matt","Matthew","Mt"]},{name:"Mark",aliases:["Mark","Mk"]},{name:"Luke",aliases:["Luke","Lk"]},{name:"John",aliases:["Jn","John","Joh"]},{name:"Acts",aliases:["Acts"]},{name:"Romans",aliases:["Rom","Romans"]},{name:"1 Corinthians",aliases:["1Cor","1 Cor","1st Cor","1st Corinthians","First Corinthians","1 Corinthians"]},{name:"2 Corinthians",aliases:["2Cor","2 Cor","2nd Cor","2nd Corinthians","Second Corinthians","2 Corinthians"]},{name:"Galatians",aliases:["Gal","Galatians"]},{name:"Ephesians",aliases:["Eph","Ephesians"]},{name:"Philippians",aliases:["Phil","Philippians"]},{name:"Colossians",aliases:["Col","Colossians"]},{name:"1 Thessalonians",aliases:["1Thess","1 Thess","1st Thess","1st Thessalonians","First Thessalonians","1 Thessalonians"]},{name:"2 Thessalonians",aliases:["2Thess","2 Thess","2nd Thess","2nd Thessalonians","Second Thessalonians","2 Thessalonians"]},{name:"1 Timothy",aliases:["1 Tim","1Tim","1st Tim","1st Timothy","First Timothy","1 Timothy"]},{name:"2 Timothy",aliases:["2 Tim","2Tim","2nd Tim","2nd Timothy","Second Timothy","2 Timothy"]},{name:"Titus",aliases:["Titus"]},{name:"Philemon",aliases:["Phlm","Philemon"]},{name:"Hebrews",aliases:["Heb","Hebrews"]},{name:"James",aliases:["Jas","James"]},{name:"1 Peter",aliases:["1Pet","1 Pet","1st Pet","1st Peter","First Peter","1 Peter"]},{name:"2 Peter",aliases:["2Pet","2 Pet","2nd Pet","2nd Peter","Second Peter","2 Peter"]},{name:"1 John",aliases:["1John","1 John","1st John","First John","1 Joh"]},{name:"2 John",aliases:["2John","2 John","2nd John","Second John","2 Joh"]},{name:"3 John",aliases:["3John","3 John","3rd John","Third John","3 Joh"]},{name:"Jude",aliases:["Jude","Jd"]},{name:"Revelation",aliases:["Rev","Revelation","Revelations","Apocalypse","Apoc"]}],s={Genesis:{en:{short:"Genesis",long:"The Book of Genesis"},es:{short:"Génesis",long:"El Libro de Génesis"}},Exodus:{en:{short:"Exodus",long:"The Book of Exodus"},es:{short:"Éxodo",long:"El Libro de Éxodo"}},Leviticus:{en:{short:"Leviticus",long:"The Book of Leviticus"},es:{short:"Levítico",long:"El Libro de Levítico"}},Numbers:{en:{short:"Numbers",long:"The Book of Numbers"},es:{short:"Números",long:"El Libro de Números"}},Deuteronomy:{en:{short:"Deuteronomy",long:"The Book of Deuteronomy"},es:{short:"Deuteronomio",long:"El Libro de Deuteronomio"}},Joshua:{en:{short:"Joshua",long:"The Book of Joshua"},es:{short:"Josué",long:"El Libro de Josué"}},Judges:{en:{short:"Judges",long:"The Book of Judges"},es:{short:"Jueces",long:"El Libro de Jueces"}},Ruth:{en:{short:"Ruth",long:"The Book of Ruth"},es:{short:"Rut",long:"El Libro de Rut"}},"1 Samuel":{en:{short:"1 Samuel",long:"The First Book of Samuel"},es:{short:"1 Samuel",long:"El Libro de 1 Samuel"}},"2 Samuel":{en:{short:"2 Samuel",long:"The Second Book of Samuel"},es:{short:"2 Samuel",long:"El Libro de 2 Samuel"}},"1 Kings":{en:{short:"1 Kings",long:"The First Book of Kings"},es:{short:"1 Reyes",long:"El Libro de 1 Reyes"}},"2 Kings":{en:{short:"2 Kings",long:"The Second Book of Kings"},es:{short:"2 Reyes",long:"El Libro de 2 Reyes"}},"1 Chronicles":{en:{short:"1 Chronicles",long:"The First Book of Chronicles"},es:{short:"1 Crónicas",long:"El Libro de 1 Crónicas"}},"2 Chronicles":{en:{short:"2 Chronicles",long:"The Second Book of Chronicles"},es:{short:"2 Crónicas",long:"El Libro de 2 Crónicas"}},Ezra:{en:{short:"Ezra",long:"The Book of Ezra"},es:{short:"Esdras",long:"El Libro de Esdras"}},Nehemiah:{en:{short:"Nehemiah",long:"The Book of Nehemiah"},es:{short:"Nehemías",long:"El Libro de Nehemías"}},Esther:{en:{short:"Esther",long:"The Book of Esther"},es:{short:"Ester",long:"El Libro de Ester"}},Job:{en:{short:"Job",long:"The Book of Job"},es:{short:"Job",long:"El Libro de Job"}},Psalms:{en:{short:"Psalms",long:"The Psalms"},es:{short:"Salmos",long:"El Libro de Salmos"}},Proverbs:{en:{short:"Proverbs",long:"The Book of Proverbs"},es:{short:"Proverbios",long:"El Libro de Proverbios"}},Ecclesiastes:{en:{short:"Ecclesiastes",long:"The Book of Ecclesiastes"},es:{short:"Eclesiastés",long:"El Libro de Eclesiastés"}},"The Song of Solomon":{en:{short:"The Song of Solomon",long:"The Song of Solomon"},es:{short:"Cantares",long:"El Libro de Cantares"}},Isaiah:{en:{short:"Isaiah",long:"The Book of the Prophet Isaiah"},es:{short:"Isaías",long:"El Libro de Isaías"}},Jeremiah:{en:{short:"Jeremiah",long:"The Book of the Prophet Jeremiah"},es:{short:"Jeremías",long:"El Libro de Jeremías"}},Lamentations:{en:{short:"Lamentations",long:"The Book of Lamentations"},es:{short:"Lamentaciones",long:"El Libro de Lamentaciones"}},Ezekiel:{en:{short:"Ezekiel",long:"The Book of the Prophet Ezekiel"},es:{short:"Ezequiel",long:"El Libro de Ezequiel"}},Daniel:{en:{short:"Daniel",long:"The Book of Daniel"},es:{short:"Daniel",long:"El Libro de Daniel"},"en-CA":{short:"Daniel",long:"The Book of the Prophet Daniel"},iu:{short:"Daniel",long:"The Book of the Prophet Daniel"}},Hosea:{en:{short:"Hosea",long:"The Book of the Prophet Hosea"},es:{short:"Oseas",long:"El Libro de Oseas"}},Joel:{en:{short:"Joel",long:"The Book of the Prophet Joel"},es:{short:"Joel",long:"El Libro de Joel"}},Amos:{en:{short:"Amos",long:"The Book of the Prophet Amos"},es:{short:"Amós",long:"El Libro de Amós"}},Obadiah:{en:{short:"Obadiah",long:"The Book of the Prophet Obadiah"},es:{short:"Abdías",long:"El Libro de Abdías"}},Jonah:{en:{short:"Jonah",long:"The Book of the Prophet Jonah"},es:{short:"Jonás",long:"El Libro de Jonás"}},Micah:{en:{short:"Micah",long:"The Book of the Prophet Micah"},es:{short:"Miqueas",long:"El Libro de Miqueas"}},Nahum:{en:{short:"Nahum",long:"The Book of the Prophet Nahum"},es:{short:"Nahúm",long:"El Libro de Nahúm"}},Habakkuk:{en:{short:"Habakkuk",long:"The Book of the Prophet Habakkuk"},es:{short:"Habacuc",long:"El Libro de Habacuc"}},Zephaniah:{en:{short:"Zephaniah",long:"The Book of the Prophet Zephaniah"},es:{short:"Sofonías",long:"El Libro de Sofonías"}},Haggai:{en:{short:"Haggai",long:"The Book of the Prophet Haggai"},es:{short:"Hageo",long:"El Libro de Hageo"}},Zechariah:{en:{short:"Zechariah",long:"The Book of the Prophet Zechariah"},es:{short:"Zacarías",long:"El Libro de Zacarías"}},Malachi:{en:{short:"Malachi",long:"The Book of the Prophet Malachi"},es:{short:"Malaquías",long:"El Libro de Malaquías"}},Tobit:{en:{short:"Tobit",long:"The Book of Tobit"},es:{short:"Tobías",long:"El Libro de Tobías"}},Azariah:{en:{short:"The Song of the Three Children",long:"The Song of the Three Children"},es:{short:"El Himno de los tres jóvenes ",long:"El Himno de los tres jóvenes "}},Judith:{en:{short:"Judith",long:"The Book of Judith"},es:{short:"Judit",long:"El Libro de Judit"}},Baruch:{en:{short:"Baruch",long:"The Book of Baruch"},es:{short:"Baruc",long:"El Libro de Baruc"}},"1 Maccabees":{en:{short:"1 Maccabees",long:"The First Book of Maccabees"},es:{short:"1 Macabeos",long:"El Libro 1 de los Macabeos"}},"2 Maccabees":{en:{short:"2 Maccabees",long:"The Second Book of Maccabees"},es:{short:"2 Macabeos",long:"El Libro 2 de los Macabeos"}},Wisdom:{en:{short:"Wisdom",long:"The Wisdom of Solomon"},es:{short:"Sabiduría",long:"El Libro de la Sabiduría"}},Sirach:{en:{short:"Sirach",long:"The Wisdom of Ben Sira"},es:{short:"Eclesiástico",long:"La Sabiduría de Jesús ben Sirá"},"en-CA":{short:"Sirach",long:"The Book of Ecclesiasticus"},iu:{short:"Sirach",long:"The Book of Ecclesiasticus"}},Matthew:{en:{short:"Matthew",long:"The Gospel According to Matthew"},es:{short:"Mateo",long:"El Evangelio de San Mateo"},"en-CA":{short:"Matthew",long:"The Gospel According to St. Matthew"},iu:{short:"Matthew",long:"The Gospel According to St. Matthew"}},Mark:{en:{short:"Mark",long:"The Gospel According to Mark"},es:{short:"Marcos",long:"El Evangelio de San Marcos"},"en-CA":{short:"Mark",long:"The Gospel According to St. Mark"},iu:{short:"Mark",long:"The Gospel According to St. Mark"}},Luke:{en:{short:"Luke",long:"The Gospel According to Luke"},es:{short:"Lucas",long:"El Evangelio de San Mateo"},"en-CA":{short:"Luke",long:"The Gospel According to St. Luke"},iu:{short:"Luke",long:"The Gospel According to St. Luke"}},John:{en:{short:"John",long:"The Gospel According to John"},es:{short:"Juan",long:"El Evangelio de San Juan"},"en-CA":{short:"John",long:"The Gospel According to St. John"},iu:{short:"John",long:"The Gospel According to St. John"}},Acts:{en:{short:"Acts",long:"The Acts of the Apostles"},es:{short:"Hechos",long:"Los Hechos de los Apóstoles"},"en-CA":{short:"Acts",long:"The Book of the Acts of the Apostles"},iu:{short:"Acts",long:"The Book of the Acts of the Apostles"}},Romans:{en:{short:"Romans",long:"The Letter to the Romans"},es:{short:"Romanos",long:"La Epístola a los Romanos"},"en-CA":{short:"Romans",long:"The Epistle of St. Paul the Apostle to the Romans"},iu:{short:"Romans",long:"The Epistle of St. Paul the Apostle to the Romans"}},"1 Corinthians":{en:{short:"1 Corinthians",long:"The First Letter to the Corinthians"},es:{short:"1 Corintios",long:"La Primera Epístola a los Corintios"},"en-CA":{short:"1 Corinthians",long:"The First Epistle of St. Paul the Apostle to the Corinthians"},iu:{short:"1 Corinthians",long:"The First Epistle of St. Paul the Apostle to the Corinthians"}},"2 Corinthians":{en:{short:"2 Corinthians",long:"The Second Letter to the Corinthians"},es:{short:"2 Corintios",long:"La Segunda Epístola a los Corintios"},"en-CA":{short:"2 Corinthians",long:"The Second Epistle of St. Paul the Apostle to the Corinthians"},iu:{short:"2 Corinthians",long:"The Second Epistle of St. Paul the Apostle to the Corinthians"}},Galatians:{en:{short:"Galatians",long:"The Letter to the Galatians"},es:{short:"Gálatas",long:"La Epístola a los Gálatas"},"en-CA":{short:"Galatians",long:"The Epistle of St. Paul the Apostle to the Galatians"},iu:{short:"Galatians",long:"The Epistle of St. Paul the Apostle to the Galatians"}},Ephesians:{en:{short:"Ephesians",long:"The Letter to the Ephesians"},es:{short:"Efesios",long:"La Epístola a los Efesios"},"en-CA":{short:"Ephesians",long:"The Epistle of St. Paul the Apostle to the Ephesians"},iu:{short:"Ephesians",long:"The Epistle of St. Paul the Apostle to the Ephesians"}},Philippians:{en:{short:"Philippians",long:"The Letter to the Philippians"},es:{short:"Filipenses",long:"La Epístola a los Filipenses"},"en-CA":{short:"Philippians",long:"The Epistle of St. Paul the Apostle to the Philippians"},iu:{short:"Philippians",long:"The Epistle of St. Paul the Apostle to the Philippians"}},Colossians:{en:{short:"Colossians",long:"The Letter to the Colossians"},es:{short:"Colosenses",long:"La Epístola a los Colosenses"},"en-CA":{short:"Colossians",long:"The Epistle of St. Paul the Apostle to the Colossians"},iu:{short:"Colossians",long:"The Epistle of St. Paul the Apostle to the Colossians"}},"1 Thessalonians":{en:{short:"1 Thessalonians",long:"The First Letter to the Thessalonians"},es:{short:"1 Tesalonicenses",long:"La Primera Epístola a los Tesalonicenses"},"en-CA":{short:"1 Thessalonians",long:"The First Epistle of St. Paul the Apostle to the Thessalonians"},iu:{short:"1 Thessalonians",long:"The First Epistle of St. Paul the Apostle to the Thessalonians"}},"2 Thessalonians":{en:{short:"2 Thessalonians",long:"The Second Letter to the Thessalonians"},es:{short:"2 Tesalonicenses",long:"La Segunda Epístola a los Tesalonicenses"},"en-CA":{short:"2 Thessalonians",long:"The Second Epistle of St. Paul the Apostle to the Thessalonians"},iu:{short:"2 Thessalonians",long:"The Second Epistle of St. Paul the Apostle to the Thessalonians"}},"1 Timothy":{en:{short:"1 Timothy",long:"The First Letter to Timothy"},es:{short:"1 Timoteo",long:"La Primera Epístola a Timoteo"},"en-CA":{short:"1 Timothy",long:"The First Epistle of St. Paul the Apostle to Timothy"},iu:{short:"1 Timothy",long:"The First Epistle of St. Paul the Apostle to Timothy"}},"2 Timothy":{en:{short:"2 Timothy",long:"The Second Letter to Timothy"},es:{short:"2 Timoteo",long:"La Segunda Epístola a Timoteo"},"en-CA":{short:"2 Timothy",long:"The Second Epistle of St. Paul the Apostle to Timothy"},iu:{short:"2 Timothy",long:"The Second Epistle of St. Paul the Apostle to Timothy"}},Titus:{en:{short:"Titus",long:"The Letter to Titus"},es:{short:"Tito",long:"La Epístola a Tito"},"en-CA":{short:"Titus",long:"The Epistle of St. Paul the Apostle to Titus"},iu:{short:"Titus",long:"The Epistle of St. Paul the Apostle to Titus"}},Philemon:{en:{short:"Philemon",long:"The Letter to Philemon"},es:{short:"Filemón",long:"La Epístola a Filemón"},"en-CA":{short:"Philemon",long:"The Epistle of St. Paul the Apostle to Philemon"},iu:{short:"Philemon",long:"The Epistle of St. Paul the Apostle to Philemon"}},Hebrews:{en:{short:"Hebrews",long:"The Book of Hebrews"},es:{short:"Hebrews",long:"La Epístola a los Hebreos"},"en-CA":{short:"Hebrews",long:"The Epistle to the Hebrews"},iu:{short:"Hebrews",long:"The Epistle to the Hebrews"}},James:{en:{short:"James",long:"The Letter of James"},es:{short:"Santiago",long:"La Epístola de Santiago"},"en-CA":{short:"James",long:"The Epistle General of St. James"},iu:{short:"James",long:"The Epistle General of St. James"}},"1 Peter":{en:{short:"1 Peter",long:"The First Letter of Peter"},es:{short:"1 Pedro",long:"La Primera Epístola de Pedro"},"en-CA":{short:"1 Peter",long:"The First Epistle General of St. Peter"},iu:{short:"1 Peter",long:"The First Epistle General of St. Peter"}},"2 Peter":{en:{short:"2 Peter",long:"The Second Letter of Peter"},es:{short:"2 Pedro",long:"La Segunda Epístola de Pedro"},"en-CA":{short:"2 Peter",long:"The Second Epistle General of St. Peter"},iu:{short:"2 Peter",long:"The Second Epistle General of St. Peter"}},"1 John":{en:{short:"1 John",long:"The First Letter of John"},es:{short:"1 Juan",long:"La Primera Epístola de Juan"},"en-CA":{short:"2 John",long:"The First Epistle General of St. John"},iu:{short:"2 John",long:"The First Epistle General of St. John"}},"2 John":{en:{short:"2 John",long:"The Second Letter of John"},es:{short:"1 Juan",long:"La Segunda Epístola de Juan"},"en-CA":{short:"2 John",long:"The Second Epistle General of St. John"},iu:{short:"2 John",long:"The Second Epistle General of St. John"}},"3 John":{en:{short:"3 John",long:"The Third Letter of John"},es:{short:"1 Juan",long:"La Tercera Epístola de Juan"},"en-CA":{short:"3 John",long:"The Third Epistle General of St. John"},iu:{short:"3 John",long:"The Third Epistle General of St. John"}},Jude:{en:{short:"Jude",long:"The Letter of Jude"},es:{short:"Judas",long:"La Epístola de Judas"},"en-CA":{short:"Jude",long:"The Epistle General of St. Jude"},iu:{short:"Jude",long:"The Epistle General of St. Jude"}},Revelation:{en:{short:"Revelation",long:"The Book of Revelation"},es:{short:"Apocalipsis",long:"El Apocalipsis de San Juan"},"en-CA":{short:"Revelation",long:"The Revelation to St. John the Divine"},iu:{short:"Revelation",long:"The Revelation to St. John the Divine"}},"1 Esdras":{en:{short:"1 Esdras",long:"The Second Book of Esdras"},es:{short:"1 Esdras",long:"1 Esdras"}},"2 Esdras":{en:{short:"2 Esdras",long:"The Second Book of Esdras"},es:{short:"2 Esdras",long:"2 Esdras"}},Bel:{en:{short:"Bel",long:"Bel and the Dragon"},es:{short:"Bel",long:"La Historia de Bel y el Dragón"}},"Letter of Jeremiah":{en:{short:"Letter of Jeremiah",long:"The Letter of Jeremiah"},es:{short:"Letter of Jeremiah",long:"La Epístola de Jeremías"}}};function t(e){var o=e%10,s=e%100;return 1==o&&11!=s?e+"st":2==o&&12!=s?e+"nd":3==o&&13!=s?e+"rd":e+"th"}const a=["long","short"];class n extends e{constructor(e={}){super(e)}compileIntro(){var o,s,a,n;if(this.metadata&&this.metadata.intro){const h=null!==(o=this.abbrevFromCitation())&&void 0!==o?o:this.citation,l=this.bookCodeFromAbbrev(null!=h?h:""),i=h?this.longNameFromBookCode(null!=l?l:"",this.language||"en"):"—",r=h?this.shortNameFromBookCode(null!=l?l:"",this.language||"en"):"—",g=this.chapterFromCitation(),m=this.verseFromCitation(),c=new Array,u=e=>e.replace(/\$\{longName\}/g,(null!=i?i:h).replace("The","the")).replace(/\$\{shortName\}/g,null!=r?r:h).replace(/\$\{chapter\}/g,`${t(Number(g)||1)}`).replace(/\$\{verse\}/g,`${t(Number(m)||1)}`).replace("de El","del").replace("de La","de la");null===(n=null===(a=null===(s=this.metadata)||void 0===s?void 0:s.intro)||void 0===a?void 0:a.value)||void 0===n||n.forEach((e=>{"string"==typeof e?c.push(u(e)):e.hasOwnProperty("text")?c.push(Object.assign(Object.assign({},e),{text:u(e.text)})):c.push(u(e))})),this.metadata.compiled_intro=new e(Object.assign(Object.assign({},this.metadata.intro),{value:c}))}}abbrevFromCitation(){let e;try{const o=(this.citation||"").match(/(\d*\s*[a-zA-Z]+)/);e=o?o[0]:""}catch(o){e=this.citation}return e.replace(/\./g,"")}chapterFromCitation(){var e;const o=null===(e=(this.citation||"").split(";")[0])||void 0===e?void 0:e.match(/[\s\.:](\d+)/g);if(o){const[e]=o;return"string"==typeof e?e.trim().replace(/[\.,:]/g,""):void 0}}verseFromCitation(){var e;const o=null===(e=(this.citation||"").split(";")[0])||void 0===e?void 0:e.match(/[\s\.:](\d+)/g);if(o){const[,e]=o;return"string"==typeof e?e.trim().replace(/[\.,:]/g,""):void 0}}bookCodeFromAbbrev(e){if(e){const s=e.replace(/\./g,""),t=o.find((e=>e.name==s||e.aliases.includes(s)||e.name.includes(s)));return t?t.name:e}}longNameFromBookCode(e,o="en"){const t=this.bookCodeFromAbbrev(e);if(t){const a=s[t];let n=(a||{})[o];return n||(n=(a||{}).en),n?n.long:e}}shortNameFromBookCode(e,o="en"){var t;const a=(s[null!==(t=this.bookCodeFromAbbrev(e))&&void 0!==t?t:""]||{})[o];return a?a.short:e}availableStyles(){return a}availableDisplayFormats(){return["default","omit"]}}class h extends e{availableDisplayFormats(){return[]}}class l extends e{constructor(e={}){super(e)}}const i=["psalm","canticle","invitatory"];class r extends e{constructor(e={}){super(e)}filteredVerses(){let e=new Array;if(this.citation&&(this.citation.match(/Ps[^\s]*\s*\d+/)||""==this.citation)){const o=this.versesInCitation(this.citation);0==o.length?e=this.value:(this.value||[]).forEach((s=>{const t=new Array;(s.value||[]).forEach((e=>{!e.number||o.includes(e.number)?t.push(e):o.includes(`[${e.number}`)?t.push(Object.assign(Object.assign({},e),{verse:"["+e.verse})):o.includes(`${e.number}]`)?t.push(Object.assign(Object.assign({},e),{halfverse:e.halfverse+"]"})):o.includes(`[${e.number}]`)&&t.push(Object.assign(Object.assign({},e),{verse:"["+e.verse,halfverse:e.halfverse+"]"}))})),e.push(Object.assign(Object.assign({},s),{value:t}))}))}else e=this.value;return e}versesInCitation(e){function o(e,o,s){return e&&o?"["+s+"]":e?"["+s:o?s+"]":s}const s=e.replace(/Ps[\w\.]*\s*/g,"").split(/\s*([\[\]\(\),:\s])\s*/).slice(1);let t=new Array,a=!1,n=!1;return(s||[]).forEach(((e,h)=>{"["!==e&&"("!==e||(a=!0),"]"!==s[h+1]&&")"!==s[h+1]||(n=!0);const[l,i]=e.replace(/[^\d-s–]/g,"").split(/-|–/);if(l&&i){const e=n;for(let s=parseInt(l);s<=parseInt(i);s++)n=e&&s==parseInt(i),t.push(o(a,n,s.toString())),a=!1}else l&&(t.push(o(a,n,l)),a=!1),n=!1})),t}includeAntiphon(){const e=this.metadata||{};return!!e.antiphon&&!e.omit_antiphon;
|
|
2
|
+
//!(this.style == 'canticle' && !metadata.omit_gloria);
|
|
3
|
+
}repeatAntiphon(e,o=0){const s=this.metadata||{};return 0==o&&(o=this.filteredVerses().length),this.includeAntiphon()&&!(s.omit_gloria&&e==o-1)}availableStyles(){return i}availableDisplayFormats(){return["default","omit","unison","wholeverse","halfverse"]}}const g=["preces","litany","responsive"];class m extends e{constructor(e={}){super(e)}availableStyles(){return g}availableDisplayFormats(){return[]}}class c extends e{constructor(e={}){super(e)}availableDisplayFormats(){return[]}}export{n as B,h as L,l as M,r as P,m as R,c as a}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{L as e}from"./p-4aa9a6f2.js";function i(e){return"string"==typeof e?e:JSON.stringify(e)}const l={ip:"IP",bcp1979:"Rite II",bcp1979_psalm:"1979",eow:"EOW",coverdale:"Coverdale",rite_i:"Rite I",bhs:"Hebrew",hebrew:"Hebrew"};function s(e){return"psalm"===e.type&&"psalm"===e.style&&"bcp1979"===e.version?"bcp1979_psalm":e.version}class t extends e{constructor(e={}){super(e)}availableDisplayFormats(){return[]}uniqueVersions(){return(this.value||[]).map((e=>i(e.version))).reduce(((e,i)=>e.includes(i)?e:[...e,i]),[]).length}uniqueLabels(){return(this.value||[]).map((e=>e.label)).reduce(((e,i)=>e.includes(i)?e:[...e,i]),[]).length}uniqueCitations(){return(this.value||[]).map((e=>e.citation?e.citation.toString():"")).filter((e=>!!e)).reduce(((e,i)=>e.includes(i)?e:[...e,i]),[]).length}uniqueCanticleNumbers(){return Array.from(new Set((this.value||[]).map((e=>{var i;return"canticle"===e.style?null===(i=e.metadata)||void 0===i?void 0:i.number:e.slug||Math.random()})))).length}getVersionLabel(e,t=50){var r,a,n;const o=this.uniqueVersions(),u=this.uniqueLabels(),f=this.uniqueCitations(),b=this.uniqueCanticleNumbers();let p="";if(e.version_label)p=e.version_label;else if("liturgy"==e.type)p=e.label||e.version_label||"Option";else if("psalm"==e.type&&1==o&&e.label&&((null===(r=e.slug)||void 0===r?void 0:r.match(/psalm_119_/))||(null===(a=e.citation)||void 0===a?void 0:a.toString().match(/Ps[^\d]+119/))))p=e.label;else if("psalm"==e.type&&o>1)p=e.version_label||l[i(e.version)];else if("psalm"==e.type&&"psalm"==e.style&&(e.citation||(null===(n=e.metadata)||void 0===n?void 0:n.number))&&1==o)p=e.citation?e.citation.toString():`Psalm ${e.metadata.number}`;else if("bible-reading"==e.type&&f>1&&e.citation&&e.value&&e.value.length>0){const i=e.value.map((e=>e.hasOwnProperty("text")?e.text:e.toString())).join(" "),l="short"==e.style?` (“${i}”)`:"";p=o>1?`${e.citation.toString()} (${e.version})${l}`:`${e.citation.toString()}${l}`}else if("bible-reading"==e.type&&1==f)p=i(e.version);else if("bible-reading"==e.type&&e.citation&&1==o)p=e.citation.toString();else if("bible-reading"==e.type&&e.citation&&o>1)p=`${e.citation.toString()} (${i(e.version)})`;else if(1==o&&"psalm"==e.type&&"canticle"==e.style&&e.metadata&&e.metadata.localname)p=e.metadata.localname;else if(o>1&&1===b)p=l[i(s(e))];else if(o>1&&e.metadata&&e.metadata.hasOwnProperty("localname")&&e.version)p=`${e.metadata.localname} (${l[i(s(e))]})`;else if(e.version_label&&"bcp1979"!==e.version_label)p=e.version_label;else if(e.label&&u>1&&1==o)p=e.label;else if(e.label&&u>1&&o>1)p=`${e.label} (${l[i(s(e))]})`;else if(!e.metadata||!e.metadata.hasOwnProperty("localname")||e.version_label&&"bcp1979"!=e.version_label)if(o>1&&e.version)p=l[i(s(e))];else if(e.citation)p=e.citation.toString();else{if(!e.value)throw`Unable to generate a label from ${JSON.stringify(e)}`;p=`“${JSON.stringify(e.value).replace(/[\[\]\{\}\"\'\:]/g," ").replace(/\\n/g," ").trim()}”`}else p=e.metadata.localname;return p.length>t?p.substring(0,t)+"...":p}}export{t as O,i as v}
|
|
@@ -6,6 +6,8 @@ export declare class TextComponent {
|
|
|
6
6
|
localeStrings: {
|
|
7
7
|
[x: string]: string;
|
|
8
8
|
};
|
|
9
|
+
intentions: string[];
|
|
10
|
+
setPrayerList(intentions: string[]): Promise<void>;
|
|
9
11
|
/**
|
|
10
12
|
* An LDF Text object.
|
|
11
13
|
*/
|
|
@@ -21,6 +23,8 @@ export declare class TextComponent {
|
|
|
21
23
|
editable: boolean;
|
|
22
24
|
/** Used to add Prayers and Thanksgivings */
|
|
23
25
|
ldfDocShouldChange: EventEmitter<Change>;
|
|
26
|
+
/** Request prayer list for Prayers and Thanksgivings */
|
|
27
|
+
ldfAskForPrayerList: EventEmitter<boolean>;
|
|
24
28
|
componentWillLoad(): Promise<void>;
|
|
25
29
|
loadLocaleStrings(): Promise<void>;
|
|
26
30
|
truncate(s: string, last?: boolean, words?: number): string;
|
|
@@ -636,6 +636,7 @@ export namespace Components {
|
|
|
636
636
|
* A JSON Pointer that points to the Text being edited
|
|
637
637
|
*/
|
|
638
638
|
"path": string;
|
|
639
|
+
"setPrayerList": (intentions: string[]) => Promise<void>;
|
|
639
640
|
}
|
|
640
641
|
}
|
|
641
642
|
declare global {
|
|
@@ -1557,6 +1558,10 @@ declare namespace LocalJSX {
|
|
|
1557
1558
|
* Whether the object is editable
|
|
1558
1559
|
*/
|
|
1559
1560
|
"editable"?: boolean;
|
|
1561
|
+
/**
|
|
1562
|
+
* Request prayer list for Prayers and Thanksgivings
|
|
1563
|
+
*/
|
|
1564
|
+
"onLdfAskForPrayerList"?: (event: CustomEvent<boolean>) => void;
|
|
1560
1565
|
/**
|
|
1561
1566
|
* Used to add Prayers and Thanksgivings
|
|
1562
1567
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venite/components",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.19",
|
|
4
4
|
"description": "Rendering components for the Venite.app Liturgical Document Format (LDF)",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@ionic/core": "^5.1.0",
|
|
44
|
-
"@venite/ldf": "^0.21.
|
|
44
|
+
"@venite/ldf": "^0.21.17",
|
|
45
45
|
"diff-match-patch": "^1.0.4",
|
|
46
46
|
"query-selector-shadow-dom": "^0.4.6",
|
|
47
47
|
"showdown": "^1.9.1",
|
package/dist/ldf/p-3755f069.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as e,P as r,B as s,R as a,a as n,L as t}from"./p-883425cd.js";import{H as i}from"./p-a1729dbd.js";import{O as o}from"./p-9155f066.js";import{R as c}from"./p-5b43e6be.js";import{T as u}from"./p-65d26c45.js";function p(p){switch(p.type){case"liturgy":return new t(p);case"heading":return new i(p);case"option":return new o(p);case"refrain":return new c(p);case"rubric":return new n(p);case"text":return new u(p);case"responsive":return new a(p);case"bible-reading":return new s(p);case"psalm":return new r(p);case"meditation":return new e(p);default:return p}}export{p as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t,H as n,a,c as o}from"./p-978e2c6d.js";import{d as r,a as i}from"./p-4aa9a6f2.js";import{T as s}from"./p-65d26c45.js";import{g as l}from"./p-0491d1d2.js";import{H as d}from"./p-a1729dbd.js";import{c,a as u}from"./p-3e8ff66b.js";import{m as f}from"./p-d7f8c770.js";import"./p-d282d4f9.js";import"./p-f3a0c163.js";class h{constructor(e={}){this.evening=!1,Object.assign(this,e)}getDate(){return r(this.date)}addHolyDays(e){var t,n,a,o;const r=this;e=e.filter((e=>!e.eve||this.evening)).filter((e=>e.stops_at_sunday!==r.week.slug)).map((e=>e.hasOwnProperty("evening")&&1==this.evening?e.evening:e.hasOwnProperty("morning")&&0==this.evening?e.morning:e)).filter((e=>!!e));const i=this.observedDay(this,(this.holy_days||new Array).concat(e)),s=Number(null===(n=null===(t=i)||void 0===t?void 0:t.type)||void 0===n?void 0:n.rank),l=(null==i?void 0:i.slug)&&((null==i?void 0:i.slug)!==r.slug||s>2),d=l&&s>2?i.slug:r.slug;let c=this.propers;d!==this.slug&&(c=d);const u=i.color||this.color,f=i.collect||this.collect,g=i.season||this.season,_=null===(o=null===(a=this.holy_days||[])||void 0===a?void 0:a.concat(e))||void 0===o?void 0:o.map((e=>e.octave)).filter((e=>Boolean(e))).reduce(((e,t)=>e||t||e),void 0);return new h(Object.assign(Object.assign({},this),{slug:d,propers:l&&s>2?(null==i?void 0:i.propers)||(null==i?void 0:i.slug):c,color:u,season:g,octave:_,collect:f,holy_days:(this.holy_days||new Array).concat(e),holy_day_observed:l?i:this.holy_day_observed}))}observedDay(e,t){function n(t,n){var a;return"holyday"==n?(null===(a=null==t?void 0:t.type)||void 0===a?void 0:a.rank)||2:0==(e.date?r(e.date):i(new Date)).getDay()?4:1}const a=t.map((e=>({rank:n(e,"holyday"),obj:e}))).concat({rank:n(e,"weekday"),obj:e}).sort(((t,n)=>{if(t.rank===n.rank&&t.obj.mmdd&&n.obj.mmdd){const[a,o]=n.obj.mmdd.split("/"),[r,i]=t.obj.mmdd.split("/"),s=new Date,l=new Date;return s.setMonth(parseInt(a)-1),s.setDate(parseInt(o)),l.setMonth(parseInt(r)-1),l.setDate(parseInt(i)),t.obj.mmdd===n.obj.mmdd&&t.obj.kalendar!==n.obj.kalendar?t.obj.kalendar===e.kalendar?-1:1:l.getTime()-s.getTime()}return n.rank-t.rank}));return Object.assign({},a[0].obj)}isFeast(){var e,t,n,a;const o=0===this.getDate().getDay(),r=((null===(t=null===(e=this.holy_day_observed)||void 0===e?void 0:e.type)||void 0===t?void 0:t.rank)||1)>=3,i=null===(n=this.slug)||void 0===n?void 0:n.includes("holy-week"),s="easter"===(null===(a=this.week)||void 0===a?void 0:a.slug);return o||r&&!i&&!s}}class g{constructor(e={}){this.api="https://www.venite.app/api",Object.assign(this,e)}toString(e=!1){return e?this.citation:`${this.source} ${this.citation}`}}const _={en:{after:" after ",the:" the "}},m=class{constructor(t){e(this,t)}dayChange(e){let t;try{t=new h("string"==typeof e?JSON.parse(e):e)}catch(e){console.warn("(ldf-day-name)",e),t=new h}this.obj=t||new h}componentWillLoad(){this.loadLocaleStrings(),this.dayChange(this.day)}async loadLocaleStrings(){try{this.localeStrings=_[l(this.el)]}catch(e){console.warn(e)}}dayToNodes(e,n){var a,o,i,l,d,c,u,f,h,g,_;if((null===(a=null==e?void 0:e.holy_day_observed)||void 0===a?void 0:a.name)&&(null===(i=null===(o=null==e?void 0:e.holy_day_observed)||void 0===o?void 0:o.type)||void 0===i?void 0:i.rank)>=3)return e.holy_day_observed.bio?t("details",null,t("summary",null,e.holy_day_observed.name),t("ldf-text",{doc:new s({type:"text",style:"text",value:e.holy_day_observed.bio})})):[t("p",{class:"holy-day-name"},null===(l=null==e?void 0:e.holy_day_observed)||void 0===l?void 0:l.name),(null===(d=null==e?void 0:e.holy_day_observed)||void 0===d?void 0:d.subtitle)?t("p",{class:"holy-day-subtitle"},e.holy_day_observed.subtitle):void 0];{const t=r(null==e?void 0:e.date),a=(null===(u=null===(c=this.el)||void 0===c?void 0:c.closest("[lang]"))||void 0===u?void 0:u.lang)||"en";if(0==t.getDay()){const t=n.the||" the ";return[(null===(f=null==e?void 0:e.week)||void 0===f?void 0:f.omit_the)?"":` ${t[1].toUpperCase()}${t.slice(2,n.the.length)} `,,null===(h=null==e?void 0:e.week)||void 0===h?void 0:h.name]}return[t.toLocaleDateString(a,{weekday:"long"}),n.after||" after the ",(null===(g=null==e?void 0:e.week)||void 0===g?void 0:g.omit_the)?"":n.the,null===(_=null==e?void 0:e.week)||void 0===_?void 0:_.name]}}render(){var e,a,o,r,i,s,l;const d="string"!=typeof(null===(e=this.obj)||void 0===e?void 0:e.color)&&(null===(o=null===(a=this.obj)||void 0===a?void 0:a.color)||void 0===o?void 0:o.image)||this.obj.image||(null===(r=this.obj.holy_day_observed)||void 0===r?void 0:r.image),c="string"!=typeof(null===(i=this.obj)||void 0===i?void 0:i.color)&&(null===(l=null===(s=this.obj)||void 0===s?void 0:s.color)||void 0===l?void 0:l.imageUrl)||this.obj.imageURL||this.obj.imageUrl;return t(n,null,this.localeStrings&&this.dayToNodes(this.obj,this.localeStrings),d&&c&&t("a",{href:c,target:"_system"},t("img",{class:"icon",src:d})),d&&!c&&t("img",{class:"icon",src:d}))}get el(){return a(this)}static get watchers(){return{day:["dayChange"]}}};m.style=".icon.sc-ldf-day-name{display:var(--ldf-icon-display, none);margin:1em auto;width:400px;max-width:90%}.holy-day-name.sc-ldf-day-name{font-style:var(--ldf-holy-day-name-font-style);font-weight:var(--ldf-holy-day-name-font-weight);font-size:var(--ldf-holy-day-name-font-size)}.holy-day-subtitle.sc-ldf-day-name{font-style:var(--ldf-holy-day-subtitle-font-style);font-weight:var(--ldf-holy-day-subtitle-font-weight);font-size:var(--ldf-holy-day-subtitle-font-size)}";const p=({uidOrSlug:e,path:n,text:a,index:o,bodyText:r})=>t("ldf-editable-text",{class:{"body-text":r},id:`${e}-heading-${o}`,text:a,path:`${n}/value/${o}`,short:!0,inputType:"text"}),b={en:{date:"The Date of the Liturgy",day:"The Name of the Liturgical Day"}},w=class{constructor(t){e(this,t)}docChanged(e){try{this.obj=new d("string"==typeof e?JSON.parse(e):e)}catch(e){console.warn("HEADING ERROR",e),this.obj=new d}}componentWillLoad(){this.docChanged(this.doc),this.loadLocaleStrings()}async loadLocaleStrings(){try{this.localeStrings=b[l(this.element)]}catch(e){console.warn(e)}}headerNode(e,n,a=!0){let o;switch(e){case 1:o=t("h1",null,n);break;case 2:o=t("h2",null,n);break;case 3:o=t("h3",{slot:"start"},n);break;case 4:o=t("h4",{slot:"start"},n);break;case 5:o=t("h5",{slot:"start"},n);break;default:o=t("h6",null,n)}return a&&o}textNode(e,n,a){return this.editable?t(p,{uidOrSlug:this.obj.uid||this.obj.slug||"",path:this.path,text:e,index:n,bodyText:Boolean(a)}):t("ldf-string",{text:e,fragment:this.path})}dateNode(){var e,n,a,o,i,s;if(null===(n=null===(e=this.obj)||void 0===e?void 0:e.day)||void 0===n?void 0:n.date){const e=r(null===(o=null===(a=this.obj)||void 0===a?void 0:a.day)||void 0===o?void 0:o.date),n=(null===(s=null===(i=this.element)||void 0===i?void 0:i.closest("[lang]"))||void 0===s?void 0:s.lang)||"en";return t("div",{class:"date"},e.toLocaleDateString(n,{year:"numeric",month:"long",day:"numeric"}))}return[]}citationNode(e,n="end"){return t("div",{class:"citation",slot:n},this.editable?t("ldf-editable-text",{id:`${this.obj.uid||this.obj.slug}-citation`,text:e,path:`${this.path}/citation`}):e)}sourceNode(e){const n=new g(e).toString().replace("bcp1979","BCP");return t("div",{slot:"end",class:"source"},this.editable?[t("ldf-editable-text",{id:`${this.obj.uid||this.obj.slug}-source-source`,text:null==e?void 0:e.source,path:`${this.path}/source/source`}),t("ldf-editable-text",{id:`${this.obj.uid||this.obj.slug}-source-citation`,text:null==e?void 0:e.citation,path:`${this.path}/source/citation`})]:n)}render(){var e,a,o,r,i,l,d,c,u,f,h,g,_,m,p,b,w,v,k,y,x,z;const j=this.localeStrings||{},S=this.obj.metadata?this.obj.metadata.level:4,M=Boolean(null===(e=this.obj)||void 0===e?void 0:e.citation),$=Boolean(null===(a=this.obj)||void 0===a?void 0:a.source),E="date"==(null===(o=this.obj)||void 0===o?void 0:o.style),A="day"==(null===(r=this.obj)||void 0===r?void 0:r.style),T=null==(null===(i=this.obj)||void 0===i?void 0:i.style)||"text"==(null===(l=this.obj)||void 0===l?void 0:l.style)||!E&&!A;return t(n,{lang:(null===(d=this.obj)||void 0===d?void 0:d.language)||"en"},this.editable&&t("ldf-label-bar",null,t("slot",{slot:"end",name:"controls"})),t("ldf-label-bar",{center:(null===(u=null===(c=this.obj)||void 0===c?void 0:c.metadata)||void 0===u?void 0:u.level)<=2,class:{text:T&&((null===(f=null==this?void 0:this.obj)||void 0===f?void 0:f.value)||[]).filter((e=>Boolean(e))).length>0}},T&&(null===(g=null===(h=this.obj)||void 0===h?void 0:h.value)||void 0===g?void 0:g.length)>0&&this.headerNode(S,this.textNode(this.obj.value[0],0),!0),E&&!this.editable&&this.dateNode(),E&&this.editable&&t("code",{class:"lookup"},j.date),A&&!this.editable&&t("div",{class:"date"},t("ldf-day-name",{day:null===(_=this.obj)||void 0===_?void 0:_.day})),A&&!this.editable&&(null===(b=null===(p=null===(m=this.obj)||void 0===m?void 0:m.day)||void 0===p?void 0:p.holy_days)||void 0===b?void 0:b.length)>0&&t("ul",{class:"holy-days"},null===(v=null===(w=this.obj)||void 0===w?void 0:w.day)||void 0===v?void 0:v.holy_days.filter((e=>{var t;return(null===(t=e.type)||void 0===t?void 0:t.rank)<3})).map((e=>t("li",{class:"holy-day"},e.bio?t("details",null,t("summary",null,e.name),t("ldf-text",{doc:new s({type:"text",style:"text",value:e.bio})})):e.name)))),A&&this.editable&&t("code",{class:"lookup"},j.day),(null===(y=null===(k=this.obj)||void 0===k?void 0:k.value)||void 0===y?void 0:y.length)>1&&this.textNode(this.obj.value[1],1),t("slot",{name:"additional"}),t("slot",{name:"citation",slot:"end"},$&&this.sourceNode(this.obj.source),M&&!$&&this.obj.citation!==this.obj.label&&this.obj.citation!==this.obj.value[0]&&this.citationNode(this.obj.citation))),t("div",null,$&&M&&this.obj.citation!==this.obj.label&&this.citationNode(this.obj.citation,"none")),(null===(z=null===(x=this.obj)||void 0===x?void 0:x.value)||void 0===z?void 0:z.length)>2&&this.obj.value.slice(2,this.obj.value.length).map(((e,t)=>this.textNode(e,t+2,!0))))}get element(){return a(this)}static get watchers(){return{doc:["docChanged"]}}};w.style="ldf-heading,:host{font-family:var(--ldf-font-face)}ldf-heading ldf-string,:host ldf-string{display:block}ldf-heading ldf-label-bar.text,:host ldf-label-bar.text{margin-top:var(--ldf-heading-margin-top)}ldf-heading h1,:host h1{text-align:var(--ldf-title-text-align);font-weight:var(--ldf-title-font-weight);font-style:var(--ldf-title-font-style);font-variant:var(--ldf-title-font-variant);font-size:var(--ldf-title-font-size);text-transform:var(--ldf-title-text-transform)}ldf-heading h2,:host h2{text-align:var(--ldf-subtitle-text-align);font-weight:var(--ldf-subtitle-font-weight);font-style:var(--ldf-subtitle-font-style);font-variant:var(--ldf-subtitle-font-variant);font-size:var(--ldf-subtitle-font-size);text-transform:var(--ldf-subtitle-text-transform)}ldf-heading h3,:host h3{text-align:var(--ldf-h3-text-align);font-weight:var(--ldf-h3-font-weight);font-style:var(--ldf-h3-font-style);font-variant:var(--ldf-h3-font-variant);font-size:var(--ldf-h3-font-size);text-transform:var(--ldf-h3-text-transform)}ldf-heading h4,:host h4{text-align:var(--ldf-h4-text-align);font-weight:var(--ldf-h4-font-weight);font-style:var(--ldf-h4-font-style);font-variant:var(--ldf-h4-font-variant);font-size:var(--ldf-h4-font-size);text-transform:var(--ldf-h4-text-transform)}ldf-heading h5,:host h5{text-align:var(--ldf-h5-text-align);font-weight:var(--ldf-h5-font-weight);font-style:var(--ldf-h5-font-style);font-variant:var(--ldf-h5-font-variant);font-size:var(--ldf-h5-font-size);text-transform:var(--ldf-h5-text-transform)}ldf-heading .date,ldf-heading .holy-days,ldf-heading .holy-day,:host .date,:host .holy-days,:host .holy-day{font-size:var(--ldf-date-font-size);text-transform:var(--ldf-date-text-transform);text-align:var(--ldf-date-text-align);font-style:var(--ldf-date-font-style)}ldf-heading .holy-days,:host .holy-days{list-style-type:none;margin:0;padding:0;text-align:center}ldf-heading .holy-day,:host .holy-day{margin:var(--ldf-holy-day-margin);padding:0}.lookup{background-color:var(--ldf-editable-lookup-background-color);color:var(--ldf-editable-lookup-color);border-radius:4px;padding:1em;width:100%}::slotted[slot=citation]{text-align:right;width:100%}.citation{font-style:var(--ldf-heading-citation-font-style, italic);display:var(--ldf-heading-citation-display, block)}.source{width:100%}ldf-editable-text.body-text{display:block;padding-bottom:1em}";const v=class{constructor(t){e(this,t),this.center=!1}render(){return t("div",this.center?{class:"label-bar center"}:{class:"label-bar left"},t("slot",{name:"start"}),t("slot",null),t("slot",{name:"end"}))}};v.style=".label-bar{display:flex;flex-direction:row;flex-wrap:wrap;align-items:baseline;max-width:100%}.label-bar.left{justify-content:flex-start}.label-bar.left slot{display:flex;flex-direction:row;margin-left:0}.label-bar.left slot:first-of-type{margin-left:0;flex-grow:2}.label-bar.left slot:nth-of-type(2){flex-grow:2}.label-bar.left slot:last-of-type{margin-left:auto;text-align:right}.label-bar.left ::slotted[slot=end]{text-align:right}.label-bar.center{justify-content:space-between}.label-bar.center slot{display:block}.label-bar.center slot:nth-child(1){text-align:center}";const k=class{constructor(t){e(this,t),this.ldfStringClicked=o(this,"ldfStringClicked",7),this.dropcap="enabled",this.dropcapMinLength=200,this.replaceTetragrammaton=!0}textChanged(){this.processString()}processString(){const e=this.processEntities(this.text);let t=this.processMarkup(e);this.replaceTetragrammaton&&(t=t.map((e=>"string"==typeof e?this.processTetragrammaton(e):e)).flat()),("force"==this.dropcap||"enabled"==this.dropcap&&(0==this.index||!this.index)&&this.text&&this.text.length>this.dropcapMinLength)&&(t=this.processDropcap(t)),this.processedString=t}processEntities(e){try{const t=document.createElement("textarea");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}catch(t){console.warn(`(processEntities) error while processing "${e}": `,t)}}processMarkup(e){return e.replace(/^([A-Z]{2,})/,(e=>this.maintainCasing(e)?e:e[0]+e.slice(1).toLowerCase())).replace(/([A-Z]{2,})/g,"^$1^").replace(/\[\*/g,"__BRACKET_ASTERISK").split(/([\*\^\%][^\*\^\%]*[\*\^\%])/g).map((e=>"-"==e?"":e.startsWith("*")&&e.endsWith("*")||e.startsWith("%")&&e.endsWith("%")?t("em",null,e.slice(1,e.length-1)):e.startsWith("^")&&e.endsWith("^")?this.maintainCasing(e)?e.replace(/\^/g,""):t("span",{class:"sc"},e[1],e.slice(2,e.length-1).toLowerCase()):e.replace(/__BRACKET_ASTERISK/g,"[*")))}processTetragrammaton(e){if(e){const n={"\n":()=>t("br",null),"’S":()=>"’s","'S":()=>"’s","LORD’S":()=>"LORD’s","LORD'S":()=>"LORD’s",LORD:()=>t("span",{class:"sc"},"Lord"),"Lord GOD":()=>t("span",null,"Lord ",t("span",{class:"sc"},"God")),GOD:()=>t("span",{class:"sc"},"God"),YHWH:()=>t("span",{class:"sc"},"Yhwh"),Yhwh:()=>t("span",{class:"sc"},"Yhwh"),YAHWEH:()=>t("span",{class:"sc"},"Yhwh"),Yahweh:()=>t("span",{class:"sc"},"Yhwh"),"\t":()=>t("span",{class:"tab"}," ")," ":()=>t("span",{class:"half-tab"}," ")};return e.split(/(( )|\n|LORD[\'’]S|[\'’]S|LORD|Lord GOD|GOD|YHWH|YAHWEH|Yhwh|Yahweh|\t)/g).map((e=>n.hasOwnProperty(e)?n[e]():e))}return new Array}maintainCasing(e){if(e){const t=e.replace(/\^/g,"");return!t.split("").map((e=>e>="A"&&e<="Z")).reduce(((e,t)=>e&&t),!0)||Boolean(((null==t?void 0:t.match(/^I+$/))||[])[0])||["IV","V","VI","VII","VIII","IX","X"].includes(t)||"i "==(null==t?void 0:t.toLowerCase())}return!0}processDropcap(e){var n;const a=e[0],o="string"==typeof a?a:"";let r=e;if(o){const a=(o||"").split(/[\s.!?\\]/),i=a?a[0]:"",s=i.length>2?/^ ?([\"\'“”‘’\!\?\[\]\(\)\,\w\u0590-\u05ff\u0370-\u03ff])([\w\u0590-\u05ff\u0370-\u03ff\,]*)/:/^ ?([\"\'“”‘’\!\?\[\]\(\)\,\w\u0590-\u05ff\u0370-\u03ff])([\w\u0590-\u05ff\u0370-\u03ff\,]*[\s.!?]*[\w\u0590-\u05ff\u0370-\u03ff]*)/,l=(null===(n=i[0])||void 0===n?void 0:n.match(/[\"\'“”‘’\!\?\[\]\(\)]/))?/^ ?([\"\'“”‘’\!\?\[\]\(\)\,\w\u0590-\u05ff\u0370-\u03ff]{2})\s*([\w\u0590-\u05ff\u0370-\u03ff]*)/:s,d=1==i.length,c=o.split(l).filter((e=>""!==e)),[u,f,h]=c;r=new Array(t("span",{class:"firstword"},t("span",{class:d?`drop buffered-drop drop-${u}`:`drop drop-${u}`},u),this.maintainCasing(f)?f:null==f?void 0:f.toLowerCase())).concat(h).concat(e.slice(1))}return r}componentWillLoad(){this.processString()}render(){return this.text&&t("span",{onClick:()=>this.ldfStringClicked.emit({target:this.element,text:this.text,citation:this.citation,fragment:this.fragment})},this.processedString)}get element(){return a(this)}static get watchers(){return{text:["textChanged"]}}};k.style='span.sc-ldf-string{font-family:var(--ldf-font-face);font-weight:inherit;font-style:inherit}.tab.sc-ldf-string{display:inline;margin-left:var(--ldf-tab-width)}.half-tab.sc-ldf-string{display:inline;margin-left:var(--ldf-half-tab-width)}.sc.sc-ldf-string{font-variant:small-caps}.drop.sc-ldf-string{font-size:200%}.firstword.sc-ldf-string{font-variant:var(--ldf-drop-firstword-font-variant)}.drop.sc-ldf-string{float:var(--ldf-drop-float);font-family:var(--ldf-drop-font-family);font-size:var(--ldf-drop-font-size);margin-right:var(--ldf-drop-margin-right);margin-top:var(--ldf-drop-margin-top);line-height:var(--ldf-drop-line-height);color:var(--ldf-drop-color)}.buffered-drop.sc-ldf-string{margin-right:var(--ldf-buffered-drop-margin-right)}[dir=rtl].sc-ldf-string-h .drop.sc-ldf-string{float:right;font-family:"Times New Roman"}.drop-J.sc-ldf-string{margin-top:0;line-height:clamp(0.5em, calc(var(--ldf-drop-line-height) + 0.3em), 1em)}.selected.sc-ldf-string{background-color:var(--ldf-selected-background)}.liked.sc-ldf-string{background-color:var(--ldf-liked-background)}';var y=c((function(e){(function(){function t(e){var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var n={};for(var a in t)t.hasOwnProperty(a)&&(n[a]=t[a].defaultValue);return n}var n={},a={},o={},r=t(!0),i="vanilla",s={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:t(!0),allOn:function(){var e=t(!0),n={};for(var a in e)e.hasOwnProperty(a)&&(n[a]=!0);return n}()};function l(e,t){var a=t?"Error in "+t+" extension->":"Error in unnamed extension",o={valid:!0,error:""};n.helper.isArray(e)||(e=[e]);for(var r=0;r<e.length;++r){var i=a+" sub-extension "+r+": ",s=e[r];if("object"!=typeof s)return o.valid=!1,o.error=i+"must be an object, but "+typeof s+" given",o;if(!n.helper.isString(s.type))return o.valid=!1,o.error=i+'property "type" must be a string, but '+typeof s.type+" given",o;var l=s.type=s.type.toLowerCase();if("language"===l&&(l=s.type="lang"),"html"===l&&(l=s.type="output"),"lang"!==l&&"output"!==l&&"listener"!==l)return o.valid=!1,o.error=i+"type "+l+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',o;if("listener"===l){if(n.helper.isUndefined(s.listeners))return o.valid=!1,o.error=i+'. Extensions of type "listener" must have a property called "listeners"',o}else if(n.helper.isUndefined(s.filter)&&n.helper.isUndefined(s.regex))return o.valid=!1,o.error=i+l+' extensions must define either a "regex" property or a "filter" method',o;if(s.listeners){if("object"!=typeof s.listeners)return o.valid=!1,o.error=i+'"listeners" property must be an object but '+typeof s.listeners+" given",o;for(var d in s.listeners)if(s.listeners.hasOwnProperty(d)&&"function"!=typeof s.listeners[d])return o.valid=!1,o.error=i+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+d+" must be a function but "+typeof s.listeners[d]+" given",o}if(s.filter){if("function"!=typeof s.filter)return o.valid=!1,o.error=i+'"filter" must be a function, but '+typeof s.filter+" given",o}else if(s.regex){if(n.helper.isString(s.regex)&&(s.regex=new RegExp(s.regex,"g")),!(s.regex instanceof RegExp))return o.valid=!1,o.error=i+'"regex" property must either be a string or a RegExp object, but '+typeof s.regex+" given",o;if(n.helper.isUndefined(s.replace))return o.valid=!1,o.error=i+'"regex" extensions must implement a replace string or function',o}}return o}function d(e,t){return"¨E"+t.charCodeAt(0)+"E"}n.helper={},n.extensions={},n.setOption=function(e,t){return r[e]=t,this},n.getOption=function(e){return r[e]},n.getOptions=function(){return r},n.resetOptions=function(){r=t(!0)},n.setFlavor=function(e){if(!s.hasOwnProperty(e))throw Error(e+" flavor was not found");n.resetOptions();var t=s[e];for(var a in i=e,t)t.hasOwnProperty(a)&&(r[a]=t[a])},n.getFlavor=function(){return i},n.getFlavorOptions=function(e){if(s.hasOwnProperty(e))return s[e]},n.getDefaultOptions=function(e){return t(e)},n.subParser=function(e,t){if(n.helper.isString(e)){if(void 0===t){if(a.hasOwnProperty(e))return a[e];throw Error("SubParser named "+e+" not registered!")}a[e]=t}},n.extension=function(e,t){if(!n.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=n.helper.stdExtName(e),n.helper.isUndefined(t)){if(!o.hasOwnProperty(e))throw Error("Extension named "+e+" is not registered!");return o[e]}"function"==typeof t&&(t=t()),n.helper.isArray(t)||(t=[t]);var a=l(t,e);if(!a.valid)throw Error(a.error);o[e]=t},n.getAllExtensions=function(){return o},n.removeExtension=function(e){delete o[e]},n.resetExtensions=function(){o={}},n.validateExtension=function(e){var t=l(e,null);return!!t.valid||(console.warn(t.error),!1)},n.hasOwnProperty("helper")||(n.helper={}),n.helper.isString=function(e){return"string"==typeof e||e instanceof String},n.helper.isFunction=function(e){return e&&"[object Function]"==={}.toString.call(e)},n.helper.isArray=function(e){return Array.isArray(e)},n.helper.isUndefined=function(e){return void 0===e},n.helper.forEach=function(e,t){if(n.helper.isUndefined(e))throw new Error("obj param is required");if(n.helper.isUndefined(t))throw new Error("callback param is required");if(!n.helper.isFunction(t))throw new Error("callback param must be a function/closure");if("function"==typeof e.forEach)e.forEach(t);else if(n.helper.isArray(e))for(var a=0;a<e.length;a++)t(e[a],a,e);else{if("object"!=typeof e)throw new Error("obj does not seem to be an array or an iterable object");for(var o in e)e.hasOwnProperty(o)&&t(e[o],o,e)}},n.helper.stdExtName=function(e){return e.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()},n.helper.escapeCharactersCallback=d,n.helper.escapeCharacters=function(e,t,n){var a="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";n&&(a="\\\\"+a);var o=new RegExp(a,"g");return e.replace(o,d)},n.helper.unescapeHTMLEntities=function(e){return e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")};var c=function(e,t,n,a){var o,r,i,s,l,d=a||"",c=d.indexOf("g")>-1,u=new RegExp(t+"|"+n,"g"+d.replace(/g/g,"")),f=new RegExp(t,d.replace(/g/g,"")),h=[];do{for(o=0;i=u.exec(e);)if(f.test(i[0]))o++||(s=(r=u.lastIndex)-i[0].length);else if(o&&!--o&&(h.push({left:{start:s,end:r},match:{start:r,end:i.index},right:{start:i.index,end:l=i.index+i[0].length},wholeMatch:{start:s,end:l}}),!c))return h}while(o&&(u.lastIndex=r));return h};n.helper.matchRecursiveRegExp=function(e,t,n,a){for(var o=c(e,t,n,a),r=[],i=0;i<o.length;++i)r.push([e.slice(o[i].wholeMatch.start,o[i].wholeMatch.end),e.slice(o[i].match.start,o[i].match.end),e.slice(o[i].left.start,o[i].left.end),e.slice(o[i].right.start,o[i].right.end)]);return r},n.helper.replaceRecursiveRegExp=function(e,t,a,o,r){if(!n.helper.isFunction(t)){var i=t;t=function(){return i}}var s=c(e,a,o,r),l=e,d=s.length;if(d>0){var u=[];0!==s[0].wholeMatch.start&&u.push(e.slice(0,s[0].wholeMatch.start));for(var f=0;f<d;++f)u.push(t(e.slice(s[f].wholeMatch.start,s[f].wholeMatch.end),e.slice(s[f].match.start,s[f].match.end),e.slice(s[f].left.start,s[f].left.end),e.slice(s[f].right.start,s[f].right.end))),f<d-1&&u.push(e.slice(s[f].wholeMatch.end,s[f+1].wholeMatch.start));s[d-1].wholeMatch.end<e.length&&u.push(e.slice(s[d-1].wholeMatch.end)),l=u.join("")}return l},n.helper.regexIndexOf=function(e,t,a){if(!n.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(t instanceof RegExp==0)throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var o=e.substring(a||0).search(t);return o>=0?o+(a||0):o},n.helper.splitAtIndex=function(e,t){if(!n.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},n.helper.encodeEmailAddress=function(e){var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var n=Math.random();e=n>.9?t[2](e):n>.45?t[1](e):t[0](e)}return e}))},n.helper.padEnd=function(e,t,n){return t>>=0,n=String(n||" "),e.length>t?String(e):((t-=e.length)>n.length&&(n+=n.repeat(t/n.length)),String(e)+n.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){alert(e)},log:function(e){alert(e)},error:function(e){throw e}}),n.helper.regexes={asteriskDashAndColon:/([*_:~])/g},n.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:"<span style=\"font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;\">S</span>"},n.Converter=function(e){var t={},a=[],d=[],c={},u=i,f={parsed:{},raw:"",format:""};function h(e,t){if(t=t||null,n.helper.isString(e)){if(t=e=n.helper.stdExtName(e),n.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new n.Converter)),n.helper.isArray(e)||(e=[e]);var o=l(e,t);if(!o.valid)throw Error(o.error);for(var r=0;r<e.length;++r)switch(e[r].type){case"lang":a.push(e[r]);break;case"output":d.push(e[r]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}(n.extensions[e],e);if(n.helper.isUndefined(o[e]))throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.');e=o[e]}"function"==typeof e&&(e=e()),n.helper.isArray(e)||(e=[e]);var r=l(e,t);if(!r.valid)throw Error(r.error);for(var i=0;i<e.length;++i){switch(e[i].type){case"lang":a.push(e[i]);break;case"output":d.push(e[i])}if(e[i].hasOwnProperty("listeners"))for(var s in e[i].listeners)e[i].listeners.hasOwnProperty(s)&&g(s,e[i].listeners[s])}}function g(e,t){if(!n.helper.isString(e))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof e+" given");if("function"!=typeof t)throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof t+" given");c.hasOwnProperty(e)||(c[e]=[]),c[e].push(t)}!function(){for(var a in e=e||{},r)r.hasOwnProperty(a)&&(t[a]=r[a]);if("object"!=typeof e)throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.");for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.extensions&&n.helper.forEach(t.extensions,h)}(),this._dispatch=function(e,t,n,a){if(c.hasOwnProperty(e))for(var o=0;o<c[e].length;++o){var r=c[e][o](e,t,this,n,a);r&&void 0!==r&&(t=r)}return t},this.listen=function(e,t){return g(e,t),this},this.makeHtml=function(e){if(!e)return e;var o={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:a,outputModifiers:d,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return e=(e=(e=(e=(e=e.replace(/¨/g,"¨T")).replace(/\$/g,"¨D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/\u00A0/g," "),t.smartIndentationFix&&(e=function(e){var t=e.match(/^\s*/)[0].length,n=new RegExp("^\\s{0,"+t+"}","gm");return e.replace(n,"")}(e)),e="\n\n"+e+"\n\n",e=(e=n.subParser("detab")(e,t,o)).replace(/^[ \t]+$/gm,""),n.helper.forEach(a,(function(a){e=n.subParser("runExtension")(a,e,t,o)})),e=n.subParser("metadata")(e,t,o),e=n.subParser("hashPreCodeTags")(e,t,o),e=n.subParser("githubCodeBlocks")(e,t,o),e=n.subParser("hashHTMLBlocks")(e,t,o),e=n.subParser("hashCodeTags")(e,t,o),e=n.subParser("stripLinkDefinitions")(e,t,o),e=n.subParser("blockGamut")(e,t,o),e=n.subParser("unhashHTMLSpans")(e,t,o),e=(e=(e=n.subParser("unescapeSpecialChars")(e,t,o)).replace(/¨D/g,"$$")).replace(/¨T/g,"¨"),e=n.subParser("completeHTMLDocument")(e,t,o),n.helper.forEach(d,(function(a){e=n.subParser("runExtension")(a,e,t,o)})),f=o.metadata,e},this.makeMarkdown=this.makeMd=function(e,t){if(e=(e=(e=e.replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/>[ \t]+</,">¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var a=t.createElement("div");a.innerHTML=e;var o={preList:function(e){for(var t=e.querySelectorAll("pre"),a=[],o=0;o<t.length;++o)if(1===t[o].childElementCount&&"code"===t[o].firstChild.tagName.toLowerCase()){var r=t[o].firstChild.innerHTML.trim(),i=t[o].firstChild.getAttribute("data-language")||"";if(""===i)for(var s=t[o].firstChild.className.split(" "),l=0;l<s.length;++l){var d=s[l].match(/^language-(.+)$/);if(null!==d){i=d[1];break}}r=n.helper.unescapeHTMLEntities(r),a.push(r),t[o].outerHTML='<precode language="'+i+'" precodenum="'+o.toString()+'"></precode>'}else a.push(t[o].innerHTML),t[o].innerHTML="",t[o].setAttribute("prenum",o.toString());return a}(a)};!function e(t){for(var n=0;n<t.childNodes.length;++n){var a=t.childNodes[n];3===a.nodeType?/\S/.test(a.nodeValue)?(a.nodeValue=a.nodeValue.split("\n").join(" "),a.nodeValue=a.nodeValue.replace(/(\s)+/g,"$1")):(t.removeChild(a),--n):1===a.nodeType&&e(a)}}(a);for(var r=a.childNodes,i="",s=0;s<r.length;s++)i+=n.subParser("makeMarkdown.node")(r[s],o);return i},this.setOption=function(e,n){t[e]=n},this.getOption=function(e){return t[e]},this.getOptions=function(){return t},this.addExtension=function(e,t){h(e,t=t||null)},this.useExtension=function(e){h(e)},this.setFlavor=function(e){if(!s.hasOwnProperty(e))throw Error(e+" flavor was not found");var n=s[e];for(var a in u=e,n)n.hasOwnProperty(a)&&(t[a]=n[a])},this.getFlavor=function(){return u},this.removeExtension=function(e){n.helper.isArray(e)||(e=[e]);for(var t=0;t<e.length;++t){for(var o=e[t],r=0;r<a.length;++r)a[r]===o&&a[r].splice(r,1);for(;0<d.length;++r)d[0]===o&&d[0].splice(r,1)}},this.getAllExtensions=function(){return{language:a,output:d}},this.getMetadata=function(e){return e?f.raw:f.parsed},this.getMetadataFormat=function(){return f.format},this._setMetadataPair=function(e,t){f.parsed[e]=t},this._setMetadataFormat=function(e){f.format=e},this._setMetadataRaw=function(e){f.raw=e}},n.subParser("anchors",(function(e,t,a){var o=function(e,o,r,i,s,l,d){if(n.helper.isUndefined(d)&&(d=""),r=r.toLowerCase(),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)i="";else if(!i){if(r||(r=o.toLowerCase().replace(/ ?\n/g," ")),i="#"+r,n.helper.isUndefined(a.gUrls[r]))return e;i=a.gUrls[r],n.helper.isUndefined(a.gTitles[r])||(d=a.gTitles[r])}var c='<a href="'+(i=i.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'"';return""!==d&&null!==d&&(c+=' title="'+(d=(d=d.replace(/"/g,""")).replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'"'),t.openLinksInNewWindow&&!/^#/.test(i)&&(c+=' rel="noopener noreferrer" target="¨E95Eblank"'),c+">"+o+"</a>"};return e=(e=(e=(e=(e=a.converter._dispatch("anchors.before",e,t,a)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,o)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,o)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,o)).replace(/\[([^\[\]]+)]()()()()()/g,o),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,a,o,r,i){if("\\"===o)return a+r;if(!n.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,i),l="";return t.openLinksInNewWindow&&(l=' rel="noopener noreferrer" target="¨E95Eblank"'),a+'<a href="'+s+'"'+l+">"+r+"</a>"}))),a.converter._dispatch("anchors.after",e,t,a)}));var u=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,f=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,h=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,g=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,_=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,m=function(e){return function(t,a,o,r,i,s,l){var d=o=o.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),c="",u="",f=a||"",h=l||"";return/^www\./i.test(o)&&(o=o.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(c=s),e.openLinksInNewWindow&&(u=' rel="noopener noreferrer" target="¨E95Eblank"'),f+'<a href="'+o+'"'+u+">"+d+"</a>"+c+h}},p=function(e,t){return function(a,o,r){var i="mailto:";return o=o||"",r=n.subParser("unescapeSpecialChars")(r,e,t),e.encodeEmails?(i=n.helper.encodeEmailAddress(i+r),r=n.helper.encodeEmailAddress(r)):i+=r,o+'<a href="'+i+'">'+r+"</a>"}};n.subParser("autoLinks",(function(e,t,n){return e=(e=(e=n.converter._dispatch("autoLinks.before",e,t,n)).replace(h,m(t))).replace(_,p(t,n)),n.converter._dispatch("autoLinks.after",e,t,n)})),n.subParser("simplifiedAutoLinks",(function(e,t,n){return t.simplifiedAutoLink?(e=(e=(e=n.converter._dispatch("simplifiedAutoLinks.before",e,t,n)).replace(t.excludeTrailingPunctuationFromURLs?f:u,m(t))).replace(g,p(t,n)),e=n.converter._dispatch("simplifiedAutoLinks.after",e,t,n)):e})),n.subParser("blockGamut",(function(e,t,a){return e=a.converter._dispatch("blockGamut.before",e,t,a),e=n.subParser("blockQuotes")(e,t,a),e=n.subParser("headers")(e,t,a),e=n.subParser("horizontalRule")(e,t,a),e=n.subParser("lists")(e,t,a),e=n.subParser("codeBlocks")(e,t,a),e=n.subParser("tables")(e,t,a),e=n.subParser("hashHTMLBlocks")(e,t,a),e=n.subParser("paragraphs")(e,t,a),a.converter._dispatch("blockGamut.after",e,t,a)})),n.subParser("blockQuotes",(function(e,t,a){e=a.converter._dispatch("blockQuotes.before",e,t,a);var o=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(o=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=(e+="\n\n").replace(o,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=n.subParser("githubCodeBlocks")(e,t,a),e=(e=(e=n.subParser("blockGamut")(e,t,a)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,(function(e,t){var n=t;return(n=n.replace(/^ /gm,"¨0")).replace(/¨0/g,"")})),n.subParser("hashBlock")("<blockquote>\n"+e+"\n</blockquote>",t,a)})),a.converter._dispatch("blockQuotes.after",e,t,a)})),n.subParser("codeBlocks",(function(e,t,a){return e=a.converter._dispatch("codeBlocks.before",e,t,a),e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,o,r){var i=o,s=r,l="\n";return i=n.subParser("outdent")(i,t,a),i=n.subParser("encodeCode")(i,t,a),i=(i=(i=n.subParser("detab")(i,t,a)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(l=""),i="<pre><code>"+i+l+"</code></pre>",n.subParser("hashBlock")(i,t,a)+s}))).replace(/¨0/,""),a.converter._dispatch("codeBlocks.after",e,t,a)})),n.subParser("codeSpans",(function(e,t,a){return void 0===(e=a.converter._dispatch("codeSpans.before",e,t,a))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,o,r,i){var s=i;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=o+"<code>"+(s=n.subParser("encodeCode")(s,t,a))+"</code>",n.subParser("hashHTMLSpans")(s,t,a)})),a.converter._dispatch("codeSpans.after",e,t,a)})),n.subParser("completeHTMLDocument",(function(e,t,n){if(!t.completeHTMLDocument)return e;e=n.converter._dispatch("completeHTMLDocument.before",e,t,n);var a="html",o="<!DOCTYPE HTML>\n",r="",i='<meta charset="utf-8">\n',s="",l="";for(var d in void 0!==n.metadata.parsed.doctype&&(o="<!DOCTYPE "+n.metadata.parsed.doctype+">\n","html"!==(a=n.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==a||(i='<meta charset="utf-8">')),n.metadata.parsed)if(n.metadata.parsed.hasOwnProperty(d))switch(d.toLowerCase()){case"doctype":break;case"title":r="<title>"+n.metadata.parsed.title+"</title>\n";break;case"charset":i="html"===a||"html5"===a?'<meta charset="'+n.metadata.parsed.charset+'">\n':'<meta name="charset" content="'+n.metadata.parsed.charset+'">\n';break;case"language":case"lang":s=' lang="'+n.metadata.parsed[d]+'"',l+='<meta name="'+d+'" content="'+n.metadata.parsed[d]+'">\n';break;default:l+='<meta name="'+d+'" content="'+n.metadata.parsed[d]+'">\n'}return e=o+"<html"+s+">\n<head>\n"+r+i+l+"</head>\n<body>\n"+e.trim()+"\n</body>\n</html>",n.converter._dispatch("completeHTMLDocument.after",e,t,n)})),n.subParser("detab",(function(e,t,n){return e=(e=(e=(e=(e=(e=n.converter._dispatch("detab.before",e,t,n)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,t){for(var n=t,a=4-n.length%4,o=0;o<a;o++)n+=" ";return n}))).replace(/¨A/g," ")).replace(/¨B/g,""),n.converter._dispatch("detab.after",e,t,n)})),n.subParser("ellipsis",(function(e,t,n){return e=(e=n.converter._dispatch("ellipsis.before",e,t,n)).replace(/\.\.\./g,"…"),n.converter._dispatch("ellipsis.after",e,t,n)})),n.subParser("emoji",(function(e,t,a){return t.emoji?(e=(e=a.converter._dispatch("emoji.before",e,t,a)).replace(/:([\S]+?):/g,(function(e,t){return n.helper.emojis.hasOwnProperty(t)?n.helper.emojis[t]:e})),a.converter._dispatch("emoji.after",e,t,a)):e})),n.subParser("encodeAmpsAndAngles",(function(e,t,n){return e=(e=(e=(e=(e=n.converter._dispatch("encodeAmpsAndAngles.before",e,t,n)).replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&")).replace(/<(?![a-z\/?$!])/gi,"<")).replace(/</g,"<")).replace(/>/g,">"),n.converter._dispatch("encodeAmpsAndAngles.after",e,t,n)})),n.subParser("encodeBackslashEscapes",(function(e,t,a){return e=(e=(e=a.converter._dispatch("encodeBackslashEscapes.before",e,t,a)).replace(/\\(\\)/g,n.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,n.helper.escapeCharactersCallback),a.converter._dispatch("encodeBackslashEscapes.after",e,t,a)})),n.subParser("encodeCode",(function(e,t,a){return e=(e=a.converter._dispatch("encodeCode.before",e,t,a)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/([*_{}\[\]\\=~-])/g,n.helper.escapeCharactersCallback),a.converter._dispatch("encodeCode.after",e,t,a)})),n.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,a){return e=(e=(e=a.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,a)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)}))).replace(/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)})),a.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,a)})),n.subParser("githubCodeBlocks",(function(e,t,a){return t.ghCodeBlocks?(e=a.converter._dispatch("githubCodeBlocks.before",e,t,a),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,o,r,i){var s=t.omitExtraWLInCodeBlocks?"":"\n";return i=n.subParser("encodeCode")(i,t,a),i="<pre><code"+(r?' class="'+r+" language-"+r+'"':"")+">"+(i=(i=(i=n.subParser("detab")(i,t,a)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"</code></pre>",i=n.subParser("hashBlock")(i,t,a),"\n\n¨G"+(a.ghCodeBlocks.push({text:e,codeblock:i})-1)+"G\n\n"}))).replace(/¨0/,""),a.converter._dispatch("githubCodeBlocks.after",e,t,a)):e})),n.subParser("hashBlock",(function(e,t,n){return e=(e=n.converter._dispatch("hashBlock.before",e,t,n)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n",n.converter._dispatch("hashBlock.after",e,t,n)})),n.subParser("hashCodeTags",(function(e,t,a){return e=a.converter._dispatch("hashCodeTags.before",e,t,a),e=n.helper.replaceRecursiveRegExp(e,(function(e,o,r,i){var s=r+n.subParser("encodeCode")(o,t,a)+i;return"¨C"+(a.gHtmlSpans.push(s)-1)+"C"}),"<code\\b[^>]*>","</code>","gim"),a.converter._dispatch("hashCodeTags.after",e,t,a)})),n.subParser("hashElement",(function(e,t,n){return function(e,t){var a=t;return a=(a=(a=a.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),"\n\n¨K"+(n.gHtmlBlocks.push(a)-1)+"K\n\n"}})),n.subParser("hashHTMLBlocks",(function(e,t,a){e=a.converter._dispatch("hashHTMLBlocks.before",e,t,a);var o=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],r=function(e,t,n,o){var r=e;return-1!==n.search(/\bmarkdown\b/)&&(r=n+a.converter.makeHtml(t)+o),"\n\n¨K"+(a.gHtmlBlocks.push(r)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"<"+t+">"})));for(var i=0;i<o.length;++i)for(var s,l=new RegExp("^ {0,3}(<"+o[i]+"\\b[^>]*>)","im"),d="<"+o[i]+"\\b[^>]*>",c="</"+o[i]+">";-1!==(s=n.helper.regexIndexOf(e,l));){var u=n.helper.splitAtIndex(e,s),f=n.helper.replaceRecursiveRegExp(u[1],r,d,c,"im");if(f===u[1])break;e=u[0].concat(f)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(e,t,a)),e=(e=n.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(a.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(e,t,a)),a.converter._dispatch("hashHTMLBlocks.after",e,t,a)})),n.subParser("hashHTMLSpans",(function(e,t,n){function a(e){return"¨C"+(n.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=n.converter._dispatch("hashHTMLSpans.before",e,t,n)).replace(/<[^>]+?\/>/gi,(function(e){return a(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return a(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return a(e)}))).replace(/<[^>]+?>/gi,(function(e){return a(e)})),n.converter._dispatch("hashHTMLSpans.after",e,t,n)})),n.subParser("unhashHTMLSpans",(function(e,t,n){e=n.converter._dispatch("unhashHTMLSpans.before",e,t,n);for(var a=0;a<n.gHtmlSpans.length;++a){for(var o=n.gHtmlSpans[a],r=0;/¨C(\d+)C/.test(o);){var i=RegExp.$1;if(o=o.replace("¨C"+i+"C",n.gHtmlSpans[i]),10===r){console.error("maximum nesting of 10 spans reached!!!");break}++r}e=e.replace("¨C"+a+"C",o)}return n.converter._dispatch("unhashHTMLSpans.after",e,t,n)})),n.subParser("hashPreCodeTags",(function(e,t,a){return e=a.converter._dispatch("hashPreCodeTags.before",e,t,a),e=n.helper.replaceRecursiveRegExp(e,(function(e,o,r,i){var s=r+n.subParser("encodeCode")(o,t,a)+i;return"\n\n¨G"+(a.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"}),"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),a.converter._dispatch("hashPreCodeTags.after",e,t,a)})),n.subParser("headers",(function(e,t,a){e=a.converter._dispatch("headers.before",e,t,a);var o=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),r=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;function i(e){var o,r;if(t.customizedHeaderId){var i=e.match(/\{([^{]+?)}\s*$/);i&&i[1]&&(e=i[1])}return o=e,r=n.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(o=r+o),o=t.ghCompatibleHeaderId?o.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?o.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():o.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(o=r+o),a.hashLinkCounts[o]?o=o+"-"+a.hashLinkCounts[o]++:a.hashLinkCounts[o]=1,o}return e=(e=(e=e.replace(t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,(function(e,r){var s=n.subParser("spanGamut")(r,t,a),l=t.noHeaderId?"":' id="'+i(r)+'"',d="<h"+o+l+">"+s+"</h"+o+">";return n.subParser("hashBlock")(d,t,a)}))).replace(r,(function(e,r){var s=n.subParser("spanGamut")(r,t,a),l=t.noHeaderId?"":' id="'+i(r)+'"',d=o+1,c="<h"+d+l+">"+s+"</h"+d+">";return n.subParser("hashBlock")(c,t,a)}))).replace(t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm,(function(e,r,s){var l=s;t.customizedHeaderId&&(l=s.replace(/\s?\{([^{]+?)}\s*$/,""));var d=n.subParser("spanGamut")(l,t,a),c=t.noHeaderId?"":' id="'+i(s)+'"',u=o-1+r.length,f="<h"+u+c+">"+d+"</h"+u+">";return n.subParser("hashBlock")(f,t,a)})),a.converter._dispatch("headers.after",e,t,a)})),n.subParser("horizontalRule",(function(e,t,a){e=a.converter._dispatch("horizontalRule.before",e,t,a);var o=n.subParser("hashBlock")("<hr />",t,a);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,o)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,o)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,o),a.converter._dispatch("horizontalRule.after",e,t,a)})),n.subParser("images",(function(e,t,a){function o(e,t,o,r,i,s,l,d){var c=a.gUrls,u=a.gTitles,f=a.gDimensions;if(o=o.toLowerCase(),d||(d=""),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)r="";else if(""===r||null===r){if(""!==o&&null!==o||(o=t.toLowerCase().replace(/ ?\n/g," ")),r="#"+o,n.helper.isUndefined(c[o]))return e;r=c[o],n.helper.isUndefined(u[o])||(d=u[o]),n.helper.isUndefined(f[o])||(i=f[o].width,s=f[o].height)}t=t.replace(/"/g,""").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var h='<img src="'+(r=r.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'" alt="'+t+'"';return d&&n.helper.isString(d)&&(h+=' title="'+(d=d.replace(/"/g,""").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'"'),i&&s&&(h+=' width="'+(i="*"===i?"auto":i)+'"',h+=' height="'+(s="*"===s?"auto":s)+'"'),h+" />"}return e=(e=(e=(e=(e=(e=a.converter._dispatch("images.before",e,t,a)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,o)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,n,a,r,i,s,l){return o(e,t,n,a=a.replace(/\s/g,""),r,i,0,l)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,o)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,o)).replace(/!\[([^\[\]]+)]()()()()()/g,o),a.converter._dispatch("images.after",e,t,a)})),n.subParser("italicsAndBold",(function(e,t,n){function a(e,t,n){return t+e+n}return e=n.converter._dispatch("italicsAndBold.before",e,t,n),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return a(t,"<strong><em>","</em></strong>")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return a(t,"<strong>","</strong>")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return a(t,"<em>","</em>")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?a(t,"<strong><em>","</em></strong>"):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?a(t,"<strong>","</strong>"):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?a(t,"<em>","</em>"):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,n){return a(n,t+"<strong><em>","</em></strong>")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,n){return a(n,t+"<strong>","</strong>")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,n){return a(n,t+"<em>","</em>")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?a(t,"<strong><em>","</em></strong>"):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?a(t,"<strong>","</strong>"):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?a(t,"<em>","</em>"):e})),n.converter._dispatch("italicsAndBold.after",e,t,n)})),n.subParser("lists",(function(e,t,a){function o(e,o){a.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var r=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,i=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(r=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(r,(function(e,o,r,s,l,d,c){c=c&&""!==c.trim();var u=n.subParser("outdent")(l,t,a),f="";return d&&t.tasklists&&(f=' class="task-list-item" style="list-style-type: none;"',u=u.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return c&&(e+=" checked"),e+">"}))),u=u.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,(function(e){return"¨A"+e})),o||u.search(/\n{2,}/)>-1?(u=n.subParser("githubCodeBlocks")(u,t,a),u=n.subParser("blockGamut")(u,t,a)):(u=(u=n.subParser("lists")(u,t,a)).replace(/\n$/,""),u=(u=n.subParser("hashHTMLBlocks")(u,t,a)).replace(/\n\n+/g,"\n\n"),u=i?n.subParser("paragraphs")(u,t,a):n.subParser("spanGamut")(u,t,a)),"<li"+f+">"+(u=u.replace("¨A",""))+"</li>\n"}))).replace(/¨0/g,""),a.gListLevel--,o&&(e=e.replace(/\s+$/,"")),e}function r(e,t){if("ol"===t){var n=e.match(/^ *(\d+)\./);if(n&&"1"!==n[1])return' start="'+n[1]+'"'}return""}function i(e,n,a){var i=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,l="ul"===n?i:s,d="";if(-1!==e.search(l))!function t(c){var u=c.search(l),f=r(e,n);-1!==u?(d+="\n\n<"+n+f+">\n"+o(c.slice(0,u),!!a)+"</"+n+">\n",l="ul"==(n="ul"===n?"ol":"ul")?i:s,t(c.slice(u))):d+="\n\n<"+n+f+">\n"+o(c,!!a)+"</"+n+">\n"}(e);else{var c=r(e,n);d="\n\n<"+n+c+">\n"+o(e,!!a)+"</"+n+">\n"}return d}return e=a.converter._dispatch("lists.before",e,t,a),e+="¨0",e=(e=a.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n){return i(t,n.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n,a){return i(n,a.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),a.converter._dispatch("lists.after",e,t,a)})),n.subParser("metadata",(function(e,t,n){if(!t.metadata)return e;function a(e){n.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,a){return n.metadata.parsed[t]=a,""}))}return e=(e=(e=(e=n.converter._dispatch("metadata.before",e,t,n)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,n){return a(n),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,o){return t&&(n.metadata.format=t),a(o),"¨M"}))).replace(/¨M/g,""),n.converter._dispatch("metadata.after",e,t,n)})),n.subParser("outdent",(function(e,t,n){return e=(e=(e=n.converter._dispatch("outdent.before",e,t,n)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),n.converter._dispatch("outdent.after",e,t,n)})),n.subParser("paragraphs",(function(e,t,a){for(var o=(e=(e=(e=a.converter._dispatch("paragraphs.before",e,t,a)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),r=[],i=o.length,s=0;s<i;s++){var l=o[s];l.search(/¨(K|G)(\d+)\1/g)>=0?r.push(l):l.search(/\S/)>=0&&(l=(l=n.subParser("spanGamut")(l,t,a)).replace(/^([ \t]*)/g,"<p>"),r.push(l+="</p>"))}for(i=r.length,s=0;s<i;s++){for(var d="",c=r[s],u=!1;/¨(K|G)(\d+)\1/.test(c);){var f=RegExp.$1,h=RegExp.$2;d=(d="K"===f?a.gHtmlBlocks[h]:u?n.subParser("encodeCode")(a.ghCodeBlocks[h].text,t,a):a.ghCodeBlocks[h].codeblock).replace(/\$/g,"$$$$"),c=c.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,d),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(c)&&(u=!0)}r[s]=c}return e=(e=(e=r.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),a.converter._dispatch("paragraphs.after",e,t,a)})),n.subParser("runExtension",(function(e,t,n,a){if(e.filter)t=e.filter(t,a.converter,n);else if(e.regex){var o=e.regex;o instanceof RegExp||(o=new RegExp(o,"g")),t=t.replace(o,e.replace)}return t})),n.subParser("spanGamut",(function(e,t,a){return e=a.converter._dispatch("spanGamut.before",e,t,a),e=n.subParser("codeSpans")(e,t,a),e=n.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,a),e=n.subParser("encodeBackslashEscapes")(e,t,a),e=n.subParser("images")(e,t,a),e=n.subParser("anchors")(e,t,a),e=n.subParser("autoLinks")(e,t,a),e=n.subParser("simplifiedAutoLinks")(e,t,a),e=n.subParser("emoji")(e,t,a),e=n.subParser("underline")(e,t,a),e=n.subParser("italicsAndBold")(e,t,a),e=n.subParser("strikethrough")(e,t,a),e=n.subParser("ellipsis")(e,t,a),e=n.subParser("hashHTMLSpans")(e,t,a),e=n.subParser("encodeAmpsAndAngles")(e,t,a),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"<br />\n")):e=e.replace(/ +\n/g,"<br />\n"),a.converter._dispatch("spanGamut.after",e,t,a)})),n.subParser("strikethrough",(function(e,t,a){return t.strikethrough&&(e=(e=a.converter._dispatch("strikethrough.before",e,t,a)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,o){return function(e){return t.simplifiedAutoLink&&(e=n.subParser("simplifiedAutoLinks")(e,t,a)),"<del>"+e+"</del>"}(o)})),e=a.converter._dispatch("strikethrough.after",e,t,a)),e})),n.subParser("stripLinkDefinitions",(function(e,t,a){var o=function(e,o,r,i,s,l,d){return o=o.toLowerCase(),a.gUrls[o]=r.match(/^data:.+?\/.+?;base64,/)?r.replace(/\s/g,""):n.subParser("encodeAmpsAndAngles")(r,t,a),l?l+d:(d&&(a.gTitles[o]=d.replace(/"|'/g,""")),t.parseImgDimensions&&i&&s&&(a.gDimensions[o]={width:i,height:s}),"")};return(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,o)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,o)).replace(/¨0/,"")})),n.subParser("tables",(function(e,t,a){if(!t.tables)return e;function o(e,o){return"<td"+o+">"+n.subParser("spanGamut")(e,t,a)+"</td>\n"}function r(e){var r,i=e.split("\n");for(r=0;r<i.length;++r)/^ {0,3}\|/.test(i[r])&&(i[r]=i[r].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(i[r])&&(i[r]=i[r].replace(/\|[ \t]*$/,"")),i[r]=n.subParser("codeSpans")(i[r],t,a);var s,l,d,c,u=i[0].split("|").map((function(e){return e.trim()})),f=i[1].split("|").map((function(e){return e.trim()})),h=[],g=[],_=[],m=[];for(i.shift(),i.shift(),r=0;r<i.length;++r)""!==i[r].trim()&&h.push(i[r].split("|").map((function(e){return e.trim()})));if(u.length<f.length)return e;for(r=0;r<f.length;++r)_.push(/^:[ \t]*--*$/.test(s=f[r])?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(s)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(s)?' style="text-align:center;"':"");for(r=0;r<u.length;++r)n.helper.isUndefined(_[r])&&(_[r]=""),g.push((d=_[r],c=void 0,c="",l=(l=u[r]).trim(),(t.tablesHeaderId||t.tableHeaderId)&&(c=' id="'+l.replace(/ /g,"_").toLowerCase()+'"'),"<th"+c+d+">"+(l=n.subParser("spanGamut")(l,t,a))+"</th>\n"));for(r=0;r<h.length;++r){for(var p=[],b=0;b<g.length;++b)n.helper.isUndefined(h[r][b]),p.push(o(h[r][b],_[b]));m.push(p)}return function(e,t){for(var n="<table>\n<thead>\n<tr>\n",a=e.length,o=0;o<a;++o)n+=e[o];for(n+="</tr>\n</thead>\n<tbody>\n",o=0;o<t.length;++o){n+="<tr>\n";for(var r=0;r<a;++r)n+=t[o][r];n+="</tr>\n"}return n+"</tbody>\n</table>\n"}(g,m)}return e=(e=(e=(e=a.converter._dispatch("tables.before",e,t,a)).replace(/\\(\|)/g,n.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,r)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,r),a.converter._dispatch("tables.after",e,t,a)})),n.subParser("underline",(function(e,t,a){return t.underline?(e=a.converter._dispatch("underline.before",e,t,a),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return"<u>"+t+"</u>"}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return"<u>"+t+"</u>"})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))).replace(/(_)/g,n.helper.escapeCharactersCallback),e=a.converter._dispatch("underline.after",e,t,a)):e})),n.subParser("unescapeSpecialChars",(function(e,t,n){return e=(e=n.converter._dispatch("unescapeSpecialChars.before",e,t,n)).replace(/¨E(\d+)E/g,(function(e,t){var n=parseInt(t);return String.fromCharCode(n)})),n.converter._dispatch("unescapeSpecialChars.after",e,t,n)})),n.subParser("makeMarkdown.blockquote",(function(e,t){var a="";if(e.hasChildNodes())for(var o=e.childNodes,r=o.length,i=0;i<r;++i){var s=n.subParser("makeMarkdown.node")(o[i],t);""!==s&&(a+=s)}return"> "+(a=a.trim()).split("\n").join("\n> ")})),n.subParser("makeMarkdown.codeBlock",(function(e,t){var n=e.getAttribute("language"),a=e.getAttribute("precodenum");return"```"+n+"\n"+t.preList[a]+"\n```"})),n.subParser("makeMarkdown.codeSpan",(function(e){return"`"+e.innerHTML+"`"})),n.subParser("makeMarkdown.emphasis",(function(e,t){var a="";if(e.hasChildNodes()){a+="*";for(var o=e.childNodes,r=o.length,i=0;i<r;++i)a+=n.subParser("makeMarkdown.node")(o[i],t);a+="*"}return a})),n.subParser("makeMarkdown.header",(function(e,t,a){var o=new Array(a+1).join("#"),r="";if(e.hasChildNodes()){r=o+" ";for(var i=e.childNodes,s=i.length,l=0;l<s;++l)r+=n.subParser("makeMarkdown.node")(i[l],t)}return r})),n.subParser("makeMarkdown.hr",(function(){return"---"})),n.subParser("makeMarkdown.image",(function(e){var t="";return e.hasAttribute("src")&&(t+="+">",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),n.subParser("makeMarkdown.links",(function(e,t){var a="";if(e.hasChildNodes()&&e.hasAttribute("href")){var o=e.childNodes,r=o.length;a="[";for(var i=0;i<r;++i)a+=n.subParser("makeMarkdown.node")(o[i],t);a+="](",a+="<"+e.getAttribute("href")+">",e.hasAttribute("title")&&(a+=' "'+e.getAttribute("title")+'"'),a+=")"}return a})),n.subParser("makeMarkdown.list",(function(e,t,a){var o="";if(!e.hasChildNodes())return"";for(var r=e.childNodes,i=r.length,s=e.getAttribute("start")||1,l=0;l<i;++l)void 0!==r[l].tagName&&"li"===r[l].tagName.toLowerCase()&&(o+=("ol"===a?s.toString()+". ":"- ")+n.subParser("makeMarkdown.listItem")(r[l],t),++s);return(o+="\n\x3c!-- --\x3e\n").trim()})),n.subParser("makeMarkdown.listItem",(function(e,t){for(var a="",o=e.childNodes,r=o.length,i=0;i<r;++i)a+=n.subParser("makeMarkdown.node")(o[i],t);return/\n$/.test(a)?a=a.split("\n").join("\n ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n"):a+="\n",a})),n.subParser("makeMarkdown.node",(function(e,t,a){a=a||!1;var o="";if(3===e.nodeType)return n.subParser("makeMarkdown.txt")(e,t);if(8===e.nodeType)return"\x3c!--"+e.data+"--\x3e\n\n";if(1!==e.nodeType)return"";switch(e.tagName.toLowerCase()){case"h1":a||(o=n.subParser("makeMarkdown.header")(e,t,1)+"\n\n");break;case"h2":a||(o=n.subParser("makeMarkdown.header")(e,t,2)+"\n\n");break;case"h3":a||(o=n.subParser("makeMarkdown.header")(e,t,3)+"\n\n");break;case"h4":a||(o=n.subParser("makeMarkdown.header")(e,t,4)+"\n\n");break;case"h5":a||(o=n.subParser("makeMarkdown.header")(e,t,5)+"\n\n");break;case"h6":a||(o=n.subParser("makeMarkdown.header")(e,t,6)+"\n\n");break;case"p":a||(o=n.subParser("makeMarkdown.paragraph")(e,t)+"\n\n");break;case"blockquote":a||(o=n.subParser("makeMarkdown.blockquote")(e,t)+"\n\n");break;case"hr":a||(o=n.subParser("makeMarkdown.hr")(e,t)+"\n\n");break;case"ol":a||(o=n.subParser("makeMarkdown.list")(e,t,"ol")+"\n\n");break;case"ul":a||(o=n.subParser("makeMarkdown.list")(e,t,"ul")+"\n\n");break;case"precode":a||(o=n.subParser("makeMarkdown.codeBlock")(e,t)+"\n\n");break;case"pre":a||(o=n.subParser("makeMarkdown.pre")(e,t)+"\n\n");break;case"table":a||(o=n.subParser("makeMarkdown.table")(e,t)+"\n\n");break;case"code":o=n.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":o=n.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":o=n.subParser("makeMarkdown.strong")(e,t);break;case"del":o=n.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":o=n.subParser("makeMarkdown.links")(e,t);break;case"img":o=n.subParser("makeMarkdown.image")(e,t);break;default:o=e.outerHTML+"\n\n"}return o})),n.subParser("makeMarkdown.paragraph",(function(e,t){var a="";if(e.hasChildNodes())for(var o=e.childNodes,r=o.length,i=0;i<r;++i)a+=n.subParser("makeMarkdown.node")(o[i],t);return a.trim()})),n.subParser("makeMarkdown.pre",(function(e,t){var n=e.getAttribute("prenum");return"<pre>"+t.preList[n]+"</pre>"})),n.subParser("makeMarkdown.strikethrough",(function(e,t){var a="";if(e.hasChildNodes()){a+="~~";for(var o=e.childNodes,r=o.length,i=0;i<r;++i)a+=n.subParser("makeMarkdown.node")(o[i],t);a+="~~"}return a})),n.subParser("makeMarkdown.strong",(function(e,t){var a="";if(e.hasChildNodes()){a+="**";for(var o=e.childNodes,r=o.length,i=0;i<r;++i)a+=n.subParser("makeMarkdown.node")(o[i],t);a+="**"}return a})),n.subParser("makeMarkdown.table",(function(e,t){var a,o,r="",i=[[],[]],s=e.querySelectorAll("thead>tr>th"),l=e.querySelectorAll("tbody>tr");for(a=0;a<s.length;++a){var d=n.subParser("makeMarkdown.tableCell")(s[a],t),c="---";if(s[a].hasAttribute("style"))switch(s[a].getAttribute("style").toLowerCase().replace(/\s/g,"")){case"text-align:left;":c=":---";break;case"text-align:right;":c="---:";break;case"text-align:center;":c=":---:"}i[0][a]=d.trim(),i[1][a]=c}for(a=0;a<l.length;++a){var u=i.push([])-1,f=l[a].getElementsByTagName("td");for(o=0;o<s.length;++o){var h=" ";void 0!==f[o]&&(h=n.subParser("makeMarkdown.tableCell")(f[o],t)),i[u].push(h)}}var g=3;for(a=0;a<i.length;++a)for(o=0;o<i[a].length;++o){var _=i[a][o].length;_>g&&(g=_)}for(a=0;a<i.length;++a){for(o=0;o<i[a].length;++o)i[a][o]=1===a?":"===i[a][o].slice(-1)?n.helper.padEnd(i[a][o].slice(-1),g-1,"-")+":":n.helper.padEnd(i[a][o],g,"-"):n.helper.padEnd(i[a][o],g);r+="| "+i[a].join(" | ")+" |\n"}return r.trim()})),n.subParser("makeMarkdown.tableCell",(function(e,t){var a="";if(!e.hasChildNodes())return"";for(var o=e.childNodes,r=o.length,i=0;i<r;++i)a+=n.subParser("makeMarkdown.node")(o[i],t,!0);return a.trim()})),n.subParser("makeMarkdown.txt",(function(e){var t=e.nodeValue;return t=(t=t.replace(/ +/g," ")).replace(/¨NBSP;/g," "),(t=(t=(t=(t=(t=(t=(t=(t=n.helper.unescapeHTMLEntities(t)).replace(/([*_~|`])/g,"\\$1")).replace(/^(\s*)>/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")})),e.exports?e.exports=n:this.showdown=n}).call(u)}));const x={en:{amen:"Amen.",authorized_prayers:"Prayers and Thanksgivings",label:"Label",source:"Source",source_citation:"Citation"},es:{amen:"Amén."}},z=class{constructor(t){e(this,t),this.ldfDocShouldChange=o(this,"ldfDocShouldChange",7)}docChanged(e){try{this.obj=new s("string"==typeof e?JSON.parse(e):e)}catch(e){console.warn(e),this.obj=new s}}async componentWillLoad(){this.docChanged(this.doc),this.loadLocaleStrings()}async loadLocaleStrings(){try{this.localeStrings=x[l(this.element)]}catch(e){console.warn(e)}}truncate(e,t=!1,n=20){const a=2*n,o=e.split(/([^\w])/g);return t?new Array("...").concat(o.slice(o.length-a)).join(""):o.slice(0,a).concat("...").join("")}async addPAndT(e,t){const n=await f.create({component:"ldf-prayers-and-thanksgivings"});n.componentProps={base:e,index:t,modal:n,parent:this},await n.present()}render(){var e,a,o,r,i,s,l,c,u,f,h,g,_,m,p,b,w,v,k,x,z,j,S,M,$,E,A,T,L,C;const B=this.localeStrings||{};if("authorized-prayers"===(null===(e=this.obj)||void 0===e?void 0:e.style)){const e=this.path.split("/"),n=Number(e[e.length-1]),a=e.slice(0,e.length-1).join("/");return t("ldf-label-bar",null,t("ion-button",{onClick:()=>this.addPAndT(a,n),fill:"clear"},B.authorized_prayers))}{let e=((null===(o=null===(a=this.obj)||void 0===a?void 0:a.metadata)||void 0===o?void 0:o.rollup)?((null===(r=this.obj)||void 0===r?void 0:r.value)||[]).map((e=>e.replace(/\s+/g," "))):(null===(i=this.obj)||void 0===i?void 0:i.value)||[]).map((e=>e.split(/([\*\w\n\s,:;\.\-–—'“☩✠”‘’\!\?”\[\]\%\(\)\/\u0041-\u024F]+([^\*\w\n\s,;:\.'“”☩✠‘’”\-–—\!\?\[\]\%\(\)\/\u0041-\u024F]))/g)));if(!this.editable&&"abbreviated"===(null===(s=this.obj)||void 0===s?void 0:s.display_format)){const t=e[e.length-1],n=this.truncate(e[0][0]),a=this.truncate(t[t.length-1],!0);e=[[n],[a]]}if(this.editable)return t(n,{lang:this.obj.language},t("ldf-label-bar",null,t("slot",{slot:"end",name:"controls"})),!this.editable&&t("ldf-heading",{path:`${this.path}/label`,doc:new d({type:"heading",metadata:{level:3},value:[this.obj.label],citation:this.obj.citation,source:this.obj.source})}),this.editable&&t("ldf-label-bar",null,!(null===(c=null===(l=this.obj)||void 0===l?void 0:l.metadata)||void 0===c?void 0:c.omit_label)&&t("h3",{class:"editable-label",slot:"start"},t("ldf-editable-text",{id:`${this.obj.uid||this.obj.slug}-label`,text:null===(u=this.obj)||void 0===u?void 0:u.label,placeholder:B.label,path:`${this.path}/label`})),t("ldf-editable-text",{slot:"end",id:"source-source",text:null===(h=null===(f=this.obj)||void 0===f?void 0:f.source)||void 0===h?void 0:h.source,path:`${this.path}/source/source`,placeholder:null===(g=this.localeStrings)||void 0===g?void 0:g.source}),t("ldf-editable-text",{slot:"end",id:"source-citation",text:null===(m=null===(_=this.obj)||void 0===_?void 0:_.source)||void 0===m?void 0:m.citation,path:`${this.path}/source/citation`,placeholder:null===(p=this.localeStrings)||void 0===p?void 0:p.source_citation})),t("div",{class:`text ${this.editable?"editable":""} ${(null===(b=this.obj)||void 0===b?void 0:b.display_format)||"default"}`},this.obj.value.map(((e,n)=>t("ldf-editable-text",{id:`${this.obj.uid||this.obj.slug}-${n}`,text:e,path:`${this.path}/value/${n}`}))),("prayer"===(null===(w=this.obj)||void 0===w?void 0:w.style)||(null===(k=null===(v=this.obj)||void 0===v?void 0:v.metadata)||void 0===k?void 0:k.response)&&!(null===(z=null===(x=this.obj)||void 0===x?void 0:x.metadata)||void 0===z?void 0:z.omit_response))&&t("span",{class:"response"},t("ldf-editable-text",{id:`${this.obj.uid||this.obj.slug}-response`,text:this.obj.metadata&&this.obj.metadata.response,path:`${this.path}/response`,placeholder:B.amen}))));if("markdown"===(null===(j=this.obj)||void 0===j?void 0:j.style)){const e=new y.Converter;return((null===(S=this.obj)||void 0===S?void 0:S.value)||[]).map((n=>t("div",{innerHTML:e.makeHtml(n)})))}return t("div",{lang:(null===(M=this.obj)||void 0===M?void 0:M.language)||"en",class:`text ${(null===($=this.obj)||void 0===$?void 0:$.display_format)||"default"}`},((null===(E=this.obj)||void 0===E?void 0:E.label)&&!(null===(T=null===(A=this.obj)||void 0===A?void 0:A.metadata)||void 0===T?void 0:T.omit_label)||(null===(L=this.obj)||void 0===L?void 0:L.citation))&&t("ldf-heading",{path:this.path,doc:new d({type:"heading",metadata:{level:3},value:[(null===(C=this.obj.metadata)||void 0===C?void 0:C.omit_label)?"":this.obj.label],citation:this.obj.citation,source:this.obj.source})}),e.map(((n,a)=>{var o,r,i,s;return t("p",{class:"text-body",id:`${this.obj.uid||this.obj.slug}-prayerIndex`},null==n?void 0:n.map(((e,n)=>{var o;return t("span",{id:`${this.obj.uid||this.obj.slug}-${a}-${n}`},t("ldf-string",{text:e,citation:{label:this.obj.label},dropcap:"force_dropcap"==(null===(o=this.obj)||void 0===o?void 0:o.display_format)&&0===a&&0===n?"force":0===a&&n<=1?"enabled":"disabled",index:a+n,fragment:this.path}))})),(null===(r=null===(o=this.obj)||void 0===o?void 0:o.metadata)||void 0===r?void 0:r.response)&&a==e.length-1&&t("span",{class:"response"}," ",this.obj.metadata.response),!(null===(s=null===(i=this.obj)||void 0===i?void 0:i.metadata)||void 0===s?void 0:s.response)&&"prayer"==this.obj.style&&a==e.length-1&&t("span",{class:"response"}," ",B.amen))})))}}get element(){return a(this)}static get watchers(){return{doc:["docChanged"]}}};z.style="ldf-label-bar.sc-ldf-text{min-height:0}p.sc-ldf-text{font-family:var(--ldf-font-face);text-align:var(--ldf-text-align);text-justify:inter-character}li.sc-ldf-text,h1.sc-ldf-text,h2.sc-ldf-text,h3.sc-ldf-text,h4.sc-ldf-text,h5.sc-ldf-text,h6.sc-ldf-text,ol.sc-ldf-text,span.sc-ldf-text,em.sc-ldf-text,strong.sc-ldf-text{font-family:var(--ldf-font-face)}.response.sc-ldf-text{font-weight:var(--ldf-response-font-weight);font-style:var(--ldf-response-font-style)}.text.omit.sc-ldf-text .text-body.sc-ldf-text{display:none}.text.editable.omit.sc-ldf-text .text-body.sc-ldf-text{display:block}.text.unison.sc-ldf-text .text-body.sc-ldf-text{font-weight:var(--ldf-unison-font-weight);font-style:var(--ldf-unison-font-style)}h3.editable-label.sc-ldf-text{text-align:var(--ldf-h3-text-align);font-weight:var(--ldf-h3-font-weight);font-style:var(--ldf-h3-font-style);font-variant:var(--ldf-h3-font-variant);font-size:var(--ldf-h3-font-size);text-transform:var(--ldf-h3-text-transform)}";export{m as ldf_day_name,w as ldf_heading,v as ldf_label_bar,k as ldf_string,z as ldf_text}
|
package/dist/ldf/p-883425cd.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{L as e}from"./p-4aa9a6f2.js";const o=[{name:"Genesis",aliases:["Gn","Gen","Genesis"]},{name:"Exodus",aliases:["Exod","Ex","Exo","Exodus"]},{name:"Leviticus",aliases:["Lev","Lv","Leviticus"]},{name:"Numbers",aliases:["Num","Numbers"]},{name:"Deuteronomy",aliases:["Deut","Deuteronomy"]},{name:"Joshua",aliases:["Josh","Joshua"]},{name:"Judges",aliases:["Judg","Jdg","Judges"]},{name:"Ruth",aliases:["Ruth"]},{name:"1 Samuel",aliases:["1Sam","1 Sam","1st Sam","1st Samuel","First Samuel","1 Samuel"]},{name:"2 Samuel",aliases:["2Sam","2 Sam","2nd Sam","2nd Samuel","Second Samuel","2 Samuel"]},{name:"1 Kings",aliases:["1Kgs","1 Kgs","1st Kgs","1st Kings","First Kings","1 Kings"]},{name:"2 Kings",aliases:["2Kgs","2 Kgs","2nd Kgs","2nd Kings","Second Kings","2 Kings"]},{name:"1 Chronicles",aliases:["1Chr","1 Chr","1st Chr","1st Chronicles","First Chronicles","1 Chronicles"]},{name:"2 Chronicles",aliases:["2Chr","2 Chr","2nd Chr","2nd Chronicles","Second Chronicles","2 Chronicles"]},{name:"Ezra",aliases:["Ezra"]},{name:"Nehemiah",aliases:["Neh","Nehemiah"]},{name:"Esther",aliases:["Esth","Est","Esther"]},{name:"Job",aliases:["Jb","Job"]},{name:"Psalms",aliases:["Ps","Psalm","Psalms"]},{name:"Proverbs",aliases:["Prov","Pro","Proverbs"]},{name:"Ecclesiastes",aliases:["Eccl","Ecc","Ecclesiastes"]},{name:"The Song of Solomon",aliases:["Song","Song of Songs","Song of Solomon","Cant"]},{name:"Isaiah",aliases:["Isa","Is","Isaiah"]},{name:"Jeremiah",aliases:["Jer","Jeremiah"]},{name:"Letter of Jeremiah",aliases:["EJer","EpJer","Epistle of Jeremiah"]},{name:"Lamentations",aliases:["Lam","Lamentations"]},{name:"Ezekiel",aliases:["Ezek","Ezekiel"]},{name:"Daniel",aliases:["Dan","Daniel"]},{name:"Hosea",aliases:["Hos","Hosea"]},{name:"Joel",aliases:["Joel"]},{name:"Amos",aliases:["Amos"]},{name:"Obadiah",aliases:["Obad","Oba","Obadiah"]},{name:"Jonah",aliases:["Jon","Jonah"]},{name:"Micah",aliases:["Mic","Micah"]},{name:"Nahum",aliases:["Nah","Nahum"]},{name:"Habakkuk",aliases:["Hab","Habakkuk"]},{name:"Zephaniah",aliases:["Zeph","Zephaniah"]},{name:"Haggai",aliases:["Hag","Haggai"]},{name:"Zechariah",aliases:["Zech","Zechariah"]},{name:"Malachi",aliases:["Mal","Malachi"]},{name:"Tobit",aliases:["Tob","Tobit"]},{name:"Judith",aliases:["Jdt","Judith"]},{name:"Baruch",aliases:["Bar","Baruch"]},{name:"1 Maccabees",aliases:["1Macc","1 Maccabees","First Maccabees","1 Macc"]},{name:"2 Maccabees",aliases:["2Macc","2 Maccabees","Second Maccabees","2 Macc"]},{name:"Wisdom",aliases:["Wis","Wisdom"]},{name:"Sirach",aliases:["Sir","Ecclus","Ben Sira","Ecclesiasticus"]},{name:"1 Esdras",aliases:["1 Esdr","1 Esdras","1 Esd","1Esdras","1Esdr","1Esd"]},{name:"2 Esdras",aliases:["2 Esdr","2 Esdras","2 Esd","2Esdras","2Esdr","2Esd"]},{name:"Bel",aliases:["Bel","Bel & the Dragon"]},{name:"Azariah",aliases:["Azariah","Song of the Three Young Men","Song of the Three Childr.","Song of the Three Children"]},{name:"Matthew",aliases:["Matt","Matthew","Mt"]},{name:"Mark",aliases:["Mark","Mk"]},{name:"Luke",aliases:["Luke","Lk"]},{name:"John",aliases:["Jn","John","Joh"]},{name:"Acts",aliases:["Acts"]},{name:"Romans",aliases:["Rom","Romans"]},{name:"1 Corinthians",aliases:["1Cor","1 Cor","1st Cor","1st Corinthians","First Corinthians","1 Corinthians"]},{name:"2 Corinthians",aliases:["2Cor","2 Cor","2nd Cor","2nd Corinthians","Second Corinthians","2 Corinthians"]},{name:"Galatians",aliases:["Gal","Galatians"]},{name:"Ephesians",aliases:["Eph","Ephesians"]},{name:"Philippians",aliases:["Phil","Philippians"]},{name:"Colossians",aliases:["Col","Colossians"]},{name:"1 Thessalonians",aliases:["1Thess","1 Thess","1st Thess","1st Thessalonians","First Thessalonians","1 Thessalonians"]},{name:"2 Thessalonians",aliases:["2Thess","2 Thess","2nd Thess","2nd Thessalonians","Second Thessalonians","2 Thessalonians"]},{name:"1 Timothy",aliases:["1 Tim","1Tim","1st Tim","1st Timothy","First Timothy","1 Timothy"]},{name:"2 Timothy",aliases:["2 Tim","2Tim","2nd Tim","2nd Timothy","Second Timothy","2 Timothy"]},{name:"Titus",aliases:["Titus"]},{name:"Philemon",aliases:["Phlm","Philemon"]},{name:"Hebrews",aliases:["Heb","Hebrews"]},{name:"James",aliases:["Jas","James"]},{name:"1 Peter",aliases:["1Pet","1 Pet","1st Pet","1st Peter","First Peter","1 Peter"]},{name:"2 Peter",aliases:["2Pet","2 Pet","2nd Pet","2nd Peter","Second Peter","2 Peter"]},{name:"1 John",aliases:["1John","1 John","1st John","First John","1 Joh"]},{name:"2 John",aliases:["2John","2 John","2nd John","Second John","2 Joh"]},{name:"3 John",aliases:["3John","3 John","3rd John","Third John","3 Joh"]},{name:"Jude",aliases:["Jude","Jd"]},{name:"Revelation",aliases:["Rev","Revelation","Revelations","Apocalypse","Apoc"]}],s={Genesis:{en:{short:"Genesis",long:"The Book of Genesis"}},Exodus:{en:{short:"Exodus",long:"The Book of Exodus"}},Leviticus:{en:{short:"Leviticus",long:"The Book of Leviticus"}},Numbers:{en:{short:"Numbers",long:"The Book of Numbers"}},Deuteronomy:{en:{short:"Deuteronomy",long:"The Book of Deuteronomy"}},Joshua:{en:{short:"Joshua",long:"The Book of Joshua"}},Judges:{en:{short:"Judges",long:"The Book of Judges"}},Ruth:{en:{short:"Ruth",long:"The Book of Ruth"}},"1 Samuel":{en:{short:"1 Samuel",long:"The First Book of Samuel"}},"2 Samuel":{en:{short:"2 Samuel",long:"The Second Book of Samuel"}},"1 Kings":{en:{short:"1 Kings",long:"The First Book of Kings"}},"2 Kings":{en:{short:"2 Kings",long:"The Second Book of Kings"}},"1 Chronicles":{en:{short:"1 Chronicles",long:"The First Book of Chronicles"}},"2 Chronicles":{en:{short:"2 Chronicles",long:"The Second Book of Chronicles"}},Ezra:{en:{short:"Ezra",long:"The Book of Ezra"}},Nehemiah:{en:{short:"Nehemiah",long:"The Book of Nehemiah"}},Esther:{en:{short:"Esther",long:"The Book of Esther"}},Job:{en:{short:"Job",long:"The Book of Job"}},Psalms:{en:{short:"Psalms",long:"The Psalms"}},Proverbs:{en:{short:"Proverbs",long:"The Book of Proverbs"}},Ecclesiastes:{en:{short:"Ecclesiastes",long:"The Book of Ecclesiastes"}},"The Song of Solomon":{en:{short:"The Song of Solomon",long:"The Song of Solomon"}},Isaiah:{en:{short:"Isaiah",long:"The Book of the Prophet Isaiah"}},Jeremiah:{en:{short:"Jeremiah",long:"The Book of the Prophet Jeremiah"}},Lamentations:{en:{short:"Lamentations",long:"The Book of Lamentations"}},Ezekiel:{en:{short:"Ezekiel",long:"The Book of the Prophet Ezekiel"}},Daniel:{en:{short:"Daniel",long:"The Book of Daniel"},"en-CA":{short:"Daniel",long:"The Book of the Prophet Daniel"},iu:{short:"Daniel",long:"The Book of the Prophet Daniel"}},Hosea:{en:{short:"Hosea",long:"The Book of the Prophet Hosea"}},Joel:{en:{short:"Joel",long:"The Book of the Prophet Joel"}},Amos:{en:{short:"Amos",long:"The Book of the Prophet Amos"}},Obadiah:{en:{short:"Obadiah",long:"The Book of the Prophet Obadiah"}},Jonah:{en:{short:"Jonah",long:"The Book of the Prophet Jonah"}},Micah:{en:{short:"Micah",long:"The Book of the Prophet Micah"}},Nahum:{en:{short:"Nahum",long:"The Book of the Prophet Nahum"}},Habakkuk:{en:{short:"Habakkuk",long:"The Book of the Prophet Habakkuk"}},Zephaniah:{en:{short:"Zephaniah",long:"The Book of the Prophet Zephaniah"}},Haggai:{en:{short:"Haggai",long:"The Book of the Prophet Haggai"}},Zechariah:{en:{short:"Zechariah",long:"The Book of the Prophet Zechariah"}},Malachi:{en:{short:"Malachi",long:"The Book of the Prophet Malachi"}},Tobit:{en:{short:"Tobit",long:"The Book of Tobit"}},Azariah:{en:{short:"The Song of the Three Children",long:"The Song of the Three Children"}},Judith:{en:{short:"Judith",long:"The Book of Judith"}},Baruch:{en:{short:"Baruch",long:"The Book of Baruch"}},"1 Maccabees":{en:{short:"1 Maccabees",long:"The First Book of Maccabees"}},"2 Maccabees":{en:{short:"2 Maccabees",long:"The Second Book of Maccabees"}},Wisdom:{en:{short:"Wisdom",long:"The Wisdom of Solomon"}},Sirach:{en:{short:"Sirach",long:"The Wisdom of Ben Sira"},"en-CA":{short:"Sirach",long:"The Book of Ecclesiasticus"},iu:{short:"Sirach",long:"The Book of Ecclesiasticus"}},Matthew:{en:{short:"Matthew",long:"The Gospel According to Matthew"},"en-CA":{short:"Matthew",long:"The Gospel According to St. Matthew"},iu:{short:"Matthew",long:"The Gospel According to St. Matthew"}},Mark:{en:{short:"Mark",long:"The Gospel According to Mark"},"en-CA":{short:"Mark",long:"The Gospel According to St. Mark"},iu:{short:"Mark",long:"The Gospel According to St. Mark"}},Luke:{en:{short:"Luke",long:"The Gospel According to Luke"},"en-CA":{short:"Luke",long:"The Gospel According to St. Luke"},iu:{short:"Luke",long:"The Gospel According to St. Luke"}},John:{en:{short:"John",long:"The Gospel According to John"},"en-CA":{short:"John",long:"The Gospel According to St. John"},iu:{short:"John",long:"The Gospel According to St. John"}},Acts:{en:{short:"Acts",long:"The Acts of the Apostles"},"en-CA":{short:"Acts",long:"The Book of the Acts of the Apostles"},iu:{short:"Acts",long:"The Book of the Acts of the Apostles"}},Romans:{en:{short:"Romans",long:"The Letter to the Romans"},"en-CA":{short:"Romans",long:"The Epistle of St. Paul the Apostle to the Romans"},iu:{short:"Romans",long:"The Epistle of St. Paul the Apostle to the Romans"}},"1 Corinthians":{en:{short:"1 Corinthians",long:"The First Letter to the Corinthians"},"en-CA":{short:"1 Corinthians",long:"The First Epistle of St. Paul the Apostle to the Corinthians"},iu:{short:"1 Corinthians",long:"The First Epistle of St. Paul the Apostle to the Corinthians"}},"2 Corinthians":{en:{short:"2 Corinthians",long:"The Second Letter to the Corinthians"},"en-CA":{short:"2 Corinthians",long:"The Second Epistle of St. Paul the Apostle to the Corinthians"},iu:{short:"2 Corinthians",long:"The Second Epistle of St. Paul the Apostle to the Corinthians"}},Galatians:{en:{short:"Galatians",long:"The Letter to the Galatians"},"en-CA":{short:"Galatians",long:"The Epistle of St. Paul the Apostle to the Galatians"},iu:{short:"Galatians",long:"The Epistle of St. Paul the Apostle to the Galatians"}},Ephesians:{en:{short:"Ephesians",long:"The Letter to the Ephesians"},"en-CA":{short:"Ephesians",long:"The Epistle of St. Paul the Apostle to the Ephesians"},iu:{short:"Ephesians",long:"The Epistle of St. Paul the Apostle to the Ephesians"}},Philippians:{en:{short:"Philippians",long:"The Letter to the Philippians"},"en-CA":{short:"Philippians",long:"The Epistle of St. Paul the Apostle to the Philippians"},iu:{short:"Philippians",long:"The Epistle of St. Paul the Apostle to the Philippians"}},Colossians:{en:{short:"Colossians",long:"The Letter to the Colossians"},"en-CA":{short:"Colossians",long:"The Epistle of St. Paul the Apostle to the Colossians"},iu:{short:"Colossians",long:"The Epistle of St. Paul the Apostle to the Colossians"}},"1 Thessalonians":{en:{short:"1 Thessalonians",long:"The First Letter to the Thessalonians"},"en-CA":{short:"1 Thessalonians",long:"The First Epistle of St. Paul the Apostle to the Thessalonians"},iu:{short:"1 Thessalonians",long:"The First Epistle of St. Paul the Apostle to the Thessalonians"}},"2 Thessalonians":{en:{short:"2 Thessalonians",long:"The Second Letter to the Thessalonians"},"en-CA":{short:"2 Thessalonians",long:"The Second Epistle of St. Paul the Apostle to the Thessalonians"},iu:{short:"2 Thessalonians",long:"The Second Epistle of St. Paul the Apostle to the Thessalonians"}},"1 Timothy":{en:{short:"1 Timothy",long:"The First Letter to Timothy"},"en-CA":{short:"1 Timothy",long:"The First Epistle of St. Paul the Apostle to Timothy"},iu:{short:"1 Timothy",long:"The First Epistle of St. Paul the Apostle to Timothy"}},"2 Timothy":{en:{short:"2 Timothy",long:"The Second Letter to Timothy"},"en-CA":{short:"2 Timothy",long:"The Second Epistle of St. Paul the Apostle to Timothy"},iu:{short:"2 Timothy",long:"The Second Epistle of St. Paul the Apostle to Timothy"}},Titus:{en:{short:"Titus",long:"The Letter to Titus"},"en-CA":{short:"Titus",long:"The Epistle of St. Paul the Apostle to Titus"},iu:{short:"Titus",long:"The Epistle of St. Paul the Apostle to Titus"}},Philemon:{en:{short:"Philemon",long:"The Letter to Philemon"},"en-CA":{short:"Philemon",long:"The Epistle of St. Paul the Apostle to Philemon"},iu:{short:"Philemon",long:"The Epistle of St. Paul the Apostle to Philemon"}},Hebrews:{en:{short:"Hebrews",long:"The Book of Hebrews"},"en-CA":{short:"Hebrews",long:"The Epistle to the Hebrews"},iu:{short:"Hebrews",long:"The Epistle to the Hebrews"}},James:{en:{short:"James",long:"The Letter of James"},"en-CA":{short:"James",long:"The Epistle General of St. James"},iu:{short:"James",long:"The Epistle General of St. James"}},"1 Peter":{en:{short:"1 Peter",long:"The First Letter of Peter"},"en-CA":{short:"1 Peter",long:"The First Epistle General of St. Peter"},iu:{short:"1 Peter",long:"The First Epistle General of St. Peter"}},"2 Peter":{en:{short:"2 Peter",long:"The Second Letter of Peter"},"en-CA":{short:"2 Peter",long:"The Second Epistle General of St. Peter"},iu:{short:"2 Peter",long:"The Second Epistle General of St. Peter"}},"1 John":{en:{short:"1 John",long:"The First Letter of John"},"en-CA":{short:"2 John",long:"The First Epistle General of St. John"},iu:{short:"2 John",long:"The First Epistle General of St. John"}},"2 John":{en:{short:"2 John",long:"The Second Letter of John"},"en-CA":{short:"2 John",long:"The Second Epistle General of St. John"},iu:{short:"2 John",long:"The Second Epistle General of St. John"}},"3 John":{en:{short:"3 John",long:"The Third Letter of John"},"en-CA":{short:"3 John",long:"The Third Epistle General of St. John"},iu:{short:"3 John",long:"The Third Epistle General of St. John"}},Jude:{en:{short:"Jude",long:"The Letter of Jude"},"en-CA":{short:"Jude",long:"The Epistle General of St. Jude"},iu:{short:"Jude",long:"The Epistle General of St. Jude"}},Revelation:{en:{short:"Revelation",long:"The Book of Revelation"},"en-CA":{short:"Revelation",long:"The Revelation to St. John the Divine"},iu:{short:"Revelation",long:"The Revelation to St. John the Divine"}},"1 Esdras":{en:{short:"1 Esdras",long:"The Second Book of Esdras"}},"2 Esdras":{en:{short:"2 Esdras",long:"The Second Book of Esdras"}},Bel:{en:{short:"Bel",long:"Bel and the Dragon"}},"Letter of Jeremiah":{en:{short:"Letter of Jeremiah",long:"The Letter of Jeremiah"}}};function t(e){var o=e%10,s=e%100;return 1==o&&11!=s?e+"st":2==o&&12!=s?e+"nd":3==o&&13!=s?e+"rd":e+"th"}const n=["long","short"];class a extends e{constructor(e={}){super(e)}compileIntro(){var o,s,n,a;if(this.metadata&&this.metadata.intro){const h=null!==(o=this.abbrevFromCitation())&&void 0!==o?o:this.citation,i=this.bookCodeFromAbbrev(null!=h?h:""),l=h?this.longNameFromBookCode(null!=i?i:"",this.language||"en"):"—",r=h?this.shortNameFromBookCode(null!=i?i:"",this.language||"en"):"—",m=this.chapterFromCitation(),c=this.verseFromCitation(),g=new Array,T=e=>e.replace(/\$\{longName\}/g,(null!=l?l:h).replace("The","the")).replace(/\$\{shortName\}/g,null!=r?r:h).replace(/\$\{chapter\}/g,`${t(Number(m)||1)}`).replace(/\$\{verse\}/g,`${t(Number(c)||1)}`);null===(a=null===(n=null===(s=this.metadata)||void 0===s?void 0:s.intro)||void 0===n?void 0:n.value)||void 0===a||a.forEach((e=>{"string"==typeof e?g.push(T(e)):e.hasOwnProperty("text")?g.push(Object.assign(Object.assign({},e),{text:T(e.text)})):g.push(T(e))})),this.metadata.compiled_intro=new e(Object.assign(Object.assign({},this.metadata.intro),{value:g}))}}abbrevFromCitation(){let e;try{const o=(this.citation||"").match(/(\d*\s*[a-zA-Z]+)/);e=o?o[0]:""}catch(o){e=this.citation}return e.replace(/\./g,"")}chapterFromCitation(){var e;const o=null===(e=(this.citation||"").split(";")[0])||void 0===e?void 0:e.match(/[\s\.:](\d+)/g);if(o){const[e]=o;return"string"==typeof e?e.trim().replace(/[\.,:]/g,""):void 0}}verseFromCitation(){var e;const o=null===(e=(this.citation||"").split(";")[0])||void 0===e?void 0:e.match(/[\s\.:](\d+)/g);if(o){const[,e]=o;return"string"==typeof e?e.trim().replace(/[\.,:]/g,""):void 0}}bookCodeFromAbbrev(e){if(e){const s=e.replace(/\./g,""),t=o.find((e=>e.name==s||e.aliases.includes(s)||e.name.includes(s)));return t?t.name:e}}longNameFromBookCode(e,o="en"){const t=this.bookCodeFromAbbrev(e);if(t){const n=s[t];let a=(n||{})[o];return a||(a=(n||{}).en),a?a.long:e}}shortNameFromBookCode(e,o="en"){var t;const n=(s[null!==(t=this.bookCodeFromAbbrev(e))&&void 0!==t?t:""]||{})[o];return n?n.short:e}availableStyles(){return n}availableDisplayFormats(){return["default","omit"]}}class h extends e{availableDisplayFormats(){return[]}}class i extends e{constructor(e={}){super(e)}}const l=["psalm","canticle","invitatory"];class r extends e{constructor(e={}){super(e)}filteredVerses(){let e=new Array;if(this.citation&&(this.citation.match(/Ps[^\s]*\s*\d+/)||""==this.citation)){const o=this.versesInCitation(this.citation);0==o.length?e=this.value:(this.value||[]).forEach((s=>{const t=new Array;(s.value||[]).forEach((e=>{!e.number||o.includes(e.number)?t.push(e):o.includes(`[${e.number}`)?t.push(Object.assign(Object.assign({},e),{verse:"["+e.verse})):o.includes(`${e.number}]`)?t.push(Object.assign(Object.assign({},e),{halfverse:e.halfverse+"]"})):o.includes(`[${e.number}]`)&&t.push(Object.assign(Object.assign({},e),{verse:"["+e.verse,halfverse:e.halfverse+"]"}))})),e.push(Object.assign(Object.assign({},s),{value:t}))}))}else e=this.value;return e}versesInCitation(e){function o(e,o,s){return e&&o?"["+s+"]":e?"["+s:o?s+"]":s}const s=e.replace(/Ps[\w\.]*\s*/g,"").split(/\s*([\[\]\(\),:\s])\s*/).slice(1);let t=new Array,n=!1,a=!1;return(s||[]).forEach(((e,h)=>{"["!==e&&"("!==e||(n=!0),"]"!==s[h+1]&&")"!==s[h+1]||(a=!0);const[i,l]=e.replace(/[^\d-s–]/g,"").split(/-|–/);if(i&&l){const e=a;for(let s=parseInt(i);s<=parseInt(l);s++)a=e&&s==parseInt(l),t.push(o(n,a,s.toString())),n=!1}else i&&(t.push(o(n,a,i)),n=!1),a=!1})),t}includeAntiphon(){const e=this.metadata||{};return!!e.antiphon&&!e.omit_antiphon;
|
|
2
|
-
//!(this.style == 'canticle' && !metadata.omit_gloria);
|
|
3
|
-
}repeatAntiphon(e,o=0){const s=this.metadata||{};return 0==o&&(o=this.filteredVerses().length),this.includeAntiphon()&&!(s.omit_gloria&&e==o-1)}availableStyles(){return l}availableDisplayFormats(){return["default","omit","unison","wholeverse","halfverse"]}}const m=["preces","litany","responsive"];class c extends e{constructor(e={}){super(e)}availableStyles(){return m}availableDisplayFormats(){return[]}}class g extends e{constructor(e={}){super(e)}availableDisplayFormats(){return[]}}export{a as B,h as L,i as M,r as P,c as R,g as a}
|
package/dist/ldf/p-9155f066.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{L as e}from"./p-4aa9a6f2.js";function i(e){return"string"==typeof e?e:JSON.stringify(e)}const l={ip:"IP",bcp1979:"Rite II",bcp1979_psalm:"1979",eow:"EOW",coverdale:"Coverdale",rite_i:"Rite I",bhs:"Hebrew",hebrew:"Hebrew"};function s(e){return"psalm"===e.type&&"psalm"===e.style&&"bcp1979"===e.version?"bcp1979_psalm":e.version}class t extends e{constructor(e={}){super(e)}availableDisplayFormats(){return[]}uniqueVersions(){return(this.value||[]).map((e=>i(e.version))).reduce(((e,i)=>e.includes(i)?e:[...e,i]),[]).length}uniqueLabels(){return(this.value||[]).map((e=>e.label)).reduce(((e,i)=>e.includes(i)?e:[...e,i]),[]).length}uniqueCitations(){return(this.value||[]).map((e=>e.citation?e.citation.toString():"")).filter((e=>!!e)).reduce(((e,i)=>e.includes(i)?e:[...e,i]),[]).length}uniqueCanticleNumbers(){return Array.from(new Set((this.value||[]).map((e=>{var i;return"canticle"===e.style?null===(i=e.metadata)||void 0===i?void 0:i.number:e.slug||Math.random()})))).length}getVersionLabel(e,t=50){var r,a,n;const o=this.uniqueVersions(),u=this.uniqueLabels(),b=this.uniqueCitations(),f=this.uniqueCanticleNumbers();let p="";if("liturgy"==e.type)p=e.label||e.version_label||"Option";else if("psalm"==e.type&&1==o&&e.label&&((null===(r=e.slug)||void 0===r?void 0:r.match(/psalm_119_/))||(null===(a=e.citation)||void 0===a?void 0:a.toString().match(/Ps[^\d]+119/))))p=e.label;else if("psalm"==e.type&&o>1)p=e.version_label||l[i(e.version)];else if("psalm"==e.type&&"psalm"==e.style&&(e.citation||(null===(n=e.metadata)||void 0===n?void 0:n.number))&&1==o)p=e.citation?e.citation.toString():`Psalm ${e.metadata.number}`;else if("bible-reading"==e.type&&b>1&&e.citation&&e.value&&e.value.length>0){const i=e.value.map((e=>e.hasOwnProperty("text")?e.text:e.toString())).join(" "),l="short"==e.style?` (“${i}”)`:"";p=o>1?`${e.citation.toString()} (${e.version})${l}`:`${e.citation.toString()}${l}`}else if("bible-reading"==e.type&&1==b)p=i(e.version);else if("bible-reading"==e.type&&e.citation&&1==o)p=e.citation.toString();else if("bible-reading"==e.type&&e.citation&&o>1)p=`${e.citation.toString()} (${i(e.version)})`;else if(1==o&&"psalm"==e.type&&"canticle"==e.style&&e.metadata&&e.metadata.localname)p=e.metadata.localname;else if(o>1&&1===f)p=l[i(s(e))];else if(o>1&&e.metadata&&e.metadata.hasOwnProperty("localname")&&e.version)p=`${e.metadata.localname} (${l[i(s(e))]})`;else if(e.version_label&&"bcp1979"!==e.version_label)p=e.version_label;else if(e.label&&u>1&&1==o)p=e.label;else if(e.label&&u>1&&o>1)p=`${e.label} (${l[i(s(e))]})`;else if(!e.metadata||!e.metadata.hasOwnProperty("localname")||e.version_label&&"bcp1979"!=e.version_label)if(o>1&&e.version)p=l[i(s(e))];else if(e.citation)p=e.citation.toString();else{if(!e.value)throw`Unable to generate a label from ${JSON.stringify(e)}`;p=`“${JSON.stringify(e.value).replace(/[\[\]\{\}\"\'\:]/g," ").replace(/\\n/g," ").trim()}”`}else p=e.metadata.localname;return p.length>t?p.substring(0,t)+"...":p}}export{t as O,i as v}
|