@hebcal/rest-api 5.0.0 → 5.0.2

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/bundle.js CHANGED
@@ -1,10 +1,277 @@
1
- /*! @hebcal/rest-api v5.0.0 */
1
+ /*! @hebcal/rest-api v5.0.2 */
2
2
  var hebcal__rest_api = (function (exports, core, leyning, triennial) {
3
3
  'use strict';
4
4
 
5
- const Chanukah="Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)";const Pesach="Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt";const Purim="Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination";const Shavuot="Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai";const Sigd="Ethiopian Jewish holiday occurring 50 days after Yom Kippur";const Sukkot="Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)";var holidayDescription = {"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion","Birkat Hachamah":"A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun","Chag HaBanot":"North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",Chanukah:Chanukah,"Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays","Family Day":"Yom HaMishpacha, a day to honor the family unit","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky","Lag BaOmer":"33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:Pesach,"Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:Purim,"Purim Meshulash":"Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat","Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":"Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes \"Adar Bet\" or \"Adar Sheni\", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","Shabbat Chazon":"Shabbat of Prophecy/Shabbat of Vision. Shabbat before Tish'a B'Av","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan. Read in preparation for Passover","Shabbat HaGadol":"Shabbat before Pesach (The Great Shabbat)","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Nachamu":"Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")","Shabbat Parah":"Shabbat of the Red Heifer. Shabbat before Shabbat HaChodesh, in preparation for Passover","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar. Read in preparation for Purim","Shabbat Shirah":"Shabbat of Song. Shabbat that includes Parashat Beshalach","Shabbat Shuva":"Shabbat of Returning. Shabbat that occurs during the Ten Days of Repentance between Rosh Hashanah and Yom Kippur","Shabbat Zachor":"Shabbat of Remembrance. Shabbat before Purim",Shavuot:Shavuot,"Shmini Atzeret":"Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel","Shushan Purim":"Purim celebrated in Jerusalem and walled cities","Shushan Purim Katan":"Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",Sigd:Sigd,"Simchat Torah":"Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",Sukkot:Sukkot,"Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees. Tu BiShvat is one of four “New Years” mentioned in the Mishnah","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer","Yom Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};
5
+ var holidayDescription = {
6
+ "Asara B'Tevet": "Fast commemorating the siege of Jerusalem",
7
+ "Ben-Gurion Day": "Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion",
8
+ "Birkat Hachamah": "A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun",
9
+ "Chag HaBanot": "North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",
10
+ "Chanukah": "Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)",
11
+ "Days of the Omer": "7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays",
12
+ "Family Day": "Yom HaMishpacha, a day to honor the family unit",
13
+ "Herzl Day": "Commemorates the life and vision of Zionist leader Theodor Herzl",
14
+ "Jabotinsky Day": "Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky",
15
+ "Lag BaOmer": "33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings",
16
+ "Leil Selichot": "Prayers for forgiveness in preparation for the High Holidays",
17
+ "Pesach Sheni": "Second Passover, one month after Passover",
18
+ "Pesach": "Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt",
19
+ "Purim Katan": "Minor Purim celebration during Adar I on leap years",
20
+ "Purim": "Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination",
21
+ "Purim Meshulash": "Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat",
22
+ "Rosh Chodesh Nisan": "Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
23
+ "Rosh Chodesh Iyyar": "Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
24
+ "Rosh Chodesh Sivan": "Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
25
+ "Rosh Chodesh Tamuz": "Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
26
+ "Rosh Chodesh Av": "Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
27
+ "Rosh Chodesh Elul": "Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
28
+ "Rosh Chodesh Cheshvan": "Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
29
+ "Rosh Chodesh Kislev": "Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
30
+ "Rosh Chodesh Tevet": "Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
31
+ "Rosh Chodesh Sh'vat": "Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
32
+ "Rosh Chodesh Adar": "Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
33
+ "Rosh Chodesh Adar I": "Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
34
+ "Rosh Chodesh Adar II": "Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes \"Adar Bet\" or \"Adar Sheni\", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
35
+ "Rosh Hashana": "The Jewish New Year. Also spelled Rosh Hashanah",
36
+ "Rosh Hashana LaBehemot": "New Year for Tithing Animals",
37
+ "Shabbat Chazon": "Shabbat of Prophecy/Shabbat of Vision. Shabbat before Tish'a B'Av",
38
+ "Shabbat HaChodesh": "Shabbat before Rosh Chodesh Nissan. Read in preparation for Passover",
39
+ "Shabbat HaGadol": "Shabbat before Pesach (The Great Shabbat)",
40
+ "Shabbat Machar Chodesh": "When Shabbat falls the day before Rosh Chodesh",
41
+ "Shabbat Nachamu": "Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")",
42
+ "Shabbat Parah": "Shabbat of the Red Heifer. Shabbat before Shabbat HaChodesh, in preparation for Passover",
43
+ "Shabbat Rosh Chodesh": "When Shabbat falls on Rosh Chodesh",
44
+ "Shabbat Shekalim": "Shabbat before Rosh Chodesh Adar. Read in preparation for Purim",
45
+ "Shabbat Shirah": "Shabbat of Song. Shabbat that includes Parashat Beshalach",
46
+ "Shabbat Shuva": "Shabbat of Returning. Shabbat that occurs during the Ten Days of Repentance between Rosh Hashanah and Yom Kippur",
47
+ "Shabbat Zachor": "Shabbat of Remembrance. Shabbat before Purim",
48
+ "Shavuot": "Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai",
49
+ "Shmini Atzeret": "Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel",
50
+ "Shushan Purim": "Purim celebrated in Jerusalem and walled cities",
51
+ "Shushan Purim Katan": "Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",
52
+ "Sigd": "Ethiopian Jewish holiday occurring 50 days after Yom Kippur",
53
+ "Simchat Torah": "Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",
54
+ "Sukkot": "Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)",
55
+ "Ta'anit Bechorot": "Fast of the First Born",
56
+ "Ta'anit Esther": "Fast of Esther",
57
+ "Tish'a B'Av": "The Ninth of Av. Fast commemorating the destruction of the two Temples",
58
+ "Tu B'Av": "Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av",
59
+ "Tu BiShvat": "New Year for Trees. Tu BiShvat is one of four “New Years” mentioned in the Mishnah",
60
+ "Tzom Gedaliah": "Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah",
61
+ "Tzom Tammuz": "Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple",
62
+ "Yitzhak Rabin Memorial Day": "Commemorates the life of Israeli Prime Minister Yitzhak Rabin",
63
+ "Yom HaAliyah": "Recognizes Aliyah, immigration to the Jewish State of Israel",
64
+ "Yom HaAliyah School Observance": "Aliyah Day observed in Israeli schools",
65
+ "Yom HaAtzma'ut": "Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat",
66
+ "Yom HaShoah": "Holocaust Memorial Day",
67
+ "Yom HaZikaron": "Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat",
68
+ "Yom Kippur": "Day of Atonement. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer",
69
+ "Yom Kippur Katan": "Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh",
70
+ "Yom Yerushalayim": "Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"
71
+ };
6
72
 
