Socket
Socket
Sign inDemoInstall

@hebcal/rest-api

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hebcal/rest-api - npm Package Compare versions

Comparing version 2.6.0 to 2.7.0

2

dist/bundle.min.js

@@ -1,1 +0,1 @@

!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("@hebcal/core"),require("@hebcal/leyning")):"function"==typeof define&&define.amd?define(["exports","@hebcal/core","@hebcal/leyning"],a):a((e="undefined"!=typeof globalThis?globalThis:e||self).hebcal__rest_api={},e.hebcal__core,e.hebcal__leyning)}(this,(function(e,a,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(t);const r={};const i=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function s(e,a){const t=function(e){const a=r[e];if(a)return a;const t=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:e});return r[e]=t,t}(e).format(a),n=i.exec(t);let o=n[4];return"24"==o&&(o="00"),"".concat(n[3],"-").concat(n[1],"-").concat(n[2],"T").concat(o,":").concat(n[5],":").concat(n[6],"Z")}var h={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot","Lag BaOmer":"33rd day of counting the Omer","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","Rosh Chodesh Adar I":"Beginning of new Hebrew month of Adar I (on leap years). Adar I is the 12th month of the Hebrew year. Corresponds to February or March on the Gregorian calendar","Rosh Chodesh Adar II":'Beginning of new Hebrew month of Adar II (on leap years). Adar II (sometimes "Adar Bet" or "Adar Sheni") is the 13th month of the Hebrew year, occurring only on leap years. Corresponds to February or March on the Gregorian calendar',"Rosh Chodesh Adar":"Beginning of new Hebrew month of Adar. Adar is the 12th month of the Hebrew year. Corresponds to February or March on the Gregorian calendar","Rosh Chodesh Av":"Beginning of new Hebrew month of Av. Av is the 5th month of the Hebrew year. Corresponds to July or August on the Gregorian calendar","Rosh Chodesh Cheshvan":"Beginning of new Hebrew month of Cheshvan. Cheshvan is the 8th month of the Hebrew year. Corresponds to October or November on the Gregorian calendar","Rosh Chodesh Elul":"Beginning of new Hebrew month of Elul. Elul is the 6th month of the Hebrew year. Corresponds to August or September on the Gregorian calendar","Rosh Chodesh Iyyar":"Beginning of new Hebrew month of Iyyar. Iyyar (somtimes transliterated Iyar) is the 2nd month of the Hebrew year. Corresponds to April or May on the Gregorian calendar","Rosh Chodesh Kislev":"Beginning of new Hebrew month of Kislev. Kislev is the 9th month of the Hebrew year. Corresponds to November or December on the Gregorian calendar","Rosh Chodesh Nisan":"Beginning of new Hebrew month of Nisan. Nisan (sometimes transliterated Nissan) is the 1st month of the Hebrew year. rresponds to March or April on the Gregorian calendar","Rosh Chodesh Sh'vat":"Beginning of new Hebrew month of Sh'vat. Sh'vat (sometimes transliterated Shevat) is the 11th month of the Hebrew year. Corresponds to January or February on the Gregorian calendar","Rosh Chodesh Sivan":"Beginning of new Hebrew month of Sivan. Sivan is the 3rd month of the Hebrew year. Corresponds to May or June on the Gregorian calendar","Rosh Chodesh Tamuz":"Beginning of new Hebrew month of Tamuz. Tamuz (sometimes transliterated Tammuz) is the 4th month of the Hebrew year. Corresponds to June or July on the Gregorian calendar","Rosh Chodesh Tevet":"Beginning of new Hebrew month of Tevet. Tevet is the 10th month of the Hebrew year. Corresponds to December or January on the Gregorian calendar","Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Shabbat Chazon":"Shabbat before Tish'a B'Av (Shabbat of Prophecy/Shabbat of Vision)","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan","Shabbat HaGadol":"Shabbat before Pesach","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 Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar","Shabbat Shuva":"Shabbat that falls between Rosh Hashanah and Yom Kippur (Shabbat of Returning)","Shabbat Zachor":"Shabbat before Purim",Shavuot:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","Shmini Atzeret":"Eighth Day of Assembly","Shushan Purim":"Purim celebrated in Jerusalem and walled cities",Sigd:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","Simchat Torah":"Day of Celebrating the Torah",Sukkot:"Feast of Booths","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","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","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Note that Hebcal displays modern holidays like Yom HaAtzma'ut according to the Israeli schedule. 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. Note that Hebcal displays modern holidays like Yom HaZikaron according to the Israeli schedule. 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","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};function l(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function c(e){return e<10?"0"+e:String(e)}function m(e){return e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function d(e,a){const t=function(e,a){const t=s("UTC",a),n=s(e,a),o=new Date(t).getTime()-new Date(n).getTime();return Math.ceil(o/1e3/60)}(e,a),n=Math.abs(t),o=n%60;return(Boolean(t<0)?"+":"-")+c(Math.floor(n/60))+":"+c(o)}function g(e){return m(e.getFullYear())+"-"+c(e.getMonth()+1)+"-"+c(e.getDate())}function u(e,a,t){const n=g(e);return a?n+"T"+a+":00"+d(t,e):n}function f(e){switch(e.getFlags()){case a.flags.OMER_COUNT:return["omer"];case a.flags.HEBREW_DATE:return["hebdate"];case a.flags.PARSHA_HASHAVUA:return["parashat"];case a.flags.DAF_YOMI:return["dafyomi"];case a.flags.ROSH_CHODESH:return["roshchodesh"];case a.flags.SPECIAL_SHABBAT:return["holiday","shabbat"];case a.flags.MINOR_FAST:return["holiday","fast"];case a.flags.MODERN_HOLIDAY:return["holiday","modern"];case a.flags.SHABBAT_MEVARCHIM:return["mevarchim"]}if(e.cholHaMoedDay)return["holiday","major","cholhamoed"];switch(e.getDesc()){case"Havdalah":return["havdalah"];case"Candle lighting":return["candles"];case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":return["holiday","minor"];default:return["holiday","major"]}}function b(e,a){let t="Hebcal";const n=a.location;if(a.yahrzeit)t+=" Yahrzeits and Anniversaries";else if(n&&n.name){const e=n.name.indexOf(",");t+=" "+(-1==e?n.name:n.name.substring(0,e))}else a.il?t+=" Israel":t+=" Diaspora";if(a.isHebrewYear||0==e.length)t+=" "+a.year;else{const a=e[0].getDate().greg(),n=e[e.length-1].getDate().greg();if(a.getFullYear()!=n.getFullYear())t+=" "+a.getFullYear()+"-"+n.getFullYear();else if(a.getMonth()==n.getMonth()){t+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(a)+" "+a.getFullYear()}else t+=" "+a.getFullYear()}return t}function S(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const t=h[e.getDesc()]||h[e.basename()]||"";if(a&&t){const e=t.indexOf(".");if(-1!=e)return t.substring(0,e)}return t}const y='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"';function p(e,t){const n=e.getDate().greg(),o=n.getDate(),r=n.getMonth()+1,i=String(n.getFullYear()).padStart(4,"0"),s=t.euro?'"'.concat(o,"/").concat(r,"/").concat(i,'"'):'"'.concat(r,"/").concat(o,"/").concat(i,'"');let h=e.render(),l="",c="",m="",d='"true"';const g=Boolean(e.eventTime),u=e.getDesc();if(e.eventTime){const n=a.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",t);if(c=l='"'.concat(n,'"'),m=s,d='"false"',"Havdalah"===u||"Candle lighting"===u){const e=h.indexOf(": ");-1!=e&&(h=h.substring(0,e))}}let f="Jewish Holidays";const b=e.getFlags();if(g&&t.location&&t.location.name){const e=t.location.name.indexOf(",");f=-1==e?t.location.name:t.location.name.substring(0,e)}else if(b&a.flags.DAF_YOMI){const e=h.indexOf(": ");-1!=e&&(f=h.substring(0,e),h=h.substring(e+2))}if(h=h.replace(/,/g,"").replace(/"/g,"''"),t.appendHebrewToSubject){const a=e.renderBrief("he");a&&(h+=" / ".concat(a))}const y=(e.memo||S(e,!0)).replace(/,/g,";").replace(/"/g,"''"),p=g||b&a.flags.CHAG?4:3;return'"'.concat(h,'",').concat(s,",").concat(l,",").concat(m,",").concat(c,",").concat(d,',"').concat(y,'","').concat(p,'","').concat(f,'"')}var w={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 C(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=Boolean(e.eventTime),i=e.getDate(),s=i.greg(),l="object"==typeof t.location?t.location.getTzid():"UTC",c=r?u(s,e.eventTimeStr,l):g(s),m=f(e);let d=e.render();const b=e.getDesc(),S="Havdalah"===b||"Candle lighting"===b;if(S){const n=d.indexOf(": ");if(-1!=n){const o=a.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",t);d=d.substring(0,n)+": "+o}}const y={title:d,date:c,category:m[0]};m.length>1&&(y.subcat=m[1]),"holiday"==m[0]&&e.getFlags()&a.flags.CHAG&&(y.yomtov=!0),d!=b&&(y.title_orig=b);const p=e.renderBrief("he");if(p&&(y.hebrew=a.Locale.hebrewStripNikkud(p)),!S){if(n){const n=t.il,r=e.getFlags()==a.flags.PARSHA_HASHAVUA,s=r?o.default.getLeyningForParshaHaShavua(e,n):o.default.getLeyningForHoliday(e,n);if(s){y.leyning=v(s);const a=i.getFullYear();if(r&&!n&&a>=5745&&a<=5830){const a=o.default.getTriennialForParshaHaShavua(e);a&&(y.leyning.triennial=A({},a))}}}const r=e.url();if(r)if("https://www.hebcal.com"==r.substring(0,22)){const e=t.il?"i=on&":"";y.link="".concat(r,"?").concat(e,"utm_source=js&utm_medium=api")}else{const e=-1==r.indexOf("?")?"?":"&";y.link=r+e+"utm_source=hebcal.com&utm_medium=api"}}const w=e.memo||h[e.basename()];return w&&(y.memo=w),y}function A(e,a){return Object.keys(a).forEach(t=>{const n=a[t];if(void 0!==n){e["M"==t?"maftir":t]=o.default.formatAliyahWithBook(n)}}),e}function v(e){const a={};return 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),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)),a}const T="utm_source=shabbat1c&amp;utm_medium=rss";function H(e,t,n,o,r){let i=e.render();const s=e.getDate().greg(),h=function(e,a,t,n){if(a){const a=e.eventTime;return a?a.toUTCString():t.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return n}(e,t,s,n),c=function(e){let a,t;const n=(e.eventTime||e.getDate().greg()).toISOString(),o=encodeURIComponent(n.substring(0,e.eventTime?19:10)),r=e.url();if(r)a=-1==r.indexOf("?")?r+"?"+T:r+"&amp;"+T,t=a+"&amp;dt="+o;else{const n=l(e.getDesc());t=a="https://www.hebcal.com/shabbat?"+T+"&amp;dt="+o+"#"+n}return[a,t]}(e),m=c[0],d=c[1],g=o.format(s),u=f(e)[0],b=e.getDesc();if("Havdalah"===b||"Candle lighting"===b){const t=i.indexOf(": ");if(-1!=t){const n={location:r,il:r.getIsrael(),locale:a.Locale.getLocaleName()},o=a.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",n);i=i.substring(0,t)+": "+o}}const S="candles"==u?"<geo:lat>".concat(r.getLatitude(),"</geo:lat>\n<geo:long>").concat(r.getLongitude(),"</geo:long>\n"):"";return"<item>\n<title>".concat(i,"</title>\n<link>").concat(m,'</link>\n<guid isPermaLink="false">').concat(d,"</guid>\n<description>").concat(g,"</description>\n<category>").concat(u,"</category>\n<pubDate>").concat(h,"</pubDate>\n").concat(S,"</item>\n")}e.countryNames=w,e.eventToClassicApiObject=C,e.eventToCsv=p,e.eventToFullCalendar=function(e,t,n){const o=f(e);"holiday"==o[0]&&e.getFlags()&a.flags.CHAG&&o.push("yomtov");let r=e.render();const i=e.getDesc(),s="Havdalah"===i||"Candle lighting"===i;if(s){const e=r.indexOf(":");-1!=e&&(r=r.substring(0,e))}else if(e.getFlags()&a.flags.DAF_YOMI){const e=r.indexOf(":");-1!=e&&(r=r.substring(e+1))}const l=Boolean(e.eventTime),c={title:r,start:u(e.getDate().greg(),e.eventTimeStr,t),allDay:!l,className:o.join(" ")};let m=e.renderBrief("he");if(m){const t=m.indexOf(":");-1!=t&&e.getFlags()&a.flags.DAF_YOMI&&(m=m.substring(t+1)),c.hebrew=a.Locale.hebrewStripNikkud(m)}const d=e.url();if(d)if("https://www.hebcal.com"==d.substring(0,22)){const e=n?"i=on&":"";c.url="".concat(d,"?").concat(e,"utm_source=js&utm_medium=fc")}else{const e=-1==d.indexOf("?")?"?":"&";c.url=d+e+"utm_source=hebcal.com&utm_medium=fc"}if(!s){const a=e.memo||h[e.basename()];a&&(c.description=a)}return c},e.eventToRssItem=H,e.eventsToClassicApi=function(e,a){let t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n={title:b(e,a),date:(new Date).toISOString()},o=a.location;return"object"==typeof o&&"string"==typeof o.name?(n.location={title:o.getName(),city:o.getShortName(),tzid:o.getTzid(),latitude:o.getLatitude(),longitude:o.getLongitude(),cc:o.getCountryCode(),country:w[o.getCountryCode()]},["admin1","asciiname","geo","zip","state","geonameid"].forEach(e=>{o[e]&&(n.location[e]=o[e])})):n.location={geo:"none"},n.items=e.map(e=>C(e,a,t)),n},e.eventsToCsv=function(e,a){return[y].concat(e.map(e=>p(e,a))).join("\r\n")+"\r\n"},e.eventsToRss=function(e,a,t,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"en-US",r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];const i=a.getName(),s=(new Date).getFullYear(),h="Shabbat Times for "+i,l=(new Date).toUTCString(),c=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"});t=t.replace(/&/g,"&amp;"),n=n.replace(/&/g,"&amp;");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>'.concat(h,"</title>\n<link>").concat(t,"&amp;").concat(T,'</link>\n<atom:link href="').concat(n,'" rel="self" type="application/rss+xml" />\n<description>Weekly Shabbat candle lighting times for ').concat(i,"</description>\n<language>").concat(o,"</language>\n<copyright>Copyright (c) ").concat(s," Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>").concat(l,"</lastBuildDate>\n");return e.forEach(e=>{m+=H(e,r,l,c,a)}),m+="</channel>\n</rss>\n",m},e.getCalendarTitle=b,e.getDownloadFilename=function(e){let a="hebcal_"+e.year;if(e.isHebrewYear&&(a+="H"),e.month&&(a+="_"+e.month),e.location){a+="_"+(e.location.zip||e.location.asciiname||e.location.getShortName()).replace(/[^A-Za-z0-9]/g,"_")}return a},e.getEventCategories=f,e.getHolidayDescription=S,e.holidayDescription=h,e.makeAnchor=l,e.pad2=c,e.pad4=m,e.timeZoneOffsetStr=d,e.toISOString=g,e.toISOStringWithTimezone=u,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@hebcal/core"),require("@hebcal/leyning")):"function"==typeof define&&define.amd?define(["exports","@hebcal/core","@hebcal/leyning"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).hebcal__rest_api={},e.hebcal__core,e.hebcal__leyning)}(this,(function(e,t,n){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=a(n),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var s,c=function(e){return e&&e.Math==Math&&e},l=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof r&&r)||Function("return this")(),u={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},h=function(e){try{return!!e()}catch(e){return!0}},f={}.toString,d="".split,m=h((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==function(e){return f.call(e).slice(8,-1)}(e)?d.call(e,""):Object(e)}:Object,g=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},p=function(e){return m(g(e))},y=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),b=function(e){return"object"==typeof e?null!==e:"function"==typeof e},S=l.document,v=b(S)&&b(S.createElement),w=function(e){return v?S.createElement(e):{}},T=!y&&!h((function(){return 7!=Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a})),A=function(e){if(!b(e))throw TypeError(String(e)+" is not an object");return e},C=function(e,t){if(!b(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!b(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!b(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!b(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")},H=Object.defineProperty,M={f:y?H:function(e,t,n){if(A(e),t=C(t,!0),A(n),T)try{return H(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},O=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},I=y?function(e,t,n){return M.f(e,t,O(1,n))}:function(e,t,n){return e[t]=n,e},B=function(e,t){try{I(l,e,t)}catch(n){l[e]=t}return t},P="__core-js_shared__",L=l[P]||B(P,{}),D=i((function(e){(e.exports=function(e,t){return L[e]||(L[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),R={}.hasOwnProperty,F=function(e,t){return R.call(e,t)},E=0,G=Math.random(),N=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++E+G).toString(36)},k=!!Object.getOwnPropertySymbols&&!h((function(){return!String(Symbol())})),_=k&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,j=D("wks"),Y=l.Symbol,z=_?Y:Y&&Y.withoutSetter||N,x=function(e){return F(j,e)||(k&&F(Y,e)?j[e]=Y[e]:j[e]=z("Symbol."+e)),j[e]},U=Math.ceil,K=Math.floor,J=function(e){return isNaN(e=+e)?0:(e>0?K:U)(e)},V=Math.min,Z=Math.max,W=Math.min,q=function(e){return function(t,n,a){var o,r,i=p(t),s=(o=i.length)>0?V(J(o),9007199254740991):0,c=function(e,t){var n=J(e);return n<0?Z(n+t,0):W(n,t)}(a,s);if(e&&n!=n){for(;s>c;)if((r=i[c++])!=r)return!0}else for(;s>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}},Q={includes:q(!0),indexOf:q(!1)},X={},$=Q.indexOf,ee=function(e,t){var n,a=p(e),o=0,r=[];for(n in a)!F(X,n)&&F(a,n)&&r.push(n);for(;t.length>o;)F(a,n=t[o++])&&(~$(r,n)||r.push(n));return r},te=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ne=Object.keys||function(e){return ee(e,te)},ae=y?Object.defineProperties:function(e,t){A(e);for(var n,a=ne(t),o=a.length,r=0;o>r;)M.f(e,n=a[r++],t[n]);return e},oe=l,re=function(e){return"function"==typeof e?e:void 0},ie=function(e,t){return arguments.length<2?re(oe[e])||re(l[e]):oe[e]&&oe[e][t]||l[e]&&l[e][t]},se=ie("document","documentElement"),ce=D("keys"),le=function(e){return ce[e]||(ce[e]=N(e))},ue=le("IE_PROTO"),he=function(){},fe=function(e){return"<script>"+e+"</"+"script>"},de=function(){try{s=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;de=s?function(e){e.write(fe("")),e.close();var t=e.parentWindow.Object;return e=null,t}(s):((t=w("iframe")).style.display="none",se.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(fe("document.F=Object")),e.close(),e.F);for(var n=te.length;n--;)delete de.prototype[te[n]];return de()};X[ue]=!0;var me=Object.create||function(e,t){var n;return null!==e?(he.prototype=A(e),n=new he,he.prototype=null,n[ue]=e):n=de(),void 0===t?n:ae(n,t)},ge=x("unscopables"),pe=Array.prototype;null==pe[ge]&&M.f(pe,ge,{configurable:!0,value:me(null)});var ye=function(e){pe[ge][e]=!0},be=Function.toString;"function"!=typeof L.inspectSource&&(L.inspectSource=function(e){return be.call(e)});var Se,ve,we,Te=L.inspectSource,Ae=l.WeakMap,Ce="function"==typeof Ae&&/native code/.test(Te(Ae)),He=l.WeakMap;if(Ce){var Me=new He,Oe=Me.get,Ie=Me.has,Be=Me.set;Se=function(e,t){return Be.call(Me,e,t),t},ve=function(e){return Oe.call(Me,e)||{}},we=function(e){return Ie.call(Me,e)}}else{var Pe=le("state");X[Pe]=!0,Se=function(e,t){return I(e,Pe,t),t},ve=function(e){return F(e,Pe)?e[Pe]:{}},we=function(e){return F(e,Pe)}}var Le,De,Re,Fe={set:Se,get:ve,has:we,enforce:function(e){return we(e)?ve(e):Se(e,{})},getterFor:function(e){return function(t){var n;if(!b(t)||(n=ve(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Ee={}.propertyIsEnumerable,Ge=Object.getOwnPropertyDescriptor,Ne={f:Ge&&!Ee.call({1:2},1)?function(e){var t=Ge(this,e);return!!t&&t.enumerable}:Ee},ke=Object.getOwnPropertyDescriptor,_e={f:y?ke:function(e,t){if(e=p(e),t=C(t,!0),T)try{return ke(e,t)}catch(e){}if(F(e,t))return O(!Ne.f.call(e,t),e[t])}},je=i((function(e){var t=Fe.get,n=Fe.enforce,a=String(String).split("String");(e.exports=function(e,t,o,r){var i=!!r&&!!r.unsafe,s=!!r&&!!r.enumerable,c=!!r&&!!r.noTargetGet;"function"==typeof o&&("string"!=typeof t||F(o,"name")||I(o,"name",t),n(o).source=a.join("string"==typeof t?t:"")),e!==l?(i?!c&&e[t]&&(s=!0):delete e[t],s?e[t]=o:I(e,t,o)):s?e[t]=o:B(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||Te(this)}))})),Ye=te.concat("length","prototype"),ze={f:Object.getOwnPropertyNames||function(e){return ee(e,Ye)}},xe={f:Object.getOwnPropertySymbols},Ue=ie("Reflect","ownKeys")||function(e){var t=ze.f(A(e)),n=xe.f;return n?t.concat(n(e)):t},Ke=function(e,t){for(var n=Ue(t),a=M.f,o=_e.f,r=0;r<n.length;r++){var i=n[r];F(e,i)||a(e,i,o(t,i))}},Je=/#|\.prototype\./,Ve=function(e,t){var n=We[Ze(e)];return n==Qe||n!=qe&&("function"==typeof t?h(t):!!t)},Ze=Ve.normalize=function(e){return String(e).replace(Je,".").toLowerCase()},We=Ve.data={},qe=Ve.NATIVE="N",Qe=Ve.POLYFILL="P",Xe=Ve,$e=_e.f,et=!h((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),tt=le("IE_PROTO"),nt=Object.prototype,at=et?Object.getPrototypeOf:function(e){return e=Object(g(e)),F(e,tt)?e[tt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?nt:null},ot=x("iterator"),rt=!1;[].keys&&("next"in(Re=[].keys())?(De=at(at(Re)))!==Object.prototype&&(Le=De):rt=!0),null==Le&&(Le={}),F(Le,ot)||I(Le,ot,(function(){return this}));var it={IteratorPrototype:Le,BUGGY_SAFARI_ITERATORS:rt},st=M.f,ct=x("toStringTag"),lt=function(e,t,n){e&&!F(e=n?e:e.prototype,ct)&&st(e,ct,{configurable:!0,value:t})},ut=it.IteratorPrototype,ht=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,a){return A(n),function(e){if(!b(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(a),t?e.call(n,a):n.__proto__=a,n}}():void 0),ft=it.IteratorPrototype,dt=it.BUGGY_SAFARI_ITERATORS,mt=x("iterator"),gt="keys",pt="values",yt="entries",bt=function(){return this},St="Array Iterator",vt=Fe.set,wt=Fe.getterFor(St),Tt=function(e,t,n,a,o,r,i){!function(e,t,n){var a=t+" Iterator";e.prototype=me(ut,{next:O(1,n)}),lt(e,a,!1)}(n,t,a);var s,c,u,h=function(e){if(e===o&&p)return p;if(!dt&&e in m)return m[e];switch(e){case gt:case pt:case yt:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,m=e.prototype,g=m[mt]||m["@@iterator"]||o&&m[o],p=!dt&&g||h(o),y="Array"==t&&m.entries||g;if(y&&(s=at(y.call(new e)),ft!==Object.prototype&&s.next&&(at(s)!==ft&&(ht?ht(s,ft):"function"!=typeof s[mt]&&I(s,mt,bt)),lt(s,f,!0))),o==pt&&g&&g.name!==pt&&(d=!0,p=function(){return g.call(this)}),m[mt]!==p&&I(m,mt,p),o)if(c={values:h(pt),keys:r?p:h(gt),entries:h(yt)},i)for(u in c)(dt||d||!(u in m))&&je(m,u,c[u]);else!function(e,t){var n,a,o,r,i,s=e.target,c=e.global,u=e.stat;if(n=c?l:u?l[s]||B(s,{}):(l[s]||{}).prototype)for(a in t){if(r=t[a],o=e.noTargetGet?(i=$e(n,a))&&i.value:n[a],!Xe(c?a:s+(u?".":"#")+a,e.forced)&&void 0!==o){if(typeof r==typeof o)continue;Ke(r,o)}(e.sham||o&&o.sham)&&I(r,"sham",!0),je(n,a,r,e)}}({target:t,proto:!0,forced:dt||d},c);return c}(Array,"Array",(function(e,t){vt(this,{type:St,target:p(e),index:0,kind:t})}),(function(){var e=wt(this),t=e.target,n=e.kind,a=e.index++;return!t||a>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:a,done:!1}:"values"==n?{value:t[a],done:!1}:{value:[a,t[a]],done:!1}}),"values");ye("keys"),ye("values"),ye("entries");var At=x("iterator"),Ct=x("toStringTag"),Ht=Tt.values;for(var Mt in u){var Ot=l[Mt],It=Ot&&Ot.prototype;if(It){if(It[At]!==Ht)try{I(It,At,Ht)}catch(e){It[At]=Ht}if(It[Ct]||I(It,Ct,Mt),u[Mt])for(var Bt in Tt)if(It[Bt]!==Tt[Bt])try{I(It,Bt,Tt[Bt])}catch(e){It[Bt]=Tt[Bt]}}}const Pt={};const Lt=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function Dt(e,t){const n=function(e){const t=Pt[e];if(t)return t;const n=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:e});return Pt[e]=n,n}(e).format(t),a=Lt.exec(n);let o=a[4];return"24"==o&&(o="00"),"".concat(a[3],"-").concat(a[1],"-").concat(a[2],"T").concat(o,":").concat(a[5],":").concat(a[6],"Z")}var Rt={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot","Lag BaOmer":"33rd day of counting the Omer","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","Rosh Chodesh Adar I":"Beginning of new Hebrew month of Adar I (on leap years). Adar I is the 12th month of the Hebrew year. Corresponds to February or March on the Gregorian calendar","Rosh Chodesh Adar II":'Beginning of new Hebrew month of Adar II (on leap years). Adar II (sometimes "Adar Bet" or "Adar Sheni") is the 13th month of the Hebrew year, occurring only on leap years. Corresponds to February or March on the Gregorian calendar',"Rosh Chodesh Adar":"Beginning of new Hebrew month of Adar. Adar is the 12th month of the Hebrew year. Corresponds to February or March on the Gregorian calendar","Rosh Chodesh Av":"Beginning of new Hebrew month of Av. Av is the 5th month of the Hebrew year. Corresponds to July or August on the Gregorian calendar","Rosh Chodesh Cheshvan":"Beginning of new Hebrew month of Cheshvan. Cheshvan is the 8th month of the Hebrew year. Corresponds to October or November on the Gregorian calendar","Rosh Chodesh Elul":"Beginning of new Hebrew month of Elul. Elul is the 6th month of the Hebrew year. Corresponds to August or September on the Gregorian calendar","Rosh Chodesh Iyyar":"Beginning of new Hebrew month of Iyyar. Iyyar (somtimes transliterated Iyar) is the 2nd month of the Hebrew year. Corresponds to April or May on the Gregorian calendar","Rosh Chodesh Kislev":"Beginning of new Hebrew month of Kislev. Kislev is the 9th month of the Hebrew year. Corresponds to November or December on the Gregorian calendar","Rosh Chodesh Nisan":"Beginning of new Hebrew month of Nisan. Nisan (sometimes transliterated Nissan) is the 1st month of the Hebrew year. rresponds to March or April on the Gregorian calendar","Rosh Chodesh Sh'vat":"Beginning of new Hebrew month of Sh'vat. Sh'vat (sometimes transliterated Shevat) is the 11th month of the Hebrew year. Corresponds to January or February on the Gregorian calendar","Rosh Chodesh Sivan":"Beginning of new Hebrew month of Sivan. Sivan is the 3rd month of the Hebrew year. Corresponds to May or June on the Gregorian calendar","Rosh Chodesh Tamuz":"Beginning of new Hebrew month of Tamuz. Tamuz (sometimes transliterated Tammuz) is the 4th month of the Hebrew year. Corresponds to June or July on the Gregorian calendar","Rosh Chodesh Tevet":"Beginning of new Hebrew month of Tevet. Tevet is the 10th month of the Hebrew year. Corresponds to December or January on the Gregorian calendar","Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Shabbat Chazon":"Shabbat before Tish'a B'Av (Shabbat of Prophecy/Shabbat of Vision)","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan","Shabbat HaGadol":"Shabbat before Pesach","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 Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar","Shabbat Shuva":"Shabbat that falls between Rosh Hashanah and Yom Kippur (Shabbat of Returning)","Shabbat Zachor":"Shabbat before Purim",Shavuot:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","Shmini Atzeret":"Eighth Day of Assembly","Shushan Purim":"Purim celebrated in Jerusalem and walled cities",Sigd:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","Simchat Torah":"Day of Celebrating the Torah",Sukkot:"Feast of Booths","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","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","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Note that Hebcal displays modern holidays like Yom HaAtzma'ut according to the Israeli schedule. 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. Note that Hebcal displays modern holidays like Yom HaZikaron according to the Israeli schedule. 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","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};function Ft(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function Et(e){return e<10?"0"+e:String(e)}function Gt(e){return e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function Nt(e,t){const n=function(e,t){const n=Dt("UTC",t),a=Dt(e,t),o=new Date(n).getTime()-new Date(a).getTime();return Math.ceil(o/1e3/60)}(e,t),a=Math.abs(n),o=a%60;return(Boolean(n<0)?"+":"-")+Et(Math.floor(a/60))+":"+Et(o)}function kt(e){return Gt(e.getFullYear())+"-"+Et(e.getMonth()+1)+"-"+Et(e.getDate())}function _t(e,t,n){const a=kt(e);return t?a+"T"+t+":00"+Nt(n,e):a}function jt(e){switch(e.getFlags()){case t.flags.OMER_COUNT:return["omer"];case t.flags.HEBREW_DATE:return["hebdate"];case t.flags.PARSHA_HASHAVUA:return["parashat"];case t.flags.DAF_YOMI:return["dafyomi"];case t.flags.ROSH_CHODESH:return["roshchodesh"];case t.flags.SPECIAL_SHABBAT:return["holiday","shabbat"];case t.flags.MINOR_FAST:return["holiday","fast"];case t.flags.MODERN_HOLIDAY:return["holiday","modern"];case t.flags.SHABBAT_MEVARCHIM:return["mevarchim"]}if(e.cholHaMoedDay)return["holiday","major","cholhamoed"];switch(e.getDesc()){case"Havdalah":return["havdalah"];case"Candle lighting":return["candles"];case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":return["holiday","minor"];default:return["holiday","major"]}}function Yt(e,t){let n="Hebcal";const a=t.location;if(t.yahrzeit)n+=" Yahrzeits and Anniversaries";else if(a&&a.name){const e=a.name.indexOf(",");n+=" "+(-1==e?a.name:a.name.substring(0,e))}else t.il?n+=" Israel":n+=" Diaspora";if(t.isHebrewYear||0==e.length)n+=" "+t.year;else{const t=e[0].getDate().greg(),a=e[e.length-1].getDate().greg();if(t.getFullYear()!=a.getFullYear())n+=" "+t.getFullYear()+"-"+a.getFullYear();else if(t.getMonth()==a.getMonth()){n+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(t)+" "+t.getFullYear()}else n+=" "+t.getFullYear()}return n}function zt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=Rt[e.getDesc()]||Rt[e.basename()]||"";if(t&&n){const e=n.indexOf(".");if(-1!=e)return n.substring(0,e)}return n}function xt(e,n){let a,r="";if(e.getFlags()&t.flags.PARSHA_HASHAVUA){if(a=o.default.getLeyningForParshaHaShavua(e,n),r="Torah: ".concat(a.summary),a.reason)for(const e of["7","M"]){const t=a.reason[e];if(t){const n="7"===e?"7th aliyah":"Maftir",i=o.default.formatAliyahWithBook(a.fullkriyah[e]);r+="\\n".concat(n,": ").concat(i," | ").concat(t)}}a.haftara&&(r+="\\nHaftarah: "+a.haftara,a.reason&&a.reason.haftara&&(r+=" | "+a.reason.haftara))}else if(a=o.default.getLeyningForHoliday(e,n),a&&(a.summary||a.haftara))return a.summary&&(r+="Torah: ".concat(a.summary)),a.summary&&a.haftara&&(r+="\\n"),a.haftara&&(r+="Haftarah: "+a.haftara),r;return a&&a.sephardic&&(r+="\\nHaftarah for Sephardim: "+a.sephardic),r}const Ut='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"';function Kt(e,n){const a=e.getDate().greg(),o=a.getDate(),r=a.getMonth()+1,i=String(a.getFullYear()).padStart(4,"0"),s=n.euro?'"'.concat(o,"/").concat(r,"/").concat(i,'"'):'"'.concat(r,"/").concat(o,"/").concat(i,'"');let c=e.render(),l="",u="",h="",f='"true"';const d=Boolean(e.eventTime),m=e.getDesc();if(e.eventTime){const a=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",n);if(u=l='"'.concat(a,'"'),h=s,f='"false"',"Havdalah"===m||"Candle lighting"===m){const e=c.indexOf(": ");-1!=e&&(c=c.substring(0,e))}}let g="Jewish Holidays";const p=e.getFlags();if(d&&n.location&&n.location.name){const e=n.location.name.indexOf(",");g=-1==e?n.location.name:n.location.name.substring(0,e)}else if(p&t.flags.DAF_YOMI){const e=c.indexOf(": ");-1!=e&&(g=c.substring(0,e),c=c.substring(e+2))}if(c=c.replace(/,/g,"").replace(/"/g,"''"),n.appendHebrewToSubject){const t=e.renderBrief("he");t&&(c+=" / ".concat(t))}const y=(e.memo||zt(e,!0)).replace(/,/g,";").replace(/"/g,"''"),b=d||p&t.flags.CHAG?4:3;return'"'.concat(c,'",').concat(s,",").concat(l,",").concat(h,",").concat(u,",").concat(f,',"').concat(y,'","').concat(b,'","').concat(g,'"')}var Jt={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 Vt(e,n){let a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=Boolean(e.eventTime),i=e.getDate(),s=i.greg(),c="object"==typeof n.location?n.location.getTzid():"UTC",l=r?_t(s,e.eventTimeStr,c):kt(s),u=jt(e);let h=e.render();const f=e.getDesc(),d="Havdalah"===f||"Candle lighting"===f;if(d){const a=h.indexOf(": ");if(-1!=a){const o=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",n);h=h.substring(0,a)+": "+o}}const m={title:h,date:l,category:u[0]};u.length>1&&(m.subcat=u[1]),"holiday"==u[0]&&e.getFlags()&t.flags.CHAG&&(m.yomtov=!0),h!=f&&(m.title_orig=f);const g=e.renderBrief("he");if(g&&(m.hebrew=t.Locale.hebrewStripNikkud(g)),!d){if(a){const a=n.il,r=e.getFlags()==t.flags.PARSHA_HASHAVUA,s=r?o.default.getLeyningForParshaHaShavua(e,a):o.default.getLeyningForHoliday(e,a);if(s){m.leyning=Wt(s);const t=i.getFullYear();if(r&&!a&&t>=5745&&t<=5830){const t=o.default.getTriennialForParshaHaShavua(e);t&&(m.leyning.triennial=Zt({},t))}}}const r=e.url();if(r)if("https://www.hebcal.com"==r.substring(0,22)){const e=n.il?"i=on&":"";m.link="".concat(r,"?").concat(e,"utm_source=js&utm_medium=api")}else{const e=-1==r.indexOf("?")?"?":"&";m.link=r+e+"utm_source=hebcal.com&utm_medium=api"}}const p=e.memo||Rt[e.basename()];return p&&(m.memo=p),m}function Zt(e,t){return Object.keys(t).forEach(n=>{const a=t[n];if(void 0!==a){e["M"==n?"maftir":n]=o.default.formatAliyahWithBook(a)}}),e}function Wt(e){const t={};return e.summary&&(t.torah=e.summary),e.haftara&&(t.haftarah=e.haftara),e.sephardic&&(t.haftarah_sephardic=e.sephardic),e.fullkriyah&&Zt(t,e.fullkriyah),e.reason&&(["7","8","M"].forEach(n=>{if(e.reason[n]){t["M"==n?"maftir":n]+=" | "+e.reason[n]}}),e.reason.haftara&&(t.haftarah+=" | "+e.reason.haftara)),t}const qt="utm_source=shabbat1c&amp;utm_medium=rss";function Qt(e,n,a,o,r){let i=e.render();const s=e.getDate().greg(),c=function(e,t,n,a){if(t){const t=e.eventTime;return t?t.toUTCString():n.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return a}(e,n,s,a),l=function(e){let t,n;const a=(e.eventTime||e.getDate().greg()).toISOString(),o=encodeURIComponent(a.substring(0,e.eventTime?19:10)),r=e.url();if(r)t=-1==r.indexOf("?")?r+"?"+qt:r+"&amp;"+qt,n=t+"&amp;dt="+o;else{const a=Ft(e.getDesc());n=t="https://www.hebcal.com/shabbat?"+qt+"&amp;dt="+o+"#"+a}return[t,n]}(e),u=l[0],h=l[1],f=o.format(s),d=jt(e)[0],m=e.getDesc();if("Havdalah"===m||"Candle lighting"===m){const n=i.indexOf(": ");if(-1!=n){const a={location:r,il:r.getIsrael(),locale:t.Locale.getLocaleName()},o=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",a);i=i.substring(0,n)+": "+o}}const g="candles"==d?"<geo:lat>".concat(r.getLatitude(),"</geo:lat>\n<geo:long>").concat(r.getLongitude(),"</geo:long>\n"):"";return"<item>\n<title>".concat(i,"</title>\n<link>").concat(u,'</link>\n<guid isPermaLink="false">').concat(h,"</guid>\n<description>").concat(f,"</description>\n<category>").concat(d,"</category>\n<pubDate>").concat(c,"</pubDate>\n").concat(g,"</item>\n")}e.countryNames=Jt,e.eventToClassicApiObject=Vt,e.eventToCsv=Kt,e.eventToFullCalendar=function(e,n,a){const o=jt(e);"holiday"==o[0]&&e.getFlags()&t.flags.CHAG&&o.push("yomtov");let r=e.render();const i=e.getDesc(),s="Havdalah"===i||"Candle lighting"===i;if(s){const e=r.indexOf(":");-1!=e&&(r=r.substring(0,e))}else if(e.getFlags()&t.flags.DAF_YOMI){const e=r.indexOf(":");-1!=e&&(r=r.substring(e+1))}const c=Boolean(e.eventTime),l={title:r,start:_t(e.getDate().greg(),e.eventTimeStr,n),allDay:!c,className:o.join(" ")};let u=e.renderBrief("he");if(u){const n=u.indexOf(":");-1!=n&&e.getFlags()&t.flags.DAF_YOMI&&(u=u.substring(n+1)),l.hebrew=t.Locale.hebrewStripNikkud(u)}const h=e.url();if(h)if("https://www.hebcal.com"==h.substring(0,22)){const e=a?"i=on&":"";l.url="".concat(h,"?").concat(e,"utm_source=js&utm_medium=fc")}else{const e=-1==h.indexOf("?")?"?":"&";l.url=h+e+"utm_source=hebcal.com&utm_medium=fc"}if(!s){const n=e.getFlags()&t.flags.PARSHA_HASHAVUA?xt(e,a):e.memo||Rt[e.basename()];n&&(l.description=n)}return l},e.eventToRssItem=Qt,e.eventsToClassicApi=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const a={title:Yt(e,t),date:(new Date).toISOString()},o=t.location;return"object"==typeof o&&"string"==typeof o.name?(a.location={title:o.getName(),city:o.getShortName(),tzid:o.getTzid(),latitude:o.getLatitude(),longitude:o.getLongitude(),cc:o.getCountryCode(),country:Jt[o.getCountryCode()]},["admin1","asciiname","geo","zip","state","geonameid"].forEach(e=>{o[e]&&(a.location[e]=o[e])})):a.location={geo:"none"},a.items=e.map(e=>Vt(e,t,n)),a},e.eventsToCsv=function(e,t){return[Ut].concat(e.map(e=>Kt(e,t))).join("\r\n")+"\r\n"},e.eventsToRss=function(e,t,n,a){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"en-US",r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];const i=t.getName(),s=(new Date).getFullYear(),c="Shabbat Times for "+i,l=(new Date).toUTCString(),u=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"});n=n.replace(/&/g,"&amp;"),a=a.replace(/&/g,"&amp;");let h='<?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>'.concat(c,"</title>\n<link>").concat(n,"&amp;").concat(qt,'</link>\n<atom:link href="').concat(a,'" rel="self" type="application/rss+xml" />\n<description>Weekly Shabbat candle lighting times for ').concat(i,"</description>\n<language>").concat(o,"</language>\n<copyright>Copyright (c) ").concat(s," Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>").concat(l,"</lastBuildDate>\n");return e.forEach(e=>{h+=Qt(e,r,l,u,t)}),h+="</channel>\n</rss>\n",h},e.getCalendarTitle=Yt,e.getDownloadFilename=function(e){let t="hebcal_"+e.year;if(e.isHebrewYear&&(t+="H"),e.month&&(t+="_"+e.month),e.location){t+="_"+(e.location.zip||e.location.asciiname||e.location.getShortName()).replace(/[^A-Za-z0-9]/g,"_")}return t},e.getEventCategories=jt,e.getHolidayDescription=zt,e.holidayDescription=Rt,e.makeAnchor=Ft,e.makeTorahMemoText=xt,e.pad2=Et,e.pad4=Gt,e.timeZoneOffsetStr=Nt,e.toISOString=kt,e.toISOStringWithTimezone=_t,Object.defineProperty(e,"__esModule",{value:!0})}));

@@ -291,3 +291,63 @@ 'use strict';

}
/**
* Makes mulit-line text that summarizes Torah & Haftarah
* @param {Event} ev
* @param {boolean} il
* @return {string}
*/
function makeTorahMemoText(ev, il) {
let reading;
let memo = '';
if (ev.getFlags() & core.flags.PARSHA_HASHAVUA) {
reading = leyn__default['default'].getLeyningForParshaHaShavua(ev, il);
memo = `Torah: ${reading.summary}`;
if (reading.reason) {
for (const num of ['7', 'M']) {
const special = reading.reason[num];
if (special) {
const aname = num === '7' ? '7th aliyah' : 'Maftir';
const verses = leyn__default['default'].formatAliyahWithBook(reading.fullkriyah[num]);
memo += `\\n${aname}: ${verses} | ${special}`;
}
}
}
if (reading.haftara) {
memo += '\\nHaftarah: ' + reading.haftara;
if (reading.reason && reading.reason.haftara) {
memo += ' | ' + reading.reason.haftara;
}
}
} else {
reading = leyn__default['default'].getLeyningForHoliday(ev, il);
if (reading && (reading.summary || reading.haftara)) {
if (reading.summary) {
memo += `Torah: ${reading.summary}`;
}
if (reading.summary && reading.haftara) {
memo += '\\n';
}
if (reading.haftara) {
memo += 'Haftarah: ' + reading.haftara;
}
return memo;
}
}
if (reading && reading.sephardic) {
memo += '\\nHaftarah for Sephardim: ' + reading.sephardic;
}
return memo;
}
const csvHeader = '"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"';

@@ -767,3 +827,3 @@ /**

if (!candles) {
const memo = ev.memo || holidayDescription[ev.basename()];
const memo = ev.getFlags() & core.flags.PARSHA_HASHAVUA ? makeTorahMemoText(ev, il) : ev.memo || holidayDescription[ev.basename()];
if (memo) result.description = memo;

@@ -789,2 +849,3 @@ }

exports.makeAnchor = makeAnchor;
exports.makeTorahMemoText = makeTorahMemoText;
exports.pad2 = pad2;

@@ -791,0 +852,0 @@ exports.pad4 = pad4;

{
"name": "@hebcal/rest-api",
"version": "2.6.0",
"version": "2.7.0",
"author": "Michael J. Radwin (https://github.com/mjradwin)",

@@ -23,5 +23,5 @@ "keywords": [

"dependencies": {
"@hebcal/core": "^2.5.1",
"@hebcal/core": "^2.5.2",
"@hebcal/geo-sqlite": "^2.2.5",
"@hebcal/leyning": "^3.3.0"
"@hebcal/leyning": "^3.3.1"
},

@@ -58,3 +58,3 @@ "scripts": {

"@babel/register": "^7.11.5",
"@rollup/plugin-babel": "^5.2.0",
"@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-commonjs": "^15.0.0",

@@ -65,9 +65,9 @@ "@rollup/plugin-json": "^4.1.0",

"core-js": "^3.6.5",
"eslint": "^7.8.1",
"eslint": "^7.9.0",
"eslint-config-google": "^0.14.0",
"jsdoc": "^3.6.5",
"jsdoc-to-markdown": "^5.0.3",
"rollup": "^2.26.10",
"rollup": "^2.27.0",
"rollup-plugin-terser": "^7.0.2"
}
}

@@ -47,2 +47,4 @@ # hebcal-rest-api

<dd></dd>
<dt><a href="#pad4">pad4(number)</a> ⇒ <code>string</code></dt>
<dd></dd>
<dt><a href="#timeZoneOffsetStr">timeZoneOffsetStr(tzid, date)</a> ⇒ <code>string</code></dt>

@@ -66,2 +68,5 @@ <dd><p>Get offset string (like &quot;+05:00&quot; or &quot;-08:00&quot;) from tzid (like &quot;Europe/Moscow&quot;)</p>

</dd>
<dt><a href="#makeTorahMemoText">makeTorahMemoText(ev, il)</a> ⇒ <code>string</code></dt>
<dd><p>Makes mulit-line text that summarizes Torah &amp; Haftarah</p>
</dd>
<dt><a href="#eventToCsv">eventToCsv(e, options)</a> ⇒ <code>string</code></dt>

@@ -72,6 +77,6 @@ <dd><p>Renders an Event as a string</p>

<dd></dd>
<dt><a href="#eventsToClassicApi">eventsToClassicApi(events, options)</a> ⇒ <code>Object</code></dt>
<dt><a href="#eventsToClassicApi">eventsToClassicApi(events, options, [leyning])</a> ⇒ <code>Object</code></dt>
<dd><p>Formats a list events for the classic Hebcal.com JSON API response</p>
</dd>
<dt><a href="#eventToClassicApiObject">eventToClassicApiObject(ev, tzid, il)</a> ⇒ <code>Object</code></dt>
<dt><a href="#eventToClassicApiObject">eventToClassicApiObject(ev, options, [leyning])</a> ⇒ <code>Object</code></dt>
<dd><p>Converts a Hebcal event to a classic Hebcal.com JSON API object</p>

@@ -85,3 +90,3 @@ </dd>

<dd></dd>
<dt><a href="#eventsToRss">eventsToRss(events, location, [lang], [evPubDate])</a> ⇒ <code>string</code></dt>
<dt><a href="#eventsToRss">eventsToRss(events, location, mainUrl, selfUrl, [lang], [evPubDate])</a> ⇒ <code>string</code></dt>
<dd></dd>

@@ -158,2 +163,11 @@ <dt><a href="#eventToRssItem">eventToRssItem(ev, evPubDate, lastBuildDate, dayFormat, location)</a> ⇒ <code>string</code></dt>

<a name="pad4"></a>
## pad4(number) ⇒ <code>string</code>
**Kind**: global function
| Param | Type |
| --- | --- |
| number | <code>number</code> |
<a name="timeZoneOffsetStr"></a>

@@ -230,2 +244,14 @@

<a name="makeTorahMemoText"></a>
## makeTorahMemoText(ev, il) ⇒ <code>string</code>
Makes mulit-line text that summarizes Torah & Haftarah
**Kind**: global function
| Param | Type |
| --- | --- |
| ev | <code>Event</code> |
| il | <code>boolean</code> |
<a name="eventToCsv"></a>

@@ -255,3 +281,3 @@

## eventsToClassicApi(events, options) ⇒ <code>Object</code>
## eventsToClassicApi(events, options, [leyning]) ⇒ <code>Object</code>
Formats a list events for the classic Hebcal.com JSON API response

@@ -261,10 +287,11 @@

| Param | Type |
| --- | --- |
| events | <code>Array.&lt;Event&gt;</code> |
| options | <code>HebcalOptions</code> |
| Param | Type | Default |
| --- | --- | --- |
| events | <code>Array.&lt;Event&gt;</code> | |
| options | <code>HebrewCalendar.Options</code> | |
| [leyning] | <code>boolean</code> | <code>true</code> |
<a name="eventToClassicApiObject"></a>
## eventToClassicApiObject(ev, tzid, il) ⇒ <code>Object</code>
## eventToClassicApiObject(ev, options, [leyning]) ⇒ <code>Object</code>
Converts a Hebcal event to a classic Hebcal.com JSON API object

@@ -274,7 +301,7 @@

| Param | Type | Description |
| Param | Type | Default |
| --- | --- | --- |
| ev | <code>Event</code> | |
| tzid | <code>string</code> | timeZone identifier |
| il | <code>boolean</code> | true if Israel |
| ev | <code>Event</code> | |
| options | <code>HebrewCalendar.Options</code> | |
| [leyning] | <code>boolean</code> | <code>true</code> |

@@ -298,3 +325,3 @@ <a name="formatAliyot"></a>

| --- | --- |
| reading | <code>leyning.Leyning</code> |
| reading | <code>leyn.Leyning</code> |

@@ -312,11 +339,13 @@ <a name="getLinkAndGuid"></a>

## eventsToRss(events, location, [lang], [evPubDate]) ⇒ <code>string</code>
## eventsToRss(events, location, mainUrl, selfUrl, [lang], [evPubDate]) ⇒ <code>string</code>
**Kind**: global function
| Param | Type | Description |
| --- | --- | --- |
| events | <code>Array.&lt;Event&gt;</code> | |
| location | <code>Location</code> | |
| [lang] | <code>string</code> | language such as 'he' (default 'en-US') |
| [evPubDate] | <code>boolean</code> | if true, use event time as pubDate (false uses lastBuildDate) |
| Param | Type | Default | Description |
| --- | --- | --- | --- |
| events | <code>Array.&lt;Event&gt;</code> | | |
| location | <code>Location</code> | | |
| mainUrl | <code>string</code> | | |
| selfUrl | <code>string</code> | | |
| [lang] | <code>string</code> | <code>&quot;en-US&quot;</code> | language such as 'he' (default 'en-US') |
| [evPubDate] | <code>boolean</code> | <code>true</code> | if true, use event time as pubDate (false uses lastBuildDate) |

@@ -323,0 +352,0 @@ <a name="eventToRssItem"></a>

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc