@hebcal/rest-api 5.0.0 → 5.0.1

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,4 +1,4 @@
1
- /*! @hebcal/rest-api v5.0.0 */
1
+ /*! @hebcal/rest-api v5.0.1 */
2
2
  var hebcal__rest_api = (function (exports, core, leyning, triennial) {
3
3
  'use strict';
4
4
 
@@ -25,6 +25,8 @@ const AD="Andorra";const AE="United Arab Emirates";const AF="Afghanistan";const
25
25
  * @property {number} geonameid
26
26
  */
27
27
 
28
+ const LOC_FIELDS = ['elevation', 'admin1', 'asciiname', 'geo', 'zip', 'state', 'stateName', 'geonameid'];
29
+
28
30
  /**
29
31
  * Converts a @hebcal/core `Location` to a plain JS object.
30
32
  * @param {Location} location
@@ -41,11 +43,11 @@ function locationToPlainObj(location) {
41
43
  cc: location.getCountryCode(),
42
44
  country: countryNames[location.getCountryCode()]
43
45
  };
44
- ['elevation', 'admin1', 'asciiname', 'geo', 'zip', 'state', 'stateName', 'geonameid'].forEach(k => {
46
+ for (const k of LOC_FIELDS) {
45
47
  if (location[k]) {
46
48
  o[k] = location[k];
47
49
  }
48
- });
50
+ }
49
51
  return o;
50
52
  } else {
51
53
  return {
@@ -590,13 +592,12 @@ function eventToClassicApiObject(ev, options) {
590
592
  * @return {Object}
591
593
  */
592
594
  function formatAliyot(result, aliyot) {
593
- Object.keys(aliyot).forEach(num => {
594
- const aliyah = aliyot[num];
595
+ for (const [num, aliyah] of Object.entries(aliyot)) {
595
596
  if (typeof aliyah !== 'undefined') {
596
597
  const k = num == 'M' ? 'maftir' : num;
597
598
  result[k] = leyning.formatAliyahWithBook(aliyah);
598
599
  }
599
- });
600
+ }
600
601
  return result;
601
602
  }
602
603
 
@@ -619,12 +620,12 @@ function formatLeyningResult(reading) {
619
620
  formatAliyot(result, reading.fullkriyah);
620
621
  }
621
622
  if (reading.reason) {
622
- ['7', '8', 'M'].forEach(num => {
623
+ for (const num of ['7', '8', 'M']) {
623
624
  if (reading.reason[num]) {
624
625
  const k = num == 'M' ? 'maftir' : num;
625
626
  result[k] += ' | ' + reading.reason[num];
626
627
  }
627
- });
628
+ }
628
629
  if (reading.reason.haftara) {
629
630
  result.haftarah += ' | ' + reading.reason.haftara;
630
631
  }
@@ -707,9 +708,9 @@ function eventsToRss2(events, options) {
707
708
  <copyright>Copyright (c) ${thisYear} Michael J. Radwin. All rights reserved.</copyright>
708
709
  <lastBuildDate>${lastBuildDate}</lastBuildDate>
709
710
  `;
710
- events.forEach(ev => {
711
+ for (const ev of events) {
711
712
  str += eventToRssItem2(ev, options);
712
- });
713
+ }
713
714
  str += '</channel>\n</rss>\n';
714
715
  return str;
715
716
  }
@@ -1,2 +1,2 @@
1
- /*! @hebcal/rest-api v5.0.0 */
2
- var hebcal__rest_api=function(e,a,t,o){"use strict";var r={"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:"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)","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:"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","Purim Katan":"Minor Purim celebration during Adar I on leap years",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","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:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","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:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","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:"Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)","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"};var n={AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GE:"Georgia",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GQ:"Equatorial Guinea",GR:"Greece",GT:"Guatemala",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MD:"Moldova",ME:"Montenegro",MG:"Madagascar",MK:"Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MP:"Northern Mariana Islands",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PR:"Puerto Rico",PT:"Portugal",PY:"Paraguay",QA:"Qatar",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SK:"Slovakia",SL:"Sierra Leone",SN:"Senegal",SO:"Somalia",SR:"Suriname",ST:"Sao Tome and Principe",SV:"El Salvador",SY:"Syria",SZ:"Swaziland",TC:"Turks and Caicos Islands",TD:"Chad",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TM:"Turkmenistan",TN:"Tunisia",TR:"Turkey",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"British Virgin Islands",VN:"Vietnam",WS:"Samoa",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"};function i(e){if("object"==typeof e&&null!==e&&"number"==typeof e.latitude){const a={title:e.getName(),city:e.getShortName(),tzid:e.getTzid(),latitude:e.getLatitude(),longitude:e.getLongitude(),cc:e.getCountryCode(),country:n[e.getCountryCode()]};return["elevation","admin1","asciiname","geo","zip","state","stateName","geonameid"].forEach((t=>{e[t]&&(a[t]=e[t])})),a}return{geo:"none"}}function s(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function h(e){return e<10?"0"+e:""+e}function l(e){return e<0?"-00"+l(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:""+e}function d(e){return l(e.getFullYear())+"-"+h(e.getMonth()+1)+"-"+h(e.getDate())}function m(e){const a=e.getDesc();return"Purim"===a||"Erev Purim"===a?["holiday","major"]:e.getCategories()}function c(e,a){let t="Hebcal";const o=a.location,r=null==o?void 0:o.getName();if(a.yahrzeit)t+=" Yahrzeits and Anniversaries";else if(r){const e=r.indexOf(",");t+=" "+(-1==e?r:r.substring(0,e))}else a.il?t+=" Israel":t+=" Diaspora";if("1"==a.subscribe)return t;if(a.year&&(a.isHebrewYear||0==e.length))t+=" "+a.year;else if(e.length){const a=e[0].getDate().greg(),o=e[e.length-1].getDate().greg();if(a.getFullYear()!=o.getFullYear())t+=" "+a.getFullYear()+"-"+o.getFullYear();else if(a.getMonth()==o.getMonth()){t+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(a)+" "+a.getFullYear()}else t+=" "+a.getFullYear()}return t}function g(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const t=(r[e.getDesc()]||r[e.basename()]||"").normalize();if(a&&t){const e=t.indexOf(".");if(-1!=e)return t.substring(0,e)}return t}const u=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.NACH_YOMI|a.flags.HEBREW_DATE|a.flags.YERUSHALMI_YOMI;function f(e,o){const r=e.getFlags();if(r&u||void 0!==e.eventTime)return"";const n=r&a.flags.PARSHA_HASHAVUA?t.getLeyningForParshaHaShavua(e,o):t.getLeyningForHoliday(e,o);let i="";var s;n&&(n.summary||n.haftara)&&(n.summary&&(i+=`Torah: ${n.summary}`),n.summary&&n.haftara&&(i+="\n"),n.haftara&&(i+="Haftarah: "+n.haftara,null!==(s=n.reason)&&void 0!==s&&s.haftara&&(i+=" | "+n.reason.haftara)));return null!=n&&n.sephardic&&(i+="\nHaftarah for Sephardim: "+n.sephardic),i}function b(e,t){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const a=f(e,t);if(a)return a}catch(e){}return e.memo||r[e.basename()]}function y(e,a,t,o,r){const n=new URL(e),i="www.hebcal.com"===n.host;if(i){a&&n.searchParams.set("i","on");const e=n.pathname,i=e.startsWith("/holidays/"),s=e.startsWith("/sedrot/"),h=e.startsWith("/omer/");if(i||s||h)return n.host="hebcal.com",n.pathname=i?"/h/"+e.substring(10):s?"/s/"+e.substring(8):"/o/"+e.substring(6),r&&(r.startsWith("ical-")||r.startsWith("pdf-"))||(t&&n.searchParams.set("us",t),o&&n.searchParams.set("um",o)),r&&n.searchParams.set("uc",r),n.toString()}return(t=i?t:"hebcal.com")&&n.searchParams.set("utm_source",t),o&&n.searchParams.set("utm_medium",o),r&&n.searchParams.set("utm_campaign",r),n.toString()}function S(e){if(void 0!==e.eventTime)return!0;const t=e.getFlags();if(t&a.flags.HEBREW_DATE){return 1!==e.getDate().getDate()}return!!(t&(a.flags.DAF_YOMI|a.flags.YERUSHALMI_YOMI))||(!!(t&a.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(t&a.flags.SHABBAT_MEVARCHIM))}const p='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',v={dafyomi:"Daf Yomi",mishnayomi:"Mishna Yomi",nachyomi:"Nach Yomi",yerushalmi:"Yerushalmi Yomi",hebdate:"Hebrew Date",holiday:"Jewish Holidays",mevarchim:"",molad:"",omer:"",parashat:"Torah Reading",roshchodesh:"Jewish Holidays",user:"Personal",zmanim:""};function w(e,t){const o=e.getDate().greg(),r=o.getDate(),n=o.getMonth()+1,i=String(o.getFullYear()).padStart(4,"0"),s=t.euro?`"${r}/${n}/${i}"`:`"${n}/${r}/${i}"`;let h="",l="",d="",c='"true"';const u=Boolean(e.eventTime);let f=S(e)?e.renderBrief(t.locale):e.render(t.locale);if(e.eventTime){l=h=`"${a.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",t)}"`,d=s,c='"false"'}let b="Jewish Holidays";const y=e.getFlags();if(u&&"object"==typeof t.location){const e=t.location.getShortName(),a=e.indexOf(",");b=-1===a?e:e.substring(0,a)}else{const a=v[m(e)[0]];"string"==typeof a&&(b=a)}if(f=f.replace(/,/g,"").replace(/"/g,"''"),t.appendHebrewToSubject){const a=e.renderBrief("he");a&&(f+=` / ${a}`)}let p=e.memo||g(e,!0);p||void 0===e.linkedEvent||(p=e.linkedEvent.render(t.locale));return`"${f}",${s},${h},${d},${l},${c},"${p.replace(/,/g,";").replace(/"/g,"''").replace(/\n/g," / ")}","${u||y&a.flags.CHAG?4:3}","${b}"`}function H(e){return d(e.getDate().greg())}function T(e,n){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const s=Boolean(e.eventTime),h=e.getDate(),l=h.greg(),c="object"==typeof n.location?n.location.getTzid():"UTC",g=s?a.Zmanim.formatISOWithTimeZone(c,e.eventTime):d(l),u=m(e),f=e.getFlags();let b=S(e)?e.renderBrief(n.locale):e.render(n.locale);const p=e.getDesc(),v="Havdalah"===p||"Candle lighting"===p;if(v){b+=": "+a.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",n)}const w={title:b,date:g};s||(w.hdate=h.toString()),w.category=u[0],u.length>1&&(w.subcat=u[1]),"holiday"===u[0]&&f&a.flags.CHAG&&(w.yomtov=!0),b!=p&&(w.title_orig=p);const H=e.renderBrief("he");if(H&&(w.hebrew=a.Locale.hebrewStripNikkud(H)),!v){if(i){const r=n.il,i=f===a.flags.PARSHA_HASHAVUA,s=i?t.getLeyningForParshaHaShavua(e,r):t.getLeyningForHoliday(e,r);if(s){w.leyning=function(e){const a={};e.summary&&(a.torah=e.summary);e.haftara&&(a.haftarah=e.haftara);e.sephardic&&(a.haftarah_sephardic=e.sephardic);e.fullkriyah&&C(a,e.fullkriyah);e.reason&&(["7","8","M"].forEach((t=>{if(e.reason[t]){a["M"==t?"maftir":t]+=" | "+e.reason[t]}})),e.reason.haftara&&(a.haftarah+=" | "+e.reason.haftara));return a}(s);const a=h.getFullYear();if(i&&!r&&a>=5745){const a=o.getTriennialForParshaHaShavua(e);a&&(w.leyning.triennial=C({},a.aliyot))}}}const r=e.url();if(r){const e=n.utmSource||"js",a=n.utmMedium||"api",t=n.utmCampaign;w.link=y(r,n.il,e,a,t)}}if(f&a.flags.OMER_COUNT&&(w.omer={count:{he:e.getTodayIs("he"),en:e.getTodayIs("en")},sefira:{he:e.sefira("he"),translit:e.sefira("translit"),en:e.sefira("en")}}),f&a.flags.MOLAD){const t=e.molad;w.molad={hy:t.year,hm:a.HDate.getMonthName(t.month,t.year),dow:t.dow,hour:t.hour,minutes:t.minutes,chalakim:t.chalakim},delete w.hebrew}if(n.heDateParts&&!s||f&a.flags.HEBREW_DATE){const e=h.getFullYear(),t=h.getMonthName(),o=h.getDate();w.heDateParts={y:a.gematriya(e),m:a.Locale.gettext(t,"he-x-NoNikud"),d:a.gematriya(o)}}const T=e.memo||r[e.basename()];return"string"==typeof T&&0!==T.length?w.memo=T.normalize():void 0!==e.linkedEvent&&(w.memo=e.linkedEvent.render(n.locale)),n.includeEvent&&(w.ev=e),w}function C(e,a){return Object.keys(a).forEach((o=>{const r=a[o];if(void 0!==r){e["M"==o?"maftir":o]=t.formatAliyahWithBook(r)}})),e}const A={s:"en",a:"en","he-x-NoNikud":"he",h:"he",ah:"en",sh:"en"};function M(e,t){let o=e.render();const r=e.getDate().greg(),n=function(e,a,t,o){if(a){const a=e.eventTime;return a?a.toUTCString():t.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return o}(e,t.evPubDate,r,t.lastBuildDate),i=t.location,h=!!i&&i.getIsrael(),l=i?i.getTzid():"UTC",d=t.utmSource||"shabbat1c",c=t.utmMedium||"rss",g=function(e,t,o,r,n,i){let h,l;const d=e.eventTime||e.getDate().greg(),m=a.Zmanim.formatISOWithTimeZone(o,d),c=m.substring(0,m.indexOf("T")),g=`${c.replace(/-/g,"")}-${s(e.getDesc())}`,u=e.url();if(u)h=y(u,t,n,i).replace(/&/g,"&amp;"),l=`${u}#${g}`;else{const e=`${r}&dt=${c}`,a=y(e,t,n,i).replace(/&/g,"&amp;");l=e.replace(/&/g,"&amp;")+`#${g}`,h=`${a}#${g}`}return[h,l]}(e,h,l,t.mainUrl,d,c),u=g[0],f=g[1],S=m(e)[0],p=e.getDesc();let v;if("Havdalah"===p||"Candle lighting"===p){const t=o.indexOf(": ");if(-1!=t){const r={location:i,il:h,locale:a.Locale.getLocaleName()},n=a.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",r);o=o.substring(0,t)+": "+n}}else v=b(e,h);const w=t.dayFormat,H=v||w.format(r);return`<item>\n<title>${o}</title>\n<link>${u}</link>\n<guid isPermaLink="false">${f}</guid>\n<description>${-1===H.indexOf("<")?H:`<![CDATA[${H}]]>`}</description>\n<category>${S}</category>\n<pubDate>${n}</pubDate>\n${"candles"==S?`<geo:lat>${i.getLatitude()}</geo:lat>\n<geo:long>${i.getLongitude()}</geo:long>\n`:""}</item>\n`}return e.appendIsraelAndTracking=y,e.countryNames=n,e.eventToClassicApiObject=T,e.eventToCsv=w,e.eventToFullCalendar=function(e,t,o){const r=m(e),n=e.getFlags();"holiday"==r[0]&&n&a.flags.CHAG&&r.push("yomtov");const i=Boolean(e.eventTime),s={title:S(e)?e.renderBrief():e.render(),start:i?a.Zmanim.formatISOWithTimeZone(t,e.eventTime):d(e.getDate().greg()),allDay:!i,className:r.join(" ")},h=e.renderBrief("he");h&&(s.hebrew=a.Locale.hebrewStripNikkud(h));const l=e.url();l&&(s.url=y(l,o,"js","fc"));const c=e.getDesc();if(!("Havdalah"===c||"Candle lighting"===c)){const a=b(e,o);a?s.description=a:void 0!==e.linkedEvent&&(s.description=e.linkedEvent.render())}return s},e.eventToRssItem2=M,e.eventsToClassicApi=function(e,a){let t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o={title:c(e,a),date:(new Date).toISOString()};return o.location=i(a.location),e.length&&(o.range={start:H(e[0]),end:H(e[e.length-1])}),o.items=e.map((e=>T(e,a,t))),o},e.eventsToCsv=function(e,a){return[p].concat(e.map((e=>w(e,a)))).join("\r\n")+"\r\n"},e.eventsToRss2=function(e,a){a.dayFormat=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"});const t=a.location,o=a.mainUrl,r=a.buildDate=a.buildDate||new Date,n=r.getFullYear(),i=a.lastBuildDate=r.toUTCString(),s=a.title||c(e,a),h=a.description||s,l=a.utmSource||"shabbat1c",d=a.utmMedium||"rss";let m=`<?xml version="1.0" encoding="UTF-8"?>\n<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:atom="http://www.w3.org/2005/Atom">\n<channel>\n<title>${s}</title>\n<link>${y(o,null==t?void 0:t.getIsrael(),l,d,a.utmCampaign).replace(/&/g,"&amp;")}</link>\n<atom:link href="${a.selfUrl.replace(/&/g,"&amp;")}" rel="self" type="application/rss+xml" />\n<description>${h}</description>\n<language>${a.lang||A[a.locale]||a.locale||"en-US"}</language>\n<copyright>Copyright (c) ${n} Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>${i}</lastBuildDate>\n`;return e.forEach((e=>{m+=M(e,a)})),m+="</channel>\n</rss>\n",m},e.getCalendarTitle=c,e.getDownloadFilename=function(e){let t="hebcal";if(e.year)t+="_"+e.year,e.isHebrewYear&&(t+="h"),e.month&&(t+="_"+e.month);else if("object"==typeof e.start&&"object"==typeof e.end){const o=new a.HDate(e.start),r=new a.HDate(e.end),n=o.greg().getFullYear(),i=r.greg().getFullYear();t+=n===i?"_"+n:"_"+n+"_"+i}if("object"==typeof e.location){const a=e.location,o=a.zip||a.asciiname||a.getShortName();o&&(t+="_"+s(o).replace(/[-]/g,"_"))}return t},e.getEventCategories=m,e.getHolidayDescription=g,e.holidayDescription=r,e.locationToPlainObj=i,e.makeAnchor=s,e.makeMemo=b,e.makeTorahMemoText=f,e.pad2=h,e.pad4=l,e.renderTitleWithoutTime=function(e){return void 0===e.eventTime?e.render():e.renderBrief()},e.shouldRenderBrief=S,e.toISOString=d,e}({},hebcal,hebcal__leyning,hebcal__triennial);
1
+ /*! @hebcal/rest-api v5.0.1 */
2
+ var hebcal__rest_api=function(e,a,t,o){"use strict";var n={"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:"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)","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:"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","Purim Katan":"Minor Purim celebration during Adar I on leap years",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","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:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","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:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","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:"Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)","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"};var r={AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GE:"Georgia",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GQ:"Equatorial Guinea",GR:"Greece",GT:"Guatemala",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MD:"Moldova",ME:"Montenegro",MG:"Madagascar",MK:"Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MP:"Northern Mariana Islands",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PR:"Puerto Rico",PT:"Portugal",PY:"Paraguay",QA:"Qatar",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SK:"Slovakia",SL:"Sierra Leone",SN:"Senegal",SO:"Somalia",SR:"Suriname",ST:"Sao Tome and Principe",SV:"El Salvador",SY:"Syria",SZ:"Swaziland",TC:"Turks and Caicos Islands",TD:"Chad",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TM:"Turkmenistan",TN:"Tunisia",TR:"Turkey",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"British Virgin Islands",VN:"Vietnam",WS:"Samoa",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"};const i=["elevation","admin1","asciiname","geo","zip","state","stateName","geonameid"];function s(e){if("object"==typeof e&&null!==e&&"number"==typeof e.latitude){const a={title:e.getName(),city:e.getShortName(),tzid:e.getTzid(),latitude:e.getLatitude(),longitude:e.getLongitude(),cc:e.getCountryCode(),country:r[e.getCountryCode()]};for(const t of i)e[t]&&(a[t]=e[t]);return a}return{geo:"none"}}function h(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function l(e){return e<10?"0"+e:""+e}function d(e){return e<0?"-00"+d(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:""+e}function m(e){return d(e.getFullYear())+"-"+l(e.getMonth()+1)+"-"+l(e.getDate())}function c(e){const a=e.getDesc();return"Purim"===a||"Erev Purim"===a?["holiday","major"]:e.getCategories()}function g(e,a){let t="Hebcal";const o=a.location,n=null==o?void 0:o.getName();if(a.yahrzeit)t+=" Yahrzeits and Anniversaries";else if(n){const e=n.indexOf(",");t+=" "+(-1==e?n:n.substring(0,e))}else a.il?t+=" Israel":t+=" Diaspora";if("1"==a.subscribe)return t;if(a.year&&(a.isHebrewYear||0==e.length))t+=" "+a.year;else if(e.length){const a=e[0].getDate().greg(),o=e[e.length-1].getDate().greg();if(a.getFullYear()!=o.getFullYear())t+=" "+a.getFullYear()+"-"+o.getFullYear();else if(a.getMonth()==o.getMonth()){t+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(a)+" "+a.getFullYear()}else t+=" "+a.getFullYear()}return t}function f(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const t=(n[e.getDesc()]||n[e.basename()]||"").normalize();if(a&&t){const e=t.indexOf(".");if(-1!=e)return t.substring(0,e)}return t}const u=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.NACH_YOMI|a.flags.HEBREW_DATE|a.flags.YERUSHALMI_YOMI;function b(e,o){const n=e.getFlags();if(n&u||void 0!==e.eventTime)return"";const r=n&a.flags.PARSHA_HASHAVUA?t.getLeyningForParshaHaShavua(e,o):t.getLeyningForHoliday(e,o);let i="";var s;r&&(r.summary||r.haftara)&&(r.summary&&(i+=`Torah: ${r.summary}`),r.summary&&r.haftara&&(i+="\n"),r.haftara&&(i+="Haftarah: "+r.haftara,null!==(s=r.reason)&&void 0!==s&&s.haftara&&(i+=" | "+r.reason.haftara)));return null!=r&&r.sephardic&&(i+="\nHaftarah for Sephardim: "+r.sephardic),i}function y(e,t){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const a=b(e,t);if(a)return a}catch(e){}return e.memo||n[e.basename()]}function S(e,a,t,o,n){const r=new URL(e),i="www.hebcal.com"===r.host;if(i){a&&r.searchParams.set("i","on");const e=r.pathname,i=e.startsWith("/holidays/"),s=e.startsWith("/sedrot/"),h=e.startsWith("/omer/");if(i||s||h)return r.host="hebcal.com",r.pathname=i?"/h/"+e.substring(10):s?"/s/"+e.substring(8):"/o/"+e.substring(6),n&&(n.startsWith("ical-")||n.startsWith("pdf-"))||(t&&r.searchParams.set("us",t),o&&r.searchParams.set("um",o)),n&&r.searchParams.set("uc",n),r.toString()}return(t=i?t:"hebcal.com")&&r.searchParams.set("utm_source",t),o&&r.searchParams.set("utm_medium",o),n&&r.searchParams.set("utm_campaign",n),r.toString()}function p(e){if(void 0!==e.eventTime)return!0;const t=e.getFlags();if(t&a.flags.HEBREW_DATE){return 1!==e.getDate().getDate()}return!!(t&(a.flags.DAF_YOMI|a.flags.YERUSHALMI_YOMI))||(!!(t&a.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(t&a.flags.SHABBAT_MEVARCHIM))}const v='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',w={dafyomi:"Daf Yomi",mishnayomi:"Mishna Yomi",nachyomi:"Nach Yomi",yerushalmi:"Yerushalmi Yomi",hebdate:"Hebrew Date",holiday:"Jewish Holidays",mevarchim:"",molad:"",omer:"",parashat:"Torah Reading",roshchodesh:"Jewish Holidays",user:"Personal",zmanim:""};function H(e,t){const o=e.getDate().greg(),n=o.getDate(),r=o.getMonth()+1,i=String(o.getFullYear()).padStart(4,"0"),s=t.euro?`"${n}/${r}/${i}"`:`"${r}/${n}/${i}"`;let h="",l="",d="",m='"true"';const g=Boolean(e.eventTime);let u=p(e)?e.renderBrief(t.locale):e.render(t.locale);if(e.eventTime){l=h=`"${a.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",t)}"`,d=s,m='"false"'}let b="Jewish Holidays";const y=e.getFlags();if(g&&"object"==typeof t.location){const e=t.location.getShortName(),a=e.indexOf(",");b=-1===a?e:e.substring(0,a)}else{const a=w[c(e)[0]];"string"==typeof a&&(b=a)}if(u=u.replace(/,/g,"").replace(/"/g,"''"),t.appendHebrewToSubject){const a=e.renderBrief("he");a&&(u+=` / ${a}`)}let S=e.memo||f(e,!0);S||void 0===e.linkedEvent||(S=e.linkedEvent.render(t.locale));return`"${u}",${s},${h},${d},${l},${m},"${S.replace(/,/g,";").replace(/"/g,"''").replace(/\n/g," / ")}","${g||y&a.flags.CHAG?4:3}","${b}"`}function T(e){return m(e.getDate().greg())}function C(e,r){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const s=Boolean(e.eventTime),h=e.getDate(),l=h.greg(),d="object"==typeof r.location?r.location.getTzid():"UTC",g=s?a.Zmanim.formatISOWithTimeZone(d,e.eventTime):m(l),f=c(e),u=e.getFlags();let b=p(e)?e.renderBrief(r.locale):e.render(r.locale);const y=e.getDesc(),v="Havdalah"===y||"Candle lighting"===y;if(v){b+=": "+a.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",r)}const w={title:b,date:g};s||(w.hdate=h.toString()),w.category=f[0],f.length>1&&(w.subcat=f[1]),"holiday"===f[0]&&u&a.flags.CHAG&&(w.yomtov=!0),b!=y&&(w.title_orig=y);const H=e.renderBrief("he");if(H&&(w.hebrew=a.Locale.hebrewStripNikkud(H)),!v){if(i){const n=r.il,i=u===a.flags.PARSHA_HASHAVUA,s=i?t.getLeyningForParshaHaShavua(e,n):t.getLeyningForHoliday(e,n);if(s){w.leyning=function(e){const a={};e.summary&&(a.torah=e.summary);e.haftara&&(a.haftarah=e.haftara);e.sephardic&&(a.haftarah_sephardic=e.sephardic);e.fullkriyah&&A(a,e.fullkriyah);if(e.reason){for(const t of["7","8","M"])if(e.reason[t]){a["M"==t?"maftir":t]+=" | "+e.reason[t]}e.reason.haftara&&(a.haftarah+=" | "+e.reason.haftara)}return a}(s);const a=h.getFullYear();if(i&&!n&&a>=5745){const a=o.getTriennialForParshaHaShavua(e);a&&(w.leyning.triennial=A({},a.aliyot))}}}const n=e.url();if(n){const e=r.utmSource||"js",a=r.utmMedium||"api",t=r.utmCampaign;w.link=S(n,r.il,e,a,t)}}if(u&a.flags.OMER_COUNT&&(w.omer={count:{he:e.getTodayIs("he"),en:e.getTodayIs("en")},sefira:{he:e.sefira("he"),translit:e.sefira("translit"),en:e.sefira("en")}}),u&a.flags.MOLAD){const t=e.molad;w.molad={hy:t.year,hm:a.HDate.getMonthName(t.month,t.year),dow:t.dow,hour:t.hour,minutes:t.minutes,chalakim:t.chalakim},delete w.hebrew}if(r.heDateParts&&!s||u&a.flags.HEBREW_DATE){const e=h.getFullYear(),t=h.getMonthName(),o=h.getDate();w.heDateParts={y:a.gematriya(e),m:a.Locale.gettext(t,"he-x-NoNikud"),d:a.gematriya(o)}}const T=e.memo||n[e.basename()];return"string"==typeof T&&0!==T.length?w.memo=T.normalize():void 0!==e.linkedEvent&&(w.memo=e.linkedEvent.render(r.locale)),r.includeEvent&&(w.ev=e),w}function A(e,a){for(const[o,n]of Object.entries(a))if(void 0!==n){e["M"==o?"maftir":o]=t.formatAliyahWithBook(n)}return e}const M={s:"en",a:"en","he-x-NoNikud":"he",h:"he",ah:"en",sh:"en"};function R(e,t){let o=e.render();const n=e.getDate().greg(),r=function(e,a,t,o){if(a){const a=e.eventTime;return a?a.toUTCString():t.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return o}(e,t.evPubDate,n,t.lastBuildDate),i=t.location,s=!!i&&i.getIsrael(),l=i?i.getTzid():"UTC",d=t.utmSource||"shabbat1c",m=t.utmMedium||"rss",g=function(e,t,o,n,r,i){let s,l;const d=e.eventTime||e.getDate().greg(),m=a.Zmanim.formatISOWithTimeZone(o,d),c=m.substring(0,m.indexOf("T")),g=`${c.replace(/-/g,"")}-${h(e.getDesc())}`,f=e.url();if(f)s=S(f,t,r,i).replace(/&/g,"&amp;"),l=`${f}#${g}`;else{const e=`${n}&dt=${c}`,a=S(e,t,r,i).replace(/&/g,"&amp;");l=e.replace(/&/g,"&amp;")+`#${g}`,s=`${a}#${g}`}return[s,l]}(e,s,l,t.mainUrl,d,m),f=g[0],u=g[1],b=c(e)[0],p=e.getDesc();let v;if("Havdalah"===p||"Candle lighting"===p){const t=o.indexOf(": ");if(-1!=t){const n={location:i,il:s,locale:a.Locale.getLocaleName()},r=a.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",n);o=o.substring(0,t)+": "+r}}else v=y(e,s);const w=t.dayFormat,H=v||w.format(n);return`<item>\n<title>${o}</title>\n<link>${f}</link>\n<guid isPermaLink="false">${u}</guid>\n<description>${-1===H.indexOf("<")?H:`<![CDATA[${H}]]>`}</description>\n<category>${b}</category>\n<pubDate>${r}</pubDate>\n${"candles"==b?`<geo:lat>${i.getLatitude()}</geo:lat>\n<geo:long>${i.getLongitude()}</geo:long>\n`:""}</item>\n`}return e.appendIsraelAndTracking=S,e.countryNames=r,e.eventToClassicApiObject=C,e.eventToCsv=H,e.eventToFullCalendar=function(e,t,o){const n=c(e),r=e.getFlags();"holiday"==n[0]&&r&a.flags.CHAG&&n.push("yomtov");const i=Boolean(e.eventTime),s={title:p(e)?e.renderBrief():e.render(),start:i?a.Zmanim.formatISOWithTimeZone(t,e.eventTime):m(e.getDate().greg()),allDay:!i,className:n.join(" ")},h=e.renderBrief("he");h&&(s.hebrew=a.Locale.hebrewStripNikkud(h));const l=e.url();l&&(s.url=S(l,o,"js","fc"));const d=e.getDesc();if(!("Havdalah"===d||"Candle lighting"===d)){const a=y(e,o);a?s.description=a:void 0!==e.linkedEvent&&(s.description=e.linkedEvent.render())}return s},e.eventToRssItem2=R,e.eventsToClassicApi=function(e,a){let t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o={title:g(e,a),date:(new Date).toISOString()};return o.location=s(a.location),e.length&&(o.range={start:T(e[0]),end:T(e[e.length-1])}),o.items=e.map((e=>C(e,a,t))),o},e.eventsToCsv=function(e,a){return[v].concat(e.map((e=>H(e,a)))).join("\r\n")+"\r\n"},e.eventsToRss2=function(e,a){a.dayFormat=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"});const t=a.location,o=a.mainUrl,n=a.buildDate=a.buildDate||new Date,r=n.getFullYear(),i=a.lastBuildDate=n.toUTCString(),s=a.title||g(e,a),h=a.description||s,l=a.utmSource||"shabbat1c",d=a.utmMedium||"rss";let m=`<?xml version="1.0" encoding="UTF-8"?>\n<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:atom="http://www.w3.org/2005/Atom">\n<channel>\n<title>${s}</title>\n<link>${S(o,null==t?void 0:t.getIsrael(),l,d,a.utmCampaign).replace(/&/g,"&amp;")}</link>\n<atom:link href="${a.selfUrl.replace(/&/g,"&amp;")}" rel="self" type="application/rss+xml" />\n<description>${h}</description>\n<language>${a.lang||M[a.locale]||a.locale||"en-US"}</language>\n<copyright>Copyright (c) ${r} Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>${i}</lastBuildDate>\n`;for(const t of e)m+=R(t,a);return m+="</channel>\n</rss>\n",m},e.getCalendarTitle=g,e.getDownloadFilename=function(e){let t="hebcal";if(e.year)t+="_"+e.year,e.isHebrewYear&&(t+="h"),e.month&&(t+="_"+e.month);else if("object"==typeof e.start&&"object"==typeof e.end){const o=new a.HDate(e.start),n=new a.HDate(e.end),r=o.greg().getFullYear(),i=n.greg().getFullYear();t+=r===i?"_"+r:"_"+r+"_"+i}if("object"==typeof e.location){const a=e.location,o=a.zip||a.asciiname||a.getShortName();o&&(t+="_"+h(o).replace(/[-]/g,"_"))}return t},e.getEventCategories=c,e.getHolidayDescription=f,e.holidayDescription=n,e.locationToPlainObj=s,e.makeAnchor=h,e.makeMemo=y,e.makeTorahMemoText=b,e.pad2=l,e.pad4=d,e.renderTitleWithoutTime=function(e){return void 0===e.eventTime?e.render():e.renderBrief()},e.shouldRenderBrief=p,e.toISOString=m,e}({},hebcal,hebcal__leyning,hebcal__triennial);
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v5.0.0 */
1
+ /*! @hebcal/rest-api v5.0.1 */
2
2
  var hebcalFullCalendar = (function (exports, core, leyning) {
3
3
  'use strict';
4
4
 
@@ -1,2 +1,2 @@
1
- /*! @hebcal/rest-api v5.0.0 */
1
+ /*! @hebcal/rest-api v5.0.1 */
2
2
  var hebcalFullCalendar=function(e,a,o){"use strict";var t={"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:"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)","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:"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","Purim Katan":"Minor Purim celebration during Adar I on leap years",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","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:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","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:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","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:"Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)","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"};function r(e){return e<10?"0"+e:""+e}function h(e){return e<0?"-00"+h(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:""+e}function n(e){return h(e.getFullYear())+"-"+r(e.getMonth()+1)+"-"+r(e.getDate())}var s=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.NACH_YOMI|a.flags.HEBREW_DATE|a.flags.YERUSHALMI_YOMI;function i(e,r){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{var h=function(e,t){var r=e.getFlags();if(r&s||void 0!==e.eventTime)return"";var h,n=r&a.flags.PARSHA_HASHAVUA?o.getLeyningForParshaHaShavua(e,t):o.getLeyningForHoliday(e,t),i="";return n&&(n.summary||n.haftara)&&(n.summary&&(i+="Torah: ".concat(n.summary)),n.summary&&n.haftara&&(i+="\n"),n.haftara&&(i+="Haftarah: "+n.haftara,null!==(h=n.reason)&&void 0!==h&&h.haftara&&(i+=" | "+n.reason.haftara))),null!=n&&n.sephardic&&(i+="\nHaftarah for Sephardim: "+n.sephardic),i}(e,r);if(h)return h}catch(e){}return e.memo||t[e.basename()]}return e.eventToFullCalendar=function(e,o,t){var r=function(e){var a=e.getDesc();return"Purim"===a||"Erev Purim"===a?["holiday","major"]:e.getCategories()}(e),h=e.getFlags();"holiday"==r[0]&&h&a.flags.CHAG&&r.push("yomtov");var s=Boolean(e.eventTime),d={title:function(e){if(void 0!==e.eventTime)return!0;var o=e.getFlags();return o&a.flags.HEBREW_DATE?1!==e.getDate().getDate():!!(o&(a.flags.DAF_YOMI|a.flags.YERUSHALMI_YOMI))||!!(o&a.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(o&a.flags.SHABBAT_MEVARCHIM)}(e)?e.renderBrief():e.render(),start:s?a.Zmanim.formatISOWithTimeZone(o,e.eventTime):n(e.getDate().greg()),allDay:!s,className:r.join(" ")},l=e.renderBrief("he");l&&(d.hebrew=a.Locale.hebrewStripNikkud(l));var m=e.url();m&&(d.url=function(e,a,o,t,r){var h=new URL(e),n="www.hebcal.com"===h.host;if(n){a&&h.searchParams.set("i","on");var s=h.pathname,i=s.startsWith("/holidays/"),d=s.startsWith("/sedrot/"),l=s.startsWith("/omer/");if(i||d||l)return h.host="hebcal.com",h.pathname=i?"/h/"+s.substring(10):d?"/s/"+s.substring(8):"/o/"+s.substring(6),r&&(r.startsWith("ical-")||r.startsWith("pdf-"))||(o&&h.searchParams.set("us",o),t&&h.searchParams.set("um",t)),r&&h.searchParams.set("uc",r),h.toString()}return(o=n?o:"hebcal.com")&&h.searchParams.set("utm_source",o),t&&h.searchParams.set("utm_medium",t),r&&h.searchParams.set("utm_campaign",r),h.toString()}(m,t,"js","fc"));var f=e.getDesc();if(!("Havdalah"===f||"Candle lighting"===f)){var c=i(e,t);c?d.description=c:void 0!==e.linkedEvent&&(d.description=e.linkedEvent.render())}return d},e}({},hebcal,hebcal__leyning);
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v5.0.0 */
1
+ /*! @hebcal/rest-api v5.0.1 */
2
2
  'use strict';
3
3
 
4
4
  var core = require('@hebcal/core');
@@ -28,6 +28,8 @@ const AD="Andorra";const AE="United Arab Emirates";const AF="Afghanistan";const
28
28
  * @property {number} geonameid
29
29
  */
30
30
 
31
+ const LOC_FIELDS = ['elevation', 'admin1', 'asciiname', 'geo', 'zip', 'state', 'stateName', 'geonameid'];
32
+
31
33
  /**
32
34
  * Converts a @hebcal/core `Location` to a plain JS object.
33
35
  * @param {Location} location
@@ -44,11 +46,11 @@ function locationToPlainObj(location) {
44
46
  cc: location.getCountryCode(),
45
47
  country: countryNames[location.getCountryCode()]
46
48
  };
47
- ['elevation', 'admin1', 'asciiname', 'geo', 'zip', 'state', 'stateName', 'geonameid'].forEach(k => {
49
+ for (const k of LOC_FIELDS) {
48
50
  if (location[k]) {
49
51
  o[k] = location[k];
50
52
  }
51
- });
53
+ }
52
54
  return o;
53
55
  } else {
54
56
  return {
@@ -590,13 +592,12 @@ function eventToClassicApiObject(ev, options, leyning$1 = true) {
590
592
  * @return {Object}
591
593
  */
592
594
  function formatAliyot(result, aliyot) {
593
- Object.keys(aliyot).forEach(num => {
594
- const aliyah = aliyot[num];
595
+ for (const [num, aliyah] of Object.entries(aliyot)) {
595
596
  if (typeof aliyah !== 'undefined') {
596
597
  const k = num == 'M' ? 'maftir' : num;
597
598
  result[k] = leyning.formatAliyahWithBook(aliyah);
598
599
  }
599
- });
600
+ }
600
601
  return result;
601
602
  }
602
603
 
@@ -619,12 +620,12 @@ function formatLeyningResult(reading) {
619
620
  formatAliyot(result, reading.fullkriyah);
620
621
  }
621
622
  if (reading.reason) {
622
- ['7', '8', 'M'].forEach(num => {
623
+ for (const num of ['7', '8', 'M']) {
623
624
  if (reading.reason[num]) {
624
625
  const k = num == 'M' ? 'maftir' : num;
625
626
  result[k] += ' | ' + reading.reason[num];
626
627
  }
627
- });
628
+ }
628
629
  if (reading.reason.haftara) {
629
630
  result.haftarah += ' | ' + reading.reason.haftara;
630
631
  }
@@ -707,9 +708,9 @@ function eventsToRss2(events, options) {
707
708
  <copyright>Copyright (c) ${thisYear} Michael J. Radwin. All rights reserved.</copyright>
708
709
  <lastBuildDate>${lastBuildDate}</lastBuildDate>
709
710
  `;
710
- events.forEach(ev => {
711
+ for (const ev of events) {
711
712
  str += eventToRssItem2(ev, options);
712
- });
713
+ }
713
714
  str += '</channel>\n</rss>\n';
714
715
  return str;
715
716
  }
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/rest-api v5.0.0 */
1
+ /*! @hebcal/rest-api v5.0.1 */
2
2
  import { flags, HDate, HebrewCalendar, Zmanim, Locale, gematriya } from '@hebcal/core';
3
3
  import { getLeyningForParshaHaShavua, getLeyningForHoliday, formatAliyahWithBook } from '@hebcal/leyning';
4
4
  import { getTriennialForParshaHaShavua } from '@hebcal/triennial';
@@ -26,6 +26,8 @@ const AD="Andorra";const AE="United Arab Emirates";const AF="Afghanistan";const
26
26
  * @property {number} geonameid
27
27
  */
28
28
 
29
+ const LOC_FIELDS = ['elevation', 'admin1', 'asciiname', 'geo', 'zip', 'state', 'stateName', 'geonameid'];
30
+
29
31
  /**
30
32
  * Converts a @hebcal/core `Location` to a plain JS object.
31
33
  * @param {Location} location
@@ -42,11 +44,11 @@ function locationToPlainObj(location) {
42
44
  cc: location.getCountryCode(),
43
45
  country: countryNames[location.getCountryCode()]
44
46
  };
45
- ['elevation', 'admin1', 'asciiname', 'geo', 'zip', 'state', 'stateName', 'geonameid'].forEach(k => {
47
+ for (const k of LOC_FIELDS) {
46
48
  if (location[k]) {
47
49
  o[k] = location[k];
48
50
  }
49
- });
51
+ }
50
52
  return o;
51
53
  } else {
52
54
  return {
@@ -588,13 +590,12 @@ function eventToClassicApiObject(ev, options, leyning = true) {
588
590
  * @return {Object}
589
591
  */
590
592
  function formatAliyot(result, aliyot) {
591
- Object.keys(aliyot).forEach(num => {
592
- const aliyah = aliyot[num];
593
+ for (const [num, aliyah] of Object.entries(aliyot)) {
593
594
  if (typeof aliyah !== 'undefined') {
594
595
  const k = num == 'M' ? 'maftir' : num;
595
596
  result[k] = formatAliyahWithBook(aliyah);
596
597
  }
597
- });
598
+ }
598
599
  return result;
599
600
  }
600
601
 
@@ -617,12 +618,12 @@ function formatLeyningResult(reading) {
617
618
  formatAliyot(result, reading.fullkriyah);
618
619
  }
619
620
  if (reading.reason) {
620
- ['7', '8', 'M'].forEach(num => {
621
+ for (const num of ['7', '8', 'M']) {
621
622
  if (reading.reason[num]) {
622
623
  const k = num == 'M' ? 'maftir' : num;
623
624
  result[k] += ' | ' + reading.reason[num];
624
625
  }
625
- });
626
+ }
626
627
  if (reading.reason.haftara) {
627
628
  result.haftarah += ' | ' + reading.reason.haftara;
628
629
  }
@@ -705,9 +706,9 @@ function eventsToRss2(events, options) {
705
706
  <copyright>Copyright (c) ${thisYear} Michael J. Radwin. All rights reserved.</copyright>
706
707
  <lastBuildDate>${lastBuildDate}</lastBuildDate>
707
708
  `;
708
- events.forEach(ev => {
709
+ for (const ev of events) {
709
710
  str += eventToRssItem2(ev, options);
710
- });
711
+ }
711
712
  str += '</channel>\n</rss>\n';
712
713
  return str;
713
714
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/rest-api",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "keywords": [
6
6
  "hebcal"
@@ -24,9 +24,9 @@
24
24
  "url": "https://github.com/hebcal/hebcal-rest-api/issues"
25
25
  },
26
26
  "dependencies": {
27
- "@hebcal/core": "^5.0.0-rc2",
28
- "@hebcal/leyning": "^8.0.0",
29
- "@hebcal/triennial": "^5.0.0"
27
+ "@hebcal/core": "^5.0.1",
28
+ "@hebcal/leyning": "^8.1.0",
29
+ "@hebcal/triennial": "^5.0.1"
30
30
  },
31
31
  "scripts": {
32
32
  "build": "rollup -c",
@@ -42,8 +42,8 @@
42
42
  ]
43
43
  },
44
44
  "devDependencies": {
45
- "@babel/core": "^7.23.3",
46
- "@babel/preset-env": "^7.23.3",
45
+ "@babel/core": "^7.23.5",
46
+ "@babel/preset-env": "^7.23.5",
47
47
  "@babel/register": "^7.22.15",
48
48
  "@hebcal/learning": "^5.0.0",
49
49
  "@rollup/plugin-babel": "^6.0.4",
@@ -51,12 +51,12 @@
51
51
  "@rollup/plugin-json": "^6.0.1",
52
52
  "@rollup/plugin-node-resolve": "^15.2.3",
53
53
  "@rollup/plugin-terser": "^0.4.4",
54
- "ava": "^5.3.1",
55
- "core-js": "^3.33.3",
56
- "eslint": "^8.54.0",
54
+ "ava": "^6.0.1",
55
+ "core-js": "^3.34.0",
56
+ "eslint": "^8.55.0",
57
57
  "eslint-config-google": "^0.14.0",
58
58
  "jsdoc": "^4.0.2",
59
59
  "jsdoc-to-markdown": "^8.0.0",
60
- "rollup": "^4.5.1"
60
+ "rollup": "^4.7.0"
61
61
  }
62
62
  }