7
- const AD="Andorra";const AE="United Arab Emirates";const AF="Afghanistan";const AI="Anguilla";const AL="Albania";const AM="Armenia";const AO="Angola";const AR="Argentina";const AS="American Samoa";const AT="Austria";const AU="Australia";const AW="Aruba";const AZ="Azerbaijan";const BA="Bosnia and Herzegovina";const BB="Barbados";const BD="Bangladesh";const BE="Belgium";const BF="Burkina Faso";const BG="Bulgaria";const BH="Bahrain";const BI="Burundi";const BJ="Benin";const BM="Bermuda";const BN="Brunei";const BO="Bolivia";const BR="Brazil";const BS="Bahamas";const BT="Bhutan";const BW="Botswana";const BY="Belarus";const BZ="Belize";const CA="Canada";const CD="Democratic Republic of the Congo";const CF="Central African Republic";const CG="Republic of the Congo";const CH="Switzerland";const CI="Ivory Coast";const CK="Cook Islands";const CL="Chile";const CM="Cameroon";const CN="China";const CO="Colombia";const CR="Costa Rica";const CU="Cuba";const CV="Cape Verde";const CW="Curacao";const CY="Cyprus";const CZ="Czech Republic";const DE="Germany";const DK="Denmark";const DM="Dominica";const DO="Dominican Republic";const DZ="Algeria";const EC="Ecuador";const EE="Estonia";const EG="Egypt";const ER="Eritrea";const ES="Spain";const ET="Ethiopia";const FI="Finland";const FJ="Fiji";const FK="Falkland Islands";const FO="Faroe Islands";const FR="France";const GA="Gabon";const GB="United Kingdom";const GE="Georgia";const GH="Ghana";const GI="Gibraltar";const GL="Greenland";const GM="Gambia";const GN="Guinea";const GQ="Equatorial Guinea";const GR="Greece";const GT="Guatemala";const GW="Guinea-Bissau";const GY="Guyana";const HK="Hong Kong";const HN="Honduras";const HR="Croatia";const HT="Haiti";const HU="Hungary";const ID="Indonesia";const IE="Ireland";const IL="Israel";const IM="Isle of Man";const IN="India";const IQ="Iraq";const IR="Iran";const IS="Iceland";const IT="Italy";const JM="Jamaica";const JO="Jordan";const JP="Japan";const KE="Kenya";const KG="Kyrgyzstan";const KH="Cambodia";const KM="Comoros";const KN="Saint Kitts and Nevis";const KP="North Korea";const KR="South Korea";const KW="Kuwait";const KY="Cayman Islands";const KZ="Kazakhstan";const LA="Laos";const LB="Lebanon";const LC="Saint Lucia";const LI="Liechtenstein";const LR="Liberia";const LS="Lesotho";const LT="Lithuania";const LU="Luxembourg";const LV="Latvia";const LY="Libya";const MA="Morocco";const MD="Moldova";const ME="Montenegro";const MG="Madagascar";const MK="Macedonia";const ML="Mali";const MM="Myanmar";const MN="Mongolia";const MP="Northern Mariana Islands";const MR="Mauritania";const MS="Montserrat";const MT="Malta";const MU="Mauritius";const MW="Malawi";const MX="Mexico";const MY="Malaysia";const MZ="Mozambique";const NA="Namibia";const NC="New Caledonia";const NE="Niger";const NG="Nigeria";const NI="Nicaragua";const NL="Netherlands";const NO="Norway";const NP="Nepal";const NU="Niue";const NZ="New Zealand";const OM="Oman";const PA="Panama";const PE="Peru";const PF="French Polynesia";const PG="Papua New Guinea";const PH="Philippines";const PK="Pakistan";const PL="Poland";const PR="Puerto Rico";const PT="Portugal";const PY="Paraguay";const QA="Qatar";const RO="Romania";const RS="Serbia";const RU="Russia";const RW="Rwanda";const SA="Saudi Arabia";const SB="Solomon Islands";const SC="Seychelles";const SD="Sudan";const SE="Sweden";const SG="Singapore";const SH="Saint Helena";const SI="Slovenia";const SK="Slovakia";const SL="Sierra Leone";const SN="Senegal";const SO="Somalia";const SR="Suriname";const ST="Sao Tome and Principe";const SV="El Salvador";const SY="Syria";const SZ="Swaziland";const TC="Turks and Caicos Islands";const TD="Chad";const TG="Togo";const TH="Thailand";const TJ="Tajikistan";const TM="Turkmenistan";const TN="Tunisia";const TR="Turkey";const TV="Tuvalu";const TW="Taiwan";const TZ="Tanzania";const UA="Ukraine";const UG="Uganda";const US="United States";const UY="Uruguay";const UZ="Uzbekistan";const VC="Saint Vincent and the Grenadines";const VE="Venezuela";const VG="British Virgin Islands";const VN="Vietnam";const WS="Samoa";const YE="Yemen";const YT="Mayotte";const ZA="South Africa";const ZM="Zambia";const ZW="Zimbabwe";var countryNames = {AD:AD,AE:AE,AF:AF,AI:AI,AL:AL,AM:AM,AO:AO,AR:AR,AS:AS,AT:AT,AU:AU,AW:AW,AZ:AZ,BA:BA,BB:BB,BD:BD,BE:BE,BF:BF,BG:BG,BH:BH,BI:BI,BJ:BJ,BM:BM,BN:BN,BO:BO,BR:BR,BS:BS,BT:BT,BW:BW,BY:BY,BZ:BZ,CA:CA,CD:CD,CF:CF,CG:CG,CH:CH,CI:CI,CK:CK,CL:CL,CM:CM,CN:CN,CO:CO,CR:CR,CU:CU,CV:CV,CW:CW,CY:CY,CZ:CZ,DE:DE,DK:DK,DM:DM,DO:DO,DZ:DZ,EC:EC,EE:EE,EG:EG,ER:ER,ES:ES,ET:ET,FI:FI,FJ:FJ,FK:FK,FO:FO,FR:FR,GA:GA,GB:GB,GE:GE,GH:GH,GI:GI,GL:GL,GM:GM,GN:GN,GQ:GQ,GR:GR,GT:GT,GW:GW,GY:GY,HK:HK,HN:HN,HR:HR,HT:HT,HU:HU,ID:ID,IE:IE,IL:IL,IM:IM,IN:IN,IQ:IQ,IR:IR,IS:IS,IT:IT,JM:JM,JO:JO,JP:JP,KE:KE,KG:KG,KH:KH,KM:KM,KN:KN,KP:KP,KR:KR,KW:KW,KY:KY,KZ:KZ,LA:LA,LB:LB,LC:LC,LI:LI,LR:LR,LS:LS,LT:LT,LU:LU,LV:LV,LY:LY,MA:MA,MD:MD,ME:ME,MG:MG,MK:MK,ML:ML,MM:MM,MN:MN,MP:MP,MR:MR,MS:MS,MT:MT,MU:MU,MW:MW,MX:MX,MY:MY,MZ:MZ,NA:NA,NC:NC,NE:NE,NG:NG,NI:NI,NL:NL,NO:NO,NP:NP,NU:NU,NZ:NZ,OM:OM,PA:PA,PE:PE,PF:PF,PG:PG,PH:PH,PK:PK,PL:PL,PR:PR,PT:PT,PY:PY,QA:QA,RO:RO,RS:RS,RU:RU,RW:RW,SA:SA,SB:SB,SC:SC,SD:SD,SE:SE,SG:SG,SH:SH,SI:SI,SK:SK,SL:SL,SN:SN,SO:SO,SR:SR,ST:ST,SV:SV,SY:SY,SZ:SZ,TC:TC,TD:TD,TG:TG,TH:TH,TJ:TJ,TM:TM,TN:TN,TR:TR,TV:TV,TW:TW,TZ:TZ,UA:UA,UG:UG,US:US,UY:UY,UZ:UZ,VC:VC,VE:VE,VG:VG,VN:VN,WS:WS,YE:YE,YT:YT,ZA:ZA,ZM:ZM,ZW:ZW};
73
+ var countryNames = {
74
+ "AD": "Andorra",
75
+ "AE": "United Arab Emirates",
76
+ "AF": "Afghanistan",
77
+ "AI": "Anguilla",
78
+ "AL": "Albania",
79
+ "AM": "Armenia",
80
+ "AO": "Angola",
81
+ "AR": "Argentina",
82
+ "AS": "American Samoa",
83
+ "AT": "Austria",
84
+ "AU": "Australia",
85
+ "AW": "Aruba",
86
+ "AZ": "Azerbaijan",
87
+ "BA": "Bosnia and Herzegovina",
88
+ "BB": "Barbados",
89
+ "BD": "Bangladesh",
90
+ "BE": "Belgium",
91
+ "BF": "Burkina Faso",
92
+ "BG": "Bulgaria",
93
+ "BH": "Bahrain",
94
+ "BI": "Burundi",
95
+ "BJ": "Benin",
96
+ "BM": "Bermuda",
97
+ "BN": "Brunei",
98
+ "BO": "Bolivia",
99
+ "BR": "Brazil",
100
+ "BS": "Bahamas",
101
+ "BT": "Bhutan",
102
+ "BW": "Botswana",
103
+ "BY": "Belarus",
104
+ "BZ": "Belize",
105
+ "CA": "Canada",
106
+ "CD": "Democratic Republic of the Congo",
107
+ "CF": "Central African Republic",
108
+ "CG": "Republic of the Congo",
109
+ "CH": "Switzerland",
110
+ "CI": "Ivory Coast",
111
+ "CK": "Cook Islands",
112
+ "CL": "Chile",
113
+ "CM": "Cameroon",
114
+ "CN": "China",
115
+ "CO": "Colombia",
116
+ "CR": "Costa Rica",
117
+ "CU": "Cuba",
118
+ "CV": "Cape Verde",
119
+ "CW": "Curacao",
120
+ "CY": "Cyprus",
121
+ "CZ": "Czech Republic",
122
+ "DE": "Germany",
123
+ "DK": "Denmark",
124
+ "DM": "Dominica",
125
+ "DO": "Dominican Republic",
126
+ "DZ": "Algeria",
127
+ "EC": "Ecuador",
128
+ "EE": "Estonia",
129
+ "EG": "Egypt",
130
+ "ER": "Eritrea",
131
+ "ES": "Spain",
132
+ "ET": "Ethiopia",
133
+ "FI": "Finland",
134
+ "FJ": "Fiji",
135
+ "FK": "Falkland Islands",
136
+ "FO": "Faroe Islands",
137
+ "FR": "France",
138
+ "GA": "Gabon",
139
+ "GB": "United Kingdom",
140
+ "GE": "Georgia",
141
+ "GH": "Ghana",
142
+ "GI": "Gibraltar",
143
+ "GL": "Greenland",
144
+ "GM": "Gambia",
145
+ "GN": "Guinea",
146
+ "GQ": "Equatorial Guinea",
147
+ "GR": "Greece",
148
+ "GT": "Guatemala",
149
+ "GW": "Guinea-Bissau",
150
+ "GY": "Guyana",
151
+ "HK": "Hong Kong",
152
+ "HN": "Honduras",
153
+ "HR": "Croatia",
154
+ "HT": "Haiti",
155
+ "HU": "Hungary",
156
+ "ID": "Indonesia",
157
+ "IE": "Ireland",
158
+ "IL": "Israel",
159
+ "IM": "Isle of Man",
160
+ "IN": "India",
161
+ "IQ": "Iraq",
162
+ "IR": "Iran",
163
+ "IS": "Iceland",
164
+ "IT": "Italy",
165
+ "JM": "Jamaica",
166
+ "JO": "Jordan",
167
+ "JP": "Japan",
168
+ "KE": "Kenya",
169
+ "KG": "Kyrgyzstan",
170
+ "KH": "Cambodia",
171
+ "KM": "Comoros",
172
+ "KN": "Saint Kitts and Nevis",
173
+ "KP": "North Korea",
174
+ "KR": "South Korea",
175
+ "KW": "Kuwait",
176
+ "KY": "Cayman Islands",
177
+ "KZ": "Kazakhstan",
178
+ "LA": "Laos",
179
+ "LB": "Lebanon",
180
+ "LC": "Saint Lucia",
181
+ "LI": "Liechtenstein",
182
+ "LR": "Liberia",
183
+ "LS": "Lesotho",
184
+ "LT": "Lithuania",
185
+ "LU": "Luxembourg",
186
+ "LV": "Latvia",
187
+ "LY": "Libya",
188
+ "MA": "Morocco",
189
+ "MD": "Moldova",
190
+ "ME": "Montenegro",
191
+ "MG": "Madagascar",
192
+ "MK": "Macedonia",
193
+ "ML": "Mali",
194
+ "MM": "Myanmar",
195
+ "MN": "Mongolia",
196
+ "MP": "Northern Mariana Islands",
197
+ "MR": "Mauritania",
198
+ "MS": "Montserrat",
199
+ "MT": "Malta",
200
+ "MU": "Mauritius",
201
+ "MW": "Malawi",
202
+ "MX": "Mexico",
203
+ "MY": "Malaysia",
204
+ "MZ": "Mozambique",
205
+ "NA": "Namibia",
206
+ "NC": "New Caledonia",
207
+ "NE": "Niger",
208
+ "NG": "Nigeria",
209
+ "NI": "Nicaragua",
210
+ "NL": "Netherlands",
211
+ "NO": "Norway",
212
+ "NP": "Nepal",
213
+ "NU": "Niue",
214
+ "NZ": "New Zealand",
215
+ "OM": "Oman",
216
+ "PA": "Panama",
217
+ "PE": "Peru",
218
+ "PF": "French Polynesia",
219
+ "PG": "Papua New Guinea",
220
+ "PH": "Philippines",
221
+ "PK": "Pakistan",
222
+ "PL": "Poland",
223
+ "PR": "Puerto Rico",
224
+ "PT": "Portugal",
225
+ "PY": "Paraguay",
226
+ "QA": "Qatar",
227
+ "RO": "Romania",
228
+ "RS": "Serbia",
229
+ "RU": "Russia",
230
+ "RW": "Rwanda",
231
+ "SA": "Saudi Arabia",
232
+ "SB": "Solomon Islands",
233
+ "SC": "Seychelles",
234
+ "SD": "Sudan",
235
+ "SE": "Sweden",
236
+ "SG": "Singapore",
237
+ "SH": "Saint Helena",
238
+ "SI": "Slovenia",
239
+ "SK": "Slovakia",
240
+ "SL": "Sierra Leone",
241
+ "SN": "Senegal",
242
+ "SO": "Somalia",
243
+ "SR": "Suriname",
244
+ "ST": "Sao Tome and Principe",
245
+ "SV": "El Salvador",
246
+ "SY": "Syria",
247
+ "SZ": "Swaziland",
248
+ "TC": "Turks and Caicos Islands",
249
+ "TD": "Chad",
250
+ "TG": "Togo",
251
+ "TH": "Thailand",
252
+ "TJ": "Tajikistan",
253
+ "TM": "Turkmenistan",
254
+ "TN": "Tunisia",
255
+ "TR": "Turkey",
256
+ "TV": "Tuvalu",
257
+ "TW": "Taiwan",
258
+ "TZ": "Tanzania",
259
+ "UA": "Ukraine",
260
+ "UG": "Uganda",
261
+ "US": "United States",
262
+ "UY": "Uruguay",
263
+ "UZ": "Uzbekistan",
264
+ "VC": "Saint Vincent and the Grenadines",
265
+ "VE": "Venezuela",
266
+ "VG": "British Virgin Islands",
267
+ "VN": "Vietnam",
268
+ "WS": "Samoa",
269
+ "YE": "Yemen",
270
+ "YT": "Mayotte",
271
+ "ZA": "South Africa",
272
+ "ZM": "Zambia",
273
+ "ZW": "Zimbabwe"
274
+ };
8
275
 
9
276
  /**
10
277
  * Location information
@@ -25,6 +292,8 @@ const AD="Andorra";const AE="United Arab Emirates";const AF="Afghanistan";const
25
292
  * @property {number} geonameid
26
293
  */
27
294
 
295
+ const LOC_FIELDS = ['elevation', 'admin1', 'asciiname', 'geo', 'zip', 'state', 'stateName', 'geonameid'];
296
+
28
297
  /**
29
298
  * Converts a @hebcal/core `Location` to a plain JS object.
30
299
  * @param {Location} location
@@ -39,18 +308,16 @@ function locationToPlainObj(location) {
39
308
  latitude: location.getLatitude(),
40
309
  longitude: location.getLongitude(),
41
310
  cc: location.getCountryCode(),
42
- country: countryNames[location.getCountryCode()]
311
+ country: countryNames[location.getCountryCode()],
43
312
  };
44
- ['elevation', 'admin1', 'asciiname', 'geo', 'zip', 'state', 'stateName', 'geonameid'].forEach(k => {
313
+ for (const k of LOC_FIELDS) {
45
314
  if (location[k]) {
46
315
  o[k] = location[k];
47
316
  }
48
- });
317
+ }
49
318
  return o;
50
319
  } else {
51
- return {
52
- geo: 'none'
53
- };
320
+ return {geo: 'none'};
54
321
  }
55
322
  }
56
323
 
@@ -63,7 +330,12 @@ function locationToPlainObj(location) {
63
330
  * @return {string}
64
331
  */
65
332
  function makeAnchor(s) {
66
- return s.toLowerCase().replace(/'/g, '').replace(/[^\w]/g, '-').replace(/-+/g, '-').replace(/^-/g, '').replace(/-$/g, '');
333
+ return s.toLowerCase()
334
+ .replace(/'/g, '')
335
+ .replace(/[^\w]/g, '-')
336
+ .replace(/-+/g, '-')
337
+ .replace(/^-/g, '')
338
+ .replace(/-$/g, '');
67
339
  }
68
340
 
69
341
  /**
@@ -169,12 +441,12 @@ function renderTitleWithoutTime(ev) {
169
441
  function getCalendarTitle(events, options) {
170
442
  let title = 'Hebcal';
171
443
  const location = options.location;
172
- const locationName = location === null || location === void 0 ? void 0 : location.getName();
444
+ const locationName = location?.getName();
173
445
  if (options.yahrzeit) {
174
446
  title += ' Yahrzeits and Anniversaries';
175
447
  } else if (locationName) {
176
448
  const comma = locationName.indexOf(',');
177
- const name = comma == -1 ? locationName : locationName.substring(0, comma);
449
+ const name = (comma == -1) ? locationName : locationName.substring(0, comma);
178
450
  title += ' ' + name;
179
451
  } else if (options.il) {
180
452
  title += ' Israel';
@@ -192,9 +464,7 @@ function getCalendarTitle(events, options) {
192
464
  if (start.getFullYear() != end.getFullYear()) {
193
465
  title += ' ' + start.getFullYear() + '-' + end.getFullYear();
194
466
  } else if (start.getMonth() == end.getMonth()) {
195
- const monthFormat = new Intl.DateTimeFormat('en-US', {
196
- month: 'long'
197
- });
467
+ const monthFormat = new Intl.DateTimeFormat('en-US', {month: 'long'});
198
468
  const startMonth = monthFormat.format(start);
199
469
  title += ' ' + startMonth + ' ' + start.getFullYear();
200
470
  } else {
@@ -210,8 +480,7 @@ function getCalendarTitle(events, options) {
210
480
  * @param {boolean} [firstSentence=false]
211
481
  * @return {string}
212
482
  */
213
- function getHolidayDescription(ev) {
214
- let firstSentence = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
483
+ function getHolidayDescription(ev, firstSentence=false) {
215
484
  const str0 = holidayDescription[ev.getDesc()] || holidayDescription[ev.basename()] || '';
216
485
  const str = str0.normalize();
217
486
  if (firstSentence && str) {
@@ -222,7 +491,11 @@ function getHolidayDescription(ev) {
222
491
  }
223
492
  return str;
224
493
  }
225
- const HOLIDAY_IGNORE_MASK = core.flags.DAF_YOMI | core.flags.OMER_COUNT | core.flags.SHABBAT_MEVARCHIM | core.flags.MOLAD | core.flags.USER_EVENT | core.flags.NACH_YOMI | core.flags.HEBREW_DATE | core.flags.YERUSHALMI_YOMI;
494
+
495
+ const HOLIDAY_IGNORE_MASK = core.flags.DAF_YOMI | core.flags.OMER_COUNT |
496
+ core.flags.SHABBAT_MEVARCHIM | core.flags.MOLAD | core.flags.USER_EVENT |
497
+ core.flags.NACH_YOMI |
498
+ core.flags.HEBREW_DATE | core.flags.YERUSHALMI_YOMI;
226
499
 
227
500
  /**
228
501
  * Makes mulit-line text that summarizes Torah & Haftarah
@@ -232,10 +505,12 @@ const HOLIDAY_IGNORE_MASK = core.flags.DAF_YOMI | core.flags.OMER_COUNT | core.f
232
505
  */
233
506
  function makeTorahMemoText(ev, il) {
234
507
  const mask = ev.getFlags();
235
- if (mask & HOLIDAY_IGNORE_MASK || typeof ev.eventTime !== 'undefined') {
508
+ if ((mask & HOLIDAY_IGNORE_MASK) || (typeof ev.eventTime !== 'undefined')) {
236
509
  return '';
237
510
  }
238
- const reading = mask & core.flags.PARSHA_HASHAVUA ? leyning.getLeyningForParshaHaShavua(ev, il) : leyning.getLeyningForHoliday(ev, il);
511
+ const reading = (mask & core.flags.PARSHA_HASHAVUA) ?
512
+ leyning.getLeyningForParshaHaShavua(ev, il) :
513
+ leyning.getLeyningForHoliday(ev, il);
239
514
  let memo = '';
240
515
  if (reading && (reading.summary || reading.haftara)) {
241
516
  if (reading.summary) {
@@ -245,14 +520,13 @@ function makeTorahMemoText(ev, il) {
245
520
  memo += '\n';
246
521
  }
247
522
  if (reading.haftara) {
248
- var _reading$reason;
249
523
  memo += 'Haftarah: ' + reading.haftara;
250
- if ((_reading$reason = reading.reason) !== null && _reading$reason !== void 0 && _reading$reason.haftara) {
524
+ if (reading.reason?.haftara) {
251
525
  memo += ' | ' + reading.reason.haftara;
252
526
  }
253
527
  }
254
528
  }
255
- if (reading !== null && reading !== void 0 && reading.sephardic) {
529
+ if (reading?.sephardic) {
256
530
  memo += '\nHaftarah for Sephardim: ' + reading.sephardic;
257
531
  }
258
532
  return memo;
@@ -304,8 +578,7 @@ function appendIsraelAndTracking(url, il, utmSource, utmMedium, utmCampaign) {
304
578
  u.pathname = '/h/' + path.substring(10);
305
579
  } else if (isSedrot) {
306
580
  u.pathname = '/s/' + path.substring(8);
307
- } else {
308
- // isOmer
581
+ } else { // isOmer
309
582
  u.pathname = '/o/' + path.substring(6);
310
583
  }
311
584
  if (!utmCampaign || !(utmCampaign.startsWith('ical-') || utmCampaign.startsWith('pdf-'))) {
@@ -345,7 +618,7 @@ function shouldRenderBrief(ev) {
345
618
  const mask = ev.getFlags();
346
619
  if (mask & core.flags.HEBREW_DATE) {
347
620
  const hd = ev.getDate();
348
- return hd.getDate() === 1 ? false : true;
621
+ return (hd.getDate() === 1) ? false : true;
349
622
  } else if (mask & (core.flags.DAF_YOMI | core.flags.YERUSHALMI_YOMI)) {
350
623
  return true;
351
624
  } else if (mask & core.flags.MINOR_FAST && ev.getDesc().substring(0, 16) === 'Yom Kippur Katan') {
@@ -359,6 +632,7 @@ function shouldRenderBrief(ev) {
359
632
 
360
633
  // eslint-disable-next-line max-len
361
634
  const csvHeader = '"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"';
635
+
362
636
  const CATEGORY = {
363
637
  dafyomi: 'Daf Yomi',
364
638
  mishnayomi: 'Mishna Yomi',
@@ -372,7 +646,7 @@ const CATEGORY = {
372
646
  parashat: 'Torah Reading',
373
647
  roshchodesh: 'Jewish Holidays',
374
648
  user: 'Personal',
375
- zmanim: ''
649
+ zmanim: '',
376
650
  };
377
651
 
378
652
  /**
@@ -387,10 +661,12 @@ function eventToCsv(e, options) {
387
661
  const mon = d.getMonth() + 1;
388
662
  const year = String(d.getFullYear()).padStart(4, '0');
389
663
  const date = options.euro ? `"${mday}/${mon}/${year}"` : `"${mon}/${mday}/${year}"`;
664
+
390
665
  let startTime = '';
391
666
  let endTime = '';
392
667
  let endDate = '';
393
668
  let allDay = '"true"';
669
+
394
670
  const timed = Boolean(e.eventTime);
395
671
  let subj = shouldRenderBrief(e) ? e.renderBrief(options.locale) : e.render(options.locale);
396
672
  if (e.eventTime) {
@@ -399,31 +675,36 @@ function eventToCsv(e, options) {
399
675
  endDate = date;
400
676
  allDay = '"false"';
401
677
  }
678
+
402
679
  let loc = 'Jewish Holidays';
403
680
  const mask = e.getFlags();
404
681
  if (timed && typeof options.location === 'object') {
405
682
  const locationName = options.location.getShortName();
406
683
  const comma = locationName.indexOf(',');
407
- loc = comma === -1 ? locationName : locationName.substring(0, comma);
684
+ loc = (comma === -1) ? locationName : locationName.substring(0, comma);
408
685
  } else {
409
686
  const category = CATEGORY[getEventCategories(e)[0]];
410
687
  if (typeof category === 'string') {
411
688
  loc = category;
412
689
  }
413
690
  }
691
+
414
692
  subj = subj.replace(/,/g, '').replace(/"/g, '\'\'');
693
+
415
694
  if (options.appendHebrewToSubject) {
416
695
  const hebrew = e.renderBrief('he');
417
696
  if (hebrew) {
418
697
  subj += ` / ${hebrew}`;
419
698
  }
420
699
  }
700
+
421
701
  let memo0 = e.memo || getHolidayDescription(e, true);
422
702
  if (!memo0 && typeof e.linkedEvent !== 'undefined') {
423
703
  memo0 = e.linkedEvent.render(options.locale);
424
704
  }
425
705
  const memo = memo0.replace(/,/g, ';').replace(/"/g, '\'\'').replace(/\n/g, ' / ');
426
- const showTimeAs = timed || mask & core.flags.CHAG ? 4 : 3;
706
+
707
+ const showTimeAs = (timed || (mask & core.flags.CHAG)) ? 4 : 3;
427
708
  return `"${subj}",${date},${startTime},${endDate},${endTime},${allDay},"${memo}","${showTimeAs}","${loc}"`;
428
709
  }
429
710
 
@@ -433,7 +714,7 @@ function eventToCsv(e, options) {
433
714
  * @return {string}
434
715
  */
435
716
  function eventsToCsv(events, options) {
436
- return [csvHeader].concat(events.map(e => eventToCsv(e, options))).join('\r\n') + '\r\n';
717
+ return [csvHeader].concat(events.map((e) => eventToCsv(e, options))).join('\r\n') + '\r\n';
437
718
  }
438
719
 
439
720
  /**
@@ -452,20 +733,19 @@ function eventIsoDate(ev) {
452
733
  * @param {boolean} [leyning=true]
453
734
  * @return {Object}
454
735
  */
455
- function eventsToClassicApi(events, options) {
456
- let leyning = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
736
+ function eventsToClassicApi(events, options, leyning=true) {
457
737
  const result = {
458
738
  title: getCalendarTitle(events, options),
459
- date: new Date().toISOString()
739
+ date: new Date().toISOString(),
460
740
  };
461
741
  result.location = locationToPlainObj(options.location);
462
742
  if (events.length) {
463
743
  result.range = {
464
744
  start: eventIsoDate(events[0]),
465
- end: eventIsoDate(events[events.length - 1])
745
+ end: eventIsoDate(events[events.length - 1]),
466
746
  };
467
747
  }
468
- result.items = events.map(ev => eventToClassicApiObject(ev, options, leyning));
748
+ result.items = events.map((ev) => eventToClassicApiObject(ev, options, leyning));
469
749
  return result;
470
750
  }
471
751
 
@@ -476,13 +756,14 @@ function eventsToClassicApi(events, options) {
476
756
  * @param {boolean} [leyning=true]
477
757
  * @return {Object}
478
758
  */
479
- function eventToClassicApiObject(ev, options) {
480
- let leyning$1 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
759
+ function eventToClassicApiObject(ev, options, leyning$1=true) {
481
760
  const timed = Boolean(ev.eventTime);
482
761
  const hd = ev.getDate();
483
762
  const dt = hd.greg();
484
763
  const tzid = typeof options.location === 'object' ? options.location.getTzid() : 'UTC';
485
- const date = timed ? core.Zmanim.formatISOWithTimeZone(tzid, ev.eventTime) : toISOString(dt);
764
+ const date = timed ?
765
+ core.Zmanim.formatISOWithTimeZone(tzid, ev.eventTime) :
766
+ toISOString(dt);
486
767
  const categories = getEventCategories(ev);
487
768
  const mask = ev.getFlags();
488
769
  let title = shouldRenderBrief(ev) ? ev.renderBrief(options.locale) : ev.render(options.locale);
@@ -494,7 +775,7 @@ function eventToClassicApiObject(ev, options) {
494
775
  }
495
776
  const result = {
496
777
  title: title,
497
- date: date
778
+ date: date,
498
779
  };
499
780
  if (!timed) {
500
781
  result.hdate = hd.toString();
@@ -503,7 +784,7 @@ function eventToClassicApiObject(ev, options) {
503
784
  if (categories.length > 1) {
504
785
  result.subcat = categories[1];
505
786
  }
506
- if (categories[0] === 'holiday' && mask & core.flags.CHAG) {
787
+ if (categories[0] === 'holiday' && (mask & core.flags.CHAG)) {
507
788
  result.yomtov = true;
508
789
  }
509
790
  if (title != desc) {
@@ -516,8 +797,10 @@ function eventToClassicApiObject(ev, options) {
516
797
  if (!candles) {
517
798
  if (leyning$1) {
518
799
  const il = options.il;
519
- const isParsha = mask === core.flags.PARSHA_HASHAVUA;
520
- const reading = isParsha ? leyning.getLeyningForParshaHaShavua(ev, il) : leyning.getLeyningForHoliday(ev, il);
800
+ const isParsha = (mask === core.flags.PARSHA_HASHAVUA);
801
+ const reading = isParsha ?
802
+ leyning.getLeyningForParshaHaShavua(ev, il) :
803
+ leyning.getLeyningForHoliday(ev, il);
521
804
  if (reading) {
522
805
  result.leyning = formatLeyningResult(reading);
523
806
  const hyear = hd.getFullYear();
@@ -534,20 +817,21 @@ function eventToClassicApiObject(ev, options) {
534
817
  const utmSource = options.utmSource || 'js';
535
818
  const utmMedium = options.utmMedium || 'api';
536
819
  const utmCampaign = options.utmCampaign;
537
- result.link = appendIsraelAndTracking(url, options.il, utmSource, utmMedium, utmCampaign);
820
+ result.link = appendIsraelAndTracking(url, options.il,
821
+ utmSource, utmMedium, utmCampaign);
538
822
  }
539
823
  }
540
824
  if (mask & core.flags.OMER_COUNT) {
541
825
  result.omer = {
542
826
  count: {
543
827
  he: ev.getTodayIs('he'),
544
- en: ev.getTodayIs('en')
828
+ en: ev.getTodayIs('en'),
545
829
  },
546
830
  sefira: {
547
831
  he: ev.sefira('he'),
548
832
  translit: ev.sefira('translit'),
549
- en: ev.sefira('en')
550
- }
833
+ en: ev.sefira('en'),
834
+ },
551
835
  };
552
836
  }
553
837
  if (mask & core.flags.MOLAD) {
@@ -558,18 +842,18 @@ function eventToClassicApiObject(ev, options) {
558
842
  dow: m.dow,
559
843
  hour: m.hour,
560
844
  minutes: m.minutes,
561
- chalakim: m.chalakim
845
+ chalakim: m.chalakim,
562
846
  };
563
847
  delete result.hebrew;
564
848
  }
565
- if (options.heDateParts && !timed || mask & core.flags.HEBREW_DATE) {
849
+ if ((options.heDateParts && !timed) || (mask & core.flags.HEBREW_DATE)) {
566
850
  const yy = hd.getFullYear();
567
851
  const mm = hd.getMonthName();
568
852
  const dd = hd.getDate();
569
853
  result.heDateParts = {
570
854
  y: core.gematriya(yy),
571
855
  m: core.Locale.gettext(mm, 'he-x-NoNikud'),
572
- d: core.gematriya(dd)
856
+ d: core.gematriya(dd),
573
857
  };
574
858
  }
575
859
  const memo = ev.memo || holidayDescription[ev.basename()];
@@ -590,13 +874,12 @@ function eventToClassicApiObject(ev, options) {
590
874
  * @return {Object}
591
875
  */
592
876
  function formatAliyot(result, aliyot) {
593
- Object.keys(aliyot).forEach(num => {
594
- const aliyah = aliyot[num];
877
+ for (const [num, aliyah] of Object.entries(aliyot)) {
595
878
  if (typeof aliyah !== 'undefined') {
596
879
  const k = num == 'M' ? 'maftir' : num;
597
880
  result[k] = leyning.formatAliyahWithBook(aliyah);
598
881
  }
599
- });
882
+ }
600
883
  return result;
601
884
  }
602
885
 
@@ -619,12 +902,12 @@ function formatLeyningResult(reading) {
619
902
  formatAliyot(result, reading.fullkriyah);
620
903
  }
621
904
  if (reading.reason) {
622
- ['7', '8', 'M'].forEach(num => {
905
+ for (const num of ['7', '8', 'M']) {
623
906
  if (reading.reason[num]) {
624
907
  const k = num == 'M' ? 'maftir' : num;
625
908
  result[k] += ' | ' + reading.reason[num];
626
909
  }
627
- });
910
+ }
628
911
  if (reading.reason.haftara) {
629
912
  result.haftarah += ' | ' + reading.reason.haftara;
630
913
  }
@@ -663,13 +946,14 @@ function getLinkAndGuid(ev, il, tzid, mainUrl, utmSource, utmMedium) {
663
946
  }
664
947
  return [link, guid];
665
948
  }
949
+
666
950
  const localeToLg = {
667
951
  's': 'en',
668
952
  'a': 'en',
669
953
  'he-x-NoNikud': 'he',
670
954
  'h': 'he',
671
955
  'ah': 'en',
672
- 'sh': 'en'
956
+ 'sh': 'en',
673
957
  };
674
958
 
675
959
  /**
@@ -682,7 +966,7 @@ function eventsToRss2(events, options) {
682
966
  weekday: 'long',
683
967
  day: '2-digit',
684
968
  month: 'long',
685
- year: 'numeric'
969
+ year: 'numeric',
686
970
  });
687
971
  const location = options.location;
688
972
  const mainUrl = options.mainUrl;
@@ -693,7 +977,9 @@ function eventsToRss2(events, options) {
693
977
  const description = options.description || title;
694
978
  const utmSource = options.utmSource || 'shabbat1c';
695
979
  const utmMedium = options.utmMedium || 'rss';
696
- const mainUrlEsc = appendIsraelAndTracking(mainUrl, location === null || location === void 0 ? void 0 : location.getIsrael(), utmSource, utmMedium, options.utmCampaign).replace(/&/g, '&');
980
+ const mainUrlEsc = appendIsraelAndTracking(mainUrl,
981
+ location?.getIsrael(),
982
+ utmSource, utmMedium, options.utmCampaign).replace(/&/g, '&');
697
983
  const selfUrlEsc = options.selfUrl.replace(/&/g, '&');
698
984
  const lang = options.lang || localeToLg[options.locale] || options.locale || 'en-US';
699
985
  let str = `<?xml version="1.0" encoding="UTF-8"?>
@@ -707,9 +993,9 @@ function eventsToRss2(events, options) {
707
993
  <copyright>Copyright (c) ${thisYear} Michael J. Radwin. All rights reserved.</copyright>
708
994
  <lastBuildDate>${lastBuildDate}</lastBuildDate>
709
995
  `;
710
- events.forEach(ev => {
996
+ for (const ev of events) {
711
997
  str += eventToRssItem2(ev, options);
712
- });
998
+ }
713
999
  str += '</channel>\n</rss>\n';
714
1000
  return str;
715
1001
  }
@@ -758,11 +1044,7 @@ function eventToRssItem2(ev, options) {
758
1044
  if (candles) {
759
1045
  const colon = subj.indexOf(': ');
760
1046
  if (colon != -1) {
761
- const options = {
762
- location,
763
- il,
764
- locale: core.Locale.getLocaleName()
765
- };
1047
+ const options = {location, il, locale: core.Locale.getLocaleName()};
766
1048
  const time = core.HebrewCalendar.reformatTimeStr(ev.eventTimeStr, 'pm', options);
767
1049
  subj = subj.substring(0, colon) + ': ' + time;
768
1050
  }
@@ -772,7 +1054,9 @@ function eventToRssItem2(ev, options) {
772
1054
  const dayFormat = options.dayFormat;
773
1055
  const description0 = memo || dayFormat.format(evDate);
774
1056
  const description = description0.indexOf('<') === -1 ? description0 : `<![CDATA[${description0}]]>`;
775
- const geoTags = cat0 == 'candles' ? `<geo:lat>${location.getLatitude()}</geo:lat>\n<geo:long>${location.getLongitude()}</geo:long>\n` : '';
1057
+ const geoTags = (cat0 == 'candles') ?
1058
+ `<geo:lat>${location.getLatitude()}</geo:lat>\n<geo:long>${location.getLongitude()}</geo:long>\n` :
1059
+ '';
776
1060
  return `<item>
777
1061
  <title>${subj}</title>
778
1062
  <link>${link}</link>
@@ -799,12 +1083,14 @@ function eventToFullCalendar(ev, tzid, il) {
799
1083
  }
800
1084
  const timed = Boolean(ev.eventTime);
801
1085
  const title = shouldRenderBrief(ev) ? ev.renderBrief() : ev.render();
802
- const start = timed ? core.Zmanim.formatISOWithTimeZone(tzid, ev.eventTime) : toISOString(ev.getDate().greg());
1086
+ const start = timed ?
1087
+ core.Zmanim.formatISOWithTimeZone(tzid, ev.eventTime) :
1088
+ toISOString(ev.getDate().greg());
803
1089
  const result = {
804
1090
  title,
805
1091
  start,
806
1092
  allDay: !timed,
807
- className: classes.join(' ')
1093
+ className: classes.join(' '),
808
1094
  };
809
1095
  const hebrew = ev.renderBrief('he');
810
1096
  if (hebrew) {