From 37a67fe91356d9a93d9052374b7993a4415dcf12 Mon Sep 17 00:00:00 2001 From: Scimonster Date: Wed, 17 May 2017 23:47:13 +0300 Subject: [PATCH] Mangle variable names in minified JS --- client/hebcal.min.js | 5 ++--- client/hebcal.min.js.map | 2 +- client/hebcal.noloc.min.js | 5 ++--- client/hebcal.noloc.min.js.map | 2 +- compile.js | 2 +- 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/client/hebcal.min.js b/client/hebcal.min.js index e1d28b2..0f345bf 100644 --- a/client/hebcal.min.js +++ b/client/hebcal.min.js @@ -5,7 +5,6 @@ Licensed GPLv3 */ -!function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o=19440||2==day%7&&parts>=9924&&!LEAP(hYear)||1==day%7&&parts>=16789&&LEAP(hYear-1));return alt_day+(alt_day%7===0||alt_day%7==3||alt_day%7==5)}function daysInYear(year){return hebElapsedDays(year+1)-hebElapsedDays(year)}function lngChesh(year){return daysInYear(year)%10==5}function shrtKis(year){return daysInYear(year)%10==3}function monthFromName(c){switch(c.toLowerCase()[0]){case"n":case"נ":return"o"==c.toLowerCase()[1]?0:months.NISAN;case"i":return months.IYYAR;case"e":return months.ELUL;case"c":case"ח":return months.CHESHVAN;case"k":case"כ":return months.KISLEV;case"s":switch(c.toLowerCase()[1]){case"i":return months.SIVAN;case"h":return months.SHVAT;default:return 0}case"t":switch(c.toLowerCase()[1]){case"a":return months.TAMUZ;case"i":return months.TISHREI;case"e":return months.TEVET}break;case"a":switch(c.toLowerCase()[1]){case"v":return months.AV;case"d":return/(1|[^i]i|a|א)$/i.test(c)?months.ADAR_I:months.ADAR_II}break;case"ס":return months.SIVAN;case"ש":return months.SHVAT;case"א":switch(c.toLowerCase()[1]){case"ב":return months.AV;case"ד":return/(2|ii|b|ב)$/i.test(c)?months.ADAR_I:months.ADAR_II;case"י":return months.IYYAR;case"ל":return months.ELUL}break;case"ת":switch(c.toLowerCase()[1]){case"מ":return months.TAMUZ;case"ש":return months.TISHREI}}return 0}function filter(self,fun,thisp){if(null===self)throw new TypeError("self is null");switch(typeof fun){case"function":break;case"string":case"number":return self[fun];case"boolean":fun=fun?function(v){return v}:function(v){return!v};break;case"object":var funOrig=fun;if(fun instanceof RegExp){fun=function(v){return funOrig.test(v)};break}if(Array.isArray(fun)){fun=function(v,k){return funOrig.indexOf(k)>-1};break}default:throw new TypeError("fun is not a supported type")}var res={},t=Object(self);for(var i in t)if(t.hasOwnProperty(i)){var val=t[i];if(fun.call(thisp,val,i,t)){var props=Object.getOwnPropertyDescriptor(t,i);props.value=val,Object.defineProperty(res,i,props)}}if(Array.isArray(self)||"string"==typeof self){var arr=[];for(i in res)arr[Number(i)]=res[i];res=arr.filter(function(v){return v}),"string"==typeof self&&(res=res.join(""))}return res}var gematriya=require("gematriya"),charCodeAt="charCodeAt",months=exports.months={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},monthNames=[["",0,""],["Nisan",0,"ניסן"],["Iyyar",0,"אייר"],["Sivan",0,"סיון"],["Tamuz",0,"תמוז"],["Av",0,"אב"],["Elul",0,"אלול"],["Tishrei",0,"תשרי"],["Cheshvan",0,"חשון"],["Kislev",0,"כסלו"],["Tevet",0,"טבת"],["Sh'vat",0,"שבט"]];exports.monthNames=[monthNames.concat([["Adar",0,"אדר"],["Nisan",0,"ניסן"]]),monthNames.concat([["Adar 1",0,"אדר א'"],["Adar 2",0,"אדר ב'"],["Nisan",0,"ניסן"]])],exports.days={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6},exports.LANG=function(str,opts){return"h"==opts&&str[2]||"a"==opts&&str[1]||str[0]},exports.LEAP=LEAP,exports.MONTH_CNT=function(x){return 12+LEAP(x)},exports.daysInMonth=function(month,year){return 30-(month==months.IYYAR||month==months.TAMUZ||month==months.ELUL||month==months.TEVET||month==months.ADAR_II||month==months.ADAR_I&&!LEAP(year)||month==months.CHESHVAN&&!lngChesh(year)||month==months.KISLEV&&shrtKis(year))},exports.monthNum=function(month){return"number"==typeof month?month:month[charCodeAt](0)>=1488&&month[charCodeAt](0)<=1514&&/('|")/.test(month)?gematriya(month):month[charCodeAt](0)>=48&&month[charCodeAt](0)<=57?parseInt(month,10):monthFromName(month)},exports.dayYearNum=function(str){return"number"==typeof str?str:str[charCodeAt](0)>=1488&&str[charCodeAt](0)<=1514?gematriya(str,!0):parseInt(str,10)},exports.hebElapsedDays=hebElapsedDays,exports.daysInYear=daysInYear,exports.lngChesh=lngChesh,exports.shrtKis=shrtKis,exports.monthFromName=monthFromName,exports.dayOnOrBefore=function(day_of_week,absdate){return absdate-(absdate-day_of_week)%7},exports.map=function(self,fun,thisp){if(null===self||"function"!=typeof fun)throw new TypeError;var t=Object(self),res={};for(var i in t)t.hasOwnProperty(i)&&(res[i]=fun.call(thisp,t[i],i,t));if(Array.isArray(self)||"string"==typeof self){var arr=[];for(i in res)arr[Number(i)]=res[i];res=filter(arr,!0),"string"==typeof self&&(res=res.join(""))}return res},exports.filter=filter,exports.range=function(start,end,step){step=step||1,step<0&&(step=0-step);var arr=[],i=start;if(start=end;i-=step)arr.push(i);return arr}},{gematriya:10}],4:[function(require,module,exports){var c=require("./common"),greg=require("./greg"),gematriya=require("gematriya"),shas=[["Berachot","Berachos","ברכות",64],["Shabbat","Shabbos","שבת",157],["Eruvin","Eruvin","עירובין",105],["Pesachim",0,"פסחים",121],["Shekalim",0,"שקלים",22],["Yoma",0,"יומא",88],["Sukkah",0,"סוכה",56],["Beitzah",0,"ביצה",40],["Rosh Hashana",0,"ראש השנה",35],["Taanit","Taanis","תענית",31],["Megillah",0,"מגילה",32],["Moed Katan",0,"מועד קטן",29],["Chagigah",0,"חגיגה",27],["Yevamot","Yevamos","יבמות",122],["Ketubot","Kesubos","כתובות",112],["Nedarim",0,"נדרים",91],["Nazir",0,"נזיר",66],["Sotah",0,"סוטה",49],["Gitin",0,"גיטין",90],["Kiddushin",0,"קידושין",82],["Baba Kamma",0,"בבא קמא",119],["Baba Metzia",0,"בבא מציעא",119],["Baba Batra","Baba Basra","בבא בתרא",176],["Sanhedrin",0,"סנהדרין",113],["Makkot","Makkos","מכות",24],["Shevuot","Shevuos","שבועות",49],["Avodah Zarah",0,"עבודה זרה",76],["Horayot","Horayos","הוריות",14],["Zevachim",0,"זבחים",120],["Menachot","Menachos","מנחות",110],["Chullin",0,"חולין",142],["Bechorot","Bechoros","בכורות",61],["Arachin",0,"ערכין",34],["Temurah",0,"תמורה",34],["Keritot","Kerisos","כריתות",28],["Meilah",0,"מעילה",22],["Kinnim",0,"קנים",4],["Tamid",0,"תמיד",10],["Midot","Midos","מדות",4],["Niddah",0,"נדה",73]].map(function(m){return{name:m.slice(0,3),blatt:m[3]}});exports.dafyomi=function(gregdate){var cno,dno,osday,nsday,total,count,j,cday,blatt,dafcnt=40;if(!(gregdate instanceof Date))throw new TypeError("non-date given to dafyomi");if(osday=greg.greg2abs(new Date(1923,8,11)),nsday=greg.greg2abs(new Date(1975,5,24)),cday=greg.greg2abs(gregdate),cday=nsday?(cno=8+(cday-nsday)/2711,dno=(cday-nsday)%2711):(cno=1+(cday-osday)/2702,dno=(cday-osday)%2702),total=blatt=0,count=-1,cno<=7?shas[4].blatt=13:shas[4].blatt=22,j=0;j1&&(doy-=floor((4*(date.getMonth()+1)+23)/10),LEAP(date.getFullYear())&&doy++),doy}function LEAP(year){return!(year%4||!(year%100)&&year%400)}var floor=Math.floor,t0t1=[30,31],tMonthLengths=[0,31,28,31].concat(t0t1,t0t1,31,t0t1,t0t1),monthLengths=[tMonthLengths.slice()];tMonthLengths[2]++,monthLengths.push(tMonthLengths),exports.daysInMonth=function(month,year){return monthLengths[+LEAP(year)][month]},exports.monthNames=["","January","February","March","April","May","June","July","August","September","October","November","December"],exports.lookupMonthNum=function(month){return new Date(month+" 1").getMonth()+1},exports.dayOfYear=dayOfYear,exports.LEAP=LEAP,exports.greg2abs=function(date){var year=date.getFullYear()-1;return dayOfYear(date)+365*year+(floor(year/4)-floor(year/100)+floor(year/400))},exports.abs2greg=function(theDate){var d0=theDate-1,n400=floor(d0/146097),d1=floor(d0%146097),n100=floor(d1/36524),d2=d1%36524,n4=floor(d2/1461),d3=d2%1461,n1=floor(d3/365),day=d3%365+1,year=400*n400+100*n100+4*n4+n1;return 4==n100||4==n1?new Date(year,11,31):new Date(new Date(++year,0,day).setFullYear(year))}},{}],6:[function(require,module,exports){function HDate(day,month,year){var me=this;switch(arguments.length){case 0:return new HDate(new Date);case 1:if("undefined"==typeof day)return new HDate;if(day instanceof Date){var d=abs2hebrew(greg.greg2abs(day));return d}if(day instanceof HDate){var d=new HDate(day[getDate](),day[getMonth](),day[getFullYear]());return d.il=day.il,d.setLocation(d.lat,d.long),d}if("string"==typeof day){switch(day.toLowerCase().trim()){case"today":return new HDate;case"yesterday":return(new HDate).prev();case"tomorrow":return(new HDate).next()}if(/\s/.test(day)){var s=day.split(/\s+/);if(2==s.length)return new HDate(s[0],s[1]);if(3==s.length)return new HDate(s[0],s[1],s[2]);if(4==s.length)return/i/i.test(s[2])&&(s[2]=s[2].length),new HDate(s[0],s[1]+s[2],s[3])}}else if("number"==typeof day)return abs2hebrew(day);throw new TypeError("HDate called with bad argument");case 2:return new HDate(day,month,(new HDate)[getFullYear]());case 3:me.day=me.month=1,me.year=c.dayYearNum(year),me.setMonth(c.monthNum(month)),me.setDate(c.dayYearNum(day));break;default:throw new TypeError("HDate called with bad arguments")}return me.setLocation.apply(me,HDate.defaultLocation)}function fix(date){fixMonth(date),fixDate(date)}function fixDate(date){date.day<1&&(date.month==TISHREI&&(date.year-=1),date.day+=daysInMonth(date.month,date.year),date.month-=1,fix(date)),date.day>daysInMonth(date.month,date.year)&&(date.month==months.ELUL&&(date.year+=1),date.day-=daysInMonth(date.month,date.year),date.month+=1,fix(date)),fixMonth(date)}function fixMonth(date){date.month!=months.ADAR_II||date.isLeapYear()||(date.month-=1,fix(date)),date.month<1&&(date.month+=MONTH_CNT(date.year),date.year-=1,fix(date)),date.month>MONTH_CNT(date.year)&&(date.month-=MONTH_CNT(date.year),date.year+=1,fix(date))}function hebrew2abs(d){var m,tempabs=d[getDate](),year=d[getFullYear]();if(d[getMonth]()=10555144)throw new RangeError("parameter to abs2hebrew "+d+" out of range");for(gregdate=greg.abs2greg(d),hebdate=new HDate(1,TISHREI,year=3760+gregdate[getFullYear]());d>=hebrew2abs(hebdate.setFullYear(year+1));)year++;for(month=year>4634&&year<10666?mmap[gregdate[getMonth]()]:TISHREI;d>hebrew2abs(hebdate=new HDate(daysInMonth(month,year),month,year));)month=month%MONTH_CNT(year)+1;return hebdate.setLocation.apply(hebdate.setDate(d-hebrew2abs(hebdate.setDate(1))+1),HDate.defaultLocation)}function suntime(hdate){var date=hdate.greg();return suncalc.getTimes(new Date(date.getFullYear(),date.getMonth(),date.getDate(),12,0,0,0,0),hdate.lat,hdate.long)}function hourOffset(hdate,hours){return new Date(hdate.sunrise()[getTime]()+hdate[hour]()*hours)}function onOrBefore(day,t,offset){return new HDate(dayOnOrBefore(day,t[abs]()+offset))}var c=require("./common"),greg=require("./greg"),suncalc=require("suncalc"),cities=require("./cities"),gematriya=require("gematriya");suncalc.addTime(-16.1,"alot_hashachar",0),suncalc.addTime(-11.5,"misheyakir",0),suncalc.addTime(-10.2,"misheyakir_machmir",0),suncalc.addTime(-8.5,0,"tzeit");var getFullYear="getFullYear",getMonth="getMonth",getDate="getDate",getTime="getTime",abs="abs",hour="hour",months=c.months,TISHREI=months.TISHREI,MONTH_CNT=c.MONTH_CNT,daysInMonth=c.daysInMonth,dayOnOrBefore=c.dayOnOrBefore,prototype=HDate.prototype;HDate.defaultLocation=[0,0],Object.defineProperty(HDate,"defaultCity",{enumerable:!0,configurable:!0,get:function(){return cities.nearest(HDate.defaultLocation[0],HDate.defaultLocation[1])},set:function(city){HDate.defaultLocation=cities.getCity(city).slice(0,2)}}),prototype[getFullYear]=function(){return this.year},prototype.isLeapYear=function(){return c.LEAP(this.year)},prototype[getMonth]=function(){return this.month},prototype.getTishreiMonth=function(){var nummonths=MONTH_CNT(this[getFullYear]());return(this[getMonth]()+nummonths-6)%nummonths||nummonths},prototype.daysInMonth=function(){return daysInMonth(this[getMonth](),this[getFullYear]())},prototype[getDate]=function(){return this.day},prototype.getDay=function(){return this.greg().getDay()},prototype.setFullYear=function(year){return this.year=year,fix(this),this},prototype.setMonth=function(month){return this.month=c.monthNum(month),fix(this),this},prototype.setTishreiMonth=function(month){return this.setMonth((month+6)%MONTH_CNT(this[getFullYear]())||13)},prototype.setDate=function(date){return this.day=date,fix(this),this},prototype.greg=function(){return greg.abs2greg(hebrew2abs(this))},prototype.gregEve=function(){return this.prev().sunset()},prototype[abs]=function(){return hebrew2abs(this)},prototype.toString=function(o){return c.LANG([this[getDate](),null,gematriya(this[getDate]())],o)+" "+this.getMonthName(o)+" "+c.LANG([this[getFullYear](),null,gematriya(this[getFullYear]())],o)},prototype.getMonthName=function(o){return c.LANG(c.monthNames[+this.isLeapYear()][this[getMonth]()],o)},prototype.setCity=function(city){return this.setLocation(cities.getCity(city))},prototype.setLocation=function(lat,lon){if("object"!=typeof lat||Array.isArray(lat)||(lon=lat.long,lat=lat.lat),Array.isArray(lat)&&"undefined"==typeof lon&&(lon=lat[0],lat=lat[1]),Array.isArray(lat)&&(lat=(60*lat[0]+lat[1])/60),Array.isArray(lon)&&(lon=(60*lon[0]+lon[1])/60),"number"!=typeof lat)throw new TypeError("incorrect lat type passed to HDate.setLocation()");if("number"!=typeof lon)throw new TypeError("incorrect long type passed to HDate.setLocation()");return this.lat=lat,this.long=lon,this.il=cities.getCity(cities.nearest(lat,lon))[2],this},prototype.sunrise=function(){return suntime(this).sunrise},prototype.sunset=function(){return suntime(this).sunset},prototype[hour]=function(){return(this.sunset()-this.sunrise())/12},prototype.hourMins=function(){return this[hour]()/6e4},prototype.nightHour=function(){return(this.sunrise()-this.gregEve())/12},prototype.nightHourMins=function(){return this.nightHour()/6e4};var zemanim={chatzot:function(hdate){return hourOffset(hdate,6)},chatzot_night:function(hdate){return new Date(hdate.sunrise()[getTime]()-6*hdate.nightHour())},alot_hashachar:function(hdate){return suntime(hdate).alot_hashachar},alot_hashacher:function(hdate){return suntime(hdate).alot_hashachar},misheyakir:function(hdate){return suntime(hdate).misheyakir},misheyakir_machmir:function(hdate){return suntime(hdate).misheyakir_machmir},sof_zman_shma:function(hdate){return hourOffset(hdate,3)},sof_zman_tfilla:function(hdate){return hourOffset(hdate,4)},mincha_gedola:function(hdate){return hourOffset(hdate,6.5)},mincha_ketana:function(hdate){return hourOffset(hdate,9.5)},plag_hamincha:function(hdate){return hourOffset(hdate,10.75)},tzeit:function(hdate){return suntime(hdate).tzeit},neitz_hachama:function(hdate){return hdate.sunrise()},shkiah:function(hdate){return hdate.sunset()}};prototype.getZemanim=function(){return c.map(zemanim,function(z){return z(this)},this)},HDate.addZeman=function(zeman,func){zemanim[zeman]=func},prototype.next=function(){return abs2hebrew(this.abs()+1).setLocation(this.lat,this.long)},prototype.prev=function(){return abs2hebrew(this.abs()-1).setLocation(this.lat,this.long)},prototype.isSameDate=function(other){return other instanceof HDate&&(other[getFullYear]()==-1&&(other=new HDate(other).setFullYear(this[getFullYear]())),this[abs]()==other[abs]())},prototype.before=function(day){return onOrBefore(day,this,-1)},prototype.onOrBefore=function(day){return onOrBefore(day,this,0)},prototype.nearest=function(day){return onOrBefore(day,this,3)},prototype.onOrAfter=function(day){return onOrBefore(day,this,6)},prototype.after=function(day){return onOrBefore(day,this,7)},module.exports=HDate},{"./cities":1,"./common":3,"./greg":5,gematriya:10,suncalc:11}],7:[function(require,module,exports){function getset(g,s){return{enumerable:!0,configurable:!0,get:g,set:s}}function extend(base,into){for(var i in into)base[i]=into[i];return base}function Hebcal(year,month){var me=this;if(year||(year=(new HDate)[getFullYear]()),"number"!=typeof year)throw new TE("year to Hebcal() is not a number");if(me.year=year,!month)return new Hebcal(year,c.range(1,c.MONTH_CNT(year)));if("string"==typeof month&&(month=c.monthFromName(month)),"number"==typeof month&&(month=[month]),!Array.isArray(month))throw new TE("month to Hebcal is not a valid type");me.months=month[map](function(i){var m=new Month(i,year);return defProp(m,"__year",{configurable:!0,writable:!0,value:me}),m}),me.holidays=holidays.year(year),me[length]=c.daysInYear(year),defProp(me,"il",getset(function(){return me[getMonth](1).il},function(il){me.months.forEach(function(m){m.il=il})})),defProp(me,"lat",getset(function(){return me[getMonth](1).lat},function(lat){me.months.forEach(function(m){m.lat=lat})})),defProp(me,"long",getset(function(){return me[getMonth](1).long},function(lon){me.months.forEach(function(m){m.long=lon})}))}function Month(month,year){var me=this;if(month=c.monthNum(month),"number"!=typeof month)throw new TE("month to Hebcal.Month is not a valid type");if("number"!=typeof year)throw new TE("year to Hebcal.Month is not a number");return me.month=month,me.year=year,me.days=c.range(1,c.daysInMonth(month,year))[map](function(i){var d=new HDate(i,month,year);return defProp(d,"__month",{configurable:!0,writable:!0,value:me}),d}),me[length]=me.days[length],me.holidays=c.filter(holidays.year(year),function(h){return h[0].date[getMonth]()==month}),defProp(me,"il",getset(function(){return me[getDay](1).il},function(il){me.days.forEach(function(d){d.il=il})})),defProp(me,"lat",getset(function(){return me[getDay](1).lat},function(lat){me.days.forEach(function(d){d.lat=lat})})),defProp(me,"long",getset(function(){return me[getDay](1).long},function(lon){me.days.forEach(function(d){d.long=lon})})),me}function GregYear(year,month){var me=this;if(year||(year=(new Date)[getFullYear]()),"string"==typeof year){var d=new Date(year);return month=year.indexOf(" ")+1||year.indexOf("-")+1||year.indexOf("/")+1?d[getMonth]()+1:c.range(1,12),new GregYear(d[getFullYear](),month)}if("number"!=typeof year)throw new TE("year to Hebcal.GregYear() is not a number");if(me.year=year,!month)return new GregYear(year,c.range(1,12));if("string"==typeof month&&(month=greg.lookupMonthName(month)),"number"==typeof month&&(month=[month]),!Array.isArray(month))throw new TE("month to Hebcal.GregYear() is not a valid type");return me.months=month[map](function(i){var m=new GregMonth(i,year);return defProp(m,"__year",{configurable:!0,writable:!0,value:me}),m}),me.hebyears=[].concat.apply([],me.months[map](function(m){return m.hebmonths[map](function(hm){return hm.year})})).filter(function(val,i,arr){return arr.indexOf(val)===i}),me.holidays=c.filter(holidays.year(me.hebyears[0]),function(h){return h[0].date.greg()[getFullYear]()===year&&me.months.filter(function(m){return m.month===h[0].date.greg()[getMonth]()+1})[length]}),me.hebyears[1]&&extend(me.holidays,c.filter(holidays.year(me.hebyears[1]),function(h){return h[0].date.greg()[getFullYear]()===year&&me.months.filter(function(m){return m.month===h[0].date.greg()[getMonth]()+1})[length]})),me[length]=365+greg.LEAP(year),defProp(me,"il",getset(function(){return me[getMonth](1).il},function(il){me.months.forEach(function(m){m.il=il})})),defProp(me,"lat",getset(function(){return me[getMonth](1).lat},function(lat){me.months.forEach(function(m){m.lat=lat})})),defProp(me,"long",getset(function(){return me[getMonth](1).long},function(lon){me.months.forEach(function(m){m.long=lon})})),me}function GregMonth(month,year){var me=this;if("string"==typeof month&&(month=greg.lookupMonthNum(month)),"number"!=typeof month)throw new TE("month to Hebcal.GregMonth is not a valid type");if("number"!=typeof year)throw new TE("year to Hebcal.GregMonth is not a number");return me.year=year,me.month=month,me.days=c.range(1,greg.daysInMonth(month,year))[map](function(i){var d=new HDate(new Date(year,month-1,i));return defProp(d,"__gregmonth",{configurable:!0,writable:!0,value:me}),d}),me[length]=me.days[length],me.hebmonths=[{month:me[getDay](1)[getMonth](),year:me[getDay](1)[getFullYear]()},{month:me[getDay](-1)[getMonth](),year:me[getDay](-1)[getFullYear]()}].filter(function(val,i,arr){return 0===i||val.month!=arr[0].month}),defProp(me,"il",getset(function(){return me[getDay](1).il},function(il){me.days.forEach(function(d){d.il=il})})),defProp(me,"lat",getset(function(){return me[getDay](1).lat},function(lat){me.days.forEach(function(d){d.lat=lat})})),defProp(me,"long",getset(function(){return me[getDay](1).long},function(lon){me.days.forEach(function(d){d.long=lon})})),me}var c=require("./common"),HDate=require("./hdate"),holidays=require("./holidays"),Sedra=require("./sedra"),dafyomi=require("./dafyomi"),cities=require("./cities"),greg=require("./greg"),EventEmitter=require("events").EventEmitter,gematriya=require("gematriya"),defProp=Object.defineProperty,TE=TypeError,find="find",strings="strings",getYearObject="getYearObject",map="map",getDay="getDay",getMonth="getMonth",getFullYear="getFullYear",isLeapYear="isLeapYear",length="length",next="next",prev="prev",months=c.months,TISHREI=months.TISHREI,NISAN=months.NISAN,HebcalProto=Hebcal.prototype,MonthProto=Month.prototype,GregYearProto=GregYear.prototype,GregMonthProto=GregMonth.prototype,HDateProto=HDate.prototype;HebcalProto[isLeapYear]=HDateProto[isLeapYear],HebcalProto.setCity=function(city){return this.months.forEach(function(m){m.setCity(city)}),this},HebcalProto.setLocation=function(lat,lon){return this.months.forEach(function(m){m.setLocation(lat,lon)}),this},HebcalProto[next]=function(){return new Hebcal(this.year+1)},HebcalProto[prev]=function(){return new Hebcal(this.year-1)},HebcalProto[getMonth]=function(month){var months=this.months;return month=c.monthNum(month),month>this.months[length]?this[next]()[getMonth](month-months[length]):months[month>0?month-1:months[length]+month]},HebcalProto[getDay]=function(day){var me=this;if(day>me[length])return null;if(day<0)return me[getDay](me[length]-day);var rosh=me[find](29,months.ELUL)[0].abs()+1-me[find](1,NISAN)[0].abs();return day<=rosh?me[getMonth](NISAN)[getDay](day):me[getMonth](TISHREI)[getDay](day-rosh)},HebcalProto.days=function(){return[].concat.apply([],this.months[map](function(m){return m.days}))},HebcalProto[map]=function(){return[][map].apply(this.days(),arguments)},HebcalProto.filter=function(){return[].filter.apply(this.days(),arguments)},HebcalProto.addHoliday=function(holiday){if(!(holiday instanceof holidays.Event))throw new TE("non-Event passed to addHoliday()");return this.holidays.add(holiday),this},HebcalProto.findParsha=function(parsha,o){var langs=o?[o]:["s","a","h"],days=this.filter(function(d){return Math.max.apply(null,langs.map(function(l){return d.getSedra(l).indexOf(parsha)+1}))});return days[days[length]-1]},HebcalProto.findSedra=HebcalProto.findParsha,HebcalProto[find]=function find_f(day,month){var me=this;if(1===arguments[length]){if("string"==typeof day)return find_f[strings].call(me,day);if(Array.isArray(day))return[].concat.apply([],day[map](function(d){return me[find][Array.isArray(d)?"apply":"call"](me,d)}));if(day instanceof HDate)return me[find](day.getDate(),day[getMonth]());if(day instanceof Date)return me[find](new HDate(day))}else if(2==arguments[length]){if(month instanceof Month)return month[find](day);if(Array.isArray(month))return[].concat.apply([],month[map](function(m){return me[find](day,m)}));if("string"==typeof month)return me[find](day,c.monthNum(month));if("number"==typeof month)return me[find](day,me[getMonth](month))}return[]},HebcalProto[find][strings]=function strings(str){var split=str.split(/\s+/),func=strings[str.replace(/\s/g,"_").toLowerCase()];if(!split[length])return[];if(func)return func.call(this);try{return this[find](new HDate(str))}catch(e){return split[length]-1?this[find].apply(this,split):[]}},HebcalProto[find][strings].rosh_chodesh=function(){return this[find]("Rosh Chodesh",c.range(1,this.months[length]))},HebcalProto[find][strings].holidays=function(){return[].concat.apply([],this.holidays[map](function(h){return this[find](h.date)},this))},HebcalProto[find][strings].omer=function(){return this[find](c.range(16,64),NISAN)},HebcalProto[find][strings].today=function(){return this[find](new HDate)},HebcalProto[find][strings].yesterday=function(){return[this[find]("today")[0][prev]()]},HebcalProto[find][strings].tomorrow=function(){return[this[find]("today")[0][next]()]},HebcalProto[find][strings].pesach=function(){return this[find](c.range(15,23-this.il),NISAN)},HebcalProto[find][strings].sukkot=function(){return this[find](c.range(15,24-this.il),TISHREI)},HebcalProto[find][strings].succot=HebcalProto[find][strings].succos=HebcalProto[find][strings].sukkos=HebcalProto[find][strings].sukkot,HebcalProto[find][strings].shavuot=function(){return this[find](c.range(6,7-this.il),months.SIVAN)},HebcalProto[find][strings].shavuos=HebcalProto[find][strings].shavuot,HebcalProto[find][strings].rosh_hashana=function(){return this[find](c.range(1,2),TISHREI)},HebcalProto[find][strings].rosh_hashanah=HebcalProto[find][strings].rosh_hashana,Hebcal.addZeman=HDate.addZeman,Hebcal.cities=cities,Hebcal.range=c.range,Hebcal.gematriya=gematriya,Hebcal.holidays=c.filter(holidays,["masks","Event"]),Hebcal.parshiot=Sedra.parshiot,Hebcal.LANGUAGE=c.LANG,Hebcal[map]=c[map],Hebcal.filter=c.filter,defProp(Hebcal,"defaultLocation",getset(function(){return HDate.defaultLocation},function(loc){Hebcal.events.emit("locationChange",HDate.defaultLocation),HDate.defaultLocation=loc})),defProp(Hebcal,"defaultCity",getset(function(){return HDate.defaultCity},function(city){Hebcal.defaultLocation=cities.getCity(city).slice(0,2)})),defProp(Hebcal,"candleLighting",getset(function(){return holidays.Event.candleLighting},function(mins){holidays.Event.candleLighting=mins})),defProp(Hebcal,"havdalah",getset(function(){return holidays.Event.havdalah},function(mins){holidays.Event.havdalah=mins})),Hebcal.Month=Month,MonthProto[isLeapYear]=HDateProto[isLeapYear],MonthProto[prev]=function(){var me=this,year=me[getYearObject]();return 1===me.month?year[getMonth](-1):me.month===TISHREI?year[prev]()[getMonth](months.ELUL):year[getMonth](me.month-1)},MonthProto[next]=function(){var me=this,year=me[getYearObject]();return me.month===c.MONTH_CNT(me.year)?year[getMonth](1):me.month===months.ELUL?year[next]()[getMonth](TISHREI):year[getMonth](me.month+1)},MonthProto[getDay]=function(day){var days=this.days;return day=c.dayYearNum(day),day>days[length]?this[next]()[getDay](day-days[length]):days[day>0?day-1:days[length]+day]},MonthProto[getYearObject]=function(){return this.__year||new Hebcal(this.year)},MonthProto.getName=function(o){return c.LANG(c.monthNames[+this[isLeapYear]()][this.month],o)},MonthProto.rosh_chodesh=function(){var prevMonth=this[prev]();return 30==prevMonth[length]?[prevMonth[getDay](-1),this[getDay](1)]:[this[getDay](1)]},MonthProto.setCity=function(city){return this.days.forEach(function(d){d.setCity(city)}),this},MonthProto.setLocation=function(lat,lon){ -return this.days.forEach(function(d){d.setLocation(lat,lon)}),this},MonthProto[map]=function(){return[][map].apply(this.days,arguments)},MonthProto.molad=function(){var year,m_elapsed,p_elapsed,h_elapsed,parts,m_adj,retMolad={},toInt=parseInt;m_adj=this.month-7,year=this.year-1,m_adj<0&&(m_adj+=c.MONTH_CNT(year+1)),m_elapsed=toInt(m_adj+235*(year/19)),p_elapsed=toInt(204+793*(m_elapsed%1080)),h_elapsed=toInt(5+12*m_elapsed+793*(m_elapsed/1080)-6),parts=toInt(p_elapsed%1080+1080*(h_elapsed%24)),retMolad.doy=new HDate(toInt(1+29*m_elapsed+h_elapsed/24)).getDay(),retMolad.hour=Math.round(h_elapsed%24);var chalakim=toInt(parts%1080);retMolad.minutes=toInt(chalakim/18),retMolad.chalakim=chalakim%18;var day=this.prev().find.strings.shabbat_mevarchim._calc.call(this)[0].onOrAfter(retMolad.doy).greg();return day.setHours(retMolad.hour),day.setMinutes(retMolad.minutes),day.setSeconds(3.33*retMolad.chalakim),retMolad.day=day,retMolad},MonthProto[find]=function find_f(day){var me=this;return"number"==typeof day?[me[getDay](day)]:"string"==typeof day?find_f[strings].call(me,day):Array.isArray(day)?[].concat.apply([],day[map](function(d){return me[find](d)})):day instanceof HDate&&day[getFullYear]()==me.year&&day[getMonth]()==me.month?me[find](day.getDate()):day instanceof Date?me[find](new HDate(day)):[]},MonthProto[find][strings]=function strings(str){var func=strings[str.replace(/\s/g,"_").toLowerCase()];if(func)return func.call(this);try{return this[find](new HDate(str))}catch(e){var num=c.dayYearNum(str);return num?this[find](num):[]}},MonthProto[find][strings].rosh_chodesh=function(){return this.rosh_chodesh()},MonthProto[find][strings].shabbat_mevarchim=function sm(){return this.month===months.ELUL?[]:sm._calc.call(this)},MonthProto[find][strings].shabbat_mevarchim._calc=function(){return this[find](this[getDay](29).onOrBefore(c.days.SAT))},MonthProto[find][strings].shabbos_mevarchim=MonthProto[find][strings].shabbos_mevorchim=MonthProto[find][strings].shabbat_mevarchim,Hebcal.HDate=HDate,HDateProto.getMonthObject=function(){return this.__month||new Month(this[getMonth](),this[getFullYear]())},HDateProto[getYearObject]=function(){return this.getMonthObject()[getYearObject]()},function(){var orig={};[prev,next].forEach(function(func){orig[func]=HDateProto[func],HDateProto[func]=function(){var day=orig[func].call(this);return this.__month?this[getYearObject]()[find](day)[0]:day}})}(),HDateProto.getSedra=function(){var __cache={};return function(o){var sedraYear=__cache[this[getFullYear]()];return sedraYear&&sedraYear.il==this.il||(sedraYear=__cache[this[getFullYear]()]=new Sedra(this[getFullYear](),this.il)),sedraYear.get(this)[map](function(p){return c.LANG(p,o)})}}(),HDateProto.getParsha=HDateProto.getSedra,HDateProto.holidays=function(all){var me=this,days=me[getYearObject]().holidays[me];return days?days.filter(function(h){return!!all||!h.routine()&&h.is(me)})[map](function(h){return h.date.setLocation(me),h}):[]},["candleLighting","havdalah"].forEach(function(prop){HDateProto[prop]=function(){var me=this,hd=me.holidays(!0).filter(function(h){return h.is(me)});return hd.length&&(hd=c.filter(hd.map(function(h){return h[prop]()}),!0)),hd.length?new Date(Math.max.apply(null,hd)):null}}),HDateProto.omer=function(){var me=this,greg=me.greg().getTime(),year=me[getFullYear]();return greg>new HDate(15,NISAN,year).greg().getTime()&&greg=5727?year[find](29,months.IYYAR):[])),yes_prev=__cache.yes_prev[y]=mapAbs([].concat(year[find](-1,months.ELUL),year[find](9,months.TISHREI),year[find](14,months.IYYAR))),__cache.il[y]=me.il),all=all.indexOf(me.abs())>-1,some=some.indexOf(me.abs())>-1,yes_prev=yes_prev.indexOf(me.abs()+1)>-1,all)return NONE;var ret=(!some&&ALL_CONGS)|(6!=me[getDay]()&&SHACHARIT);return ret|=checkNext&&!yes_prev?me[next]().tachanun(!0)&SHACHARIT&&MINCHA:5!=me[getDay]()&&MINCHA,ret==ALL_CONGS?NONE:ret}var NONE=tachanun.NONE=0,MINCHA=tachanun.MINCHA=1,SHACHARIT=tachanun.SHACHARIT=2,ALL_CONGS=tachanun.ALL_CONGS=4,__cache={all:{},some:{},yes_prev:{},il:{}};return tachanun}(),HDateProto.hallel=function(){function hallel(){var me=this,year=me[getYearObject](),y=year.year,whole=__cache.il[y]==me.il&&__cache.whole[y]||(__cache.whole[y]=[].concat(year[find](c.range(25,33),months.KISLEV),year[find]([15,me.il?null:16],NISAN),year[find]("Shavuot"),year[find]("Sukkot"),holidays.atzmaut(y)[1].date||[],y>=5727?year[find](29,months.IYYAR):[])[map](function(d){return d.abs()})),half=__cache.il[y]==me.il&&__cache.half[y]||(__cache.half[y]=[].concat(year[find]("Rosh Chodesh").filter(function(rc){return rc[getMonth]()!=TISHREI}),year[find](c.range(17-me.il,23-me.il),NISAN))[map](function(d){return d.abs()}));return __cache.il[y]=me.il,whole.indexOf(me.abs())>-1&&WHOLE||half.indexOf(me.abs())>-1&&HALF||NONE}var NONE=hallel.NONE=0,HALF=hallel.HALF=1,WHOLE=hallel.WHOLE=2,__cache={whole:{},half:{},il:{}};return hallel}(),function(events){function checkTimes(){function close(obj,compare){return c.filter(c[map](obj,function(time){return time-nowGreg}),function(time){return time>0&&time-compare<0})}var now=new HDate;today.isSameDate(now)||(events.emit("dayChange"),today=now);var nowGreg=new Date,almostTime=close(now.getZemanim(),events.beforeZeman),customTimes=close(events.customs,events.refreshInterval);for(var zeman in almostTime)events.emit("almostZeman",zeman,almostTime[zeman]),almostTime[zeman]months[length]?this[next]()[getMonth](month-months[length]):months[month>0?month-1:months[length]+month]},extend(GregYearProto,{days:HebcalProto.days,map:HebcalProto[map],filter:HebcalProto.filter,addHoliday:HebcalProto.addHoliday}),Hebcal.GregMonth=GregMonth,GregMonthProto[isLeapYear]=function(){return greg.LEAP(this.year)},GregMonthProto[prev]=function(){return 1===this.month?this[getYearObject]()[prev]()[getMonth](-1):this[getYearObject]()[getMonth](this.month-1)},GregMonthProto[next]=function(){return this[getYearObject]()[getMonth](this.month+1)},GregMonthProto[getDay]=function(day){return day>this.days[length]?this[next]()[getDay](day-this.days[length]):this.days[day>0?day-1:this.days[length]+day]},GregMonthProto[getYearObject]=function(){return this.__year||new GregYear(this.year)},GregMonthProto.getName=function(){return greg.monthNames[this.month]},GregMonthProto.setCity=MonthProto.setCity,GregMonthProto.setLocation=MonthProto.setLocation,GregMonthProto[map]=MonthProto[map],HDateProto.getGregMonthObject=function(){return this.__gregmonth||new GregMonth(this.greg()[getMonth]()+1,this.greg()[getFullYear]())},HDateProto.getGregYearObject=function(){return this.getGregMonthObject()[getYearObject]()},module.exports=Hebcal},{"./cities":1,"./common":3,"./dafyomi":4,"./greg":5,"./hdate":6,"./holidays":8,"./sedra":12,events:9,gematriya:10}],8:[function(require,module,exports){function Chanukah(day){return["Chanukah: Candle "+day,0,"חנוכה: נר "+gematriya(day)]}function CHM(desc){return[desc[0]+' (CH"M)',desc[1]?desc[1]+' (CH"M)':desc[1],desc[2]?desc[2]+' )חה"ם(':desc[2]]}function Sukkot(day){return["Sukkot: "+day,"Succos: "+day,"סוכות יום "+gematriya(day)]}function Pesach(day){return["Pesach: "+day,0,"פסח יום "+gematriya(day)]}function Event(date,desc,mask){var me=this;me.date=new HDate(date),me.desc="object"!=typeof desc?[desc]:desc,me.USER_EVENT=!!(mask&USER_EVENT),me.LIGHT_CANDLES=!!(mask&LIGHT_CANDLES),me.YOM_TOV_ENDS=!!(mask&YOM_TOV_ENDS),me.CHUL_ONLY=!!(mask&CHUL_ONLY),me.IL_ONLY=!!(mask&IL_ONLY),me.LIGHT_CANDLES_TZEIS=!!(mask&LIGHT_CANDLES_TZEIS)}function atzmaut(year){if(year>=5708){var tmpDate=new HDate(1,months.IYYAR,year),pesach=new HDate(15,NISAN,year);return pesach[getDay]()==days.SUN?tmpDate.setDate(2):pesach[getDay]()==SAT?tmpDate.setDate(3):year<5764?tmpDate.setDate(4):pesach[getDay]()==days.TUE?tmpDate.setDate(5):tmpDate.setDate(4),[new Event(tmpDate,["Yom HaZikaron",0,"יום הזיכרון"],0),new Event(tmpDate.next(),["Yom HaAtzma'ut",0,"יום העצמאות"],0)]}return[]}var c=require("./common"),HDate=require("./hdate"),gematriya=require("gematriya"),__cache={},dayOnOrBefore=c.dayOnOrBefore,months=c.months,days=c.days,TISHREI=months.TISHREI,KISLEV=months.KISLEV,NISAN=months.NISAN,SAT=days.SAT,getDay="getDay",abs="abs",Shabbat="Shabbat",Shabbos="Shabbos",USER_EVENT=1,LIGHT_CANDLES=2,YOM_TOV_ENDS=4,CHUL_ONLY=8,IL_ONLY=16,LIGHT_CANDLES_TZEIS=32;exports.masks={USER_EVENT:USER_EVENT,LIGHT_CANDLES:LIGHT_CANDLES,YOM_TOV_ENDS:YOM_TOV_ENDS,CHUL_ONLY:CHUL_ONLY,IL_ONLY:IL_ONLY,LIGHT_CANDLES_TZEIS:LIGHT_CANDLES_TZEIS},Event.prototype.is=function(date,il){return date=new HDate(date),myDate=this.date,arguments.length<2&&(il=date.il),date.getDate()==myDate.getDate()&&date.getMonth()==myDate.getMonth()&&(date.getFullYear()==myDate.getFullYear()&&!(il&&this.CHUL_ONLY||!il&&this.IL_ONLY))},Event.prototype.masks=function(){var me=this;return(me.USER_EVENT&&USER_EVENT)|(me.LIGHT_CANDLES&&LIGHT_CANDLES)|(me.YOM_TOV_ENDS&&YOM_TOV_ENDS)|(me.CHUL_ONLY&&CHUL_ONLY)|(me.IL_ONLY&&IL_ONLY)|(me.LIGHT_CANDLES_TZEIS&&LIGHT_CANDLES_TZEIS)},Event.prototype.getDesc=function(o){return c.LANG(this.desc,o)},Event.prototype.candleLighting=function(){var date=this.date;return this.LIGHT_CANDLES?new Date(date.sunset()-60*Event.candleLighting*1e3):this.LIGHT_CANDLES_TZEIS?date.getZemanim().tzeit:null},Event.prototype.havdalah=function(){return this.YOM_TOV_ENDS?new Date(this.date.sunset().getTime()+60*Event.havdalah*1e3):null},Event.prototype.routine=function(){function routine(){return!!~routine.names.indexOf(this.getDesc("s"))}return routine.names=[Shabbat,"Erev "+Shabbat],routine}(),Event.isIL=!1,Event.candleLighting=18,Event.havdalah=42,exports.Event=Event,exports.year=function(year){function add(ev){Array.isArray(ev)?ev.forEach(function(e){add(e)}):h[ev.date]?h[ev.date].push(ev):h[ev.date]=[ev]}if(__cache[year])return __cache[year];var tmpDate,RH=new HDate(1,TISHREI,year),pesach=new HDate(15,NISAN,year),h={};Object.defineProperty(h,"add",{value:add}),add([new Event(RH,["Rosh Hashana 1",0,"ראש השנה א'"],LIGHT_CANDLES_TZEIS),new Event(new HDate(2,TISHREI,year),["Rosh Hashana 2",0,"ראש השנה ב'"],YOM_TOV_ENDS),new Event(new HDate(3+(RH[getDay]()==days.THU),TISHREI,year),["Tzom Gedaliah",0,"צום גדליה"],0),new Event(new HDate(9,TISHREI,year),["Erev Yom Kippur",0,"ערב יום כיפור"],LIGHT_CANDLES),new Event(new HDate(dayOnOrBefore(SAT,7+RH[abs]())),[Shabbat+" Shuva",Shabbos+" Shuvah","שבת שובה"],0),new Event(new HDate(10,TISHREI,year),["Yom Kippur",0,"יום כיפור"],YOM_TOV_ENDS),new Event(new HDate(14,TISHREI,year),["Erev Sukkot","Erev Succos","ערב סוכות"],LIGHT_CANDLES),new Event(new HDate(15,TISHREI,year),Sukkot(1),LIGHT_CANDLES_TZEIS|CHUL_ONLY),new Event(new HDate(15,TISHREI,year),Sukkot(1),YOM_TOV_ENDS|IL_ONLY),new Event(new HDate(16,TISHREI,year),Sukkot(2),YOM_TOV_ENDS|CHUL_ONLY),new Event(new HDate(16,TISHREI,year),CHM(Sukkot(2)),IL_ONLY),new Event(new HDate(17,TISHREI,year),CHM(Sukkot(3)),0),new Event(new HDate(18,TISHREI,year),CHM(Sukkot(4)),0),new Event(new HDate(19,TISHREI,year),CHM(Sukkot(5)),0),new Event(new HDate(20,TISHREI,year),CHM(Sukkot(6)),0),new Event(new HDate(21,TISHREI,year),["Sukkot: 7 (Hoshana Raba)","Succos: 7 (Hoshana Raba)","סוכות יום ז' )הושנע רבה("],LIGHT_CANDLES),new Event(new HDate(22,TISHREI,year),["Shmini Atzeret","Shmini Atzeres","שמיני עצרת"],LIGHT_CANDLES_TZEIS|CHUL_ONLY),new Event(new HDate(22,TISHREI,year),["Shmini Atzeret / Simchat Torah","Shmini Atzeres / Simchas Torah","שמיני עצרת / שמחת תורה"],YOM_TOV_ENDS|IL_ONLY),new Event(new HDate(23,TISHREI,year),["Simchat Torah","Simchas Torah","שמחת תורה"],YOM_TOV_ENDS|CHUL_ONLY),new Event(new HDate(24,KISLEV,year),["Erev Chanukah",0,"ערב חנוכה"],0),new Event(new HDate(25,KISLEV,year),Chanukah(1),0),new Event(new HDate(26,KISLEV,year),Chanukah(2),0),new Event(new HDate(27,KISLEV,year),Chanukah(3),0),new Event(new HDate(28,KISLEV,year),Chanukah(4),0),new Event(new HDate(29,KISLEV,year),Chanukah(5),0),new Event(new HDate(30,KISLEV,year),Chanukah(6),0),new Event(new HDate(31,KISLEV,year),Chanukah(7),0),new Event(new HDate(32,KISLEV,year),Chanukah(8),0),new Event(new HDate(15,months.SHVAT,year),["Tu B'Shvat",0,'ט"ו בשבט'],0),new Event(new HDate(dayOnOrBefore(SAT,pesach[abs]()-43)),[Shabbat+" Shekalim",Shabbos+" Shekalim","שבת שקלים"],0),new Event(new HDate(dayOnOrBefore(SAT,pesach[abs]()-30)),[Shabbat+" Zachor",Shabbos+" Zachor","שבת זכור"],0),new Event(new HDate(pesach[abs]()-(pesach[getDay]()==days.TUE?33:31)),["Ta'anit Esther","Ta'anis Esther","תענית אסתר"],0),new Event(new HDate(13,months.ADAR_II,year),["Erev Purim",0,"ערב פורים"],0),new Event(new HDate(14,months.ADAR_II,year),["Purim",0,"פורים"],0),new Event(new HDate(15,months.ADAR_II,year),["Shushan Purim",0,"שושן פורים"],0),new Event(new HDate(dayOnOrBefore(SAT,pesach[abs]()-14)-7),[Shabbat+" Parah",Shabbos+" Parah","שבת פרה"],0),new Event(new HDate(dayOnOrBefore(SAT,pesach[abs]()-14)),[Shabbat+" Hachodesh",Shabbos+" Hachodesh","שבת החודש"],0),new Event(new HDate(dayOnOrBefore(SAT,pesach[abs]()-1)),[Shabbat+" HaGadol",Shabbos+" HaGadol","שבת הגדול"],0),new Event(pesach.prev()[getDay]()==SAT?pesach.onOrBefore(days.THU):new HDate(14,NISAN,year),["Ta'anit Bechorot","Ta'anis Bechoros","תענית בכורות"],0),new Event(new HDate(14,NISAN,year),["Erev Pesach",0,"ערב פסח"],LIGHT_CANDLES),new Event(new HDate(15,NISAN,year),Pesach(1),LIGHT_CANDLES_TZEIS|CHUL_ONLY),new Event(new HDate(15,NISAN,year),Pesach(1),YOM_TOV_ENDS|IL_ONLY),new Event(new HDate(16,NISAN,year),Pesach(2),YOM_TOV_ENDS|CHUL_ONLY),new Event(new HDate(16,NISAN,year),CHM(Pesach(2)),IL_ONLY),new Event(new HDate(16,NISAN,year),["Start counting Omer",0,"התחלת ספירת העומר"],0),new Event(new HDate(17,NISAN,year),CHM(Pesach(3)),0),new Event(new HDate(18,NISAN,year),CHM(Pesach(4)),0),new Event(new HDate(19,NISAN,year),CHM(Pesach(5)),0),new Event(new HDate(20,NISAN,year),CHM(Pesach(6)),LIGHT_CANDLES),new Event(new HDate(21,NISAN,year),Pesach(7),LIGHT_CANDLES_TZEIS|CHUL_ONLY),new Event(new HDate(21,NISAN,year),Pesach(7),YOM_TOV_ENDS|IL_ONLY),new Event(new HDate(22,NISAN,year),Pesach(8),YOM_TOV_ENDS|CHUL_ONLY),new Event(new HDate(14,months.IYYAR,year),["Pesach Sheni",0,"פסח שני"],0),new Event(new HDate(18,months.IYYAR,year),["Lag B'Omer",0,'ל"ג בעומר'],0),new Event(new HDate(5,months.SIVAN,year),["Erev Shavuot","Erev Shavuos","ערב שבועות"],LIGHT_CANDLES),new Event(new HDate(6,months.SIVAN,year),["Shavuot 1","Shavuos 1","שבועות א'"],LIGHT_CANDLES_TZEIS|CHUL_ONLY),new Event(new HDate(6,months.SIVAN,year),["Shavuot","Shavuos","שבועות"],YOM_TOV_ENDS|IL_ONLY),new Event(new HDate(7,months.SIVAN,year),["Shavuot 2","Shavuos 2","שבועות ב'"],YOM_TOV_ENDS|CHUL_ONLY),new Event(new HDate(dayOnOrBefore(SAT,new HDate(1,TISHREI,year+1)[abs]()-4)),["Leil Selichot","Leil Selichos","ליל סליחות"],0),new Event(new HDate(29,months.ELUL,year),["Erev Rosh Hashana",0,"ערב ראש השנה"],LIGHT_CANDLES)]),tmpDate=new HDate(10,months.TEVET,year),tmpDate[getDay]()==SAT&&(tmpDate=tmpDate.next()),add(new Event(tmpDate,["Asara B'Tevet",0,"עשרה בטבת"],0)),c.LEAP(year)&&(add(new Event(new HDate(14,months.ADAR_I,year),["Purim Katan",0,"פורים קטן"],0)),add(new Event(new HDate(15,months.ADAR_I,year),["Shushan Purim Katan",0,"שושן פורים קטן"],0))),year>=5711&&(tmpDate=new HDate(27,NISAN,year),tmpDate[getDay]()==days.FRI?tmpDate=tmpDate.prev():tmpDate[getDay]()==days.SUN&&(tmpDate=tmpDate.next()),add(new Event(tmpDate,["Yom HaShoah",0,"יום השואה"],0))),add(atzmaut(year)),year>=5727&&add(new Event(new HDate(29,months.IYYAR,year),["Yom Yerushalayim",0,"יום ירושלים"],0)),tmpDate=new HDate(17,months.TAMUZ,year),tmpDate[getDay]()==SAT&&(tmpDate=tmpDate.next()),add(new Event(tmpDate,["Shiva-Asar B'Tamuz",0,"צום יז' בתמוז"],0)),tmpDate=new HDate(9,months.AV,year),tmpDate[getDay]()==SAT&&(tmpDate=tmpDate.next()),add(new Event(new HDate(dayOnOrBefore(SAT,tmpDate[abs]())),[Shabbat+" Chazon",Shabbos+" Chazon","שבת חזון"],0)),add(new Event(tmpDate.prev(),["Erev Tish'a B'Av",0,"ערב תשעה באב"],0)),add(new Event(tmpDate,["Tish'a B'Av",0,"תשעה באב"],0)),add(new Event(new HDate(dayOnOrBefore(SAT,tmpDate[abs]()+7)),[Shabbat+" Nachamu",Shabbos+" Nachamu","שבת נחמו"],0));for(var day=6;day0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[type].length),"function"==typeof console.trace&&console.trace())),this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError("listener must be a function");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit("removeListener",type,listener);else if(isObject(list)){for(i=length;i-- >0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(position<0)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit("removeListener",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)"removeListener"!==key&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events={},this}if(listeners=this._events[type],isFunction(listeners))this.removeListener(type,listeners);else if(listeners)for(;listeners.length;)this.removeListener(type,listeners[listeners.length-1]);return delete this._events[type],this},EventEmitter.prototype.listeners=function(type){var ret;return ret=this._events&&this._events[type]?isFunction(this._events[type])?[this._events[type]]:this._events[type].slice():[]},EventEmitter.prototype.listenerCount=function(type){if(this._events){var evlistener=this._events[type];if(isFunction(evlistener))return 1;if(evlistener)return evlistener.length}return 0},EventEmitter.listenerCount=function(emitter,type){return emitter.listenerCount(type)}},{}],10:[function(require,module,exports){!function(){function gematriya(num,limit){if("number"!=typeof num&&"string"!=typeof num)throw new TypeError("non-number or string given to gematriya()");var str="string"==typeof num;return str&&(num=num.replace(/('|")/g,"")),num=num.toString().split("").reverse(),!str&&limit&&(num=num.slice(0,limit)),num=num.map(function g(n,i){return str?limit&&numbers[n]1e3?g(n,i-3):letters[parseInt(n,10)*Math.pow(10,i)]}),str?num.reduce(function(o,t){return o+t},0):(num=num.reverse().join("").replace(/יה/g,"טו").replace(/יו/g,"טז").split(""),1===num.length?num.push("'"):num.length>1&&num.splice(-1,0,'"'),num.join(""))}var i,letters={},numbers={"":0,"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400,"תק":500,"תר":600,"תש":700,"תת":800,"תתק":900,"תתר":1e3};for(i in numbers)letters[numbers[i]]=i;"undefined"!=typeof module?module.exports=gematriya:window.gematriya=gematriya}()},{}],11:[function(require,module,exports){!function(){"use strict";function toJulian(date){return date.valueOf()/dayMs-.5+J1970}function fromJulian(j){return new Date((j+.5-J1970)*dayMs)}function toDays(date){return toJulian(date)-J2000}function rightAscension(l,b){return atan(sin(l)*cos(e)-tan(b)*sin(e),cos(l))}function declination(l,b){return asin(sin(b)*cos(e)+cos(b)*sin(e)*sin(l))}function azimuth(H,phi,dec){return atan(sin(H),cos(H)*sin(phi)-tan(dec)*cos(phi))}function altitude(H,phi,dec){return asin(sin(phi)*sin(dec)+cos(phi)*cos(dec)*cos(H))}function siderealTime(d,lw){return rad*(280.16+360.9856235*d)-lw}function astroRefraction(h){return h<0&&(h=0),2967e-7/Math.tan(h+.00312536/(h+.08901179))}function solarMeanAnomaly(d){return rad*(357.5291+.98560028*d)}function eclipticLongitude(M){var C=rad*(1.9148*sin(M)+.02*sin(2*M)+3e-4*sin(3*M)),P=102.9372*rad;return M+C+P+PI}function sunCoords(d){var M=solarMeanAnomaly(d),L=eclipticLongitude(M);return{dec:declination(L,0),ra:rightAscension(L,0)}}function julianCycle(d,lw){return Math.round(d-J0-lw/(2*PI))}function approxTransit(Ht,lw,n){return J0+(Ht+lw)/(2*PI)+n}function solarTransitJ(ds,M,L){return J2000+ds+.0053*sin(M)-.0069*sin(2*L)}function hourAngle(h,phi,d){return acos((sin(h)-sin(phi)*sin(d))/(cos(phi)*cos(d)))}function getSetJ(h,lw,phi,dec,n,M,L){var w=hourAngle(h,phi,dec),a=approxTransit(w,lw,n);return solarTransitJ(a,M,L)}function moonCoords(d){var L=rad*(218.316+13.176396*d),M=rad*(134.963+13.064993*d),F=rad*(93.272+13.22935*d),l=L+6.289*rad*sin(M),b=5.128*rad*sin(F),dt=385001-20905*cos(M);return{ra:rightAscension(l,b),dec:declination(l,b),dist:dt}}function hoursLater(date,h){return new Date(date.valueOf()+h*dayMs/24)}var PI=Math.PI,sin=Math.sin,cos=Math.cos,tan=Math.tan,asin=Math.asin,atan=Math.atan2,acos=Math.acos,rad=PI/180,dayMs=864e5,J1970=2440588,J2000=2451545,e=23.4397*rad,SunCalc={};SunCalc.getPosition=function(date,lat,lng){var lw=rad*-lng,phi=rad*lat,d=toDays(date),c=sunCoords(d),H=siderealTime(d,lw)-c.ra;return{azimuth:azimuth(H,phi,c.dec),altitude:altitude(H,phi,c.dec)}};var times=SunCalc.times=[[-.833,"sunrise","sunset"],[-.3,"sunriseEnd","sunsetStart"],[-6,"dawn","dusk"],[-12,"nauticalDawn","nauticalDusk"],[-18,"nightEnd","night"],[6,"goldenHourEnd","goldenHour"]];SunCalc.addTime=function(angle,riseName,setName){times.push([angle,riseName,setName])};var J0=9e-4;SunCalc.getTimes=function(date,lat,lng){var i,len,time,Jset,Jrise,lw=rad*-lng,phi=rad*lat,d=toDays(date),n=julianCycle(d,lw),ds=approxTransit(0,lw,n),M=solarMeanAnomaly(ds),L=eclipticLongitude(M),dec=declination(L,0),Jnoon=solarTransitJ(ds,M,L),result={solarNoon:fromJulian(Jnoon),nadir:fromJulian(Jnoon-.5)};for(i=0,len=times.length;i=0&&(dx=Math.sqrt(d)/(2*Math.abs(a)),x1=xe-dx,x2=xe+dx,Math.abs(x1)<=1&&roots++,Math.abs(x2)<=1&&roots++,x1<-1&&(x1=x2)),1===roots?h0<0?rise=i+x1:set=i+x1:2===roots&&(rise=i+(ye<0?x2:x1),set=i+(ye<0?x1:x2)),!rise||!set);i+=2)h0=h2;var result={};return rise&&(result.rise=hoursLater(t,rise)),set&&(result.set=hoursLater(t,set)),rise||set||(result[ye>0?"alwaysUp":"alwaysDown"]=!0),result},"object"==typeof exports&&"undefined"!=typeof module?module.exports=SunCalc:"function"==typeof define&&define.amd?define(SunCalc):window.SunCalc=SunCalc}()},{}],12:[function(require,module,exports){function Sedra(hebYr,il){il=!!il;var type,long_c=c.lngChesh(hebYr),short_k=c.shrtKis(hebYr);this.year=hebYr,type=long_c&&!short_k?COMPLETE:!long_c&&short_k?INCOMPLETE:REGULAR;var rosh_hashana=new HDate(1,c.months.TISHREI,hebYr).abs(),rosh_hashana_day=rosh_hashana%7+1;this.first_saturday=c.dayOnOrBefore(6,rosh_hashana+6);var leap=+c.LEAP(hebYr);this.type=type,this.rosh_hashana_day=rosh_hashana_day,this.leap=leap,this.il=il;var core=""+leap+rosh_hashana_day+type;if(types[core]?this.theSedraArray=types[core]:this.theSedraArray=types[core+ +il],!this.theSedraArray)throw console.log(this),new TypeError("improper sedra year type calculated.")}function D(p){return-p}function abs(year,absDate){absDate=c.dayOnOrBefore(6,absDate+6);var weekNum=(absDate-year.first_saturday)/7,index=year.theSedraArray[weekNum];return void 0===index?abs(new Sedra(year.year+1,year.il),absDate):"object"==typeof index?[index]:index>=0?[parshiot[index]]:(index=D(index),[parshiot[index],parshiot[index+1]])}var c=require("./common"),HDate=require("./hdate"),concat="concat",range=c.range,INCOMPLETE=0,REGULAR=1,COMPLETE=2,parshiot=Sedra.parshiot=[["Bereshit","Bereshis","בראשית"],["Noach",0,"נח"],["Lech-Lecha",0,"לך-לך"],["Vayera",0,"וירא"],["Chayei Sara",0,"חי שרה"],["Toldot","Toldos","תולדות"],["Vayetzei",0,"ויצא"],["Vayishlach",0,"וישלח"],["Vayeshev",0,"וישב"],["Miketz",0,"מקץ"],["Vayigash",0,"ויגש"],["Vayechi",0,"ויחי"],["Shemot","Shemos","שמות"],["Vaera",0,"וארא"],["Bo",0,"בא"],["Beshalach",0,"בשלח"],["Yitro","Yisro","יתרו"],["Mishpatim",0,"משפטים"],["Terumah",0,"תרומה"],["Tetzaveh",0,"תצוה"],["Ki Tisa","Ki Sisa","כי תשא"],["Vayakhel",0,"ויקהל"],["Pekudei",0,"פקודי"],["Vayikra",0,"ויקרא"],["Tzav",0,"צו"],["Shmini",0,"שמיני"],["Tazria",0,"תזריע"],["Metzora",0,"מצרע"],["Achrei Mot","Achrei Mos","אחרי מות"],["Kedoshim",0,"קדשים"],["Emor",0,"אמור"],["Behar",0,"בהר"],["Bechukotai","Bechukosai","בחקתי"],["Bamidbar",0,"במדבר"],["Nasso",0,"נשא"],["Beha'alotcha","Beha'aloscha","בהעלתך"],["Sh'lach",0,"שלח לך"],["Korach",0,"קורח"],["Chukat","Chukas","חקת"],["Balak",0,"בלק"],["Pinchas",0,"פינחס"],["Matot","Matos","מטות"],["Masei",0,"מסעי"],["Devarim",0,"דברים"],["Vaetchanan","V'eschanan","ואתחנן"],["Eikev",0,"עקב"],["Re'eh",0,"ראה"],["Shoftim",0,"שופטים"],["Ki Teitzei","Ki Seitzei","כי תצא"],["Ki Tavo","Ki Savo","כי תבוא"],["Nitzavim",0,"נצבים"],["Vayeilech",0,"וילך"],["Ha'Azinu",0,"האזינו"]],RH=[["Rosh Hashana",0,"ראש השנה"]],YK=[["Yom Kippur",0,"יום כיפור"]],SUKKOT=[["Sukkot","Succos","סוכות"]],CHMSUKOT=[["Chol hamoed Sukkot","Chol hamoed Succos","חול המועד סוכות"]],SHMINI=[["Shmini Atzeret","Shmini Atzeres","שמיני עצרת"]],EOY=[["End-of-Year: Simchat-Torah, Sukkot","End-of-Year: Simchas-Torah, Succos","סופשנה: סוכות וסמחת תורה"]],PESACH=[["Pesach",0,"פסח"]],CHMPESACH=[["Chol hamoed Pesach",0,"חול המועד פסח"]],PESACH7=[["Second days of Pesach",0,"שביעי של פסח"]],SHAVUOT=[["Shavuot","Shavuos","שבועות"]],types={ -"020":[51,52][concat](EOY,range(0,20),D(21),23,24,PESACH,25,D(26),D(28),30,D(31),range(33,40),D(41),range(43,49),D(50)),"0220":[51,52][concat](EOY,range(0,20),D(21),23,24,PESACH,25,D(26),D(28),30,D(31),33,SHAVUOT,range(34,37),D(38),40,D(41),range(43,49),D(50)),"0510":[52][concat](YK,EOY,range(0,20),D(21),23,24,PESACH,PESACH,25,D(26),D(28),30,D(31),range(33,40),D(41),range(43,50)),"0511":[52][concat](YK,EOY,range(0,20),D(21),23,24,PESACH,25,D(26),D(28),range(30,40),D(41),range(43,50)),"052":[52][concat](YK,CHMSUKOT,range(0,24),PESACH7,25,D(26),D(28),30,D(31),range(33,40),D(41),range(43,50)),"070":[][concat](RH,52,SUKKOT,SHMINI,range(0,20),D(21),23,24,PESACH7,25,D(26),D(28),30,D(31),range(33,40),D(41),range(43,50)),"072":[][concat](RH,52,SUKKOT,SHMINI,range(0,20),D(21),23,24,CHMPESACH,25,D(26),D(28),30,D(31),range(33,40),D(41),range(43,49),D(50)),1200:[51,52][concat](CHMSUKOT,range(0,27),CHMPESACH,range(28,33),SHAVUOT,range(34,37),D(38),40,D(41),range(43,49),D(50)),1201:[51,52][concat](CHMSUKOT,range(0,27),CHMPESACH,range(28,40),D(41),range(43,49),D(50)),1220:[51,52][concat](CHMSUKOT,range(0,27),PESACH,PESACH,range(28,40),D(41),range(43,50)),1221:[51,52][concat](CHMSUKOT,range(0,27),PESACH,range(28,50)),150:[52][concat](YK,CHMSUKOT,range(0,28),PESACH7,range(29,50)),152:[52][concat](YK,CHMSUKOT,range(0,28),CHMPESACH,range(29,49),D(50)),170:[][concat](RH,52,SUKKOT,SHMINI,range(0,27),CHMPESACH,range(28,40),D(41),range(43,49),D(50)),1720:[][concat](RH,52,SUKKOT,SHMINI,range(0,27),CHMPESACH,range(28,33),SHAVUOT,range(34,37),D(38),40,D(41),range(43,49),D(50))};types["0221"]=types["020"],types["0310"]=types["0220"],types["0311"]=types["020"],types[1310]=types[1220],types[1311]=types[1221],types[1721]=types[170],Sedra.prototype.get=function(hDate){return abs(this,hDate.abs())},module.exports=Sedra},{"./common":3,"./hdate":6}]},{},[2]); +!function e(t,n,r){function a(o,s){if(!n[o]){if(!t[o]){var u="function"==typeof require&&require;if(!s&&u)return u(o,!0);if(i)return i(o,!0);var h=new Error("Cannot find module '"+o+"'");throw h.code="MODULE_NOT_FOUND",h}var c=n[o]={exports:{}};t[o][0].call(c.exports,function(e){var n=t[o][1][e];return a(n?n:e)},c,c.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o=19440||2==o%7&&i>=9924&&!r(e)||1==o%7&&i>=16789&&r(e-1));return s+(s%7===0||s%7==3||s%7==5)}function i(e){return a(e+1)-a(e)}function o(e){return i(e)%10==5}function s(e){return i(e)%10==3}function u(e){switch(e.toLowerCase()[0]){case"n":case"נ":return"o"==e.toLowerCase()[1]?0:l.NISAN;case"i":return l.IYYAR;case"e":return l.ELUL;case"c":case"ח":return l.CHESHVAN;case"k":case"כ":return l.KISLEV;case"s":switch(e.toLowerCase()[1]){case"i":return l.SIVAN;case"h":return l.SHVAT;default:return 0}case"t":switch(e.toLowerCase()[1]){case"a":return l.TAMUZ;case"i":return l.TISHREI;case"e":return l.TEVET}break;case"a":switch(e.toLowerCase()[1]){case"v":return l.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?l.ADAR_I:l.ADAR_II}break;case"ס":return l.SIVAN;case"ש":return l.SHVAT;case"א":switch(e.toLowerCase()[1]){case"ב":return l.AV;case"ד":return/(2|ii|b|ב)$/i.test(e)?l.ADAR_I:l.ADAR_II;case"י":return l.IYYAR;case"ל":return l.ELUL}break;case"ת":switch(e.toLowerCase()[1]){case"מ":return l.TAMUZ;case"ש":return l.TISHREI}}return 0}function h(e,t,n){if(null===e)throw new TypeError("self is null");switch(typeof t){case"function":break;case"string":case"number":return e[t];case"boolean":t=t?function(e){return e}:function(e){return!e};break;case"object":var r=t;if(t instanceof RegExp){t=function(e){return r.test(e)};break}if(Array.isArray(t)){t=function(e,t){return r.indexOf(t)>-1};break}default:throw new TypeError("fun is not a supported type")}var a={},i=Object(e);for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];if(t.call(n,s,o,i)){var u=Object.getOwnPropertyDescriptor(i,o);u.value=s,Object.defineProperty(a,o,u)}}if(Array.isArray(e)||"string"==typeof e){var h=[];for(o in a)h[Number(o)]=a[o];a=h.filter(function(e){return e}),"string"==typeof e&&(a=a.join(""))}return a}var c=e("gematriya"),f="charCodeAt",l=n.months={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},y=[["",0,""],["Nisan",0,"ניסן"],["Iyyar",0,"אייר"],["Sivan",0,"סיון"],["Tamuz",0,"תמוז"],["Av",0,"אב"],["Elul",0,"אלול"],["Tishrei",0,"תשרי"],["Cheshvan",0,"חשון"],["Kislev",0,"כסלו"],["Tevet",0,"טבת"],["Sh'vat",0,"שבט"]];n.monthNames=[y.concat([["Adar",0,"אדר"],["Nisan",0,"ניסן"]]),y.concat([["Adar 1",0,"אדר א'"],["Adar 2",0,"אדר ב'"],["Nisan",0,"ניסן"]])],n.days={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6},n.LANG=function(e,t){return"h"==t&&e[2]||"a"==t&&e[1]||e[0]},n.LEAP=r,n.MONTH_CNT=function(e){return 12+r(e)},n.daysInMonth=function(e,t){return 30-(e==l.IYYAR||e==l.TAMUZ||e==l.ELUL||e==l.TEVET||e==l.ADAR_II||e==l.ADAR_I&&!r(t)||e==l.CHESHVAN&&!o(t)||e==l.KISLEV&&s(t))},n.monthNum=function(e){return"number"==typeof e?e:e[f](0)>=1488&&e[f](0)<=1514&&/('|")/.test(e)?c(e):e[f](0)>=48&&e[f](0)<=57?parseInt(e,10):u(e)},n.dayYearNum=function(e){return"number"==typeof e?e:e[f](0)>=1488&&e[f](0)<=1514?c(e,!0):parseInt(e,10)},n.hebElapsedDays=a,n.daysInYear=i,n.lngChesh=o,n.shrtKis=s,n.monthFromName=u,n.dayOnOrBefore=function(e,t){return t-(t-e)%7},n.map=function(e,t,n){if(null===e||"function"!=typeof t)throw new TypeError;var r=Object(e),a={};for(var i in r)r.hasOwnProperty(i)&&(a[i]=t.call(n,r[i],i,r));if(Array.isArray(e)||"string"==typeof e){var o=[];for(i in a)o[Number(i)]=a[i];a=h(o,!0),"string"==typeof e&&(a=a.join(""))}return a},n.filter=h,n.range=function(e,t,n){n=n||1,n<0&&(n=0-n);var r=[],a=e;if(e=t;a-=n)r.push(a);return r}},{gematriya:10}],4:[function(e,t,n){var r=e("./common"),a=e("./greg"),i=e("gematriya"),o=[["Berachot","Berachos","ברכות",64],["Shabbat","Shabbos","שבת",157],["Eruvin","Eruvin","עירובין",105],["Pesachim",0,"פסחים",121],["Shekalim",0,"שקלים",22],["Yoma",0,"יומא",88],["Sukkah",0,"סוכה",56],["Beitzah",0,"ביצה",40],["Rosh Hashana",0,"ראש השנה",35],["Taanit","Taanis","תענית",31],["Megillah",0,"מגילה",32],["Moed Katan",0,"מועד קטן",29],["Chagigah",0,"חגיגה",27],["Yevamot","Yevamos","יבמות",122],["Ketubot","Kesubos","כתובות",112],["Nedarim",0,"נדרים",91],["Nazir",0,"נזיר",66],["Sotah",0,"סוטה",49],["Gitin",0,"גיטין",90],["Kiddushin",0,"קידושין",82],["Baba Kamma",0,"בבא קמא",119],["Baba Metzia",0,"בבא מציעא",119],["Baba Batra","Baba Basra","בבא בתרא",176],["Sanhedrin",0,"סנהדרין",113],["Makkot","Makkos","מכות",24],["Shevuot","Shevuos","שבועות",49],["Avodah Zarah",0,"עבודה זרה",76],["Horayot","Horayos","הוריות",14],["Zevachim",0,"זבחים",120],["Menachot","Menachos","מנחות",110],["Chullin",0,"חולין",142],["Bechorot","Bechoros","בכורות",61],["Arachin",0,"ערכין",34],["Temurah",0,"תמורה",34],["Keritot","Kerisos","כריתות",28],["Meilah",0,"מעילה",22],["Kinnim",0,"קנים",4],["Tamid",0,"תמיד",10],["Midot","Midos","מדות",4],["Niddah",0,"נדה",73]].map(function(e){return{name:e.slice(0,3),blatt:e[3]}});n.dafyomi=function(e){var t,n,r,i,s,u,h,c,f,l=40;if(!(e instanceof Date))throw new TypeError("non-date given to dafyomi");if(r=a.greg2abs(new Date(1923,8,11)),i=a.greg2abs(new Date(1975,5,24)),c=a.greg2abs(e),c=i?(t=8+(c-i)/2711,n=(c-i)%2711):(t=1+(c-r)/2702,n=(c-r)%2702),s=f=0,u=-1,t<=7?o[4].blatt=13:o[4].blatt=22,h=0;h1&&(t-=i((4*(e.getMonth()+1)+23)/10),a(e.getFullYear())&&t++),t}function a(e){return!(e%4||!(e%100)&&e%400)}var i=Math.floor,o=[30,31],s=[0,31,28,31].concat(o,o,31,o,o),u=[s.slice()];s[2]++,u.push(s),n.daysInMonth=function(e,t){return u[+a(t)][e]},n.monthNames=["","January","February","March","April","May","June","July","August","September","October","November","December"],n.lookupMonthNum=function(e){return new Date(e+" 1").getMonth()+1},n.dayOfYear=r,n.LEAP=a,n.greg2abs=function(e){var t=e.getFullYear()-1;return r(e)+365*t+(i(t/4)-i(t/100)+i(t/400))},n.abs2greg=function(e){var t=e-1,n=i(t/146097),r=i(t%146097),a=i(r/36524),o=r%36524,s=i(o/1461),u=o%1461,h=i(u/365),c=u%365+1,f=400*n+100*a+4*s+h;return 4==a||4==h?new Date(f,11,31):new Date(new Date(++f,0,c).setFullYear(f))}},{}],6:[function(e,t,n){function r(e,t,n){var a=this;switch(arguments.length){case 0:return new r(new Date);case 1:if("undefined"==typeof e)return new r;if(e instanceof Date){var i=u(y.greg2abs(e));return i}if(e instanceof r){var i=new r(e[p](),e[v](),e[g]());return i.il=e.il,i.setLocation(i.lat,i.long),i}if("string"==typeof e){switch(e.toLowerCase().trim()){case"today":return new r;case"yesterday":return(new r).prev();case"tomorrow":return(new r).next()}if(/\s/.test(e)){var o=e.split(/\s+/);if(2==o.length)return new r(o[0],o[1]);if(3==o.length)return new r(o[0],o[1],o[2]);if(4==o.length)return/i/i.test(o[2])&&(o[2]=o[2].length),new r(o[0],o[1]+o[2],o[3])}}else if("number"==typeof e)return u(e);throw new TypeError("HDate called with bad argument");case 2:return new r(e,t,(new r)[g]());case 3:a.day=a.month=1,a.year=l.dayYearNum(n),a.setMonth(l.monthNum(t)),a.setDate(l.dayYearNum(e));break;default:throw new TypeError("HDate called with bad arguments")}return a.setLocation.apply(a,r.defaultLocation)}function a(e){o(e),i(e)}function i(e){e.day<1&&(e.month==_&&(e.year-=1),e.day+=T(e.month,e.year),e.month-=1,a(e)),e.day>T(e.month,e.year)&&(e.month==E.ELUL&&(e.year+=1),e.day-=T(e.month,e.year),e.month+=1,a(e)),o(e)}function o(e){e.month!=E.ADAR_II||e.isLeapYear()||(e.month-=1,a(e)),e.month<1&&(e.month+=S(e.year),e.year-=1,a(e)),e.month>S(e.year)&&(e.month-=S(e.year),e.year+=1,a(e))}function s(e){var t,n=e[p](),r=e[g]();if(e[v]()<_){for(t=_;t<=S(r);t++)n+=T(t,r);for(t=E.NISAN;t=10555144)throw new RangeError("parameter to abs2hebrew "+e+" out of range");for(n=y.abs2greg(e),t=new r(1,_,i=3760+n[g]());e>=s(t.setFullYear(i+1));)i++;for(a=i>4634&&i<10666?o[n[v]()]:_;e>s(t=new r(T(a,i),a,i));)a=a%S(i)+1;return t.setLocation.apply(t.setDate(e-s(t.setDate(1))+1),r.defaultLocation)}function h(e){var t=e.greg();return m.getTimes(new Date(t.getFullYear(),t.getMonth(),t.getDate(),12,0,0,0,0),e.lat,e.long)}function c(e,t){return new Date(e.sunrise()[b]()+e[L]()*t)}function f(e,t,n){return new r(M(e,t[A]()+n))}var l=e("./common"),y=e("./greg"),m=e("suncalc"),d=e("./cities"),w=e("gematriya");m.addTime(-16.1,"alot_hashachar",0),m.addTime(-11.5,"misheyakir",0),m.addTime(-10.2,"misheyakir_machmir",0),m.addTime(-8.5,0,"tzeit");var g="getFullYear",v="getMonth",p="getDate",b="getTime",A="abs",L="hour",E=l.months,_=E.TISHREI,S=l.MONTH_CNT,T=l.daysInMonth,M=l.dayOnOrBefore,N=r.prototype;r.defaultLocation=[0,0],Object.defineProperty(r,"defaultCity",{enumerable:!0,configurable:!0,get:function(){return d.nearest(r.defaultLocation[0],r.defaultLocation[1])},set:function(e){r.defaultLocation=d.getCity(e).slice(0,2)}}),N[g]=function(){return this.year},N.isLeapYear=function(){return l.LEAP(this.year)},N[v]=function(){return this.month},N.getTishreiMonth=function(){var e=S(this[g]());return(this[v]()+e-6)%e||e},N.daysInMonth=function(){return T(this[v](),this[g]())},N[p]=function(){return this.day},N.getDay=function(){return this.greg().getDay()},N.setFullYear=function(e){return this.year=e,a(this),this},N.setMonth=function(e){return this.month=l.monthNum(e),a(this),this},N.setTishreiMonth=function(e){return this.setMonth((e+6)%S(this[g]())||13)},N.setDate=function(e){return this.day=e,a(this),this},N.greg=function(){return y.abs2greg(s(this))},N.gregEve=function(){return this.prev().sunset()},N[A]=function(){return s(this)},N.toString=function(e){return l.LANG([this[p](),null,w(this[p]())],e)+" "+this.getMonthName(e)+" "+l.LANG([this[g](),null,w(this[g]())],e)},N.getMonthName=function(e){return l.LANG(l.monthNames[+this.isLeapYear()][this[v]()],e)},N.setCity=function(e){return this.setLocation(d.getCity(e))},N.setLocation=function(e,t){if("object"!=typeof e||Array.isArray(e)||(t=e.long,e=e.lat),Array.isArray(e)&&"undefined"==typeof t&&(t=e[0],e=e[1]),Array.isArray(e)&&(e=(60*e[0]+e[1])/60),Array.isArray(t)&&(t=(60*t[0]+t[1])/60),"number"!=typeof e)throw new TypeError("incorrect lat type passed to HDate.setLocation()");if("number"!=typeof t)throw new TypeError("incorrect long type passed to HDate.setLocation()");return this.lat=e,this.long=t,this.il=d.getCity(d.nearest(e,t))[2],this},N.sunrise=function(){return h(this).sunrise},N.sunset=function(){return h(this).sunset},N[L]=function(){return(this.sunset()-this.sunrise())/12},N.hourMins=function(){return this[L]()/6e4},N.nightHour=function(){return(this.sunrise()-this.gregEve())/12},N.nightHourMins=function(){return this.nightHour()/6e4};var I={chatzot:function(e){return c(e,6)},chatzot_night:function(e){return new Date(e.sunrise()[b]()-6*e.nightHour())},alot_hashachar:function(e){return h(e).alot_hashachar},alot_hashacher:function(e){return h(e).alot_hashachar},misheyakir:function(e){return h(e).misheyakir},misheyakir_machmir:function(e){return h(e).misheyakir_machmir},sof_zman_shma:function(e){return c(e,3)},sof_zman_tfilla:function(e){return c(e,4)},mincha_gedola:function(e){return c(e,6.5)},mincha_ketana:function(e){return c(e,9.5)},plag_hamincha:function(e){return c(e,10.75)},tzeit:function(e){return h(e).tzeit},neitz_hachama:function(e){return e.sunrise()},shkiah:function(e){return e.sunset()}};N.getZemanim=function(){return l.map(I,function(e){return e(this)},this)},r.addZeman=function(e,t){I[e]=t},N.next=function(){return u(this.abs()+1).setLocation(this.lat,this.long)},N.prev=function(){return u(this.abs()-1).setLocation(this.lat,this.long)},N.isSameDate=function(e){return e instanceof r&&(e[g]()==-1&&(e=new r(e).setFullYear(this[g]())),this[A]()==e[A]())},N.before=function(e){return f(e,this,-1)},N.onOrBefore=function(e){return f(e,this,0)},N.nearest=function(e){return f(e,this,3)},N.onOrAfter=function(e){return f(e,this,6)},N.after=function(e){return f(e,this,7)},t.exports=r},{"./cities":1,"./common":3,"./greg":5,gematriya:10,suncalc:11}],7:[function(e,t,n){function r(e,t){return{enumerable:!0,configurable:!0,get:e,set:t}}function a(e,t){for(var n in t)e[n]=t[n];return e}function i(e,t){var n=this;if(e||(e=(new c)[T]()),"number"!=typeof e)throw new p("year to Hebcal() is not a number");if(n.year=e,!t)return new i(e,h.range(1,h.MONTH_CNT(e)));if("string"==typeof t&&(t=h.monthFromName(t)),"number"==typeof t&&(t=[t]),!Array.isArray(t))throw new p("month to Hebcal is not a valid type");n.months=t[E](function(t){var r=new o(t,e);return v(r,"__year",{configurable:!0,writable:!0,value:n}),r}),n.holidays=f.year(e),n[N]=h.daysInYear(e),v(n,"il",r(function(){return n[S](1).il},function(e){n.months.forEach(function(t){t.il=e})})),v(n,"lat",r(function(){return n[S](1).lat},function(e){n.months.forEach(function(t){t.lat=e})})),v(n,"long",r(function(){return n[S](1).long},function(e){n.months.forEach(function(t){t.long=e})}))}function o(e,t){var n=this;if(e=h.monthNum(e),"number"!=typeof e)throw new p("month to Hebcal.Month is not a valid type");if("number"!=typeof t)throw new p("year to Hebcal.Month is not a number");return n.month=e,n.year=t,n.days=h.range(1,h.daysInMonth(e,t))[E](function(r){var a=new c(r,e,t);return v(a,"__month",{configurable:!0,writable:!0,value:n}),a}),n[N]=n.days[N],n.holidays=h.filter(f.year(t),function(t){return t[0].date[S]()==e}),v(n,"il",r(function(){return n[_](1).il},function(e){n.days.forEach(function(t){t.il=e})})),v(n,"lat",r(function(){return n[_](1).lat},function(e){n.days.forEach(function(t){t.lat=e})})),v(n,"long",r(function(){return n[_](1).long},function(e){n.days.forEach(function(t){t.long=e})})),n}function s(e,t){var n=this;if(e||(e=(new Date)[T]()),"string"==typeof e){var i=new Date(e);return t=e.indexOf(" ")+1||e.indexOf("-")+1||e.indexOf("/")+1?i[S]()+1:h.range(1,12),new s(i[T](),t)}if("number"!=typeof e)throw new p("year to Hebcal.GregYear() is not a number");if(n.year=e,!t)return new s(e,h.range(1,12));if("string"==typeof t&&(t=d.lookupMonthName(t)),"number"==typeof t&&(t=[t]),!Array.isArray(t))throw new p("month to Hebcal.GregYear() is not a valid type");return n.months=t[E](function(t){var r=new u(t,e);return v(r,"__year",{configurable:!0,writable:!0,value:n}),r}),n.hebyears=[].concat.apply([],n.months[E](function(e){return e.hebmonths[E](function(e){return e.year})})).filter(function(e,t,n){return n.indexOf(e)===t}),n.holidays=h.filter(f.year(n.hebyears[0]),function(t){return t[0].date.greg()[T]()===e&&n.months.filter(function(e){return e.month===t[0].date.greg()[S]()+1})[N]}),n.hebyears[1]&&a(n.holidays,h.filter(f.year(n.hebyears[1]),function(t){return t[0].date.greg()[T]()===e&&n.months.filter(function(e){return e.month===t[0].date.greg()[S]()+1})[N]})),n[N]=365+d.LEAP(e),v(n,"il",r(function(){return n[S](1).il},function(e){n.months.forEach(function(t){t.il=e})})),v(n,"lat",r(function(){return n[S](1).lat},function(e){n.months.forEach(function(t){t.lat=e})})),v(n,"long",r(function(){return n[S](1).long},function(e){n.months.forEach(function(t){t.long=e})})),n}function u(e,t){var n=this;if("string"==typeof e&&(e=d.lookupMonthNum(e)),"number"!=typeof e)throw new p("month to Hebcal.GregMonth is not a valid type");if("number"!=typeof t)throw new p("year to Hebcal.GregMonth is not a number");return n.year=t,n.month=e,n.days=h.range(1,d.daysInMonth(e,t))[E](function(r){var a=new c(new Date(t,e-1,r));return v(a,"__gregmonth",{configurable:!0,writable:!0,value:n}),a}),n[N]=n.days[N],n.hebmonths=[{month:n[_](1)[S](),year:n[_](1)[T]()},{month:n[_](-1)[S](),year:n[_](-1)[T]()}].filter(function(e,t,n){return 0===t||e.month!=n[0].month}),v(n,"il",r(function(){return n[_](1).il},function(e){n.days.forEach(function(t){t.il=e})})),v(n,"lat",r(function(){return n[_](1).lat},function(e){n.days.forEach(function(t){t.lat=e})})),v(n,"long",r(function(){return n[_](1).long},function(e){n.days.forEach(function(t){t.long=e})})),n}var h=e("./common"),c=e("./hdate"),f=e("./holidays"),l=e("./sedra"),y=e("./dafyomi"),m=e("./cities"),d=e("./greg"),w=e("events").EventEmitter,g=e("gematriya"),v=Object.defineProperty,p=TypeError,b="find",A="strings",L="getYearObject",E="map",_="getDay",S="getMonth",T="getFullYear",M="isLeapYear",N="length",I="next",H="prev",D=h.months,C=D.TISHREI,O=D.NISAN,Y=i.prototype,k=o.prototype,R=s.prototype,V=u.prototype,P=c.prototype;Y[M]=P[M],Y.setCity=function(e){return this.months.forEach(function(t){t.setCity(e)}),this},Y.setLocation=function(e,t){return this.months.forEach(function(n){n.setLocation(e,t)}),this},Y[I]=function(){return new i(this.year+1)},Y[H]=function(){return new i(this.year-1)},Y[S]=function(e){var t=this.months;return e=h.monthNum(e),e>this.months[N]?this[I]()[S](e-t[N]):t[e>0?e-1:t[N]+e]},Y[_]=function(e){var t=this;if(e>t[N])return null;if(e<0)return t[_](t[N]-e);var n=t[b](29,D.ELUL)[0].abs()+1-t[b](1,O)[0].abs();return e<=n?t[S](O)[_](e):t[S](C)[_](e-n)},Y.days=function(){return[].concat.apply([],this.months[E](function(e){return e.days}))},Y[E]=function(){return[][E].apply(this.days(),arguments)},Y.filter=function(){return[].filter.apply(this.days(),arguments)},Y.addHoliday=function(e){if(!(e instanceof f.Event))throw new p("non-Event passed to addHoliday()");return this.holidays.add(e),this},Y.findParsha=function(e,t){var n=t?[t]:["s","a","h"],r=this.filter(function(t){return Math.max.apply(null,n.map(function(n){return t.getSedra(n).indexOf(e)+1}))});return r[r[N]-1]},Y.findSedra=Y.findParsha,Y[b]=function e(t,n){var r=this;if(1===arguments[N]){if("string"==typeof t)return e[A].call(r,t);if(Array.isArray(t))return[].concat.apply([],t[E](function(e){return r[b][Array.isArray(e)?"apply":"call"](r,e)}));if(t instanceof c)return r[b](t.getDate(),t[S]());if(t instanceof Date)return r[b](new c(t))}else if(2==arguments[N]){if(n instanceof o)return n[b](t);if(Array.isArray(n))return[].concat.apply([],n[E](function(e){return r[b](t,e)}));if("string"==typeof n)return r[b](t,h.monthNum(n));if("number"==typeof n)return r[b](t,r[S](n))}return[]},Y[b][A]=function e(t){var n=t.split(/\s+/),r=e[t.replace(/\s/g,"_").toLowerCase()];if(!n[N])return[];if(r)return r.call(this);try{return this[b](new c(t))}catch(e){return n[N]-1?this[b].apply(this,n):[]}},Y[b][A].rosh_chodesh=function(){return this[b]("Rosh Chodesh",h.range(1,this.months[N]))},Y[b][A].holidays=function(){return[].concat.apply([],this.holidays[E](function(e){return this[b](e.date)},this))},Y[b][A].omer=function(){return this[b](h.range(16,64),O)},Y[b][A].today=function(){return this[b](new c)},Y[b][A].yesterday=function(){return[this[b]("today")[0][H]()]},Y[b][A].tomorrow=function(){return[this[b]("today")[0][I]()]},Y[b][A].pesach=function(){return this[b](h.range(15,23-this.il),O)},Y[b][A].sukkot=function(){return this[b](h.range(15,24-this.il),C)},Y[b][A].succot=Y[b][A].succos=Y[b][A].sukkos=Y[b][A].sukkot,Y[b][A].shavuot=function(){return this[b](h.range(6,7-this.il),D.SIVAN)},Y[b][A].shavuos=Y[b][A].shavuot,Y[b][A].rosh_hashana=function(){return this[b](h.range(1,2),C)},Y[b][A].rosh_hashanah=Y[b][A].rosh_hashana,i.addZeman=c.addZeman,i.cities=m,i.range=h.range,i.gematriya=g,i.holidays=h.filter(f,["masks","Event"]),i.parshiot=l.parshiot,i.LANGUAGE=h.LANG,i[E]=h[E],i.filter=h.filter,v(i,"defaultLocation",r(function(){return c.defaultLocation},function(e){i.events.emit("locationChange",c.defaultLocation),c.defaultLocation=e})),v(i,"defaultCity",r(function(){return c.defaultCity},function(e){i.defaultLocation=m.getCity(e).slice(0,2)})),v(i,"candleLighting",r(function(){return f.Event.candleLighting},function(e){f.Event.candleLighting=e})),v(i,"havdalah",r(function(){return f.Event.havdalah},function(e){f.Event.havdalah=e})),i.Month=o,k[M]=P[M],k[H]=function(){var e=this,t=e[L]();return 1===e.month?t[S](-1):e.month===C?t[H]()[S](D.ELUL):t[S](e.month-1)},k[I]=function(){var e=this,t=e[L]();return e.month===h.MONTH_CNT(e.year)?t[S](1):e.month===D.ELUL?t[I]()[S](C):t[S](e.month+1)},k[_]=function(e){var t=this.days;return e=h.dayYearNum(e),e>t[N]?this[I]()[_](e-t[N]):t[e>0?e-1:t[N]+e]},k[L]=function(){return this.__year||new i(this.year)},k.getName=function(e){return h.LANG(h.monthNames[+this[M]()][this.month],e)},k.rosh_chodesh=function(){var e=this[H]();return 30==e[N]?[e[_](-1),this[_](1)]:[this[_](1)]},k.setCity=function(e){return this.days.forEach(function(t){t.setCity(e)}),this},k.setLocation=function(e,t){return this.days.forEach(function(n){n.setLocation(e,t)}),this},k[E]=function(){return[][E].apply(this.days,arguments)},k.molad=function(){var e,t,n,r,a,i,o={},s=parseInt;i=this.month-7,e=this.year-1,i<0&&(i+=h.MONTH_CNT(e+1)),t=s(i+235*(e/19)),n=s(204+793*(t%1080)),r=s(5+12*t+793*(t/1080)-6),a=s(n%1080+1080*(r%24)),o.doy=new c(s(1+29*t+r/24)).getDay(),o.hour=Math.round(r%24);var u=s(a%1080);o.minutes=s(u/18),o.chalakim=u%18;var f=this.prev().find.strings.shabbat_mevarchim._calc.call(this)[0].onOrAfter(o.doy).greg();return f.setHours(o.hour),f.setMinutes(o.minutes),f.setSeconds(3.33*o.chalakim),o.day=f,o},k[b]=function e(t){var n=this;return"number"==typeof t?[n[_](t)]:"string"==typeof t?e[A].call(n,t):Array.isArray(t)?[].concat.apply([],t[E](function(e){return n[b](e)})):t instanceof c&&t[T]()==n.year&&t[S]()==n.month?n[b](t.getDate()):t instanceof Date?n[b](new c(t)):[]},k[b][A]=function e(t){var n=e[t.replace(/\s/g,"_").toLowerCase()];if(n)return n.call(this);try{return this[b](new c(t))}catch(e){var r=h.dayYearNum(t);return r?this[b](r):[]}},k[b][A].rosh_chodesh=function(){return this.rosh_chodesh()},k[b][A].shabbat_mevarchim=function e(){return this.month===D.ELUL?[]:e._calc.call(this)},k[b][A].shabbat_mevarchim._calc=function(){return this[b](this[_](29).onOrBefore(h.days.SAT))},k[b][A].shabbos_mevarchim=k[b][A].shabbos_mevorchim=k[b][A].shabbat_mevarchim,i.HDate=c,P.getMonthObject=function(){return this.__month||new o(this[S](),this[T]())},P[L]=function(){return this.getMonthObject()[L]()},function(){var e={};[H,I].forEach(function(t){e[t]=P[t],P[t]=function(){var n=e[t].call(this);return this.__month?this[L]()[b](n)[0]:n}})}(),P.getSedra=function(){var e={};return function(t){var n=e[this[T]()];return n&&n.il==this.il||(n=e[this[T]()]=new l(this[T](),this.il)),n.get(this)[E](function(e){return h.LANG(e,t)})}}(),P.getParsha=P.getSedra,P.holidays=function(e){var t=this,n=t[L]().holidays[t];return n?n.filter(function(n){return!!e||!n.routine()&&n.is(t)})[E](function(e){return e.date.setLocation(t),e}):[]},["candleLighting","havdalah"].forEach(function(e){P[e]=function(){var t=this,n=t.holidays(!0).filter(function(e){return e.is(t)});return n.length&&(n=h.filter(n.map(function(t){return t[e]()}),!0)),n.length?new Date(Math.max.apply(null,n)):null}}),P.omer=function(){var e=this,t=e.greg().getTime(),n=e[T]();return t>new c(15,O,n).greg().getTime()&&t=5727?y[b](29,D.IYYAR):[])),u=i.yes_prev[m]=e([].concat(y[b](-1,D.ELUL),y[b](9,D.TISHREI),y[b](14,D.IYYAR))),i.il[m]=l.il),o=o.indexOf(l.abs())>-1,s=s.indexOf(l.abs())>-1,u=u.indexOf(l.abs()+1)>-1,o)return t;var d=(!s&&a)|(6!=l[_]()&&r);return d|=c&&!u?l[I]().tachanun(!0)&r&&n:5!=l[_]()&&n,d==a?t:d}var t=e.NONE=0,n=e.MINCHA=1,r=e.SHACHARIT=2,a=e.ALL_CONGS=4,i={all:{},some:{},yes_prev:{},il:{}};return e}(),P.hallel=function(){function e(){var e=this,i=e[L](),o=i.year,s=a.il[o]==e.il&&a.whole[o]||(a.whole[o]=[].concat(i[b](h.range(25,33),D.KISLEV),i[b]([15,e.il?null:16],O),i[b]("Shavuot"),i[b]("Sukkot"),f.atzmaut(o)[1].date||[],o>=5727?i[b](29,D.IYYAR):[])[E](function(e){return e.abs()})),u=a.il[o]==e.il&&a.half[o]||(a.half[o]=[].concat(i[b]("Rosh Chodesh").filter(function(e){return e[S]()!=C}),i[b](h.range(17-e.il,23-e.il),O))[E](function(e){return e.abs()}));return a.il[o]=e.il,s.indexOf(e.abs())>-1&&r||u.indexOf(e.abs())>-1&&n||t}var t=e.NONE=0,n=e.HALF=1,r=e.WHOLE=2,a={whole:{},half:{},il:{}};return e}(),function(e){function t(){function t(e,t){return h.filter(h[E](e,function(e){return e-r}),function(e){return e>0&&e-t<0})}var n=new c;i.isSameDate(n)||(e.emit("dayChange"),i=n);var r=new Date,a=t(n.getZemanim(),e.beforeZeman),o=t(e.customs,e.refreshInterval);for(var s in a)e.emit("almostZeman",s,a[s]),a[s]t[N]?this[I]()[S](e-t[N]):t[e>0?e-1:t[N]+e]},a(R,{days:Y.days,map:Y[E],filter:Y.filter,addHoliday:Y.addHoliday}),i.GregMonth=u,V[M]=function(){return d.LEAP(this.year)},V[H]=function(){return 1===this.month?this[L]()[H]()[S](-1):this[L]()[S](this.month-1)},V[I]=function(){return this[L]()[S](this.month+1)},V[_]=function(e){return e>this.days[N]?this[I]()[_](e-this.days[N]):this.days[e>0?e-1:this.days[N]+e]},V[L]=function(){return this.__year||new s(this.year)},V.getName=function(){return d.monthNames[this.month]},V.setCity=k.setCity,V.setLocation=k.setLocation,V[E]=k[E],P.getGregMonthObject=function(){return this.__gregmonth||new u(this.greg()[S]()+1,this.greg()[T]())},P.getGregYearObject=function(){return this.getGregMonthObject()[L]()},t.exports=i},{"./cities":1,"./common":3,"./dafyomi":4,"./greg":5,"./hdate":6,"./holidays":8,"./sedra":12,events:9,gematriya:10}],8:[function(e,t,n){function r(e){return["Chanukah: Candle "+e,0,"חנוכה: נר "+f(e)]}function a(e){return[e[0]+' (CH"M)',e[1]?e[1]+' (CH"M)':e[1],e[2]?e[2]+' )חה"ם(':e[2]]}function i(e){return["Sukkot: "+e,"Succos: "+e,"סוכות יום "+f(e)]}function o(e){return["Pesach: "+e,0,"פסח יום "+f(e)]}function s(e,t,n){var r=this;r.date=new c(e),r.desc="object"!=typeof t?[t]:t,r.USER_EVENT=!!(n&_),r.LIGHT_CANDLES=!!(n&S),r.YOM_TOV_ENDS=!!(n&T),r.CHUL_ONLY=!!(n&M),r.IL_ONLY=!!(n&N),r.LIGHT_CANDLES_TZEIS=!!(n&I)}function u(e){if(e>=5708){var t=new c(1,m.IYYAR,e),n=new c(15,v,e);return n[b]()==d.SUN?t.setDate(2):n[b]()==p?t.setDate(3):e<5764?t.setDate(4):n[b]()==d.TUE?t.setDate(5):t.setDate(4),[new s(t,["Yom HaZikaron",0,"יום הזיכרון"],0),new s(t.next(),["Yom HaAtzma'ut",0,"יום העצמאות"],0)]}return[]}var h=e("./common"),c=e("./hdate"),f=e("gematriya"),l={},y=h.dayOnOrBefore,m=h.months,d=h.days,w=m.TISHREI,g=m.KISLEV,v=m.NISAN,p=d.SAT,b="getDay",A="abs",L="Shabbat",E="Shabbos",_=1,S=2,T=4,M=8,N=16,I=32;n.masks={USER_EVENT:_,LIGHT_CANDLES:S,YOM_TOV_ENDS:T,CHUL_ONLY:M,IL_ONLY:N,LIGHT_CANDLES_TZEIS:I},s.prototype.is=function(e,t){return e=new c(e),myDate=this.date,arguments.length<2&&(t=e.il),e.getDate()==myDate.getDate()&&e.getMonth()==myDate.getMonth()&&(e.getFullYear()==myDate.getFullYear()&&!(t&&this.CHUL_ONLY||!t&&this.IL_ONLY))},s.prototype.masks=function(){ +var e=this;return(e.USER_EVENT&&_)|(e.LIGHT_CANDLES&&S)|(e.YOM_TOV_ENDS&&T)|(e.CHUL_ONLY&&M)|(e.IL_ONLY&&N)|(e.LIGHT_CANDLES_TZEIS&&I)},s.prototype.getDesc=function(e){return h.LANG(this.desc,e)},s.prototype.candleLighting=function(){var e=this.date;return this.LIGHT_CANDLES?new Date(e.sunset()-60*s.candleLighting*1e3):this.LIGHT_CANDLES_TZEIS?e.getZemanim().tzeit:null},s.prototype.havdalah=function(){return this.YOM_TOV_ENDS?new Date(this.date.sunset().getTime()+60*s.havdalah*1e3):null},s.prototype.routine=function(){function e(){return!!~e.names.indexOf(this.getDesc("s"))}return e.names=[L,"Erev "+L],e}(),s.isIL=!1,s.candleLighting=18,s.havdalah=42,n.Event=s,n.year=function(e){function t(e){Array.isArray(e)?e.forEach(function(e){t(e)}):H[e.date]?H[e.date].push(e):H[e.date]=[e]}if(l[e])return l[e];var n,f=new c(1,w,e),_=new c(15,v,e),H={};Object.defineProperty(H,"add",{value:t}),t([new s(f,["Rosh Hashana 1",0,"ראש השנה א'"],I),new s(new c(2,w,e),["Rosh Hashana 2",0,"ראש השנה ב'"],T),new s(new c(3+(f[b]()==d.THU),w,e),["Tzom Gedaliah",0,"צום גדליה"],0),new s(new c(9,w,e),["Erev Yom Kippur",0,"ערב יום כיפור"],S),new s(new c(y(p,7+f[A]())),[L+" Shuva",E+" Shuvah","שבת שובה"],0),new s(new c(10,w,e),["Yom Kippur",0,"יום כיפור"],T),new s(new c(14,w,e),["Erev Sukkot","Erev Succos","ערב סוכות"],S),new s(new c(15,w,e),i(1),I|M),new s(new c(15,w,e),i(1),T|N),new s(new c(16,w,e),i(2),T|M),new s(new c(16,w,e),a(i(2)),N),new s(new c(17,w,e),a(i(3)),0),new s(new c(18,w,e),a(i(4)),0),new s(new c(19,w,e),a(i(5)),0),new s(new c(20,w,e),a(i(6)),0),new s(new c(21,w,e),["Sukkot: 7 (Hoshana Raba)","Succos: 7 (Hoshana Raba)","סוכות יום ז' )הושנע רבה("],S),new s(new c(22,w,e),["Shmini Atzeret","Shmini Atzeres","שמיני עצרת"],I|M),new s(new c(22,w,e),["Shmini Atzeret / Simchat Torah","Shmini Atzeres / Simchas Torah","שמיני עצרת / שמחת תורה"],T|N),new s(new c(23,w,e),["Simchat Torah","Simchas Torah","שמחת תורה"],T|M),new s(new c(24,g,e),["Erev Chanukah",0,"ערב חנוכה"],0),new s(new c(25,g,e),r(1),0),new s(new c(26,g,e),r(2),0),new s(new c(27,g,e),r(3),0),new s(new c(28,g,e),r(4),0),new s(new c(29,g,e),r(5),0),new s(new c(30,g,e),r(6),0),new s(new c(31,g,e),r(7),0),new s(new c(32,g,e),r(8),0),new s(new c(15,m.SHVAT,e),["Tu B'Shvat",0,'ט"ו בשבט'],0),new s(new c(y(p,_[A]()-43)),[L+" Shekalim",E+" Shekalim","שבת שקלים"],0),new s(new c(y(p,_[A]()-30)),[L+" Zachor",E+" Zachor","שבת זכור"],0),new s(new c(_[A]()-(_[b]()==d.TUE?33:31)),["Ta'anit Esther","Ta'anis Esther","תענית אסתר"],0),new s(new c(13,m.ADAR_II,e),["Erev Purim",0,"ערב פורים"],0),new s(new c(14,m.ADAR_II,e),["Purim",0,"פורים"],0),new s(new c(15,m.ADAR_II,e),["Shushan Purim",0,"שושן פורים"],0),new s(new c(y(p,_[A]()-14)-7),[L+" Parah",E+" Parah","שבת פרה"],0),new s(new c(y(p,_[A]()-14)),[L+" Hachodesh",E+" Hachodesh","שבת החודש"],0),new s(new c(y(p,_[A]()-1)),[L+" HaGadol",E+" HaGadol","שבת הגדול"],0),new s(_.prev()[b]()==p?_.onOrBefore(d.THU):new c(14,v,e),["Ta'anit Bechorot","Ta'anis Bechoros","תענית בכורות"],0),new s(new c(14,v,e),["Erev Pesach",0,"ערב פסח"],S),new s(new c(15,v,e),o(1),I|M),new s(new c(15,v,e),o(1),T|N),new s(new c(16,v,e),o(2),T|M),new s(new c(16,v,e),a(o(2)),N),new s(new c(16,v,e),["Start counting Omer",0,"התחלת ספירת העומר"],0),new s(new c(17,v,e),a(o(3)),0),new s(new c(18,v,e),a(o(4)),0),new s(new c(19,v,e),a(o(5)),0),new s(new c(20,v,e),a(o(6)),S),new s(new c(21,v,e),o(7),I|M),new s(new c(21,v,e),o(7),T|N),new s(new c(22,v,e),o(8),T|M),new s(new c(14,m.IYYAR,e),["Pesach Sheni",0,"פסח שני"],0),new s(new c(18,m.IYYAR,e),["Lag B'Omer",0,'ל"ג בעומר'],0),new s(new c(5,m.SIVAN,e),["Erev Shavuot","Erev Shavuos","ערב שבועות"],S),new s(new c(6,m.SIVAN,e),["Shavuot 1","Shavuos 1","שבועות א'"],I|M),new s(new c(6,m.SIVAN,e),["Shavuot","Shavuos","שבועות"],T|N),new s(new c(7,m.SIVAN,e),["Shavuot 2","Shavuos 2","שבועות ב'"],T|M),new s(new c(y(p,new c(1,w,e+1)[A]()-4)),["Leil Selichot","Leil Selichos","ליל סליחות"],0),new s(new c(29,m.ELUL,e),["Erev Rosh Hashana",0,"ערב ראש השנה"],S)]),n=new c(10,m.TEVET,e),n[b]()==p&&(n=n.next()),t(new s(n,["Asara B'Tevet",0,"עשרה בטבת"],0)),h.LEAP(e)&&(t(new s(new c(14,m.ADAR_I,e),["Purim Katan",0,"פורים קטן"],0)),t(new s(new c(15,m.ADAR_I,e),["Shushan Purim Katan",0,"שושן פורים קטן"],0))),e>=5711&&(n=new c(27,v,e),n[b]()==d.FRI?n=n.prev():n[b]()==d.SUN&&(n=n.next()),t(new s(n,["Yom HaShoah",0,"יום השואה"],0))),t(u(e)),e>=5727&&t(new s(new c(29,m.IYYAR,e),["Yom Yerushalayim",0,"יום ירושלים"],0)),n=new c(17,m.TAMUZ,e),n[b]()==p&&(n=n.next()),t(new s(n,["Shiva-Asar B'Tamuz",0,"צום יז' בתמוז"],0)),n=new c(9,m.AV,e),n[b]()==p&&(n=n.next()),t(new s(new c(y(p,n[A]())),[L+" Chazon",E+" Chazon","שבת חזון"],0)),t(new s(n.prev(),["Erev Tish'a B'Av",0,"ערב תשעה באב"],0)),t(new s(n,["Tish'a B'Av",0,"תשעה באב"],0)),t(new s(new c(y(p,n[A]()+7)),[L+" Nachamu",E+" Nachamu","שבת נחמו"],0));for(var D=6;D0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!a(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},r.prototype.removeListener=function(e,t){var n,r,i,s;if(!a(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],i=n.length,r=-1,n===t||a(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],a(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?a(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(a(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},{}],10:[function(e,t,n){!function(){function e(e,t){if("number"!=typeof e&&"string"!=typeof e)throw new TypeError("non-number or string given to gematriya()");var n="string"==typeof e;return n&&(e=e.replace(/('|")/g,"")),e=e.toString().split("").reverse(),!n&&t&&(e=e.slice(0,t)),e=e.map(function i(o,s){return n?t&&a[o]1e3?i(o,s-3):r[parseInt(o,10)*Math.pow(10,s)]}),n?e.reduce(function(e,t){return e+t},0):(e=e.reverse().join("").replace(/יה/g,"טו").replace(/יו/g,"טז").split(""),1===e.length?e.push("'"):e.length>1&&e.splice(-1,0,'"'),e.join(""))}var n,r={},a={"":0,"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400,"תק":500,"תר":600,"תש":700,"תת":800,"תתק":900,"תתר":1e3};for(n in a)r[a[n]]=n;"undefined"!=typeof t?t.exports=e:window.gematriya=e}()},{}],11:[function(e,t,n){!function(){"use strict";function e(e){return e.valueOf()/I-.5+H}function r(e){return new Date((e+.5-H)*I)}function a(t){return e(t)-D}function i(e,t){return T(L(e)*E(C)-_(t)*L(C),E(e))}function o(e,t){return S(L(t)*E(C)+E(t)*L(C)*L(e))}function s(e,t,n){return T(L(e),E(e)*L(t)-_(n)*E(t))}function u(e,t,n){return S(L(t)*L(n)+E(t)*E(n)*E(e))}function h(e,t){return N*(280.16+360.9856235*e)-t}function c(e){return e<0&&(e=0),2967e-7/Math.tan(e+.00312536/(e+.08901179))}function f(e){return N*(357.5291+.98560028*e)}function l(e){var t=N*(1.9148*L(e)+.02*L(2*e)+3e-4*L(3*e)),n=102.9372*N;return e+t+n+A}function y(e){var t=f(e),n=l(t);return{dec:o(n,0),ra:i(n,0)}}function m(e,t){return Math.round(e-k-t/(2*A))}function d(e,t,n){return k+(e+t)/(2*A)+n}function w(e,t,n){return D+e+.0053*L(t)-.0069*L(2*n)}function g(e,t,n){return M((L(e)-L(t)*L(n))/(E(t)*E(n)))}function v(e,t,n,r,a,i,o){var s=g(e,n,r),u=d(s,t,a);return w(u,i,o)}function p(e){var t=N*(218.316+13.176396*e),n=N*(134.963+13.064993*e),r=N*(93.272+13.22935*e),a=t+6.289*N*L(n),s=5.128*N*L(r),u=385001-20905*E(n);return{ra:i(a,s),dec:o(a,s),dist:u}}function b(e,t){return new Date(e.valueOf()+t*I/24)}var A=Math.PI,L=Math.sin,E=Math.cos,_=Math.tan,S=Math.asin,T=Math.atan2,M=Math.acos,N=A/180,I=864e5,H=2440588,D=2451545,C=23.4397*N,O={};O.getPosition=function(e,t,n){var r=N*-n,i=N*t,o=a(e),c=y(o),f=h(o,r)-c.ra;return{azimuth:s(f,i,c.dec),altitude:u(f,i,c.dec)}};var Y=O.times=[[-.833,"sunrise","sunset"],[-.3,"sunriseEnd","sunsetStart"],[-6,"dawn","dusk"],[-12,"nauticalDawn","nauticalDusk"],[-18,"nightEnd","night"],[6,"goldenHourEnd","goldenHour"]];O.addTime=function(e,t,n){Y.push([e,t,n])};var k=9e-4;O.getTimes=function(e,t,n){var i,s,u,h,c,y=N*-n,g=N*t,p=a(e),b=m(p,y),A=d(0,y,b),L=f(A),E=l(L),_=o(E,0),S=w(A,L,E),T={solarNoon:r(S),nadir:r(S-.5)};for(i=0,s=Y.length;i=0&&(g=Math.sqrt(y)/(2*Math.abs(h)),d=f-g,w=f+g,Math.abs(d)<=1&&m++,Math.abs(w)<=1&&m++,d<-1&&(d=w)),1===m?p<0?s=A+d:u=A+d:2===m&&(s=A+(l<0?w:d),u=A+(l<0?d:w)),!s||!u);A+=2)p=o;var L={};return s&&(L.rise=b(a,s)),u&&(L.set=b(a,u)),s||u||(L[l>0?"alwaysUp":"alwaysDown"]=!0),L},"object"==typeof n&&"undefined"!=typeof t?t.exports=O:"function"==typeof define&&define.amd?define(O):window.SunCalc=O}()},{}],12:[function(e,t,n){function r(e,t){t=!!t;var n,r=o.lngChesh(e),a=o.shrtKis(e);this.year=e,n=r&&!a?l:!r&&a?c:f;var i=new s(1,o.months.TISHREI,e).abs(),u=i%7+1;this.first_saturday=o.dayOnOrBefore(6,i+6);var h=+o.LEAP(e);this.type=n,this.rosh_hashana_day=u,this.leap=h,this.il=t;var y=""+h+u+n;if(_[y]?this.theSedraArray=_[y]:this.theSedraArray=_[y+ +t],!this.theSedraArray)throw console.log(this),new TypeError("improper sedra year type calculated.")}function a(e){return-e}function i(e,t){t=o.dayOnOrBefore(6,t+6);var n=(t-e.first_saturday)/7,s=e.theSedraArray[n];return void 0===s?i(new r(e.year+1,e.il),t):"object"==typeof s?[s]:s>=0?[y[s]]:(s=a(s),[y[s],y[s+1]])}var o=e("./common"),s=e("./hdate"),u="concat",h=o.range,c=0,f=1,l=2,y=r.parshiot=[["Bereshit","Bereshis","בראשית"],["Noach",0,"נח"],["Lech-Lecha",0,"לך-לך"],["Vayera",0,"וירא"],["Chayei Sara",0,"חי שרה"],["Toldot","Toldos","תולדות"],["Vayetzei",0,"ויצא"],["Vayishlach",0,"וישלח"],["Vayeshev",0,"וישב"],["Miketz",0,"מקץ"],["Vayigash",0,"ויגש"],["Vayechi",0,"ויחי"],["Shemot","Shemos","שמות"],["Vaera",0,"וארא"],["Bo",0,"בא"],["Beshalach",0,"בשלח"],["Yitro","Yisro","יתרו"],["Mishpatim",0,"משפטים"],["Terumah",0,"תרומה"],["Tetzaveh",0,"תצוה"],["Ki Tisa","Ki Sisa","כי תשא"],["Vayakhel",0,"ויקהל"],["Pekudei",0,"פקודי"],["Vayikra",0,"ויקרא"],["Tzav",0,"צו"],["Shmini",0,"שמיני"],["Tazria",0,"תזריע"],["Metzora",0,"מצרע"],["Achrei Mot","Achrei Mos","אחרי מות"],["Kedoshim",0,"קדשים"],["Emor",0,"אמור"],["Behar",0,"בהר"],["Bechukotai","Bechukosai","בחקתי"],["Bamidbar",0,"במדבר"],["Nasso",0,"נשא"],["Beha'alotcha","Beha'aloscha","בהעלתך"],["Sh'lach",0,"שלח לך"],["Korach",0,"קורח"],["Chukat","Chukas","חקת"],["Balak",0,"בלק"],["Pinchas",0,"פינחס"],["Matot","Matos","מטות"],["Masei",0,"מסעי"],["Devarim",0,"דברים"],["Vaetchanan","V'eschanan","ואתחנן"],["Eikev",0,"עקב"],["Re'eh",0,"ראה"],["Shoftim",0,"שופטים"],["Ki Teitzei","Ki Seitzei","כי תצא"],["Ki Tavo","Ki Savo","כי תבוא"],["Nitzavim",0,"נצבים"],["Vayeilech",0,"וילך"],["Ha'Azinu",0,"האזינו"]],m=[["Rosh Hashana",0,"ראש השנה"]],d=[["Yom Kippur",0,"יום כיפור"]],w=[["Sukkot","Succos","סוכות"]],g=[["Chol hamoed Sukkot","Chol hamoed Succos","חול המועד סוכות"]],v=[["Shmini Atzeret","Shmini Atzeres","שמיני עצרת"]],p=[["End-of-Year: Simchat-Torah, Sukkot","End-of-Year: Simchas-Torah, Succos","סופשנה: סוכות וסמחת תורה"]],b=[["Pesach",0,"פסח"]],A=[["Chol hamoed Pesach",0,"חול המועד פסח"]],L=[["Second days of Pesach",0,"שביעי של פסח"]],E=[["Shavuot","Shavuos","שבועות"]],_={"020":[51,52][u](p,h(0,20),a(21),23,24,b,25,a(26),a(28),30,a(31),h(33,40),a(41),h(43,49),a(50)),"0220":[51,52][u](p,h(0,20),a(21),23,24,b,25,a(26),a(28),30,a(31),33,E,h(34,37),a(38),40,a(41),h(43,49),a(50)),"0510":[52][u](d,p,h(0,20),a(21),23,24,b,b,25,a(26),a(28),30,a(31),h(33,40),a(41),h(43,50)),"0511":[52][u](d,p,h(0,20),a(21),23,24,b,25,a(26),a(28),h(30,40),a(41),h(43,50)),"052":[52][u](d,g,h(0,24),L,25,a(26),a(28),30,a(31),h(33,40),a(41),h(43,50)),"070":[][u](m,52,w,v,h(0,20),a(21),23,24,L,25,a(26),a(28),30,a(31),h(33,40),a(41),h(43,50)),"072":[][u](m,52,w,v,h(0,20),a(21),23,24,A,25,a(26),a(28),30,a(31),h(33,40),a(41),h(43,49),a(50)),1200:[51,52][u](g,h(0,27),A,h(28,33),E,h(34,37),a(38),40,a(41),h(43,49),a(50)),1201:[51,52][u](g,h(0,27),A,h(28,40),a(41),h(43,49),a(50)),1220:[51,52][u](g,h(0,27),b,b,h(28,40),a(41),h(43,50)),1221:[51,52][u](g,h(0,27),b,h(28,50)),150:[52][u](d,g,h(0,28),L,h(29,50)),152:[52][u](d,g,h(0,28),A,h(29,49),a(50)),170:[][u](m,52,w,v,h(0,27),A,h(28,40),a(41),h(43,49),a(50)),1720:[][u](m,52,w,v,h(0,27),A,h(28,33),E,h(34,37),a(38),40,a(41),h(43,49),a(50))};_["0221"]=_["020"],_["0310"]=_["0220"],_["0311"]=_["020"],_[1310]=_[1220],_[1311]=_[1221],_[1721]=_[170],r.prototype.get=function(e){return i(this,e.abs())},t.exports=r},{"./common":3,"./hdate":6}]},{},[2]); //# sourceMappingURL=client/hebcal.min.js.map \ No newline at end of file diff --git a/client/hebcal.min.js.map b/client/hebcal.min.js.map index 55e20a9..756e618 100644 --- a/client/hebcal.min.js.map +++ b/client/hebcal.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["node_modules/browser-pack/_prelude.js","cities.js","client/client.js","common.js","dafyomi.js","greg.js","hdate.js","hebcal.js","holidays.js","node_modules/events/events.js","node_modules/gematriya/gematriya.js","node_modules/suncalc/suncalc.js","sedra.js"],"names":["e","t","n","r","s","o","u","a","require","i","f","Error","code","l","exports","call","length","1","module","getCity","city","split","map","w","c","join","toLowerCase","toUpperCase","slice","cities","listCities","Object","keys","Ashdod","Atlanta","Austin","Baghdad","Beer Sheva","Berlin","Baltimore","Bogota","Boston","Buenos Aires","Buffalo","Chicago","Cincinnati","Cleveland","Dallas","Denver","Detroit","Eilat","Gibraltar","Haifa","Hawaii","Houston","Jerusalem","Johannesburg","Kiev","La Paz","Livingston","London","Los Angeles","Miami","Melbourne","Mexico City","Montreal","Moscow","New York","Omaha","Ottawa","Panama City","Paris","Petach Tikvah","Philadelphia","Phoenix","Pittsburgh","Saint Louis","Saint Petersburg","San Francisco","Seattle","Sydney","Tel Aviv","Tiberias","Toronto","Vancouver","White Plains","Washington DC","addCity","info","Array","isArray","TypeError","nearest","lat","lon","name","dist","Math","sqrt","pow","abs","reduce","close","ready","Hebcal","finished","events","emit","window","warn","console","log","on","defineProperty","configurable","get","listeners","set","func","navigator","geolocation","getCurrentPosition","p","defaultLocation","coords","latitude","longitude","LEAP","x","hebElapsedDays","hYear","m_elapsed","floor","p_elapsed","h_elapsed","parts","day","alt_day","daysInYear","year","lngChesh","shrtKis","monthFromName","months","NISAN","IYYAR","ELUL","CHESHVAN","KISLEV","SIVAN","SHVAT","TAMUZ","TISHREI","TEVET","AV","test","ADAR_I","ADAR_II","filter","self","fun","thisp","v","funOrig","RegExp","k","indexOf","res","hasOwnProperty","val","props","getOwnPropertyDescriptor","value","arr","Number","gematriya","charCodeAt","monthNames","concat","days","SUN","MON","TUE","WED","THU","FRI","SAT","LANG","str","opts","MONTH_CNT","daysInMonth","month","monthNum","parseInt","dayYearNum","dayOnOrBefore","day_of_week","absdate","range","start","end","step","push","greg","shas","m","blatt","dafyomi","gregdate","cno","dno","osday","nsday","total","count","j","cday","dafcnt","Date","greg2abs","dafname","daf","dayOfYear","date","doy","getDate","getMonth","getFullYear","t0t1","tMonthLengths","monthLengths","lookupMonthNum","abs2greg","theDate","d0","n400","d1","n100","d2","n4","d3","n1","setFullYear","HDate","me","this","arguments","d","abs2hebrew","il","setLocation","long","trim","prev","next","setMonth","setDate","apply","fix","fixMonth","fixDate","isLeapYear","hebrew2abs","tempabs","hebdate","mmap","RangeError","suntime","hdate","suncalc","getTimes","hourOffset","hours","sunrise","getTime","hour","onOrBefore","offset","addTime","prototype","enumerable","getTishreiMonth","nummonths","getDay","setTishreiMonth","gregEve","sunset","toString","getMonthName","setCity","hourMins","nightHour","nightHourMins","zemanim","chatzot","chatzot_night","alot_hashachar","alot_hashacher","misheyakir","misheyakir_machmir","sof_zman_shma","sof_zman_tfilla","mincha_gedola","mincha_ketana","plag_hamincha","tzeit","neitz_hachama","shkiah","getZemanim","z","addZeman","zeman","isSameDate","other","before","onOrAfter","after","getset","g","extend","base","into","TE","Month","defProp","writable","holidays","forEach","h","GregYear","lookupMonthName","GregMonth","hebyears","hebmonths","hm","Sedra","EventEmitter","find","strings","getYearObject","HebcalProto","MonthProto","GregYearProto","GregMonthProto","HDateProto","rosh","addHoliday","holiday","Event","add","findParsha","parsha","langs","max","getSedra","findSedra","find_f","replace","rosh_chodesh","omer","today","yesterday","tomorrow","pesach","sukkot","succot","succos","sukkos","shavuot","shavuos","rosh_hashana","rosh_hashanah","parshiot","LANGUAGE","loc","defaultCity","candleLighting","mins","havdalah","__year","getName","prevMonth","molad","m_adj","retMolad","toInt","round","chalakim","minutes","shabbat_mevarchim","_calc","setHours","setMinutes","setSeconds","num","sm","shabbos_mevarchim","shabbos_mevorchim","getMonthObject","__month","orig","__cache","sedraYear","getParsha","all","routine","is","prop","hd","tachanun","mapAbs","some","yes_prev","checkNext","y","atzmaut","NONE","ret","ALL_CONGS","SHACHARIT","MINCHA","hallel","whole","half","rc","WHOLE","HALF","checkTimes","obj","compare","time","nowGreg","now","almostTime","beforeZeman","customTimes","customs","refreshInterval","custom","refresh","ms","clearInterval","setInterval","unref","getGregMonthObject","__gregmonth","getGregYearObject","Chanukah","CHM","desc","Sukkot","Pesach","mask","USER_EVENT","LIGHT_CANDLES","YOM_TOV_ENDS","CHUL_ONLY","IL_ONLY","LIGHT_CANDLES_TZEIS","tmpDate","Shabbat","Shabbos","masks","myDate","getDesc","names","isIL","ev","RH","_events","_maxListeners","undefined","isFunction","arg","isNumber","isObject","isUndefined","defaultMaxListeners","setMaxListeners","isNaN","type","er","handler","len","args","error","err","context","addListener","listener","newListener","warned","trace","once","removeListener","fired","list","position","splice","removeAllListeners","key","listenerCount","evlistener","emitter","limit","reverse","numbers","letters","","א","ב","ג","ד","ה","ו","ז","ח","ט","י","כ","ל","מ","נ","ס","ע","פ","צ","ק","ר","ש","ת","תק","תר","תש","תת","תתק","תתר","toJulian","valueOf","dayMs","J1970","fromJulian","toDays","J2000","rightAscension","b","atan","sin","cos","tan","declination","asin","azimuth","H","phi","dec","altitude","siderealTime","lw","rad","astroRefraction","solarMeanAnomaly","eclipticLongitude","M","C","P","PI","sunCoords","L","ra","julianCycle","J0","approxTransit","Ht","solarTransitJ","ds","hourAngle","acos","getSetJ","moonCoords","F","dt","hoursLater","atan2","SunCalc","getPosition","lng","times","angle","riseName","setName","Jset","Jrise","Jnoon","result","solarNoon","nadir","getMoonPosition","pa","distance","parallacticAngle","getMoonIllumination","sdist","inc","fraction","phase","getMoonTimes","inUTC","setUTCHours","h1","h2","rise","xe","ye","roots","x1","x2","dx","hc","h0","define","amd","hebYr","long_c","short_k","COMPLETE","INCOMPLETE","REGULAR","rosh_hashana_day","first_saturday","leap","core","types","theSedraArray","D","absDate","weekNum","index","YK","SUKKOT","CHMSUKOT","SHMINI","EOY","PESACH","CHMPESACH","PESACH7","SHAVU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,MAAA,GAAA,IAAAob,EAAA,IAAApb,MAAA,GAAA,IAAAob,EAAA,KAKA2B,QAAApe,QAAAmS,GAAA,GAAA2K,OAAAE,OAAA3b,MAAA,EAAA,IAAA8b,UAAA9b,MAAA,GAAA,IACAgc,QAAAhc,MAAA,GAAA,IAAAob,EAAA,IAAA,GAAAA,EAAA,IAAApb,MAAA,GAAA,IAAAob,EAAA,KAMAF,OAAA,QAAAA,MAAA,OAKAA,MAAA,QAAAA,MAAA,QAIAA,MAAA,QAAAA,MAAA,OAKAA,MAAA,MAAAA,MAAA,MAGAA,MAAA,MAAAA,MAAA,MAIAA,MAAA,MAAAA,MAAA,KAGAzS,MAAAxD,UAAArK,IAAA,SAAAoiB,OACA,MAAAnjB,KAAAkJ,KAAAia,MAAAnjB,QA2BAlF,OAAAJ,QAAAkU","file":"client/hebcal.min.js","sourceRoot":"https://github.com/hebcal/hebcal-js/tree/v2.2.3/","sourcesContent":["(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o.\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\n\n// name, lat, long, Israel\nvar cities = {\n\t\"Ashdod\": [ 31.8, 34.633, true ],\n\t\"Atlanta\": [ 33.75, -84.383, false ],\n\t\"Austin\": [ 30.266, -97.75, false ],\n\t\"Baghdad\": [ 33.233, 44.366, false ],\n\t\"Beer Sheva\": [ 31.25, 34.783, true ],\n\t\"Berlin\": [ 52.516, 13.4, false ],\n\t\"Baltimore\": [ 39.283, -76.6, false ],\n\t\"Bogota\": [ 4.6, -74.083, false ],\n\t\"Boston\": [ 42.333, -71.066, false ],\n\t\"Buenos Aires\": [ -34.616, -58.4, false ],\n\t\"Buffalo\": [ 42.883, -78.866, false ],\n\t\"Chicago\": [ 41.833, -87.75, false ],\n\t\"Cincinnati\": [ 39.1, -84.516, false ],\n\t\"Cleveland\": [ 41.5, -81.683, false ],\n\t\"Dallas\": [ 32.783, -96.8, false ],\n\t\"Denver\": [ 39.733, -104.983, false ],\n\t\"Detroit\": [ 42.333, -83.033, false ],\n\t\"Eilat\": [ 29.55, 34.95, true ],\n\t\"Gibraltar\": [ 36.133, -5.35, false ],\n\t\"Haifa\": [ 32.816, 34.983, true ],\n\t\"Hawaii\": [ 19.5, -155.5, false ],\n\t\"Houston\": [ 29.766, -95.366, false ],\n\t\"Jerusalem\": [ 31.783, 35.233, true ],\n\t\"Johannesburg\": [ -26.166, 28.033, false ],\n\t\"Kiev\": [ 50.466, 30.483, false ],\n\t\"La Paz\": [ -16.5, -68.15, false ],\n\t\"Livingston\": [ 40.283, -74.3, false ],\n\t\"London\": [ 51.5, -0.166, false ],\n\t\"Los Angeles\": [ 34.066, -118.25, false ],\n\t\"Miami\": [ 25.766, -80.2, false ],\n\t\"Melbourne\": [ -37.866, 145.133, false ],\n\t\"Mexico City\": [ 19.4, -99.15, false ],\n\t\"Montreal\": [ 45.5, -73.6, false ],\n\t\"Moscow\": [ 55.75, 37.7, false ],\n\t\"New York\": [ 40.716, -74.016, false ],\n\t\"Omaha\": [ 41.266, -95.933, false ],\n\t\"Ottawa\": [ 45.7, -76.183, false ],\n\t\"Panama City\": [ 8.966, -79.533, false ],\n\t\"Paris\": [ 48.866, 2.333, false ],\n\t\"Petach Tikvah\": [ 32.083, 34.883, true ],\n\t\"Philadelphia\": [ 39.95, -75.166, false ],\n\t\"Phoenix\": [ 33.45, -112.066, false ],\n\t\"Pittsburgh\": [ 40.433, -80, false ],\n\t\"Saint Louis\": [ 38.633, -90.2, false ],\n\t\"Saint Petersburg\": [ 59.883, 30.25, false ],\n\t\"San Francisco\": [ 37.783, -122.416, false ],\n\t\"Seattle\": [ 47.6, -122.333, false ],\n\t\"Sydney\": [ -33.916, 151.283, false ],\n\t\"Tel Aviv\": [ 32.083, 34.766, true ],\n\t\"Tiberias\": [ 32.966, 35.533, true ],\n\t\"Toronto\": [ 43.633, -79.4, false ],\n\t\"Vancouver\": [ 49.266, -123.116, false ],\n\t\"White Plains\": [ 41.033, -73.75, false ],\n\t\"Washington DC\": [ 38.916, -77, false ]\n};\n\nfunction getCity(city) {\n\tcity = city.split(/\\s+/).map(function(w,i,c){\n\t\tif (c.join(' ').toLowerCase() === 'washington dc' && i === 1) { // special case\n\t\t\treturn w.toUpperCase();\n\t\t}\n\t\treturn w[0].toUpperCase() + w.slice(1).toLowerCase();\n\t}).join(' ');\n\treturn cities[city] || [ 0, 0, false ];\n}\nexports.getCity = getCity;\n\nfunction listCities() {\n\treturn Object.keys(cities);\n}\nexports.listCities = listCities;\n\nexports.addCity = function(city, info) {\n\tif (!Array.isArray(info)) {\n\t\tthrow new TypeError('adding non-array city');\n\t}\n\tif (info.length == 5) {\n\t\tvar i = info.slice();\n\t\tinfo = [];\n\t\tinfo[0] = (i[0] * 60 + i[1]) / 60;\n\t\tinfo[1] = (i[2] * 60 + i[3]) / 60;\n\t\tinfo[2] = i[4];\n\t}\n\tif (info.length != 3) {\n\t\tthrow new TypeError('length of city array is not 3');\n\t}\n\tcity = city.split(/\\s+/).map(function(w){return w[0].toUpperCase() + w.slice(1).toLowerCase()}).join(' ');\n\tcities[city] = info;\n};\n\nexports.nearest = function(lat, lon) {\n\tif (Array.isArray(lat)) {\n\t\tlat = (lat[0] * 60 + lat[1]) / 60;\n\t}\n\tif (Array.isArray(lon)) {\n\t\tlon = (lon[0] * 60 + lon[1]) / 60;\n\t}\n\tif (typeof lat != 'number') {\n\t\tthrow new TypeError('incorrect lat type passed to nearest()');\n\t}\n\tif (typeof lon != 'number') {\n\t\tthrow new TypeError('incorrect long type passed to nearest()');\n\t}\n\n\treturn listCities().map(function(city){\n\t\tvar i = getCity(city);\n\t\treturn {\n\t\t\tname: city,\n\t\t\tdist: Math.sqrt( Math.pow(Math.abs(i[0] - lat), 2) + Math.pow(Math.abs(i[1] - lon), 2) )\n\t\t};\n\t}).reduce(function(close,city){\n\t\treturn close.dist < city.dist ? close : city;\n\t}).name;\n};","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at \n\tdanny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter\n */\nwindow.Hebcal = require('..');\n\nvar finished = false, warn = (typeof console != 'undefined' && (console.warn || console.log)) || function(){};\n\nHebcal.events.on('newListener', function(e){\n\tif (e === 'ready' && !finished && Hebcal.ready) {\n\t\tready();\n\t}\n});\n\nObject.defineProperty(Hebcal, 'onready', {\n\tconfigurable: true,\n\n\tget: function() {\n\t\twarn('Getting deprecated property Hebcal.onready');\n\t\treturn Hebcal.events.listeners('ready')[0];\n\t},\n\tset: function(func) {\n\t\twarn('Setting deprecated property Hebcal.onready; use Hebcal.events.on(\\'ready\\', func) instead');\n\t\tHebcal.events.on('ready', func);\n\t}\n});\n\nif (navigator.geolocation) {\n\tHebcal.ready = false;\n\tnavigator.geolocation.getCurrentPosition(function(p){\n\t\tHebcal.defaultLocation = [p.coords.latitude,p.coords.longitude];\n\t\tready();\n\t}, ready);\n} else {\n\tready();\n}\n\nfunction ready() {\n\tHebcal.ready = true;\n\tfinished = Hebcal.events.emit('ready');\n}","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar gematriya = require('gematriya');\n\nvar charCodeAt = 'charCodeAt';\n\nvar months = exports.months = {\n\tNISAN : 1,\n\tIYYAR : 2,\n\tSIVAN : 3,\n\tTAMUZ : 4,\n\tAV : 5,\n\tELUL : 6,\n\tTISHREI : 7,\n\tCHESHVAN: 8,\n\tKISLEV : 9,\n\tTEVET : 10,\n\tSHVAT : 11,\n\tADAR_I : 12,\n\tADAR_II : 13\n};\n\nvar monthNames = [\n\t[\"\", 0, \"\"],\n\t[\"Nisan\", 0, \"ניסן\"],\n\t[\"Iyyar\", 0, \"אייר\"],\n\t[\"Sivan\", 0, \"סיון\"],\n\t[\"Tamuz\", 0, \"תמוז\"],\n\t[\"Av\", 0, \"אב\"],\n\t[\"Elul\", 0, \"אלול\"],\n\t[\"Tishrei\", 0, \"תשרי\"],\n\t[\"Cheshvan\", 0, \"חשון\"],\n\t[\"Kislev\", 0, \"כסלו\"],\n\t[\"Tevet\", 0, \"טבת\"],\n\t[\"Sh'vat\", 0, \"שבט\"]\n];\nexports.monthNames = [\n\tmonthNames.concat([[\"Adar\", 0, \"אדר\"],[\"Nisan\", 0, \"ניסן\"]]),\n\tmonthNames.concat([[\"Adar 1\", 0, \"אדר א'\"],[\"Adar 2\", 0, \"אדר ב'\"],[\"Nisan\", 0, \"ניסן\"]])\n];\n\nexports.days = {\n\tSUN: 0,\n\tMON: 1,\n\tTUE: 2,\n\tWED: 3,\n\tTHU: 4,\n\tFRI: 5,\n\tSAT: 6\n};\n\nexports.LANG = function(str, opts){\n\treturn opts == 'h' && str[2] || (opts == 'a' && str[1] || str[0]);\n};\n\nfunction LEAP(x) {\n\treturn (1 + x * 7) % 19 < 7;\n}\nexports.LEAP = LEAP;\n\nexports.MONTH_CNT = function(x) {\n\treturn 12 + LEAP(x); // boolean is cast to 1 or 0\n};\n\nexports.daysInMonth = function(month, year) {\n\treturn 30 - (month == months.IYYAR ||\n\tmonth == months.TAMUZ ||\n\tmonth == months.ELUL ||\n\tmonth == months.TEVET ||\n\tmonth == months.ADAR_II ||\n\t(month == months.ADAR_I && !LEAP(year)) ||\n\t(month == months.CHESHVAN && !lngChesh(year)) ||\n\t(month == months.KISLEV && shrtKis(year)));\n};\n\nexports.monthNum = function(month) {\n\treturn typeof month === 'number' ? month :\n\t\tmonth[charCodeAt](0) >= 1488 && month[charCodeAt](0) <= 1514 && /('|\")/.test(month) ? gematriya(month) :\n\t\t\tmonth[charCodeAt](0) >= 48 && month[charCodeAt](0) <= 57 /* number */ ? parseInt(month, 10) : monthFromName(month);\n};\n\nexports.dayYearNum = function(str) {\n\treturn typeof str === 'number' ? str :\n\t\tstr[charCodeAt](0) >= 1488 && str[charCodeAt](0) <= 1514 ? gematriya(str, true) : parseInt(str, 10);\n};\n\n/* Days from sunday prior to start of Hebrew calendar to mean\n conjunction of Tishrei in Hebrew YEAR\n */\nfunction hebElapsedDays(hYear){\n\t// borrowed from original JS\n\tvar m_elapsed = 235 * Math.floor((hYear - 1) / 19) +\n\t\t12 * ((hYear - 1) % 19) +\n\t\tMath.floor(((((hYear - 1) % 19) * 7) + 1) / 19);\n\n\tvar p_elapsed = 204 + (793 * (m_elapsed % 1080));\n\n\tvar h_elapsed = 5 + (12 * m_elapsed) +\n\t\t793 * Math.floor(m_elapsed / 1080) +\n\t\tMath.floor(p_elapsed / 1080);\n\n\tvar parts = (p_elapsed % 1080) + 1080 * (h_elapsed % 24);\n\n\tvar day = 1 + 29 * m_elapsed + Math.floor(h_elapsed / 24);\n\tvar alt_day = day + ((parts >= 19440) ||\n\t\t((2 == (day % 7)) && (parts >= 9924) && !(LEAP (hYear))) ||\n\t\t((1 == (day % 7)) && (parts >= 16789) && LEAP (hYear - 1)));\n\n\treturn alt_day + ((alt_day % 7) === 0 ||\n\t\t(alt_day % 7) == 3 ||\n\t\t(alt_day % 7) == 5);\n}\nexports.hebElapsedDays = hebElapsedDays;\n\n/* Number of days in the hebrew YEAR */\nfunction daysInYear(year)\n{\n\treturn hebElapsedDays(year + 1) - hebElapsedDays(year);\n}\nexports.daysInYear = daysInYear;\n\n/* true if Cheshvan is long in Hebrew YEAR */\nfunction lngChesh(year) {\n\treturn (daysInYear(year) % 10) == 5;\n}\nexports.lngChesh = lngChesh;\n\n/* true if Kislev is short in Hebrew YEAR */\nfunction shrtKis(year) {\n\treturn (daysInYear(year) % 10) == 3;\n}\nexports.shrtKis = shrtKis;\n\nfunction monthFromName(c) {\n\t/*\n\tthe Hebrew months are unique to their second letter\n\tN Nisan (November?)\n\tI Iyyar\n\tE Elul\n\tC Cheshvan\n\tK Kislev\n\t1 1Adar\n\t2 2Adar\n\tSi Sh Sivan, Shvat\n\tTa Ti Te Tamuz, Tishrei, Tevet\n\tAv Ad Av, Adar\n\n\tאב אד אי אל אב אדר אייר אלול\n\tח חשון\n\tט טבת\n\tכ כסלב\n\tנ ניסן\n\tס סיון\n\tש שבט\n\tתמ תש תמוז תשרי\n\t*/\n\tswitch (c.toLowerCase()[0]) {\n\t\tcase 'n':\n\t\tcase 'נ':\n\t\t\treturn (c.toLowerCase()[1] == 'o') ? /* this catches \"november\" */\n\t\t\t\t0 : months.NISAN;\n\t\tcase 'i':\n\t\t\treturn months.IYYAR;\n\t\tcase 'e':\n\t\t\treturn months.ELUL;\n\t\tcase 'c':\n\t\tcase 'ח':\n\t\t\treturn months.CHESHVAN;\n\t\tcase 'k':\n\t\tcase 'כ':\n\t\t\treturn months.KISLEV;\n\t\tcase 's':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'i':\n\t\t\t\t\treturn months.SIVAN;\n\t\t\t\tcase 'h':\n\t\t\t\t\treturn months.SHVAT;\n\t\t\t\tdefault:\n\t\t\t\t\treturn 0;\n\t\t\t}\n\t\tcase 't':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'a':\n\t\t\t\t\treturn months.TAMUZ;\n\t\t\t\tcase 'i':\n\t\t\t\t\treturn months.TISHREI;\n\t\t\t\tcase 'e':\n\t\t\t\t\treturn months.TEVET;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'a':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'v':\n\t\t\t\t\treturn months.AV;\n\t\t\t\tcase 'd':\n\t\t\t\t\tif (/(1|[^i]i|a|א)$/i.test(c)) {\n\t\t\t\t\t\treturn months.ADAR_I;\n\t\t\t\t\t}\n\t\t\t\t\treturn months.ADAR_II; // else assume sheini\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'ס':\n\t\t\treturn months.SIVAN;\n\t\tcase 'ש':\n\t\t\treturn months.SHVAT;\n\t\tcase 'א':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'ב':\n\t\t\t\t\treturn months.AV;\n\t\t\t\tcase 'ד':\n\t\t\t\t\tif (/(2|ii|b|ב)$/i.test(c)) {\n\t\t\t\t\t\treturn months.ADAR_I;\n\t\t\t\t\t}\n\t\t\t\t\treturn months.ADAR_II; // else assume sheini\n\t\t\t\tcase 'י':\n\t\t\t\t\treturn months.IYYAR;\n\t\t\t\tcase 'ל':\n\t\t\t\t\treturn months.ELUL;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'ת':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'מ':\n\t\t\t\t\treturn months.TAMUZ;\n\t\t\t\tcase 'ש':\n\t\t\t\t\treturn months.TISHREI;\n\t\t\t}\n\t\t\tbreak;\n\t}\n\treturn 0;\n};\nexports.monthFromName = monthFromName;\n\n/* Note: Applying this function to d+6 gives us the DAYNAME on or after an\n * absolute day d. Similarly, applying it to d+3 gives the DAYNAME nearest to\n * absolute date d, applying it to d-1 gives the DAYNAME previous to absolute\n * date d, and applying it to d+7 gives the DAYNAME following absolute date d.\n\n**/\nexports.dayOnOrBefore = function(day_of_week, absdate) {\n\treturn absdate - ((absdate - day_of_week) % 7);\n};\n\nexports.map = function(self, fun, thisp) {\n\t// originally written for http://github.com/Scimonster/localbrowse\n\tif (self === null || typeof fun != 'function') {\n\t\tthrow new TypeError();\n\t}\n\tvar t = Object(self);\n\tvar res = {};\n\tfor (var i in t) {\n\t\tif (t.hasOwnProperty(i)) {\n\t\t\tres[i] = fun.call(thisp, t[i], i, t);\n\t\t}\n\t}\n\tif (Array.isArray(self) || typeof self == 'string') { // came as an array, return an array\n\t\tvar arr = [];\n\t\tfor (i in res) {\n\t\t\tarr[Number(i)] = res[i];\n\t\t}\n\t\tres = filter(arr, true); // for...in isn't guaranteed to give any meaningful order\n\t\tif (typeof self == 'string') {\n\t\t\tres = res.join('');\n\t\t}\n\t}\n\treturn res;\n};\n\nfunction filter(self, fun, thisp) {\n\tif (self === null) {\n\t\tthrow new TypeError('self is null');\n\t}\n\tswitch (typeof fun) {\n\t\tcase 'function':\n\t\t\tbreak; // do nothing\n\t\tcase 'string':\n\t\tcase 'number':\n\t\t\treturn self[fun]; // str/num is just the property\n\t\tcase 'boolean':\n\t\t\t// boolean shortcuts to filter only truthy/falsy values\n\t\t\tif (fun) {\n\t\t\t\tfun = function (v) {\n\t\t\t\t\treturn v;\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\tfun = function (v) {\n\t\t\t\t\treturn !v;\n\t\t\t\t};\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'object':\n\t\t\tvar funOrig = fun; // save it\n\t\t\tif (fun instanceof RegExp) { // test the val against the regex\n\t\t\t\tfun = function (v) {\n\t\t\t\t\treturn funOrig.test(v);\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\t} else if (Array.isArray(fun)) { // keep these keys\n\t\t\t\tfun = function (v, k) {\n\t\t\t\t\treturn funOrig.indexOf(k) > -1;\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\t}\n\t\tdefault:\n\t\t\tthrow new TypeError('fun is not a supported type');\n\t}\n\tvar res = {};\n\tvar t = Object(self);\n\tfor (var i in t) {\n\t\tif (t.hasOwnProperty(i)) {\n\t\t\tvar val = t[i]; // in case fun mutates it\n\t\t\tif (fun.call(thisp, val, i, t)) {\n\t\t\t\t// define property on res in the same manner as it was originally defined\n\t\t\t\tvar props = Object.getOwnPropertyDescriptor(t, i);\n\t\t\t\tprops.value = val;\n\t\t\t\tObject.defineProperty(res, i, props);\n\t\t\t}\n\t\t}\n\t}\n\tif (Array.isArray(self) || typeof self == 'string') { // came as an array, return an array\n\t\tvar arr = [];\n\t\tfor (i in res) {\n\t\t\tarr[Number(i)] = res[i];\n\t\t}\n\t\tres = arr.filter(function (v) {\n\t\t\treturn v;\n\t\t}); // for...in isn't guaranteed to give any meaningful order\n\t\t// can't use c.filter(arr,true) here because that would infitely recurse\n\t\tif (typeof self == 'string') {\n\t\t\tres = res.join('');\n\t\t}\n\t}\n\treturn res;\n}\nexports.filter = filter;\n\nexports.range = function(start, end, step) {\n\tstep = step || 1;\n\tif (step < 0) {\n\t\tstep = 0 - step;\n\t}\n\n\tvar arr = [], i = start;\n\tif (start < end) {\n\t\tfor (; i <= end; i += step) {\n\t\t\tarr.push(i);\n\t\t}\n\t} else {\n\t\tfor (; i >= end; i -= step) {\n\t\t\tarr.push(i);\n\t\t}\n\t}\n\treturn arr;\n};\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar c = require('./common'),\n\tgreg = require('./greg'),\n\tgematriya = require('gematriya');\n\nvar shas = [\n\t// sname, aname, hname, blatt\n\t[ \"Berachot\", \"Berachos\", \"ברכות\", 64 ],\n\t[ \"Shabbat\", \"Shabbos\", \"שבת\", 157 ],\n\t[ \"Eruvin\", \"Eruvin\", \"עירובין\", 105 ],\n\t[ \"Pesachim\", 0, \"פסחים\", 121 ],\n\t[ \"Shekalim\", 0, \"שקלים\", 22 ],\n\t[ \"Yoma\", 0, \"יומא\", 88 ],\n\t[ \"Sukkah\", 0, \"סוכה\", 56 ],\n\t[ \"Beitzah\", 0, \"ביצה\", 40 ],\n\t[ \"Rosh Hashana\", 0, \"ראש השנה\", 35 ],\n\t[ \"Taanit\", \"Taanis\", \"תענית\", 31 ],\n\t[ \"Megillah\", 0, \"מגילה\", 32 ],\n\t[ \"Moed Katan\", 0, \"מועד קטן\", 29 ],\n\t[ \"Chagigah\", 0, \"חגיגה\", 27 ],\n\t[ \"Yevamot\", \"Yevamos\", \"יבמות\", 122 ],\n\t[ \"Ketubot\", \"Kesubos\", \"כתובות\", 112 ],\n\t[ \"Nedarim\", 0, \"נדרים\", 91 ],\n\t[ \"Nazir\", 0, \"נזיר\", 66 ],\n\t[ \"Sotah\", 0, \"סוטה\", 49 ],\n\t[ \"Gitin\", 0, \"גיטין\", 90 ],\n\t[ \"Kiddushin\", 0, \"קידושין\", 82 ],\n\t[ \"Baba Kamma\", 0, \"בבא קמא\", 119 ],\n\t[ \"Baba Metzia\", 0, \"בבא מציעא\", 119 ],\n\t[ \"Baba Batra\", \"Baba Basra\", \"בבא בתרא\", 176 ],\n\t[ \"Sanhedrin\", 0, \"סנהדרין\", 113 ],\n\t[ \"Makkot\", \"Makkos\", \"מכות\", 24 ],\n\t[ \"Shevuot\", \"Shevuos\", \"שבועות\", 49 ],\n\t[ \"Avodah Zarah\", 0, \"עבודה זרה\", 76 ],\n\t[ \"Horayot\", \"Horayos\", \"הוריות\", 14 ],\n\t[ \"Zevachim\", 0, \"זבחים\", 120 ],\n\t[ \"Menachot\", \"Menachos\", \"מנחות\", 110 ],\n\t[ \"Chullin\", 0, \"חולין\", 142 ],\n\t[ \"Bechorot\", \"Bechoros\", \"בכורות\", 61 ],\n\t[ \"Arachin\", 0, \"ערכין\", 34 ],\n\t[ \"Temurah\", 0, \"תמורה\", 34 ],\n\t[ \"Keritot\", \"Kerisos\", \"כריתות\", 28 ],\n\t[ \"Meilah\", 0, \"מעילה\", 22 ],\n\t[ \"Kinnim\", 0, \"קנים\", 4 ],\n\t[ \"Tamid\", 0, \"תמיד\", 10 ],\n\t[ \"Midot\", \"Midos\", \"מדות\", 4 ],\n\t[ \"Niddah\", 0, \"נדה\", 73 ]\n].map(function(m){\n\treturn {name: m.slice(0,3), blatt: m[3]};\n});\n\nexports.dafyomi = function(gregdate) {\n\tvar dafcnt = 40, cno, dno, osday, nsday, total, count, j, cday, blatt;\n\n\tif (!(gregdate instanceof Date)) {\n\t\tthrow new TypeError('non-date given to dafyomi');\n\t}\n\n\tosday = greg.greg2abs(new Date(1923, 8, 11));\n\tnsday = greg.greg2abs(new Date(1975, 5, 24));\n\tcday = greg.greg2abs(gregdate);\n\n\tif (cday < osday) { // no cycle; dy didn't start yet\n\t\treturn {name: [], blatt: 0};\n\t}\n\tif (cday >= nsday) { // \"new\" cycle\n\t\tcno = 8 + ( (cday - nsday) / 2711 );\n\t\tdno = (cday - nsday) % 2711;\n\t} else { // old cycle\n\t\tcno = 1 + ( (cday - osday) / 2702 );\n\t\tdno = (cday - osday) % 2702;\n\t}\n\n\t// Find the daf taking note that the cycle changed slightly after cycle 7.\n\n\ttotal = blatt = 0;\n\tcount = -1;\n\n\t// Fix Shekalim for old cycles\n\tif (cno <= 7) {\n\t\tshas[4].blatt = 13;\n\t} else {\n\t\tshas[4].blatt = 22;\n\t}\n\n\t// Find the daf\n\tj = 0;\n\twhile (j < dafcnt) {\n\t\tcount++;\n\t\ttotal = total + shas[j].blatt - 1;\n\t\tif (dno < total) {\n\t\t\tblatt = (shas[j].blatt + 1) - (total - dno);\n\t\t\t// fiddle with the weird ones near the end\n\t\t\tswitch (count) {\n\t\t\t\tcase 36:\n\t\t\t\t\tblatt = blatt + 21;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 37:\n\t\t\t\t\tblatt = blatt + 24;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 38:\n\t\t\t\t\tblatt = blatt + 33;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// Bailout\n\t\t\tj = 1 + dafcnt;\n\t\t}\n\t\tj++;\n\t}\n\n\treturn {name: shas[count].name, blatt: blatt};\n};\n\nexports.dafname = function(daf, o) {\n\treturn c.LANG(daf.name, o) + ' ' + (o === 'h' ? gematriya(daf.blatt) : daf.blatt);\n};\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar floor = Math.floor,\n\tt0t1 = [30, 31],\n\ttMonthLengths = [0, 31, 28, 31].concat(t0t1, t0t1, 31, t0t1, t0t1),\n\tmonthLengths = [\n\t\ttMonthLengths.slice()\n\t];\ntMonthLengths[2]++;\nmonthLengths.push(tMonthLengths);\n\nexports.daysInMonth = function(month, year) { // 1 based months\n\treturn monthLengths[+LEAP(year)][month];\n};\n\nexports.monthNames = [\n\t'',\n\t'January',\n\t'February',\n\t'March',\n\t'April',\n\t'May',\n\t'June',\n\t'July',\n\t'August',\n\t'September',\n\t'October',\n\t'November',\n\t'December'\n];\n\nexports.lookupMonthNum = function(month) {\n\treturn new Date(month + ' 1').getMonth() + 1;\n};\n\nfunction dayOfYear (date) {\n\tif (!date instanceof Date) {\n\t\tthrow new TypeError('Argument to greg.dayOfYear not a Date');\n\t}\n\tvar doy = date.getDate() + 31 * date.getMonth();\n\tif (date.getMonth() > 1) { // FEB\n\t\tdoy -= floor((4 * (date.getMonth() + 1) + 23) / 10);\n\t\tif (LEAP(date.getFullYear())) {\n\t\t\tdoy++;\n\t\t}\n\t}\n\treturn doy;\n}\nexports.dayOfYear = dayOfYear;\n\nfunction LEAP (year) {\n\treturn !(year % 4) && ( !!(year % 100) || !(year % 400) );\n}\nexports.LEAP = LEAP;\n\nexports.greg2abs = function(date) { // \"absolute date\"\n\tvar year = date.getFullYear() - 1;\n\treturn (dayOfYear(date) + // days this year\n\t\t\t365 * year + // + days in prior years\n\t\t\t( floor(year / 4) - // + Julian Leap years\n\t\t\tfloor(year / 100) + // - century years\n\t\t\tfloor(year / 400))); // + Gregorian leap years\n};\n\n\n/*\n * See the footnote on page 384 of ``Calendrical Calculations, Part II:\n * Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.\n * Clamen, Software--Practice and Experience, Volume 23, Number 4\n * (April, 1993), pages 383-404 for an explanation.\n */\nexports.abs2greg = function(theDate) {\n// calculations copied from original JS code\n\n\tvar d0 = theDate - 1;\n\tvar n400 = floor(d0 / 146097);\n\tvar d1 = floor(d0 % 146097);\n\tvar n100 = floor(d1 / 36524);\n\tvar d2 = d1 % 36524;\n\tvar n4 = floor(d2 / 1461);\n\tvar d3 = d2 % 1461;\n\tvar n1 = floor(d3 / 365);\n\n\tvar day = ((d3 % 365) + 1);\n\tvar year = (400 * n400 + 100 * n100 + 4 * n4 + n1);\n\n\tif (4 == n100 || 4 == n1) {\n\t\treturn new Date(year, 11, 31);\n\t}\n\n\treturn new Date(new Date(++year, 0, day).setFullYear(year)); // new Date() is very smart\n};","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar c = require('./common'),\n\tgreg = require('./greg'),\n\tsuncalc = require('suncalc'),\n\tcities = require('./cities'),\n\tgematriya = require('gematriya');\n\nsuncalc.addTime(-16.1, 'alot_hashachar', 0);\nsuncalc.addTime(-11.5, 'misheyakir', 0);\nsuncalc.addTime(-10.2, 'misheyakir_machmir', 0);\nsuncalc.addTime(-8.5, 0, 'tzeit');\n\n// for minifying optimizations\nvar getFullYear = 'getFullYear',\n\tgetMonth = 'getMonth',\n\tgetDate = 'getDate',\n\tgetTime = 'getTime',\n\tabs = 'abs',\n\thour = 'hour',\n\tmonths = c.months,\n\tTISHREI = months.TISHREI,\n\tMONTH_CNT = c.MONTH_CNT,\n\tdaysInMonth = c.daysInMonth,\n\tdayOnOrBefore = c.dayOnOrBefore,\n\tprototype = HDate.prototype;\n\nfunction HDate(day, month, year) {\n\tvar me = this;\n\tswitch (arguments.length) {\n\t\tcase 0:\n\t\t\treturn new HDate(new Date());\n\t\tcase 1:\n\t\t\tif (typeof day == 'undefined') {\n\t\t\t\treturn new HDate();\n\t\t\t} else if (day instanceof Date) {\n\t\t\t\t// we were passed a Gregorian date, so convert it\n\t\t\t\tvar d = abs2hebrew(greg.greg2abs(day));\n\t\t\t\t/*if (d.sunset() < day) {\n\t\t\t\t\td = d.next();\n\t\t\t\t}*/\n\t\t\t\treturn d;\n\t\t\t} else if (day instanceof HDate) {\n\t\t\t\tvar d = new HDate(day[getDate](), day[getMonth](), day[getFullYear]());\n\t\t\t\td.il = day.il;\n\t\t\t\td.setLocation(d.lat, d.long);\n\t\t\t\treturn d;\n\t\t\t} else if (typeof day == 'string') {\n\t\t\t\tswitch (day.toLowerCase().trim()) {\n\t\t\t\t\tcase 'today':\n\t\t\t\t\t\treturn new HDate();\n\t\t\t\t\tcase 'yesterday':\n\t\t\t\t\t\treturn new HDate().prev();\n\t\t\t\t\tcase 'tomorrow':\n\t\t\t\t\t\treturn new HDate().next();\n\t\t\t\t}\n\t\t\t\tif (/\\s/.test(day)) {\n\t\t\t\t\tvar s = day.split(/\\s+/);\n\t\t\t\t\tif (s.length == 2) {\n\t\t\t\t\t\treturn new HDate(s[0], s[1]);\n\t\t\t\t\t} else if (s.length == 3) {\n\t\t\t\t\t\treturn new HDate(s[0], s[1], s[2]);\n\t\t\t\t\t} else if (s.length == 4) { // should only be if s[1] is Adar\n\t\t\t\t\t\tif (/i/i.test(s[2])) { // Using I[I] syntax\n\t\t\t\t\t\t\ts[2] = s[2].length;\n\t\t\t\t\t\t} // otherwise using 1|2 syntax\n\t\t\t\t\t\treturn new HDate(s[0], s[1] + s[2], s[3]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (typeof day == 'number') { // absolute date\n\t\t\t\treturn abs2hebrew(day);\n\t\t\t}\n\t\t\tthrow new TypeError('HDate called with bad argument');\n\t\tcase 2:\n\t\t\treturn new HDate(day, month, (new HDate)[getFullYear]());\n\t\tcase 3:\n\t\t\tme.day = me.month = 1;\n\t\t\tme.year = c.dayYearNum(year);\n\n\t\t\tme.setMonth(c.monthNum(month));\n\t\t\tme.setDate(c.dayYearNum(day));\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new TypeError('HDate called with bad arguments');\n\t}\n\n\treturn me.setLocation.apply(me, HDate.defaultLocation);\n}\n\nHDate.defaultLocation = [0, 0];\nObject.defineProperty(HDate, 'defaultCity', {\n\tenumerable: true,\n\tconfigurable: true,\n\n\tget: function() {\n\t\treturn cities.nearest(HDate.defaultLocation[0], HDate.defaultLocation[1]);\n\t},\n\tset: function(city) {\n\t\tHDate.defaultLocation = cities.getCity(city).slice(0, 2);\n\t}\n});\n\nfunction fix(date) {\n\tfixMonth(date);\n\tfixDate(date);\n}\n\nfunction fixDate(date) {\n\tif (date.day < 1) {\n\t\tif (date.month == TISHREI) {\n\t\t\tdate.year -= 1;\n\t\t}\n\t\tdate.day += daysInMonth(date.month, date.year);\n\t\tdate.month -= 1;\n\t\tfix(date);\n\t}\n\tif (date.day > daysInMonth(date.month, date.year)) {\n\t\tif (date.month == months.ELUL) {\n\t\t\tdate.year += 1;\n\t\t}\n\t\tdate.day -= daysInMonth(date.month, date.year);\n\t\tdate.month += 1;\n\t\tfix(date);\n\t}\n\tfixMonth(date);\n}\n\nfunction fixMonth(date) {\n\tif (date.month == months.ADAR_II && !date.isLeapYear()) {\n\t\tdate.month -= 1; // to Adar I\n\t\tfix(date);\n\t}\n\tif (date.month < 1) {\n\t\tdate.month += MONTH_CNT(date.year);\n\t\tdate.year -= 1;\n\t\tfix(date);\n\t}\n\tif (date.month > MONTH_CNT(date.year)) {\n\t\tdate.month -= MONTH_CNT(date.year);\n\t\tdate.year += 1;\n\t\tfix(date);\n\t}\n}\n\nprototype[getFullYear] = function() {\n\treturn this.year;\n};\n\nprototype.isLeapYear = function() {\n\treturn c.LEAP(this.year);\n};\n\nprototype[getMonth] = function() {\n\treturn this.month;\n};\n\nprototype.getTishreiMonth = function() {\n\tvar nummonths = MONTH_CNT(this[getFullYear]());\n\treturn (this[getMonth]() + nummonths - 6) % nummonths || nummonths;\n};\n\nprototype.daysInMonth = function() {\n\treturn daysInMonth(this[getMonth](), this[getFullYear]());\n};\n\nprototype[getDate] = function() {\n\treturn this.day;\n};\n\nprototype.getDay = function() {\n\treturn this.greg().getDay();\n};\n\nprototype.setFullYear = function(year) {\n\tthis.year = year;\n\tfix(this);\n\treturn this;\n};\n\nprototype.setMonth = function(month) {\n\tthis.month = c.monthNum(month);\n\tfix(this);\n\treturn this;\n};\n\nprototype.setTishreiMonth = function(month) {\n\treturn this.setMonth((month + 6) % MONTH_CNT(this[getFullYear]()) || 13);\n};\n\nprototype.setDate = function(date) {\n\tthis.day = date;\n\tfix(this);\n\treturn this;\n};\n\n/* convert hebrew date to absolute date */\n/* Absolute date of Hebrew DATE.\n The absolute date is the number of days elapsed since the (imaginary)\n Gregorian date Sunday, December 31, 1 BC. */\nfunction hebrew2abs(d) {\n\tvar m, tempabs = d[getDate](), year = d[getFullYear]();\n\n\tif (d[getMonth]() < TISHREI) {\n\t\tfor (m = TISHREI; m <= MONTH_CNT(year); m++) {\n\t\t\ttempabs += daysInMonth(m, year);\n\t\t}\n\n\t\tfor (m = months.NISAN; m < d[getMonth](); m++) {\n\t\t\ttempabs += daysInMonth(m, year);\n\t\t}\n\t} else {\n\t\tfor (m = TISHREI; m < d[getMonth](); m++) {\n\t\t\ttempabs += daysInMonth(m, year);\n\t\t}\n\t}\n\n\treturn c.hebElapsedDays(year) - 1373429 + tempabs;\n}\n\nfunction abs2hebrew(d) {\n\tvar mmap = [\n\t\tmonths.KISLEV, months.TEVET, months.SHVAT, months.ADAR_I, months.NISAN,\n\t\tmonths.IYYAR, months.SIVAN, months.TAMUZ, TISHREI, TISHREI, TISHREI, months.CHESHVAN\n\t], hebdate, gregdate, month, year;\n\n\tif (d >= 10555144) {\n\t\tthrow new RangeError(\"parameter to abs2hebrew \" + d + \" out of range\");\n\t}\n\n\tgregdate = greg.abs2greg(d);\n\thebdate = new HDate(1, TISHREI, (year = 3760 + gregdate[getFullYear]()));\n\n\twhile (d >= hebrew2abs(hebdate.setFullYear(year + 1))) {\n\t\tyear++;\n\t}\n\n\tif (year > 4634 && year < 10666) {\n\t\t// optimize search\n\t\tmonth = mmap[gregdate[getMonth]()];\n\t} else {\n\t\t// we're outside the usual range, so assume nothing about Hebrew/Gregorian calendar drift...\n\t\tmonth = TISHREI;\n\t}\n\n\twhile (d > hebrew2abs(hebdate = new HDate(daysInMonth(month, year), month, year))) {\n\t\tmonth = (month % MONTH_CNT(year)) + 1;\n\t}\n\n\treturn hebdate.setLocation.apply(hebdate.setDate(d - hebrew2abs(hebdate.setDate(1)) + 1), HDate.defaultLocation);\n}\n\nprototype.greg = function() {\n\treturn greg.abs2greg(hebrew2abs(this));\n};\n\nprototype.gregEve = function() {\n\treturn this.prev().sunset();\n};\n\nprototype[abs] = function() {\n\treturn hebrew2abs(this);\n};\n\nprototype.toString = function(o) {\n\treturn c.LANG([this[getDate](), null, gematriya(this[getDate]())], o) + ' ' +\n\t\tthis.getMonthName(o) + ' ' +\n\t\tc.LANG([this[getFullYear](), null, gematriya(this[getFullYear]())], o);\n};\n\nprototype.getMonthName = function(o) {\n\treturn c.LANG(c.monthNames[+this.isLeapYear()][this[getMonth]()], o);\n};\n\nprototype.setCity = function(city) {\n\treturn this.setLocation(cities.getCity(city));\n};\n\nprototype.setLocation = function(lat, lon) {\n\tif (typeof lat == 'object' && !Array.isArray(lat)) {\n\t\tlon = lat.long;\n\t\tlat = lat.lat;\n\t}\n\tif (Array.isArray(lat) && typeof lon == 'undefined') {\n\t\tlon = lat[0];\n\t\tlat = lat[1];\n\t}\n\tif (Array.isArray(lat)) {\n\t\tlat = (lat[0] * 60 + lat[1]) / 60;\n\t}\n\tif (Array.isArray(lon)) {\n\t\tlon = (lon[0] * 60 + lon[1]) / 60;\n\t}\n\tif (typeof lat != 'number') {\n\t\tthrow new TypeError('incorrect lat type passed to HDate.setLocation()');\n\t}\n\tif (typeof lon != 'number') {\n\t\tthrow new TypeError('incorrect long type passed to HDate.setLocation()');\n\t}\n\n\tthis.lat = lat;\n\tthis.long = lon;\n\n\tthis.il = cities.getCity(cities.nearest(lat, lon))[2];\n\n\treturn this;\n};\n\nfunction suntime(hdate) {\n\t// reset the date to midday before calling suncalc api\n\t// https://github.com/mourner/suncalc/issues/11\n\tvar date = hdate.greg();\n\treturn suncalc.getTimes(new Date(date.getFullYear(), date.getMonth(), date.getDate(), 12, 0, 0, 0, 0), hdate.lat, hdate.long);\n}\n\nprototype.sunrise = function() {\n\treturn suntime(this).sunrise;\n};\n\nprototype.sunset = function() {\n\treturn suntime(this).sunset;\n};\n\nprototype[hour] = function() {\n\treturn (this.sunset() - this.sunrise()) / 12; // ms in hour\n};\n\nprototype.hourMins = function() {\n\t// hour in ms / (1000 ms in s * 60 s in m) = mins in halachic hour\n\treturn this[hour]() / (1000 * 60);\n};\n\nprototype.nightHour = function() {\n\treturn (this.sunrise() - this.gregEve()) / 12; // ms in hour\n};\n\nprototype.nightHourMins = function() {\n\t// hour in ms / (1000 ms in s * 60 s in m) = mins in halachic hour\n\treturn this.nightHour() / (1000 * 60);\n};\n\nfunction hourOffset(hdate, hours) {\n\treturn new Date(hdate.sunrise()[getTime]() + (hdate[hour]() * hours));\n}\n\nvar zemanim = {\n\tchatzot: function(hdate) {\n\t\treturn hourOffset(hdate, 6);\n\t},\n\tchatzot_night: function(hdate) {\n\t\treturn new Date(hdate.sunrise()[getTime]() - (hdate.nightHour() * 6));\n\t},\n\talot_hashachar: function(hdate) {\n\t\treturn suntime(hdate).alot_hashachar;\n\t},\n\talot_hashacher: function(hdate) {\n\t\treturn suntime(hdate).alot_hashachar;\n\t},\n\tmisheyakir: function(hdate) {\n\t\treturn suntime(hdate).misheyakir;\n\t},\n\tmisheyakir_machmir: function(hdate) {\n\t\treturn suntime(hdate).misheyakir_machmir;\n\t},\n\tsof_zman_shma: function(hdate) { // Gra\n\t\treturn hourOffset(hdate, 3);\n\t},\n\tsof_zman_tfilla: function(hdate) { // Gra\n\t\treturn hourOffset(hdate, 4);\n\t},\n\tmincha_gedola: function(hdate) {\n\t\treturn hourOffset(hdate, 6.5);\n\t},\n\tmincha_ketana: function(hdate) {\n\t\treturn hourOffset(hdate, 9.5);\n\t},\n\tplag_hamincha: function(hdate) {\n\t\treturn hourOffset(hdate, 10.75);\n\t},\n\ttzeit: function(hdate) {\n\t\treturn suntime(hdate).tzeit;\n\t},\n\tneitz_hachama: function(hdate) {\n\t\treturn hdate.sunrise();\n\t},\n\tshkiah: function(hdate) {\n\t\treturn hdate.sunset();\n\t}\n};\n\nprototype.getZemanim = function() {\n\treturn c.map(zemanim, function(z){\n\t\treturn z(this);\n\t}, this);\n};\n\nHDate.addZeman = function(zeman, func) {\n\tzemanim[zeman] = func;\n};\n\nprototype.next = function() {\n\treturn abs2hebrew(this.abs() + 1).setLocation(this.lat, this.long);\n};\n\nprototype.prev = function() {\n\treturn abs2hebrew(this.abs() - 1).setLocation(this.lat, this.long);\n};\n\nprototype.isSameDate = function(other) {\n\tif (other instanceof HDate) {\n\t\tif (other[getFullYear]() == -1) {\n\t\t\tother = new HDate(other).setFullYear(this[getFullYear]());\n\t\t}\n\t\treturn this[abs]() == other[abs]();\n\t}\n\treturn false;\n};\n\nfunction onOrBefore(day, t, offset) {\n\treturn new HDate(dayOnOrBefore(day, t[abs]() + offset));\n}\n\nprototype.before = function(day) {\n\treturn onOrBefore(day, this, -1);\n};\n\nprototype.onOrBefore = function(day) {\n\treturn onOrBefore(day, this, 0);\n};\n\nprototype.nearest = function(day) {\n\treturn onOrBefore(day, this, 3);\n};\n\nprototype.onOrAfter = function(day) {\n\treturn onOrBefore(day, this, 6);\n};\n\nprototype.after = function(day) {\n\treturn onOrBefore(day, this, 7);\n};\n\nmodule.exports = HDate;\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar c = require('./common'),\n\tHDate = require('./hdate'),\n\tholidays = require('./holidays'),\n\tSedra = require('./sedra'),\n\tdafyomi = require('./dafyomi'),\n\tcities = require('./cities'),\n\tgreg = require('./greg'),\n\tEventEmitter = require('events').EventEmitter,\n\tgematriya = require('gematriya');\n\n// for minifying optimizations\nvar defProp = Object.defineProperty,\n\tTE = TypeError,\n\tfind = 'find',\n\tstrings = 'strings',\n\tgetYearObject = 'getYearObject',\n\tmap = 'map',\n\tgetDay = 'getDay',\n\tgetMonth = 'getMonth',\n\tgetFullYear = 'getFullYear',\n\tisLeapYear = 'isLeapYear',\n\tlength = 'length',\n\tnext = 'next',\n\tprev = 'prev',\n\tmonths = c.months,\n\tTISHREI = months.TISHREI,\n\tNISAN = months.NISAN,\n\tHebcalProto = Hebcal.prototype,\n\tMonthProto = Month.prototype,\n\tGregYearProto = GregYear.prototype,\n\tGregMonthProto = GregMonth.prototype,\n\tHDateProto = HDate.prototype;\n\nfunction getset(g, s) {\n\treturn {\n\t\tenumerable: true,\n\t\tconfigurable: true,\n\n\t\tget: g,\n\t\tset: s\n\t};\n}\n\nfunction extend(base, into) {\n\tfor (var i in into) {\n\t\tbase[i] = into[i];\n\t}\n\treturn base;\n}\n\n// Main Hebcal function\n\nfunction Hebcal(year, month) {\n\tvar me = this; // whenever this is done, it is for optimizations.\n\tif (!year) {\n\t\tyear = (new HDate())[getFullYear](); // this year;\n\t}\n\tif (typeof year !== 'number') {\n\t\tthrow new TE('year to Hebcal() is not a number');\n\t}\n\tme.year = year;\n\tif (month) {\n\t\tif (typeof month == 'string') {\n\t\t\tmonth = c.monthFromName(month);\n\t\t}\n\t\tif (typeof month == 'number') {\n\t\t\tmonth = [month];\n\t\t}\n\n\t\tif (Array.isArray(month)) {\n\t\t\tme.months = month[map](function(i){\n\t\t\t\tvar m = new Month(i, year);\n\t\t\t\tdefProp(m, '__year', {\n\t\t\t\t\tconfigurable: true,\n\t\t\t\t\twritable: true,\n\t\t\t\t\tvalue: me\n\t\t\t\t});\n\t\t\t\treturn m;\n\t\t\t});\n\n\t\t\tme.holidays = holidays.year(year);\n\t\t} else {\n\t\t\tthrow new TE('month to Hebcal is not a valid type');\n\t\t}\n\t} else {\n\t\treturn new Hebcal(year, c.range(1, c.MONTH_CNT(year)));\n\t}\n\n\tme[length] = c.daysInYear(year);\n\n\tdefProp(me, 'il', getset(function() {\n\t\treturn me[getMonth](1).il;\n\t}, function(il) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.il = il;\n\t\t});\n\t}));\n\n\tdefProp(me, 'lat', getset(function() {\n\t\treturn me[getMonth](1).lat;\n\t}, function(lat) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.lat = lat;\n\t\t});\n\t}));\n\tdefProp(me, 'long', getset(function() {\n\t\treturn me[getMonth](1).long;\n\t}, function(lon) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.long = lon;\n\t\t});\n\t}));\n}\n\nHebcalProto[isLeapYear] = HDateProto[isLeapYear];\n\nHebcalProto.setCity = function(city) {\n\tthis.months.forEach(function(m){\n\t\tm.setCity(city);\n\t});\n\treturn this;\n};\n\nHebcalProto.setLocation = function(lat, lon) {\n\tthis.months.forEach(function(m){\n\t\tm.setLocation(lat, lon);\n\t});\n\treturn this;\n};\n\nHebcalProto[next] = function() {\n\treturn new Hebcal(this.year + 1);\n};\n\nHebcalProto[prev] = function() {\n\treturn new Hebcal(this.year - 1);\n};\n\nHebcalProto[getMonth] = function(month) {\n\tvar months = this.months;\n\tmonth = c.monthNum(month);\n\tif (month > this.months[length]) {\n\t\treturn this[next]()[getMonth](month - months[length]);\n\t}\n\treturn months[month > 0 ? month - 1 : months[length] + month];\n};\n\nHebcalProto[getDay] = function(day) {\n\tvar me = this;\n\tif (day > me[length]) {\n\t\treturn null;\n\t}\n\tif (day < 0) {\n\t\treturn me[getDay](me[length] - day);\n\t}\n\tvar rosh = me[find](29, months.ELUL)[0].abs() + 1 - me[find](1, NISAN)[0].abs(); // number of days between Nisan and Tishrei\n\tif (day <= rosh) {\n\t\treturn me[getMonth](NISAN)[getDay](day);\n\t}\n\treturn me[getMonth](TISHREI)[getDay](day - rosh);\n};\n\nHebcalProto.days = function() {\n\treturn [].concat.apply([], this.months[map](function(m){\n\t\treturn m.days;\n\t}));\n};\n\nHebcalProto[map] = function() {\n\treturn [][map].apply(this.days(), arguments);\n};\n\nHebcalProto.filter = function() {\n\treturn [].filter.apply(this.days(), arguments);\n};\n\nHebcalProto.addHoliday = function(holiday) {\n\tif (!(holiday instanceof holidays.Event)) {\n\t\tthrow new TE('non-Event passed to addHoliday()');\n\t}\n\tthis.holidays.add(holiday);\n\treturn this;\n};\n\nHebcalProto.findParsha = function(parsha, o) {\n\tvar langs = o ? [o] : ['s','a','h']; // FIXME: abstract this away somewhere\n\tvar days = this.filter(function(d){\n\t\treturn Math.max.apply(null, langs.map(function(l){\n\t\t\treturn d.getSedra(l).indexOf(parsha) + 1;\n\t\t}));\n\t});\n\treturn days[days[length] - 1];\n};\nHebcalProto.findSedra = HebcalProto.findParsha;\n\nHebcalProto[find] = function find_f(day, month) {\n\tvar me = this;\n\tif (arguments[length] === 1) {\n\t\tif (typeof day == 'string') {\n\t\t\treturn find_f[strings].call(me, day);\n\t\t} else if (Array.isArray(day)) {\n\t\t\treturn [].concat.apply([], day[map](function(d){\n\t\t\t\treturn me[find][Array.isArray(d) ? 'apply' : 'call'](me, d);\n\t\t\t}));\n\t\t} else if (day instanceof HDate) {\n\t\t\treturn me[find](day.getDate(), day[getMonth]());\n\t\t} else if (day instanceof Date) {\n\t\t\treturn me[find](new HDate(day));\n\t\t}\n\t} else if (arguments[length] == 2) {\n\t\tif (month instanceof Month) {\n\t\t\treturn month[find](day);\n\t\t} else if (Array.isArray(month)) {\n\t\t\treturn [].concat.apply([], month[map](function(m){\n\t\t\t\treturn me[find](day, m);\n\t\t\t}));\n\t\t} else if (typeof month == 'string') {\n\t\t\treturn me[find](day, c.monthNum(month));\n\t\t} else if (typeof month == 'number') {\n\t\t\treturn me[find](day, me[getMonth](month));\n\t\t}\n\t}\n\treturn [];\n};\nHebcalProto[find][strings] = function strings(str) {\n\tvar split = str.split(/\\s+/), func = strings[str.replace(/\\s/g, '_').toLowerCase()];\n\tif (!split[length]) {\n\t\treturn [];\n\t} else if (func) {\n\t\treturn func.call(this);\n\t}\n\ttry {\n\t\treturn this[find](new HDate(str));\n\t} catch(e) {\n\t\treturn split[length] - 1 ? this[find].apply(this, split) : [];\n\t}\n};\nHebcalProto[find][strings].rosh_chodesh = function() {\n\treturn this[find]('Rosh Chodesh', c.range(1, this.months[length]));\n};\nHebcalProto[find][strings].holidays = function() {\n\treturn [].concat.apply([], this.holidays[map](function(h){\n\t\treturn this[find](h.date);\n\t}, this));\n};\nHebcalProto[find][strings].omer = function() {\n\treturn this[find](c.range(15+1, 15+49), NISAN);\n};\nHebcalProto[find][strings].today = function() {\n\treturn this[find](new HDate());\n};\nHebcalProto[find][strings].yesterday = function() {\n\treturn [this[find]('today')[0][prev]()];\n};\nHebcalProto[find][strings].tomorrow = function() {\n\treturn [this[find]('today')[0][next]()];\n};\nHebcalProto[find][strings].pesach = function() {\n\treturn this[find](c.range(15, 15+8-this.il), NISAN);\n};\nHebcalProto[find][strings].sukkot = function() {\n\treturn this[find](c.range(15, 15+9-this.il), TISHREI);\n};\nHebcalProto[find][strings].succot = HebcalProto[find][strings].succos = HebcalProto[find][strings].sukkos = HebcalProto[find][strings].sukkot;\nHebcalProto[find][strings].shavuot = function() {\n\treturn this[find](c.range(6, 7-this.il), months.SIVAN);\n};\nHebcalProto[find][strings].shavuos = HebcalProto[find][strings].shavuot;\nHebcalProto[find][strings].rosh_hashana = function() {\n\treturn this[find](c.range(1, 2), TISHREI);\n};\nHebcalProto[find][strings].rosh_hashanah = HebcalProto[find][strings].rosh_hashana;\n\n// Hebcal properties\n\nHebcal.addZeman = HDate.addZeman;\n\nHebcal.cities = cities;\n\nHebcal.range = c.range;\n\nHebcal.gematriya = gematriya;\n\nHebcal.holidays = c.filter(holidays, ['masks', 'Event']); // not year(), atzmaut()\n\nHebcal.parshiot = Sedra.parshiot;\n\nHebcal.LANGUAGE = c.LANG;\n\nHebcal[map] = c[map];\n\nHebcal.filter = c.filter;\n\ndefProp(Hebcal, 'defaultLocation', getset(function(){\n\treturn HDate.defaultLocation;\n}, function(loc){\n\tHebcal.events.emit('locationChange', HDate.defaultLocation);\n\tHDate.defaultLocation = loc;\n}));\ndefProp(Hebcal, 'defaultCity', getset(function(){\n\treturn HDate.defaultCity;\n}, function(city){\n\tHebcal.defaultLocation = cities.getCity(city).slice(0, 2); // call the event\n}));\n\ndefProp(Hebcal, 'candleLighting', getset(function(){\n\treturn holidays.Event.candleLighting;\n}, function(mins){\n\tholidays.Event.candleLighting = mins;\n}));\n\ndefProp(Hebcal, 'havdalah', getset(function(){\n\treturn holidays.Event.havdalah;\n}, function(mins){\n\tholidays.Event.havdalah = mins;\n}));\n\n// Months\n\nfunction Month(month, year) {\n\tvar me = this;\n\tmonth = c.monthNum(month);\n\tif (typeof month != 'number') {\n\t\tthrow new TE('month to Hebcal.Month is not a valid type');\n\t}\n\tif (typeof year != 'number') {\n\t\tthrow new TE('year to Hebcal.Month is not a number');\n\t}\n\tme.month = month;\n\tme.year = year;\n\n\tme.days = c.range(1, c.daysInMonth(month, year))[map](function(i){\n\t\tvar d = new HDate(i, month, year);\n\t\tdefProp(d, '__month', {\n\t\t\tconfigurable: true,\n\t\t\twritable: true,\n\t\t\tvalue: me\n\t\t});\n\t\treturn d;\n\t});\n\n\tme[length] = me.days[length];\n\n\tme.holidays = c.filter(holidays.year(year), function(h){\n\t\treturn h[0].date[getMonth]() == month;\n\t});\n\n\tdefProp(me, 'il', getset(function(){\n\t\treturn me[getDay](1).il;\n\t}, function(il){\n\t\tme.days.forEach(function(d){\n\t\t\td.il = il;\n\t\t});\n\t}));\n\n\tdefProp(me, 'lat', getset(function(){\n\t\treturn me[getDay](1).lat;\n\t}, function(lat){\n\t\tme.days.forEach(function(d){\n\t\t\td.lat = lat;\n\t\t});\n\t}));\n\tdefProp(me, 'long', getset(function(){\n\t\treturn me[getDay](1).long;\n\t}, function(lon){\n\t\tme.days.forEach(function(d){\n\t\t\td.long = lon;\n\t\t});\n\t}));\n\n\treturn me;\n};\n\nHebcal.Month = Month;\n\nMonthProto[isLeapYear] = HDateProto[isLeapYear];\n\nMonthProto[prev] = function() {\n\tvar me = this, year = me[getYearObject]();\n\tif (me.month === 1) { // Nisan\n\t\treturn year[getMonth](-1);\n\t} else if (me.month === TISHREI) {\n\t\treturn year[prev]()[getMonth](months.ELUL);\n\t} else {\n\t\treturn year[getMonth](me.month - 1);\n\t}\n};\n\nMonthProto[next] = function() {\n\tvar me = this, year = me[getYearObject]();\n\tif (me.month === c.MONTH_CNT(me.year)) { // Adar\n\t\treturn year[getMonth](1);\n\t} else if (me.month === months.ELUL) {\n\t\treturn year[next]()[getMonth](TISHREI);\n\t} else {\n\t\treturn year[getMonth](me.month + 1);\n\t}\n};\n\nMonthProto[getDay] = function(day) {\n\tvar days = this.days;\n\tday = c.dayYearNum(day);\n\tif (day > days[length]) {\n\t\treturn this[next]()[getDay](day - days[length]);\n\t}\n\treturn days[day > 0 ? day - 1 : days[length] + day];\n};\n\nMonthProto[getYearObject] = function() {\n\treturn this.__year || new Hebcal(this.year);\n};\n\nMonthProto.getName = function(o) {\n\treturn c.LANG(c.monthNames[+this[isLeapYear]()][this.month], o);\n};\n\nMonthProto.rosh_chodesh = function() {\n\tvar prevMonth = this[prev]();\n\treturn prevMonth[length] == 30 ? [prevMonth[getDay](-1), this[getDay](1)] : [this[getDay](1)];\n};\n\nMonthProto.setCity = function(city) {\n\tthis.days.forEach(function(d){\n\t\td.setCity(city);\n\t});\n\treturn this;\n};\n\nMonthProto.setLocation = function(lat, lon) {\n\tthis.days.forEach(function(d){\n\t\td.setLocation(lat, lon);\n\t});\n\treturn this;\n};\n\nMonthProto[map] = function() {\n\treturn [][map].apply(this.days, arguments);\n};\n\nMonthProto.molad = function() {\n\tvar retMolad = {}, year, m_elapsed, p_elapsed, h_elapsed, parts, m_adj, toInt = parseInt;\n\n m_adj = this.month - 7;\n\tyear = this.year - 1;\n if (m_adj < 0) {\n\t\tm_adj += c.MONTH_CNT(year + 1);\n\t}\n\n m_elapsed = toInt(m_adj +\n 235 * (year / 19)/* +\n 12 * (year % 19) +\n (((year % 19) * 7) + 1) / 19*/);\n\n p_elapsed = toInt(204 + (793 * (m_elapsed % 1080)));\n\n h_elapsed = toInt(5 + (12 * m_elapsed) +\n 793 * (m_elapsed / 1080)/* +\n p_elapsed / 1080*/ -\n 6);\n\n parts = toInt((p_elapsed % 1080) + 1080 * (h_elapsed % 24));\n\n retMolad.doy = new HDate(toInt(1 + 29 * m_elapsed + h_elapsed / 24)).getDay();\n retMolad.hour = Math.round(h_elapsed % 24);\n var chalakim = toInt(parts % 1080);\n retMolad.minutes = toInt(chalakim / 18);\n retMolad.chalakim = chalakim % 18;\n var day = this.prev().find.strings.shabbat_mevarchim._calc.call(this)[0].onOrAfter(retMolad.doy).greg();\n day.setHours(retMolad.hour);\n day.setMinutes(retMolad.minutes);\n day.setSeconds(retMolad.chalakim * 3.33);\n retMolad.day = day;\n\n return retMolad;\n};\n\nMonthProto[find] = function find_f(day) {\n\tvar me = this;\n\tif (typeof day == 'number') {\n\t\treturn [me[getDay](day)];\n\t} else if (typeof day == 'string') {\n\t\treturn find_f[strings].call(me, day);\n\t} else if (Array.isArray(day)) {\n\t\treturn [].concat.apply([], day[map](function(d){\n\t\t\treturn me[find](d);\n\t\t}));\n\t} else if (day instanceof HDate && day[getFullYear]() == me.year && day[getMonth]() == me.month) {\n\t\treturn me[find](day.getDate());\n\t} else if (day instanceof Date) {\n\t\treturn me[find](new HDate(day));\n\t}\n\treturn [];\n};\nMonthProto[find][strings] = function strings(str) {\n\tvar func = strings[str.replace(/\\s/g, '_').toLowerCase()];\n\tif (func) {\n\t\treturn func.call(this);\n\t}\n\ttry {\n\t\treturn this[find](new HDate(str));\n\t} catch(e) {\n\t\tvar num = c.dayYearNum(str);\n\t\treturn num ? this[find](num) : [];\n\t}\n};\nMonthProto[find][strings].rosh_chodesh = function() {\n\treturn this.rosh_chodesh();\n};\nMonthProto[find][strings].shabbat_mevarchim = function sm() {\n\treturn this.month === months.ELUL ? [] : // No birchat hachodesh in Elul\n\t\tsm._calc.call(this);\n};\nMonthProto[find][strings].shabbat_mevarchim._calc = function() {\n\treturn this[find](this[getDay](29).onOrBefore(c.days.SAT));\n};\nMonthProto[find][strings].shabbos_mevarchim = MonthProto[find][strings].shabbos_mevorchim = MonthProto[find][strings].shabbat_mevarchim;\n\n// HDate days\n\nHebcal.HDate = HDate;\n\nHDateProto.getMonthObject = function() {\n\treturn this.__month || new Month(this[getMonth](), this[getFullYear]());\n};\n\nHDateProto[getYearObject] = function() {\n\treturn this.getMonthObject()[getYearObject]();\n};\n\n(function(){\n\tvar orig = {}; // slightly less overhead when using unaffiliated HDate()s\n\t[prev, next].forEach(function(func){\n\t\torig[func] = HDateProto[func];\n\t\tHDateProto[func] = function() {\n\t\t\tvar day = orig[func].call(this);\n\t\t\tif (!this.__month) {\n\t\t\t\treturn day;\n\t\t\t}\n\t\t\treturn this[getYearObject]()[find](day)[0];\n\t\t};\n\t});\n})();\n\nHDateProto.getSedra = (function(){\n\tvar __cache = {};\n\n\treturn function(o) {\n\t\tvar sedraYear = __cache[this[getFullYear]()];\n\t\tif (!sedraYear || (sedraYear.il != this.il)) {\n\t\t\tsedraYear = __cache[this[getFullYear]()] = new Sedra(this[getFullYear](), this.il);\n\t\t}\n\t\treturn sedraYear.get(this)[map](function(p){\n\t\t\treturn c.LANG(p, o);\n\t\t});\n\t}\n})();\nHDateProto.getParsha = HDateProto.getSedra;\n\nHDateProto.holidays = function(all) {\n\tvar me = this, days = me[getYearObject]().holidays[me];\n\treturn days ? days.filter(function(h){\n\t\treturn all ? true : !h.routine() && h.is(me);\n\t})[map](function(h){\n\t\th.date.setLocation(me);\n\t\treturn h;\n\t}) : [];\n};\n\n['candleLighting', 'havdalah'].forEach(function(prop){\n\tHDateProto[prop] = function(){\n\t\tvar me = this, hd = me.holidays(true).filter(function(h){\n\t\t\treturn h.is(me);\n\t\t});\n\t\tif (hd.length) {\n\t\t\thd = c.filter(hd.map(function(h){\n\t\t\t\treturn h[prop]();\n\t\t\t}), true);\n\t\t}\n\t\treturn hd.length ? new Date(Math.max.apply(null, hd)) : null;\n\t};\n});\n\nHDateProto.omer = function() {\n\tvar me = this, greg = me.greg().getTime(), year = me[getFullYear]();\n\tif (greg > new HDate(15, NISAN, year).greg().getTime() &&\n\t\tgreg < new HDate( 6, months.SIVAN, year).greg().getTime()) {\n\t\treturn me.abs() - new HDate(16, NISAN, year).abs() + 1;\n\t}\n\treturn 0;\n};\n\nHDateProto.dafyomi = function(o) {\n\treturn dafyomi.dafname(dafyomi.dafyomi(this.greg()), o);\n};\n\nHDateProto.tachanun = (function() {\n\tvar NONE = tachanun.NONE = 0,\n\t\tMINCHA = tachanun.MINCHA = 1,\n\t\tSHACHARIT = tachanun.SHACHARIT = 2,\n\t\tALL_CONGS = tachanun.ALL_CONGS = 4;\n\n\tvar __cache = {\n\t\tall: {},\n\t\tsome: {},\n\t\tyes_prev: {},\n\t\til: {}\n\t};\n\n\tfunction tachanun() {\n\t\tvar checkNext = !arguments[0], me = this;\n\n\t\tvar year = me[getYearObject](), y = year.year;\n\n\t\tfunction mapAbs(arr) {\n\t\t\treturn arr[map](function(d){\n\t\t\t\treturn d.abs();\n\t\t\t});\n\t\t}\n\n\t\tvar all, some, yes_prev;\n\t\tif (__cache.il[y] === me.il) {\n\t\t\tall = __cache.all[y];\n\t\t\tsome = __cache.some[y];\n\t\t\tyes_prev = __cache.yes_prev[y];\n\t\t} else {\n\t\t\tall = __cache.all[y] = mapAbs(year[find]('Rosh Chodesh').concat(\n\t\t\t\tyear[find](c.range(1, c.daysInMonth(NISAN, y)), NISAN), // all of Nisan\n\t\t\t\tyear[find](15 + 33, NISAN), // Lag Baomer\n\t\t\t\tyear[find](c.range(1, 8 - me.il), months.SIVAN), // Rosh Chodesh Sivan thru Isru Chag\n\t\t\t\tyear[find]([9, 15], months.AV), // Tisha B'av and Tu B'av\n\t\t\t\tyear[find](-1, months.ELUL), // Erev Rosh Hashanah\n\t\t\t\tyear[find]([1, 2], TISHREI), // Rosh Hashanah\n\t\t\t\tyear[find](c.range(9, 24 - me.il), TISHREI), // Erev Yom Kippur thru Isru Chag\n\t\t\t\tyear[find](c.range(25, 33), months.KISLEV), // Chanukah\n\t\t\t\tyear[find](15, months.SHVAT), // Tu B'shvat\n\t\t\t\tyear[find]([14, 15], year[isLeapYear]() ? [months.ADAR_I, months.ADAR_II] : months.ADAR_I) // Purim/Shushan Purim + Katan\n\t\t\t));\n\t\t\tsome = __cache.some[y] = mapAbs([].concat( // Don't care if it overlaps days in all, because all takes precedence\n\t\t\t\tyear[find](c.range(1, 13), months.SIVAN), // Until 14 Sivan\n\t\t\t\tyear[find](c.range(20, 31), TISHREI), // Until after Rosh Chodesh Cheshvan\n\t\t\t\tyear[find](14, months.IYYAR), // Pesach Sheini\n\t\t\t\tholidays.atzmaut(y)[1].date || [], // Yom HaAtzma'ut, which changes based on day of week\n\t\t\t\ty >= 5727 ? year[find](29, months.IYYAR) : [] // Yom Yerushalayim\n\t\t\t));\n\t\t\tyes_prev = __cache.yes_prev[y] = mapAbs([].concat( // tachanun is said on the previous day at mincha\n\t\t\t\tyear[find](-1, months.ELUL), // Erev Rosh Hashanah\n\t\t\t\tyear[find](9, months.TISHREI), // Erev Yom Kippur\n\t\t\t\tyear[find](14, months.IYYAR) // Pesach Sheini\n\t\t\t));\n\t\t\t__cache.il[y] = me.il;\n\t\t}\n\n\t\tall = all.indexOf(me.abs()) > -1;\n\t\tsome = some.indexOf(me.abs()) > -1;\n\t\tyes_prev = yes_prev.indexOf(me.abs()+1) > -1;\n\n\t\tif (all) {\n\t\t\treturn NONE;\n\t\t}\n\t\tvar ret = (!some && ALL_CONGS) | (me[getDay]() != 6 && SHACHARIT);\n\t\tif (checkNext && !yes_prev) {\n\t\t\tret |= ((me[next]().tachanun(true) & SHACHARIT) && MINCHA);\n\t\t} else {\n\t\t\tret |= (me[getDay]() != 5 && MINCHA);\n\t\t}\n\t\treturn ret == ALL_CONGS ? NONE : ret;\n\t}\n\treturn tachanun;\n})();\n\nHDateProto.hallel = (function() {\n\tvar NONE = hallel.NONE = 0,\n\t\tHALF = hallel.HALF = 1,\n\t\tWHOLE = hallel.WHOLE = 2;\n\n\tvar __cache = {\n\t\twhole: {},\n\t\thalf: {},\n\t\til: {}\n\t};\n\n\tfunction hallel() {\n\t\tvar me = this, year = me[getYearObject](), y = year.year;\n\n\t\tvar whole = __cache.il[y] == me.il && __cache.whole[y] || (__cache.whole[y] = [].concat(\n\t\t\tyear[find](c.range(25, 33), months.KISLEV), // Chanukah\n\t\t\tyear[find]([15, me.il ? null : 16], NISAN), // First day(s) of Pesach\n\t\t\tyear[find]('Shavuot'),\n\t\t\tyear[find]('Sukkot'),\n\t\t\tholidays.atzmaut(y)[1].date || [], // Yom HaAtzma'ut, which changes based on day of week\n\t\t\ty >= 5727 ? year[find](29, months.IYYAR) : [] // Yom Yerushalayim\n\t\t)[map](function(d){\n\t\t\treturn d.abs();\n\t\t}));\n\t\tvar half = __cache.il[y] == me.il && __cache.half[y] || (__cache.half[y] = [].concat(\n\t\t\tyear[find]('Rosh Chodesh').filter(function(rc){return rc[getMonth]() != TISHREI}), // Rosh Chodesh, but not Rosh Hashanah\n\t\t\tyear[find](c.range(17 - me.il, 23 - me.il), NISAN) // Last six days of Pesach\n\t\t)[map](function(d){\n\t\t\treturn d.abs();\n\t\t}));\n\t\t__cache.il[y] = me.il;\n\n\t\treturn (whole.indexOf(me.abs()) > -1 && WHOLE) || (half.indexOf(me.abs()) > -1 && HALF) || NONE;\n\t}\n\treturn hallel;\n})();\n\n// Events\n\n(function(events){\n\tvar refreshInterval, refresh, today = new HDate();\n\n\tdefProp(events, 'refreshInterval', getset(function(){\n\t\treturn refreshInterval;\n\t}, function(ms){\n\t\tif (refresh) {\n\t\t\trefresh = clearInterval(refresh);\n\t\t}\n\t\trefreshInterval = ms;\n\t\tif (ms) {\n\t\t\trefresh = setInterval(checkTimes, ms);\n\t\t\tif (refresh.unref) {\n\t\t\t\trefresh.unref(); // don't keep the process open\n\t\t\t}\n\t\t}\n\t}));\n\n\tevents.beforeZeman = 1000 * 60 * 10; // 10 minutes\n\n\tfunction checkTimes() {\n\t\tvar now = new HDate();\n\n\t\tif (!today.isSameDate(now)) {\n\t\t\tevents.emit('dayChange');\n\t\t\ttoday = now;\n\t\t}\n\n\t\tfunction close(obj, compare) {\n\t\t\treturn c.filter(c[map](obj, function(time){\n\t\t\t\treturn time - nowGreg;\n\t\t\t}), function(time) {\n\t\t\t\treturn time > 0 && time - compare < 0;\n\t\t\t});\n\t\t}\n\n\t\tvar nowGreg = new Date(),\n\t\t\talmostTime = close(now.getZemanim(), events.beforeZeman),\n\t\t\tcustomTimes = close(events.customs, events.refreshInterval);\n\n\t\tfor (var zeman in almostTime) {\n\t\t\tevents.emit('almostZeman', zeman, almostTime[zeman]);\n\t\t\tif (almostTime[zeman] < events.refreshInterval) {\n\t\t\t\tevents.emit('atZeman', zeman);\n\t\t\t}\n\t\t}\n\t\tfor (var custom in customTimes) {\n\t\t\tevents.emit('custom', custom);\n\t\t}\n\t}\n\tcheckTimes();\n\n\tevents.refreshInterval = 1000 * 60 * 5; // 5 minutes\n\t// set the interval\n\n\tevents.customs = {};\n})(Hebcal.events = new EventEmitter());\n\n// Gregorian years\n\nfunction GregYear(year, month) {\n\tvar me = this;\n\tif (!year) {\n\t\tyear = (new Date)[getFullYear]();\n\t}\n\tif (typeof year === 'string') {\n\t\tvar d = new Date(year);\n\t\tmonth = year.indexOf(' ') + 1 || year.indexOf('-') + 1 || year.indexOf('/') + 1 ? d[getMonth]() + 1 : c.range(1, 12);\n\t\t// Check if a month was passed in the string. Can't just check for default January, because a real January might have been passed.\n\t\treturn new GregYear(d[getFullYear](), month);\n\t}\n\tif (typeof year !== 'number') {\n\t\tthrow new TE('year to Hebcal.GregYear() is not a number');\n\t}\n\tme.year = year;\n\n\tif (month) {\n\t\tif (typeof month === 'string') { // month name\n\t\t\tmonth = greg.lookupMonthName(month);\n\t\t}\n\t\tif (typeof month === 'number') {\n\t\t\tmonth = [month];\n\t\t}\n\n\t\tif (Array.isArray(month)) {\n\t\t\tme.months = month[map](function(i){\n\t\t\t\tvar m = new GregMonth(i, year);\n\t\t\t\tdefProp(m, '__year', {\n\t\t\t\t\tconfigurable: true,\n\t\t\t\t\twritable: true,\n\t\t\t\t\tvalue: me\n\t\t\t\t});\n\t\t\t\treturn m;\n\t\t\t});\n\t\t} else {\n\t\t\tthrow new TE('month to Hebcal.GregYear() is not a valid type');\n\t\t}\n\t} else {\n\t\treturn new GregYear(year, c.range(1, 12));\n\t}\n\n\tme.hebyears = [].concat.apply([], me.months[map](function(m){\n\t\treturn m.hebmonths[map](function(hm){\n\t\t\treturn hm.year;\n\t\t});\n\t})).filter(function(val, i, arr){\n\t\treturn arr.indexOf(val) === i; // keep unique values only\n\t});\n\n\tme.holidays = c.filter(holidays.year(me.hebyears[0]), function(h){\n\t\treturn h[0].date.greg()[getFullYear]() === year && me.months.filter(function(m){ // don't keep ones that are out of bounds\n\t\t\treturn m.month === h[0].date.greg()[getMonth]() + 1;\n\t\t})[length];\n\t});\n\tif (me.hebyears[1]) {\n\t\textend(me.holidays, c.filter(holidays.year(me.hebyears[1]), function(h){\n\t\t\treturn h[0].date.greg()[getFullYear]() === year && me.months.filter(function(m){ // don't keep ones that are out of bounds\n\t\t\t\treturn m.month === h[0].date.greg()[getMonth]() + 1;\n\t\t\t})[length];\n\t\t}));\n\t}\n\n\tme[length] = 365 + greg.LEAP(year);\n\n\tdefProp(me, 'il', getset(function() {\n\t\treturn me[getMonth](1).il;\n\t}, function(il) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.il = il;\n\t\t});\n\t}));\n\n\tdefProp(me, 'lat', getset(function() {\n\t\treturn me[getMonth](1).lat;\n\t}, function(lat) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.lat = lat;\n\t\t});\n\t}));\n\tdefProp(me, 'long', getset(function() {\n\t\treturn me[getMonth](1).long;\n\t}, function(lon) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.long = lon;\n\t\t});\n\t}));\n\n\treturn me;\n};\n\nHebcal.GregYear = GregYear;\n\nGregYearProto[isLeapYear] = function() {\n\treturn this[length] == 366;\n};\n\nGregYearProto.setCity = HebcalProto.setCity;\nGregYearProto.setLocation = HebcalProto.setLocation;\n\nGregYearProto[next] = function() {\n\treturn new GregYear(this.year + 1);\n};\n\nGregYearProto[prev] = function() {\n\treturn new GregYear(this.year - 1);\n};\n\nGregYearProto[getMonth] = function(month) {\n\tvar months = this.months\n\tmonth = typeof month == 'number' ? month : greg.lookupMonthNum(month);\n\tif (month > months[length]) {\n\t\treturn this[next]()[getMonth](month - months[length]);\n\t}\n\treturn months[month > 0 ? month - 1 : months[length] + month];\n};\n\nextend(GregYearProto, {\n\tdays: HebcalProto.days,\n\tmap: HebcalProto[map],\n\tfilter: HebcalProto.filter,\n\taddHoliday: HebcalProto.addHoliday,\n});\n\n/*GregYearProto.days = HebcalProto.days;\nGregYearProto[map] = HebcalProto[map];\nGregYearProto.filter = HebcalProto.filter;\n\nGregYearProto.addHoliday = HebcalProto.addHoliday;*/\n\nfunction GregMonth(month, year) {\n\tvar me = this;\n\tif (typeof month == 'string') {\n\t\tmonth = greg.lookupMonthNum(month);\n\t}\n\tif (typeof month != 'number') {\n\t\tthrow new TE('month to Hebcal.GregMonth is not a valid type');\n\t}\n\tif (typeof year != 'number') {\n\t\tthrow new TE('year to Hebcal.GregMonth is not a number');\n\t}\n\n\tme.year = year;\n\tme.month = month;\n\n\tme.days = c.range(1, greg.daysInMonth(month, year))[map](function(i){\n\t\tvar d = new HDate(new Date(year, month - 1, i));\n\t\tdefProp(d, '__gregmonth', {\n\t\t\tconfigurable: true,\n\t\t\twritable: true,\n\t\t\tvalue: me\n\t\t});\n\t\treturn d;\n\t});\n\n\tme[length] = me.days[length];\n\n\tme.hebmonths = [\n\t\t{month: me[getDay]( 1)[getMonth](), year: me[getDay]( 1)[getFullYear]()},\n\t\t{month: me[getDay](-1)[getMonth](), year: me[getDay](-1)[getFullYear]()}\n\t].filter(function(val, i, arr){\n\t\treturn i === 0 || val.month != arr[0].month;\n\t});\n\n\tdefProp(me, 'il', getset(function(){\n\t\treturn me[getDay](1).il;\n\t}, function(il){\n\t\tme.days.forEach(function(d){\n\t\t\td.il = il;\n\t\t});\n\t}));\n\n\tdefProp(me, 'lat', getset(function(){\n\t\treturn me[getDay](1).lat;\n\t}, function(lat){\n\t\tme.days.forEach(function(d){\n\t\t\td.lat = lat;\n\t\t});\n\t}));\n\tdefProp(me, 'long', getset(function(){\n\t\treturn me[getDay](1).long;\n\t}, function(lon){\n\t\tme.days.forEach(function(d){\n\t\t\td.long = lon;\n\t\t});\n\t}));\n\n\treturn me;\n};\n\nHebcal.GregMonth = GregMonth;\n\nGregMonthProto[isLeapYear] = function() {\n\treturn greg.LEAP(this.year);\n};\n\nGregMonthProto[prev] = function() {\n\tif (this.month === 1) {\n\t\treturn this[getYearObject]()[prev]()[getMonth](-1);\n\t} else {\n\t\treturn this[getYearObject]()[getMonth](this.month - 1);\n\t}\n};\n\nGregMonthProto[next] = function() {\n\treturn this[getYearObject]()[getMonth](this.month + 1);\n};\n\nGregMonthProto[getDay] = function(day) {\n\tif (day > this.days[length]) {\n\t\treturn this[next]()[getDay](day - this.days[length]);\n\t}\n\treturn this.days[day > 0 ? day - 1 : this.days[length] + day];\n};\n\nGregMonthProto[getYearObject] = function() {\n\treturn this.__year || new GregYear(this.year);\n};\n\nGregMonthProto.getName = function() {\n\treturn greg.monthNames[this.month];\n};\n\nGregMonthProto.setCity = MonthProto.setCity;\nGregMonthProto.setLocation = MonthProto.setLocation;\n\nGregMonthProto[map] = MonthProto[map];\n\nHDateProto.getGregMonthObject = function() {\n\treturn this.__gregmonth || new GregMonth(this.greg()[getMonth]() + 1, this.greg()[getFullYear]());\n};\n\nHDateProto.getGregYearObject = function() {\n\treturn this.getGregMonthObject()[getYearObject]();\n};\n\nmodule.exports = Hebcal;\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar c = require('./common'),\n\tHDate = require('./hdate'),\n\tgematriya = require('gematriya');\n\nvar __cache = {};\n\n// for byte optimizations\n\nvar dayOnOrBefore = c.dayOnOrBefore,\n\tmonths = c.months,\n\tdays = c.days,\n\tTISHREI = months.TISHREI,\n\tKISLEV = months.KISLEV,\n\tNISAN = months.NISAN,\n\tSAT = days.SAT,\n\tgetDay = 'getDay',\n\tabs = 'abs',\n\tShabbat = 'Shabbat',\n\tShabbos = 'Shabbos';\n\nfunction Chanukah(day) {\n\treturn ['Chanukah: Candle ' + day, 0, 'חנוכה: נר ' + gematriya(day)];\n}\n\nfunction CHM(desc) {\n\treturn [desc[0] + ' (CH\"M)', desc[1] ? desc[1] + ' (CH\"M)' : desc[1], desc[2] ? desc[2] + ' )חה\"ם(' : desc[2]];\n}\n\nfunction Sukkot(day) {\n\treturn ['Sukkot: ' + day, 'Succos: ' + day, 'סוכות יום ' + gematriya(day)];\n}\n\nfunction Pesach(day) {\n\treturn ['Pesach: ' + day, 0, 'פסח יום ' + gematriya(day)];\n}\n\nvar USER_EVENT = 1,\n\tLIGHT_CANDLES = 2,\n\tYOM_TOV_ENDS = 4,\n\tCHUL_ONLY = 8, // chutz l'aretz (Diaspora)\n\tIL_ONLY = 16, // b'aretz (Israel)\n\tLIGHT_CANDLES_TZEIS = 32;\n\nexports.masks = {\n\tUSER_EVENT : USER_EVENT,\n\tLIGHT_CANDLES : LIGHT_CANDLES,\n\tYOM_TOV_ENDS : YOM_TOV_ENDS,\n\tCHUL_ONLY : CHUL_ONLY,\n\tIL_ONLY : IL_ONLY,\n\tLIGHT_CANDLES_TZEIS: LIGHT_CANDLES_TZEIS\n};\n\nfunction Event(date, desc, mask) {\n\tvar me = this;\n\tme.date = new HDate(date);\n\tme.desc = typeof desc != 'object' ? [desc] : desc;\n\n\tme.USER_EVENT = !!( mask & USER_EVENT );\n\tme.LIGHT_CANDLES = !!( mask & LIGHT_CANDLES );\n\tme.YOM_TOV_ENDS = !!( mask & YOM_TOV_ENDS );\n\tme.CHUL_ONLY = !!( mask & CHUL_ONLY );\n\tme.IL_ONLY = !!( mask & IL_ONLY );\n\tme.LIGHT_CANDLES_TZEIS = !!( mask & LIGHT_CANDLES_TZEIS );\n}\n\nEvent.prototype.is = function(date, il) {\n\tdate = new HDate(date), myDate = this.date;\n\tif (arguments.length < 2) {\n\t\t//il = Event.isIL;\n\t\til = date.il;\n\t}\n\tif (date.getDate() != myDate.getDate() || date.getMonth() != myDate.getMonth()) {\n\t\treturn false;\n\t}\n\tif (date.getFullYear() != myDate.getFullYear()) {\n\t\treturn false;\n\t}\n\tif (il && this.CHUL_ONLY || !il && this.IL_ONLY) {\n\t\treturn false;\n\t}\n\treturn true;\n};\n\nEvent.prototype.masks = function() {\n\tvar me = this;\n\treturn (me.USER_EVENT && USER_EVENT) |\n\t\t (me.LIGHT_CANDLES && LIGHT_CANDLES) |\n\t\t (me.YOM_TOV_ENDS && YOM_TOV_ENDS) |\n\t\t (me.CHUL_ONLY && CHUL_ONLY) |\n\t\t (me.IL_ONLY && IL_ONLY) |\n\t\t (me.LIGHT_CANDLES_TZEIS && LIGHT_CANDLES_TZEIS);\n};\n\nEvent.prototype.getDesc = function(o) {\n\treturn c.LANG(this.desc, o);\n};\n\nEvent.prototype.candleLighting = function() {\n\tvar date = this.date;\n\tif (this.LIGHT_CANDLES) {\n\t\treturn new Date(date.sunset() - (Event.candleLighting * 60 * 1000));\n\t} else if (this.LIGHT_CANDLES_TZEIS) {\n\t\treturn date.getZemanim().tzeit;\n\t}\n\treturn null;\n};\n\nEvent.prototype.havdalah = function() {\n\tif (this.YOM_TOV_ENDS) {\n\t\treturn new Date(this.date.sunset().getTime() + (Event.havdalah * 60 * 1000));\n\t}\n\treturn null;\n};\n\nEvent.prototype.routine = (function(){\n\tfunction routine(){\n\t\treturn !!~routine.names.indexOf(this.getDesc('s'));\n\t}\n\troutine.names = [Shabbat, 'Erev ' + Shabbat];\n\treturn routine;\n})();\n\nEvent.isIL = false;\n\nEvent.candleLighting = 18;\n\nEvent.havdalah = 42;\n\nexports.Event = Event;\n\nexports.year = function(year) {\n\tif (__cache[year]) {\n\t\treturn __cache[year];\n\t}\n\n\tvar\tRH = new HDate(1, TISHREI, year),\n\t\tpesach = new HDate(15, NISAN, year),\n\t\ttmpDate;\n\n\tvar h = {};\n\n\tfunction add(ev) {\n\t\tif (Array.isArray(ev)) {\n\t\t\tev.forEach(function(e){\n\t\t\t\tadd(e);\n\t\t\t});\n\t\t} else {\n\t\t\tif (h[ev.date]) {\n\t\t\t\th[ev.date].push(ev);\n\t\t\t} else {\n\t\t\t\th[ev.date] = [ev];\n\t\t\t}\n\t\t}\n\t}\n\n\tObject.defineProperty(h, 'add', {value: add});\n\n\tadd([ // standard holidays that don't shift based on year\n\t\tnew Event(\n\t\t\tRH,\n\t\t\t['Rosh Hashana 1', 0, 'ראש השנה א\\''],\n\t\t\tLIGHT_CANDLES_TZEIS\n\t\t), new Event(\n\t\t\tnew HDate(2, TISHREI, year),\n\t\t\t['Rosh Hashana 2', 0, 'ראש השנה ב\\''],\n\t\t\tYOM_TOV_ENDS\n\t\t), new Event(\n\t\t\tnew HDate(3 + (RH[getDay]() == days.THU), TISHREI, year), // push off to SUN if RH is THU\n\t\t\t['Tzom Gedaliah', 0, 'צום גדליה'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(9, TISHREI, year),\n\t\t\t['Erev Yom Kippur', 0, 'ערב יום כיפור'],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event( // first SAT after RH\n\t\t\tnew HDate(dayOnOrBefore(SAT, 7 + RH[abs]())),\n\t\t\t[Shabbat + ' Shuva', Shabbos + ' Shuvah', 'שבת שובה'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(10, TISHREI, year),\n\t\t\t['Yom Kippur', 0, 'יום כיפור'],\n\t\t\tYOM_TOV_ENDS\n\t\t), new Event(\n\t\t\tnew HDate(14, TISHREI, year),\n\t\t\t['Erev Sukkot', 'Erev Succos', 'ערב סוכות'],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(15, TISHREI, year),\n\t\t\tSukkot(1),\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(15, TISHREI, year),\n\t\t\tSukkot(1),\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, TISHREI, year),\n\t\t\tSukkot(2),\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, TISHREI, year),\n\t\t\tCHM(Sukkot(2)),\n\t\t\tIL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(17, TISHREI, year),\n\t\t\tCHM(Sukkot(3)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(18, TISHREI, year),\n\t\t\tCHM(Sukkot(4)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(19, TISHREI, year),\n\t\t\tCHM(Sukkot(5)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(20, TISHREI, year),\n\t\t\tCHM(Sukkot(6)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(21, TISHREI, year),\n\t\t\t['Sukkot: 7 (Hoshana Raba)', 'Succos: 7 (Hoshana Raba)', 'סוכות יום ז\\' )הושנע רבה('],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(22, TISHREI, year),\n\t\t\t['Shmini Atzeret', 'Shmini Atzeres', 'שמיני עצרת'],\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(22, TISHREI, year),\n\t\t\t['Shmini Atzeret / Simchat Torah', 'Shmini Atzeres / Simchas Torah', 'שמיני עצרת / שמחת תורה'],\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(23, TISHREI, year),\n\t\t\t['Simchat Torah', 'Simchas Torah', 'שמחת תורה'],\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(24, KISLEV, year),\n\t\t\t['Erev Chanukah', 0, 'ערב חנוכה'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(25, KISLEV, year),\n\t\t\tChanukah(1),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(26, KISLEV, year),\n\t\t\tChanukah(2),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(27, KISLEV, year),\n\t\t\tChanukah(3),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(28, KISLEV, year),\n\t\t\tChanukah(4),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(29, KISLEV, year),\n\t\t\tChanukah(5),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(30, KISLEV, year), // yes, i know these are wrong\n\t\t\tChanukah(6),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(31, KISLEV, year), // HDate() corrects the month automatically\n\t\t\tChanukah(7),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(32, KISLEV, year),\n\t\t\tChanukah(8),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(15, months.SHVAT, year),\n\t\t\t[\"Tu B'Shvat\", 0, 'ט\"ו בשבט'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 43)),\n\t\t\t[Shabbat + ' Shekalim', Shabbos + ' Shekalim', 'שבת שקלים'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 30)),\n\t\t\t[Shabbat + ' Zachor', Shabbos + ' Zachor', 'שבת זכור'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(pesach[abs]() - (pesach[getDay]() == days.TUE ? 33 : 31)),\n\t\t\t[\"Ta'anit Esther\", \"Ta'anis Esther\", 'תענית אסתר'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(13, months.ADAR_II, year),\n\t\t\t['Erev Purim', 0, 'ערב פורים'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(14, months.ADAR_II, year),\n\t\t\t['Purim', 0, 'פורים'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(15, months.ADAR_II, year),\n\t\t\t['Shushan Purim', 0, 'שושן פורים'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 14) - 7),\n\t\t\t[Shabbat + ' Parah', Shabbos + ' Parah', 'שבת פרה'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 14)),\n\t\t\t[Shabbat + ' Hachodesh', Shabbos + ' Hachodesh', 'שבת החודש'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 1)),\n\t\t\t[Shabbat + ' HaGadol', Shabbos + ' HaGadol', 'שבת הגדול'],\n\t\t\t0\n\t\t), new Event(\n\t\t\t// if the fast falls on Shabbat, move to Thursday\n\t\t\tpesach.prev()[getDay]() == SAT ? pesach.onOrBefore(days.THU) : new HDate(14, NISAN, year),\n\t\t\t[\"Ta'anit Bechorot\", \"Ta'anis Bechoros\", 'תענית בכורות'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(14, NISAN, year),\n\t\t\t['Erev Pesach', 0, 'ערב פסח'],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(15, NISAN, year),\n\t\t\tPesach(1),\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(15, NISAN, year),\n\t\t\tPesach(1),\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, NISAN, year),\n\t\t\tPesach(2),\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, NISAN, year),\n\t\t\tCHM(Pesach(2)),\n\t\t\tIL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, NISAN, year),\n\t\t\t['Start counting Omer', 0, 'התחלת ספירת העומר'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(17, NISAN, year),\n\t\t\tCHM(Pesach(3)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(18, NISAN, year),\n\t\t\tCHM(Pesach(4)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(19, NISAN, year),\n\t\t\tCHM(Pesach(5)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(20, NISAN, year),\n\t\t\tCHM(Pesach(6)),\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(21, NISAN, year),\n\t\t\tPesach(7),\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(21, NISAN, year),\n\t\t\tPesach(7),\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(22, NISAN, year),\n\t\t\tPesach(8),\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(14, months.IYYAR, year),\n\t\t\t['Pesach Sheni', 0, 'פסח שני'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(18, months.IYYAR, year),\n\t\t\t[\"Lag B'Omer\", 0, 'ל\"ג בעומר'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(5, months.SIVAN, year),\n\t\t\t['Erev Shavuot', 'Erev Shavuos', 'ערב שבועות'],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(6, months.SIVAN, year),\n\t\t\t['Shavuot 1', 'Shavuos 1', 'שבועות א\\''],\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(6, months.SIVAN, year),\n\t\t\t['Shavuot', 'Shavuos', 'שבועות'],\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(7, months.SIVAN, year),\n\t\t\t['Shavuot 2', 'Shavuos 2', 'שבועות ב\\''],\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, new HDate(1, TISHREI, year + 1)[abs]() - 4)),\n\t\t\t['Leil Selichot', 'Leil Selichos', 'ליל סליחות'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(29, months.ELUL, year),\n\t\t\t['Erev Rosh Hashana', 0, 'ערב ראש השנה'],\n\t\t\tLIGHT_CANDLES\n\t\t)\n\t]);\n\n\ttmpDate = new HDate(10, months.TEVET, year);\n\tif (tmpDate[getDay]() == SAT) {\n\t\ttmpDate = tmpDate.next();\n\t}\n\tadd(new Event(\n\t\ttmpDate,\n\t\t[\"Asara B'Tevet\", 0, 'עשרה בטבת'],\n\t\t0\n\t));\n\n\tif (c.LEAP(year)) {\n\t\tadd(new Event(\n\t\t\tnew HDate(14, months.ADAR_I, year),\n\t\t\t['Purim Katan', 0, 'פורים קטן'],\n\t\t\t0\n\t\t));\n\n\t\tadd(new Event(\n\t\t\tnew HDate(15, months.ADAR_I, year),\n\t\t\t['Shushan Purim Katan', 0, 'שושן פורים קטן'],\n\t\t\t0\n\t\t));\n\t}\n\n\tif (year >= 5711) { // Yom HaShoah first observed in 1951\n\t\ttmpDate = new HDate(27, NISAN, year);\n\t\t/* When the actual date of Yom Hashoah falls on a Friday, the\n\t\t * state of Israel observes Yom Hashoah on the preceding\n\t\t * Thursday. When it falls on a Sunday, Yom Hashoah is observed\n\t\t * on the following Monday.\n\t\t * http://www.ushmm.org/remembrance/dor/calendar/\n\t\t */\n\n\t\tif (tmpDate[getDay]() == days.FRI) {\n\t\t\ttmpDate = tmpDate.prev();\n\t\t} else if (tmpDate[getDay]() == days.SUN) {\n\t\t\ttmpDate = tmpDate.next();\n\t\t}\n\n\t\tadd(new Event(\n\t\t\ttmpDate,\n\t\t\t['Yom HaShoah', 0, 'יום השואה'],\n\t\t\t0\n\t\t));\n\t}\n\n\tadd(atzmaut(year));\n\n\tif (year >= 5727) { // Yom Yerushalayim only celebrated after 1967\n\t\tadd(new Event(\n\t\t\tnew HDate(29, months.IYYAR, year),\n\t\t\t['Yom Yerushalayim', 0, 'יום ירושלים'],\n\t\t\t0\n\t\t));\n\t}\n\n\ttmpDate = new HDate(17, months.TAMUZ, year);\n\tif (tmpDate[getDay]() == SAT) {\n\t\ttmpDate = tmpDate.next();\n\t}\n\tadd(new Event(\n\t\ttmpDate,\n\t\t[\"Shiva-Asar B'Tamuz\", 0, \"צום יז' בתמוז\"],\n\t\t0\n\t));\n\n\ttmpDate = new HDate(9, months.AV, year);\n\tif (tmpDate[getDay]() == SAT) {\n\t\ttmpDate = tmpDate.next();\n\t}\n\n\tadd(new Event(\n\t\tnew HDate(dayOnOrBefore(SAT, tmpDate[abs]())),\n\t\t[Shabbat + ' Chazon', Shabbos + ' Chazon', 'שבת חזון'],\n\t\t0\n\t));\n\n\tadd(new Event(\n\t\ttmpDate.prev(),\n\t\t[\"Erev Tish'a B'Av\", 0, 'ערב תשעה באב'],\n\t\t0\n\t));\n\n\tadd(new Event(\n\t\ttmpDate,\n\t\t[\"Tish'a B'Av\", 0, 'תשעה באב'],\n\t\t0\n\t));\n\n\tadd(new Event(\n\t\tnew HDate(dayOnOrBefore(SAT, tmpDate[abs]() + 7)),\n\t\t[Shabbat + ' Nachamu', Shabbos + ' Nachamu', 'שבת נחמו'],\n\t\t0\n\t));\n\n\tfor (var day = 6; day < c.daysInYear(year); day += 7) {\n\t\tadd(new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, new HDate(1, TISHREI, year)[abs]() + day)),\n\t\t\t[Shabbat, Shabbos, 'שבת'],\n\t\t\tYOM_TOV_ENDS\n\t\t));\n\n\t\tadd(new Event(\n\t\t\tnew HDate(dayOnOrBefore(days.FRI, new HDate(1, TISHREI, year)[abs]() + day)),\n\t\t\t['Erev ' + Shabbat, 'Erev ' + Shabbos, 'ערב שבת'],\n\t\t\tLIGHT_CANDLES\n\t\t));\n\t}\n\n\tfor (var month = 1; month <= c.MONTH_CNT(year); month++) {\n\t\tif ((month == NISAN ? c.daysInMonth(c.MONTH_CNT(year - 1), year - 1) :\n\t\t\t\tc.daysInMonth(month - 1, year)) == 30) {\n\t\t\tadd(new Event(\n\t\t\t\tnew HDate(1, month, year),\n\t\t\t\t['Rosh Chodesh 2', 0, \"ראש חודש ב'\"],\n\t\t\t\t0\n\t\t\t));\n\n\t\t\tadd(new Event(\n\t\t\t\tnew HDate(30, month - 1, year),\n\t\t\t\t['Rosh Chodesh 1', 0, \"ראש חודש א'\"],\n\t\t\t\t0\n\t\t\t));\n\t\t} else if (month !== TISHREI) {\n\t\t\tadd(new Event(\n\t\t\t\tnew HDate(1, month, year),\n\t\t\t\t['Rosh Chodesh', 0, 'ראש חודש'],\n\t\t\t\t0\n\t\t\t));\n\t\t}\n\n\t\tif (month == months.ELUL) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tadd(new Event(\n\t\t\tnew HDate(29, month, year).onOrBefore(SAT),\n\t\t\t[Shabbat + ' Mevarchim', Shabbos + ' Mevorchim', 'שבת מברכים'],\n\t\t\t0\n\t\t));\n\t}\n\n\treturn __cache[year] = h;\n};\n\nfunction atzmaut(year) {\n\tif (year >= 5708) { // Yom HaAtzma'ut only celebrated after 1948\n\t\tvar tmpDate = new HDate(1, months.IYYAR, year), pesach = new HDate(15, NISAN, year);\n\n\t\tif (pesach[getDay]() == days.SUN) {\n\t\t\ttmpDate.setDate(2);\n\t\t} else if (pesach[getDay]() == SAT) {\n\t\t\ttmpDate.setDate(3);\n\t\t} else if (year < 5764) {\n\t\t\ttmpDate.setDate(4);\n\t\t} else if (pesach[getDay]() == days.TUE) {\n\t\t\ttmpDate.setDate(5);\n\t\t} else {\n\t\t\ttmpDate.setDate(4);\n\t\t}\n\n\t\treturn [new Event(\n\t\t\ttmpDate,\n\t\t\t['Yom HaZikaron', 0, 'יום הזיכרון'],\n\t\t\t0\n\t\t), new Event(\n\t\t\ttmpDate.next(),\n\t\t\t[\"Yom HaAtzma'ut\", 0, 'יום העצמאות'],\n\t\t\t0\n\t\t)];\n\t}\n\treturn [];\n}\nexports.atzmaut = atzmaut;\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nfunction EventEmitter() {\n this._events = this._events || {};\n this._maxListeners = this._maxListeners || undefined;\n}\nmodule.exports = EventEmitter;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nEventEmitter.defaultMaxListeners = 10;\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function(n) {\n if (!isNumber(n) || n < 0 || isNaN(n))\n throw TypeError('n must be a positive number');\n this._maxListeners = n;\n return this;\n};\n\nEventEmitter.prototype.emit = function(type) {\n var er, handler, len, args, i, listeners;\n\n if (!this._events)\n this._events = {};\n\n // If there is no 'error' event listener then throw.\n if (type === 'error') {\n if (!this._events.error ||\n (isObject(this._events.error) && !this._events.error.length)) {\n er = arguments[1];\n if (er instanceof Error) {\n throw er; // Unhandled 'error' event\n } else {\n // At least give some kind of context to the user\n var err = new Error('Uncaught, unspecified \"error\" event. (' + er + ')');\n err.context = er;\n throw err;\n }\n }\n }\n\n handler = this._events[type];\n\n if (isUndefined(handler))\n return false;\n\n if (isFunction(handler)) {\n switch (arguments.length) {\n // fast cases\n case 1:\n handler.call(this);\n break;\n case 2:\n handler.call(this, arguments[1]);\n break;\n case 3:\n handler.call(this, arguments[1], arguments[2]);\n break;\n // slower\n default:\n args = Array.prototype.slice.call(arguments, 1);\n handler.apply(this, args);\n }\n } else if (isObject(handler)) {\n args = Array.prototype.slice.call(arguments, 1);\n listeners = handler.slice();\n len = listeners.length;\n for (i = 0; i < len; i++)\n listeners[i].apply(this, args);\n }\n\n return true;\n};\n\nEventEmitter.prototype.addListener = function(type, listener) {\n var m;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events)\n this._events = {};\n\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (this._events.newListener)\n this.emit('newListener', type,\n isFunction(listener.listener) ?\n listener.listener : listener);\n\n if (!this._events[type])\n // Optimize the case of one listener. Don't need the extra array object.\n this._events[type] = listener;\n else if (isObject(this._events[type]))\n // If we've already got an array, just append.\n this._events[type].push(listener);\n else\n // Adding the second element, need to change to array.\n this._events[type] = [this._events[type], listener];\n\n // Check for listener leak\n if (isObject(this._events[type]) && !this._events[type].warned) {\n if (!isUndefined(this._maxListeners)) {\n m = this._maxListeners;\n } else {\n m = EventEmitter.defaultMaxListeners;\n }\n\n if (m && m > 0 && this._events[type].length > m) {\n this._events[type].warned = true;\n console.error('(node) warning: possible EventEmitter memory ' +\n 'leak detected. %d listeners added. ' +\n 'Use emitter.setMaxListeners() to increase limit.',\n this._events[type].length);\n if (typeof console.trace === 'function') {\n // not supported in IE 10\n console.trace();\n }\n }\n }\n\n return this;\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.once = function(type, listener) {\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n var fired = false;\n\n function g() {\n this.removeListener(type, g);\n\n if (!fired) {\n fired = true;\n listener.apply(this, arguments);\n }\n }\n\n g.listener = listener;\n this.on(type, g);\n\n return this;\n};\n\n// emits a 'removeListener' event iff the listener was removed\nEventEmitter.prototype.removeListener = function(type, listener) {\n var list, position, length, i;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events || !this._events[type])\n return this;\n\n list = this._events[type];\n length = list.length;\n position = -1;\n\n if (list === listener ||\n (isFunction(list.listener) && list.listener === listener)) {\n delete this._events[type];\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n\n } else if (isObject(list)) {\n for (i = length; i-- > 0;) {\n if (list[i] === listener ||\n (list[i].listener && list[i].listener === listener)) {\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (list.length === 1) {\n list.length = 0;\n delete this._events[type];\n } else {\n list.splice(position, 1);\n }\n\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n }\n\n return this;\n};\n\nEventEmitter.prototype.removeAllListeners = function(type) {\n var key, listeners;\n\n if (!this._events)\n return this;\n\n // not listening for removeListener, no need to emit\n if (!this._events.removeListener) {\n if (arguments.length === 0)\n this._events = {};\n else if (this._events[type])\n delete this._events[type];\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n for (key in this._events) {\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = {};\n return this;\n }\n\n listeners = this._events[type];\n\n if (isFunction(listeners)) {\n this.removeListener(type, listeners);\n } else if (listeners) {\n // LIFO order\n while (listeners.length)\n this.removeListener(type, listeners[listeners.length - 1]);\n }\n delete this._events[type];\n\n return this;\n};\n\nEventEmitter.prototype.listeners = function(type) {\n var ret;\n if (!this._events || !this._events[type])\n ret = [];\n else if (isFunction(this._events[type]))\n ret = [this._events[type]];\n else\n ret = this._events[type].slice();\n return ret;\n};\n\nEventEmitter.prototype.listenerCount = function(type) {\n if (this._events) {\n var evlistener = this._events[type];\n\n if (isFunction(evlistener))\n return 1;\n else if (evlistener)\n return evlistener.length;\n }\n return 0;\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n return emitter.listenerCount(type);\n};\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\n","/*\n * Convert numbers to gematriya representation, and vice-versa.\n *\n * Licensed MIT.\n *\n * Copyright (c) 2014 Eyal Schachter\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * \n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n * \n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n(function(){\n\tvar letters = {}, numbers = {\n\t\t'': 0,\n\t\tא: 1,\n\t\tב: 2,\n\t\tג: 3,\n\t\tד: 4,\n\t\tה: 5,\n\t\tו: 6,\n\t\tז: 7,\n\t\tח: 8,\n\t\tט: 9,\n\t\tי: 10,\n\t\tכ: 20,\n\t\tל: 30,\n\t\tמ: 40,\n\t\tנ: 50,\n\t\tס: 60,\n\t\tע: 70,\n\t\tפ: 80,\n\t\tצ: 90,\n\t\tק: 100,\n\t\tר: 200,\n\t\tש: 300,\n\t\tת: 400,\n\t\tתק: 500,\n\t\tתר: 600,\n\t\tתש: 700,\n\t\tתת: 800,\n\t\tתתק: 900,\n\t\tתתר: 1000\n\t}, i;\n\tfor (i in numbers) {\n\t\tletters[numbers[i]] = i;\n\t}\n\n\tfunction gematriya(num, limit) {\n\t\tif (typeof num !== 'number' && typeof num !== 'string') {\n\t\t\tthrow new TypeError('non-number or string given to gematriya()');\n\t\t}\n\t\tvar str = typeof num === 'string';\n\t\tif (str) {\n\t\t\tnum = num.replace(/('|\")/g,'');\n\t\t}\n\t\tnum = num.toString().split('').reverse();\n\t\tif (!str && limit) {\n\t\t\tnum = num.slice(0, limit);\n\t\t}\n\n\t\tnum = num.map(function g(n,i){\n\t\t\tif (str) {\n\t\t\t\treturn limit && numbers[n] < numbers[num[i - 1]] && numbers[n] < 100 ? numbers[n] * 1000 : numbers[n];\n\t\t\t} else {\n\t\t\t\tif (parseInt(n, 10) * Math.pow(10, i) > 1000) {\n\t\t\t\t\treturn g(n, i-3);\n\t\t\t\t}\n\t\t\t\treturn letters[parseInt(n, 10) * Math.pow(10, i)];\n\t\t\t}\n\t\t});\n\n\t\tif (str) {\n\t\t\treturn num.reduce(function(o,t){\n\t\t\t\treturn o + t;\n\t\t\t}, 0);\n\t\t} else {\n\t\t\tnum = num.reverse().join('').replace(/יה/g,'טו').replace(/יו/g,'טז').split('');\n\n\t\t\tif (num.length === 1) {\n\t\t\t\tnum.push(\"'\");\n\t\t\t} else if (num.length > 1) {\n\t\t\t\tnum.splice(-1, 0, '\"');\n\t\t\t}\n\n\t\t\treturn num.join('');\n\t\t}\n\t}\n\n\tif (typeof module !== 'undefined') {\n\t\tmodule.exports = gematriya;\n\t} else {\n\t\twindow.gematriya = gematriya;\n\t}\n})();\n","/*\n (c) 2011-2015, Vladimir Agafonkin\n SunCalc is a JavaScript library for calculating sun/moon position and light phases.\n https://github.com/mourner/suncalc\n*/\n\n(function () { 'use strict';\n\n// shortcuts for easier to read formulas\n\nvar PI = Math.PI,\n sin = Math.sin,\n cos = Math.cos,\n tan = Math.tan,\n asin = Math.asin,\n atan = Math.atan2,\n acos = Math.acos,\n rad = PI / 180;\n\n// sun calculations are based on http://aa.quae.nl/en/reken/zonpositie.html formulas\n\n\n// date/time constants and conversions\n\nvar dayMs = 1000 * 60 * 60 * 24,\n J1970 = 2440588,\n J2000 = 2451545;\n\nfunction toJulian(date) { return date.valueOf() / dayMs - 0.5 + J1970; }\nfunction fromJulian(j) { return new Date((j + 0.5 - J1970) * dayMs); }\nfunction toDays(date) { return toJulian(date) - J2000; }\n\n\n// general calculations for position\n\nvar e = rad * 23.4397; // obliquity of the Earth\n\nfunction rightAscension(l, b) { return atan(sin(l) * cos(e) - tan(b) * sin(e), cos(l)); }\nfunction declination(l, b) { return asin(sin(b) * cos(e) + cos(b) * sin(e) * sin(l)); }\n\nfunction azimuth(H, phi, dec) { return atan(sin(H), cos(H) * sin(phi) - tan(dec) * cos(phi)); }\nfunction altitude(H, phi, dec) { return asin(sin(phi) * sin(dec) + cos(phi) * cos(dec) * cos(H)); }\n\nfunction siderealTime(d, lw) { return rad * (280.16 + 360.9856235 * d) - lw; }\n\nfunction astroRefraction(h) {\n if (h < 0) // the following formula works for positive altitudes only.\n h = 0; // if h = -0.08901179 a div/0 would occur.\n\n // formula 16.4 of \"Astronomical Algorithms\" 2nd edition by Jean Meeus (Willmann-Bell, Richmond) 1998.\n // 1.02 / tan(h + 10.26 / (h + 5.10)) h in degrees, result in arc minutes -> converted to rad:\n return 0.0002967 / Math.tan(h + 0.00312536 / (h + 0.08901179));\n}\n\n// general sun calculations\n\nfunction solarMeanAnomaly(d) { return rad * (357.5291 + 0.98560028 * d); }\n\nfunction eclipticLongitude(M) {\n\n var C = rad * (1.9148 * sin(M) + 0.02 * sin(2 * M) + 0.0003 * sin(3 * M)), // equation of center\n P = rad * 102.9372; // perihelion of the Earth\n\n return M + C + P + PI;\n}\n\nfunction sunCoords(d) {\n\n var M = solarMeanAnomaly(d),\n L = eclipticLongitude(M);\n\n return {\n dec: declination(L, 0),\n ra: rightAscension(L, 0)\n };\n}\n\n\nvar SunCalc = {};\n\n\n// calculates sun position for a given date and latitude/longitude\n\nSunCalc.getPosition = function (date, lat, lng) {\n\n var lw = rad * -lng,\n phi = rad * lat,\n d = toDays(date),\n\n c = sunCoords(d),\n H = siderealTime(d, lw) - c.ra;\n\n return {\n azimuth: azimuth(H, phi, c.dec),\n altitude: altitude(H, phi, c.dec)\n };\n};\n\n\n// sun times configuration (angle, morning name, evening name)\n\nvar times = SunCalc.times = [\n [-0.833, 'sunrise', 'sunset' ],\n [ -0.3, 'sunriseEnd', 'sunsetStart' ],\n [ -6, 'dawn', 'dusk' ],\n [ -12, 'nauticalDawn', 'nauticalDusk'],\n [ -18, 'nightEnd', 'night' ],\n [ 6, 'goldenHourEnd', 'goldenHour' ]\n];\n\n// adds a custom time to the times config\n\nSunCalc.addTime = function (angle, riseName, setName) {\n times.push([angle, riseName, setName]);\n};\n\n\n// calculations for sun times\n\nvar J0 = 0.0009;\n\nfunction julianCycle(d, lw) { return Math.round(d - J0 - lw / (2 * PI)); }\n\nfunction approxTransit(Ht, lw, n) { return J0 + (Ht + lw) / (2 * PI) + n; }\nfunction solarTransitJ(ds, M, L) { return J2000 + ds + 0.0053 * sin(M) - 0.0069 * sin(2 * L); }\n\nfunction hourAngle(h, phi, d) { return acos((sin(h) - sin(phi) * sin(d)) / (cos(phi) * cos(d))); }\n\n// returns set time for the given sun altitude\nfunction getSetJ(h, lw, phi, dec, n, M, L) {\n\n var w = hourAngle(h, phi, dec),\n a = approxTransit(w, lw, n);\n return solarTransitJ(a, M, L);\n}\n\n\n// calculates sun times for a given date and latitude/longitude\n\nSunCalc.getTimes = function (date, lat, lng) {\n\n var lw = rad * -lng,\n phi = rad * lat,\n\n d = toDays(date),\n n = julianCycle(d, lw),\n ds = approxTransit(0, lw, n),\n\n M = solarMeanAnomaly(ds),\n L = eclipticLongitude(M),\n dec = declination(L, 0),\n\n Jnoon = solarTransitJ(ds, M, L),\n\n i, len, time, Jset, Jrise;\n\n\n var result = {\n solarNoon: fromJulian(Jnoon),\n nadir: fromJulian(Jnoon - 0.5)\n };\n\n for (i = 0, len = times.length; i < len; i += 1) {\n time = times[i];\n\n Jset = getSetJ(time[0] * rad, lw, phi, dec, n, M, L);\n Jrise = Jnoon - (Jset - Jnoon);\n\n result[time[1]] = fromJulian(Jrise);\n result[time[2]] = fromJulian(Jset);\n }\n\n return result;\n};\n\n\n// moon calculations, based on http://aa.quae.nl/en/reken/hemelpositie.html formulas\n\nfunction moonCoords(d) { // geocentric ecliptic coordinates of the moon\n\n var L = rad * (218.316 + 13.176396 * d), // ecliptic longitude\n M = rad * (134.963 + 13.064993 * d), // mean anomaly\n F = rad * (93.272 + 13.229350 * d), // mean distance\n\n l = L + rad * 6.289 * sin(M), // longitude\n b = rad * 5.128 * sin(F), // latitude\n dt = 385001 - 20905 * cos(M); // distance to the moon in km\n\n return {\n ra: rightAscension(l, b),\n dec: declination(l, b),\n dist: dt\n };\n}\n\nSunCalc.getMoonPosition = function (date, lat, lng) {\n\n var lw = rad * -lng,\n phi = rad * lat,\n d = toDays(date),\n\n c = moonCoords(d),\n H = siderealTime(d, lw) - c.ra,\n h = altitude(H, phi, c.dec),\n // formula 14.1 of \"Astronomical Algorithms\" 2nd edition by Jean Meeus (Willmann-Bell, Richmond) 1998.\n pa = atan(sin(H), tan(phi) * cos(c.dec) - sin(c.dec) * cos(H));\n\n h = h + astroRefraction(h); // altitude correction for refraction\n\n return {\n azimuth: azimuth(H, phi, c.dec),\n altitude: h,\n distance: c.dist,\n parallacticAngle: pa\n };\n};\n\n\n// calculations for illumination parameters of the moon,\n// based on http://idlastro.gsfc.nasa.gov/ftp/pro/astro/mphase.pro formulas and\n// Chapter 48 of \"Astronomical Algorithms\" 2nd edition by Jean Meeus (Willmann-Bell, Richmond) 1998.\n\nSunCalc.getMoonIllumination = function (date) {\n\n var d = toDays(date || new Date()),\n s = sunCoords(d),\n m = moonCoords(d),\n\n sdist = 149598000, // distance from Earth to Sun in km\n\n phi = acos(sin(s.dec) * sin(m.dec) + cos(s.dec) * cos(m.dec) * cos(s.ra - m.ra)),\n inc = atan(sdist * sin(phi), m.dist - sdist * cos(phi)),\n angle = atan(cos(s.dec) * sin(s.ra - m.ra), sin(s.dec) * cos(m.dec) -\n cos(s.dec) * sin(m.dec) * cos(s.ra - m.ra));\n\n return {\n fraction: (1 + cos(inc)) / 2,\n phase: 0.5 + 0.5 * inc * (angle < 0 ? -1 : 1) / Math.PI,\n angle: angle\n };\n};\n\n\nfunction hoursLater(date, h) {\n return new Date(date.valueOf() + h * dayMs / 24);\n}\n\n// calculations for moon rise/set times are based on http://www.stargazing.net/kepler/moonrise.html article\n\nSunCalc.getMoonTimes = function (date, lat, lng, inUTC) {\n var t = new Date(date);\n if (inUTC) t.setUTCHours(0, 0, 0, 0);\n else t.setHours(0, 0, 0, 0);\n\n var hc = 0.133 * rad,\n h0 = SunCalc.getMoonPosition(t, lat, lng).altitude - hc,\n h1, h2, rise, set, a, b, xe, ye, d, roots, x1, x2, dx;\n\n // go in 2-hour chunks, each time seeing if a 3-point quadratic curve crosses zero (which means rise or set)\n for (var i = 1; i <= 24; i += 2) {\n h1 = SunCalc.getMoonPosition(hoursLater(t, i), lat, lng).altitude - hc;\n h2 = SunCalc.getMoonPosition(hoursLater(t, i + 1), lat, lng).altitude - hc;\n\n a = (h0 + h2) / 2 - h1;\n b = (h2 - h0) / 2;\n xe = -b / (2 * a);\n ye = (a * xe + b) * xe + h1;\n d = b * b - 4 * a * h1;\n roots = 0;\n\n if (d >= 0) {\n dx = Math.sqrt(d) / (Math.abs(a) * 2);\n x1 = xe - dx;\n x2 = xe + dx;\n if (Math.abs(x1) <= 1) roots++;\n if (Math.abs(x2) <= 1) roots++;\n if (x1 < -1) x1 = x2;\n }\n\n if (roots === 1) {\n if (h0 < 0) rise = i + x1;\n else set = i + x1;\n\n } else if (roots === 2) {\n rise = i + (ye < 0 ? x2 : x1);\n set = i + (ye < 0 ? x1 : x2);\n }\n\n if (rise && set) break;\n\n h0 = h2;\n }\n\n var result = {};\n\n if (rise) result.rise = hoursLater(t, rise);\n if (set) result.set = hoursLater(t, set);\n\n if (!rise && !set) result[ye > 0 ? 'alwaysUp' : 'alwaysDown'] = true;\n\n return result;\n};\n\n\n// export as Node module / AMD module / browser variable\nif (typeof exports === 'object' && typeof module !== 'undefined') module.exports = SunCalc;\nelse if (typeof define === 'function' && define.amd) define(SunCalc);\nelse window.SunCalc = SunCalc;\n\n}());\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\n/*\n * Many of the following algorithms were taken from hebrew calendar\n * routines by Maimonedes, from his Mishneh Torah, and implemented by\n * Nachum Dershowitz Department of Computer Science\n * (217) 333-4219 University of Illinois at Urbana-Champaign\n * nachum@cs.uiuc.edu 1304 West Springfield Avenue\n * Urbana, Illinois 61801\n *\n * The routines were included in the emacs 19 distribution.\n *\n */\nvar c = require('./common'), HDate = require('./hdate');\n\nvar concat = 'concat', range = c.range; // for client optimization\n\nvar INCOMPLETE = 0,\n\tREGULAR = 1,\n\tCOMPLETE = 2;\n\nfunction Sedra(hebYr, il) { // the Hebrew year\n\til = !!il;\n\tvar long_c = c.lngChesh(hebYr);\n\tvar short_k = c.shrtKis(hebYr);\n\tvar type;\n\tthis.year = hebYr;\n\tif (long_c && !short_k) {\n\t\ttype = COMPLETE;\n\t} else if (!long_c && short_k) {\n\t\ttype = INCOMPLETE;\n\t} else {\n\t\ttype = REGULAR;\n\t}\n\n\tvar rosh_hashana = new HDate(1, c.months.TISHREI, hebYr).abs();\n\tvar rosh_hashana_day = (rosh_hashana % 7) + 1;\n\n\t// find the first Saturday on or after Rosh Hashana\n\tthis.first_saturday = c.dayOnOrBefore(6, rosh_hashana + 6);\n\tvar leap = +c.LEAP(hebYr);\n\tthis.type = type;\n\tthis.rosh_hashana_day = rosh_hashana_day;\n\tthis.leap = leap;\n\tthis.il = il;\n\n\tvar core = \"\" + leap + rosh_hashana_day + type;\n\tif (types[core]) {\n\t\tthis.theSedraArray = types[core];\n\t} else {\n\t\tthis.theSedraArray = types[core + (+il)]; // cast to num, then concat\n\t}\n\n\tif (!this.theSedraArray) {\n\t\tconsole.log(this);\n\t\tthrow new TypeError(\"improper sedra year type calculated.\");\n\t}\n}\n\nvar parshiot = Sedra.parshiot = [\n\t[ 'Bereshit', 'Bereshis', 'בראשית' ], // 0\n\t[ 'Noach', 0, 'נח' ],\n\t[ 'Lech-Lecha', 0, 'לך-לך' ],\n\t[ 'Vayera', 0, 'וירא' ],\n\t[ 'Chayei Sara', 0, 'חי שרה' ],\n\t[ 'Toldot', 'Toldos', 'תולדות' ],\n\t[ 'Vayetzei', 0, 'ויצא' ],\n\t[ 'Vayishlach', 0, 'וישלח' ],\n\t[ 'Vayeshev', 0, 'וישב' ],\n\t[ 'Miketz', 0, 'מקץ' ],\n\t[ 'Vayigash', 0, 'ויגש' ], // 10\n\t[ 'Vayechi', 0, 'ויחי' ],\n\t[ 'Shemot', 'Shemos', 'שמות' ],\n\t[ 'Vaera', 0, 'וארא' ],\n\t[ 'Bo', 0, 'בא' ],\n\t[ 'Beshalach', 0, 'בשלח' ],\n\t[ 'Yitro', 'Yisro', 'יתרו' ],\n\t[ 'Mishpatim', 0, 'משפטים' ],\n\t[ 'Terumah', 0, 'תרומה' ],\n\t[ 'Tetzaveh', 0, 'תצוה' ],\n\t[ 'Ki Tisa', 'Ki Sisa', 'כי תשא' ], // 20\n\t[ 'Vayakhel', 0, 'ויקהל' ],\n\t[ 'Pekudei', 0, 'פקודי' ],\n\t[ 'Vayikra', 0, 'ויקרא' ],\n\t[ 'Tzav', 0, 'צו' ],\n\t[ 'Shmini', 0, 'שמיני' ],\n\t[ 'Tazria', 0, 'תזריע' ],\n\t[ 'Metzora', 0, 'מצרע' ],\n\t[ 'Achrei Mot', 'Achrei Mos', 'אחרי מות' ],\n\t[ 'Kedoshim', 0, 'קדשים' ],\n\t[ 'Emor', 0, 'אמור' ], // 30\n\t[ 'Behar', 0, 'בהר' ],\n\t[ 'Bechukotai', 'Bechukosai', 'בחקתי' ],\n\t[ 'Bamidbar', 0, 'במדבר' ],\n\t[ 'Nasso', 0, 'נשא' ],\n\t[ 'Beha\\'alotcha', 'Beha\\'aloscha', 'בהעלתך' ],\n\t[ 'Sh\\'lach', 0, 'שלח לך' ],\n\t[ 'Korach', 0, 'קורח' ],\n\t[ 'Chukat', 'Chukas', 'חקת' ],\n\t[ 'Balak', 0, 'בלק' ],\n\t[ 'Pinchas', 0, 'פינחס' ], // 40\n\t[ 'Matot', 'Matos', 'מטות' ],\n\t[ 'Masei', 0, 'מסעי' ],\n\t[ 'Devarim', 0, 'דברים' ],\n\t[ 'Vaetchanan', 'V\\'eschanan', 'ואתחנן' ],\n\t[ 'Eikev', 0, 'עקב' ],\n\t[ 'Re\\'eh', 0, 'ראה' ],\n\t[ 'Shoftim', 0, 'שופטים' ],\n\t[ 'Ki Teitzei', 'Ki Seitzei', 'כי תצא' ],\n\t[ 'Ki Tavo', 'Ki Savo', 'כי תבוא' ],\n\t[ 'Nitzavim', 0, 'נצבים' ], // 50\n\t[ 'Vayeilech', 0, 'וילך' ],\n\t[ 'Ha\\'Azinu', 0, 'האזינו' ]\n];\n\n\n// parsha doubler/undoubler\nfunction D(p) {\n\treturn -p;\n}\n\n// these are wrapped to protect them from [].concat()\nvar RH = [[ 'Rosh Hashana', 0, 'ראש השנה' ]]; //0\nvar YK = [[ 'Yom Kippur', 0, 'יום כיפור' ]]; //1\n\nvar SUKKOT = [[ 'Sukkot', 'Succos', 'סוכות' ]]; //0\nvar CHMSUKOT = [[ 'Chol hamoed Sukkot', 'Chol hamoed Succos', 'חול המועד סוכות' ]]; //0\nvar SHMINI = [[ 'Shmini Atzeret', 'Shmini Atzeres', 'שמיני עצרת' ]]; //0\nvar EOY = [[ 'End-of-Year: Simchat-Torah, Sukkot', 'End-of-Year: Simchas-Torah, Succos', 'סופשנה: סוכות וסמחת תורה' ]]; //0\n\nvar PESACH = [[ 'Pesach', 0, 'פסח' ]]; //25\nvar CHMPESACH = [[ 'Chol hamoed Pesach', 0, 'חול המועד פסח' ]]; //25\nvar PESACH7 = [[ 'Second days of Pesach', 0, 'שביעי של פסח' ]]; //25\n\nvar SHAVUOT = [[ 'Shavuot', 'Shavuos', 'שבועות' ]]; //33\n\n\n\n// The ordinary year types (keviot)\n\n// names are leap/nonleap - day - incomplete/regular/complete - diaspora/Israel\n\nvar types = {\n\n\t/* Hebrew year that starts on Monday, is `incomplete' (Heshvan and\n\t * Kislev each have 29 days), and has Passover start on Tuesday. */\n\t//e.g. 5753\n\t'020' : [51, 52][concat](EOY, range(0, 20), D(21), 23, 24, PESACH, 25,\n\t\tD(26), D(28), 30, D(31), range(33, 40), D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Monday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Thursday. */\n\t//e.g. 5756\n\t'0220' : [51, 52][concat](EOY, range(0, 20), D(21), 23, 24, PESACH, 25, D(26), D(28),\n\t\t30, D(31), 33, SHAVUOT, range(34, 37), D(38), 40, D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Thursday, is `regular' (Heshvan has 29\n\t * days and Kislev has 30 days), and has Passover start on Saturday. */\n\t//e.g. 5701\n\t'0510' : [52][concat](YK, EOY, range(0, 20), D(21), 23, 24, PESACH, PESACH,\n\t\t25, D(26), D(28), 30, D(31), range(33, 40), D(41), range(43, 50)\n\t),\n\n\t/* Hebrew year that starts on Thursday, is `regular' (Heshvan has 29\n\t * days and Kislev has 30 days), and has Passover start on Saturday. */\n\t// e.g. 5745\n\t'0511' : [52][concat](YK, EOY, range(0, 20), D(21), 23, 24, PESACH,\n\t\t25, D(26), D(28), range(30, 40), D(41), range(43, 50)\n\t),\n\n\t/* Hebrew year that starts on Thursday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Sunday. */\n\t//e.g. 5754\n\t'052' : [52][concat](YK, CHMSUKOT, range(0, 24), PESACH7, 25, D(26),\n\t\tD(28), 30, D(31), range(33, 40), D(41), range(43, 50)\n\t),\n\n\t/* Hebrew year that starts on Saturday, is `incomplete' (Heshvan and Kislev\n\t * each have 29 days), and has Passover start on Sunday. */\n\t//e.g. 5761\n\t'070' : [][concat](RH, 52, SUKKOT, SHMINI, range(0, 20), D(21), 23, 24, PESACH7,\n\t\t25, D(26), D(28), 30, D(31), range(33, 40), D(41), range(43, 50)\n\t),\n\n\n\t/* Hebrew year that starts on Saturday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Tuesday. */\n\t//e.g. 5716\n\t'072' : [][concat](RH, 52, SUKKOT, SHMINI, range(0, 20), D(21), 23, 24, CHMPESACH, 25,\n\t\tD(26), D(28), 30, D(31), range(33, 40), D(41), range(43, 49), D(50)\n\t),\n\n\n\t/* -- The leap year types (keviot) -- */\n\t/* Hebrew year that starts on Monday, is `incomplete' (Heshvan and\n\t * Kislev each have 29 days), and has Passover start on Thursday. */\n\t//e.g. 5746\n\t'1200' : [51, 52][concat](CHMSUKOT, range(0, 27), CHMPESACH, range(28, 33),\n\t\tSHAVUOT, range(34, 37), D(38), 40, D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Monday, is `incomplete' (Heshvan and\n\t * Kislev each have 29 days), and has Passover start on Thursday. */\n\t//e.g. 5746\n\t'1201' : [51, 52][concat](CHMSUKOT, range(0, 27), CHMPESACH,\n\t\trange(28, 40), D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Monday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Saturday. */\n\t//e.g.5752\n\t'1220' : [51, 52][concat](CHMSUKOT, range(0, 27), PESACH,\n\t\tPESACH, range(28, 40), D(41), range(43, 50)\n\t),\n\n\t/* Hebrew year that starts on Monday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Saturday. */\n\t//e.g.5752\n\t'1221' : [51, 52][concat](CHMSUKOT, range(0, 27), PESACH, range(28, 50)),\n\n\t/* Hebrew year that starts on Thursday, is `incomplete' (Heshvan and\n\t * Kislev both have 29 days), and has Passover start on Sunday. */\n\t//e.g. 5768\n\t'150' : [52][concat](YK, CHMSUKOT, range(0, 28), PESACH7, range(29, 50)),\n\n\t/* Hebrew year that starts on Thursday, is `complete' (Heshvan and\n\t * Kislev both have 30 days), and has Passover start on Tuesday. */\n\t//eg. 5771\n\t'152' : [52][concat](YK, CHMSUKOT, range(0, 28), CHMPESACH, range(29, 49), D(50)),\n\n\t/* Hebrew year that starts on Saturday, is `incomplete' (Heshvan and\n\t * Kislev each have 29 days), and has Passover start on Tuesday. */\n\t//e.g.5757\n\t'170' : [][concat](RH, 52, SUKKOT, SHMINI, range(0, 27), CHMPESACH,\n\t\trange(28, 40), D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Saturday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Thursday. */\n\t'1720' : [][concat](RH, 52, SUKKOT, SHMINI, range(0, 27), CHMPESACH, range(28, 33),\n\t\tSHAVUOT, range(34, 37), D(38), 40, D(41), range(43, 49), D(50)\n\t)\n};\n\n/* Hebrew year that starts on Monday, is `complete' (Heshvan and\n * Kislev each have 30 days), and has Passover start on Thursday. */\ntypes['0221'] = types['020'];\n\n/* Hebrew year that starts on Tuesday, is `regular' (Heshvan has 29\n * days and Kislev has 30 days), and has Passover start on Thursday. */\n//e.g. 5715\ntypes['0310'] = types['0220'];\n\n/* Hebrew year that starts on Tuesday, is `regular' (Heshvan has 29\n * days and Kislev has 30 days), and has Passover start on Thursday. */\ntypes['0311'] = types['020'];\n\n/* Hebrew year that starts on Tuesday, is `regular' (Heshvan has 29\n * days and Kislev has 30 days), and has Passover start on Saturday. */\n// e.g. 5715\ntypes['1310'] = types['1220'];\n/* Hebrew year that starts on Tuesday, is `regular' (Heshvan has 29\n * days and Kislev has 30 days), and has Passover start on Saturday. */\ntypes['1311'] = types['1221'];\n\n/* Hebrew year that starts on Saturday, is `complete' (Heshvan and\n * Kislev each have 30 days), and has Passover start on Thursday. */\ntypes['1721'] = types['170'];\n\n\nSedra.prototype.get = function(hDate) {\n\treturn abs(this, hDate.abs());\n};\n\n// returns an array describing the parsha on the first Saturday on or after absdate\nfunction abs(year, absDate) {\n\n\t// find the first saturday on or after today's date\n\tabsDate = c.dayOnOrBefore(6, absDate + 6);\n\n\tvar weekNum = (absDate - year.first_saturday) / 7;\n\tvar index = year.theSedraArray[weekNum];\n\n\tif (undefined === index) {\n\t\treturn abs(new Sedra(year.year + 1, year.il), absDate); // must be next year\n\t}\n\tif (typeof index == 'object') {\n\t\t// Shabbat has a chag. Return a description\n\t\treturn [index];\n\t}\n\tif (index >= 0) {\n\t\treturn [parshiot[index]];\n\t}\n\n\tindex = D(index); // undouble the parsha\n\treturn [parshiot[index], parshiot[index + 1]];\n}\n\nmodule.exports = Sedra;\n"]} \ No newline at end of file +{"version":3,"sources":["node_modules/browser-pack/_prelude.js","cities.js","client/client.js","common.js","dafyomi.js","greg.js","hdate.js","hebcal.js","holidays.js","node_modules/events/events.js","node_modules/gematriya/gematriya.js","node_modules/suncalc/suncalc.js","sedra.js"],"names":["e","t","n","r","s","o","u","a","require","i","f","Error","code","l","exports","call","length","1","module","getCity","city","split","map","w","c","join","toLowerCase","toUpperCase","slice","cities","listCities","Object","keys","Ashdod","Atlanta","Austin","Baghdad","Beer Sheva","Berlin","Baltimore","Bogota","Boston","Buenos Aires","Buffalo","Chicago","Cincinnati","Cleveland","Dallas","Denver","Detroit","Eilat","Gibraltar","Haifa","Hawaii","Houston","Jerusalem","Johannesburg","Kiev","La Paz","Livingston","London","Los Angeles","Miami","Melbourne","Mexico City","Montreal","Moscow","New York","Omaha","Ottawa","Panama City","Paris","Petach Tikvah","Philadelphia","Phoenix","Pittsburgh","Saint Louis","Saint Petersburg","San Francisco","Seattle","Sydney","Tel Aviv","Tiberias","Toronto","Vancouver","White Plains","Washington DC","addCity","info","Array","isArray","TypeError","nearest","lat","lon","name","dist","Math","sqrt","pow","abs","reduce","close","ready","Hebcal","finished","events","emit","window","warn","console","log","on","defineProperty","configurable","get","listeners","set","func","navigator","geolocation","getCurrentPosition","p","defaultLocation","coords","latitude","longitude","LEAP","x","hebElapsedDays","hYear","m_elapsed","floor","p_elapsed","h_elapsed","parts","day","alt_day","daysInYear","year","lngChesh","shrtKis","monthFromName","months","NISAN","IYYAR","ELUL","CHESHVAN","KISLEV","SIVAN","SHVAT","TAMUZ","TISHREI","TEVET","AV","test","ADAR_I","ADAR_II","filter","self","fun","thisp","v","funOrig","RegExp","k","indexOf","res","hasOwnProperty","val","props","getOwnPropertyDescriptor","value","arr","Number","gematriya","charCodeAt","monthNames","concat","days","SUN","MON","TUE","WED","THU","FRI","SAT","LANG","str","opts","MONTH_CNT","daysInMonth","month","monthNum","parseInt","dayYearNum","dayOnOrBefore","day_of_week","absdate","range","start","end","step","push","greg","shas","m","blatt","dafyomi","gregdate","cno","dno","osday","nsday","total","count","j","cday","dafcnt","Date","greg2abs","dafname","daf","dayOfYear","date","doy","getDate","getMonth","getFullYear","t0t1","tMonthLengths","monthLengths","lookupMonthNum","abs2greg","theDate","d0","n400","d1","n100","d2","n4","d3","n1","setFullYear","HDate","me","this","arguments","d","abs2hebrew","il","setLocation","long","trim","prev","next","setMonth","setDate","apply","fix","fixMonth","fixDate","isLeapYear","hebrew2abs","tempabs","hebdate","mmap","RangeError","suntime","hdate","suncalc","getTimes","hourOffset","hours","sunrise","getTime","hour","onOrBefore","offset","addTime","prototype","enumerable","getTishreiMonth","nummonths","getDay","setTishreiMonth","gregEve","sunset","toString","getMonthName","setCity","hourMins","nightHour","nightHourMins","zemanim","chatzot","chatzot_night","alot_hashachar","alot_hashacher","misheyakir","misheyakir_machmir","sof_zman_shma","sof_zman_tfilla","mincha_gedola","mincha_ketana","plag_hamincha","tzeit","neitz_hachama","shkiah","getZemanim","z","addZeman","zeman","isSameDate","other","before","onOrAfter","after","getset","g","extend","base","into","TE","Month","defProp","writable","holidays","forEach","h","GregYear","lookupMonthName","GregMonth","hebyears","hebmonths","hm","Sedra","EventEmitter","find","strings","getYearObject","HebcalProto","MonthProto","GregYearProto","GregMonthProto","HDateProto","rosh","addHoliday","holiday","Event","add","findParsha","parsha","langs","max","getSedra","findSedra","find_f","replace","rosh_chodesh","omer","today","yesterday","tomorrow","pesach","sukkot","succot","succos","sukkos","shavuot","shavuos","rosh_hashana","rosh_hashanah","parshiot","LANGUAGE","loc","defaultCity","candleLighting","mins","havdalah","__year","getName","prevMonth","molad","m_adj","retMolad","toInt","round","chalakim","minutes","shabbat_mevarchim","_calc","setHours","setMinutes","setSeconds","num","sm","shabbos_mevarchim","shabbos_mevorchim","getMonthObject","__month","orig","__cache","sedraYear","getParsha","all","routine","is","prop","hd","tachanun","mapAbs","some","yes_prev","checkNext","y","atzmaut","NONE","ret","ALL_CONGS","SHACHARIT","MINCHA","hallel","whole","half","rc","WHOLE","HALF","checkTimes","obj","compare","time","nowGreg","now","almostTime","beforeZeman","customTimes","customs","refreshInterval","custom","refresh","ms","clearInterval","setInterval","unref","getGregMonthObject","__gregmonth","getGregYearObject","Chanukah","CHM","desc","Sukkot","Pesach","mask","USER_EVENT","LIGHT_CANDLES","YOM_TOV_ENDS","CHUL_ONLY","IL_ONLY","LIGHT_CANDLES_TZEIS","tmpDate","Shabbat","Shabbos","masks","myDate","getDesc","names","isIL","ev","RH","_events","_maxListeners","undefined","isFunction","arg","isNumber","isObject","isUndefined","defaultMaxListeners","setMaxListeners","isNaN","type","er","handler","len","args","error","err","context","addListener","listener","newListener","warned","trace","once","removeListener","fired","list","position","splice","removeAllListeners","key","listenerCount","evlistener","emitter","limit","reverse","numbers","letters","","א","ב","ג","ד","ה","ו","ז","ח","ט","י","כ","ל","מ","נ","ס","ע","פ","צ","ק","ר","ש","ת","תק","תר","תש","תת","תתק","תתר","toJulian","valueOf","dayMs","J1970","fromJulian","toDays","J2000","rightAscension","b","atan","sin","cos","tan","declination","asin","azimuth","H","phi","dec","altitude","siderealTime","lw","rad","astroRefraction","solarMeanAnomaly","eclipticLongitude","M","C","P","PI","sunCoords","L","ra","julianCycle","J0","approxTransit","Ht","solarTransitJ","ds","hourAngle","acos","getSetJ","moonCoords","F","dt","hoursLater","atan2","SunCalc","getPosition","lng","times","angle","riseName","setName","Jset","Jrise","Jnoon","result","solarNoon","nadir","getMoonPosition","pa","distance","parallacticAngle","getMoonIllumination","sdist","inc","fraction","phase","getMoonTimes","inUTC","setUTCHours","h1","h2","rise","xe","ye","roots","x1","x2","dx","hc","h0","define","amd","hebYr","long_c","short_k","COMPLETE","INCOMPLETE","REGULAR","rosh_hashana_day","first_saturday","leap","core","types","theSedraArray","D","absDate","weekNum","index","YK","SUKKOT","CHMSUKOT","SHMINI","EOY","PESACH","CHMPESACH","PESACH7","SHAVUOT","020","0220","0510","0511","052","070","072","1200","1201","1220","1221","150","152","170","1720","hDate"],"mappings":"CAAA,QAAAA,GAAAC,EAAAC,EAAAC,GAAA,QAAAC,GAAAC,EAAAC,GAAA,IAAAJ,EAAAG,GAAA,CAAA,IAAAJ,EAAAI,GAAA,CAAA,GAAAE,GAAA,kBAAAC,UAAAA,OAAA,KAAAF,GAAAC,EAAA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AAAA,EAAA,OAKAA,EAAA,MAAAA,EAAA,MAGAA,EAAA,MAAAA,EAAA,MAIAA,EAAA,MAAAA,EAAA,KAGAzS,EAAAxD,UAAArK,IAAA,SAAAoiB,GACA,MAAAnjB,GAAAkJ,KAAAia,EAAAnjB,QA2BAlF,EAAAJ,QAAAkU","file":"client/hebcal.min.js","sourceRoot":"https://github.com/hebcal/hebcal-js/tree/v2.2.3/","sourcesContent":["(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o.\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\n\n// name, lat, long, Israel\nvar cities = {\n\t\"Ashdod\": [ 31.8, 34.633, true ],\n\t\"Atlanta\": [ 33.75, -84.383, false ],\n\t\"Austin\": [ 30.266, -97.75, false ],\n\t\"Baghdad\": [ 33.233, 44.366, false ],\n\t\"Beer Sheva\": [ 31.25, 34.783, true ],\n\t\"Berlin\": [ 52.516, 13.4, false ],\n\t\"Baltimore\": [ 39.283, -76.6, false ],\n\t\"Bogota\": [ 4.6, -74.083, false ],\n\t\"Boston\": [ 42.333, -71.066, false ],\n\t\"Buenos Aires\": [ -34.616, -58.4, false ],\n\t\"Buffalo\": [ 42.883, -78.866, false ],\n\t\"Chicago\": [ 41.833, -87.75, false ],\n\t\"Cincinnati\": [ 39.1, -84.516, false ],\n\t\"Cleveland\": [ 41.5, -81.683, false ],\n\t\"Dallas\": [ 32.783, -96.8, false ],\n\t\"Denver\": [ 39.733, -104.983, false ],\n\t\"Detroit\": [ 42.333, -83.033, false ],\n\t\"Eilat\": [ 29.55, 34.95, true ],\n\t\"Gibraltar\": [ 36.133, -5.35, false ],\n\t\"Haifa\": [ 32.816, 34.983, true ],\n\t\"Hawaii\": [ 19.5, -155.5, false ],\n\t\"Houston\": [ 29.766, -95.366, false ],\n\t\"Jerusalem\": [ 31.783, 35.233, true ],\n\t\"Johannesburg\": [ -26.166, 28.033, false ],\n\t\"Kiev\": [ 50.466, 30.483, false ],\n\t\"La Paz\": [ -16.5, -68.15, false ],\n\t\"Livingston\": [ 40.283, -74.3, false ],\n\t\"London\": [ 51.5, -0.166, false ],\n\t\"Los Angeles\": [ 34.066, -118.25, false ],\n\t\"Miami\": [ 25.766, -80.2, false ],\n\t\"Melbourne\": [ -37.866, 145.133, false ],\n\t\"Mexico City\": [ 19.4, -99.15, false ],\n\t\"Montreal\": [ 45.5, -73.6, false ],\n\t\"Moscow\": [ 55.75, 37.7, false ],\n\t\"New York\": [ 40.716, -74.016, false ],\n\t\"Omaha\": [ 41.266, -95.933, false ],\n\t\"Ottawa\": [ 45.7, -76.183, false ],\n\t\"Panama City\": [ 8.966, -79.533, false ],\n\t\"Paris\": [ 48.866, 2.333, false ],\n\t\"Petach Tikvah\": [ 32.083, 34.883, true ],\n\t\"Philadelphia\": [ 39.95, -75.166, false ],\n\t\"Phoenix\": [ 33.45, -112.066, false ],\n\t\"Pittsburgh\": [ 40.433, -80, false ],\n\t\"Saint Louis\": [ 38.633, -90.2, false ],\n\t\"Saint Petersburg\": [ 59.883, 30.25, false ],\n\t\"San Francisco\": [ 37.783, -122.416, false ],\n\t\"Seattle\": [ 47.6, -122.333, false ],\n\t\"Sydney\": [ -33.916, 151.283, false ],\n\t\"Tel Aviv\": [ 32.083, 34.766, true ],\n\t\"Tiberias\": [ 32.966, 35.533, true ],\n\t\"Toronto\": [ 43.633, -79.4, false ],\n\t\"Vancouver\": [ 49.266, -123.116, false ],\n\t\"White Plains\": [ 41.033, -73.75, false ],\n\t\"Washington DC\": [ 38.916, -77, false ]\n};\n\nfunction getCity(city) {\n\tcity = city.split(/\\s+/).map(function(w,i,c){\n\t\tif (c.join(' ').toLowerCase() === 'washington dc' && i === 1) { // special case\n\t\t\treturn w.toUpperCase();\n\t\t}\n\t\treturn w[0].toUpperCase() + w.slice(1).toLowerCase();\n\t}).join(' ');\n\treturn cities[city] || [ 0, 0, false ];\n}\nexports.getCity = getCity;\n\nfunction listCities() {\n\treturn Object.keys(cities);\n}\nexports.listCities = listCities;\n\nexports.addCity = function(city, info) {\n\tif (!Array.isArray(info)) {\n\t\tthrow new TypeError('adding non-array city');\n\t}\n\tif (info.length == 5) {\n\t\tvar i = info.slice();\n\t\tinfo = [];\n\t\tinfo[0] = (i[0] * 60 + i[1]) / 60;\n\t\tinfo[1] = (i[2] * 60 + i[3]) / 60;\n\t\tinfo[2] = i[4];\n\t}\n\tif (info.length != 3) {\n\t\tthrow new TypeError('length of city array is not 3');\n\t}\n\tcity = city.split(/\\s+/).map(function(w){return w[0].toUpperCase() + w.slice(1).toLowerCase()}).join(' ');\n\tcities[city] = info;\n};\n\nexports.nearest = function(lat, lon) {\n\tif (Array.isArray(lat)) {\n\t\tlat = (lat[0] * 60 + lat[1]) / 60;\n\t}\n\tif (Array.isArray(lon)) {\n\t\tlon = (lon[0] * 60 + lon[1]) / 60;\n\t}\n\tif (typeof lat != 'number') {\n\t\tthrow new TypeError('incorrect lat type passed to nearest()');\n\t}\n\tif (typeof lon != 'number') {\n\t\tthrow new TypeError('incorrect long type passed to nearest()');\n\t}\n\n\treturn listCities().map(function(city){\n\t\tvar i = getCity(city);\n\t\treturn {\n\t\t\tname: city,\n\t\t\tdist: Math.sqrt( Math.pow(Math.abs(i[0] - lat), 2) + Math.pow(Math.abs(i[1] - lon), 2) )\n\t\t};\n\t}).reduce(function(close,city){\n\t\treturn close.dist < city.dist ? close : city;\n\t}).name;\n};","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at \n\tdanny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter\n */\nwindow.Hebcal = require('..');\n\nvar finished = false, warn = (typeof console != 'undefined' && (console.warn || console.log)) || function(){};\n\nHebcal.events.on('newListener', function(e){\n\tif (e === 'ready' && !finished && Hebcal.ready) {\n\t\tready();\n\t}\n});\n\nObject.defineProperty(Hebcal, 'onready', {\n\tconfigurable: true,\n\n\tget: function() {\n\t\twarn('Getting deprecated property Hebcal.onready');\n\t\treturn Hebcal.events.listeners('ready')[0];\n\t},\n\tset: function(func) {\n\t\twarn('Setting deprecated property Hebcal.onready; use Hebcal.events.on(\\'ready\\', func) instead');\n\t\tHebcal.events.on('ready', func);\n\t}\n});\n\nif (navigator.geolocation) {\n\tHebcal.ready = false;\n\tnavigator.geolocation.getCurrentPosition(function(p){\n\t\tHebcal.defaultLocation = [p.coords.latitude,p.coords.longitude];\n\t\tready();\n\t}, ready);\n} else {\n\tready();\n}\n\nfunction ready() {\n\tHebcal.ready = true;\n\tfinished = Hebcal.events.emit('ready');\n}","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar gematriya = require('gematriya');\n\nvar charCodeAt = 'charCodeAt';\n\nvar months = exports.months = {\n\tNISAN : 1,\n\tIYYAR : 2,\n\tSIVAN : 3,\n\tTAMUZ : 4,\n\tAV : 5,\n\tELUL : 6,\n\tTISHREI : 7,\n\tCHESHVAN: 8,\n\tKISLEV : 9,\n\tTEVET : 10,\n\tSHVAT : 11,\n\tADAR_I : 12,\n\tADAR_II : 13\n};\n\nvar monthNames = [\n\t[\"\", 0, \"\"],\n\t[\"Nisan\", 0, \"ניסן\"],\n\t[\"Iyyar\", 0, \"אייר\"],\n\t[\"Sivan\", 0, \"סיון\"],\n\t[\"Tamuz\", 0, \"תמוז\"],\n\t[\"Av\", 0, \"אב\"],\n\t[\"Elul\", 0, \"אלול\"],\n\t[\"Tishrei\", 0, \"תשרי\"],\n\t[\"Cheshvan\", 0, \"חשון\"],\n\t[\"Kislev\", 0, \"כסלו\"],\n\t[\"Tevet\", 0, \"טבת\"],\n\t[\"Sh'vat\", 0, \"שבט\"]\n];\nexports.monthNames = [\n\tmonthNames.concat([[\"Adar\", 0, \"אדר\"],[\"Nisan\", 0, \"ניסן\"]]),\n\tmonthNames.concat([[\"Adar 1\", 0, \"אדר א'\"],[\"Adar 2\", 0, \"אדר ב'\"],[\"Nisan\", 0, \"ניסן\"]])\n];\n\nexports.days = {\n\tSUN: 0,\n\tMON: 1,\n\tTUE: 2,\n\tWED: 3,\n\tTHU: 4,\n\tFRI: 5,\n\tSAT: 6\n};\n\nexports.LANG = function(str, opts){\n\treturn opts == 'h' && str[2] || (opts == 'a' && str[1] || str[0]);\n};\n\nfunction LEAP(x) {\n\treturn (1 + x * 7) % 19 < 7;\n}\nexports.LEAP = LEAP;\n\nexports.MONTH_CNT = function(x) {\n\treturn 12 + LEAP(x); // boolean is cast to 1 or 0\n};\n\nexports.daysInMonth = function(month, year) {\n\treturn 30 - (month == months.IYYAR ||\n\tmonth == months.TAMUZ ||\n\tmonth == months.ELUL ||\n\tmonth == months.TEVET ||\n\tmonth == months.ADAR_II ||\n\t(month == months.ADAR_I && !LEAP(year)) ||\n\t(month == months.CHESHVAN && !lngChesh(year)) ||\n\t(month == months.KISLEV && shrtKis(year)));\n};\n\nexports.monthNum = function(month) {\n\treturn typeof month === 'number' ? month :\n\t\tmonth[charCodeAt](0) >= 1488 && month[charCodeAt](0) <= 1514 && /('|\")/.test(month) ? gematriya(month) :\n\t\t\tmonth[charCodeAt](0) >= 48 && month[charCodeAt](0) <= 57 /* number */ ? parseInt(month, 10) : monthFromName(month);\n};\n\nexports.dayYearNum = function(str) {\n\treturn typeof str === 'number' ? str :\n\t\tstr[charCodeAt](0) >= 1488 && str[charCodeAt](0) <= 1514 ? gematriya(str, true) : parseInt(str, 10);\n};\n\n/* Days from sunday prior to start of Hebrew calendar to mean\n conjunction of Tishrei in Hebrew YEAR\n */\nfunction hebElapsedDays(hYear){\n\t// borrowed from original JS\n\tvar m_elapsed = 235 * Math.floor((hYear - 1) / 19) +\n\t\t12 * ((hYear - 1) % 19) +\n\t\tMath.floor(((((hYear - 1) % 19) * 7) + 1) / 19);\n\n\tvar p_elapsed = 204 + (793 * (m_elapsed % 1080));\n\n\tvar h_elapsed = 5 + (12 * m_elapsed) +\n\t\t793 * Math.floor(m_elapsed / 1080) +\n\t\tMath.floor(p_elapsed / 1080);\n\n\tvar parts = (p_elapsed % 1080) + 1080 * (h_elapsed % 24);\n\n\tvar day = 1 + 29 * m_elapsed + Math.floor(h_elapsed / 24);\n\tvar alt_day = day + ((parts >= 19440) ||\n\t\t((2 == (day % 7)) && (parts >= 9924) && !(LEAP (hYear))) ||\n\t\t((1 == (day % 7)) && (parts >= 16789) && LEAP (hYear - 1)));\n\n\treturn alt_day + ((alt_day % 7) === 0 ||\n\t\t(alt_day % 7) == 3 ||\n\t\t(alt_day % 7) == 5);\n}\nexports.hebElapsedDays = hebElapsedDays;\n\n/* Number of days in the hebrew YEAR */\nfunction daysInYear(year)\n{\n\treturn hebElapsedDays(year + 1) - hebElapsedDays(year);\n}\nexports.daysInYear = daysInYear;\n\n/* true if Cheshvan is long in Hebrew YEAR */\nfunction lngChesh(year) {\n\treturn (daysInYear(year) % 10) == 5;\n}\nexports.lngChesh = lngChesh;\n\n/* true if Kislev is short in Hebrew YEAR */\nfunction shrtKis(year) {\n\treturn (daysInYear(year) % 10) == 3;\n}\nexports.shrtKis = shrtKis;\n\nfunction monthFromName(c) {\n\t/*\n\tthe Hebrew months are unique to their second letter\n\tN Nisan (November?)\n\tI Iyyar\n\tE Elul\n\tC Cheshvan\n\tK Kislev\n\t1 1Adar\n\t2 2Adar\n\tSi Sh Sivan, Shvat\n\tTa Ti Te Tamuz, Tishrei, Tevet\n\tAv Ad Av, Adar\n\n\tאב אד אי אל אב אדר אייר אלול\n\tח חשון\n\tט טבת\n\tכ כסלב\n\tנ ניסן\n\tס סיון\n\tש שבט\n\tתמ תש תמוז תשרי\n\t*/\n\tswitch (c.toLowerCase()[0]) {\n\t\tcase 'n':\n\t\tcase 'נ':\n\t\t\treturn (c.toLowerCase()[1] == 'o') ? /* this catches \"november\" */\n\t\t\t\t0 : months.NISAN;\n\t\tcase 'i':\n\t\t\treturn months.IYYAR;\n\t\tcase 'e':\n\t\t\treturn months.ELUL;\n\t\tcase 'c':\n\t\tcase 'ח':\n\t\t\treturn months.CHESHVAN;\n\t\tcase 'k':\n\t\tcase 'כ':\n\t\t\treturn months.KISLEV;\n\t\tcase 's':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'i':\n\t\t\t\t\treturn months.SIVAN;\n\t\t\t\tcase 'h':\n\t\t\t\t\treturn months.SHVAT;\n\t\t\t\tdefault:\n\t\t\t\t\treturn 0;\n\t\t\t}\n\t\tcase 't':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'a':\n\t\t\t\t\treturn months.TAMUZ;\n\t\t\t\tcase 'i':\n\t\t\t\t\treturn months.TISHREI;\n\t\t\t\tcase 'e':\n\t\t\t\t\treturn months.TEVET;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'a':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'v':\n\t\t\t\t\treturn months.AV;\n\t\t\t\tcase 'd':\n\t\t\t\t\tif (/(1|[^i]i|a|א)$/i.test(c)) {\n\t\t\t\t\t\treturn months.ADAR_I;\n\t\t\t\t\t}\n\t\t\t\t\treturn months.ADAR_II; // else assume sheini\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'ס':\n\t\t\treturn months.SIVAN;\n\t\tcase 'ש':\n\t\t\treturn months.SHVAT;\n\t\tcase 'א':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'ב':\n\t\t\t\t\treturn months.AV;\n\t\t\t\tcase 'ד':\n\t\t\t\t\tif (/(2|ii|b|ב)$/i.test(c)) {\n\t\t\t\t\t\treturn months.ADAR_I;\n\t\t\t\t\t}\n\t\t\t\t\treturn months.ADAR_II; // else assume sheini\n\t\t\t\tcase 'י':\n\t\t\t\t\treturn months.IYYAR;\n\t\t\t\tcase 'ל':\n\t\t\t\t\treturn months.ELUL;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'ת':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'מ':\n\t\t\t\t\treturn months.TAMUZ;\n\t\t\t\tcase 'ש':\n\t\t\t\t\treturn months.TISHREI;\n\t\t\t}\n\t\t\tbreak;\n\t}\n\treturn 0;\n};\nexports.monthFromName = monthFromName;\n\n/* Note: Applying this function to d+6 gives us the DAYNAME on or after an\n * absolute day d. Similarly, applying it to d+3 gives the DAYNAME nearest to\n * absolute date d, applying it to d-1 gives the DAYNAME previous to absolute\n * date d, and applying it to d+7 gives the DAYNAME following absolute date d.\n\n**/\nexports.dayOnOrBefore = function(day_of_week, absdate) {\n\treturn absdate - ((absdate - day_of_week) % 7);\n};\n\nexports.map = function(self, fun, thisp) {\n\t// originally written for http://github.com/Scimonster/localbrowse\n\tif (self === null || typeof fun != 'function') {\n\t\tthrow new TypeError();\n\t}\n\tvar t = Object(self);\n\tvar res = {};\n\tfor (var i in t) {\n\t\tif (t.hasOwnProperty(i)) {\n\t\t\tres[i] = fun.call(thisp, t[i], i, t);\n\t\t}\n\t}\n\tif (Array.isArray(self) || typeof self == 'string') { // came as an array, return an array\n\t\tvar arr = [];\n\t\tfor (i in res) {\n\t\t\tarr[Number(i)] = res[i];\n\t\t}\n\t\tres = filter(arr, true); // for...in isn't guaranteed to give any meaningful order\n\t\tif (typeof self == 'string') {\n\t\t\tres = res.join('');\n\t\t}\n\t}\n\treturn res;\n};\n\nfunction filter(self, fun, thisp) {\n\tif (self === null) {\n\t\tthrow new TypeError('self is null');\n\t}\n\tswitch (typeof fun) {\n\t\tcase 'function':\n\t\t\tbreak; // do nothing\n\t\tcase 'string':\n\t\tcase 'number':\n\t\t\treturn self[fun]; // str/num is just the property\n\t\tcase 'boolean':\n\t\t\t// boolean shortcuts to filter only truthy/falsy values\n\t\t\tif (fun) {\n\t\t\t\tfun = function (v) {\n\t\t\t\t\treturn v;\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\tfun = function (v) {\n\t\t\t\t\treturn !v;\n\t\t\t\t};\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'object':\n\t\t\tvar funOrig = fun; // save it\n\t\t\tif (fun instanceof RegExp) { // test the val against the regex\n\t\t\t\tfun = function (v) {\n\t\t\t\t\treturn funOrig.test(v);\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\t} else if (Array.isArray(fun)) { // keep these keys\n\t\t\t\tfun = function (v, k) {\n\t\t\t\t\treturn funOrig.indexOf(k) > -1;\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\t}\n\t\tdefault:\n\t\t\tthrow new TypeError('fun is not a supported type');\n\t}\n\tvar res = {};\n\tvar t = Object(self);\n\tfor (var i in t) {\n\t\tif (t.hasOwnProperty(i)) {\n\t\t\tvar val = t[i]; // in case fun mutates it\n\t\t\tif (fun.call(thisp, val, i, t)) {\n\t\t\t\t// define property on res in the same manner as it was originally defined\n\t\t\t\tvar props = Object.getOwnPropertyDescriptor(t, i);\n\t\t\t\tprops.value = val;\n\t\t\t\tObject.defineProperty(res, i, props);\n\t\t\t}\n\t\t}\n\t}\n\tif (Array.isArray(self) || typeof self == 'string') { // came as an array, return an array\n\t\tvar arr = [];\n\t\tfor (i in res) {\n\t\t\tarr[Number(i)] = res[i];\n\t\t}\n\t\tres = arr.filter(function (v) {\n\t\t\treturn v;\n\t\t}); // for...in isn't guaranteed to give any meaningful order\n\t\t// can't use c.filter(arr,true) here because that would infitely recurse\n\t\tif (typeof self == 'string') {\n\t\t\tres = res.join('');\n\t\t}\n\t}\n\treturn res;\n}\nexports.filter = filter;\n\nexports.range = function(start, end, step) {\n\tstep = step || 1;\n\tif (step < 0) {\n\t\tstep = 0 - step;\n\t}\n\n\tvar arr = [], i = start;\n\tif (start < end) {\n\t\tfor (; i <= end; i += step) {\n\t\t\tarr.push(i);\n\t\t}\n\t} else {\n\t\tfor (; i >= end; i -= step) {\n\t\t\tarr.push(i);\n\t\t}\n\t}\n\treturn arr;\n};\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar c = require('./common'),\n\tgreg = require('./greg'),\n\tgematriya = require('gematriya');\n\nvar shas = [\n\t// sname, aname, hname, blatt\n\t[ \"Berachot\", \"Berachos\", \"ברכות\", 64 ],\n\t[ \"Shabbat\", \"Shabbos\", \"שבת\", 157 ],\n\t[ \"Eruvin\", \"Eruvin\", \"עירובין\", 105 ],\n\t[ \"Pesachim\", 0, \"פסחים\", 121 ],\n\t[ \"Shekalim\", 0, \"שקלים\", 22 ],\n\t[ \"Yoma\", 0, \"יומא\", 88 ],\n\t[ \"Sukkah\", 0, \"סוכה\", 56 ],\n\t[ \"Beitzah\", 0, \"ביצה\", 40 ],\n\t[ \"Rosh Hashana\", 0, \"ראש השנה\", 35 ],\n\t[ \"Taanit\", \"Taanis\", \"תענית\", 31 ],\n\t[ \"Megillah\", 0, \"מגילה\", 32 ],\n\t[ \"Moed Katan\", 0, \"מועד קטן\", 29 ],\n\t[ \"Chagigah\", 0, \"חגיגה\", 27 ],\n\t[ \"Yevamot\", \"Yevamos\", \"יבמות\", 122 ],\n\t[ \"Ketubot\", \"Kesubos\", \"כתובות\", 112 ],\n\t[ \"Nedarim\", 0, \"נדרים\", 91 ],\n\t[ \"Nazir\", 0, \"נזיר\", 66 ],\n\t[ \"Sotah\", 0, \"סוטה\", 49 ],\n\t[ \"Gitin\", 0, \"גיטין\", 90 ],\n\t[ \"Kiddushin\", 0, \"קידושין\", 82 ],\n\t[ \"Baba Kamma\", 0, \"בבא קמא\", 119 ],\n\t[ \"Baba Metzia\", 0, \"בבא מציעא\", 119 ],\n\t[ \"Baba Batra\", \"Baba Basra\", \"בבא בתרא\", 176 ],\n\t[ \"Sanhedrin\", 0, \"סנהדרין\", 113 ],\n\t[ \"Makkot\", \"Makkos\", \"מכות\", 24 ],\n\t[ \"Shevuot\", \"Shevuos\", \"שבועות\", 49 ],\n\t[ \"Avodah Zarah\", 0, \"עבודה זרה\", 76 ],\n\t[ \"Horayot\", \"Horayos\", \"הוריות\", 14 ],\n\t[ \"Zevachim\", 0, \"זבחים\", 120 ],\n\t[ \"Menachot\", \"Menachos\", \"מנחות\", 110 ],\n\t[ \"Chullin\", 0, \"חולין\", 142 ],\n\t[ \"Bechorot\", \"Bechoros\", \"בכורות\", 61 ],\n\t[ \"Arachin\", 0, \"ערכין\", 34 ],\n\t[ \"Temurah\", 0, \"תמורה\", 34 ],\n\t[ \"Keritot\", \"Kerisos\", \"כריתות\", 28 ],\n\t[ \"Meilah\", 0, \"מעילה\", 22 ],\n\t[ \"Kinnim\", 0, \"קנים\", 4 ],\n\t[ \"Tamid\", 0, \"תמיד\", 10 ],\n\t[ \"Midot\", \"Midos\", \"מדות\", 4 ],\n\t[ \"Niddah\", 0, \"נדה\", 73 ]\n].map(function(m){\n\treturn {name: m.slice(0,3), blatt: m[3]};\n});\n\nexports.dafyomi = function(gregdate) {\n\tvar dafcnt = 40, cno, dno, osday, nsday, total, count, j, cday, blatt;\n\n\tif (!(gregdate instanceof Date)) {\n\t\tthrow new TypeError('non-date given to dafyomi');\n\t}\n\n\tosday = greg.greg2abs(new Date(1923, 8, 11));\n\tnsday = greg.greg2abs(new Date(1975, 5, 24));\n\tcday = greg.greg2abs(gregdate);\n\n\tif (cday < osday) { // no cycle; dy didn't start yet\n\t\treturn {name: [], blatt: 0};\n\t}\n\tif (cday >= nsday) { // \"new\" cycle\n\t\tcno = 8 + ( (cday - nsday) / 2711 );\n\t\tdno = (cday - nsday) % 2711;\n\t} else { // old cycle\n\t\tcno = 1 + ( (cday - osday) / 2702 );\n\t\tdno = (cday - osday) % 2702;\n\t}\n\n\t// Find the daf taking note that the cycle changed slightly after cycle 7.\n\n\ttotal = blatt = 0;\n\tcount = -1;\n\n\t// Fix Shekalim for old cycles\n\tif (cno <= 7) {\n\t\tshas[4].blatt = 13;\n\t} else {\n\t\tshas[4].blatt = 22;\n\t}\n\n\t// Find the daf\n\tj = 0;\n\twhile (j < dafcnt) {\n\t\tcount++;\n\t\ttotal = total + shas[j].blatt - 1;\n\t\tif (dno < total) {\n\t\t\tblatt = (shas[j].blatt + 1) - (total - dno);\n\t\t\t// fiddle with the weird ones near the end\n\t\t\tswitch (count) {\n\t\t\t\tcase 36:\n\t\t\t\t\tblatt = blatt + 21;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 37:\n\t\t\t\t\tblatt = blatt + 24;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 38:\n\t\t\t\t\tblatt = blatt + 33;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// Bailout\n\t\t\tj = 1 + dafcnt;\n\t\t}\n\t\tj++;\n\t}\n\n\treturn {name: shas[count].name, blatt: blatt};\n};\n\nexports.dafname = function(daf, o) {\n\treturn c.LANG(daf.name, o) + ' ' + (o === 'h' ? gematriya(daf.blatt) : daf.blatt);\n};\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar floor = Math.floor,\n\tt0t1 = [30, 31],\n\ttMonthLengths = [0, 31, 28, 31].concat(t0t1, t0t1, 31, t0t1, t0t1),\n\tmonthLengths = [\n\t\ttMonthLengths.slice()\n\t];\ntMonthLengths[2]++;\nmonthLengths.push(tMonthLengths);\n\nexports.daysInMonth = function(month, year) { // 1 based months\n\treturn monthLengths[+LEAP(year)][month];\n};\n\nexports.monthNames = [\n\t'',\n\t'January',\n\t'February',\n\t'March',\n\t'April',\n\t'May',\n\t'June',\n\t'July',\n\t'August',\n\t'September',\n\t'October',\n\t'November',\n\t'December'\n];\n\nexports.lookupMonthNum = function(month) {\n\treturn new Date(month + ' 1').getMonth() + 1;\n};\n\nfunction dayOfYear (date) {\n\tif (!date instanceof Date) {\n\t\tthrow new TypeError('Argument to greg.dayOfYear not a Date');\n\t}\n\tvar doy = date.getDate() + 31 * date.getMonth();\n\tif (date.getMonth() > 1) { // FEB\n\t\tdoy -= floor((4 * (date.getMonth() + 1) + 23) / 10);\n\t\tif (LEAP(date.getFullYear())) {\n\t\t\tdoy++;\n\t\t}\n\t}\n\treturn doy;\n}\nexports.dayOfYear = dayOfYear;\n\nfunction LEAP (year) {\n\treturn !(year % 4) && ( !!(year % 100) || !(year % 400) );\n}\nexports.LEAP = LEAP;\n\nexports.greg2abs = function(date) { // \"absolute date\"\n\tvar year = date.getFullYear() - 1;\n\treturn (dayOfYear(date) + // days this year\n\t\t\t365 * year + // + days in prior years\n\t\t\t( floor(year / 4) - // + Julian Leap years\n\t\t\tfloor(year / 100) + // - century years\n\t\t\tfloor(year / 400))); // + Gregorian leap years\n};\n\n\n/*\n * See the footnote on page 384 of ``Calendrical Calculations, Part II:\n * Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.\n * Clamen, Software--Practice and Experience, Volume 23, Number 4\n * (April, 1993), pages 383-404 for an explanation.\n */\nexports.abs2greg = function(theDate) {\n// calculations copied from original JS code\n\n\tvar d0 = theDate - 1;\n\tvar n400 = floor(d0 / 146097);\n\tvar d1 = floor(d0 % 146097);\n\tvar n100 = floor(d1 / 36524);\n\tvar d2 = d1 % 36524;\n\tvar n4 = floor(d2 / 1461);\n\tvar d3 = d2 % 1461;\n\tvar n1 = floor(d3 / 365);\n\n\tvar day = ((d3 % 365) + 1);\n\tvar year = (400 * n400 + 100 * n100 + 4 * n4 + n1);\n\n\tif (4 == n100 || 4 == n1) {\n\t\treturn new Date(year, 11, 31);\n\t}\n\n\treturn new Date(new Date(++year, 0, day).setFullYear(year)); // new Date() is very smart\n};","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar c = require('./common'),\n\tgreg = require('./greg'),\n\tsuncalc = require('suncalc'),\n\tcities = require('./cities'),\n\tgematriya = require('gematriya');\n\nsuncalc.addTime(-16.1, 'alot_hashachar', 0);\nsuncalc.addTime(-11.5, 'misheyakir', 0);\nsuncalc.addTime(-10.2, 'misheyakir_machmir', 0);\nsuncalc.addTime(-8.5, 0, 'tzeit');\n\n// for minifying optimizations\nvar getFullYear = 'getFullYear',\n\tgetMonth = 'getMonth',\n\tgetDate = 'getDate',\n\tgetTime = 'getTime',\n\tabs = 'abs',\n\thour = 'hour',\n\tmonths = c.months,\n\tTISHREI = months.TISHREI,\n\tMONTH_CNT = c.MONTH_CNT,\n\tdaysInMonth = c.daysInMonth,\n\tdayOnOrBefore = c.dayOnOrBefore,\n\tprototype = HDate.prototype;\n\nfunction HDate(day, month, year) {\n\tvar me = this;\n\tswitch (arguments.length) {\n\t\tcase 0:\n\t\t\treturn new HDate(new Date());\n\t\tcase 1:\n\t\t\tif (typeof day == 'undefined') {\n\t\t\t\treturn new HDate();\n\t\t\t} else if (day instanceof Date) {\n\t\t\t\t// we were passed a Gregorian date, so convert it\n\t\t\t\tvar d = abs2hebrew(greg.greg2abs(day));\n\t\t\t\t/*if (d.sunset() < day) {\n\t\t\t\t\td = d.next();\n\t\t\t\t}*/\n\t\t\t\treturn d;\n\t\t\t} else if (day instanceof HDate) {\n\t\t\t\tvar d = new HDate(day[getDate](), day[getMonth](), day[getFullYear]());\n\t\t\t\td.il = day.il;\n\t\t\t\td.setLocation(d.lat, d.long);\n\t\t\t\treturn d;\n\t\t\t} else if (typeof day == 'string') {\n\t\t\t\tswitch (day.toLowerCase().trim()) {\n\t\t\t\t\tcase 'today':\n\t\t\t\t\t\treturn new HDate();\n\t\t\t\t\tcase 'yesterday':\n\t\t\t\t\t\treturn new HDate().prev();\n\t\t\t\t\tcase 'tomorrow':\n\t\t\t\t\t\treturn new HDate().next();\n\t\t\t\t}\n\t\t\t\tif (/\\s/.test(day)) {\n\t\t\t\t\tvar s = day.split(/\\s+/);\n\t\t\t\t\tif (s.length == 2) {\n\t\t\t\t\t\treturn new HDate(s[0], s[1]);\n\t\t\t\t\t} else if (s.length == 3) {\n\t\t\t\t\t\treturn new HDate(s[0], s[1], s[2]);\n\t\t\t\t\t} else if (s.length == 4) { // should only be if s[1] is Adar\n\t\t\t\t\t\tif (/i/i.test(s[2])) { // Using I[I] syntax\n\t\t\t\t\t\t\ts[2] = s[2].length;\n\t\t\t\t\t\t} // otherwise using 1|2 syntax\n\t\t\t\t\t\treturn new HDate(s[0], s[1] + s[2], s[3]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (typeof day == 'number') { // absolute date\n\t\t\t\treturn abs2hebrew(day);\n\t\t\t}\n\t\t\tthrow new TypeError('HDate called with bad argument');\n\t\tcase 2:\n\t\t\treturn new HDate(day, month, (new HDate)[getFullYear]());\n\t\tcase 3:\n\t\t\tme.day = me.month = 1;\n\t\t\tme.year = c.dayYearNum(year);\n\n\t\t\tme.setMonth(c.monthNum(month));\n\t\t\tme.setDate(c.dayYearNum(day));\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new TypeError('HDate called with bad arguments');\n\t}\n\n\treturn me.setLocation.apply(me, HDate.defaultLocation);\n}\n\nHDate.defaultLocation = [0, 0];\nObject.defineProperty(HDate, 'defaultCity', {\n\tenumerable: true,\n\tconfigurable: true,\n\n\tget: function() {\n\t\treturn cities.nearest(HDate.defaultLocation[0], HDate.defaultLocation[1]);\n\t},\n\tset: function(city) {\n\t\tHDate.defaultLocation = cities.getCity(city).slice(0, 2);\n\t}\n});\n\nfunction fix(date) {\n\tfixMonth(date);\n\tfixDate(date);\n}\n\nfunction fixDate(date) {\n\tif (date.day < 1) {\n\t\tif (date.month == TISHREI) {\n\t\t\tdate.year -= 1;\n\t\t}\n\t\tdate.day += daysInMonth(date.month, date.year);\n\t\tdate.month -= 1;\n\t\tfix(date);\n\t}\n\tif (date.day > daysInMonth(date.month, date.year)) {\n\t\tif (date.month == months.ELUL) {\n\t\t\tdate.year += 1;\n\t\t}\n\t\tdate.day -= daysInMonth(date.month, date.year);\n\t\tdate.month += 1;\n\t\tfix(date);\n\t}\n\tfixMonth(date);\n}\n\nfunction fixMonth(date) {\n\tif (date.month == months.ADAR_II && !date.isLeapYear()) {\n\t\tdate.month -= 1; // to Adar I\n\t\tfix(date);\n\t}\n\tif (date.month < 1) {\n\t\tdate.month += MONTH_CNT(date.year);\n\t\tdate.year -= 1;\n\t\tfix(date);\n\t}\n\tif (date.month > MONTH_CNT(date.year)) {\n\t\tdate.month -= MONTH_CNT(date.year);\n\t\tdate.year += 1;\n\t\tfix(date);\n\t}\n}\n\nprototype[getFullYear] = function() {\n\treturn this.year;\n};\n\nprototype.isLeapYear = function() {\n\treturn c.LEAP(this.year);\n};\n\nprototype[getMonth] = function() {\n\treturn this.month;\n};\n\nprototype.getTishreiMonth = function() {\n\tvar nummonths = MONTH_CNT(this[getFullYear]());\n\treturn (this[getMonth]() + nummonths - 6) % nummonths || nummonths;\n};\n\nprototype.daysInMonth = function() {\n\treturn daysInMonth(this[getMonth](), this[getFullYear]());\n};\n\nprototype[getDate] = function() {\n\treturn this.day;\n};\n\nprototype.getDay = function() {\n\treturn this.greg().getDay();\n};\n\nprototype.setFullYear = function(year) {\n\tthis.year = year;\n\tfix(this);\n\treturn this;\n};\n\nprototype.setMonth = function(month) {\n\tthis.month = c.monthNum(month);\n\tfix(this);\n\treturn this;\n};\n\nprototype.setTishreiMonth = function(month) {\n\treturn this.setMonth((month + 6) % MONTH_CNT(this[getFullYear]()) || 13);\n};\n\nprototype.setDate = function(date) {\n\tthis.day = date;\n\tfix(this);\n\treturn this;\n};\n\n/* convert hebrew date to absolute date */\n/* Absolute date of Hebrew DATE.\n The absolute date is the number of days elapsed since the (imaginary)\n Gregorian date Sunday, December 31, 1 BC. */\nfunction hebrew2abs(d) {\n\tvar m, tempabs = d[getDate](), year = d[getFullYear]();\n\n\tif (d[getMonth]() < TISHREI) {\n\t\tfor (m = TISHREI; m <= MONTH_CNT(year); m++) {\n\t\t\ttempabs += daysInMonth(m, year);\n\t\t}\n\n\t\tfor (m = months.NISAN; m < d[getMonth](); m++) {\n\t\t\ttempabs += daysInMonth(m, year);\n\t\t}\n\t} else {\n\t\tfor (m = TISHREI; m < d[getMonth](); m++) {\n\t\t\ttempabs += daysInMonth(m, year);\n\t\t}\n\t}\n\n\treturn c.hebElapsedDays(year) - 1373429 + tempabs;\n}\n\nfunction abs2hebrew(d) {\n\tvar mmap = [\n\t\tmonths.KISLEV, months.TEVET, months.SHVAT, months.ADAR_I, months.NISAN,\n\t\tmonths.IYYAR, months.SIVAN, months.TAMUZ, TISHREI, TISHREI, TISHREI, months.CHESHVAN\n\t], hebdate, gregdate, month, year;\n\n\tif (d >= 10555144) {\n\t\tthrow new RangeError(\"parameter to abs2hebrew \" + d + \" out of range\");\n\t}\n\n\tgregdate = greg.abs2greg(d);\n\thebdate = new HDate(1, TISHREI, (year = 3760 + gregdate[getFullYear]()));\n\n\twhile (d >= hebrew2abs(hebdate.setFullYear(year + 1))) {\n\t\tyear++;\n\t}\n\n\tif (year > 4634 && year < 10666) {\n\t\t// optimize search\n\t\tmonth = mmap[gregdate[getMonth]()];\n\t} else {\n\t\t// we're outside the usual range, so assume nothing about Hebrew/Gregorian calendar drift...\n\t\tmonth = TISHREI;\n\t}\n\n\twhile (d > hebrew2abs(hebdate = new HDate(daysInMonth(month, year), month, year))) {\n\t\tmonth = (month % MONTH_CNT(year)) + 1;\n\t}\n\n\treturn hebdate.setLocation.apply(hebdate.setDate(d - hebrew2abs(hebdate.setDate(1)) + 1), HDate.defaultLocation);\n}\n\nprototype.greg = function() {\n\treturn greg.abs2greg(hebrew2abs(this));\n};\n\nprototype.gregEve = function() {\n\treturn this.prev().sunset();\n};\n\nprototype[abs] = function() {\n\treturn hebrew2abs(this);\n};\n\nprototype.toString = function(o) {\n\treturn c.LANG([this[getDate](), null, gematriya(this[getDate]())], o) + ' ' +\n\t\tthis.getMonthName(o) + ' ' +\n\t\tc.LANG([this[getFullYear](), null, gematriya(this[getFullYear]())], o);\n};\n\nprototype.getMonthName = function(o) {\n\treturn c.LANG(c.monthNames[+this.isLeapYear()][this[getMonth]()], o);\n};\n\nprototype.setCity = function(city) {\n\treturn this.setLocation(cities.getCity(city));\n};\n\nprototype.setLocation = function(lat, lon) {\n\tif (typeof lat == 'object' && !Array.isArray(lat)) {\n\t\tlon = lat.long;\n\t\tlat = lat.lat;\n\t}\n\tif (Array.isArray(lat) && typeof lon == 'undefined') {\n\t\tlon = lat[0];\n\t\tlat = lat[1];\n\t}\n\tif (Array.isArray(lat)) {\n\t\tlat = (lat[0] * 60 + lat[1]) / 60;\n\t}\n\tif (Array.isArray(lon)) {\n\t\tlon = (lon[0] * 60 + lon[1]) / 60;\n\t}\n\tif (typeof lat != 'number') {\n\t\tthrow new TypeError('incorrect lat type passed to HDate.setLocation()');\n\t}\n\tif (typeof lon != 'number') {\n\t\tthrow new TypeError('incorrect long type passed to HDate.setLocation()');\n\t}\n\n\tthis.lat = lat;\n\tthis.long = lon;\n\n\tthis.il = cities.getCity(cities.nearest(lat, lon))[2];\n\n\treturn this;\n};\n\nfunction suntime(hdate) {\n\t// reset the date to midday before calling suncalc api\n\t// https://github.com/mourner/suncalc/issues/11\n\tvar date = hdate.greg();\n\treturn suncalc.getTimes(new Date(date.getFullYear(), date.getMonth(), date.getDate(), 12, 0, 0, 0, 0), hdate.lat, hdate.long);\n}\n\nprototype.sunrise = function() {\n\treturn suntime(this).sunrise;\n};\n\nprototype.sunset = function() {\n\treturn suntime(this).sunset;\n};\n\nprototype[hour] = function() {\n\treturn (this.sunset() - this.sunrise()) / 12; // ms in hour\n};\n\nprototype.hourMins = function() {\n\t// hour in ms / (1000 ms in s * 60 s in m) = mins in halachic hour\n\treturn this[hour]() / (1000 * 60);\n};\n\nprototype.nightHour = function() {\n\treturn (this.sunrise() - this.gregEve()) / 12; // ms in hour\n};\n\nprototype.nightHourMins = function() {\n\t// hour in ms / (1000 ms in s * 60 s in m) = mins in halachic hour\n\treturn this.nightHour() / (1000 * 60);\n};\n\nfunction hourOffset(hdate, hours) {\n\treturn new Date(hdate.sunrise()[getTime]() + (hdate[hour]() * hours));\n}\n\nvar zemanim = {\n\tchatzot: function(hdate) {\n\t\treturn hourOffset(hdate, 6);\n\t},\n\tchatzot_night: function(hdate) {\n\t\treturn new Date(hdate.sunrise()[getTime]() - (hdate.nightHour() * 6));\n\t},\n\talot_hashachar: function(hdate) {\n\t\treturn suntime(hdate).alot_hashachar;\n\t},\n\talot_hashacher: function(hdate) {\n\t\treturn suntime(hdate).alot_hashachar;\n\t},\n\tmisheyakir: function(hdate) {\n\t\treturn suntime(hdate).misheyakir;\n\t},\n\tmisheyakir_machmir: function(hdate) {\n\t\treturn suntime(hdate).misheyakir_machmir;\n\t},\n\tsof_zman_shma: function(hdate) { // Gra\n\t\treturn hourOffset(hdate, 3);\n\t},\n\tsof_zman_tfilla: function(hdate) { // Gra\n\t\treturn hourOffset(hdate, 4);\n\t},\n\tmincha_gedola: function(hdate) {\n\t\treturn hourOffset(hdate, 6.5);\n\t},\n\tmincha_ketana: function(hdate) {\n\t\treturn hourOffset(hdate, 9.5);\n\t},\n\tplag_hamincha: function(hdate) {\n\t\treturn hourOffset(hdate, 10.75);\n\t},\n\ttzeit: function(hdate) {\n\t\treturn suntime(hdate).tzeit;\n\t},\n\tneitz_hachama: function(hdate) {\n\t\treturn hdate.sunrise();\n\t},\n\tshkiah: function(hdate) {\n\t\treturn hdate.sunset();\n\t}\n};\n\nprototype.getZemanim = function() {\n\treturn c.map(zemanim, function(z){\n\t\treturn z(this);\n\t}, this);\n};\n\nHDate.addZeman = function(zeman, func) {\n\tzemanim[zeman] = func;\n};\n\nprototype.next = function() {\n\treturn abs2hebrew(this.abs() + 1).setLocation(this.lat, this.long);\n};\n\nprototype.prev = function() {\n\treturn abs2hebrew(this.abs() - 1).setLocation(this.lat, this.long);\n};\n\nprototype.isSameDate = function(other) {\n\tif (other instanceof HDate) {\n\t\tif (other[getFullYear]() == -1) {\n\t\t\tother = new HDate(other).setFullYear(this[getFullYear]());\n\t\t}\n\t\treturn this[abs]() == other[abs]();\n\t}\n\treturn false;\n};\n\nfunction onOrBefore(day, t, offset) {\n\treturn new HDate(dayOnOrBefore(day, t[abs]() + offset));\n}\n\nprototype.before = function(day) {\n\treturn onOrBefore(day, this, -1);\n};\n\nprototype.onOrBefore = function(day) {\n\treturn onOrBefore(day, this, 0);\n};\n\nprototype.nearest = function(day) {\n\treturn onOrBefore(day, this, 3);\n};\n\nprototype.onOrAfter = function(day) {\n\treturn onOrBefore(day, this, 6);\n};\n\nprototype.after = function(day) {\n\treturn onOrBefore(day, this, 7);\n};\n\nmodule.exports = HDate;\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar c = require('./common'),\n\tHDate = require('./hdate'),\n\tholidays = require('./holidays'),\n\tSedra = require('./sedra'),\n\tdafyomi = require('./dafyomi'),\n\tcities = require('./cities'),\n\tgreg = require('./greg'),\n\tEventEmitter = require('events').EventEmitter,\n\tgematriya = require('gematriya');\n\n// for minifying optimizations\nvar defProp = Object.defineProperty,\n\tTE = TypeError,\n\tfind = 'find',\n\tstrings = 'strings',\n\tgetYearObject = 'getYearObject',\n\tmap = 'map',\n\tgetDay = 'getDay',\n\tgetMonth = 'getMonth',\n\tgetFullYear = 'getFullYear',\n\tisLeapYear = 'isLeapYear',\n\tlength = 'length',\n\tnext = 'next',\n\tprev = 'prev',\n\tmonths = c.months,\n\tTISHREI = months.TISHREI,\n\tNISAN = months.NISAN,\n\tHebcalProto = Hebcal.prototype,\n\tMonthProto = Month.prototype,\n\tGregYearProto = GregYear.prototype,\n\tGregMonthProto = GregMonth.prototype,\n\tHDateProto = HDate.prototype;\n\nfunction getset(g, s) {\n\treturn {\n\t\tenumerable: true,\n\t\tconfigurable: true,\n\n\t\tget: g,\n\t\tset: s\n\t};\n}\n\nfunction extend(base, into) {\n\tfor (var i in into) {\n\t\tbase[i] = into[i];\n\t}\n\treturn base;\n}\n\n// Main Hebcal function\n\nfunction Hebcal(year, month) {\n\tvar me = this; // whenever this is done, it is for optimizations.\n\tif (!year) {\n\t\tyear = (new HDate())[getFullYear](); // this year;\n\t}\n\tif (typeof year !== 'number') {\n\t\tthrow new TE('year to Hebcal() is not a number');\n\t}\n\tme.year = year;\n\tif (month) {\n\t\tif (typeof month == 'string') {\n\t\t\tmonth = c.monthFromName(month);\n\t\t}\n\t\tif (typeof month == 'number') {\n\t\t\tmonth = [month];\n\t\t}\n\n\t\tif (Array.isArray(month)) {\n\t\t\tme.months = month[map](function(i){\n\t\t\t\tvar m = new Month(i, year);\n\t\t\t\tdefProp(m, '__year', {\n\t\t\t\t\tconfigurable: true,\n\t\t\t\t\twritable: true,\n\t\t\t\t\tvalue: me\n\t\t\t\t});\n\t\t\t\treturn m;\n\t\t\t});\n\n\t\t\tme.holidays = holidays.year(year);\n\t\t} else {\n\t\t\tthrow new TE('month to Hebcal is not a valid type');\n\t\t}\n\t} else {\n\t\treturn new Hebcal(year, c.range(1, c.MONTH_CNT(year)));\n\t}\n\n\tme[length] = c.daysInYear(year);\n\n\tdefProp(me, 'il', getset(function() {\n\t\treturn me[getMonth](1).il;\n\t}, function(il) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.il = il;\n\t\t});\n\t}));\n\n\tdefProp(me, 'lat', getset(function() {\n\t\treturn me[getMonth](1).lat;\n\t}, function(lat) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.lat = lat;\n\t\t});\n\t}));\n\tdefProp(me, 'long', getset(function() {\n\t\treturn me[getMonth](1).long;\n\t}, function(lon) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.long = lon;\n\t\t});\n\t}));\n}\n\nHebcalProto[isLeapYear] = HDateProto[isLeapYear];\n\nHebcalProto.setCity = function(city) {\n\tthis.months.forEach(function(m){\n\t\tm.setCity(city);\n\t});\n\treturn this;\n};\n\nHebcalProto.setLocation = function(lat, lon) {\n\tthis.months.forEach(function(m){\n\t\tm.setLocation(lat, lon);\n\t});\n\treturn this;\n};\n\nHebcalProto[next] = function() {\n\treturn new Hebcal(this.year + 1);\n};\n\nHebcalProto[prev] = function() {\n\treturn new Hebcal(this.year - 1);\n};\n\nHebcalProto[getMonth] = function(month) {\n\tvar months = this.months;\n\tmonth = c.monthNum(month);\n\tif (month > this.months[length]) {\n\t\treturn this[next]()[getMonth](month - months[length]);\n\t}\n\treturn months[month > 0 ? month - 1 : months[length] + month];\n};\n\nHebcalProto[getDay] = function(day) {\n\tvar me = this;\n\tif (day > me[length]) {\n\t\treturn null;\n\t}\n\tif (day < 0) {\n\t\treturn me[getDay](me[length] - day);\n\t}\n\tvar rosh = me[find](29, months.ELUL)[0].abs() + 1 - me[find](1, NISAN)[0].abs(); // number of days between Nisan and Tishrei\n\tif (day <= rosh) {\n\t\treturn me[getMonth](NISAN)[getDay](day);\n\t}\n\treturn me[getMonth](TISHREI)[getDay](day - rosh);\n};\n\nHebcalProto.days = function() {\n\treturn [].concat.apply([], this.months[map](function(m){\n\t\treturn m.days;\n\t}));\n};\n\nHebcalProto[map] = function() {\n\treturn [][map].apply(this.days(), arguments);\n};\n\nHebcalProto.filter = function() {\n\treturn [].filter.apply(this.days(), arguments);\n};\n\nHebcalProto.addHoliday = function(holiday) {\n\tif (!(holiday instanceof holidays.Event)) {\n\t\tthrow new TE('non-Event passed to addHoliday()');\n\t}\n\tthis.holidays.add(holiday);\n\treturn this;\n};\n\nHebcalProto.findParsha = function(parsha, o) {\n\tvar langs = o ? [o] : ['s','a','h']; // FIXME: abstract this away somewhere\n\tvar days = this.filter(function(d){\n\t\treturn Math.max.apply(null, langs.map(function(l){\n\t\t\treturn d.getSedra(l).indexOf(parsha) + 1;\n\t\t}));\n\t});\n\treturn days[days[length] - 1];\n};\nHebcalProto.findSedra = HebcalProto.findParsha;\n\nHebcalProto[find] = function find_f(day, month) {\n\tvar me = this;\n\tif (arguments[length] === 1) {\n\t\tif (typeof day == 'string') {\n\t\t\treturn find_f[strings].call(me, day);\n\t\t} else if (Array.isArray(day)) {\n\t\t\treturn [].concat.apply([], day[map](function(d){\n\t\t\t\treturn me[find][Array.isArray(d) ? 'apply' : 'call'](me, d);\n\t\t\t}));\n\t\t} else if (day instanceof HDate) {\n\t\t\treturn me[find](day.getDate(), day[getMonth]());\n\t\t} else if (day instanceof Date) {\n\t\t\treturn me[find](new HDate(day));\n\t\t}\n\t} else if (arguments[length] == 2) {\n\t\tif (month instanceof Month) {\n\t\t\treturn month[find](day);\n\t\t} else if (Array.isArray(month)) {\n\t\t\treturn [].concat.apply([], month[map](function(m){\n\t\t\t\treturn me[find](day, m);\n\t\t\t}));\n\t\t} else if (typeof month == 'string') {\n\t\t\treturn me[find](day, c.monthNum(month));\n\t\t} else if (typeof month == 'number') {\n\t\t\treturn me[find](day, me[getMonth](month));\n\t\t}\n\t}\n\treturn [];\n};\nHebcalProto[find][strings] = function strings(str) {\n\tvar split = str.split(/\\s+/), func = strings[str.replace(/\\s/g, '_').toLowerCase()];\n\tif (!split[length]) {\n\t\treturn [];\n\t} else if (func) {\n\t\treturn func.call(this);\n\t}\n\ttry {\n\t\treturn this[find](new HDate(str));\n\t} catch(e) {\n\t\treturn split[length] - 1 ? this[find].apply(this, split) : [];\n\t}\n};\nHebcalProto[find][strings].rosh_chodesh = function() {\n\treturn this[find]('Rosh Chodesh', c.range(1, this.months[length]));\n};\nHebcalProto[find][strings].holidays = function() {\n\treturn [].concat.apply([], this.holidays[map](function(h){\n\t\treturn this[find](h.date);\n\t}, this));\n};\nHebcalProto[find][strings].omer = function() {\n\treturn this[find](c.range(15+1, 15+49), NISAN);\n};\nHebcalProto[find][strings].today = function() {\n\treturn this[find](new HDate());\n};\nHebcalProto[find][strings].yesterday = function() {\n\treturn [this[find]('today')[0][prev]()];\n};\nHebcalProto[find][strings].tomorrow = function() {\n\treturn [this[find]('today')[0][next]()];\n};\nHebcalProto[find][strings].pesach = function() {\n\treturn this[find](c.range(15, 15+8-this.il), NISAN);\n};\nHebcalProto[find][strings].sukkot = function() {\n\treturn this[find](c.range(15, 15+9-this.il), TISHREI);\n};\nHebcalProto[find][strings].succot = HebcalProto[find][strings].succos = HebcalProto[find][strings].sukkos = HebcalProto[find][strings].sukkot;\nHebcalProto[find][strings].shavuot = function() {\n\treturn this[find](c.range(6, 7-this.il), months.SIVAN);\n};\nHebcalProto[find][strings].shavuos = HebcalProto[find][strings].shavuot;\nHebcalProto[find][strings].rosh_hashana = function() {\n\treturn this[find](c.range(1, 2), TISHREI);\n};\nHebcalProto[find][strings].rosh_hashanah = HebcalProto[find][strings].rosh_hashana;\n\n// Hebcal properties\n\nHebcal.addZeman = HDate.addZeman;\n\nHebcal.cities = cities;\n\nHebcal.range = c.range;\n\nHebcal.gematriya = gematriya;\n\nHebcal.holidays = c.filter(holidays, ['masks', 'Event']); // not year(), atzmaut()\n\nHebcal.parshiot = Sedra.parshiot;\n\nHebcal.LANGUAGE = c.LANG;\n\nHebcal[map] = c[map];\n\nHebcal.filter = c.filter;\n\ndefProp(Hebcal, 'defaultLocation', getset(function(){\n\treturn HDate.defaultLocation;\n}, function(loc){\n\tHebcal.events.emit('locationChange', HDate.defaultLocation);\n\tHDate.defaultLocation = loc;\n}));\ndefProp(Hebcal, 'defaultCity', getset(function(){\n\treturn HDate.defaultCity;\n}, function(city){\n\tHebcal.defaultLocation = cities.getCity(city).slice(0, 2); // call the event\n}));\n\ndefProp(Hebcal, 'candleLighting', getset(function(){\n\treturn holidays.Event.candleLighting;\n}, function(mins){\n\tholidays.Event.candleLighting = mins;\n}));\n\ndefProp(Hebcal, 'havdalah', getset(function(){\n\treturn holidays.Event.havdalah;\n}, function(mins){\n\tholidays.Event.havdalah = mins;\n}));\n\n// Months\n\nfunction Month(month, year) {\n\tvar me = this;\n\tmonth = c.monthNum(month);\n\tif (typeof month != 'number') {\n\t\tthrow new TE('month to Hebcal.Month is not a valid type');\n\t}\n\tif (typeof year != 'number') {\n\t\tthrow new TE('year to Hebcal.Month is not a number');\n\t}\n\tme.month = month;\n\tme.year = year;\n\n\tme.days = c.range(1, c.daysInMonth(month, year))[map](function(i){\n\t\tvar d = new HDate(i, month, year);\n\t\tdefProp(d, '__month', {\n\t\t\tconfigurable: true,\n\t\t\twritable: true,\n\t\t\tvalue: me\n\t\t});\n\t\treturn d;\n\t});\n\n\tme[length] = me.days[length];\n\n\tme.holidays = c.filter(holidays.year(year), function(h){\n\t\treturn h[0].date[getMonth]() == month;\n\t});\n\n\tdefProp(me, 'il', getset(function(){\n\t\treturn me[getDay](1).il;\n\t}, function(il){\n\t\tme.days.forEach(function(d){\n\t\t\td.il = il;\n\t\t});\n\t}));\n\n\tdefProp(me, 'lat', getset(function(){\n\t\treturn me[getDay](1).lat;\n\t}, function(lat){\n\t\tme.days.forEach(function(d){\n\t\t\td.lat = lat;\n\t\t});\n\t}));\n\tdefProp(me, 'long', getset(function(){\n\t\treturn me[getDay](1).long;\n\t}, function(lon){\n\t\tme.days.forEach(function(d){\n\t\t\td.long = lon;\n\t\t});\n\t}));\n\n\treturn me;\n};\n\nHebcal.Month = Month;\n\nMonthProto[isLeapYear] = HDateProto[isLeapYear];\n\nMonthProto[prev] = function() {\n\tvar me = this, year = me[getYearObject]();\n\tif (me.month === 1) { // Nisan\n\t\treturn year[getMonth](-1);\n\t} else if (me.month === TISHREI) {\n\t\treturn year[prev]()[getMonth](months.ELUL);\n\t} else {\n\t\treturn year[getMonth](me.month - 1);\n\t}\n};\n\nMonthProto[next] = function() {\n\tvar me = this, year = me[getYearObject]();\n\tif (me.month === c.MONTH_CNT(me.year)) { // Adar\n\t\treturn year[getMonth](1);\n\t} else if (me.month === months.ELUL) {\n\t\treturn year[next]()[getMonth](TISHREI);\n\t} else {\n\t\treturn year[getMonth](me.month + 1);\n\t}\n};\n\nMonthProto[getDay] = function(day) {\n\tvar days = this.days;\n\tday = c.dayYearNum(day);\n\tif (day > days[length]) {\n\t\treturn this[next]()[getDay](day - days[length]);\n\t}\n\treturn days[day > 0 ? day - 1 : days[length] + day];\n};\n\nMonthProto[getYearObject] = function() {\n\treturn this.__year || new Hebcal(this.year);\n};\n\nMonthProto.getName = function(o) {\n\treturn c.LANG(c.monthNames[+this[isLeapYear]()][this.month], o);\n};\n\nMonthProto.rosh_chodesh = function() {\n\tvar prevMonth = this[prev]();\n\treturn prevMonth[length] == 30 ? [prevMonth[getDay](-1), this[getDay](1)] : [this[getDay](1)];\n};\n\nMonthProto.setCity = function(city) {\n\tthis.days.forEach(function(d){\n\t\td.setCity(city);\n\t});\n\treturn this;\n};\n\nMonthProto.setLocation = function(lat, lon) {\n\tthis.days.forEach(function(d){\n\t\td.setLocation(lat, lon);\n\t});\n\treturn this;\n};\n\nMonthProto[map] = function() {\n\treturn [][map].apply(this.days, arguments);\n};\n\nMonthProto.molad = function() {\n\tvar retMolad = {}, year, m_elapsed, p_elapsed, h_elapsed, parts, m_adj, toInt = parseInt;\n\n m_adj = this.month - 7;\n\tyear = this.year - 1;\n if (m_adj < 0) {\n\t\tm_adj += c.MONTH_CNT(year + 1);\n\t}\n\n m_elapsed = toInt(m_adj +\n 235 * (year / 19)/* +\n 12 * (year % 19) +\n (((year % 19) * 7) + 1) / 19*/);\n\n p_elapsed = toInt(204 + (793 * (m_elapsed % 1080)));\n\n h_elapsed = toInt(5 + (12 * m_elapsed) +\n 793 * (m_elapsed / 1080)/* +\n p_elapsed / 1080*/ -\n 6);\n\n parts = toInt((p_elapsed % 1080) + 1080 * (h_elapsed % 24));\n\n retMolad.doy = new HDate(toInt(1 + 29 * m_elapsed + h_elapsed / 24)).getDay();\n retMolad.hour = Math.round(h_elapsed % 24);\n var chalakim = toInt(parts % 1080);\n retMolad.minutes = toInt(chalakim / 18);\n retMolad.chalakim = chalakim % 18;\n var day = this.prev().find.strings.shabbat_mevarchim._calc.call(this)[0].onOrAfter(retMolad.doy).greg();\n day.setHours(retMolad.hour);\n day.setMinutes(retMolad.minutes);\n day.setSeconds(retMolad.chalakim * 3.33);\n retMolad.day = day;\n\n return retMolad;\n};\n\nMonthProto[find] = function find_f(day) {\n\tvar me = this;\n\tif (typeof day == 'number') {\n\t\treturn [me[getDay](day)];\n\t} else if (typeof day == 'string') {\n\t\treturn find_f[strings].call(me, day);\n\t} else if (Array.isArray(day)) {\n\t\treturn [].concat.apply([], day[map](function(d){\n\t\t\treturn me[find](d);\n\t\t}));\n\t} else if (day instanceof HDate && day[getFullYear]() == me.year && day[getMonth]() == me.month) {\n\t\treturn me[find](day.getDate());\n\t} else if (day instanceof Date) {\n\t\treturn me[find](new HDate(day));\n\t}\n\treturn [];\n};\nMonthProto[find][strings] = function strings(str) {\n\tvar func = strings[str.replace(/\\s/g, '_').toLowerCase()];\n\tif (func) {\n\t\treturn func.call(this);\n\t}\n\ttry {\n\t\treturn this[find](new HDate(str));\n\t} catch(e) {\n\t\tvar num = c.dayYearNum(str);\n\t\treturn num ? this[find](num) : [];\n\t}\n};\nMonthProto[find][strings].rosh_chodesh = function() {\n\treturn this.rosh_chodesh();\n};\nMonthProto[find][strings].shabbat_mevarchim = function sm() {\n\treturn this.month === months.ELUL ? [] : // No birchat hachodesh in Elul\n\t\tsm._calc.call(this);\n};\nMonthProto[find][strings].shabbat_mevarchim._calc = function() {\n\treturn this[find](this[getDay](29).onOrBefore(c.days.SAT));\n};\nMonthProto[find][strings].shabbos_mevarchim = MonthProto[find][strings].shabbos_mevorchim = MonthProto[find][strings].shabbat_mevarchim;\n\n// HDate days\n\nHebcal.HDate = HDate;\n\nHDateProto.getMonthObject = function() {\n\treturn this.__month || new Month(this[getMonth](), this[getFullYear]());\n};\n\nHDateProto[getYearObject] = function() {\n\treturn this.getMonthObject()[getYearObject]();\n};\n\n(function(){\n\tvar orig = {}; // slightly less overhead when using unaffiliated HDate()s\n\t[prev, next].forEach(function(func){\n\t\torig[func] = HDateProto[func];\n\t\tHDateProto[func] = function() {\n\t\t\tvar day = orig[func].call(this);\n\t\t\tif (!this.__month) {\n\t\t\t\treturn day;\n\t\t\t}\n\t\t\treturn this[getYearObject]()[find](day)[0];\n\t\t};\n\t});\n})();\n\nHDateProto.getSedra = (function(){\n\tvar __cache = {};\n\n\treturn function(o) {\n\t\tvar sedraYear = __cache[this[getFullYear]()];\n\t\tif (!sedraYear || (sedraYear.il != this.il)) {\n\t\t\tsedraYear = __cache[this[getFullYear]()] = new Sedra(this[getFullYear](), this.il);\n\t\t}\n\t\treturn sedraYear.get(this)[map](function(p){\n\t\t\treturn c.LANG(p, o);\n\t\t});\n\t}\n})();\nHDateProto.getParsha = HDateProto.getSedra;\n\nHDateProto.holidays = function(all) {\n\tvar me = this, days = me[getYearObject]().holidays[me];\n\treturn days ? days.filter(function(h){\n\t\treturn all ? true : !h.routine() && h.is(me);\n\t})[map](function(h){\n\t\th.date.setLocation(me);\n\t\treturn h;\n\t}) : [];\n};\n\n['candleLighting', 'havdalah'].forEach(function(prop){\n\tHDateProto[prop] = function(){\n\t\tvar me = this, hd = me.holidays(true).filter(function(h){\n\t\t\treturn h.is(me);\n\t\t});\n\t\tif (hd.length) {\n\t\t\thd = c.filter(hd.map(function(h){\n\t\t\t\treturn h[prop]();\n\t\t\t}), true);\n\t\t}\n\t\treturn hd.length ? new Date(Math.max.apply(null, hd)) : null;\n\t};\n});\n\nHDateProto.omer = function() {\n\tvar me = this, greg = me.greg().getTime(), year = me[getFullYear]();\n\tif (greg > new HDate(15, NISAN, year).greg().getTime() &&\n\t\tgreg < new HDate( 6, months.SIVAN, year).greg().getTime()) {\n\t\treturn me.abs() - new HDate(16, NISAN, year).abs() + 1;\n\t}\n\treturn 0;\n};\n\nHDateProto.dafyomi = function(o) {\n\treturn dafyomi.dafname(dafyomi.dafyomi(this.greg()), o);\n};\n\nHDateProto.tachanun = (function() {\n\tvar NONE = tachanun.NONE = 0,\n\t\tMINCHA = tachanun.MINCHA = 1,\n\t\tSHACHARIT = tachanun.SHACHARIT = 2,\n\t\tALL_CONGS = tachanun.ALL_CONGS = 4;\n\n\tvar __cache = {\n\t\tall: {},\n\t\tsome: {},\n\t\tyes_prev: {},\n\t\til: {}\n\t};\n\n\tfunction tachanun() {\n\t\tvar checkNext = !arguments[0], me = this;\n\n\t\tvar year = me[getYearObject](), y = year.year;\n\n\t\tfunction mapAbs(arr) {\n\t\t\treturn arr[map](function(d){\n\t\t\t\treturn d.abs();\n\t\t\t});\n\t\t}\n\n\t\tvar all, some, yes_prev;\n\t\tif (__cache.il[y] === me.il) {\n\t\t\tall = __cache.all[y];\n\t\t\tsome = __cache.some[y];\n\t\t\tyes_prev = __cache.yes_prev[y];\n\t\t} else {\n\t\t\tall = __cache.all[y] = mapAbs(year[find]('Rosh Chodesh').concat(\n\t\t\t\tyear[find](c.range(1, c.daysInMonth(NISAN, y)), NISAN), // all of Nisan\n\t\t\t\tyear[find](15 + 33, NISAN), // Lag Baomer\n\t\t\t\tyear[find](c.range(1, 8 - me.il), months.SIVAN), // Rosh Chodesh Sivan thru Isru Chag\n\t\t\t\tyear[find]([9, 15], months.AV), // Tisha B'av and Tu B'av\n\t\t\t\tyear[find](-1, months.ELUL), // Erev Rosh Hashanah\n\t\t\t\tyear[find]([1, 2], TISHREI), // Rosh Hashanah\n\t\t\t\tyear[find](c.range(9, 24 - me.il), TISHREI), // Erev Yom Kippur thru Isru Chag\n\t\t\t\tyear[find](c.range(25, 33), months.KISLEV), // Chanukah\n\t\t\t\tyear[find](15, months.SHVAT), // Tu B'shvat\n\t\t\t\tyear[find]([14, 15], year[isLeapYear]() ? [months.ADAR_I, months.ADAR_II] : months.ADAR_I) // Purim/Shushan Purim + Katan\n\t\t\t));\n\t\t\tsome = __cache.some[y] = mapAbs([].concat( // Don't care if it overlaps days in all, because all takes precedence\n\t\t\t\tyear[find](c.range(1, 13), months.SIVAN), // Until 14 Sivan\n\t\t\t\tyear[find](c.range(20, 31), TISHREI), // Until after Rosh Chodesh Cheshvan\n\t\t\t\tyear[find](14, months.IYYAR), // Pesach Sheini\n\t\t\t\tholidays.atzmaut(y)[1].date || [], // Yom HaAtzma'ut, which changes based on day of week\n\t\t\t\ty >= 5727 ? year[find](29, months.IYYAR) : [] // Yom Yerushalayim\n\t\t\t));\n\t\t\tyes_prev = __cache.yes_prev[y] = mapAbs([].concat( // tachanun is said on the previous day at mincha\n\t\t\t\tyear[find](-1, months.ELUL), // Erev Rosh Hashanah\n\t\t\t\tyear[find](9, months.TISHREI), // Erev Yom Kippur\n\t\t\t\tyear[find](14, months.IYYAR) // Pesach Sheini\n\t\t\t));\n\t\t\t__cache.il[y] = me.il;\n\t\t}\n\n\t\tall = all.indexOf(me.abs()) > -1;\n\t\tsome = some.indexOf(me.abs()) > -1;\n\t\tyes_prev = yes_prev.indexOf(me.abs()+1) > -1;\n\n\t\tif (all) {\n\t\t\treturn NONE;\n\t\t}\n\t\tvar ret = (!some && ALL_CONGS) | (me[getDay]() != 6 && SHACHARIT);\n\t\tif (checkNext && !yes_prev) {\n\t\t\tret |= ((me[next]().tachanun(true) & SHACHARIT) && MINCHA);\n\t\t} else {\n\t\t\tret |= (me[getDay]() != 5 && MINCHA);\n\t\t}\n\t\treturn ret == ALL_CONGS ? NONE : ret;\n\t}\n\treturn tachanun;\n})();\n\nHDateProto.hallel = (function() {\n\tvar NONE = hallel.NONE = 0,\n\t\tHALF = hallel.HALF = 1,\n\t\tWHOLE = hallel.WHOLE = 2;\n\n\tvar __cache = {\n\t\twhole: {},\n\t\thalf: {},\n\t\til: {}\n\t};\n\n\tfunction hallel() {\n\t\tvar me = this, year = me[getYearObject](), y = year.year;\n\n\t\tvar whole = __cache.il[y] == me.il && __cache.whole[y] || (__cache.whole[y] = [].concat(\n\t\t\tyear[find](c.range(25, 33), months.KISLEV), // Chanukah\n\t\t\tyear[find]([15, me.il ? null : 16], NISAN), // First day(s) of Pesach\n\t\t\tyear[find]('Shavuot'),\n\t\t\tyear[find]('Sukkot'),\n\t\t\tholidays.atzmaut(y)[1].date || [], // Yom HaAtzma'ut, which changes based on day of week\n\t\t\ty >= 5727 ? year[find](29, months.IYYAR) : [] // Yom Yerushalayim\n\t\t)[map](function(d){\n\t\t\treturn d.abs();\n\t\t}));\n\t\tvar half = __cache.il[y] == me.il && __cache.half[y] || (__cache.half[y] = [].concat(\n\t\t\tyear[find]('Rosh Chodesh').filter(function(rc){return rc[getMonth]() != TISHREI}), // Rosh Chodesh, but not Rosh Hashanah\n\t\t\tyear[find](c.range(17 - me.il, 23 - me.il), NISAN) // Last six days of Pesach\n\t\t)[map](function(d){\n\t\t\treturn d.abs();\n\t\t}));\n\t\t__cache.il[y] = me.il;\n\n\t\treturn (whole.indexOf(me.abs()) > -1 && WHOLE) || (half.indexOf(me.abs()) > -1 && HALF) || NONE;\n\t}\n\treturn hallel;\n})();\n\n// Events\n\n(function(events){\n\tvar refreshInterval, refresh, today = new HDate();\n\n\tdefProp(events, 'refreshInterval', getset(function(){\n\t\treturn refreshInterval;\n\t}, function(ms){\n\t\tif (refresh) {\n\t\t\trefresh = clearInterval(refresh);\n\t\t}\n\t\trefreshInterval = ms;\n\t\tif (ms) {\n\t\t\trefresh = setInterval(checkTimes, ms);\n\t\t\tif (refresh.unref) {\n\t\t\t\trefresh.unref(); // don't keep the process open\n\t\t\t}\n\t\t}\n\t}));\n\n\tevents.beforeZeman = 1000 * 60 * 10; // 10 minutes\n\n\tfunction checkTimes() {\n\t\tvar now = new HDate();\n\n\t\tif (!today.isSameDate(now)) {\n\t\t\tevents.emit('dayChange');\n\t\t\ttoday = now;\n\t\t}\n\n\t\tfunction close(obj, compare) {\n\t\t\treturn c.filter(c[map](obj, function(time){\n\t\t\t\treturn time - nowGreg;\n\t\t\t}), function(time) {\n\t\t\t\treturn time > 0 && time - compare < 0;\n\t\t\t});\n\t\t}\n\n\t\tvar nowGreg = new Date(),\n\t\t\talmostTime = close(now.getZemanim(), events.beforeZeman),\n\t\t\tcustomTimes = close(events.customs, events.refreshInterval);\n\n\t\tfor (var zeman in almostTime) {\n\t\t\tevents.emit('almostZeman', zeman, almostTime[zeman]);\n\t\t\tif (almostTime[zeman] < events.refreshInterval) {\n\t\t\t\tevents.emit('atZeman', zeman);\n\t\t\t}\n\t\t}\n\t\tfor (var custom in customTimes) {\n\t\t\tevents.emit('custom', custom);\n\t\t}\n\t}\n\tcheckTimes();\n\n\tevents.refreshInterval = 1000 * 60 * 5; // 5 minutes\n\t// set the interval\n\n\tevents.customs = {};\n})(Hebcal.events = new EventEmitter());\n\n// Gregorian years\n\nfunction GregYear(year, month) {\n\tvar me = this;\n\tif (!year) {\n\t\tyear = (new Date)[getFullYear]();\n\t}\n\tif (typeof year === 'string') {\n\t\tvar d = new Date(year);\n\t\tmonth = year.indexOf(' ') + 1 || year.indexOf('-') + 1 || year.indexOf('/') + 1 ? d[getMonth]() + 1 : c.range(1, 12);\n\t\t// Check if a month was passed in the string. Can't just check for default January, because a real January might have been passed.\n\t\treturn new GregYear(d[getFullYear](), month);\n\t}\n\tif (typeof year !== 'number') {\n\t\tthrow new TE('year to Hebcal.GregYear() is not a number');\n\t}\n\tme.year = year;\n\n\tif (month) {\n\t\tif (typeof month === 'string') { // month name\n\t\t\tmonth = greg.lookupMonthName(month);\n\t\t}\n\t\tif (typeof month === 'number') {\n\t\t\tmonth = [month];\n\t\t}\n\n\t\tif (Array.isArray(month)) {\n\t\t\tme.months = month[map](function(i){\n\t\t\t\tvar m = new GregMonth(i, year);\n\t\t\t\tdefProp(m, '__year', {\n\t\t\t\t\tconfigurable: true,\n\t\t\t\t\twritable: true,\n\t\t\t\t\tvalue: me\n\t\t\t\t});\n\t\t\t\treturn m;\n\t\t\t});\n\t\t} else {\n\t\t\tthrow new TE('month to Hebcal.GregYear() is not a valid type');\n\t\t}\n\t} else {\n\t\treturn new GregYear(year, c.range(1, 12));\n\t}\n\n\tme.hebyears = [].concat.apply([], me.months[map](function(m){\n\t\treturn m.hebmonths[map](function(hm){\n\t\t\treturn hm.year;\n\t\t});\n\t})).filter(function(val, i, arr){\n\t\treturn arr.indexOf(val) === i; // keep unique values only\n\t});\n\n\tme.holidays = c.filter(holidays.year(me.hebyears[0]), function(h){\n\t\treturn h[0].date.greg()[getFullYear]() === year && me.months.filter(function(m){ // don't keep ones that are out of bounds\n\t\t\treturn m.month === h[0].date.greg()[getMonth]() + 1;\n\t\t})[length];\n\t});\n\tif (me.hebyears[1]) {\n\t\textend(me.holidays, c.filter(holidays.year(me.hebyears[1]), function(h){\n\t\t\treturn h[0].date.greg()[getFullYear]() === year && me.months.filter(function(m){ // don't keep ones that are out of bounds\n\t\t\t\treturn m.month === h[0].date.greg()[getMonth]() + 1;\n\t\t\t})[length];\n\t\t}));\n\t}\n\n\tme[length] = 365 + greg.LEAP(year);\n\n\tdefProp(me, 'il', getset(function() {\n\t\treturn me[getMonth](1).il;\n\t}, function(il) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.il = il;\n\t\t});\n\t}));\n\n\tdefProp(me, 'lat', getset(function() {\n\t\treturn me[getMonth](1).lat;\n\t}, function(lat) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.lat = lat;\n\t\t});\n\t}));\n\tdefProp(me, 'long', getset(function() {\n\t\treturn me[getMonth](1).long;\n\t}, function(lon) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.long = lon;\n\t\t});\n\t}));\n\n\treturn me;\n};\n\nHebcal.GregYear = GregYear;\n\nGregYearProto[isLeapYear] = function() {\n\treturn this[length] == 366;\n};\n\nGregYearProto.setCity = HebcalProto.setCity;\nGregYearProto.setLocation = HebcalProto.setLocation;\n\nGregYearProto[next] = function() {\n\treturn new GregYear(this.year + 1);\n};\n\nGregYearProto[prev] = function() {\n\treturn new GregYear(this.year - 1);\n};\n\nGregYearProto[getMonth] = function(month) {\n\tvar months = this.months\n\tmonth = typeof month == 'number' ? month : greg.lookupMonthNum(month);\n\tif (month > months[length]) {\n\t\treturn this[next]()[getMonth](month - months[length]);\n\t}\n\treturn months[month > 0 ? month - 1 : months[length] + month];\n};\n\nextend(GregYearProto, {\n\tdays: HebcalProto.days,\n\tmap: HebcalProto[map],\n\tfilter: HebcalProto.filter,\n\taddHoliday: HebcalProto.addHoliday,\n});\n\n/*GregYearProto.days = HebcalProto.days;\nGregYearProto[map] = HebcalProto[map];\nGregYearProto.filter = HebcalProto.filter;\n\nGregYearProto.addHoliday = HebcalProto.addHoliday;*/\n\nfunction GregMonth(month, year) {\n\tvar me = this;\n\tif (typeof month == 'string') {\n\t\tmonth = greg.lookupMonthNum(month);\n\t}\n\tif (typeof month != 'number') {\n\t\tthrow new TE('month to Hebcal.GregMonth is not a valid type');\n\t}\n\tif (typeof year != 'number') {\n\t\tthrow new TE('year to Hebcal.GregMonth is not a number');\n\t}\n\n\tme.year = year;\n\tme.month = month;\n\n\tme.days = c.range(1, greg.daysInMonth(month, year))[map](function(i){\n\t\tvar d = new HDate(new Date(year, month - 1, i));\n\t\tdefProp(d, '__gregmonth', {\n\t\t\tconfigurable: true,\n\t\t\twritable: true,\n\t\t\tvalue: me\n\t\t});\n\t\treturn d;\n\t});\n\n\tme[length] = me.days[length];\n\n\tme.hebmonths = [\n\t\t{month: me[getDay]( 1)[getMonth](), year: me[getDay]( 1)[getFullYear]()},\n\t\t{month: me[getDay](-1)[getMonth](), year: me[getDay](-1)[getFullYear]()}\n\t].filter(function(val, i, arr){\n\t\treturn i === 0 || val.month != arr[0].month;\n\t});\n\n\tdefProp(me, 'il', getset(function(){\n\t\treturn me[getDay](1).il;\n\t}, function(il){\n\t\tme.days.forEach(function(d){\n\t\t\td.il = il;\n\t\t});\n\t}));\n\n\tdefProp(me, 'lat', getset(function(){\n\t\treturn me[getDay](1).lat;\n\t}, function(lat){\n\t\tme.days.forEach(function(d){\n\t\t\td.lat = lat;\n\t\t});\n\t}));\n\tdefProp(me, 'long', getset(function(){\n\t\treturn me[getDay](1).long;\n\t}, function(lon){\n\t\tme.days.forEach(function(d){\n\t\t\td.long = lon;\n\t\t});\n\t}));\n\n\treturn me;\n};\n\nHebcal.GregMonth = GregMonth;\n\nGregMonthProto[isLeapYear] = function() {\n\treturn greg.LEAP(this.year);\n};\n\nGregMonthProto[prev] = function() {\n\tif (this.month === 1) {\n\t\treturn this[getYearObject]()[prev]()[getMonth](-1);\n\t} else {\n\t\treturn this[getYearObject]()[getMonth](this.month - 1);\n\t}\n};\n\nGregMonthProto[next] = function() {\n\treturn this[getYearObject]()[getMonth](this.month + 1);\n};\n\nGregMonthProto[getDay] = function(day) {\n\tif (day > this.days[length]) {\n\t\treturn this[next]()[getDay](day - this.days[length]);\n\t}\n\treturn this.days[day > 0 ? day - 1 : this.days[length] + day];\n};\n\nGregMonthProto[getYearObject] = function() {\n\treturn this.__year || new GregYear(this.year);\n};\n\nGregMonthProto.getName = function() {\n\treturn greg.monthNames[this.month];\n};\n\nGregMonthProto.setCity = MonthProto.setCity;\nGregMonthProto.setLocation = MonthProto.setLocation;\n\nGregMonthProto[map] = MonthProto[map];\n\nHDateProto.getGregMonthObject = function() {\n\treturn this.__gregmonth || new GregMonth(this.greg()[getMonth]() + 1, this.greg()[getFullYear]());\n};\n\nHDateProto.getGregYearObject = function() {\n\treturn this.getGregMonthObject()[getYearObject]();\n};\n\nmodule.exports = Hebcal;\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar c = require('./common'),\n\tHDate = require('./hdate'),\n\tgematriya = require('gematriya');\n\nvar __cache = {};\n\n// for byte optimizations\n\nvar dayOnOrBefore = c.dayOnOrBefore,\n\tmonths = c.months,\n\tdays = c.days,\n\tTISHREI = months.TISHREI,\n\tKISLEV = months.KISLEV,\n\tNISAN = months.NISAN,\n\tSAT = days.SAT,\n\tgetDay = 'getDay',\n\tabs = 'abs',\n\tShabbat = 'Shabbat',\n\tShabbos = 'Shabbos';\n\nfunction Chanukah(day) {\n\treturn ['Chanukah: Candle ' + day, 0, 'חנוכה: נר ' + gematriya(day)];\n}\n\nfunction CHM(desc) {\n\treturn [desc[0] + ' (CH\"M)', desc[1] ? desc[1] + ' (CH\"M)' : desc[1], desc[2] ? desc[2] + ' )חה\"ם(' : desc[2]];\n}\n\nfunction Sukkot(day) {\n\treturn ['Sukkot: ' + day, 'Succos: ' + day, 'סוכות יום ' + gematriya(day)];\n}\n\nfunction Pesach(day) {\n\treturn ['Pesach: ' + day, 0, 'פסח יום ' + gematriya(day)];\n}\n\nvar USER_EVENT = 1,\n\tLIGHT_CANDLES = 2,\n\tYOM_TOV_ENDS = 4,\n\tCHUL_ONLY = 8, // chutz l'aretz (Diaspora)\n\tIL_ONLY = 16, // b'aretz (Israel)\n\tLIGHT_CANDLES_TZEIS = 32;\n\nexports.masks = {\n\tUSER_EVENT : USER_EVENT,\n\tLIGHT_CANDLES : LIGHT_CANDLES,\n\tYOM_TOV_ENDS : YOM_TOV_ENDS,\n\tCHUL_ONLY : CHUL_ONLY,\n\tIL_ONLY : IL_ONLY,\n\tLIGHT_CANDLES_TZEIS: LIGHT_CANDLES_TZEIS\n};\n\nfunction Event(date, desc, mask) {\n\tvar me = this;\n\tme.date = new HDate(date);\n\tme.desc = typeof desc != 'object' ? [desc] : desc;\n\n\tme.USER_EVENT = !!( mask & USER_EVENT );\n\tme.LIGHT_CANDLES = !!( mask & LIGHT_CANDLES );\n\tme.YOM_TOV_ENDS = !!( mask & YOM_TOV_ENDS );\n\tme.CHUL_ONLY = !!( mask & CHUL_ONLY );\n\tme.IL_ONLY = !!( mask & IL_ONLY );\n\tme.LIGHT_CANDLES_TZEIS = !!( mask & LIGHT_CANDLES_TZEIS );\n}\n\nEvent.prototype.is = function(date, il) {\n\tdate = new HDate(date), myDate = this.date;\n\tif (arguments.length < 2) {\n\t\t//il = Event.isIL;\n\t\til = date.il;\n\t}\n\tif (date.getDate() != myDate.getDate() || date.getMonth() != myDate.getMonth()) {\n\t\treturn false;\n\t}\n\tif (date.getFullYear() != myDate.getFullYear()) {\n\t\treturn false;\n\t}\n\tif (il && this.CHUL_ONLY || !il && this.IL_ONLY) {\n\t\treturn false;\n\t}\n\treturn true;\n};\n\nEvent.prototype.masks = function() {\n\tvar me = this;\n\treturn (me.USER_EVENT && USER_EVENT) |\n\t\t (me.LIGHT_CANDLES && LIGHT_CANDLES) |\n\t\t (me.YOM_TOV_ENDS && YOM_TOV_ENDS) |\n\t\t (me.CHUL_ONLY && CHUL_ONLY) |\n\t\t (me.IL_ONLY && IL_ONLY) |\n\t\t (me.LIGHT_CANDLES_TZEIS && LIGHT_CANDLES_TZEIS);\n};\n\nEvent.prototype.getDesc = function(o) {\n\treturn c.LANG(this.desc, o);\n};\n\nEvent.prototype.candleLighting = function() {\n\tvar date = this.date;\n\tif (this.LIGHT_CANDLES) {\n\t\treturn new Date(date.sunset() - (Event.candleLighting * 60 * 1000));\n\t} else if (this.LIGHT_CANDLES_TZEIS) {\n\t\treturn date.getZemanim().tzeit;\n\t}\n\treturn null;\n};\n\nEvent.prototype.havdalah = function() {\n\tif (this.YOM_TOV_ENDS) {\n\t\treturn new Date(this.date.sunset().getTime() + (Event.havdalah * 60 * 1000));\n\t}\n\treturn null;\n};\n\nEvent.prototype.routine = (function(){\n\tfunction routine(){\n\t\treturn !!~routine.names.indexOf(this.getDesc('s'));\n\t}\n\troutine.names = [Shabbat, 'Erev ' + Shabbat];\n\treturn routine;\n})();\n\nEvent.isIL = false;\n\nEvent.candleLighting = 18;\n\nEvent.havdalah = 42;\n\nexports.Event = Event;\n\nexports.year = function(year) {\n\tif (__cache[year]) {\n\t\treturn __cache[year];\n\t}\n\n\tvar\tRH = new HDate(1, TISHREI, year),\n\t\tpesach = new HDate(15, NISAN, year),\n\t\ttmpDate;\n\n\tvar h = {};\n\n\tfunction add(ev) {\n\t\tif (Array.isArray(ev)) {\n\t\t\tev.forEach(function(e){\n\t\t\t\tadd(e);\n\t\t\t});\n\t\t} else {\n\t\t\tif (h[ev.date]) {\n\t\t\t\th[ev.date].push(ev);\n\t\t\t} else {\n\t\t\t\th[ev.date] = [ev];\n\t\t\t}\n\t\t}\n\t}\n\n\tObject.defineProperty(h, 'add', {value: add});\n\n\tadd([ // standard holidays that don't shift based on year\n\t\tnew Event(\n\t\t\tRH,\n\t\t\t['Rosh Hashana 1', 0, 'ראש השנה א\\''],\n\t\t\tLIGHT_CANDLES_TZEIS\n\t\t), new Event(\n\t\t\tnew HDate(2, TISHREI, year),\n\t\t\t['Rosh Hashana 2', 0, 'ראש השנה ב\\''],\n\t\t\tYOM_TOV_ENDS\n\t\t), new Event(\n\t\t\tnew HDate(3 + (RH[getDay]() == days.THU), TISHREI, year), // push off to SUN if RH is THU\n\t\t\t['Tzom Gedaliah', 0, 'צום גדליה'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(9, TISHREI, year),\n\t\t\t['Erev Yom Kippur', 0, 'ערב יום כיפור'],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event( // first SAT after RH\n\t\t\tnew HDate(dayOnOrBefore(SAT, 7 + RH[abs]())),\n\t\t\t[Shabbat + ' Shuva', Shabbos + ' Shuvah', 'שבת שובה'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(10, TISHREI, year),\n\t\t\t['Yom Kippur', 0, 'יום כיפור'],\n\t\t\tYOM_TOV_ENDS\n\t\t), new Event(\n\t\t\tnew HDate(14, TISHREI, year),\n\t\t\t['Erev Sukkot', 'Erev Succos', 'ערב סוכות'],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(15, TISHREI, year),\n\t\t\tSukkot(1),\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(15, TISHREI, year),\n\t\t\tSukkot(1),\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, TISHREI, year),\n\t\t\tSukkot(2),\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, TISHREI, year),\n\t\t\tCHM(Sukkot(2)),\n\t\t\tIL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(17, TISHREI, year),\n\t\t\tCHM(Sukkot(3)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(18, TISHREI, year),\n\t\t\tCHM(Sukkot(4)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(19, TISHREI, year),\n\t\t\tCHM(Sukkot(5)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(20, TISHREI, year),\n\t\t\tCHM(Sukkot(6)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(21, TISHREI, year),\n\t\t\t['Sukkot: 7 (Hoshana Raba)', 'Succos: 7 (Hoshana Raba)', 'סוכות יום ז\\' )הושנע רבה('],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(22, TISHREI, year),\n\t\t\t['Shmini Atzeret', 'Shmini Atzeres', 'שמיני עצרת'],\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(22, TISHREI, year),\n\t\t\t['Shmini Atzeret / Simchat Torah', 'Shmini Atzeres / Simchas Torah', 'שמיני עצרת / שמחת תורה'],\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(23, TISHREI, year),\n\t\t\t['Simchat Torah', 'Simchas Torah', 'שמחת תורה'],\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(24, KISLEV, year),\n\t\t\t['Erev Chanukah', 0, 'ערב חנוכה'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(25, KISLEV, year),\n\t\t\tChanukah(1),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(26, KISLEV, year),\n\t\t\tChanukah(2),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(27, KISLEV, year),\n\t\t\tChanukah(3),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(28, KISLEV, year),\n\t\t\tChanukah(4),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(29, KISLEV, year),\n\t\t\tChanukah(5),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(30, KISLEV, year), // yes, i know these are wrong\n\t\t\tChanukah(6),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(31, KISLEV, year), // HDate() corrects the month automatically\n\t\t\tChanukah(7),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(32, KISLEV, year),\n\t\t\tChanukah(8),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(15, months.SHVAT, year),\n\t\t\t[\"Tu B'Shvat\", 0, 'ט\"ו בשבט'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 43)),\n\t\t\t[Shabbat + ' Shekalim', Shabbos + ' Shekalim', 'שבת שקלים'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 30)),\n\t\t\t[Shabbat + ' Zachor', Shabbos + ' Zachor', 'שבת זכור'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(pesach[abs]() - (pesach[getDay]() == days.TUE ? 33 : 31)),\n\t\t\t[\"Ta'anit Esther\", \"Ta'anis Esther\", 'תענית אסתר'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(13, months.ADAR_II, year),\n\t\t\t['Erev Purim', 0, 'ערב פורים'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(14, months.ADAR_II, year),\n\t\t\t['Purim', 0, 'פורים'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(15, months.ADAR_II, year),\n\t\t\t['Shushan Purim', 0, 'שושן פורים'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 14) - 7),\n\t\t\t[Shabbat + ' Parah', Shabbos + ' Parah', 'שבת פרה'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 14)),\n\t\t\t[Shabbat + ' Hachodesh', Shabbos + ' Hachodesh', 'שבת החודש'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 1)),\n\t\t\t[Shabbat + ' HaGadol', Shabbos + ' HaGadol', 'שבת הגדול'],\n\t\t\t0\n\t\t), new Event(\n\t\t\t// if the fast falls on Shabbat, move to Thursday\n\t\t\tpesach.prev()[getDay]() == SAT ? pesach.onOrBefore(days.THU) : new HDate(14, NISAN, year),\n\t\t\t[\"Ta'anit Bechorot\", \"Ta'anis Bechoros\", 'תענית בכורות'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(14, NISAN, year),\n\t\t\t['Erev Pesach', 0, 'ערב פסח'],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(15, NISAN, year),\n\t\t\tPesach(1),\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(15, NISAN, year),\n\t\t\tPesach(1),\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, NISAN, year),\n\t\t\tPesach(2),\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, NISAN, year),\n\t\t\tCHM(Pesach(2)),\n\t\t\tIL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, NISAN, year),\n\t\t\t['Start counting Omer', 0, 'התחלת ספירת העומר'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(17, NISAN, year),\n\t\t\tCHM(Pesach(3)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(18, NISAN, year),\n\t\t\tCHM(Pesach(4)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(19, NISAN, year),\n\t\t\tCHM(Pesach(5)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(20, NISAN, year),\n\t\t\tCHM(Pesach(6)),\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(21, NISAN, year),\n\t\t\tPesach(7),\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(21, NISAN, year),\n\t\t\tPesach(7),\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(22, NISAN, year),\n\t\t\tPesach(8),\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(14, months.IYYAR, year),\n\t\t\t['Pesach Sheni', 0, 'פסח שני'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(18, months.IYYAR, year),\n\t\t\t[\"Lag B'Omer\", 0, 'ל\"ג בעומר'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(5, months.SIVAN, year),\n\t\t\t['Erev Shavuot', 'Erev Shavuos', 'ערב שבועות'],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(6, months.SIVAN, year),\n\t\t\t['Shavuot 1', 'Shavuos 1', 'שבועות א\\''],\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(6, months.SIVAN, year),\n\t\t\t['Shavuot', 'Shavuos', 'שבועות'],\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(7, months.SIVAN, year),\n\t\t\t['Shavuot 2', 'Shavuos 2', 'שבועות ב\\''],\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, new HDate(1, TISHREI, year + 1)[abs]() - 4)),\n\t\t\t['Leil Selichot', 'Leil Selichos', 'ליל סליחות'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(29, months.ELUL, year),\n\t\t\t['Erev Rosh Hashana', 0, 'ערב ראש השנה'],\n\t\t\tLIGHT_CANDLES\n\t\t)\n\t]);\n\n\ttmpDate = new HDate(10, months.TEVET, year);\n\tif (tmpDate[getDay]() == SAT) {\n\t\ttmpDate = tmpDate.next();\n\t}\n\tadd(new Event(\n\t\ttmpDate,\n\t\t[\"Asara B'Tevet\", 0, 'עשרה בטבת'],\n\t\t0\n\t));\n\n\tif (c.LEAP(year)) {\n\t\tadd(new Event(\n\t\t\tnew HDate(14, months.ADAR_I, year),\n\t\t\t['Purim Katan', 0, 'פורים קטן'],\n\t\t\t0\n\t\t));\n\n\t\tadd(new Event(\n\t\t\tnew HDate(15, months.ADAR_I, year),\n\t\t\t['Shushan Purim Katan', 0, 'שושן פורים קטן'],\n\t\t\t0\n\t\t));\n\t}\n\n\tif (year >= 5711) { // Yom HaShoah first observed in 1951\n\t\ttmpDate = new HDate(27, NISAN, year);\n\t\t/* When the actual date of Yom Hashoah falls on a Friday, the\n\t\t * state of Israel observes Yom Hashoah on the preceding\n\t\t * Thursday. When it falls on a Sunday, Yom Hashoah is observed\n\t\t * on the following Monday.\n\t\t * http://www.ushmm.org/remembrance/dor/calendar/\n\t\t */\n\n\t\tif (tmpDate[getDay]() == days.FRI) {\n\t\t\ttmpDate = tmpDate.prev();\n\t\t} else if (tmpDate[getDay]() == days.SUN) {\n\t\t\ttmpDate = tmpDate.next();\n\t\t}\n\n\t\tadd(new Event(\n\t\t\ttmpDate,\n\t\t\t['Yom HaShoah', 0, 'יום השואה'],\n\t\t\t0\n\t\t));\n\t}\n\n\tadd(atzmaut(year));\n\n\tif (year >= 5727) { // Yom Yerushalayim only celebrated after 1967\n\t\tadd(new Event(\n\t\t\tnew HDate(29, months.IYYAR, year),\n\t\t\t['Yom Yerushalayim', 0, 'יום ירושלים'],\n\t\t\t0\n\t\t));\n\t}\n\n\ttmpDate = new HDate(17, months.TAMUZ, year);\n\tif (tmpDate[getDay]() == SAT) {\n\t\ttmpDate = tmpDate.next();\n\t}\n\tadd(new Event(\n\t\ttmpDate,\n\t\t[\"Shiva-Asar B'Tamuz\", 0, \"צום יז' בתמוז\"],\n\t\t0\n\t));\n\n\ttmpDate = new HDate(9, months.AV, year);\n\tif (tmpDate[getDay]() == SAT) {\n\t\ttmpDate = tmpDate.next();\n\t}\n\n\tadd(new Event(\n\t\tnew HDate(dayOnOrBefore(SAT, tmpDate[abs]())),\n\t\t[Shabbat + ' Chazon', Shabbos + ' Chazon', 'שבת חזון'],\n\t\t0\n\t));\n\n\tadd(new Event(\n\t\ttmpDate.prev(),\n\t\t[\"Erev Tish'a B'Av\", 0, 'ערב תשעה באב'],\n\t\t0\n\t));\n\n\tadd(new Event(\n\t\ttmpDate,\n\t\t[\"Tish'a B'Av\", 0, 'תשעה באב'],\n\t\t0\n\t));\n\n\tadd(new Event(\n\t\tnew HDate(dayOnOrBefore(SAT, tmpDate[abs]() + 7)),\n\t\t[Shabbat + ' Nachamu', Shabbos + ' Nachamu', 'שבת נחמו'],\n\t\t0\n\t));\n\n\tfor (var day = 6; day < c.daysInYear(year); day += 7) {\n\t\tadd(new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, new HDate(1, TISHREI, year)[abs]() + day)),\n\t\t\t[Shabbat, Shabbos, 'שבת'],\n\t\t\tYOM_TOV_ENDS\n\t\t));\n\n\t\tadd(new Event(\n\t\t\tnew HDate(dayOnOrBefore(days.FRI, new HDate(1, TISHREI, year)[abs]() + day)),\n\t\t\t['Erev ' + Shabbat, 'Erev ' + Shabbos, 'ערב שבת'],\n\t\t\tLIGHT_CANDLES\n\t\t));\n\t}\n\n\tfor (var month = 1; month <= c.MONTH_CNT(year); month++) {\n\t\tif ((month == NISAN ? c.daysInMonth(c.MONTH_CNT(year - 1), year - 1) :\n\t\t\t\tc.daysInMonth(month - 1, year)) == 30) {\n\t\t\tadd(new Event(\n\t\t\t\tnew HDate(1, month, year),\n\t\t\t\t['Rosh Chodesh 2', 0, \"ראש חודש ב'\"],\n\t\t\t\t0\n\t\t\t));\n\n\t\t\tadd(new Event(\n\t\t\t\tnew HDate(30, month - 1, year),\n\t\t\t\t['Rosh Chodesh 1', 0, \"ראש חודש א'\"],\n\t\t\t\t0\n\t\t\t));\n\t\t} else if (month !== TISHREI) {\n\t\t\tadd(new Event(\n\t\t\t\tnew HDate(1, month, year),\n\t\t\t\t['Rosh Chodesh', 0, 'ראש חודש'],\n\t\t\t\t0\n\t\t\t));\n\t\t}\n\n\t\tif (month == months.ELUL) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tadd(new Event(\n\t\t\tnew HDate(29, month, year).onOrBefore(SAT),\n\t\t\t[Shabbat + ' Mevarchim', Shabbos + ' Mevorchim', 'שבת מברכים'],\n\t\t\t0\n\t\t));\n\t}\n\n\treturn __cache[year] = h;\n};\n\nfunction atzmaut(year) {\n\tif (year >= 5708) { // Yom HaAtzma'ut only celebrated after 1948\n\t\tvar tmpDate = new HDate(1, months.IYYAR, year), pesach = new HDate(15, NISAN, year);\n\n\t\tif (pesach[getDay]() == days.SUN) {\n\t\t\ttmpDate.setDate(2);\n\t\t} else if (pesach[getDay]() == SAT) {\n\t\t\ttmpDate.setDate(3);\n\t\t} else if (year < 5764) {\n\t\t\ttmpDate.setDate(4);\n\t\t} else if (pesach[getDay]() == days.TUE) {\n\t\t\ttmpDate.setDate(5);\n\t\t} else {\n\t\t\ttmpDate.setDate(4);\n\t\t}\n\n\t\treturn [new Event(\n\t\t\ttmpDate,\n\t\t\t['Yom HaZikaron', 0, 'יום הזיכרון'],\n\t\t\t0\n\t\t), new Event(\n\t\t\ttmpDate.next(),\n\t\t\t[\"Yom HaAtzma'ut\", 0, 'יום העצמאות'],\n\t\t\t0\n\t\t)];\n\t}\n\treturn [];\n}\nexports.atzmaut = atzmaut;\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nfunction EventEmitter() {\n this._events = this._events || {};\n this._maxListeners = this._maxListeners || undefined;\n}\nmodule.exports = EventEmitter;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nEventEmitter.defaultMaxListeners = 10;\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function(n) {\n if (!isNumber(n) || n < 0 || isNaN(n))\n throw TypeError('n must be a positive number');\n this._maxListeners = n;\n return this;\n};\n\nEventEmitter.prototype.emit = function(type) {\n var er, handler, len, args, i, listeners;\n\n if (!this._events)\n this._events = {};\n\n // If there is no 'error' event listener then throw.\n if (type === 'error') {\n if (!this._events.error ||\n (isObject(this._events.error) && !this._events.error.length)) {\n er = arguments[1];\n if (er instanceof Error) {\n throw er; // Unhandled 'error' event\n } else {\n // At least give some kind of context to the user\n var err = new Error('Uncaught, unspecified \"error\" event. (' + er + ')');\n err.context = er;\n throw err;\n }\n }\n }\n\n handler = this._events[type];\n\n if (isUndefined(handler))\n return false;\n\n if (isFunction(handler)) {\n switch (arguments.length) {\n // fast cases\n case 1:\n handler.call(this);\n break;\n case 2:\n handler.call(this, arguments[1]);\n break;\n case 3:\n handler.call(this, arguments[1], arguments[2]);\n break;\n // slower\n default:\n args = Array.prototype.slice.call(arguments, 1);\n handler.apply(this, args);\n }\n } else if (isObject(handler)) {\n args = Array.prototype.slice.call(arguments, 1);\n listeners = handler.slice();\n len = listeners.length;\n for (i = 0; i < len; i++)\n listeners[i].apply(this, args);\n }\n\n return true;\n};\n\nEventEmitter.prototype.addListener = function(type, listener) {\n var m;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events)\n this._events = {};\n\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (this._events.newListener)\n this.emit('newListener', type,\n isFunction(listener.listener) ?\n listener.listener : listener);\n\n if (!this._events[type])\n // Optimize the case of one listener. Don't need the extra array object.\n this._events[type] = listener;\n else if (isObject(this._events[type]))\n // If we've already got an array, just append.\n this._events[type].push(listener);\n else\n // Adding the second element, need to change to array.\n this._events[type] = [this._events[type], listener];\n\n // Check for listener leak\n if (isObject(this._events[type]) && !this._events[type].warned) {\n if (!isUndefined(this._maxListeners)) {\n m = this._maxListeners;\n } else {\n m = EventEmitter.defaultMaxListeners;\n }\n\n if (m && m > 0 && this._events[type].length > m) {\n this._events[type].warned = true;\n console.error('(node) warning: possible EventEmitter memory ' +\n 'leak detected. %d listeners added. ' +\n 'Use emitter.setMaxListeners() to increase limit.',\n this._events[type].length);\n if (typeof console.trace === 'function') {\n // not supported in IE 10\n console.trace();\n }\n }\n }\n\n return this;\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.once = function(type, listener) {\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n var fired = false;\n\n function g() {\n this.removeListener(type, g);\n\n if (!fired) {\n fired = true;\n listener.apply(this, arguments);\n }\n }\n\n g.listener = listener;\n this.on(type, g);\n\n return this;\n};\n\n// emits a 'removeListener' event iff the listener was removed\nEventEmitter.prototype.removeListener = function(type, listener) {\n var list, position, length, i;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events || !this._events[type])\n return this;\n\n list = this._events[type];\n length = list.length;\n position = -1;\n\n if (list === listener ||\n (isFunction(list.listener) && list.listener === listener)) {\n delete this._events[type];\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n\n } else if (isObject(list)) {\n for (i = length; i-- > 0;) {\n if (list[i] === listener ||\n (list[i].listener && list[i].listener === listener)) {\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (list.length === 1) {\n list.length = 0;\n delete this._events[type];\n } else {\n list.splice(position, 1);\n }\n\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n }\n\n return this;\n};\n\nEventEmitter.prototype.removeAllListeners = function(type) {\n var key, listeners;\n\n if (!this._events)\n return this;\n\n // not listening for removeListener, no need to emit\n if (!this._events.removeListener) {\n if (arguments.length === 0)\n this._events = {};\n else if (this._events[type])\n delete this._events[type];\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n for (key in this._events) {\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = {};\n return this;\n }\n\n listeners = this._events[type];\n\n if (isFunction(listeners)) {\n this.removeListener(type, listeners);\n } else if (listeners) {\n // LIFO order\n while (listeners.length)\n this.removeListener(type, listeners[listeners.length - 1]);\n }\n delete this._events[type];\n\n return this;\n};\n\nEventEmitter.prototype.listeners = function(type) {\n var ret;\n if (!this._events || !this._events[type])\n ret = [];\n else if (isFunction(this._events[type]))\n ret = [this._events[type]];\n else\n ret = this._events[type].slice();\n return ret;\n};\n\nEventEmitter.prototype.listenerCount = function(type) {\n if (this._events) {\n var evlistener = this._events[type];\n\n if (isFunction(evlistener))\n return 1;\n else if (evlistener)\n return evlistener.length;\n }\n return 0;\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n return emitter.listenerCount(type);\n};\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\n","/*\n * Convert numbers to gematriya representation, and vice-versa.\n *\n * Licensed MIT.\n *\n * Copyright (c) 2014 Eyal Schachter\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * \n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n * \n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n(function(){\n\tvar letters = {}, numbers = {\n\t\t'': 0,\n\t\tא: 1,\n\t\tב: 2,\n\t\tג: 3,\n\t\tד: 4,\n\t\tה: 5,\n\t\tו: 6,\n\t\tז: 7,\n\t\tח: 8,\n\t\tט: 9,\n\t\tי: 10,\n\t\tכ: 20,\n\t\tל: 30,\n\t\tמ: 40,\n\t\tנ: 50,\n\t\tס: 60,\n\t\tע: 70,\n\t\tפ: 80,\n\t\tצ: 90,\n\t\tק: 100,\n\t\tר: 200,\n\t\tש: 300,\n\t\tת: 400,\n\t\tתק: 500,\n\t\tתר: 600,\n\t\tתש: 700,\n\t\tתת: 800,\n\t\tתתק: 900,\n\t\tתתר: 1000\n\t}, i;\n\tfor (i in numbers) {\n\t\tletters[numbers[i]] = i;\n\t}\n\n\tfunction gematriya(num, limit) {\n\t\tif (typeof num !== 'number' && typeof num !== 'string') {\n\t\t\tthrow new TypeError('non-number or string given to gematriya()');\n\t\t}\n\t\tvar str = typeof num === 'string';\n\t\tif (str) {\n\t\t\tnum = num.replace(/('|\")/g,'');\n\t\t}\n\t\tnum = num.toString().split('').reverse();\n\t\tif (!str && limit) {\n\t\t\tnum = num.slice(0, limit);\n\t\t}\n\n\t\tnum = num.map(function g(n,i){\n\t\t\tif (str) {\n\t\t\t\treturn limit && numbers[n] < numbers[num[i - 1]] && numbers[n] < 100 ? numbers[n] * 1000 : numbers[n];\n\t\t\t} else {\n\t\t\t\tif (parseInt(n, 10) * Math.pow(10, i) > 1000) {\n\t\t\t\t\treturn g(n, i-3);\n\t\t\t\t}\n\t\t\t\treturn letters[parseInt(n, 10) * Math.pow(10, i)];\n\t\t\t}\n\t\t});\n\n\t\tif (str) {\n\t\t\treturn num.reduce(function(o,t){\n\t\t\t\treturn o + t;\n\t\t\t}, 0);\n\t\t} else {\n\t\t\tnum = num.reverse().join('').replace(/יה/g,'טו').replace(/יו/g,'טז').split('');\n\n\t\t\tif (num.length === 1) {\n\t\t\t\tnum.push(\"'\");\n\t\t\t} else if (num.length > 1) {\n\t\t\t\tnum.splice(-1, 0, '\"');\n\t\t\t}\n\n\t\t\treturn num.join('');\n\t\t}\n\t}\n\n\tif (typeof module !== 'undefined') {\n\t\tmodule.exports = gematriya;\n\t} else {\n\t\twindow.gematriya = gematriya;\n\t}\n})();\n","/*\n (c) 2011-2015, Vladimir Agafonkin\n SunCalc is a JavaScript library for calculating sun/moon position and light phases.\n https://github.com/mourner/suncalc\n*/\n\n(function () { 'use strict';\n\n// shortcuts for easier to read formulas\n\nvar PI = Math.PI,\n sin = Math.sin,\n cos = Math.cos,\n tan = Math.tan,\n asin = Math.asin,\n atan = Math.atan2,\n acos = Math.acos,\n rad = PI / 180;\n\n// sun calculations are based on http://aa.quae.nl/en/reken/zonpositie.html formulas\n\n\n// date/time constants and conversions\n\nvar dayMs = 1000 * 60 * 60 * 24,\n J1970 = 2440588,\n J2000 = 2451545;\n\nfunction toJulian(date) { return date.valueOf() / dayMs - 0.5 + J1970; }\nfunction fromJulian(j) { return new Date((j + 0.5 - J1970) * dayMs); }\nfunction toDays(date) { return toJulian(date) - J2000; }\n\n\n// general calculations for position\n\nvar e = rad * 23.4397; // obliquity of the Earth\n\nfunction rightAscension(l, b) { return atan(sin(l) * cos(e) - tan(b) * sin(e), cos(l)); }\nfunction declination(l, b) { return asin(sin(b) * cos(e) + cos(b) * sin(e) * sin(l)); }\n\nfunction azimuth(H, phi, dec) { return atan(sin(H), cos(H) * sin(phi) - tan(dec) * cos(phi)); }\nfunction altitude(H, phi, dec) { return asin(sin(phi) * sin(dec) + cos(phi) * cos(dec) * cos(H)); }\n\nfunction siderealTime(d, lw) { return rad * (280.16 + 360.9856235 * d) - lw; }\n\nfunction astroRefraction(h) {\n if (h < 0) // the following formula works for positive altitudes only.\n h = 0; // if h = -0.08901179 a div/0 would occur.\n\n // formula 16.4 of \"Astronomical Algorithms\" 2nd edition by Jean Meeus (Willmann-Bell, Richmond) 1998.\n // 1.02 / tan(h + 10.26 / (h + 5.10)) h in degrees, result in arc minutes -> converted to rad:\n return 0.0002967 / Math.tan(h + 0.00312536 / (h + 0.08901179));\n}\n\n// general sun calculations\n\nfunction solarMeanAnomaly(d) { return rad * (357.5291 + 0.98560028 * d); }\n\nfunction eclipticLongitude(M) {\n\n var C = rad * (1.9148 * sin(M) + 0.02 * sin(2 * M) + 0.0003 * sin(3 * M)), // equation of center\n P = rad * 102.9372; // perihelion of the Earth\n\n return M + C + P + PI;\n}\n\nfunction sunCoords(d) {\n\n var M = solarMeanAnomaly(d),\n L = eclipticLongitude(M);\n\n return {\n dec: declination(L, 0),\n ra: rightAscension(L, 0)\n };\n}\n\n\nvar SunCalc = {};\n\n\n// calculates sun position for a given date and latitude/longitude\n\nSunCalc.getPosition = function (date, lat, lng) {\n\n var lw = rad * -lng,\n phi = rad * lat,\n d = toDays(date),\n\n c = sunCoords(d),\n H = siderealTime(d, lw) - c.ra;\n\n return {\n azimuth: azimuth(H, phi, c.dec),\n altitude: altitude(H, phi, c.dec)\n };\n};\n\n\n// sun times configuration (angle, morning name, evening name)\n\nvar times = SunCalc.times = [\n [-0.833, 'sunrise', 'sunset' ],\n [ -0.3, 'sunriseEnd', 'sunsetStart' ],\n [ -6, 'dawn', 'dusk' ],\n [ -12, 'nauticalDawn', 'nauticalDusk'],\n [ -18, 'nightEnd', 'night' ],\n [ 6, 'goldenHourEnd', 'goldenHour' ]\n];\n\n// adds a custom time to the times config\n\nSunCalc.addTime = function (angle, riseName, setName) {\n times.push([angle, riseName, setName]);\n};\n\n\n// calculations for sun times\n\nvar J0 = 0.0009;\n\nfunction julianCycle(d, lw) { return Math.round(d - J0 - lw / (2 * PI)); }\n\nfunction approxTransit(Ht, lw, n) { return J0 + (Ht + lw) / (2 * PI) + n; }\nfunction solarTransitJ(ds, M, L) { return J2000 + ds + 0.0053 * sin(M) - 0.0069 * sin(2 * L); }\n\nfunction hourAngle(h, phi, d) { return acos((sin(h) - sin(phi) * sin(d)) / (cos(phi) * cos(d))); }\n\n// returns set time for the given sun altitude\nfunction getSetJ(h, lw, phi, dec, n, M, L) {\n\n var w = hourAngle(h, phi, dec),\n a = approxTransit(w, lw, n);\n return solarTransitJ(a, M, L);\n}\n\n\n// calculates sun times for a given date and latitude/longitude\n\nSunCalc.getTimes = function (date, lat, lng) {\n\n var lw = rad * -lng,\n phi = rad * lat,\n\n d = toDays(date),\n n = julianCycle(d, lw),\n ds = approxTransit(0, lw, n),\n\n M = solarMeanAnomaly(ds),\n L = eclipticLongitude(M),\n dec = declination(L, 0),\n\n Jnoon = solarTransitJ(ds, M, L),\n\n i, len, time, Jset, Jrise;\n\n\n var result = {\n solarNoon: fromJulian(Jnoon),\n nadir: fromJulian(Jnoon - 0.5)\n };\n\n for (i = 0, len = times.length; i < len; i += 1) {\n time = times[i];\n\n Jset = getSetJ(time[0] * rad, lw, phi, dec, n, M, L);\n Jrise = Jnoon - (Jset - Jnoon);\n\n result[time[1]] = fromJulian(Jrise);\n result[time[2]] = fromJulian(Jset);\n }\n\n return result;\n};\n\n\n// moon calculations, based on http://aa.quae.nl/en/reken/hemelpositie.html formulas\n\nfunction moonCoords(d) { // geocentric ecliptic coordinates of the moon\n\n var L = rad * (218.316 + 13.176396 * d), // ecliptic longitude\n M = rad * (134.963 + 13.064993 * d), // mean anomaly\n F = rad * (93.272 + 13.229350 * d), // mean distance\n\n l = L + rad * 6.289 * sin(M), // longitude\n b = rad * 5.128 * sin(F), // latitude\n dt = 385001 - 20905 * cos(M); // distance to the moon in km\n\n return {\n ra: rightAscension(l, b),\n dec: declination(l, b),\n dist: dt\n };\n}\n\nSunCalc.getMoonPosition = function (date, lat, lng) {\n\n var lw = rad * -lng,\n phi = rad * lat,\n d = toDays(date),\n\n c = moonCoords(d),\n H = siderealTime(d, lw) - c.ra,\n h = altitude(H, phi, c.dec),\n // formula 14.1 of \"Astronomical Algorithms\" 2nd edition by Jean Meeus (Willmann-Bell, Richmond) 1998.\n pa = atan(sin(H), tan(phi) * cos(c.dec) - sin(c.dec) * cos(H));\n\n h = h + astroRefraction(h); // altitude correction for refraction\n\n return {\n azimuth: azimuth(H, phi, c.dec),\n altitude: h,\n distance: c.dist,\n parallacticAngle: pa\n };\n};\n\n\n// calculations for illumination parameters of the moon,\n// based on http://idlastro.gsfc.nasa.gov/ftp/pro/astro/mphase.pro formulas and\n// Chapter 48 of \"Astronomical Algorithms\" 2nd edition by Jean Meeus (Willmann-Bell, Richmond) 1998.\n\nSunCalc.getMoonIllumination = function (date) {\n\n var d = toDays(date || new Date()),\n s = sunCoords(d),\n m = moonCoords(d),\n\n sdist = 149598000, // distance from Earth to Sun in km\n\n phi = acos(sin(s.dec) * sin(m.dec) + cos(s.dec) * cos(m.dec) * cos(s.ra - m.ra)),\n inc = atan(sdist * sin(phi), m.dist - sdist * cos(phi)),\n angle = atan(cos(s.dec) * sin(s.ra - m.ra), sin(s.dec) * cos(m.dec) -\n cos(s.dec) * sin(m.dec) * cos(s.ra - m.ra));\n\n return {\n fraction: (1 + cos(inc)) / 2,\n phase: 0.5 + 0.5 * inc * (angle < 0 ? -1 : 1) / Math.PI,\n angle: angle\n };\n};\n\n\nfunction hoursLater(date, h) {\n return new Date(date.valueOf() + h * dayMs / 24);\n}\n\n// calculations for moon rise/set times are based on http://www.stargazing.net/kepler/moonrise.html article\n\nSunCalc.getMoonTimes = function (date, lat, lng, inUTC) {\n var t = new Date(date);\n if (inUTC) t.setUTCHours(0, 0, 0, 0);\n else t.setHours(0, 0, 0, 0);\n\n var hc = 0.133 * rad,\n h0 = SunCalc.getMoonPosition(t, lat, lng).altitude - hc,\n h1, h2, rise, set, a, b, xe, ye, d, roots, x1, x2, dx;\n\n // go in 2-hour chunks, each time seeing if a 3-point quadratic curve crosses zero (which means rise or set)\n for (var i = 1; i <= 24; i += 2) {\n h1 = SunCalc.getMoonPosition(hoursLater(t, i), lat, lng).altitude - hc;\n h2 = SunCalc.getMoonPosition(hoursLater(t, i + 1), lat, lng).altitude - hc;\n\n a = (h0 + h2) / 2 - h1;\n b = (h2 - h0) / 2;\n xe = -b / (2 * a);\n ye = (a * xe + b) * xe + h1;\n d = b * b - 4 * a * h1;\n roots = 0;\n\n if (d >= 0) {\n dx = Math.sqrt(d) / (Math.abs(a) * 2);\n x1 = xe - dx;\n x2 = xe + dx;\n if (Math.abs(x1) <= 1) roots++;\n if (Math.abs(x2) <= 1) roots++;\n if (x1 < -1) x1 = x2;\n }\n\n if (roots === 1) {\n if (h0 < 0) rise = i + x1;\n else set = i + x1;\n\n } else if (roots === 2) {\n rise = i + (ye < 0 ? x2 : x1);\n set = i + (ye < 0 ? x1 : x2);\n }\n\n if (rise && set) break;\n\n h0 = h2;\n }\n\n var result = {};\n\n if (rise) result.rise = hoursLater(t, rise);\n if (set) result.set = hoursLater(t, set);\n\n if (!rise && !set) result[ye > 0 ? 'alwaysUp' : 'alwaysDown'] = true;\n\n return result;\n};\n\n\n// export as Node module / AMD module / browser variable\nif (typeof exports === 'object' && typeof module !== 'undefined') module.exports = SunCalc;\nelse if (typeof define === 'function' && define.amd) define(SunCalc);\nelse window.SunCalc = SunCalc;\n\n}());\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\n/*\n * Many of the following algorithms were taken from hebrew calendar\n * routines by Maimonedes, from his Mishneh Torah, and implemented by\n * Nachum Dershowitz Department of Computer Science\n * (217) 333-4219 University of Illinois at Urbana-Champaign\n * nachum@cs.uiuc.edu 1304 West Springfield Avenue\n * Urbana, Illinois 61801\n *\n * The routines were included in the emacs 19 distribution.\n *\n */\nvar c = require('./common'), HDate = require('./hdate');\n\nvar concat = 'concat', range = c.range; // for client optimization\n\nvar INCOMPLETE = 0,\n\tREGULAR = 1,\n\tCOMPLETE = 2;\n\nfunction Sedra(hebYr, il) { // the Hebrew year\n\til = !!il;\n\tvar long_c = c.lngChesh(hebYr);\n\tvar short_k = c.shrtKis(hebYr);\n\tvar type;\n\tthis.year = hebYr;\n\tif (long_c && !short_k) {\n\t\ttype = COMPLETE;\n\t} else if (!long_c && short_k) {\n\t\ttype = INCOMPLETE;\n\t} else {\n\t\ttype = REGULAR;\n\t}\n\n\tvar rosh_hashana = new HDate(1, c.months.TISHREI, hebYr).abs();\n\tvar rosh_hashana_day = (rosh_hashana % 7) + 1;\n\n\t// find the first Saturday on or after Rosh Hashana\n\tthis.first_saturday = c.dayOnOrBefore(6, rosh_hashana + 6);\n\tvar leap = +c.LEAP(hebYr);\n\tthis.type = type;\n\tthis.rosh_hashana_day = rosh_hashana_day;\n\tthis.leap = leap;\n\tthis.il = il;\n\n\tvar core = \"\" + leap + rosh_hashana_day + type;\n\tif (types[core]) {\n\t\tthis.theSedraArray = types[core];\n\t} else {\n\t\tthis.theSedraArray = types[core + (+il)]; // cast to num, then concat\n\t}\n\n\tif (!this.theSedraArray) {\n\t\tconsole.log(this);\n\t\tthrow new TypeError(\"improper sedra year type calculated.\");\n\t}\n}\n\nvar parshiot = Sedra.parshiot = [\n\t[ 'Bereshit', 'Bereshis', 'בראשית' ], // 0\n\t[ 'Noach', 0, 'נח' ],\n\t[ 'Lech-Lecha', 0, 'לך-לך' ],\n\t[ 'Vayera', 0, 'וירא' ],\n\t[ 'Chayei Sara', 0, 'חי שרה' ],\n\t[ 'Toldot', 'Toldos', 'תולדות' ],\n\t[ 'Vayetzei', 0, 'ויצא' ],\n\t[ 'Vayishlach', 0, 'וישלח' ],\n\t[ 'Vayeshev', 0, 'וישב' ],\n\t[ 'Miketz', 0, 'מקץ' ],\n\t[ 'Vayigash', 0, 'ויגש' ], // 10\n\t[ 'Vayechi', 0, 'ויחי' ],\n\t[ 'Shemot', 'Shemos', 'שמות' ],\n\t[ 'Vaera', 0, 'וארא' ],\n\t[ 'Bo', 0, 'בא' ],\n\t[ 'Beshalach', 0, 'בשלח' ],\n\t[ 'Yitro', 'Yisro', 'יתרו' ],\n\t[ 'Mishpatim', 0, 'משפטים' ],\n\t[ 'Terumah', 0, 'תרומה' ],\n\t[ 'Tetzaveh', 0, 'תצוה' ],\n\t[ 'Ki Tisa', 'Ki Sisa', 'כי תשא' ], // 20\n\t[ 'Vayakhel', 0, 'ויקהל' ],\n\t[ 'Pekudei', 0, 'פקודי' ],\n\t[ 'Vayikra', 0, 'ויקרא' ],\n\t[ 'Tzav', 0, 'צו' ],\n\t[ 'Shmini', 0, 'שמיני' ],\n\t[ 'Tazria', 0, 'תזריע' ],\n\t[ 'Metzora', 0, 'מצרע' ],\n\t[ 'Achrei Mot', 'Achrei Mos', 'אחרי מות' ],\n\t[ 'Kedoshim', 0, 'קדשים' ],\n\t[ 'Emor', 0, 'אמור' ], // 30\n\t[ 'Behar', 0, 'בהר' ],\n\t[ 'Bechukotai', 'Bechukosai', 'בחקתי' ],\n\t[ 'Bamidbar', 0, 'במדבר' ],\n\t[ 'Nasso', 0, 'נשא' ],\n\t[ 'Beha\\'alotcha', 'Beha\\'aloscha', 'בהעלתך' ],\n\t[ 'Sh\\'lach', 0, 'שלח לך' ],\n\t[ 'Korach', 0, 'קורח' ],\n\t[ 'Chukat', 'Chukas', 'חקת' ],\n\t[ 'Balak', 0, 'בלק' ],\n\t[ 'Pinchas', 0, 'פינחס' ], // 40\n\t[ 'Matot', 'Matos', 'מטות' ],\n\t[ 'Masei', 0, 'מסעי' ],\n\t[ 'Devarim', 0, 'דברים' ],\n\t[ 'Vaetchanan', 'V\\'eschanan', 'ואתחנן' ],\n\t[ 'Eikev', 0, 'עקב' ],\n\t[ 'Re\\'eh', 0, 'ראה' ],\n\t[ 'Shoftim', 0, 'שופטים' ],\n\t[ 'Ki Teitzei', 'Ki Seitzei', 'כי תצא' ],\n\t[ 'Ki Tavo', 'Ki Savo', 'כי תבוא' ],\n\t[ 'Nitzavim', 0, 'נצבים' ], // 50\n\t[ 'Vayeilech', 0, 'וילך' ],\n\t[ 'Ha\\'Azinu', 0, 'האזינו' ]\n];\n\n\n// parsha doubler/undoubler\nfunction D(p) {\n\treturn -p;\n}\n\n// these are wrapped to protect them from [].concat()\nvar RH = [[ 'Rosh Hashana', 0, 'ראש השנה' ]]; //0\nvar YK = [[ 'Yom Kippur', 0, 'יום כיפור' ]]; //1\n\nvar SUKKOT = [[ 'Sukkot', 'Succos', 'סוכות' ]]; //0\nvar CHMSUKOT = [[ 'Chol hamoed Sukkot', 'Chol hamoed Succos', 'חול המועד סוכות' ]]; //0\nvar SHMINI = [[ 'Shmini Atzeret', 'Shmini Atzeres', 'שמיני עצרת' ]]; //0\nvar EOY = [[ 'End-of-Year: Simchat-Torah, Sukkot', 'End-of-Year: Simchas-Torah, Succos', 'סופשנה: סוכות וסמחת תורה' ]]; //0\n\nvar PESACH = [[ 'Pesach', 0, 'פסח' ]]; //25\nvar CHMPESACH = [[ 'Chol hamoed Pesach', 0, 'חול המועד פסח' ]]; //25\nvar PESACH7 = [[ 'Second days of Pesach', 0, 'שביעי של פסח' ]]; //25\n\nvar SHAVUOT = [[ 'Shavuot', 'Shavuos', 'שבועות' ]]; //33\n\n\n\n// The ordinary year types (keviot)\n\n// names are leap/nonleap - day - incomplete/regular/complete - diaspora/Israel\n\nvar types = {\n\n\t/* Hebrew year that starts on Monday, is `incomplete' (Heshvan and\n\t * Kislev each have 29 days), and has Passover start on Tuesday. */\n\t//e.g. 5753\n\t'020' : [51, 52][concat](EOY, range(0, 20), D(21), 23, 24, PESACH, 25,\n\t\tD(26), D(28), 30, D(31), range(33, 40), D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Monday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Thursday. */\n\t//e.g. 5756\n\t'0220' : [51, 52][concat](EOY, range(0, 20), D(21), 23, 24, PESACH, 25, D(26), D(28),\n\t\t30, D(31), 33, SHAVUOT, range(34, 37), D(38), 40, D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Thursday, is `regular' (Heshvan has 29\n\t * days and Kislev has 30 days), and has Passover start on Saturday. */\n\t//e.g. 5701\n\t'0510' : [52][concat](YK, EOY, range(0, 20), D(21), 23, 24, PESACH, PESACH,\n\t\t25, D(26), D(28), 30, D(31), range(33, 40), D(41), range(43, 50)\n\t),\n\n\t/* Hebrew year that starts on Thursday, is `regular' (Heshvan has 29\n\t * days and Kislev has 30 days), and has Passover start on Saturday. */\n\t// e.g. 5745\n\t'0511' : [52][concat](YK, EOY, range(0, 20), D(21), 23, 24, PESACH,\n\t\t25, D(26), D(28), range(30, 40), D(41), range(43, 50)\n\t),\n\n\t/* Hebrew year that starts on Thursday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Sunday. */\n\t//e.g. 5754\n\t'052' : [52][concat](YK, CHMSUKOT, range(0, 24), PESACH7, 25, D(26),\n\t\tD(28), 30, D(31), range(33, 40), D(41), range(43, 50)\n\t),\n\n\t/* Hebrew year that starts on Saturday, is `incomplete' (Heshvan and Kislev\n\t * each have 29 days), and has Passover start on Sunday. */\n\t//e.g. 5761\n\t'070' : [][concat](RH, 52, SUKKOT, SHMINI, range(0, 20), D(21), 23, 24, PESACH7,\n\t\t25, D(26), D(28), 30, D(31), range(33, 40), D(41), range(43, 50)\n\t),\n\n\n\t/* Hebrew year that starts on Saturday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Tuesday. */\n\t//e.g. 5716\n\t'072' : [][concat](RH, 52, SUKKOT, SHMINI, range(0, 20), D(21), 23, 24, CHMPESACH, 25,\n\t\tD(26), D(28), 30, D(31), range(33, 40), D(41), range(43, 49), D(50)\n\t),\n\n\n\t/* -- The leap year types (keviot) -- */\n\t/* Hebrew year that starts on Monday, is `incomplete' (Heshvan and\n\t * Kislev each have 29 days), and has Passover start on Thursday. */\n\t//e.g. 5746\n\t'1200' : [51, 52][concat](CHMSUKOT, range(0, 27), CHMPESACH, range(28, 33),\n\t\tSHAVUOT, range(34, 37), D(38), 40, D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Monday, is `incomplete' (Heshvan and\n\t * Kislev each have 29 days), and has Passover start on Thursday. */\n\t//e.g. 5746\n\t'1201' : [51, 52][concat](CHMSUKOT, range(0, 27), CHMPESACH,\n\t\trange(28, 40), D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Monday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Saturday. */\n\t//e.g.5752\n\t'1220' : [51, 52][concat](CHMSUKOT, range(0, 27), PESACH,\n\t\tPESACH, range(28, 40), D(41), range(43, 50)\n\t),\n\n\t/* Hebrew year that starts on Monday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Saturday. */\n\t//e.g.5752\n\t'1221' : [51, 52][concat](CHMSUKOT, range(0, 27), PESACH, range(28, 50)),\n\n\t/* Hebrew year that starts on Thursday, is `incomplete' (Heshvan and\n\t * Kislev both have 29 days), and has Passover start on Sunday. */\n\t//e.g. 5768\n\t'150' : [52][concat](YK, CHMSUKOT, range(0, 28), PESACH7, range(29, 50)),\n\n\t/* Hebrew year that starts on Thursday, is `complete' (Heshvan and\n\t * Kislev both have 30 days), and has Passover start on Tuesday. */\n\t//eg. 5771\n\t'152' : [52][concat](YK, CHMSUKOT, range(0, 28), CHMPESACH, range(29, 49), D(50)),\n\n\t/* Hebrew year that starts on Saturday, is `incomplete' (Heshvan and\n\t * Kislev each have 29 days), and has Passover start on Tuesday. */\n\t//e.g.5757\n\t'170' : [][concat](RH, 52, SUKKOT, SHMINI, range(0, 27), CHMPESACH,\n\t\trange(28, 40), D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Saturday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Thursday. */\n\t'1720' : [][concat](RH, 52, SUKKOT, SHMINI, range(0, 27), CHMPESACH, range(28, 33),\n\t\tSHAVUOT, range(34, 37), D(38), 40, D(41), range(43, 49), D(50)\n\t)\n};\n\n/* Hebrew year that starts on Monday, is `complete' (Heshvan and\n * Kislev each have 30 days), and has Passover start on Thursday. */\ntypes['0221'] = types['020'];\n\n/* Hebrew year that starts on Tuesday, is `regular' (Heshvan has 29\n * days and Kislev has 30 days), and has Passover start on Thursday. */\n//e.g. 5715\ntypes['0310'] = types['0220'];\n\n/* Hebrew year that starts on Tuesday, is `regular' (Heshvan has 29\n * days and Kislev has 30 days), and has Passover start on Thursday. */\ntypes['0311'] = types['020'];\n\n/* Hebrew year that starts on Tuesday, is `regular' (Heshvan has 29\n * days and Kislev has 30 days), and has Passover start on Saturday. */\n// e.g. 5715\ntypes['1310'] = types['1220'];\n/* Hebrew year that starts on Tuesday, is `regular' (Heshvan has 29\n * days and Kislev has 30 days), and has Passover start on Saturday. */\ntypes['1311'] = types['1221'];\n\n/* Hebrew year that starts on Saturday, is `complete' (Heshvan and\n * Kislev each have 30 days), and has Passover start on Thursday. */\ntypes['1721'] = types['170'];\n\n\nSedra.prototype.get = function(hDate) {\n\treturn abs(this, hDate.abs());\n};\n\n// returns an array describing the parsha on the first Saturday on or after absdate\nfunction abs(year, absDate) {\n\n\t// find the first saturday on or after today's date\n\tabsDate = c.dayOnOrBefore(6, absDate + 6);\n\n\tvar weekNum = (absDate - year.first_saturday) / 7;\n\tvar index = year.theSedraArray[weekNum];\n\n\tif (undefined === index) {\n\t\treturn abs(new Sedra(year.year + 1, year.il), absDate); // must be next year\n\t}\n\tif (typeof index == 'object') {\n\t\t// Shabbat has a chag. Return a description\n\t\treturn [index];\n\t}\n\tif (index >= 0) {\n\t\treturn [parshiot[index]];\n\t}\n\n\tindex = D(index); // undouble the parsha\n\treturn [parshiot[index], parshiot[index + 1]];\n}\n\nmodule.exports = Sedra;\n"]} \ No newline at end of file diff --git a/client/hebcal.noloc.min.js b/client/hebcal.noloc.min.js index 33dff1f..8c856f9 100644 --- a/client/hebcal.noloc.min.js +++ b/client/hebcal.noloc.min.js @@ -5,7 +5,6 @@ Licensed GPLv3 */ -!function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o=19440||2==day%7&&parts>=9924&&!LEAP(hYear)||1==day%7&&parts>=16789&&LEAP(hYear-1));return alt_day+(alt_day%7===0||alt_day%7==3||alt_day%7==5)}function daysInYear(year){return hebElapsedDays(year+1)-hebElapsedDays(year)}function lngChesh(year){return daysInYear(year)%10==5}function shrtKis(year){return daysInYear(year)%10==3}function monthFromName(c){switch(c.toLowerCase()[0]){case"n":case"נ":return"o"==c.toLowerCase()[1]?0:months.NISAN;case"i":return months.IYYAR;case"e":return months.ELUL;case"c":case"ח":return months.CHESHVAN;case"k":case"כ":return months.KISLEV;case"s":switch(c.toLowerCase()[1]){case"i":return months.SIVAN;case"h":return months.SHVAT;default:return 0}case"t":switch(c.toLowerCase()[1]){case"a":return months.TAMUZ;case"i":return months.TISHREI;case"e":return months.TEVET}break;case"a":switch(c.toLowerCase()[1]){case"v":return months.AV;case"d":return/(1|[^i]i|a|א)$/i.test(c)?months.ADAR_I:months.ADAR_II}break;case"ס":return months.SIVAN;case"ש":return months.SHVAT;case"א":switch(c.toLowerCase()[1]){case"ב":return months.AV;case"ד":return/(2|ii|b|ב)$/i.test(c)?months.ADAR_I:months.ADAR_II;case"י":return months.IYYAR;case"ל":return months.ELUL}break;case"ת":switch(c.toLowerCase()[1]){case"מ":return months.TAMUZ;case"ש":return months.TISHREI}}return 0}function filter(self,fun,thisp){if(null===self)throw new TypeError("self is null");switch(typeof fun){case"function":break;case"string":case"number":return self[fun];case"boolean":fun=fun?function(v){return v}:function(v){return!v};break;case"object":var funOrig=fun;if(fun instanceof RegExp){fun=function(v){return funOrig.test(v)};break}if(Array.isArray(fun)){fun=function(v,k){return funOrig.indexOf(k)>-1};break}default:throw new TypeError("fun is not a supported type")}var res={},t=Object(self);for(var i in t)if(t.hasOwnProperty(i)){var val=t[i];if(fun.call(thisp,val,i,t)){var props=Object.getOwnPropertyDescriptor(t,i);props.value=val,Object.defineProperty(res,i,props)}}if(Array.isArray(self)||"string"==typeof self){var arr=[];for(i in res)arr[Number(i)]=res[i];res=arr.filter(function(v){return v}),"string"==typeof self&&(res=res.join(""))}return res}var gematriya=require("gematriya"),charCodeAt="charCodeAt",months=exports.months={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},monthNames=[["",0,""],["Nisan",0,"ניסן"],["Iyyar",0,"אייר"],["Sivan",0,"סיון"],["Tamuz",0,"תמוז"],["Av",0,"אב"],["Elul",0,"אלול"],["Tishrei",0,"תשרי"],["Cheshvan",0,"חשון"],["Kislev",0,"כסלו"],["Tevet",0,"טבת"],["Sh'vat",0,"שבט"]];exports.monthNames=[monthNames.concat([["Adar",0,"אדר"],["Nisan",0,"ניסן"]]),monthNames.concat([["Adar 1",0,"אדר א'"],["Adar 2",0,"אדר ב'"],["Nisan",0,"ניסן"]])],exports.days={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6},exports.LANG=function(str,opts){return"h"==opts&&str[2]||"a"==opts&&str[1]||str[0]},exports.LEAP=LEAP,exports.MONTH_CNT=function(x){return 12+LEAP(x)},exports.daysInMonth=function(month,year){return 30-(month==months.IYYAR||month==months.TAMUZ||month==months.ELUL||month==months.TEVET||month==months.ADAR_II||month==months.ADAR_I&&!LEAP(year)||month==months.CHESHVAN&&!lngChesh(year)||month==months.KISLEV&&shrtKis(year))},exports.monthNum=function(month){return"number"==typeof month?month:month[charCodeAt](0)>=1488&&month[charCodeAt](0)<=1514&&/('|")/.test(month)?gematriya(month):month[charCodeAt](0)>=48&&month[charCodeAt](0)<=57?parseInt(month,10):monthFromName(month)},exports.dayYearNum=function(str){return"number"==typeof str?str:str[charCodeAt](0)>=1488&&str[charCodeAt](0)<=1514?gematriya(str,!0):parseInt(str,10)},exports.hebElapsedDays=hebElapsedDays,exports.daysInYear=daysInYear,exports.lngChesh=lngChesh,exports.shrtKis=shrtKis,exports.monthFromName=monthFromName,exports.dayOnOrBefore=function(day_of_week,absdate){return absdate-(absdate-day_of_week)%7},exports.map=function(self,fun,thisp){if(null===self||"function"!=typeof fun)throw new TypeError;var t=Object(self),res={};for(var i in t)t.hasOwnProperty(i)&&(res[i]=fun.call(thisp,t[i],i,t));if(Array.isArray(self)||"string"==typeof self){var arr=[];for(i in res)arr[Number(i)]=res[i];res=filter(arr,!0),"string"==typeof self&&(res=res.join(""))}return res},exports.filter=filter,exports.range=function(start,end,step){step=step||1,step<0&&(step=0-step);var arr=[],i=start;if(start=end;i-=step)arr.push(i);return arr}},{gematriya:10}],4:[function(require,module,exports){var c=require("./common"),greg=require("./greg"),gematriya=require("gematriya"),shas=[["Berachot","Berachos","ברכות",64],["Shabbat","Shabbos","שבת",157],["Eruvin","Eruvin","עירובין",105],["Pesachim",0,"פסחים",121],["Shekalim",0,"שקלים",22],["Yoma",0,"יומא",88],["Sukkah",0,"סוכה",56],["Beitzah",0,"ביצה",40],["Rosh Hashana",0,"ראש השנה",35],["Taanit","Taanis","תענית",31],["Megillah",0,"מגילה",32],["Moed Katan",0,"מועד קטן",29],["Chagigah",0,"חגיגה",27],["Yevamot","Yevamos","יבמות",122],["Ketubot","Kesubos","כתובות",112],["Nedarim",0,"נדרים",91],["Nazir",0,"נזיר",66],["Sotah",0,"סוטה",49],["Gitin",0,"גיטין",90],["Kiddushin",0,"קידושין",82],["Baba Kamma",0,"בבא קמא",119],["Baba Metzia",0,"בבא מציעא",119],["Baba Batra","Baba Basra","בבא בתרא",176],["Sanhedrin",0,"סנהדרין",113],["Makkot","Makkos","מכות",24],["Shevuot","Shevuos","שבועות",49],["Avodah Zarah",0,"עבודה זרה",76],["Horayot","Horayos","הוריות",14],["Zevachim",0,"זבחים",120],["Menachot","Menachos","מנחות",110],["Chullin",0,"חולין",142],["Bechorot","Bechoros","בכורות",61],["Arachin",0,"ערכין",34],["Temurah",0,"תמורה",34],["Keritot","Kerisos","כריתות",28],["Meilah",0,"מעילה",22],["Kinnim",0,"קנים",4],["Tamid",0,"תמיד",10],["Midot","Midos","מדות",4],["Niddah",0,"נדה",73]].map(function(m){return{name:m.slice(0,3),blatt:m[3]}});exports.dafyomi=function(gregdate){var cno,dno,osday,nsday,total,count,j,cday,blatt,dafcnt=40;if(!(gregdate instanceof Date))throw new TypeError("non-date given to dafyomi");if(osday=greg.greg2abs(new Date(1923,8,11)),nsday=greg.greg2abs(new Date(1975,5,24)),cday=greg.greg2abs(gregdate),cday=nsday?(cno=8+(cday-nsday)/2711,dno=(cday-nsday)%2711):(cno=1+(cday-osday)/2702,dno=(cday-osday)%2702),total=blatt=0,count=-1,cno<=7?shas[4].blatt=13:shas[4].blatt=22,j=0;j1&&(doy-=floor((4*(date.getMonth()+1)+23)/10),LEAP(date.getFullYear())&&doy++),doy}function LEAP(year){return!(year%4||!(year%100)&&year%400)}var floor=Math.floor,t0t1=[30,31],tMonthLengths=[0,31,28,31].concat(t0t1,t0t1,31,t0t1,t0t1),monthLengths=[tMonthLengths.slice()];tMonthLengths[2]++,monthLengths.push(tMonthLengths),exports.daysInMonth=function(month,year){return monthLengths[+LEAP(year)][month]},exports.monthNames=["","January","February","March","April","May","June","July","August","September","October","November","December"],exports.lookupMonthNum=function(month){return new Date(month+" 1").getMonth()+1},exports.dayOfYear=dayOfYear,exports.LEAP=LEAP,exports.greg2abs=function(date){var year=date.getFullYear()-1;return dayOfYear(date)+365*year+(floor(year/4)-floor(year/100)+floor(year/400))},exports.abs2greg=function(theDate){var d0=theDate-1,n400=floor(d0/146097),d1=floor(d0%146097),n100=floor(d1/36524),d2=d1%36524,n4=floor(d2/1461),d3=d2%1461,n1=floor(d3/365),day=d3%365+1,year=400*n400+100*n100+4*n4+n1;return 4==n100||4==n1?new Date(year,11,31):new Date(new Date(++year,0,day).setFullYear(year))}},{}],6:[function(require,module,exports){function HDate(day,month,year){var me=this;switch(arguments.length){case 0:return new HDate(new Date);case 1:if("undefined"==typeof day)return new HDate;if(day instanceof Date){var d=abs2hebrew(greg.greg2abs(day));return d}if(day instanceof HDate){var d=new HDate(day[getDate](),day[getMonth](),day[getFullYear]());return d.il=day.il,d.setLocation(d.lat,d.long),d}if("string"==typeof day){switch(day.toLowerCase().trim()){case"today":return new HDate;case"yesterday":return(new HDate).prev();case"tomorrow":return(new HDate).next()}if(/\s/.test(day)){var s=day.split(/\s+/);if(2==s.length)return new HDate(s[0],s[1]);if(3==s.length)return new HDate(s[0],s[1],s[2]);if(4==s.length)return/i/i.test(s[2])&&(s[2]=s[2].length),new HDate(s[0],s[1]+s[2],s[3])}}else if("number"==typeof day)return abs2hebrew(day);throw new TypeError("HDate called with bad argument");case 2:return new HDate(day,month,(new HDate)[getFullYear]());case 3:me.day=me.month=1,me.year=c.dayYearNum(year),me.setMonth(c.monthNum(month)),me.setDate(c.dayYearNum(day));break;default:throw new TypeError("HDate called with bad arguments")}return me.setLocation.apply(me,HDate.defaultLocation)}function fix(date){fixMonth(date),fixDate(date)}function fixDate(date){date.day<1&&(date.month==TISHREI&&(date.year-=1),date.day+=daysInMonth(date.month,date.year),date.month-=1,fix(date)),date.day>daysInMonth(date.month,date.year)&&(date.month==months.ELUL&&(date.year+=1),date.day-=daysInMonth(date.month,date.year),date.month+=1,fix(date)),fixMonth(date)}function fixMonth(date){date.month!=months.ADAR_II||date.isLeapYear()||(date.month-=1,fix(date)),date.month<1&&(date.month+=MONTH_CNT(date.year),date.year-=1,fix(date)),date.month>MONTH_CNT(date.year)&&(date.month-=MONTH_CNT(date.year),date.year+=1,fix(date))}function hebrew2abs(d){var m,tempabs=d[getDate](),year=d[getFullYear]();if(d[getMonth]()=10555144)throw new RangeError("parameter to abs2hebrew "+d+" out of range");for(gregdate=greg.abs2greg(d),hebdate=new HDate(1,TISHREI,year=3760+gregdate[getFullYear]());d>=hebrew2abs(hebdate.setFullYear(year+1));)year++;for(month=year>4634&&year<10666?mmap[gregdate[getMonth]()]:TISHREI;d>hebrew2abs(hebdate=new HDate(daysInMonth(month,year),month,year));)month=month%MONTH_CNT(year)+1;return hebdate.setLocation.apply(hebdate.setDate(d-hebrew2abs(hebdate.setDate(1))+1),HDate.defaultLocation)}function suntime(hdate){var date=hdate.greg();return suncalc.getTimes(new Date(date.getFullYear(),date.getMonth(),date.getDate(),12,0,0,0,0),hdate.lat,hdate.long)}function hourOffset(hdate,hours){return new Date(hdate.sunrise()[getTime]()+hdate[hour]()*hours)}function onOrBefore(day,t,offset){return new HDate(dayOnOrBefore(day,t[abs]()+offset))}var c=require("./common"),greg=require("./greg"),suncalc=require("suncalc"),cities=require("./cities"),gematriya=require("gematriya");suncalc.addTime(-16.1,"alot_hashachar",0),suncalc.addTime(-11.5,"misheyakir",0),suncalc.addTime(-10.2,"misheyakir_machmir",0),suncalc.addTime(-8.5,0,"tzeit");var getFullYear="getFullYear",getMonth="getMonth",getDate="getDate",getTime="getTime",abs="abs",hour="hour",months=c.months,TISHREI=months.TISHREI,MONTH_CNT=c.MONTH_CNT,daysInMonth=c.daysInMonth,dayOnOrBefore=c.dayOnOrBefore,prototype=HDate.prototype;HDate.defaultLocation=[0,0],Object.defineProperty(HDate,"defaultCity",{enumerable:!0,configurable:!0,get:function(){return cities.nearest(HDate.defaultLocation[0],HDate.defaultLocation[1])},set:function(city){HDate.defaultLocation=cities.getCity(city).slice(0,2)}}),prototype[getFullYear]=function(){return this.year},prototype.isLeapYear=function(){return c.LEAP(this.year)},prototype[getMonth]=function(){return this.month},prototype.getTishreiMonth=function(){var nummonths=MONTH_CNT(this[getFullYear]());return(this[getMonth]()+nummonths-6)%nummonths||nummonths},prototype.daysInMonth=function(){return daysInMonth(this[getMonth](),this[getFullYear]())},prototype[getDate]=function(){return this.day},prototype.getDay=function(){return this.greg().getDay()},prototype.setFullYear=function(year){return this.year=year,fix(this),this},prototype.setMonth=function(month){return this.month=c.monthNum(month),fix(this),this},prototype.setTishreiMonth=function(month){return this.setMonth((month+6)%MONTH_CNT(this[getFullYear]())||13)},prototype.setDate=function(date){return this.day=date,fix(this),this},prototype.greg=function(){return greg.abs2greg(hebrew2abs(this))},prototype.gregEve=function(){return this.prev().sunset()},prototype[abs]=function(){return hebrew2abs(this)},prototype.toString=function(o){return c.LANG([this[getDate](),null,gematriya(this[getDate]())],o)+" "+this.getMonthName(o)+" "+c.LANG([this[getFullYear](),null,gematriya(this[getFullYear]())],o)},prototype.getMonthName=function(o){return c.LANG(c.monthNames[+this.isLeapYear()][this[getMonth]()],o)},prototype.setCity=function(city){return this.setLocation(cities.getCity(city))},prototype.setLocation=function(lat,lon){if("object"!=typeof lat||Array.isArray(lat)||(lon=lat.long,lat=lat.lat),Array.isArray(lat)&&"undefined"==typeof lon&&(lon=lat[0],lat=lat[1]),Array.isArray(lat)&&(lat=(60*lat[0]+lat[1])/60),Array.isArray(lon)&&(lon=(60*lon[0]+lon[1])/60),"number"!=typeof lat)throw new TypeError("incorrect lat type passed to HDate.setLocation()");if("number"!=typeof lon)throw new TypeError("incorrect long type passed to HDate.setLocation()");return this.lat=lat,this.long=lon,this.il=cities.getCity(cities.nearest(lat,lon))[2],this},prototype.sunrise=function(){return suntime(this).sunrise},prototype.sunset=function(){return suntime(this).sunset},prototype[hour]=function(){return(this.sunset()-this.sunrise())/12},prototype.hourMins=function(){return this[hour]()/6e4},prototype.nightHour=function(){return(this.sunrise()-this.gregEve())/12},prototype.nightHourMins=function(){return this.nightHour()/6e4};var zemanim={chatzot:function(hdate){return hourOffset(hdate,6)},chatzot_night:function(hdate){return new Date(hdate.sunrise()[getTime]()-6*hdate.nightHour())},alot_hashachar:function(hdate){return suntime(hdate).alot_hashachar},alot_hashacher:function(hdate){return suntime(hdate).alot_hashachar},misheyakir:function(hdate){return suntime(hdate).misheyakir},misheyakir_machmir:function(hdate){return suntime(hdate).misheyakir_machmir},sof_zman_shma:function(hdate){return hourOffset(hdate,3)},sof_zman_tfilla:function(hdate){return hourOffset(hdate,4)},mincha_gedola:function(hdate){return hourOffset(hdate,6.5)},mincha_ketana:function(hdate){return hourOffset(hdate,9.5)},plag_hamincha:function(hdate){return hourOffset(hdate,10.75)},tzeit:function(hdate){return suntime(hdate).tzeit},neitz_hachama:function(hdate){return hdate.sunrise()},shkiah:function(hdate){return hdate.sunset()}};prototype.getZemanim=function(){return c.map(zemanim,function(z){return z(this)},this)},HDate.addZeman=function(zeman,func){zemanim[zeman]=func},prototype.next=function(){return abs2hebrew(this.abs()+1).setLocation(this.lat,this.long)},prototype.prev=function(){return abs2hebrew(this.abs()-1).setLocation(this.lat,this.long)},prototype.isSameDate=function(other){return other instanceof HDate&&(other[getFullYear]()==-1&&(other=new HDate(other).setFullYear(this[getFullYear]())),this[abs]()==other[abs]())},prototype.before=function(day){return onOrBefore(day,this,-1)},prototype.onOrBefore=function(day){return onOrBefore(day,this,0)},prototype.nearest=function(day){return onOrBefore(day,this,3)},prototype.onOrAfter=function(day){return onOrBefore(day,this,6)},prototype.after=function(day){return onOrBefore(day,this,7)},module.exports=HDate},{"./cities":1,"./common":3,"./greg":5,gematriya:10,suncalc:11}],7:[function(require,module,exports){function getset(g,s){return{enumerable:!0,configurable:!0,get:g,set:s}}function extend(base,into){for(var i in into)base[i]=into[i];return base}function Hebcal(year,month){var me=this;if(year||(year=(new HDate)[getFullYear]()),"number"!=typeof year)throw new TE("year to Hebcal() is not a number");if(me.year=year,!month)return new Hebcal(year,c.range(1,c.MONTH_CNT(year)));if("string"==typeof month&&(month=c.monthFromName(month)),"number"==typeof month&&(month=[month]),!Array.isArray(month))throw new TE("month to Hebcal is not a valid type");me.months=month[map](function(i){var m=new Month(i,year);return defProp(m,"__year",{configurable:!0,writable:!0,value:me}),m}),me.holidays=holidays.year(year),me[length]=c.daysInYear(year),defProp(me,"il",getset(function(){return me[getMonth](1).il},function(il){me.months.forEach(function(m){m.il=il})})),defProp(me,"lat",getset(function(){return me[getMonth](1).lat},function(lat){me.months.forEach(function(m){m.lat=lat})})),defProp(me,"long",getset(function(){return me[getMonth](1).long},function(lon){me.months.forEach(function(m){m.long=lon})}))}function Month(month,year){var me=this;if(month=c.monthNum(month),"number"!=typeof month)throw new TE("month to Hebcal.Month is not a valid type");if("number"!=typeof year)throw new TE("year to Hebcal.Month is not a number");return me.month=month,me.year=year,me.days=c.range(1,c.daysInMonth(month,year))[map](function(i){var d=new HDate(i,month,year);return defProp(d,"__month",{configurable:!0,writable:!0,value:me}),d}),me[length]=me.days[length],me.holidays=c.filter(holidays.year(year),function(h){return h[0].date[getMonth]()==month}),defProp(me,"il",getset(function(){return me[getDay](1).il},function(il){me.days.forEach(function(d){d.il=il})})),defProp(me,"lat",getset(function(){return me[getDay](1).lat},function(lat){me.days.forEach(function(d){d.lat=lat})})),defProp(me,"long",getset(function(){return me[getDay](1).long},function(lon){me.days.forEach(function(d){d.long=lon})})),me}function GregYear(year,month){var me=this;if(year||(year=(new Date)[getFullYear]()),"string"==typeof year){var d=new Date(year);return month=year.indexOf(" ")+1||year.indexOf("-")+1||year.indexOf("/")+1?d[getMonth]()+1:c.range(1,12),new GregYear(d[getFullYear](),month)}if("number"!=typeof year)throw new TE("year to Hebcal.GregYear() is not a number");if(me.year=year,!month)return new GregYear(year,c.range(1,12));if("string"==typeof month&&(month=greg.lookupMonthName(month)),"number"==typeof month&&(month=[month]),!Array.isArray(month))throw new TE("month to Hebcal.GregYear() is not a valid type");return me.months=month[map](function(i){var m=new GregMonth(i,year);return defProp(m,"__year",{configurable:!0,writable:!0,value:me}),m}),me.hebyears=[].concat.apply([],me.months[map](function(m){return m.hebmonths[map](function(hm){return hm.year})})).filter(function(val,i,arr){return arr.indexOf(val)===i}),me.holidays=c.filter(holidays.year(me.hebyears[0]),function(h){return h[0].date.greg()[getFullYear]()===year&&me.months.filter(function(m){return m.month===h[0].date.greg()[getMonth]()+1})[length]}),me.hebyears[1]&&extend(me.holidays,c.filter(holidays.year(me.hebyears[1]),function(h){return h[0].date.greg()[getFullYear]()===year&&me.months.filter(function(m){return m.month===h[0].date.greg()[getMonth]()+1})[length]})),me[length]=365+greg.LEAP(year),defProp(me,"il",getset(function(){return me[getMonth](1).il},function(il){me.months.forEach(function(m){m.il=il})})),defProp(me,"lat",getset(function(){return me[getMonth](1).lat},function(lat){me.months.forEach(function(m){m.lat=lat})})),defProp(me,"long",getset(function(){return me[getMonth](1).long},function(lon){me.months.forEach(function(m){m.long=lon})})),me}function GregMonth(month,year){var me=this;if("string"==typeof month&&(month=greg.lookupMonthNum(month)),"number"!=typeof month)throw new TE("month to Hebcal.GregMonth is not a valid type");if("number"!=typeof year)throw new TE("year to Hebcal.GregMonth is not a number");return me.year=year,me.month=month,me.days=c.range(1,greg.daysInMonth(month,year))[map](function(i){var d=new HDate(new Date(year,month-1,i));return defProp(d,"__gregmonth",{configurable:!0,writable:!0,value:me}),d}),me[length]=me.days[length],me.hebmonths=[{month:me[getDay](1)[getMonth](),year:me[getDay](1)[getFullYear]()},{month:me[getDay](-1)[getMonth](),year:me[getDay](-1)[getFullYear]()}].filter(function(val,i,arr){return 0===i||val.month!=arr[0].month}),defProp(me,"il",getset(function(){return me[getDay](1).il},function(il){me.days.forEach(function(d){d.il=il})})),defProp(me,"lat",getset(function(){return me[getDay](1).lat},function(lat){me.days.forEach(function(d){d.lat=lat})})),defProp(me,"long",getset(function(){return me[getDay](1).long},function(lon){me.days.forEach(function(d){d.long=lon})})),me}var c=require("./common"),HDate=require("./hdate"),holidays=require("./holidays"),Sedra=require("./sedra"),dafyomi=require("./dafyomi"),cities=require("./cities"),greg=require("./greg"),EventEmitter=require("events").EventEmitter,gematriya=require("gematriya"),defProp=Object.defineProperty,TE=TypeError,find="find",strings="strings",getYearObject="getYearObject",map="map",getDay="getDay",getMonth="getMonth",getFullYear="getFullYear",isLeapYear="isLeapYear",length="length",next="next",prev="prev",months=c.months,TISHREI=months.TISHREI,NISAN=months.NISAN,HebcalProto=Hebcal.prototype,MonthProto=Month.prototype,GregYearProto=GregYear.prototype,GregMonthProto=GregMonth.prototype,HDateProto=HDate.prototype;HebcalProto[isLeapYear]=HDateProto[isLeapYear],HebcalProto.setCity=function(city){return this.months.forEach(function(m){m.setCity(city)}),this},HebcalProto.setLocation=function(lat,lon){return this.months.forEach(function(m){m.setLocation(lat,lon)}),this},HebcalProto[next]=function(){return new Hebcal(this.year+1)},HebcalProto[prev]=function(){return new Hebcal(this.year-1)},HebcalProto[getMonth]=function(month){var months=this.months;return month=c.monthNum(month),month>this.months[length]?this[next]()[getMonth](month-months[length]):months[month>0?month-1:months[length]+month]},HebcalProto[getDay]=function(day){var me=this;if(day>me[length])return null;if(day<0)return me[getDay](me[length]-day);var rosh=me[find](29,months.ELUL)[0].abs()+1-me[find](1,NISAN)[0].abs();return day<=rosh?me[getMonth](NISAN)[getDay](day):me[getMonth](TISHREI)[getDay](day-rosh)},HebcalProto.days=function(){return[].concat.apply([],this.months[map](function(m){return m.days}))},HebcalProto[map]=function(){return[][map].apply(this.days(),arguments)},HebcalProto.filter=function(){return[].filter.apply(this.days(),arguments)},HebcalProto.addHoliday=function(holiday){if(!(holiday instanceof holidays.Event))throw new TE("non-Event passed to addHoliday()");return this.holidays.add(holiday),this},HebcalProto.findParsha=function(parsha,o){var langs=o?[o]:["s","a","h"],days=this.filter(function(d){return Math.max.apply(null,langs.map(function(l){return d.getSedra(l).indexOf(parsha)+1}))});return days[days[length]-1]},HebcalProto.findSedra=HebcalProto.findParsha,HebcalProto[find]=function find_f(day,month){var me=this;if(1===arguments[length]){if("string"==typeof day)return find_f[strings].call(me,day);if(Array.isArray(day))return[].concat.apply([],day[map](function(d){return me[find][Array.isArray(d)?"apply":"call"](me,d)}));if(day instanceof HDate)return me[find](day.getDate(),day[getMonth]());if(day instanceof Date)return me[find](new HDate(day))}else if(2==arguments[length]){if(month instanceof Month)return month[find](day);if(Array.isArray(month))return[].concat.apply([],month[map](function(m){return me[find](day,m)}));if("string"==typeof month)return me[find](day,c.monthNum(month));if("number"==typeof month)return me[find](day,me[getMonth](month))}return[]},HebcalProto[find][strings]=function strings(str){var split=str.split(/\s+/),func=strings[str.replace(/\s/g,"_").toLowerCase()];if(!split[length])return[];if(func)return func.call(this);try{return this[find](new HDate(str))}catch(e){return split[length]-1?this[find].apply(this,split):[]}},HebcalProto[find][strings].rosh_chodesh=function(){return this[find]("Rosh Chodesh",c.range(1,this.months[length]))},HebcalProto[find][strings].holidays=function(){return[].concat.apply([],this.holidays[map](function(h){return this[find](h.date)},this))},HebcalProto[find][strings].omer=function(){return this[find](c.range(16,64),NISAN)},HebcalProto[find][strings].today=function(){return this[find](new HDate)},HebcalProto[find][strings].yesterday=function(){return[this[find]("today")[0][prev]()]},HebcalProto[find][strings].tomorrow=function(){return[this[find]("today")[0][next]()]},HebcalProto[find][strings].pesach=function(){return this[find](c.range(15,23-this.il),NISAN)},HebcalProto[find][strings].sukkot=function(){return this[find](c.range(15,24-this.il),TISHREI)},HebcalProto[find][strings].succot=HebcalProto[find][strings].succos=HebcalProto[find][strings].sukkos=HebcalProto[find][strings].sukkot,HebcalProto[find][strings].shavuot=function(){return this[find](c.range(6,7-this.il),months.SIVAN)},HebcalProto[find][strings].shavuos=HebcalProto[find][strings].shavuot,HebcalProto[find][strings].rosh_hashana=function(){return this[find](c.range(1,2),TISHREI)},HebcalProto[find][strings].rosh_hashanah=HebcalProto[find][strings].rosh_hashana,Hebcal.addZeman=HDate.addZeman,Hebcal.cities=cities,Hebcal.range=c.range,Hebcal.gematriya=gematriya,Hebcal.holidays=c.filter(holidays,["masks","Event"]),Hebcal.parshiot=Sedra.parshiot,Hebcal.LANGUAGE=c.LANG,Hebcal[map]=c[map],Hebcal.filter=c.filter,defProp(Hebcal,"defaultLocation",getset(function(){return HDate.defaultLocation},function(loc){Hebcal.events.emit("locationChange",HDate.defaultLocation),HDate.defaultLocation=loc})),defProp(Hebcal,"defaultCity",getset(function(){return HDate.defaultCity},function(city){Hebcal.defaultLocation=cities.getCity(city).slice(0,2)})),defProp(Hebcal,"candleLighting",getset(function(){return holidays.Event.candleLighting},function(mins){holidays.Event.candleLighting=mins})),defProp(Hebcal,"havdalah",getset(function(){return holidays.Event.havdalah},function(mins){holidays.Event.havdalah=mins})),Hebcal.Month=Month,MonthProto[isLeapYear]=HDateProto[isLeapYear],MonthProto[prev]=function(){var me=this,year=me[getYearObject]();return 1===me.month?year[getMonth](-1):me.month===TISHREI?year[prev]()[getMonth](months.ELUL):year[getMonth](me.month-1)},MonthProto[next]=function(){var me=this,year=me[getYearObject]();return me.month===c.MONTH_CNT(me.year)?year[getMonth](1):me.month===months.ELUL?year[next]()[getMonth](TISHREI):year[getMonth](me.month+1)},MonthProto[getDay]=function(day){var days=this.days;return day=c.dayYearNum(day),day>days[length]?this[next]()[getDay](day-days[length]):days[day>0?day-1:days[length]+day]},MonthProto[getYearObject]=function(){return this.__year||new Hebcal(this.year)},MonthProto.getName=function(o){return c.LANG(c.monthNames[+this[isLeapYear]()][this.month],o)},MonthProto.rosh_chodesh=function(){var prevMonth=this[prev]();return 30==prevMonth[length]?[prevMonth[getDay](-1),this[getDay](1)]:[this[getDay](1)]},MonthProto.setCity=function(city){return this.days.forEach(function(d){d.setCity(city)}),this},MonthProto.setLocation=function(lat,lon){return this.days.forEach(function(d){d.setLocation(lat,lon)}),this},MonthProto[map]=function(){return[][map].apply(this.days,arguments)},MonthProto.molad=function(){ -var year,m_elapsed,p_elapsed,h_elapsed,parts,m_adj,retMolad={},toInt=parseInt;m_adj=this.month-7,year=this.year-1,m_adj<0&&(m_adj+=c.MONTH_CNT(year+1)),m_elapsed=toInt(m_adj+235*(year/19)),p_elapsed=toInt(204+793*(m_elapsed%1080)),h_elapsed=toInt(5+12*m_elapsed+793*(m_elapsed/1080)-6),parts=toInt(p_elapsed%1080+1080*(h_elapsed%24)),retMolad.doy=new HDate(toInt(1+29*m_elapsed+h_elapsed/24)).getDay(),retMolad.hour=Math.round(h_elapsed%24);var chalakim=toInt(parts%1080);retMolad.minutes=toInt(chalakim/18),retMolad.chalakim=chalakim%18;var day=this.prev().find.strings.shabbat_mevarchim._calc.call(this)[0].onOrAfter(retMolad.doy).greg();return day.setHours(retMolad.hour),day.setMinutes(retMolad.minutes),day.setSeconds(3.33*retMolad.chalakim),retMolad.day=day,retMolad},MonthProto[find]=function find_f(day){var me=this;return"number"==typeof day?[me[getDay](day)]:"string"==typeof day?find_f[strings].call(me,day):Array.isArray(day)?[].concat.apply([],day[map](function(d){return me[find](d)})):day instanceof HDate&&day[getFullYear]()==me.year&&day[getMonth]()==me.month?me[find](day.getDate()):day instanceof Date?me[find](new HDate(day)):[]},MonthProto[find][strings]=function strings(str){var func=strings[str.replace(/\s/g,"_").toLowerCase()];if(func)return func.call(this);try{return this[find](new HDate(str))}catch(e){var num=c.dayYearNum(str);return num?this[find](num):[]}},MonthProto[find][strings].rosh_chodesh=function(){return this.rosh_chodesh()},MonthProto[find][strings].shabbat_mevarchim=function sm(){return this.month===months.ELUL?[]:sm._calc.call(this)},MonthProto[find][strings].shabbat_mevarchim._calc=function(){return this[find](this[getDay](29).onOrBefore(c.days.SAT))},MonthProto[find][strings].shabbos_mevarchim=MonthProto[find][strings].shabbos_mevorchim=MonthProto[find][strings].shabbat_mevarchim,Hebcal.HDate=HDate,HDateProto.getMonthObject=function(){return this.__month||new Month(this[getMonth](),this[getFullYear]())},HDateProto[getYearObject]=function(){return this.getMonthObject()[getYearObject]()},function(){var orig={};[prev,next].forEach(function(func){orig[func]=HDateProto[func],HDateProto[func]=function(){var day=orig[func].call(this);return this.__month?this[getYearObject]()[find](day)[0]:day}})}(),HDateProto.getSedra=function(){var __cache={};return function(o){var sedraYear=__cache[this[getFullYear]()];return sedraYear&&sedraYear.il==this.il||(sedraYear=__cache[this[getFullYear]()]=new Sedra(this[getFullYear](),this.il)),sedraYear.get(this)[map](function(p){return c.LANG(p,o)})}}(),HDateProto.getParsha=HDateProto.getSedra,HDateProto.holidays=function(all){var me=this,days=me[getYearObject]().holidays[me];return days?days.filter(function(h){return!!all||!h.routine()&&h.is(me)})[map](function(h){return h.date.setLocation(me),h}):[]},["candleLighting","havdalah"].forEach(function(prop){HDateProto[prop]=function(){var me=this,hd=me.holidays(!0).filter(function(h){return h.is(me)});return hd.length&&(hd=c.filter(hd.map(function(h){return h[prop]()}),!0)),hd.length?new Date(Math.max.apply(null,hd)):null}}),HDateProto.omer=function(){var me=this,greg=me.greg().getTime(),year=me[getFullYear]();return greg>new HDate(15,NISAN,year).greg().getTime()&&greg=5727?year[find](29,months.IYYAR):[])),yes_prev=__cache.yes_prev[y]=mapAbs([].concat(year[find](-1,months.ELUL),year[find](9,months.TISHREI),year[find](14,months.IYYAR))),__cache.il[y]=me.il),all=all.indexOf(me.abs())>-1,some=some.indexOf(me.abs())>-1,yes_prev=yes_prev.indexOf(me.abs()+1)>-1,all)return NONE;var ret=(!some&&ALL_CONGS)|(6!=me[getDay]()&&SHACHARIT);return ret|=checkNext&&!yes_prev?me[next]().tachanun(!0)&SHACHARIT&&MINCHA:5!=me[getDay]()&&MINCHA,ret==ALL_CONGS?NONE:ret}var NONE=tachanun.NONE=0,MINCHA=tachanun.MINCHA=1,SHACHARIT=tachanun.SHACHARIT=2,ALL_CONGS=tachanun.ALL_CONGS=4,__cache={all:{},some:{},yes_prev:{},il:{}};return tachanun}(),HDateProto.hallel=function(){function hallel(){var me=this,year=me[getYearObject](),y=year.year,whole=__cache.il[y]==me.il&&__cache.whole[y]||(__cache.whole[y]=[].concat(year[find](c.range(25,33),months.KISLEV),year[find]([15,me.il?null:16],NISAN),year[find]("Shavuot"),year[find]("Sukkot"),holidays.atzmaut(y)[1].date||[],y>=5727?year[find](29,months.IYYAR):[])[map](function(d){return d.abs()})),half=__cache.il[y]==me.il&&__cache.half[y]||(__cache.half[y]=[].concat(year[find]("Rosh Chodesh").filter(function(rc){return rc[getMonth]()!=TISHREI}),year[find](c.range(17-me.il,23-me.il),NISAN))[map](function(d){return d.abs()}));return __cache.il[y]=me.il,whole.indexOf(me.abs())>-1&&WHOLE||half.indexOf(me.abs())>-1&&HALF||NONE}var NONE=hallel.NONE=0,HALF=hallel.HALF=1,WHOLE=hallel.WHOLE=2,__cache={whole:{},half:{},il:{}};return hallel}(),function(events){function checkTimes(){function close(obj,compare){return c.filter(c[map](obj,function(time){return time-nowGreg}),function(time){return time>0&&time-compare<0})}var now=new HDate;today.isSameDate(now)||(events.emit("dayChange"),today=now);var nowGreg=new Date,almostTime=close(now.getZemanim(),events.beforeZeman),customTimes=close(events.customs,events.refreshInterval);for(var zeman in almostTime)events.emit("almostZeman",zeman,almostTime[zeman]),almostTime[zeman]months[length]?this[next]()[getMonth](month-months[length]):months[month>0?month-1:months[length]+month]},extend(GregYearProto,{days:HebcalProto.days,map:HebcalProto[map],filter:HebcalProto.filter,addHoliday:HebcalProto.addHoliday}),Hebcal.GregMonth=GregMonth,GregMonthProto[isLeapYear]=function(){return greg.LEAP(this.year)},GregMonthProto[prev]=function(){return 1===this.month?this[getYearObject]()[prev]()[getMonth](-1):this[getYearObject]()[getMonth](this.month-1)},GregMonthProto[next]=function(){return this[getYearObject]()[getMonth](this.month+1)},GregMonthProto[getDay]=function(day){return day>this.days[length]?this[next]()[getDay](day-this.days[length]):this.days[day>0?day-1:this.days[length]+day]},GregMonthProto[getYearObject]=function(){return this.__year||new GregYear(this.year)},GregMonthProto.getName=function(){return greg.monthNames[this.month]},GregMonthProto.setCity=MonthProto.setCity,GregMonthProto.setLocation=MonthProto.setLocation,GregMonthProto[map]=MonthProto[map],HDateProto.getGregMonthObject=function(){return this.__gregmonth||new GregMonth(this.greg()[getMonth]()+1,this.greg()[getFullYear]())},HDateProto.getGregYearObject=function(){return this.getGregMonthObject()[getYearObject]()},module.exports=Hebcal},{"./cities":1,"./common":3,"./dafyomi":4,"./greg":5,"./hdate":6,"./holidays":8,"./sedra":12,events:9,gematriya:10}],8:[function(require,module,exports){function Chanukah(day){return["Chanukah: Candle "+day,0,"חנוכה: נר "+gematriya(day)]}function CHM(desc){return[desc[0]+' (CH"M)',desc[1]?desc[1]+' (CH"M)':desc[1],desc[2]?desc[2]+' )חה"ם(':desc[2]]}function Sukkot(day){return["Sukkot: "+day,"Succos: "+day,"סוכות יום "+gematriya(day)]}function Pesach(day){return["Pesach: "+day,0,"פסח יום "+gematriya(day)]}function Event(date,desc,mask){var me=this;me.date=new HDate(date),me.desc="object"!=typeof desc?[desc]:desc,me.USER_EVENT=!!(mask&USER_EVENT),me.LIGHT_CANDLES=!!(mask&LIGHT_CANDLES),me.YOM_TOV_ENDS=!!(mask&YOM_TOV_ENDS),me.CHUL_ONLY=!!(mask&CHUL_ONLY),me.IL_ONLY=!!(mask&IL_ONLY),me.LIGHT_CANDLES_TZEIS=!!(mask&LIGHT_CANDLES_TZEIS)}function atzmaut(year){if(year>=5708){var tmpDate=new HDate(1,months.IYYAR,year),pesach=new HDate(15,NISAN,year);return pesach[getDay]()==days.SUN?tmpDate.setDate(2):pesach[getDay]()==SAT?tmpDate.setDate(3):year<5764?tmpDate.setDate(4):pesach[getDay]()==days.TUE?tmpDate.setDate(5):tmpDate.setDate(4),[new Event(tmpDate,["Yom HaZikaron",0,"יום הזיכרון"],0),new Event(tmpDate.next(),["Yom HaAtzma'ut",0,"יום העצמאות"],0)]}return[]}var c=require("./common"),HDate=require("./hdate"),gematriya=require("gematriya"),__cache={},dayOnOrBefore=c.dayOnOrBefore,months=c.months,days=c.days,TISHREI=months.TISHREI,KISLEV=months.KISLEV,NISAN=months.NISAN,SAT=days.SAT,getDay="getDay",abs="abs",Shabbat="Shabbat",Shabbos="Shabbos",USER_EVENT=1,LIGHT_CANDLES=2,YOM_TOV_ENDS=4,CHUL_ONLY=8,IL_ONLY=16,LIGHT_CANDLES_TZEIS=32;exports.masks={USER_EVENT:USER_EVENT,LIGHT_CANDLES:LIGHT_CANDLES,YOM_TOV_ENDS:YOM_TOV_ENDS,CHUL_ONLY:CHUL_ONLY,IL_ONLY:IL_ONLY,LIGHT_CANDLES_TZEIS:LIGHT_CANDLES_TZEIS},Event.prototype.is=function(date,il){return date=new HDate(date),myDate=this.date,arguments.length<2&&(il=date.il),date.getDate()==myDate.getDate()&&date.getMonth()==myDate.getMonth()&&(date.getFullYear()==myDate.getFullYear()&&!(il&&this.CHUL_ONLY||!il&&this.IL_ONLY))},Event.prototype.masks=function(){var me=this;return(me.USER_EVENT&&USER_EVENT)|(me.LIGHT_CANDLES&&LIGHT_CANDLES)|(me.YOM_TOV_ENDS&&YOM_TOV_ENDS)|(me.CHUL_ONLY&&CHUL_ONLY)|(me.IL_ONLY&&IL_ONLY)|(me.LIGHT_CANDLES_TZEIS&&LIGHT_CANDLES_TZEIS)},Event.prototype.getDesc=function(o){return c.LANG(this.desc,o)},Event.prototype.candleLighting=function(){var date=this.date;return this.LIGHT_CANDLES?new Date(date.sunset()-60*Event.candleLighting*1e3):this.LIGHT_CANDLES_TZEIS?date.getZemanim().tzeit:null},Event.prototype.havdalah=function(){return this.YOM_TOV_ENDS?new Date(this.date.sunset().getTime()+60*Event.havdalah*1e3):null},Event.prototype.routine=function(){function routine(){return!!~routine.names.indexOf(this.getDesc("s"))}return routine.names=[Shabbat,"Erev "+Shabbat],routine}(),Event.isIL=!1,Event.candleLighting=18,Event.havdalah=42,exports.Event=Event,exports.year=function(year){function add(ev){Array.isArray(ev)?ev.forEach(function(e){add(e)}):h[ev.date]?h[ev.date].push(ev):h[ev.date]=[ev]}if(__cache[year])return __cache[year];var tmpDate,RH=new HDate(1,TISHREI,year),pesach=new HDate(15,NISAN,year),h={};Object.defineProperty(h,"add",{value:add}),add([new Event(RH,["Rosh Hashana 1",0,"ראש השנה א'"],LIGHT_CANDLES_TZEIS),new Event(new HDate(2,TISHREI,year),["Rosh Hashana 2",0,"ראש השנה ב'"],YOM_TOV_ENDS),new Event(new HDate(3+(RH[getDay]()==days.THU),TISHREI,year),["Tzom Gedaliah",0,"צום גדליה"],0),new Event(new HDate(9,TISHREI,year),["Erev Yom Kippur",0,"ערב יום כיפור"],LIGHT_CANDLES),new Event(new HDate(dayOnOrBefore(SAT,7+RH[abs]())),[Shabbat+" Shuva",Shabbos+" Shuvah","שבת שובה"],0),new Event(new HDate(10,TISHREI,year),["Yom Kippur",0,"יום כיפור"],YOM_TOV_ENDS),new Event(new HDate(14,TISHREI,year),["Erev Sukkot","Erev Succos","ערב סוכות"],LIGHT_CANDLES),new Event(new HDate(15,TISHREI,year),Sukkot(1),LIGHT_CANDLES_TZEIS|CHUL_ONLY),new Event(new HDate(15,TISHREI,year),Sukkot(1),YOM_TOV_ENDS|IL_ONLY),new Event(new HDate(16,TISHREI,year),Sukkot(2),YOM_TOV_ENDS|CHUL_ONLY),new Event(new HDate(16,TISHREI,year),CHM(Sukkot(2)),IL_ONLY),new Event(new HDate(17,TISHREI,year),CHM(Sukkot(3)),0),new Event(new HDate(18,TISHREI,year),CHM(Sukkot(4)),0),new Event(new HDate(19,TISHREI,year),CHM(Sukkot(5)),0),new Event(new HDate(20,TISHREI,year),CHM(Sukkot(6)),0),new Event(new HDate(21,TISHREI,year),["Sukkot: 7 (Hoshana Raba)","Succos: 7 (Hoshana Raba)","סוכות יום ז' )הושנע רבה("],LIGHT_CANDLES),new Event(new HDate(22,TISHREI,year),["Shmini Atzeret","Shmini Atzeres","שמיני עצרת"],LIGHT_CANDLES_TZEIS|CHUL_ONLY),new Event(new HDate(22,TISHREI,year),["Shmini Atzeret / Simchat Torah","Shmini Atzeres / Simchas Torah","שמיני עצרת / שמחת תורה"],YOM_TOV_ENDS|IL_ONLY),new Event(new HDate(23,TISHREI,year),["Simchat Torah","Simchas Torah","שמחת תורה"],YOM_TOV_ENDS|CHUL_ONLY),new Event(new HDate(24,KISLEV,year),["Erev Chanukah",0,"ערב חנוכה"],0),new Event(new HDate(25,KISLEV,year),Chanukah(1),0),new Event(new HDate(26,KISLEV,year),Chanukah(2),0),new Event(new HDate(27,KISLEV,year),Chanukah(3),0),new Event(new HDate(28,KISLEV,year),Chanukah(4),0),new Event(new HDate(29,KISLEV,year),Chanukah(5),0),new Event(new HDate(30,KISLEV,year),Chanukah(6),0),new Event(new HDate(31,KISLEV,year),Chanukah(7),0),new Event(new HDate(32,KISLEV,year),Chanukah(8),0),new Event(new HDate(15,months.SHVAT,year),["Tu B'Shvat",0,'ט"ו בשבט'],0),new Event(new HDate(dayOnOrBefore(SAT,pesach[abs]()-43)),[Shabbat+" Shekalim",Shabbos+" Shekalim","שבת שקלים"],0),new Event(new HDate(dayOnOrBefore(SAT,pesach[abs]()-30)),[Shabbat+" Zachor",Shabbos+" Zachor","שבת זכור"],0),new Event(new HDate(pesach[abs]()-(pesach[getDay]()==days.TUE?33:31)),["Ta'anit Esther","Ta'anis Esther","תענית אסתר"],0),new Event(new HDate(13,months.ADAR_II,year),["Erev Purim",0,"ערב פורים"],0),new Event(new HDate(14,months.ADAR_II,year),["Purim",0,"פורים"],0),new Event(new HDate(15,months.ADAR_II,year),["Shushan Purim",0,"שושן פורים"],0),new Event(new HDate(dayOnOrBefore(SAT,pesach[abs]()-14)-7),[Shabbat+" Parah",Shabbos+" Parah","שבת פרה"],0),new Event(new HDate(dayOnOrBefore(SAT,pesach[abs]()-14)),[Shabbat+" Hachodesh",Shabbos+" Hachodesh","שבת החודש"],0),new Event(new HDate(dayOnOrBefore(SAT,pesach[abs]()-1)),[Shabbat+" HaGadol",Shabbos+" HaGadol","שבת הגדול"],0),new Event(pesach.prev()[getDay]()==SAT?pesach.onOrBefore(days.THU):new HDate(14,NISAN,year),["Ta'anit Bechorot","Ta'anis Bechoros","תענית בכורות"],0),new Event(new HDate(14,NISAN,year),["Erev Pesach",0,"ערב פסח"],LIGHT_CANDLES),new Event(new HDate(15,NISAN,year),Pesach(1),LIGHT_CANDLES_TZEIS|CHUL_ONLY),new Event(new HDate(15,NISAN,year),Pesach(1),YOM_TOV_ENDS|IL_ONLY),new Event(new HDate(16,NISAN,year),Pesach(2),YOM_TOV_ENDS|CHUL_ONLY),new Event(new HDate(16,NISAN,year),CHM(Pesach(2)),IL_ONLY),new Event(new HDate(16,NISAN,year),["Start counting Omer",0,"התחלת ספירת העומר"],0),new Event(new HDate(17,NISAN,year),CHM(Pesach(3)),0),new Event(new HDate(18,NISAN,year),CHM(Pesach(4)),0),new Event(new HDate(19,NISAN,year),CHM(Pesach(5)),0),new Event(new HDate(20,NISAN,year),CHM(Pesach(6)),LIGHT_CANDLES),new Event(new HDate(21,NISAN,year),Pesach(7),LIGHT_CANDLES_TZEIS|CHUL_ONLY),new Event(new HDate(21,NISAN,year),Pesach(7),YOM_TOV_ENDS|IL_ONLY),new Event(new HDate(22,NISAN,year),Pesach(8),YOM_TOV_ENDS|CHUL_ONLY),new Event(new HDate(14,months.IYYAR,year),["Pesach Sheni",0,"פסח שני"],0),new Event(new HDate(18,months.IYYAR,year),["Lag B'Omer",0,'ל"ג בעומר'],0),new Event(new HDate(5,months.SIVAN,year),["Erev Shavuot","Erev Shavuos","ערב שבועות"],LIGHT_CANDLES),new Event(new HDate(6,months.SIVAN,year),["Shavuot 1","Shavuos 1","שבועות א'"],LIGHT_CANDLES_TZEIS|CHUL_ONLY),new Event(new HDate(6,months.SIVAN,year),["Shavuot","Shavuos","שבועות"],YOM_TOV_ENDS|IL_ONLY),new Event(new HDate(7,months.SIVAN,year),["Shavuot 2","Shavuos 2","שבועות ב'"],YOM_TOV_ENDS|CHUL_ONLY),new Event(new HDate(dayOnOrBefore(SAT,new HDate(1,TISHREI,year+1)[abs]()-4)),["Leil Selichot","Leil Selichos","ליל סליחות"],0),new Event(new HDate(29,months.ELUL,year),["Erev Rosh Hashana",0,"ערב ראש השנה"],LIGHT_CANDLES)]),tmpDate=new HDate(10,months.TEVET,year),tmpDate[getDay]()==SAT&&(tmpDate=tmpDate.next()),add(new Event(tmpDate,["Asara B'Tevet",0,"עשרה בטבת"],0)),c.LEAP(year)&&(add(new Event(new HDate(14,months.ADAR_I,year),["Purim Katan",0,"פורים קטן"],0)),add(new Event(new HDate(15,months.ADAR_I,year),["Shushan Purim Katan",0,"שושן פורים קטן"],0))),year>=5711&&(tmpDate=new HDate(27,NISAN,year),tmpDate[getDay]()==days.FRI?tmpDate=tmpDate.prev():tmpDate[getDay]()==days.SUN&&(tmpDate=tmpDate.next()),add(new Event(tmpDate,["Yom HaShoah",0,"יום השואה"],0))),add(atzmaut(year)),year>=5727&&add(new Event(new HDate(29,months.IYYAR,year),["Yom Yerushalayim",0,"יום ירושלים"],0)),tmpDate=new HDate(17,months.TAMUZ,year),tmpDate[getDay]()==SAT&&(tmpDate=tmpDate.next()),add(new Event(tmpDate,["Shiva-Asar B'Tamuz",0,"צום יז' בתמוז"],0)),tmpDate=new HDate(9,months.AV,year),tmpDate[getDay]()==SAT&&(tmpDate=tmpDate.next()),add(new Event(new HDate(dayOnOrBefore(SAT,tmpDate[abs]())),[Shabbat+" Chazon",Shabbos+" Chazon","שבת חזון"],0)),add(new Event(tmpDate.prev(),["Erev Tish'a B'Av",0,"ערב תשעה באב"],0)),add(new Event(tmpDate,["Tish'a B'Av",0,"תשעה באב"],0)),add(new Event(new HDate(dayOnOrBefore(SAT,tmpDate[abs]()+7)),[Shabbat+" Nachamu",Shabbos+" Nachamu","שבת נחמו"],0));for(var day=6;day0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[type].length),"function"==typeof console.trace&&console.trace())),this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError("listener must be a function");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit("removeListener",type,listener);else if(isObject(list)){for(i=length;i-- >0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(position<0)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit("removeListener",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)"removeListener"!==key&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events={},this}if(listeners=this._events[type],isFunction(listeners))this.removeListener(type,listeners);else if(listeners)for(;listeners.length;)this.removeListener(type,listeners[listeners.length-1]);return delete this._events[type],this},EventEmitter.prototype.listeners=function(type){var ret;return ret=this._events&&this._events[type]?isFunction(this._events[type])?[this._events[type]]:this._events[type].slice():[]},EventEmitter.prototype.listenerCount=function(type){if(this._events){var evlistener=this._events[type];if(isFunction(evlistener))return 1;if(evlistener)return evlistener.length}return 0},EventEmitter.listenerCount=function(emitter,type){return emitter.listenerCount(type)}},{}],10:[function(require,module,exports){!function(){function gematriya(num,limit){if("number"!=typeof num&&"string"!=typeof num)throw new TypeError("non-number or string given to gematriya()");var str="string"==typeof num;return str&&(num=num.replace(/('|")/g,"")),num=num.toString().split("").reverse(),!str&&limit&&(num=num.slice(0,limit)),num=num.map(function g(n,i){return str?limit&&numbers[n]1e3?g(n,i-3):letters[parseInt(n,10)*Math.pow(10,i)]}),str?num.reduce(function(o,t){return o+t},0):(num=num.reverse().join("").replace(/יה/g,"טו").replace(/יו/g,"טז").split(""),1===num.length?num.push("'"):num.length>1&&num.splice(-1,0,'"'),num.join(""))}var i,letters={},numbers={"":0,"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400,"תק":500,"תר":600,"תש":700,"תת":800,"תתק":900,"תתר":1e3};for(i in numbers)letters[numbers[i]]=i;"undefined"!=typeof module?module.exports=gematriya:window.gematriya=gematriya}()},{}],11:[function(require,module,exports){!function(){"use strict";function toJulian(date){return date.valueOf()/dayMs-.5+J1970}function fromJulian(j){return new Date((j+.5-J1970)*dayMs)}function toDays(date){return toJulian(date)-J2000}function rightAscension(l,b){return atan(sin(l)*cos(e)-tan(b)*sin(e),cos(l))}function declination(l,b){return asin(sin(b)*cos(e)+cos(b)*sin(e)*sin(l))}function azimuth(H,phi,dec){return atan(sin(H),cos(H)*sin(phi)-tan(dec)*cos(phi))}function altitude(H,phi,dec){return asin(sin(phi)*sin(dec)+cos(phi)*cos(dec)*cos(H))}function siderealTime(d,lw){return rad*(280.16+360.9856235*d)-lw}function astroRefraction(h){return h<0&&(h=0),2967e-7/Math.tan(h+.00312536/(h+.08901179))}function solarMeanAnomaly(d){return rad*(357.5291+.98560028*d)}function eclipticLongitude(M){var C=rad*(1.9148*sin(M)+.02*sin(2*M)+3e-4*sin(3*M)),P=102.9372*rad;return M+C+P+PI}function sunCoords(d){var M=solarMeanAnomaly(d),L=eclipticLongitude(M);return{dec:declination(L,0),ra:rightAscension(L,0)}}function julianCycle(d,lw){return Math.round(d-J0-lw/(2*PI))}function approxTransit(Ht,lw,n){return J0+(Ht+lw)/(2*PI)+n}function solarTransitJ(ds,M,L){return J2000+ds+.0053*sin(M)-.0069*sin(2*L)}function hourAngle(h,phi,d){return acos((sin(h)-sin(phi)*sin(d))/(cos(phi)*cos(d)))}function getSetJ(h,lw,phi,dec,n,M,L){var w=hourAngle(h,phi,dec),a=approxTransit(w,lw,n);return solarTransitJ(a,M,L)}function moonCoords(d){var L=rad*(218.316+13.176396*d),M=rad*(134.963+13.064993*d),F=rad*(93.272+13.22935*d),l=L+6.289*rad*sin(M),b=5.128*rad*sin(F),dt=385001-20905*cos(M);return{ra:rightAscension(l,b),dec:declination(l,b),dist:dt}}function hoursLater(date,h){return new Date(date.valueOf()+h*dayMs/24)}var PI=Math.PI,sin=Math.sin,cos=Math.cos,tan=Math.tan,asin=Math.asin,atan=Math.atan2,acos=Math.acos,rad=PI/180,dayMs=864e5,J1970=2440588,J2000=2451545,e=23.4397*rad,SunCalc={};SunCalc.getPosition=function(date,lat,lng){var lw=rad*-lng,phi=rad*lat,d=toDays(date),c=sunCoords(d),H=siderealTime(d,lw)-c.ra;return{azimuth:azimuth(H,phi,c.dec),altitude:altitude(H,phi,c.dec)}};var times=SunCalc.times=[[-.833,"sunrise","sunset"],[-.3,"sunriseEnd","sunsetStart"],[-6,"dawn","dusk"],[-12,"nauticalDawn","nauticalDusk"],[-18,"nightEnd","night"],[6,"goldenHourEnd","goldenHour"]];SunCalc.addTime=function(angle,riseName,setName){times.push([angle,riseName,setName])};var J0=9e-4;SunCalc.getTimes=function(date,lat,lng){var i,len,time,Jset,Jrise,lw=rad*-lng,phi=rad*lat,d=toDays(date),n=julianCycle(d,lw),ds=approxTransit(0,lw,n),M=solarMeanAnomaly(ds),L=eclipticLongitude(M),dec=declination(L,0),Jnoon=solarTransitJ(ds,M,L),result={solarNoon:fromJulian(Jnoon),nadir:fromJulian(Jnoon-.5)};for(i=0,len=times.length;i=0&&(dx=Math.sqrt(d)/(2*Math.abs(a)),x1=xe-dx,x2=xe+dx,Math.abs(x1)<=1&&roots++,Math.abs(x2)<=1&&roots++,x1<-1&&(x1=x2)),1===roots?h0<0?rise=i+x1:set=i+x1:2===roots&&(rise=i+(ye<0?x2:x1),set=i+(ye<0?x1:x2)),!rise||!set);i+=2)h0=h2;var result={};return rise&&(result.rise=hoursLater(t,rise)),set&&(result.set=hoursLater(t,set)),rise||set||(result[ye>0?"alwaysUp":"alwaysDown"]=!0),result},"object"==typeof exports&&"undefined"!=typeof module?module.exports=SunCalc:"function"==typeof define&&define.amd?define(SunCalc):window.SunCalc=SunCalc}()},{}],12:[function(require,module,exports){function Sedra(hebYr,il){il=!!il;var type,long_c=c.lngChesh(hebYr),short_k=c.shrtKis(hebYr);this.year=hebYr,type=long_c&&!short_k?COMPLETE:!long_c&&short_k?INCOMPLETE:REGULAR;var rosh_hashana=new HDate(1,c.months.TISHREI,hebYr).abs(),rosh_hashana_day=rosh_hashana%7+1;this.first_saturday=c.dayOnOrBefore(6,rosh_hashana+6);var leap=+c.LEAP(hebYr);this.type=type,this.rosh_hashana_day=rosh_hashana_day,this.leap=leap,this.il=il;var core=""+leap+rosh_hashana_day+type;if(types[core]?this.theSedraArray=types[core]:this.theSedraArray=types[core+ +il],!this.theSedraArray)throw console.log(this),new TypeError("improper sedra year type calculated.")}function D(p){return-p}function abs(year,absDate){absDate=c.dayOnOrBefore(6,absDate+6);var weekNum=(absDate-year.first_saturday)/7,index=year.theSedraArray[weekNum];return void 0===index?abs(new Sedra(year.year+1,year.il),absDate):"object"==typeof index?[index]:index>=0?[parshiot[index]]:(index=D(index),[parshiot[index],parshiot[index+1]])}var c=require("./common"),HDate=require("./hdate"),concat="concat",range=c.range,INCOMPLETE=0,REGULAR=1,COMPLETE=2,parshiot=Sedra.parshiot=[["Bereshit","Bereshis","בראשית"],["Noach",0,"נח"],["Lech-Lecha",0,"לך-לך"],["Vayera",0,"וירא"],["Chayei Sara",0,"חי שרה"],["Toldot","Toldos","תולדות"],["Vayetzei",0,"ויצא"],["Vayishlach",0,"וישלח"],["Vayeshev",0,"וישב"],["Miketz",0,"מקץ"],["Vayigash",0,"ויגש"],["Vayechi",0,"ויחי"],["Shemot","Shemos","שמות"],["Vaera",0,"וארא"],["Bo",0,"בא"],["Beshalach",0,"בשלח"],["Yitro","Yisro","יתרו"],["Mishpatim",0,"משפטים"],["Terumah",0,"תרומה"],["Tetzaveh",0,"תצוה"],["Ki Tisa","Ki Sisa","כי תשא"],["Vayakhel",0,"ויקהל"],["Pekudei",0,"פקודי"],["Vayikra",0,"ויקרא"],["Tzav",0,"צו"],["Shmini",0,"שמיני"],["Tazria",0,"תזריע"],["Metzora",0,"מצרע"],["Achrei Mot","Achrei Mos","אחרי מות"],["Kedoshim",0,"קדשים"],["Emor",0,"אמור"],["Behar",0,"בהר"],["Bechukotai","Bechukosai","בחקתי"],["Bamidbar",0,"במדבר"],["Nasso",0,"נשא"],["Beha'alotcha","Beha'aloscha","בהעלתך"],["Sh'lach",0,"שלח לך"],["Korach",0,"קורח"],["Chukat","Chukas","חקת"],["Balak",0,"בלק"],["Pinchas",0,"פינחס"],["Matot","Matos","מטות"],["Masei",0,"מסעי"],["Devarim",0,"דברים"],["Vaetchanan","V'eschanan","ואתחנן"],["Eikev",0,"עקב"],["Re'eh",0,"ראה"],["Shoftim",0,"שופטים"],["Ki Teitzei","Ki Seitzei","כי תצא"],["Ki Tavo","Ki Savo","כי תבוא"],["Nitzavim",0,"נצבים"],["Vayeilech",0,"וילך"],["Ha'Azinu",0,"האזינו"]],RH=[["Rosh Hashana",0,"ראש השנה"]],YK=[["Yom Kippur",0,"יום כיפור"]],SUKKOT=[["Sukkot","Succos","סוכות"]],CHMSUKOT=[["Chol hamoed Sukkot","Chol hamoed Succos","חול המועד סוכות"]],SHMINI=[["Shmini Atzeret","Shmini Atzeres","שמיני עצרת"]],EOY=[["End-of-Year: Simchat-Torah, Sukkot","End-of-Year: Simchas-Torah, Succos","סופשנה: סוכות וסמחת תורה"]],PESACH=[["Pesach",0,"פסח"]],CHMPESACH=[["Chol hamoed Pesach",0,"חול המועד פסח"]],PESACH7=[["Second days of Pesach",0,"שביעי של פסח"]],SHAVUOT=[["Shavuot","Shavuos","שבועות"]],types={ -"020":[51,52][concat](EOY,range(0,20),D(21),23,24,PESACH,25,D(26),D(28),30,D(31),range(33,40),D(41),range(43,49),D(50)),"0220":[51,52][concat](EOY,range(0,20),D(21),23,24,PESACH,25,D(26),D(28),30,D(31),33,SHAVUOT,range(34,37),D(38),40,D(41),range(43,49),D(50)),"0510":[52][concat](YK,EOY,range(0,20),D(21),23,24,PESACH,PESACH,25,D(26),D(28),30,D(31),range(33,40),D(41),range(43,50)),"0511":[52][concat](YK,EOY,range(0,20),D(21),23,24,PESACH,25,D(26),D(28),range(30,40),D(41),range(43,50)),"052":[52][concat](YK,CHMSUKOT,range(0,24),PESACH7,25,D(26),D(28),30,D(31),range(33,40),D(41),range(43,50)),"070":[][concat](RH,52,SUKKOT,SHMINI,range(0,20),D(21),23,24,PESACH7,25,D(26),D(28),30,D(31),range(33,40),D(41),range(43,50)),"072":[][concat](RH,52,SUKKOT,SHMINI,range(0,20),D(21),23,24,CHMPESACH,25,D(26),D(28),30,D(31),range(33,40),D(41),range(43,49),D(50)),1200:[51,52][concat](CHMSUKOT,range(0,27),CHMPESACH,range(28,33),SHAVUOT,range(34,37),D(38),40,D(41),range(43,49),D(50)),1201:[51,52][concat](CHMSUKOT,range(0,27),CHMPESACH,range(28,40),D(41),range(43,49),D(50)),1220:[51,52][concat](CHMSUKOT,range(0,27),PESACH,PESACH,range(28,40),D(41),range(43,50)),1221:[51,52][concat](CHMSUKOT,range(0,27),PESACH,range(28,50)),150:[52][concat](YK,CHMSUKOT,range(0,28),PESACH7,range(29,50)),152:[52][concat](YK,CHMSUKOT,range(0,28),CHMPESACH,range(29,49),D(50)),170:[][concat](RH,52,SUKKOT,SHMINI,range(0,27),CHMPESACH,range(28,40),D(41),range(43,49),D(50)),1720:[][concat](RH,52,SUKKOT,SHMINI,range(0,27),CHMPESACH,range(28,33),SHAVUOT,range(34,37),D(38),40,D(41),range(43,49),D(50))};types["0221"]=types["020"],types["0310"]=types["0220"],types["0311"]=types["020"],types[1310]=types[1220],types[1311]=types[1221],types[1721]=types[170],Sedra.prototype.get=function(hDate){return abs(this,hDate.abs())},module.exports=Sedra},{"./common":3,"./hdate":6}]},{},[2]); +!function e(t,n,r){function a(o,s){if(!n[o]){if(!t[o]){var u="function"==typeof require&&require;if(!s&&u)return u(o,!0);if(i)return i(o,!0);var h=new Error("Cannot find module '"+o+"'");throw h.code="MODULE_NOT_FOUND",h}var c=n[o]={exports:{}};t[o][0].call(c.exports,function(e){var n=t[o][1][e];return a(n?n:e)},c,c.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o=19440||2==o%7&&i>=9924&&!r(e)||1==o%7&&i>=16789&&r(e-1));return s+(s%7===0||s%7==3||s%7==5)}function i(e){return a(e+1)-a(e)}function o(e){return i(e)%10==5}function s(e){return i(e)%10==3}function u(e){switch(e.toLowerCase()[0]){case"n":case"נ":return"o"==e.toLowerCase()[1]?0:l.NISAN;case"i":return l.IYYAR;case"e":return l.ELUL;case"c":case"ח":return l.CHESHVAN;case"k":case"כ":return l.KISLEV;case"s":switch(e.toLowerCase()[1]){case"i":return l.SIVAN;case"h":return l.SHVAT;default:return 0}case"t":switch(e.toLowerCase()[1]){case"a":return l.TAMUZ;case"i":return l.TISHREI;case"e":return l.TEVET}break;case"a":switch(e.toLowerCase()[1]){case"v":return l.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?l.ADAR_I:l.ADAR_II}break;case"ס":return l.SIVAN;case"ש":return l.SHVAT;case"א":switch(e.toLowerCase()[1]){case"ב":return l.AV;case"ד":return/(2|ii|b|ב)$/i.test(e)?l.ADAR_I:l.ADAR_II;case"י":return l.IYYAR;case"ל":return l.ELUL}break;case"ת":switch(e.toLowerCase()[1]){case"מ":return l.TAMUZ;case"ש":return l.TISHREI}}return 0}function h(e,t,n){if(null===e)throw new TypeError("self is null");switch(typeof t){case"function":break;case"string":case"number":return e[t];case"boolean":t=t?function(e){return e}:function(e){return!e};break;case"object":var r=t;if(t instanceof RegExp){t=function(e){return r.test(e)};break}if(Array.isArray(t)){t=function(e,t){return r.indexOf(t)>-1};break}default:throw new TypeError("fun is not a supported type")}var a={},i=Object(e);for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];if(t.call(n,s,o,i)){var u=Object.getOwnPropertyDescriptor(i,o);u.value=s,Object.defineProperty(a,o,u)}}if(Array.isArray(e)||"string"==typeof e){var h=[];for(o in a)h[Number(o)]=a[o];a=h.filter(function(e){return e}),"string"==typeof e&&(a=a.join(""))}return a}var c=e("gematriya"),f="charCodeAt",l=n.months={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},y=[["",0,""],["Nisan",0,"ניסן"],["Iyyar",0,"אייר"],["Sivan",0,"סיון"],["Tamuz",0,"תמוז"],["Av",0,"אב"],["Elul",0,"אלול"],["Tishrei",0,"תשרי"],["Cheshvan",0,"חשון"],["Kislev",0,"כסלו"],["Tevet",0,"טבת"],["Sh'vat",0,"שבט"]];n.monthNames=[y.concat([["Adar",0,"אדר"],["Nisan",0,"ניסן"]]),y.concat([["Adar 1",0,"אדר א'"],["Adar 2",0,"אדר ב'"],["Nisan",0,"ניסן"]])],n.days={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6},n.LANG=function(e,t){return"h"==t&&e[2]||"a"==t&&e[1]||e[0]},n.LEAP=r,n.MONTH_CNT=function(e){return 12+r(e)},n.daysInMonth=function(e,t){return 30-(e==l.IYYAR||e==l.TAMUZ||e==l.ELUL||e==l.TEVET||e==l.ADAR_II||e==l.ADAR_I&&!r(t)||e==l.CHESHVAN&&!o(t)||e==l.KISLEV&&s(t))},n.monthNum=function(e){return"number"==typeof e?e:e[f](0)>=1488&&e[f](0)<=1514&&/('|")/.test(e)?c(e):e[f](0)>=48&&e[f](0)<=57?parseInt(e,10):u(e)},n.dayYearNum=function(e){return"number"==typeof e?e:e[f](0)>=1488&&e[f](0)<=1514?c(e,!0):parseInt(e,10)},n.hebElapsedDays=a,n.daysInYear=i,n.lngChesh=o,n.shrtKis=s,n.monthFromName=u,n.dayOnOrBefore=function(e,t){return t-(t-e)%7},n.map=function(e,t,n){if(null===e||"function"!=typeof t)throw new TypeError;var r=Object(e),a={};for(var i in r)r.hasOwnProperty(i)&&(a[i]=t.call(n,r[i],i,r));if(Array.isArray(e)||"string"==typeof e){var o=[];for(i in a)o[Number(i)]=a[i];a=h(o,!0),"string"==typeof e&&(a=a.join(""))}return a},n.filter=h,n.range=function(e,t,n){n=n||1,n<0&&(n=0-n);var r=[],a=e;if(e=t;a-=n)r.push(a);return r}},{gematriya:10}],4:[function(e,t,n){var r=e("./common"),a=e("./greg"),i=e("gematriya"),o=[["Berachot","Berachos","ברכות",64],["Shabbat","Shabbos","שבת",157],["Eruvin","Eruvin","עירובין",105],["Pesachim",0,"פסחים",121],["Shekalim",0,"שקלים",22],["Yoma",0,"יומא",88],["Sukkah",0,"סוכה",56],["Beitzah",0,"ביצה",40],["Rosh Hashana",0,"ראש השנה",35],["Taanit","Taanis","תענית",31],["Megillah",0,"מגילה",32],["Moed Katan",0,"מועד קטן",29],["Chagigah",0,"חגיגה",27],["Yevamot","Yevamos","יבמות",122],["Ketubot","Kesubos","כתובות",112],["Nedarim",0,"נדרים",91],["Nazir",0,"נזיר",66],["Sotah",0,"סוטה",49],["Gitin",0,"גיטין",90],["Kiddushin",0,"קידושין",82],["Baba Kamma",0,"בבא קמא",119],["Baba Metzia",0,"בבא מציעא",119],["Baba Batra","Baba Basra","בבא בתרא",176],["Sanhedrin",0,"סנהדרין",113],["Makkot","Makkos","מכות",24],["Shevuot","Shevuos","שבועות",49],["Avodah Zarah",0,"עבודה זרה",76],["Horayot","Horayos","הוריות",14],["Zevachim",0,"זבחים",120],["Menachot","Menachos","מנחות",110],["Chullin",0,"חולין",142],["Bechorot","Bechoros","בכורות",61],["Arachin",0,"ערכין",34],["Temurah",0,"תמורה",34],["Keritot","Kerisos","כריתות",28],["Meilah",0,"מעילה",22],["Kinnim",0,"קנים",4],["Tamid",0,"תמיד",10],["Midot","Midos","מדות",4],["Niddah",0,"נדה",73]].map(function(e){return{name:e.slice(0,3),blatt:e[3]}});n.dafyomi=function(e){var t,n,r,i,s,u,h,c,f,l=40;if(!(e instanceof Date))throw new TypeError("non-date given to dafyomi");if(r=a.greg2abs(new Date(1923,8,11)),i=a.greg2abs(new Date(1975,5,24)),c=a.greg2abs(e),c=i?(t=8+(c-i)/2711,n=(c-i)%2711):(t=1+(c-r)/2702,n=(c-r)%2702),s=f=0,u=-1,t<=7?o[4].blatt=13:o[4].blatt=22,h=0;h1&&(t-=i((4*(e.getMonth()+1)+23)/10),a(e.getFullYear())&&t++),t}function a(e){return!(e%4||!(e%100)&&e%400)}var i=Math.floor,o=[30,31],s=[0,31,28,31].concat(o,o,31,o,o),u=[s.slice()];s[2]++,u.push(s),n.daysInMonth=function(e,t){return u[+a(t)][e]},n.monthNames=["","January","February","March","April","May","June","July","August","September","October","November","December"],n.lookupMonthNum=function(e){return new Date(e+" 1").getMonth()+1},n.dayOfYear=r,n.LEAP=a,n.greg2abs=function(e){var t=e.getFullYear()-1;return r(e)+365*t+(i(t/4)-i(t/100)+i(t/400))},n.abs2greg=function(e){var t=e-1,n=i(t/146097),r=i(t%146097),a=i(r/36524),o=r%36524,s=i(o/1461),u=o%1461,h=i(u/365),c=u%365+1,f=400*n+100*a+4*s+h;return 4==a||4==h?new Date(f,11,31):new Date(new Date(++f,0,c).setFullYear(f))}},{}],6:[function(e,t,n){function r(e,t,n){var a=this;switch(arguments.length){case 0:return new r(new Date);case 1:if("undefined"==typeof e)return new r;if(e instanceof Date){var i=u(y.greg2abs(e));return i}if(e instanceof r){var i=new r(e[p](),e[v](),e[g]());return i.il=e.il,i.setLocation(i.lat,i.long),i}if("string"==typeof e){switch(e.toLowerCase().trim()){case"today":return new r;case"yesterday":return(new r).prev();case"tomorrow":return(new r).next()}if(/\s/.test(e)){var o=e.split(/\s+/);if(2==o.length)return new r(o[0],o[1]);if(3==o.length)return new r(o[0],o[1],o[2]);if(4==o.length)return/i/i.test(o[2])&&(o[2]=o[2].length),new r(o[0],o[1]+o[2],o[3])}}else if("number"==typeof e)return u(e);throw new TypeError("HDate called with bad argument");case 2:return new r(e,t,(new r)[g]());case 3:a.day=a.month=1,a.year=l.dayYearNum(n),a.setMonth(l.monthNum(t)),a.setDate(l.dayYearNum(e));break;default:throw new TypeError("HDate called with bad arguments")}return a.setLocation.apply(a,r.defaultLocation)}function a(e){o(e),i(e)}function i(e){e.day<1&&(e.month==_&&(e.year-=1),e.day+=T(e.month,e.year),e.month-=1,a(e)),e.day>T(e.month,e.year)&&(e.month==E.ELUL&&(e.year+=1),e.day-=T(e.month,e.year),e.month+=1,a(e)),o(e)}function o(e){e.month!=E.ADAR_II||e.isLeapYear()||(e.month-=1,a(e)),e.month<1&&(e.month+=S(e.year),e.year-=1,a(e)),e.month>S(e.year)&&(e.month-=S(e.year),e.year+=1,a(e))}function s(e){var t,n=e[p](),r=e[g]();if(e[v]()<_){for(t=_;t<=S(r);t++)n+=T(t,r);for(t=E.NISAN;t=10555144)throw new RangeError("parameter to abs2hebrew "+e+" out of range");for(n=y.abs2greg(e),t=new r(1,_,i=3760+n[g]());e>=s(t.setFullYear(i+1));)i++;for(a=i>4634&&i<10666?o[n[v]()]:_;e>s(t=new r(T(a,i),a,i));)a=a%S(i)+1;return t.setLocation.apply(t.setDate(e-s(t.setDate(1))+1),r.defaultLocation)}function h(e){var t=e.greg();return m.getTimes(new Date(t.getFullYear(),t.getMonth(),t.getDate(),12,0,0,0,0),e.lat,e.long)}function c(e,t){return new Date(e.sunrise()[b]()+e[L]()*t)}function f(e,t,n){return new r(M(e,t[A]()+n))}var l=e("./common"),y=e("./greg"),m=e("suncalc"),d=e("./cities"),w=e("gematriya");m.addTime(-16.1,"alot_hashachar",0),m.addTime(-11.5,"misheyakir",0),m.addTime(-10.2,"misheyakir_machmir",0),m.addTime(-8.5,0,"tzeit");var g="getFullYear",v="getMonth",p="getDate",b="getTime",A="abs",L="hour",E=l.months,_=E.TISHREI,S=l.MONTH_CNT,T=l.daysInMonth,M=l.dayOnOrBefore,N=r.prototype;r.defaultLocation=[0,0],Object.defineProperty(r,"defaultCity",{enumerable:!0,configurable:!0,get:function(){return d.nearest(r.defaultLocation[0],r.defaultLocation[1])},set:function(e){r.defaultLocation=d.getCity(e).slice(0,2)}}),N[g]=function(){return this.year},N.isLeapYear=function(){return l.LEAP(this.year)},N[v]=function(){return this.month},N.getTishreiMonth=function(){var e=S(this[g]());return(this[v]()+e-6)%e||e},N.daysInMonth=function(){return T(this[v](),this[g]())},N[p]=function(){return this.day},N.getDay=function(){return this.greg().getDay()},N.setFullYear=function(e){return this.year=e,a(this),this},N.setMonth=function(e){return this.month=l.monthNum(e),a(this),this},N.setTishreiMonth=function(e){return this.setMonth((e+6)%S(this[g]())||13)},N.setDate=function(e){return this.day=e,a(this),this},N.greg=function(){return y.abs2greg(s(this))},N.gregEve=function(){return this.prev().sunset()},N[A]=function(){return s(this)},N.toString=function(e){return l.LANG([this[p](),null,w(this[p]())],e)+" "+this.getMonthName(e)+" "+l.LANG([this[g](),null,w(this[g]())],e)},N.getMonthName=function(e){return l.LANG(l.monthNames[+this.isLeapYear()][this[v]()],e)},N.setCity=function(e){return this.setLocation(d.getCity(e))},N.setLocation=function(e,t){if("object"!=typeof e||Array.isArray(e)||(t=e.long,e=e.lat),Array.isArray(e)&&"undefined"==typeof t&&(t=e[0],e=e[1]),Array.isArray(e)&&(e=(60*e[0]+e[1])/60),Array.isArray(t)&&(t=(60*t[0]+t[1])/60),"number"!=typeof e)throw new TypeError("incorrect lat type passed to HDate.setLocation()");if("number"!=typeof t)throw new TypeError("incorrect long type passed to HDate.setLocation()");return this.lat=e,this.long=t,this.il=d.getCity(d.nearest(e,t))[2],this},N.sunrise=function(){return h(this).sunrise},N.sunset=function(){return h(this).sunset},N[L]=function(){return(this.sunset()-this.sunrise())/12},N.hourMins=function(){return this[L]()/6e4},N.nightHour=function(){return(this.sunrise()-this.gregEve())/12},N.nightHourMins=function(){return this.nightHour()/6e4};var I={chatzot:function(e){return c(e,6)},chatzot_night:function(e){return new Date(e.sunrise()[b]()-6*e.nightHour())},alot_hashachar:function(e){return h(e).alot_hashachar},alot_hashacher:function(e){return h(e).alot_hashachar},misheyakir:function(e){return h(e).misheyakir},misheyakir_machmir:function(e){return h(e).misheyakir_machmir},sof_zman_shma:function(e){return c(e,3)},sof_zman_tfilla:function(e){return c(e,4)},mincha_gedola:function(e){return c(e,6.5)},mincha_ketana:function(e){return c(e,9.5)},plag_hamincha:function(e){return c(e,10.75)},tzeit:function(e){return h(e).tzeit},neitz_hachama:function(e){return e.sunrise()},shkiah:function(e){return e.sunset()}};N.getZemanim=function(){return l.map(I,function(e){return e(this)},this)},r.addZeman=function(e,t){I[e]=t},N.next=function(){return u(this.abs()+1).setLocation(this.lat,this.long)},N.prev=function(){return u(this.abs()-1).setLocation(this.lat,this.long)},N.isSameDate=function(e){return e instanceof r&&(e[g]()==-1&&(e=new r(e).setFullYear(this[g]())),this[A]()==e[A]())},N.before=function(e){return f(e,this,-1)},N.onOrBefore=function(e){return f(e,this,0)},N.nearest=function(e){return f(e,this,3)},N.onOrAfter=function(e){return f(e,this,6)},N.after=function(e){return f(e,this,7)},t.exports=r},{"./cities":1,"./common":3,"./greg":5,gematriya:10,suncalc:11}],7:[function(e,t,n){function r(e,t){return{enumerable:!0,configurable:!0,get:e,set:t}}function a(e,t){for(var n in t)e[n]=t[n];return e}function i(e,t){var n=this;if(e||(e=(new c)[T]()),"number"!=typeof e)throw new p("year to Hebcal() is not a number");if(n.year=e,!t)return new i(e,h.range(1,h.MONTH_CNT(e)));if("string"==typeof t&&(t=h.monthFromName(t)),"number"==typeof t&&(t=[t]),!Array.isArray(t))throw new p("month to Hebcal is not a valid type");n.months=t[E](function(t){var r=new o(t,e);return v(r,"__year",{configurable:!0,writable:!0,value:n}),r}),n.holidays=f.year(e),n[N]=h.daysInYear(e),v(n,"il",r(function(){return n[S](1).il},function(e){n.months.forEach(function(t){t.il=e})})),v(n,"lat",r(function(){return n[S](1).lat},function(e){n.months.forEach(function(t){t.lat=e})})),v(n,"long",r(function(){return n[S](1).long},function(e){n.months.forEach(function(t){t.long=e})}))}function o(e,t){var n=this;if(e=h.monthNum(e),"number"!=typeof e)throw new p("month to Hebcal.Month is not a valid type");if("number"!=typeof t)throw new p("year to Hebcal.Month is not a number");return n.month=e,n.year=t,n.days=h.range(1,h.daysInMonth(e,t))[E](function(r){var a=new c(r,e,t);return v(a,"__month",{configurable:!0,writable:!0,value:n}),a}),n[N]=n.days[N],n.holidays=h.filter(f.year(t),function(t){return t[0].date[S]()==e}),v(n,"il",r(function(){return n[_](1).il},function(e){n.days.forEach(function(t){t.il=e})})),v(n,"lat",r(function(){return n[_](1).lat},function(e){n.days.forEach(function(t){t.lat=e})})),v(n,"long",r(function(){return n[_](1).long},function(e){n.days.forEach(function(t){t.long=e})})),n}function s(e,t){var n=this;if(e||(e=(new Date)[T]()),"string"==typeof e){var i=new Date(e);return t=e.indexOf(" ")+1||e.indexOf("-")+1||e.indexOf("/")+1?i[S]()+1:h.range(1,12),new s(i[T](),t)}if("number"!=typeof e)throw new p("year to Hebcal.GregYear() is not a number");if(n.year=e,!t)return new s(e,h.range(1,12));if("string"==typeof t&&(t=d.lookupMonthName(t)),"number"==typeof t&&(t=[t]),!Array.isArray(t))throw new p("month to Hebcal.GregYear() is not a valid type");return n.months=t[E](function(t){var r=new u(t,e);return v(r,"__year",{configurable:!0,writable:!0,value:n}),r}),n.hebyears=[].concat.apply([],n.months[E](function(e){return e.hebmonths[E](function(e){return e.year})})).filter(function(e,t,n){return n.indexOf(e)===t}),n.holidays=h.filter(f.year(n.hebyears[0]),function(t){return t[0].date.greg()[T]()===e&&n.months.filter(function(e){return e.month===t[0].date.greg()[S]()+1})[N]}),n.hebyears[1]&&a(n.holidays,h.filter(f.year(n.hebyears[1]),function(t){return t[0].date.greg()[T]()===e&&n.months.filter(function(e){return e.month===t[0].date.greg()[S]()+1})[N]})),n[N]=365+d.LEAP(e),v(n,"il",r(function(){return n[S](1).il},function(e){n.months.forEach(function(t){t.il=e})})),v(n,"lat",r(function(){return n[S](1).lat},function(e){n.months.forEach(function(t){t.lat=e})})),v(n,"long",r(function(){return n[S](1).long},function(e){n.months.forEach(function(t){t.long=e})})),n}function u(e,t){var n=this;if("string"==typeof e&&(e=d.lookupMonthNum(e)),"number"!=typeof e)throw new p("month to Hebcal.GregMonth is not a valid type");if("number"!=typeof t)throw new p("year to Hebcal.GregMonth is not a number");return n.year=t,n.month=e,n.days=h.range(1,d.daysInMonth(e,t))[E](function(r){var a=new c(new Date(t,e-1,r));return v(a,"__gregmonth",{configurable:!0,writable:!0,value:n}),a}),n[N]=n.days[N],n.hebmonths=[{month:n[_](1)[S](),year:n[_](1)[T]()},{month:n[_](-1)[S](),year:n[_](-1)[T]()}].filter(function(e,t,n){return 0===t||e.month!=n[0].month}),v(n,"il",r(function(){return n[_](1).il},function(e){n.days.forEach(function(t){t.il=e})})),v(n,"lat",r(function(){return n[_](1).lat},function(e){n.days.forEach(function(t){t.lat=e})})),v(n,"long",r(function(){return n[_](1).long},function(e){n.days.forEach(function(t){t.long=e})})),n}var h=e("./common"),c=e("./hdate"),f=e("./holidays"),l=e("./sedra"),y=e("./dafyomi"),m=e("./cities"),d=e("./greg"),w=e("events").EventEmitter,g=e("gematriya"),v=Object.defineProperty,p=TypeError,b="find",A="strings",L="getYearObject",E="map",_="getDay",S="getMonth",T="getFullYear",M="isLeapYear",N="length",I="next",H="prev",D=h.months,C=D.TISHREI,O=D.NISAN,Y=i.prototype,k=o.prototype,R=s.prototype,V=u.prototype,P=c.prototype;Y[M]=P[M],Y.setCity=function(e){return this.months.forEach(function(t){t.setCity(e)}),this},Y.setLocation=function(e,t){return this.months.forEach(function(n){n.setLocation(e,t)}),this},Y[I]=function(){return new i(this.year+1)},Y[H]=function(){return new i(this.year-1)},Y[S]=function(e){var t=this.months;return e=h.monthNum(e),e>this.months[N]?this[I]()[S](e-t[N]):t[e>0?e-1:t[N]+e]},Y[_]=function(e){var t=this;if(e>t[N])return null;if(e<0)return t[_](t[N]-e);var n=t[b](29,D.ELUL)[0].abs()+1-t[b](1,O)[0].abs();return e<=n?t[S](O)[_](e):t[S](C)[_](e-n)},Y.days=function(){return[].concat.apply([],this.months[E](function(e){return e.days}))},Y[E]=function(){return[][E].apply(this.days(),arguments)},Y.filter=function(){return[].filter.apply(this.days(),arguments)},Y.addHoliday=function(e){if(!(e instanceof f.Event))throw new p("non-Event passed to addHoliday()");return this.holidays.add(e),this},Y.findParsha=function(e,t){var n=t?[t]:["s","a","h"],r=this.filter(function(t){return Math.max.apply(null,n.map(function(n){return t.getSedra(n).indexOf(e)+1}))});return r[r[N]-1]},Y.findSedra=Y.findParsha,Y[b]=function e(t,n){var r=this;if(1===arguments[N]){if("string"==typeof t)return e[A].call(r,t);if(Array.isArray(t))return[].concat.apply([],t[E](function(e){return r[b][Array.isArray(e)?"apply":"call"](r,e)}));if(t instanceof c)return r[b](t.getDate(),t[S]());if(t instanceof Date)return r[b](new c(t))}else if(2==arguments[N]){if(n instanceof o)return n[b](t);if(Array.isArray(n))return[].concat.apply([],n[E](function(e){return r[b](t,e)}));if("string"==typeof n)return r[b](t,h.monthNum(n));if("number"==typeof n)return r[b](t,r[S](n))}return[]},Y[b][A]=function e(t){var n=t.split(/\s+/),r=e[t.replace(/\s/g,"_").toLowerCase()];if(!n[N])return[];if(r)return r.call(this);try{return this[b](new c(t))}catch(e){return n[N]-1?this[b].apply(this,n):[]}},Y[b][A].rosh_chodesh=function(){return this[b]("Rosh Chodesh",h.range(1,this.months[N]))},Y[b][A].holidays=function(){return[].concat.apply([],this.holidays[E](function(e){return this[b](e.date)},this))},Y[b][A].omer=function(){return this[b](h.range(16,64),O)},Y[b][A].today=function(){return this[b](new c)},Y[b][A].yesterday=function(){return[this[b]("today")[0][H]()]},Y[b][A].tomorrow=function(){return[this[b]("today")[0][I]()]},Y[b][A].pesach=function(){return this[b](h.range(15,23-this.il),O)},Y[b][A].sukkot=function(){return this[b](h.range(15,24-this.il),C)},Y[b][A].succot=Y[b][A].succos=Y[b][A].sukkos=Y[b][A].sukkot,Y[b][A].shavuot=function(){return this[b](h.range(6,7-this.il),D.SIVAN)},Y[b][A].shavuos=Y[b][A].shavuot,Y[b][A].rosh_hashana=function(){return this[b](h.range(1,2),C)},Y[b][A].rosh_hashanah=Y[b][A].rosh_hashana,i.addZeman=c.addZeman,i.cities=m,i.range=h.range,i.gematriya=g,i.holidays=h.filter(f,["masks","Event"]),i.parshiot=l.parshiot,i.LANGUAGE=h.LANG,i[E]=h[E],i.filter=h.filter,v(i,"defaultLocation",r(function(){return c.defaultLocation},function(e){i.events.emit("locationChange",c.defaultLocation),c.defaultLocation=e})),v(i,"defaultCity",r(function(){return c.defaultCity},function(e){i.defaultLocation=m.getCity(e).slice(0,2)})),v(i,"candleLighting",r(function(){return f.Event.candleLighting},function(e){f.Event.candleLighting=e})),v(i,"havdalah",r(function(){return f.Event.havdalah},function(e){f.Event.havdalah=e})),i.Month=o,k[M]=P[M],k[H]=function(){var e=this,t=e[L]();return 1===e.month?t[S](-1):e.month===C?t[H]()[S](D.ELUL):t[S](e.month-1)},k[I]=function(){var e=this,t=e[L]();return e.month===h.MONTH_CNT(e.year)?t[S](1):e.month===D.ELUL?t[I]()[S](C):t[S](e.month+1)},k[_]=function(e){var t=this.days;return e=h.dayYearNum(e),e>t[N]?this[I]()[_](e-t[N]):t[e>0?e-1:t[N]+e]},k[L]=function(){return this.__year||new i(this.year)},k.getName=function(e){return h.LANG(h.monthNames[+this[M]()][this.month],e)},k.rosh_chodesh=function(){var e=this[H]();return 30==e[N]?[e[_](-1),this[_](1)]:[this[_](1)]},k.setCity=function(e){return this.days.forEach(function(t){t.setCity(e)}),this},k.setLocation=function(e,t){return this.days.forEach(function(n){n.setLocation(e,t)}),this},k[E]=function(){return[][E].apply(this.days,arguments)},k.molad=function(){var e,t,n,r,a,i,o={},s=parseInt;i=this.month-7,e=this.year-1,i<0&&(i+=h.MONTH_CNT(e+1)),t=s(i+235*(e/19)),n=s(204+793*(t%1080)),r=s(5+12*t+793*(t/1080)-6),a=s(n%1080+1080*(r%24)),o.doy=new c(s(1+29*t+r/24)).getDay(),o.hour=Math.round(r%24);var u=s(a%1080);o.minutes=s(u/18),o.chalakim=u%18;var f=this.prev().find.strings.shabbat_mevarchim._calc.call(this)[0].onOrAfter(o.doy).greg();return f.setHours(o.hour),f.setMinutes(o.minutes),f.setSeconds(3.33*o.chalakim),o.day=f,o},k[b]=function e(t){var n=this;return"number"==typeof t?[n[_](t)]:"string"==typeof t?e[A].call(n,t):Array.isArray(t)?[].concat.apply([],t[E](function(e){return n[b](e)})):t instanceof c&&t[T]()==n.year&&t[S]()==n.month?n[b](t.getDate()):t instanceof Date?n[b](new c(t)):[]},k[b][A]=function e(t){var n=e[t.replace(/\s/g,"_").toLowerCase()];if(n)return n.call(this);try{return this[b](new c(t))}catch(e){var r=h.dayYearNum(t);return r?this[b](r):[]}},k[b][A].rosh_chodesh=function(){return this.rosh_chodesh()},k[b][A].shabbat_mevarchim=function e(){return this.month===D.ELUL?[]:e._calc.call(this)},k[b][A].shabbat_mevarchim._calc=function(){return this[b](this[_](29).onOrBefore(h.days.SAT))},k[b][A].shabbos_mevarchim=k[b][A].shabbos_mevorchim=k[b][A].shabbat_mevarchim,i.HDate=c,P.getMonthObject=function(){return this.__month||new o(this[S](),this[T]())},P[L]=function(){return this.getMonthObject()[L]()},function(){var e={};[H,I].forEach(function(t){e[t]=P[t],P[t]=function(){var n=e[t].call(this);return this.__month?this[L]()[b](n)[0]:n}})}(),P.getSedra=function(){var e={};return function(t){var n=e[this[T]()];return n&&n.il==this.il||(n=e[this[T]()]=new l(this[T](),this.il)),n.get(this)[E](function(e){return h.LANG(e,t)})}}(),P.getParsha=P.getSedra,P.holidays=function(e){var t=this,n=t[L]().holidays[t];return n?n.filter(function(n){return!!e||!n.routine()&&n.is(t)})[E](function(e){return e.date.setLocation(t),e}):[]},["candleLighting","havdalah"].forEach(function(e){P[e]=function(){var t=this,n=t.holidays(!0).filter(function(e){return e.is(t)});return n.length&&(n=h.filter(n.map(function(t){return t[e]()}),!0)),n.length?new Date(Math.max.apply(null,n)):null}}),P.omer=function(){var e=this,t=e.greg().getTime(),n=e[T]();return t>new c(15,O,n).greg().getTime()&&t=5727?y[b](29,D.IYYAR):[])),u=i.yes_prev[m]=e([].concat(y[b](-1,D.ELUL),y[b](9,D.TISHREI),y[b](14,D.IYYAR))),i.il[m]=l.il),o=o.indexOf(l.abs())>-1,s=s.indexOf(l.abs())>-1,u=u.indexOf(l.abs()+1)>-1,o)return t;var d=(!s&&a)|(6!=l[_]()&&r);return d|=c&&!u?l[I]().tachanun(!0)&r&&n:5!=l[_]()&&n,d==a?t:d}var t=e.NONE=0,n=e.MINCHA=1,r=e.SHACHARIT=2,a=e.ALL_CONGS=4,i={all:{},some:{},yes_prev:{},il:{}};return e}(),P.hallel=function(){function e(){var e=this,i=e[L](),o=i.year,s=a.il[o]==e.il&&a.whole[o]||(a.whole[o]=[].concat(i[b](h.range(25,33),D.KISLEV),i[b]([15,e.il?null:16],O),i[b]("Shavuot"),i[b]("Sukkot"),f.atzmaut(o)[1].date||[],o>=5727?i[b](29,D.IYYAR):[])[E](function(e){return e.abs()})),u=a.il[o]==e.il&&a.half[o]||(a.half[o]=[].concat(i[b]("Rosh Chodesh").filter(function(e){return e[S]()!=C}),i[b](h.range(17-e.il,23-e.il),O))[E](function(e){return e.abs()}));return a.il[o]=e.il,s.indexOf(e.abs())>-1&&r||u.indexOf(e.abs())>-1&&n||t}var t=e.NONE=0,n=e.HALF=1,r=e.WHOLE=2,a={whole:{},half:{},il:{}};return e}(),function(e){function t(){function t(e,t){return h.filter(h[E](e,function(e){return e-r}),function(e){return e>0&&e-t<0})}var n=new c;i.isSameDate(n)||(e.emit("dayChange"),i=n);var r=new Date,a=t(n.getZemanim(),e.beforeZeman),o=t(e.customs,e.refreshInterval);for(var s in a)e.emit("almostZeman",s,a[s]),a[s]t[N]?this[I]()[S](e-t[N]):t[e>0?e-1:t[N]+e]},a(R,{days:Y.days,map:Y[E],filter:Y.filter,addHoliday:Y.addHoliday}),i.GregMonth=u,V[M]=function(){return d.LEAP(this.year)},V[H]=function(){return 1===this.month?this[L]()[H]()[S](-1):this[L]()[S](this.month-1)},V[I]=function(){return this[L]()[S](this.month+1)},V[_]=function(e){return e>this.days[N]?this[I]()[_](e-this.days[N]):this.days[e>0?e-1:this.days[N]+e]},V[L]=function(){return this.__year||new s(this.year)},V.getName=function(){return d.monthNames[this.month]},V.setCity=k.setCity,V.setLocation=k.setLocation,V[E]=k[E],P.getGregMonthObject=function(){return this.__gregmonth||new u(this.greg()[S]()+1,this.greg()[T]())},P.getGregYearObject=function(){return this.getGregMonthObject()[L]()},t.exports=i},{"./cities":1,"./common":3,"./dafyomi":4,"./greg":5,"./hdate":6,"./holidays":8,"./sedra":12,events:9,gematriya:10}],8:[function(e,t,n){function r(e){return["Chanukah: Candle "+e,0,"חנוכה: נר "+f(e)]}function a(e){return[e[0]+' (CH"M)',e[1]?e[1]+' (CH"M)':e[1],e[2]?e[2]+' )חה"ם(':e[2]]}function i(e){return["Sukkot: "+e,"Succos: "+e,"סוכות יום "+f(e)]}function o(e){return["Pesach: "+e,0,"פסח יום "+f(e)]}function s(e,t,n){var r=this;r.date=new c(e),r.desc="object"!=typeof t?[t]:t,r.USER_EVENT=!!(n&_),r.LIGHT_CANDLES=!!(n&S),r.YOM_TOV_ENDS=!!(n&T),r.CHUL_ONLY=!!(n&M),r.IL_ONLY=!!(n&N),r.LIGHT_CANDLES_TZEIS=!!(n&I)}function u(e){if(e>=5708){var t=new c(1,m.IYYAR,e),n=new c(15,v,e);return n[b]()==d.SUN?t.setDate(2):n[b]()==p?t.setDate(3):e<5764?t.setDate(4):n[b]()==d.TUE?t.setDate(5):t.setDate(4),[new s(t,["Yom HaZikaron",0,"יום הזיכרון"],0),new s(t.next(),["Yom HaAtzma'ut",0,"יום העצמאות"],0)]}return[]}var h=e("./common"),c=e("./hdate"),f=e("gematriya"),l={},y=h.dayOnOrBefore,m=h.months,d=h.days,w=m.TISHREI,g=m.KISLEV,v=m.NISAN,p=d.SAT,b="getDay",A="abs",L="Shabbat",E="Shabbos",_=1,S=2,T=4,M=8,N=16,I=32;n.masks={USER_EVENT:_,LIGHT_CANDLES:S,YOM_TOV_ENDS:T,CHUL_ONLY:M,IL_ONLY:N,LIGHT_CANDLES_TZEIS:I},s.prototype.is=function(e,t){return e=new c(e),myDate=this.date,arguments.length<2&&(t=e.il),e.getDate()==myDate.getDate()&&e.getMonth()==myDate.getMonth()&&(e.getFullYear()==myDate.getFullYear()&&!(t&&this.CHUL_ONLY||!t&&this.IL_ONLY))},s.prototype.masks=function(){var e=this;return(e.USER_EVENT&&_)|(e.LIGHT_CANDLES&&S)|(e.YOM_TOV_ENDS&&T)|(e.CHUL_ONLY&&M)|(e.IL_ONLY&&N)|(e.LIGHT_CANDLES_TZEIS&&I)}, +s.prototype.getDesc=function(e){return h.LANG(this.desc,e)},s.prototype.candleLighting=function(){var e=this.date;return this.LIGHT_CANDLES?new Date(e.sunset()-60*s.candleLighting*1e3):this.LIGHT_CANDLES_TZEIS?e.getZemanim().tzeit:null},s.prototype.havdalah=function(){return this.YOM_TOV_ENDS?new Date(this.date.sunset().getTime()+60*s.havdalah*1e3):null},s.prototype.routine=function(){function e(){return!!~e.names.indexOf(this.getDesc("s"))}return e.names=[L,"Erev "+L],e}(),s.isIL=!1,s.candleLighting=18,s.havdalah=42,n.Event=s,n.year=function(e){function t(e){Array.isArray(e)?e.forEach(function(e){t(e)}):H[e.date]?H[e.date].push(e):H[e.date]=[e]}if(l[e])return l[e];var n,f=new c(1,w,e),_=new c(15,v,e),H={};Object.defineProperty(H,"add",{value:t}),t([new s(f,["Rosh Hashana 1",0,"ראש השנה א'"],I),new s(new c(2,w,e),["Rosh Hashana 2",0,"ראש השנה ב'"],T),new s(new c(3+(f[b]()==d.THU),w,e),["Tzom Gedaliah",0,"צום גדליה"],0),new s(new c(9,w,e),["Erev Yom Kippur",0,"ערב יום כיפור"],S),new s(new c(y(p,7+f[A]())),[L+" Shuva",E+" Shuvah","שבת שובה"],0),new s(new c(10,w,e),["Yom Kippur",0,"יום כיפור"],T),new s(new c(14,w,e),["Erev Sukkot","Erev Succos","ערב סוכות"],S),new s(new c(15,w,e),i(1),I|M),new s(new c(15,w,e),i(1),T|N),new s(new c(16,w,e),i(2),T|M),new s(new c(16,w,e),a(i(2)),N),new s(new c(17,w,e),a(i(3)),0),new s(new c(18,w,e),a(i(4)),0),new s(new c(19,w,e),a(i(5)),0),new s(new c(20,w,e),a(i(6)),0),new s(new c(21,w,e),["Sukkot: 7 (Hoshana Raba)","Succos: 7 (Hoshana Raba)","סוכות יום ז' )הושנע רבה("],S),new s(new c(22,w,e),["Shmini Atzeret","Shmini Atzeres","שמיני עצרת"],I|M),new s(new c(22,w,e),["Shmini Atzeret / Simchat Torah","Shmini Atzeres / Simchas Torah","שמיני עצרת / שמחת תורה"],T|N),new s(new c(23,w,e),["Simchat Torah","Simchas Torah","שמחת תורה"],T|M),new s(new c(24,g,e),["Erev Chanukah",0,"ערב חנוכה"],0),new s(new c(25,g,e),r(1),0),new s(new c(26,g,e),r(2),0),new s(new c(27,g,e),r(3),0),new s(new c(28,g,e),r(4),0),new s(new c(29,g,e),r(5),0),new s(new c(30,g,e),r(6),0),new s(new c(31,g,e),r(7),0),new s(new c(32,g,e),r(8),0),new s(new c(15,m.SHVAT,e),["Tu B'Shvat",0,'ט"ו בשבט'],0),new s(new c(y(p,_[A]()-43)),[L+" Shekalim",E+" Shekalim","שבת שקלים"],0),new s(new c(y(p,_[A]()-30)),[L+" Zachor",E+" Zachor","שבת זכור"],0),new s(new c(_[A]()-(_[b]()==d.TUE?33:31)),["Ta'anit Esther","Ta'anis Esther","תענית אסתר"],0),new s(new c(13,m.ADAR_II,e),["Erev Purim",0,"ערב פורים"],0),new s(new c(14,m.ADAR_II,e),["Purim",0,"פורים"],0),new s(new c(15,m.ADAR_II,e),["Shushan Purim",0,"שושן פורים"],0),new s(new c(y(p,_[A]()-14)-7),[L+" Parah",E+" Parah","שבת פרה"],0),new s(new c(y(p,_[A]()-14)),[L+" Hachodesh",E+" Hachodesh","שבת החודש"],0),new s(new c(y(p,_[A]()-1)),[L+" HaGadol",E+" HaGadol","שבת הגדול"],0),new s(_.prev()[b]()==p?_.onOrBefore(d.THU):new c(14,v,e),["Ta'anit Bechorot","Ta'anis Bechoros","תענית בכורות"],0),new s(new c(14,v,e),["Erev Pesach",0,"ערב פסח"],S),new s(new c(15,v,e),o(1),I|M),new s(new c(15,v,e),o(1),T|N),new s(new c(16,v,e),o(2),T|M),new s(new c(16,v,e),a(o(2)),N),new s(new c(16,v,e),["Start counting Omer",0,"התחלת ספירת העומר"],0),new s(new c(17,v,e),a(o(3)),0),new s(new c(18,v,e),a(o(4)),0),new s(new c(19,v,e),a(o(5)),0),new s(new c(20,v,e),a(o(6)),S),new s(new c(21,v,e),o(7),I|M),new s(new c(21,v,e),o(7),T|N),new s(new c(22,v,e),o(8),T|M),new s(new c(14,m.IYYAR,e),["Pesach Sheni",0,"פסח שני"],0),new s(new c(18,m.IYYAR,e),["Lag B'Omer",0,'ל"ג בעומר'],0),new s(new c(5,m.SIVAN,e),["Erev Shavuot","Erev Shavuos","ערב שבועות"],S),new s(new c(6,m.SIVAN,e),["Shavuot 1","Shavuos 1","שבועות א'"],I|M),new s(new c(6,m.SIVAN,e),["Shavuot","Shavuos","שבועות"],T|N),new s(new c(7,m.SIVAN,e),["Shavuot 2","Shavuos 2","שבועות ב'"],T|M),new s(new c(y(p,new c(1,w,e+1)[A]()-4)),["Leil Selichot","Leil Selichos","ליל סליחות"],0),new s(new c(29,m.ELUL,e),["Erev Rosh Hashana",0,"ערב ראש השנה"],S)]),n=new c(10,m.TEVET,e),n[b]()==p&&(n=n.next()),t(new s(n,["Asara B'Tevet",0,"עשרה בטבת"],0)),h.LEAP(e)&&(t(new s(new c(14,m.ADAR_I,e),["Purim Katan",0,"פורים קטן"],0)),t(new s(new c(15,m.ADAR_I,e),["Shushan Purim Katan",0,"שושן פורים קטן"],0))),e>=5711&&(n=new c(27,v,e),n[b]()==d.FRI?n=n.prev():n[b]()==d.SUN&&(n=n.next()),t(new s(n,["Yom HaShoah",0,"יום השואה"],0))),t(u(e)),e>=5727&&t(new s(new c(29,m.IYYAR,e),["Yom Yerushalayim",0,"יום ירושלים"],0)),n=new c(17,m.TAMUZ,e),n[b]()==p&&(n=n.next()),t(new s(n,["Shiva-Asar B'Tamuz",0,"צום יז' בתמוז"],0)),n=new c(9,m.AV,e),n[b]()==p&&(n=n.next()),t(new s(new c(y(p,n[A]())),[L+" Chazon",E+" Chazon","שבת חזון"],0)),t(new s(n.prev(),["Erev Tish'a B'Av",0,"ערב תשעה באב"],0)),t(new s(n,["Tish'a B'Av",0,"תשעה באב"],0)),t(new s(new c(y(p,n[A]()+7)),[L+" Nachamu",E+" Nachamu","שבת נחמו"],0));for(var D=6;D0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!a(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},r.prototype.removeListener=function(e,t){var n,r,i,s;if(!a(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],i=n.length,r=-1,n===t||a(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],a(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?a(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(a(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},{}],10:[function(e,t,n){!function(){function e(e,t){if("number"!=typeof e&&"string"!=typeof e)throw new TypeError("non-number or string given to gematriya()");var n="string"==typeof e;return n&&(e=e.replace(/('|")/g,"")),e=e.toString().split("").reverse(),!n&&t&&(e=e.slice(0,t)),e=e.map(function i(o,s){return n?t&&a[o]1e3?i(o,s-3):r[parseInt(o,10)*Math.pow(10,s)]}),n?e.reduce(function(e,t){return e+t},0):(e=e.reverse().join("").replace(/יה/g,"טו").replace(/יו/g,"טז").split(""),1===e.length?e.push("'"):e.length>1&&e.splice(-1,0,'"'),e.join(""))}var n,r={},a={"":0,"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400,"תק":500,"תר":600,"תש":700,"תת":800,"תתק":900,"תתר":1e3};for(n in a)r[a[n]]=n;"undefined"!=typeof t?t.exports=e:window.gematriya=e}()},{}],11:[function(e,t,n){!function(){"use strict";function e(e){return e.valueOf()/I-.5+H}function r(e){return new Date((e+.5-H)*I)}function a(t){return e(t)-D}function i(e,t){return T(L(e)*E(C)-_(t)*L(C),E(e))}function o(e,t){return S(L(t)*E(C)+E(t)*L(C)*L(e))}function s(e,t,n){return T(L(e),E(e)*L(t)-_(n)*E(t))}function u(e,t,n){return S(L(t)*L(n)+E(t)*E(n)*E(e))}function h(e,t){return N*(280.16+360.9856235*e)-t}function c(e){return e<0&&(e=0),2967e-7/Math.tan(e+.00312536/(e+.08901179))}function f(e){return N*(357.5291+.98560028*e)}function l(e){var t=N*(1.9148*L(e)+.02*L(2*e)+3e-4*L(3*e)),n=102.9372*N;return e+t+n+A}function y(e){var t=f(e),n=l(t);return{dec:o(n,0),ra:i(n,0)}}function m(e,t){return Math.round(e-k-t/(2*A))}function d(e,t,n){return k+(e+t)/(2*A)+n}function w(e,t,n){return D+e+.0053*L(t)-.0069*L(2*n)}function g(e,t,n){return M((L(e)-L(t)*L(n))/(E(t)*E(n)))}function v(e,t,n,r,a,i,o){var s=g(e,n,r),u=d(s,t,a);return w(u,i,o)}function p(e){var t=N*(218.316+13.176396*e),n=N*(134.963+13.064993*e),r=N*(93.272+13.22935*e),a=t+6.289*N*L(n),s=5.128*N*L(r),u=385001-20905*E(n);return{ra:i(a,s),dec:o(a,s),dist:u}}function b(e,t){return new Date(e.valueOf()+t*I/24)}var A=Math.PI,L=Math.sin,E=Math.cos,_=Math.tan,S=Math.asin,T=Math.atan2,M=Math.acos,N=A/180,I=864e5,H=2440588,D=2451545,C=23.4397*N,O={};O.getPosition=function(e,t,n){var r=N*-n,i=N*t,o=a(e),c=y(o),f=h(o,r)-c.ra;return{azimuth:s(f,i,c.dec),altitude:u(f,i,c.dec)}};var Y=O.times=[[-.833,"sunrise","sunset"],[-.3,"sunriseEnd","sunsetStart"],[-6,"dawn","dusk"],[-12,"nauticalDawn","nauticalDusk"],[-18,"nightEnd","night"],[6,"goldenHourEnd","goldenHour"]];O.addTime=function(e,t,n){Y.push([e,t,n])};var k=9e-4;O.getTimes=function(e,t,n){var i,s,u,h,c,y=N*-n,g=N*t,p=a(e),b=m(p,y),A=d(0,y,b),L=f(A),E=l(L),_=o(E,0),S=w(A,L,E),T={solarNoon:r(S),nadir:r(S-.5)};for(i=0,s=Y.length;i=0&&(g=Math.sqrt(y)/(2*Math.abs(h)),d=f-g,w=f+g,Math.abs(d)<=1&&m++,Math.abs(w)<=1&&m++,d<-1&&(d=w)),1===m?p<0?s=A+d:u=A+d:2===m&&(s=A+(l<0?w:d),u=A+(l<0?d:w)),!s||!u);A+=2)p=o;var L={};return s&&(L.rise=b(a,s)),u&&(L.set=b(a,u)),s||u||(L[l>0?"alwaysUp":"alwaysDown"]=!0),L},"object"==typeof n&&"undefined"!=typeof t?t.exports=O:"function"==typeof define&&define.amd?define(O):window.SunCalc=O}()},{}],12:[function(e,t,n){function r(e,t){t=!!t;var n,r=o.lngChesh(e),a=o.shrtKis(e);this.year=e,n=r&&!a?l:!r&&a?c:f;var i=new s(1,o.months.TISHREI,e).abs(),u=i%7+1;this.first_saturday=o.dayOnOrBefore(6,i+6);var h=+o.LEAP(e);this.type=n,this.rosh_hashana_day=u,this.leap=h,this.il=t;var y=""+h+u+n;if(_[y]?this.theSedraArray=_[y]:this.theSedraArray=_[y+ +t],!this.theSedraArray)throw console.log(this),new TypeError("improper sedra year type calculated.")}function a(e){return-e}function i(e,t){t=o.dayOnOrBefore(6,t+6);var n=(t-e.first_saturday)/7,s=e.theSedraArray[n];return void 0===s?i(new r(e.year+1,e.il),t):"object"==typeof s?[s]:s>=0?[y[s]]:(s=a(s),[y[s],y[s+1]])}var o=e("./common"),s=e("./hdate"),u="concat",h=o.range,c=0,f=1,l=2,y=r.parshiot=[["Bereshit","Bereshis","בראשית"],["Noach",0,"נח"],["Lech-Lecha",0,"לך-לך"],["Vayera",0,"וירא"],["Chayei Sara",0,"חי שרה"],["Toldot","Toldos","תולדות"],["Vayetzei",0,"ויצא"],["Vayishlach",0,"וישלח"],["Vayeshev",0,"וישב"],["Miketz",0,"מקץ"],["Vayigash",0,"ויגש"],["Vayechi",0,"ויחי"],["Shemot","Shemos","שמות"],["Vaera",0,"וארא"],["Bo",0,"בא"],["Beshalach",0,"בשלח"],["Yitro","Yisro","יתרו"],["Mishpatim",0,"משפטים"],["Terumah",0,"תרומה"],["Tetzaveh",0,"תצוה"],["Ki Tisa","Ki Sisa","כי תשא"],["Vayakhel",0,"ויקהל"],["Pekudei",0,"פקודי"],["Vayikra",0,"ויקרא"],["Tzav",0,"צו"],["Shmini",0,"שמיני"],["Tazria",0,"תזריע"],["Metzora",0,"מצרע"],["Achrei Mot","Achrei Mos","אחרי מות"],["Kedoshim",0,"קדשים"],["Emor",0,"אמור"],["Behar",0,"בהר"],["Bechukotai","Bechukosai","בחקתי"],["Bamidbar",0,"במדבר"],["Nasso",0,"נשא"],["Beha'alotcha","Beha'aloscha","בהעלתך"],["Sh'lach",0,"שלח לך"],["Korach",0,"קורח"],["Chukat","Chukas","חקת"],["Balak",0,"בלק"],["Pinchas",0,"פינחס"],["Matot","Matos","מטות"],["Masei",0,"מסעי"],["Devarim",0,"דברים"],["Vaetchanan","V'eschanan","ואתחנן"],["Eikev",0,"עקב"],["Re'eh",0,"ראה"],["Shoftim",0,"שופטים"],["Ki Teitzei","Ki Seitzei","כי תצא"],["Ki Tavo","Ki Savo","כי תבוא"],["Nitzavim",0,"נצבים"],["Vayeilech",0,"וילך"],["Ha'Azinu",0,"האזינו"]],m=[["Rosh Hashana",0,"ראש השנה"]],d=[["Yom Kippur",0,"יום כיפור"]],w=[["Sukkot","Succos","סוכות"]],g=[["Chol hamoed Sukkot","Chol hamoed Succos","חול המועד סוכות"]],v=[["Shmini Atzeret","Shmini Atzeres","שמיני עצרת"]],p=[["End-of-Year: Simchat-Torah, Sukkot","End-of-Year: Simchas-Torah, Succos","סופשנה: סוכות וסמחת תורה"]],b=[["Pesach",0,"פסח"]],A=[["Chol hamoed Pesach",0,"חול המועד פסח"]],L=[["Second days of Pesach",0,"שביעי של פסח"]],E=[["Shavuot","Shavuos","שבועות"]],_={"020":[51,52][u](p,h(0,20),a(21),23,24,b,25,a(26),a(28),30,a(31),h(33,40),a(41),h(43,49),a(50)),"0220":[51,52][u](p,h(0,20),a(21),23,24,b,25,a(26),a(28),30,a(31),33,E,h(34,37),a(38),40,a(41),h(43,49),a(50)),"0510":[52][u](d,p,h(0,20),a(21),23,24,b,b,25,a(26),a(28),30,a(31),h(33,40),a(41),h(43,50)),"0511":[52][u](d,p,h(0,20),a(21),23,24,b,25,a(26),a(28),h(30,40),a(41),h(43,50)),"052":[52][u](d,g,h(0,24),L,25,a(26),a(28),30,a(31),h(33,40),a(41),h(43,50)),"070":[][u](m,52,w,v,h(0,20),a(21),23,24,L,25,a(26),a(28),30,a(31),h(33,40),a(41),h(43,50)),"072":[][u](m,52,w,v,h(0,20),a(21),23,24,A,25,a(26),a(28),30,a(31),h(33,40),a(41),h(43,49),a(50)),1200:[51,52][u](g,h(0,27),A,h(28,33),E,h(34,37),a(38),40,a(41),h(43,49),a(50)),1201:[51,52][u](g,h(0,27),A,h(28,40),a(41),h(43,49),a(50)),1220:[51,52][u](g,h(0,27),b,b,h(28,40),a(41),h(43,50)),1221:[51,52][u](g,h(0,27),b,h(28,50)),150:[52][u](d,g,h(0,28),L,h(29,50)),152:[52][u](d,g,h(0,28),A,h(29,49),a(50)),170:[][u](m,52,w,v,h(0,27),A,h(28,40),a(41),h(43,49),a(50)),1720:[][u](m,52,w,v,h(0,27),A,h(28,33),E,h(34,37),a(38),40,a(41),h(43,49),a(50))};_["0221"]=_["020"],_["0310"]=_["0220"],_["0311"]=_["020"],_[1310]=_[1220],_[1311]=_[1221],_[1721]=_[170],r.prototype.get=function(e){return i(this,e.abs())},t.exports=r},{"./common":3,"./hdate":6}]},{},[2]); //# sourceMappingURL=client/hebcal.noloc.min.js.map \ No newline at end of file diff --git a/client/hebcal.noloc.min.js.map b/client/hebcal.noloc.min.js.map index dd3a46c..e8ff402 100644 --- a/client/hebcal.noloc.min.js.map +++ b/client/hebcal.noloc.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["node_modules/browser-pack/_prelude.js","cities.js","client/hebcal.noloc.src.js","common.js","dafyomi.js","greg.js","hdate.js","hebcal.js","holidays.js","node_modules/events/events.js","node_modules/gematriya/gematriya.js","node_modules/suncalc/suncalc.js","sedra.js"],"names":["e","t","n","r","s","o","u","a","require","i","f","Error","code","l","exports","call","length","1","module","getCity","city","split","map","w","c","join","toLowerCase","toUpperCase","slice","cities","listCities","Object","keys","Ashdod","Atlanta","Austin","Baghdad","Beer Sheva","Berlin","Baltimore","Bogota","Boston","Buenos Aires","Buffalo","Chicago","Cincinnati","Cleveland","Dallas","Denver","Detroit","Eilat","Gibraltar","Haifa","Hawaii","Houston","Jerusalem","Johannesburg","Kiev","La Paz","Livingston","London","Los Angeles","Miami","Melbourne","Mexico City","Montreal","Moscow","New York","Omaha","Ottawa","Panama City","Paris","Petach Tikvah","Philadelphia","Phoenix","Pittsburgh","Saint Louis","Saint Petersburg","San Francisco","Seattle","Sydney","Tel Aviv","Tiberias","Toronto","Vancouver","White Plains","Washington DC","addCity","info","Array","isArray","TypeError","nearest","lat","lon","name","dist","Math","sqrt","pow","abs","reduce","close","window","Hebcal","finished","warn","console","log","events","on","ready","emit","defineProperty","configurable","get","listeners","set","func","LEAP","x","hebElapsedDays","hYear","m_elapsed","floor","p_elapsed","h_elapsed","parts","day","alt_day","daysInYear","year","lngChesh","shrtKis","monthFromName","months","NISAN","IYYAR","ELUL","CHESHVAN","KISLEV","SIVAN","SHVAT","TAMUZ","TISHREI","TEVET","AV","test","ADAR_I","ADAR_II","filter","self","fun","thisp","v","funOrig","RegExp","k","indexOf","res","hasOwnProperty","val","props","getOwnPropertyDescriptor","value","arr","Number","gematriya","charCodeAt","monthNames","concat","days","SUN","MON","TUE","WED","THU","FRI","SAT","LANG","str","opts","MONTH_CNT","daysInMonth","month","monthNum","parseInt","dayYearNum","dayOnOrBefore","day_of_week","absdate","range","start","end","step","push","greg","shas","m","blatt","dafyomi","gregdate","cno","dno","osday","nsday","total","count","j","cday","dafcnt","Date","greg2abs","dafname","daf","dayOfYear","date","doy","getDate","getMonth","getFullYear","t0t1","tMonthLengths","monthLengths","lookupMonthNum","abs2greg","theDate","d0","n400","d1","n100","d2","n4","d3","n1","setFullYear","HDate","me","this","arguments","d","abs2hebrew","il","setLocation","long","trim","prev","next","setMonth","setDate","apply","defaultLocation","fix","fixMonth","fixDate","isLeapYear","hebrew2abs","tempabs","hebdate","mmap","RangeError","suntime","hdate","suncalc","getTimes","hourOffset","hours","sunrise","getTime","hour","onOrBefore","offset","addTime","prototype","enumerable","getTishreiMonth","nummonths","getDay","setTishreiMonth","gregEve","sunset","toString","getMonthName","setCity","hourMins","nightHour","nightHourMins","zemanim","chatzot","chatzot_night","alot_hashachar","alot_hashacher","misheyakir","misheyakir_machmir","sof_zman_shma","sof_zman_tfilla","mincha_gedola","mincha_ketana","plag_hamincha","tzeit","neitz_hachama","shkiah","getZemanim","z","addZeman","zeman","isSameDate","other","before","onOrAfter","after","getset","g","extend","base","into","TE","Month","defProp","writable","holidays","forEach","h","GregYear","lookupMonthName","GregMonth","hebyears","hebmonths","hm","Sedra","EventEmitter","find","strings","getYearObject","HebcalProto","MonthProto","GregYearProto","GregMonthProto","HDateProto","rosh","addHoliday","holiday","Event","add","findParsha","parsha","langs","max","getSedra","findSedra","find_f","replace","rosh_chodesh","omer","today","yesterday","tomorrow","pesach","sukkot","succot","succos","sukkos","shavuot","shavuos","rosh_hashana","rosh_hashanah","parshiot","LANGUAGE","loc","defaultCity","candleLighting","mins","havdalah","__year","getName","prevMonth","molad","m_adj","retMolad","toInt","round","chalakim","minutes","shabbat_mevarchim","_calc","setHours","setMinutes","setSeconds","num","sm","shabbos_mevarchim","shabbos_mevorchim","getMonthObject","__month","orig","__cache","sedraYear","p","getParsha","all","routine","is","prop","hd","tachanun","mapAbs","some","yes_prev","checkNext","y","atzmaut","NONE","ret","ALL_CONGS","SHACHARIT","MINCHA","hallel","whole","half","rc","WHOLE","HALF","checkTimes","obj","compare","time","nowGreg","now","almostTime","beforeZeman","customTimes","customs","refreshInterval","custom","refresh","ms","clearInterval","setInterval","unref","getGregMonthObject","__gregmonth","getGregYearObject","Chanukah","CHM","desc","Sukkot","Pesach","mask","USER_EVENT","LIGHT_CANDLES","YOM_TOV_ENDS","CHUL_ONLY","IL_ONLY","LIGHT_CANDLES_TZEIS","tmpDate","Shabbat","Shabbos","masks","myDate","getDesc","names","isIL","ev","RH","_events","_maxListeners","undefined","isFunction","arg","isNumber","isObject","isUndefined","defaultMaxListeners","setMaxListeners","isNaN","type","er","handler","len","args","error","err","context","addListener","listener","newListener","warned","trace","once","removeListener","fired","list","position","splice","removeAllListeners","key","listenerCount","evlistener","emitter","limit","reverse","numbers","letters","","א","ב","ג","ד","ה","ו","ז","ח","ט","י","כ","ל","מ","נ","ס","ע","פ","צ","ק","ר","ש","ת","תק","תר","תש","תת","תתק","תתר","toJulian","valueOf","dayMs","J1970","fromJulian","toDays","J2000","rightAscension","b","atan","sin","cos","tan","declination","asin","azimuth","H","phi","dec","altitude","siderealTime","lw","rad","astroRefraction","solarMeanAnomaly","eclipticLongitude","M","C","P","PI","sunCoords","L","ra","julianCycle","J0","approxTransit","Ht","solarTransitJ","ds","hourAngle","acos","getSetJ","moonCoords","F","dt","hoursLater","atan2","SunCalc","getPosition","lng","times","angle","riseName","setName","Jset","Jrise","Jnoon","result","solarNoon","nadir","getMoonPosition","pa","distance","parallacticAngle","getMoonIllumination","sdist","inc","fraction","phase","getMoonTimes","inUTC","setUTCHours","h1","h2","rise","xe","ye","roots","x1","x2","dx","hc","h0","define","amd","hebYr","long_c","short_k","COMPLETE","INCOMPLETE","REGULAR","rosh_hashana_day","first_saturday","leap","core","types","theSedraArray","D","absDate","weekNum","index","YK","SUKKOT","CHMSUKOT","SHMINI","EOY","PESACH","CHMPESACH","PESACH7","SHAVUOT","020","0220","0510","0511","052","070","072","1200","1201","1220","1221","150","152","170","1720","hDate"],"mappings":"CAAA,QAAAA,GAAAC,EAAAC,EAAAC,GAAA,QAAAC,GAAAC,EAAAC,GAAA,IAAAJ,EAAAG,GAAA,CAAA,IAAAJ,EAAAI,GAAA,CAAA,GAAAE,GAAA,kBAAAC,UAAAA,OAAA,KAAAF,GAAAC,EAAA,MAAAA,GAAAF,GAAA,EAAA,IAAAI,EAAA,MAAAA,GAAAJ,GAAA,EAAA,IAAAK,GAAA,GAAAC,OAAA,uBAAAN,EAAA,IAAA,MAAAK,GAAAE,KAAA,mBAAAF,EAAA,GAAAG,GAAAX,EAAAG,IAAAS,WAAAb,GAAAI,GAAA,GAAAU,KAAAF,EAAAC,QAAA,SAAAd,GAAA,GAAAE,GAAAD,EAAAI,GAAA,GAAAL,EAAA,OAAAI,GAAAF,EAAAA,EAAAF,IAAAa,EAAAA,EAAAC,QAAAd,EAAAC,EAAAC,EAAAC,GAAA,MAAAD,GAAAG,GAAAS,QAAA,IAAA,GAAAL,GAAA,kBAAAD,UAAAA,QAAAH,EAAA,EAAAA,EAAAF,EAAAa,OAAAX,IAAAD,EAAAD,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AAA,GAAA,IAAAsb,EAAA,IAAAtb,MAAA,GAAA,KAMA6c,MAAA,GAAA,IAAAle,QAAAid,SAAA5b,MAAA,EAAA,IAAA+b,OAAA/b,MAAA,GAAA,KAKA8c,KAAA,IAAAne,QAAA+c,GAAAE,SAAA5b,MAAA,EAAA,IAAAic,QAAAjc,MAAA,GAAA,KAKA+c,KAAA,IAAApe,QAAA+c,GAAAE,SAAA5b,MAAA,EAAA,IAAAgc,UAAAhc,MAAA,GAAA,IAAAsb,EAAA,KAKA0B,OAAAre,QAAAqS,GAAA,GAAA2K,OAAAE,OAAA7b,MAAA,EAAA,IAAAgc,UACAhc,MAAA,GAAA,IAAAsb,EAAA,IAAAtb,MAAA,GAAA,IAAAsb,EAAA,KAKA2B,QAAAte,QAAAqS,GAAA,GAAA2K,OAAAE,OAAA7b,MAAA,EAAA,IAAAgc,UAAAhc,MAAA,GAAA,IACAkc,QAAAlc,MAAA,GAAA,IAAAsb,EAAA,IAAA,GAAAA,EAAA,IAAAtb,MAAA,GAAA,IAAAsb,EAAA,KAMAF,OAAA,QAAAA,MAAA,OAKAA,MAAA,QAAAA,MAAA,QAIAA,MAAA,QAAAA,MAAA,OAKAA,MAAA,MAAAA,MAAA,MAGAA,MAAA,MAAAA,MAAA,MAIAA,MAAA,MAAAA,MAAA,KAGA1S,MAAAxD,UAAA9J,IAAA,SAAA8hB,OACA,MAAA7iB,KAAA0I,KAAAma,MAAA7iB,QA2BAlF,OAAAJ,QAAA2T","file":"client/hebcal.noloc.min.js","sourceRoot":"https://github.com/hebcal/hebcal-js/tree/v2.2.3/","sourcesContent":["(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o.\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\n\n// name, lat, long, Israel\nvar cities = {\n\t\"Ashdod\": [ 31.8, 34.633, true ],\n\t\"Atlanta\": [ 33.75, -84.383, false ],\n\t\"Austin\": [ 30.266, -97.75, false ],\n\t\"Baghdad\": [ 33.233, 44.366, false ],\n\t\"Beer Sheva\": [ 31.25, 34.783, true ],\n\t\"Berlin\": [ 52.516, 13.4, false ],\n\t\"Baltimore\": [ 39.283, -76.6, false ],\n\t\"Bogota\": [ 4.6, -74.083, false ],\n\t\"Boston\": [ 42.333, -71.066, false ],\n\t\"Buenos Aires\": [ -34.616, -58.4, false ],\n\t\"Buffalo\": [ 42.883, -78.866, false ],\n\t\"Chicago\": [ 41.833, -87.75, false ],\n\t\"Cincinnati\": [ 39.1, -84.516, false ],\n\t\"Cleveland\": [ 41.5, -81.683, false ],\n\t\"Dallas\": [ 32.783, -96.8, false ],\n\t\"Denver\": [ 39.733, -104.983, false ],\n\t\"Detroit\": [ 42.333, -83.033, false ],\n\t\"Eilat\": [ 29.55, 34.95, true ],\n\t\"Gibraltar\": [ 36.133, -5.35, false ],\n\t\"Haifa\": [ 32.816, 34.983, true ],\n\t\"Hawaii\": [ 19.5, -155.5, false ],\n\t\"Houston\": [ 29.766, -95.366, false ],\n\t\"Jerusalem\": [ 31.783, 35.233, true ],\n\t\"Johannesburg\": [ -26.166, 28.033, false ],\n\t\"Kiev\": [ 50.466, 30.483, false ],\n\t\"La Paz\": [ -16.5, -68.15, false ],\n\t\"Livingston\": [ 40.283, -74.3, false ],\n\t\"London\": [ 51.5, -0.166, false ],\n\t\"Los Angeles\": [ 34.066, -118.25, false ],\n\t\"Miami\": [ 25.766, -80.2, false ],\n\t\"Melbourne\": [ -37.866, 145.133, false ],\n\t\"Mexico City\": [ 19.4, -99.15, false ],\n\t\"Montreal\": [ 45.5, -73.6, false ],\n\t\"Moscow\": [ 55.75, 37.7, false ],\n\t\"New York\": [ 40.716, -74.016, false ],\n\t\"Omaha\": [ 41.266, -95.933, false ],\n\t\"Ottawa\": [ 45.7, -76.183, false ],\n\t\"Panama City\": [ 8.966, -79.533, false ],\n\t\"Paris\": [ 48.866, 2.333, false ],\n\t\"Petach Tikvah\": [ 32.083, 34.883, true ],\n\t\"Philadelphia\": [ 39.95, -75.166, false ],\n\t\"Phoenix\": [ 33.45, -112.066, false ],\n\t\"Pittsburgh\": [ 40.433, -80, false ],\n\t\"Saint Louis\": [ 38.633, -90.2, false ],\n\t\"Saint Petersburg\": [ 59.883, 30.25, false ],\n\t\"San Francisco\": [ 37.783, -122.416, false ],\n\t\"Seattle\": [ 47.6, -122.333, false ],\n\t\"Sydney\": [ -33.916, 151.283, false ],\n\t\"Tel Aviv\": [ 32.083, 34.766, true ],\n\t\"Tiberias\": [ 32.966, 35.533, true ],\n\t\"Toronto\": [ 43.633, -79.4, false ],\n\t\"Vancouver\": [ 49.266, -123.116, false ],\n\t\"White Plains\": [ 41.033, -73.75, false ],\n\t\"Washington DC\": [ 38.916, -77, false ]\n};\n\nfunction getCity(city) {\n\tcity = city.split(/\\s+/).map(function(w,i,c){\n\t\tif (c.join(' ').toLowerCase() === 'washington dc' && i === 1) { // special case\n\t\t\treturn w.toUpperCase();\n\t\t}\n\t\treturn w[0].toUpperCase() + w.slice(1).toLowerCase();\n\t}).join(' ');\n\treturn cities[city] || [ 0, 0, false ];\n}\nexports.getCity = getCity;\n\nfunction listCities() {\n\treturn Object.keys(cities);\n}\nexports.listCities = listCities;\n\nexports.addCity = function(city, info) {\n\tif (!Array.isArray(info)) {\n\t\tthrow new TypeError('adding non-array city');\n\t}\n\tif (info.length == 5) {\n\t\tvar i = info.slice();\n\t\tinfo = [];\n\t\tinfo[0] = (i[0] * 60 + i[1]) / 60;\n\t\tinfo[1] = (i[2] * 60 + i[3]) / 60;\n\t\tinfo[2] = i[4];\n\t}\n\tif (info.length != 3) {\n\t\tthrow new TypeError('length of city array is not 3');\n\t}\n\tcity = city.split(/\\s+/).map(function(w){return w[0].toUpperCase() + w.slice(1).toLowerCase()}).join(' ');\n\tcities[city] = info;\n};\n\nexports.nearest = function(lat, lon) {\n\tif (Array.isArray(lat)) {\n\t\tlat = (lat[0] * 60 + lat[1]) / 60;\n\t}\n\tif (Array.isArray(lon)) {\n\t\tlon = (lon[0] * 60 + lon[1]) / 60;\n\t}\n\tif (typeof lat != 'number') {\n\t\tthrow new TypeError('incorrect lat type passed to nearest()');\n\t}\n\tif (typeof lon != 'number') {\n\t\tthrow new TypeError('incorrect long type passed to nearest()');\n\t}\n\n\treturn listCities().map(function(city){\n\t\tvar i = getCity(city);\n\t\treturn {\n\t\t\tname: city,\n\t\t\tdist: Math.sqrt( Math.pow(Math.abs(i[0] - lat), 2) + Math.pow(Math.abs(i[1] - lon), 2) )\n\t\t};\n\t}).reduce(function(close,city){\n\t\treturn close.dist < city.dist ? close : city;\n\t}).name;\n};","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at \n\tdanny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter\n */\nwindow.Hebcal = require('..');\n\nvar finished = false, warn = (typeof console != 'undefined' && (console.warn || console.log)) || function(){};\n\nHebcal.events.on('newListener', function(e){\n\tif (e === 'ready' && !finished && Hebcal.ready) {\n\t\tfinished = Hebcal.events.emit('ready');\n\t}\n});\n\nObject.defineProperty(Hebcal, 'onready', {\n\tconfigurable: true,\n\n\tget: function() {\n\t\twarn('Getting deprecated property Hebcal.onready');\n\t\treturn Hebcal.events.listeners('ready')[0];\n\t},\n\tset: function(func) {\n\t\twarn('Setting deprecated property Hebcal.onready; use Hebcal.events.on(\\'ready\\', func) instead');\n\t\tHebcal.events.on('ready', func);\n\t}\n});\n\nHebcal.ready = true;\nfinished = Hebcal.events.emit('ready');","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar gematriya = require('gematriya');\n\nvar charCodeAt = 'charCodeAt';\n\nvar months = exports.months = {\n\tNISAN : 1,\n\tIYYAR : 2,\n\tSIVAN : 3,\n\tTAMUZ : 4,\n\tAV : 5,\n\tELUL : 6,\n\tTISHREI : 7,\n\tCHESHVAN: 8,\n\tKISLEV : 9,\n\tTEVET : 10,\n\tSHVAT : 11,\n\tADAR_I : 12,\n\tADAR_II : 13\n};\n\nvar monthNames = [\n\t[\"\", 0, \"\"],\n\t[\"Nisan\", 0, \"ניסן\"],\n\t[\"Iyyar\", 0, \"אייר\"],\n\t[\"Sivan\", 0, \"סיון\"],\n\t[\"Tamuz\", 0, \"תמוז\"],\n\t[\"Av\", 0, \"אב\"],\n\t[\"Elul\", 0, \"אלול\"],\n\t[\"Tishrei\", 0, \"תשרי\"],\n\t[\"Cheshvan\", 0, \"חשון\"],\n\t[\"Kislev\", 0, \"כסלו\"],\n\t[\"Tevet\", 0, \"טבת\"],\n\t[\"Sh'vat\", 0, \"שבט\"]\n];\nexports.monthNames = [\n\tmonthNames.concat([[\"Adar\", 0, \"אדר\"],[\"Nisan\", 0, \"ניסן\"]]),\n\tmonthNames.concat([[\"Adar 1\", 0, \"אדר א'\"],[\"Adar 2\", 0, \"אדר ב'\"],[\"Nisan\", 0, \"ניסן\"]])\n];\n\nexports.days = {\n\tSUN: 0,\n\tMON: 1,\n\tTUE: 2,\n\tWED: 3,\n\tTHU: 4,\n\tFRI: 5,\n\tSAT: 6\n};\n\nexports.LANG = function(str, opts){\n\treturn opts == 'h' && str[2] || (opts == 'a' && str[1] || str[0]);\n};\n\nfunction LEAP(x) {\n\treturn (1 + x * 7) % 19 < 7;\n}\nexports.LEAP = LEAP;\n\nexports.MONTH_CNT = function(x) {\n\treturn 12 + LEAP(x); // boolean is cast to 1 or 0\n};\n\nexports.daysInMonth = function(month, year) {\n\treturn 30 - (month == months.IYYAR ||\n\tmonth == months.TAMUZ ||\n\tmonth == months.ELUL ||\n\tmonth == months.TEVET ||\n\tmonth == months.ADAR_II ||\n\t(month == months.ADAR_I && !LEAP(year)) ||\n\t(month == months.CHESHVAN && !lngChesh(year)) ||\n\t(month == months.KISLEV && shrtKis(year)));\n};\n\nexports.monthNum = function(month) {\n\treturn typeof month === 'number' ? month :\n\t\tmonth[charCodeAt](0) >= 1488 && month[charCodeAt](0) <= 1514 && /('|\")/.test(month) ? gematriya(month) :\n\t\t\tmonth[charCodeAt](0) >= 48 && month[charCodeAt](0) <= 57 /* number */ ? parseInt(month, 10) : monthFromName(month);\n};\n\nexports.dayYearNum = function(str) {\n\treturn typeof str === 'number' ? str :\n\t\tstr[charCodeAt](0) >= 1488 && str[charCodeAt](0) <= 1514 ? gematriya(str, true) : parseInt(str, 10);\n};\n\n/* Days from sunday prior to start of Hebrew calendar to mean\n conjunction of Tishrei in Hebrew YEAR\n */\nfunction hebElapsedDays(hYear){\n\t// borrowed from original JS\n\tvar m_elapsed = 235 * Math.floor((hYear - 1) / 19) +\n\t\t12 * ((hYear - 1) % 19) +\n\t\tMath.floor(((((hYear - 1) % 19) * 7) + 1) / 19);\n\n\tvar p_elapsed = 204 + (793 * (m_elapsed % 1080));\n\n\tvar h_elapsed = 5 + (12 * m_elapsed) +\n\t\t793 * Math.floor(m_elapsed / 1080) +\n\t\tMath.floor(p_elapsed / 1080);\n\n\tvar parts = (p_elapsed % 1080) + 1080 * (h_elapsed % 24);\n\n\tvar day = 1 + 29 * m_elapsed + Math.floor(h_elapsed / 24);\n\tvar alt_day = day + ((parts >= 19440) ||\n\t\t((2 == (day % 7)) && (parts >= 9924) && !(LEAP (hYear))) ||\n\t\t((1 == (day % 7)) && (parts >= 16789) && LEAP (hYear - 1)));\n\n\treturn alt_day + ((alt_day % 7) === 0 ||\n\t\t(alt_day % 7) == 3 ||\n\t\t(alt_day % 7) == 5);\n}\nexports.hebElapsedDays = hebElapsedDays;\n\n/* Number of days in the hebrew YEAR */\nfunction daysInYear(year)\n{\n\treturn hebElapsedDays(year + 1) - hebElapsedDays(year);\n}\nexports.daysInYear = daysInYear;\n\n/* true if Cheshvan is long in Hebrew YEAR */\nfunction lngChesh(year) {\n\treturn (daysInYear(year) % 10) == 5;\n}\nexports.lngChesh = lngChesh;\n\n/* true if Kislev is short in Hebrew YEAR */\nfunction shrtKis(year) {\n\treturn (daysInYear(year) % 10) == 3;\n}\nexports.shrtKis = shrtKis;\n\nfunction monthFromName(c) {\n\t/*\n\tthe Hebrew months are unique to their second letter\n\tN Nisan (November?)\n\tI Iyyar\n\tE Elul\n\tC Cheshvan\n\tK Kislev\n\t1 1Adar\n\t2 2Adar\n\tSi Sh Sivan, Shvat\n\tTa Ti Te Tamuz, Tishrei, Tevet\n\tAv Ad Av, Adar\n\n\tאב אד אי אל אב אדר אייר אלול\n\tח חשון\n\tט טבת\n\tכ כסלב\n\tנ ניסן\n\tס סיון\n\tש שבט\n\tתמ תש תמוז תשרי\n\t*/\n\tswitch (c.toLowerCase()[0]) {\n\t\tcase 'n':\n\t\tcase 'נ':\n\t\t\treturn (c.toLowerCase()[1] == 'o') ? /* this catches \"november\" */\n\t\t\t\t0 : months.NISAN;\n\t\tcase 'i':\n\t\t\treturn months.IYYAR;\n\t\tcase 'e':\n\t\t\treturn months.ELUL;\n\t\tcase 'c':\n\t\tcase 'ח':\n\t\t\treturn months.CHESHVAN;\n\t\tcase 'k':\n\t\tcase 'כ':\n\t\t\treturn months.KISLEV;\n\t\tcase 's':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'i':\n\t\t\t\t\treturn months.SIVAN;\n\t\t\t\tcase 'h':\n\t\t\t\t\treturn months.SHVAT;\n\t\t\t\tdefault:\n\t\t\t\t\treturn 0;\n\t\t\t}\n\t\tcase 't':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'a':\n\t\t\t\t\treturn months.TAMUZ;\n\t\t\t\tcase 'i':\n\t\t\t\t\treturn months.TISHREI;\n\t\t\t\tcase 'e':\n\t\t\t\t\treturn months.TEVET;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'a':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'v':\n\t\t\t\t\treturn months.AV;\n\t\t\t\tcase 'd':\n\t\t\t\t\tif (/(1|[^i]i|a|א)$/i.test(c)) {\n\t\t\t\t\t\treturn months.ADAR_I;\n\t\t\t\t\t}\n\t\t\t\t\treturn months.ADAR_II; // else assume sheini\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'ס':\n\t\t\treturn months.SIVAN;\n\t\tcase 'ש':\n\t\t\treturn months.SHVAT;\n\t\tcase 'א':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'ב':\n\t\t\t\t\treturn months.AV;\n\t\t\t\tcase 'ד':\n\t\t\t\t\tif (/(2|ii|b|ב)$/i.test(c)) {\n\t\t\t\t\t\treturn months.ADAR_I;\n\t\t\t\t\t}\n\t\t\t\t\treturn months.ADAR_II; // else assume sheini\n\t\t\t\tcase 'י':\n\t\t\t\t\treturn months.IYYAR;\n\t\t\t\tcase 'ל':\n\t\t\t\t\treturn months.ELUL;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'ת':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'מ':\n\t\t\t\t\treturn months.TAMUZ;\n\t\t\t\tcase 'ש':\n\t\t\t\t\treturn months.TISHREI;\n\t\t\t}\n\t\t\tbreak;\n\t}\n\treturn 0;\n};\nexports.monthFromName = monthFromName;\n\n/* Note: Applying this function to d+6 gives us the DAYNAME on or after an\n * absolute day d. Similarly, applying it to d+3 gives the DAYNAME nearest to\n * absolute date d, applying it to d-1 gives the DAYNAME previous to absolute\n * date d, and applying it to d+7 gives the DAYNAME following absolute date d.\n\n**/\nexports.dayOnOrBefore = function(day_of_week, absdate) {\n\treturn absdate - ((absdate - day_of_week) % 7);\n};\n\nexports.map = function(self, fun, thisp) {\n\t// originally written for http://github.com/Scimonster/localbrowse\n\tif (self === null || typeof fun != 'function') {\n\t\tthrow new TypeError();\n\t}\n\tvar t = Object(self);\n\tvar res = {};\n\tfor (var i in t) {\n\t\tif (t.hasOwnProperty(i)) {\n\t\t\tres[i] = fun.call(thisp, t[i], i, t);\n\t\t}\n\t}\n\tif (Array.isArray(self) || typeof self == 'string') { // came as an array, return an array\n\t\tvar arr = [];\n\t\tfor (i in res) {\n\t\t\tarr[Number(i)] = res[i];\n\t\t}\n\t\tres = filter(arr, true); // for...in isn't guaranteed to give any meaningful order\n\t\tif (typeof self == 'string') {\n\t\t\tres = res.join('');\n\t\t}\n\t}\n\treturn res;\n};\n\nfunction filter(self, fun, thisp) {\n\tif (self === null) {\n\t\tthrow new TypeError('self is null');\n\t}\n\tswitch (typeof fun) {\n\t\tcase 'function':\n\t\t\tbreak; // do nothing\n\t\tcase 'string':\n\t\tcase 'number':\n\t\t\treturn self[fun]; // str/num is just the property\n\t\tcase 'boolean':\n\t\t\t// boolean shortcuts to filter only truthy/falsy values\n\t\t\tif (fun) {\n\t\t\t\tfun = function (v) {\n\t\t\t\t\treturn v;\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\tfun = function (v) {\n\t\t\t\t\treturn !v;\n\t\t\t\t};\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'object':\n\t\t\tvar funOrig = fun; // save it\n\t\t\tif (fun instanceof RegExp) { // test the val against the regex\n\t\t\t\tfun = function (v) {\n\t\t\t\t\treturn funOrig.test(v);\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\t} else if (Array.isArray(fun)) { // keep these keys\n\t\t\t\tfun = function (v, k) {\n\t\t\t\t\treturn funOrig.indexOf(k) > -1;\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\t}\n\t\tdefault:\n\t\t\tthrow new TypeError('fun is not a supported type');\n\t}\n\tvar res = {};\n\tvar t = Object(self);\n\tfor (var i in t) {\n\t\tif (t.hasOwnProperty(i)) {\n\t\t\tvar val = t[i]; // in case fun mutates it\n\t\t\tif (fun.call(thisp, val, i, t)) {\n\t\t\t\t// define property on res in the same manner as it was originally defined\n\t\t\t\tvar props = Object.getOwnPropertyDescriptor(t, i);\n\t\t\t\tprops.value = val;\n\t\t\t\tObject.defineProperty(res, i, props);\n\t\t\t}\n\t\t}\n\t}\n\tif (Array.isArray(self) || typeof self == 'string') { // came as an array, return an array\n\t\tvar arr = [];\n\t\tfor (i in res) {\n\t\t\tarr[Number(i)] = res[i];\n\t\t}\n\t\tres = arr.filter(function (v) {\n\t\t\treturn v;\n\t\t}); // for...in isn't guaranteed to give any meaningful order\n\t\t// can't use c.filter(arr,true) here because that would infitely recurse\n\t\tif (typeof self == 'string') {\n\t\t\tres = res.join('');\n\t\t}\n\t}\n\treturn res;\n}\nexports.filter = filter;\n\nexports.range = function(start, end, step) {\n\tstep = step || 1;\n\tif (step < 0) {\n\t\tstep = 0 - step;\n\t}\n\n\tvar arr = [], i = start;\n\tif (start < end) {\n\t\tfor (; i <= end; i += step) {\n\t\t\tarr.push(i);\n\t\t}\n\t} else {\n\t\tfor (; i >= end; i -= step) {\n\t\t\tarr.push(i);\n\t\t}\n\t}\n\treturn arr;\n};\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar c = require('./common'),\n\tgreg = require('./greg'),\n\tgematriya = require('gematriya');\n\nvar shas = [\n\t// sname, aname, hname, blatt\n\t[ \"Berachot\", \"Berachos\", \"ברכות\", 64 ],\n\t[ \"Shabbat\", \"Shabbos\", \"שבת\", 157 ],\n\t[ \"Eruvin\", \"Eruvin\", \"עירובין\", 105 ],\n\t[ \"Pesachim\", 0, \"פסחים\", 121 ],\n\t[ \"Shekalim\", 0, \"שקלים\", 22 ],\n\t[ \"Yoma\", 0, \"יומא\", 88 ],\n\t[ \"Sukkah\", 0, \"סוכה\", 56 ],\n\t[ \"Beitzah\", 0, \"ביצה\", 40 ],\n\t[ \"Rosh Hashana\", 0, \"ראש השנה\", 35 ],\n\t[ \"Taanit\", \"Taanis\", \"תענית\", 31 ],\n\t[ \"Megillah\", 0, \"מגילה\", 32 ],\n\t[ \"Moed Katan\", 0, \"מועד קטן\", 29 ],\n\t[ \"Chagigah\", 0, \"חגיגה\", 27 ],\n\t[ \"Yevamot\", \"Yevamos\", \"יבמות\", 122 ],\n\t[ \"Ketubot\", \"Kesubos\", \"כתובות\", 112 ],\n\t[ \"Nedarim\", 0, \"נדרים\", 91 ],\n\t[ \"Nazir\", 0, \"נזיר\", 66 ],\n\t[ \"Sotah\", 0, \"סוטה\", 49 ],\n\t[ \"Gitin\", 0, \"גיטין\", 90 ],\n\t[ \"Kiddushin\", 0, \"קידושין\", 82 ],\n\t[ \"Baba Kamma\", 0, \"בבא קמא\", 119 ],\n\t[ \"Baba Metzia\", 0, \"בבא מציעא\", 119 ],\n\t[ \"Baba Batra\", \"Baba Basra\", \"בבא בתרא\", 176 ],\n\t[ \"Sanhedrin\", 0, \"סנהדרין\", 113 ],\n\t[ \"Makkot\", \"Makkos\", \"מכות\", 24 ],\n\t[ \"Shevuot\", \"Shevuos\", \"שבועות\", 49 ],\n\t[ \"Avodah Zarah\", 0, \"עבודה זרה\", 76 ],\n\t[ \"Horayot\", \"Horayos\", \"הוריות\", 14 ],\n\t[ \"Zevachim\", 0, \"זבחים\", 120 ],\n\t[ \"Menachot\", \"Menachos\", \"מנחות\", 110 ],\n\t[ \"Chullin\", 0, \"חולין\", 142 ],\n\t[ \"Bechorot\", \"Bechoros\", \"בכורות\", 61 ],\n\t[ \"Arachin\", 0, \"ערכין\", 34 ],\n\t[ \"Temurah\", 0, \"תמורה\", 34 ],\n\t[ \"Keritot\", \"Kerisos\", \"כריתות\", 28 ],\n\t[ \"Meilah\", 0, \"מעילה\", 22 ],\n\t[ \"Kinnim\", 0, \"קנים\", 4 ],\n\t[ \"Tamid\", 0, \"תמיד\", 10 ],\n\t[ \"Midot\", \"Midos\", \"מדות\", 4 ],\n\t[ \"Niddah\", 0, \"נדה\", 73 ]\n].map(function(m){\n\treturn {name: m.slice(0,3), blatt: m[3]};\n});\n\nexports.dafyomi = function(gregdate) {\n\tvar dafcnt = 40, cno, dno, osday, nsday, total, count, j, cday, blatt;\n\n\tif (!(gregdate instanceof Date)) {\n\t\tthrow new TypeError('non-date given to dafyomi');\n\t}\n\n\tosday = greg.greg2abs(new Date(1923, 8, 11));\n\tnsday = greg.greg2abs(new Date(1975, 5, 24));\n\tcday = greg.greg2abs(gregdate);\n\n\tif (cday < osday) { // no cycle; dy didn't start yet\n\t\treturn {name: [], blatt: 0};\n\t}\n\tif (cday >= nsday) { // \"new\" cycle\n\t\tcno = 8 + ( (cday - nsday) / 2711 );\n\t\tdno = (cday - nsday) % 2711;\n\t} else { // old cycle\n\t\tcno = 1 + ( (cday - osday) / 2702 );\n\t\tdno = (cday - osday) % 2702;\n\t}\n\n\t// Find the daf taking note that the cycle changed slightly after cycle 7.\n\n\ttotal = blatt = 0;\n\tcount = -1;\n\n\t// Fix Shekalim for old cycles\n\tif (cno <= 7) {\n\t\tshas[4].blatt = 13;\n\t} else {\n\t\tshas[4].blatt = 22;\n\t}\n\n\t// Find the daf\n\tj = 0;\n\twhile (j < dafcnt) {\n\t\tcount++;\n\t\ttotal = total + shas[j].blatt - 1;\n\t\tif (dno < total) {\n\t\t\tblatt = (shas[j].blatt + 1) - (total - dno);\n\t\t\t// fiddle with the weird ones near the end\n\t\t\tswitch (count) {\n\t\t\t\tcase 36:\n\t\t\t\t\tblatt = blatt + 21;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 37:\n\t\t\t\t\tblatt = blatt + 24;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 38:\n\t\t\t\t\tblatt = blatt + 33;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// Bailout\n\t\t\tj = 1 + dafcnt;\n\t\t}\n\t\tj++;\n\t}\n\n\treturn {name: shas[count].name, blatt: blatt};\n};\n\nexports.dafname = function(daf, o) {\n\treturn c.LANG(daf.name, o) + ' ' + (o === 'h' ? gematriya(daf.blatt) : daf.blatt);\n};\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar floor = Math.floor,\n\tt0t1 = [30, 31],\n\ttMonthLengths = [0, 31, 28, 31].concat(t0t1, t0t1, 31, t0t1, t0t1),\n\tmonthLengths = [\n\t\ttMonthLengths.slice()\n\t];\ntMonthLengths[2]++;\nmonthLengths.push(tMonthLengths);\n\nexports.daysInMonth = function(month, year) { // 1 based months\n\treturn monthLengths[+LEAP(year)][month];\n};\n\nexports.monthNames = [\n\t'',\n\t'January',\n\t'February',\n\t'March',\n\t'April',\n\t'May',\n\t'June',\n\t'July',\n\t'August',\n\t'September',\n\t'October',\n\t'November',\n\t'December'\n];\n\nexports.lookupMonthNum = function(month) {\n\treturn new Date(month + ' 1').getMonth() + 1;\n};\n\nfunction dayOfYear (date) {\n\tif (!date instanceof Date) {\n\t\tthrow new TypeError('Argument to greg.dayOfYear not a Date');\n\t}\n\tvar doy = date.getDate() + 31 * date.getMonth();\n\tif (date.getMonth() > 1) { // FEB\n\t\tdoy -= floor((4 * (date.getMonth() + 1) + 23) / 10);\n\t\tif (LEAP(date.getFullYear())) {\n\t\t\tdoy++;\n\t\t}\n\t}\n\treturn doy;\n}\nexports.dayOfYear = dayOfYear;\n\nfunction LEAP (year) {\n\treturn !(year % 4) && ( !!(year % 100) || !(year % 400) );\n}\nexports.LEAP = LEAP;\n\nexports.greg2abs = function(date) { // \"absolute date\"\n\tvar year = date.getFullYear() - 1;\n\treturn (dayOfYear(date) + // days this year\n\t\t\t365 * year + // + days in prior years\n\t\t\t( floor(year / 4) - // + Julian Leap years\n\t\t\tfloor(year / 100) + // - century years\n\t\t\tfloor(year / 400))); // + Gregorian leap years\n};\n\n\n/*\n * See the footnote on page 384 of ``Calendrical Calculations, Part II:\n * Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.\n * Clamen, Software--Practice and Experience, Volume 23, Number 4\n * (April, 1993), pages 383-404 for an explanation.\n */\nexports.abs2greg = function(theDate) {\n// calculations copied from original JS code\n\n\tvar d0 = theDate - 1;\n\tvar n400 = floor(d0 / 146097);\n\tvar d1 = floor(d0 % 146097);\n\tvar n100 = floor(d1 / 36524);\n\tvar d2 = d1 % 36524;\n\tvar n4 = floor(d2 / 1461);\n\tvar d3 = d2 % 1461;\n\tvar n1 = floor(d3 / 365);\n\n\tvar day = ((d3 % 365) + 1);\n\tvar year = (400 * n400 + 100 * n100 + 4 * n4 + n1);\n\n\tif (4 == n100 || 4 == n1) {\n\t\treturn new Date(year, 11, 31);\n\t}\n\n\treturn new Date(new Date(++year, 0, day).setFullYear(year)); // new Date() is very smart\n};","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar c = require('./common'),\n\tgreg = require('./greg'),\n\tsuncalc = require('suncalc'),\n\tcities = require('./cities'),\n\tgematriya = require('gematriya');\n\nsuncalc.addTime(-16.1, 'alot_hashachar', 0);\nsuncalc.addTime(-11.5, 'misheyakir', 0);\nsuncalc.addTime(-10.2, 'misheyakir_machmir', 0);\nsuncalc.addTime(-8.5, 0, 'tzeit');\n\n// for minifying optimizations\nvar getFullYear = 'getFullYear',\n\tgetMonth = 'getMonth',\n\tgetDate = 'getDate',\n\tgetTime = 'getTime',\n\tabs = 'abs',\n\thour = 'hour',\n\tmonths = c.months,\n\tTISHREI = months.TISHREI,\n\tMONTH_CNT = c.MONTH_CNT,\n\tdaysInMonth = c.daysInMonth,\n\tdayOnOrBefore = c.dayOnOrBefore,\n\tprototype = HDate.prototype;\n\nfunction HDate(day, month, year) {\n\tvar me = this;\n\tswitch (arguments.length) {\n\t\tcase 0:\n\t\t\treturn new HDate(new Date());\n\t\tcase 1:\n\t\t\tif (typeof day == 'undefined') {\n\t\t\t\treturn new HDate();\n\t\t\t} else if (day instanceof Date) {\n\t\t\t\t// we were passed a Gregorian date, so convert it\n\t\t\t\tvar d = abs2hebrew(greg.greg2abs(day));\n\t\t\t\t/*if (d.sunset() < day) {\n\t\t\t\t\td = d.next();\n\t\t\t\t}*/\n\t\t\t\treturn d;\n\t\t\t} else if (day instanceof HDate) {\n\t\t\t\tvar d = new HDate(day[getDate](), day[getMonth](), day[getFullYear]());\n\t\t\t\td.il = day.il;\n\t\t\t\td.setLocation(d.lat, d.long);\n\t\t\t\treturn d;\n\t\t\t} else if (typeof day == 'string') {\n\t\t\t\tswitch (day.toLowerCase().trim()) {\n\t\t\t\t\tcase 'today':\n\t\t\t\t\t\treturn new HDate();\n\t\t\t\t\tcase 'yesterday':\n\t\t\t\t\t\treturn new HDate().prev();\n\t\t\t\t\tcase 'tomorrow':\n\t\t\t\t\t\treturn new HDate().next();\n\t\t\t\t}\n\t\t\t\tif (/\\s/.test(day)) {\n\t\t\t\t\tvar s = day.split(/\\s+/);\n\t\t\t\t\tif (s.length == 2) {\n\t\t\t\t\t\treturn new HDate(s[0], s[1]);\n\t\t\t\t\t} else if (s.length == 3) {\n\t\t\t\t\t\treturn new HDate(s[0], s[1], s[2]);\n\t\t\t\t\t} else if (s.length == 4) { // should only be if s[1] is Adar\n\t\t\t\t\t\tif (/i/i.test(s[2])) { // Using I[I] syntax\n\t\t\t\t\t\t\ts[2] = s[2].length;\n\t\t\t\t\t\t} // otherwise using 1|2 syntax\n\t\t\t\t\t\treturn new HDate(s[0], s[1] + s[2], s[3]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (typeof day == 'number') { // absolute date\n\t\t\t\treturn abs2hebrew(day);\n\t\t\t}\n\t\t\tthrow new TypeError('HDate called with bad argument');\n\t\tcase 2:\n\t\t\treturn new HDate(day, month, (new HDate)[getFullYear]());\n\t\tcase 3:\n\t\t\tme.day = me.month = 1;\n\t\t\tme.year = c.dayYearNum(year);\n\n\t\t\tme.setMonth(c.monthNum(month));\n\t\t\tme.setDate(c.dayYearNum(day));\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new TypeError('HDate called with bad arguments');\n\t}\n\n\treturn me.setLocation.apply(me, HDate.defaultLocation);\n}\n\nHDate.defaultLocation = [0, 0];\nObject.defineProperty(HDate, 'defaultCity', {\n\tenumerable: true,\n\tconfigurable: true,\n\n\tget: function() {\n\t\treturn cities.nearest(HDate.defaultLocation[0], HDate.defaultLocation[1]);\n\t},\n\tset: function(city) {\n\t\tHDate.defaultLocation = cities.getCity(city).slice(0, 2);\n\t}\n});\n\nfunction fix(date) {\n\tfixMonth(date);\n\tfixDate(date);\n}\n\nfunction fixDate(date) {\n\tif (date.day < 1) {\n\t\tif (date.month == TISHREI) {\n\t\t\tdate.year -= 1;\n\t\t}\n\t\tdate.day += daysInMonth(date.month, date.year);\n\t\tdate.month -= 1;\n\t\tfix(date);\n\t}\n\tif (date.day > daysInMonth(date.month, date.year)) {\n\t\tif (date.month == months.ELUL) {\n\t\t\tdate.year += 1;\n\t\t}\n\t\tdate.day -= daysInMonth(date.month, date.year);\n\t\tdate.month += 1;\n\t\tfix(date);\n\t}\n\tfixMonth(date);\n}\n\nfunction fixMonth(date) {\n\tif (date.month == months.ADAR_II && !date.isLeapYear()) {\n\t\tdate.month -= 1; // to Adar I\n\t\tfix(date);\n\t}\n\tif (date.month < 1) {\n\t\tdate.month += MONTH_CNT(date.year);\n\t\tdate.year -= 1;\n\t\tfix(date);\n\t}\n\tif (date.month > MONTH_CNT(date.year)) {\n\t\tdate.month -= MONTH_CNT(date.year);\n\t\tdate.year += 1;\n\t\tfix(date);\n\t}\n}\n\nprototype[getFullYear] = function() {\n\treturn this.year;\n};\n\nprototype.isLeapYear = function() {\n\treturn c.LEAP(this.year);\n};\n\nprototype[getMonth] = function() {\n\treturn this.month;\n};\n\nprototype.getTishreiMonth = function() {\n\tvar nummonths = MONTH_CNT(this[getFullYear]());\n\treturn (this[getMonth]() + nummonths - 6) % nummonths || nummonths;\n};\n\nprototype.daysInMonth = function() {\n\treturn daysInMonth(this[getMonth](), this[getFullYear]());\n};\n\nprototype[getDate] = function() {\n\treturn this.day;\n};\n\nprototype.getDay = function() {\n\treturn this.greg().getDay();\n};\n\nprototype.setFullYear = function(year) {\n\tthis.year = year;\n\tfix(this);\n\treturn this;\n};\n\nprototype.setMonth = function(month) {\n\tthis.month = c.monthNum(month);\n\tfix(this);\n\treturn this;\n};\n\nprototype.setTishreiMonth = function(month) {\n\treturn this.setMonth((month + 6) % MONTH_CNT(this[getFullYear]()) || 13);\n};\n\nprototype.setDate = function(date) {\n\tthis.day = date;\n\tfix(this);\n\treturn this;\n};\n\n/* convert hebrew date to absolute date */\n/* Absolute date of Hebrew DATE.\n The absolute date is the number of days elapsed since the (imaginary)\n Gregorian date Sunday, December 31, 1 BC. */\nfunction hebrew2abs(d) {\n\tvar m, tempabs = d[getDate](), year = d[getFullYear]();\n\n\tif (d[getMonth]() < TISHREI) {\n\t\tfor (m = TISHREI; m <= MONTH_CNT(year); m++) {\n\t\t\ttempabs += daysInMonth(m, year);\n\t\t}\n\n\t\tfor (m = months.NISAN; m < d[getMonth](); m++) {\n\t\t\ttempabs += daysInMonth(m, year);\n\t\t}\n\t} else {\n\t\tfor (m = TISHREI; m < d[getMonth](); m++) {\n\t\t\ttempabs += daysInMonth(m, year);\n\t\t}\n\t}\n\n\treturn c.hebElapsedDays(year) - 1373429 + tempabs;\n}\n\nfunction abs2hebrew(d) {\n\tvar mmap = [\n\t\tmonths.KISLEV, months.TEVET, months.SHVAT, months.ADAR_I, months.NISAN,\n\t\tmonths.IYYAR, months.SIVAN, months.TAMUZ, TISHREI, TISHREI, TISHREI, months.CHESHVAN\n\t], hebdate, gregdate, month, year;\n\n\tif (d >= 10555144) {\n\t\tthrow new RangeError(\"parameter to abs2hebrew \" + d + \" out of range\");\n\t}\n\n\tgregdate = greg.abs2greg(d);\n\thebdate = new HDate(1, TISHREI, (year = 3760 + gregdate[getFullYear]()));\n\n\twhile (d >= hebrew2abs(hebdate.setFullYear(year + 1))) {\n\t\tyear++;\n\t}\n\n\tif (year > 4634 && year < 10666) {\n\t\t// optimize search\n\t\tmonth = mmap[gregdate[getMonth]()];\n\t} else {\n\t\t// we're outside the usual range, so assume nothing about Hebrew/Gregorian calendar drift...\n\t\tmonth = TISHREI;\n\t}\n\n\twhile (d > hebrew2abs(hebdate = new HDate(daysInMonth(month, year), month, year))) {\n\t\tmonth = (month % MONTH_CNT(year)) + 1;\n\t}\n\n\treturn hebdate.setLocation.apply(hebdate.setDate(d - hebrew2abs(hebdate.setDate(1)) + 1), HDate.defaultLocation);\n}\n\nprototype.greg = function() {\n\treturn greg.abs2greg(hebrew2abs(this));\n};\n\nprototype.gregEve = function() {\n\treturn this.prev().sunset();\n};\n\nprototype[abs] = function() {\n\treturn hebrew2abs(this);\n};\n\nprototype.toString = function(o) {\n\treturn c.LANG([this[getDate](), null, gematriya(this[getDate]())], o) + ' ' +\n\t\tthis.getMonthName(o) + ' ' +\n\t\tc.LANG([this[getFullYear](), null, gematriya(this[getFullYear]())], o);\n};\n\nprototype.getMonthName = function(o) {\n\treturn c.LANG(c.monthNames[+this.isLeapYear()][this[getMonth]()], o);\n};\n\nprototype.setCity = function(city) {\n\treturn this.setLocation(cities.getCity(city));\n};\n\nprototype.setLocation = function(lat, lon) {\n\tif (typeof lat == 'object' && !Array.isArray(lat)) {\n\t\tlon = lat.long;\n\t\tlat = lat.lat;\n\t}\n\tif (Array.isArray(lat) && typeof lon == 'undefined') {\n\t\tlon = lat[0];\n\t\tlat = lat[1];\n\t}\n\tif (Array.isArray(lat)) {\n\t\tlat = (lat[0] * 60 + lat[1]) / 60;\n\t}\n\tif (Array.isArray(lon)) {\n\t\tlon = (lon[0] * 60 + lon[1]) / 60;\n\t}\n\tif (typeof lat != 'number') {\n\t\tthrow new TypeError('incorrect lat type passed to HDate.setLocation()');\n\t}\n\tif (typeof lon != 'number') {\n\t\tthrow new TypeError('incorrect long type passed to HDate.setLocation()');\n\t}\n\n\tthis.lat = lat;\n\tthis.long = lon;\n\n\tthis.il = cities.getCity(cities.nearest(lat, lon))[2];\n\n\treturn this;\n};\n\nfunction suntime(hdate) {\n\t// reset the date to midday before calling suncalc api\n\t// https://github.com/mourner/suncalc/issues/11\n\tvar date = hdate.greg();\n\treturn suncalc.getTimes(new Date(date.getFullYear(), date.getMonth(), date.getDate(), 12, 0, 0, 0, 0), hdate.lat, hdate.long);\n}\n\nprototype.sunrise = function() {\n\treturn suntime(this).sunrise;\n};\n\nprototype.sunset = function() {\n\treturn suntime(this).sunset;\n};\n\nprototype[hour] = function() {\n\treturn (this.sunset() - this.sunrise()) / 12; // ms in hour\n};\n\nprototype.hourMins = function() {\n\t// hour in ms / (1000 ms in s * 60 s in m) = mins in halachic hour\n\treturn this[hour]() / (1000 * 60);\n};\n\nprototype.nightHour = function() {\n\treturn (this.sunrise() - this.gregEve()) / 12; // ms in hour\n};\n\nprototype.nightHourMins = function() {\n\t// hour in ms / (1000 ms in s * 60 s in m) = mins in halachic hour\n\treturn this.nightHour() / (1000 * 60);\n};\n\nfunction hourOffset(hdate, hours) {\n\treturn new Date(hdate.sunrise()[getTime]() + (hdate[hour]() * hours));\n}\n\nvar zemanim = {\n\tchatzot: function(hdate) {\n\t\treturn hourOffset(hdate, 6);\n\t},\n\tchatzot_night: function(hdate) {\n\t\treturn new Date(hdate.sunrise()[getTime]() - (hdate.nightHour() * 6));\n\t},\n\talot_hashachar: function(hdate) {\n\t\treturn suntime(hdate).alot_hashachar;\n\t},\n\talot_hashacher: function(hdate) {\n\t\treturn suntime(hdate).alot_hashachar;\n\t},\n\tmisheyakir: function(hdate) {\n\t\treturn suntime(hdate).misheyakir;\n\t},\n\tmisheyakir_machmir: function(hdate) {\n\t\treturn suntime(hdate).misheyakir_machmir;\n\t},\n\tsof_zman_shma: function(hdate) { // Gra\n\t\treturn hourOffset(hdate, 3);\n\t},\n\tsof_zman_tfilla: function(hdate) { // Gra\n\t\treturn hourOffset(hdate, 4);\n\t},\n\tmincha_gedola: function(hdate) {\n\t\treturn hourOffset(hdate, 6.5);\n\t},\n\tmincha_ketana: function(hdate) {\n\t\treturn hourOffset(hdate, 9.5);\n\t},\n\tplag_hamincha: function(hdate) {\n\t\treturn hourOffset(hdate, 10.75);\n\t},\n\ttzeit: function(hdate) {\n\t\treturn suntime(hdate).tzeit;\n\t},\n\tneitz_hachama: function(hdate) {\n\t\treturn hdate.sunrise();\n\t},\n\tshkiah: function(hdate) {\n\t\treturn hdate.sunset();\n\t}\n};\n\nprototype.getZemanim = function() {\n\treturn c.map(zemanim, function(z){\n\t\treturn z(this);\n\t}, this);\n};\n\nHDate.addZeman = function(zeman, func) {\n\tzemanim[zeman] = func;\n};\n\nprototype.next = function() {\n\treturn abs2hebrew(this.abs() + 1).setLocation(this.lat, this.long);\n};\n\nprototype.prev = function() {\n\treturn abs2hebrew(this.abs() - 1).setLocation(this.lat, this.long);\n};\n\nprototype.isSameDate = function(other) {\n\tif (other instanceof HDate) {\n\t\tif (other[getFullYear]() == -1) {\n\t\t\tother = new HDate(other).setFullYear(this[getFullYear]());\n\t\t}\n\t\treturn this[abs]() == other[abs]();\n\t}\n\treturn false;\n};\n\nfunction onOrBefore(day, t, offset) {\n\treturn new HDate(dayOnOrBefore(day, t[abs]() + offset));\n}\n\nprototype.before = function(day) {\n\treturn onOrBefore(day, this, -1);\n};\n\nprototype.onOrBefore = function(day) {\n\treturn onOrBefore(day, this, 0);\n};\n\nprototype.nearest = function(day) {\n\treturn onOrBefore(day, this, 3);\n};\n\nprototype.onOrAfter = function(day) {\n\treturn onOrBefore(day, this, 6);\n};\n\nprototype.after = function(day) {\n\treturn onOrBefore(day, this, 7);\n};\n\nmodule.exports = HDate;\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar c = require('./common'),\n\tHDate = require('./hdate'),\n\tholidays = require('./holidays'),\n\tSedra = require('./sedra'),\n\tdafyomi = require('./dafyomi'),\n\tcities = require('./cities'),\n\tgreg = require('./greg'),\n\tEventEmitter = require('events').EventEmitter,\n\tgematriya = require('gematriya');\n\n// for minifying optimizations\nvar defProp = Object.defineProperty,\n\tTE = TypeError,\n\tfind = 'find',\n\tstrings = 'strings',\n\tgetYearObject = 'getYearObject',\n\tmap = 'map',\n\tgetDay = 'getDay',\n\tgetMonth = 'getMonth',\n\tgetFullYear = 'getFullYear',\n\tisLeapYear = 'isLeapYear',\n\tlength = 'length',\n\tnext = 'next',\n\tprev = 'prev',\n\tmonths = c.months,\n\tTISHREI = months.TISHREI,\n\tNISAN = months.NISAN,\n\tHebcalProto = Hebcal.prototype,\n\tMonthProto = Month.prototype,\n\tGregYearProto = GregYear.prototype,\n\tGregMonthProto = GregMonth.prototype,\n\tHDateProto = HDate.prototype;\n\nfunction getset(g, s) {\n\treturn {\n\t\tenumerable: true,\n\t\tconfigurable: true,\n\n\t\tget: g,\n\t\tset: s\n\t};\n}\n\nfunction extend(base, into) {\n\tfor (var i in into) {\n\t\tbase[i] = into[i];\n\t}\n\treturn base;\n}\n\n// Main Hebcal function\n\nfunction Hebcal(year, month) {\n\tvar me = this; // whenever this is done, it is for optimizations.\n\tif (!year) {\n\t\tyear = (new HDate())[getFullYear](); // this year;\n\t}\n\tif (typeof year !== 'number') {\n\t\tthrow new TE('year to Hebcal() is not a number');\n\t}\n\tme.year = year;\n\tif (month) {\n\t\tif (typeof month == 'string') {\n\t\t\tmonth = c.monthFromName(month);\n\t\t}\n\t\tif (typeof month == 'number') {\n\t\t\tmonth = [month];\n\t\t}\n\n\t\tif (Array.isArray(month)) {\n\t\t\tme.months = month[map](function(i){\n\t\t\t\tvar m = new Month(i, year);\n\t\t\t\tdefProp(m, '__year', {\n\t\t\t\t\tconfigurable: true,\n\t\t\t\t\twritable: true,\n\t\t\t\t\tvalue: me\n\t\t\t\t});\n\t\t\t\treturn m;\n\t\t\t});\n\n\t\t\tme.holidays = holidays.year(year);\n\t\t} else {\n\t\t\tthrow new TE('month to Hebcal is not a valid type');\n\t\t}\n\t} else {\n\t\treturn new Hebcal(year, c.range(1, c.MONTH_CNT(year)));\n\t}\n\n\tme[length] = c.daysInYear(year);\n\n\tdefProp(me, 'il', getset(function() {\n\t\treturn me[getMonth](1).il;\n\t}, function(il) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.il = il;\n\t\t});\n\t}));\n\n\tdefProp(me, 'lat', getset(function() {\n\t\treturn me[getMonth](1).lat;\n\t}, function(lat) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.lat = lat;\n\t\t});\n\t}));\n\tdefProp(me, 'long', getset(function() {\n\t\treturn me[getMonth](1).long;\n\t}, function(lon) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.long = lon;\n\t\t});\n\t}));\n}\n\nHebcalProto[isLeapYear] = HDateProto[isLeapYear];\n\nHebcalProto.setCity = function(city) {\n\tthis.months.forEach(function(m){\n\t\tm.setCity(city);\n\t});\n\treturn this;\n};\n\nHebcalProto.setLocation = function(lat, lon) {\n\tthis.months.forEach(function(m){\n\t\tm.setLocation(lat, lon);\n\t});\n\treturn this;\n};\n\nHebcalProto[next] = function() {\n\treturn new Hebcal(this.year + 1);\n};\n\nHebcalProto[prev] = function() {\n\treturn new Hebcal(this.year - 1);\n};\n\nHebcalProto[getMonth] = function(month) {\n\tvar months = this.months;\n\tmonth = c.monthNum(month);\n\tif (month > this.months[length]) {\n\t\treturn this[next]()[getMonth](month - months[length]);\n\t}\n\treturn months[month > 0 ? month - 1 : months[length] + month];\n};\n\nHebcalProto[getDay] = function(day) {\n\tvar me = this;\n\tif (day > me[length]) {\n\t\treturn null;\n\t}\n\tif (day < 0) {\n\t\treturn me[getDay](me[length] - day);\n\t}\n\tvar rosh = me[find](29, months.ELUL)[0].abs() + 1 - me[find](1, NISAN)[0].abs(); // number of days between Nisan and Tishrei\n\tif (day <= rosh) {\n\t\treturn me[getMonth](NISAN)[getDay](day);\n\t}\n\treturn me[getMonth](TISHREI)[getDay](day - rosh);\n};\n\nHebcalProto.days = function() {\n\treturn [].concat.apply([], this.months[map](function(m){\n\t\treturn m.days;\n\t}));\n};\n\nHebcalProto[map] = function() {\n\treturn [][map].apply(this.days(), arguments);\n};\n\nHebcalProto.filter = function() {\n\treturn [].filter.apply(this.days(), arguments);\n};\n\nHebcalProto.addHoliday = function(holiday) {\n\tif (!(holiday instanceof holidays.Event)) {\n\t\tthrow new TE('non-Event passed to addHoliday()');\n\t}\n\tthis.holidays.add(holiday);\n\treturn this;\n};\n\nHebcalProto.findParsha = function(parsha, o) {\n\tvar langs = o ? [o] : ['s','a','h']; // FIXME: abstract this away somewhere\n\tvar days = this.filter(function(d){\n\t\treturn Math.max.apply(null, langs.map(function(l){\n\t\t\treturn d.getSedra(l).indexOf(parsha) + 1;\n\t\t}));\n\t});\n\treturn days[days[length] - 1];\n};\nHebcalProto.findSedra = HebcalProto.findParsha;\n\nHebcalProto[find] = function find_f(day, month) {\n\tvar me = this;\n\tif (arguments[length] === 1) {\n\t\tif (typeof day == 'string') {\n\t\t\treturn find_f[strings].call(me, day);\n\t\t} else if (Array.isArray(day)) {\n\t\t\treturn [].concat.apply([], day[map](function(d){\n\t\t\t\treturn me[find][Array.isArray(d) ? 'apply' : 'call'](me, d);\n\t\t\t}));\n\t\t} else if (day instanceof HDate) {\n\t\t\treturn me[find](day.getDate(), day[getMonth]());\n\t\t} else if (day instanceof Date) {\n\t\t\treturn me[find](new HDate(day));\n\t\t}\n\t} else if (arguments[length] == 2) {\n\t\tif (month instanceof Month) {\n\t\t\treturn month[find](day);\n\t\t} else if (Array.isArray(month)) {\n\t\t\treturn [].concat.apply([], month[map](function(m){\n\t\t\t\treturn me[find](day, m);\n\t\t\t}));\n\t\t} else if (typeof month == 'string') {\n\t\t\treturn me[find](day, c.monthNum(month));\n\t\t} else if (typeof month == 'number') {\n\t\t\treturn me[find](day, me[getMonth](month));\n\t\t}\n\t}\n\treturn [];\n};\nHebcalProto[find][strings] = function strings(str) {\n\tvar split = str.split(/\\s+/), func = strings[str.replace(/\\s/g, '_').toLowerCase()];\n\tif (!split[length]) {\n\t\treturn [];\n\t} else if (func) {\n\t\treturn func.call(this);\n\t}\n\ttry {\n\t\treturn this[find](new HDate(str));\n\t} catch(e) {\n\t\treturn split[length] - 1 ? this[find].apply(this, split) : [];\n\t}\n};\nHebcalProto[find][strings].rosh_chodesh = function() {\n\treturn this[find]('Rosh Chodesh', c.range(1, this.months[length]));\n};\nHebcalProto[find][strings].holidays = function() {\n\treturn [].concat.apply([], this.holidays[map](function(h){\n\t\treturn this[find](h.date);\n\t}, this));\n};\nHebcalProto[find][strings].omer = function() {\n\treturn this[find](c.range(15+1, 15+49), NISAN);\n};\nHebcalProto[find][strings].today = function() {\n\treturn this[find](new HDate());\n};\nHebcalProto[find][strings].yesterday = function() {\n\treturn [this[find]('today')[0][prev]()];\n};\nHebcalProto[find][strings].tomorrow = function() {\n\treturn [this[find]('today')[0][next]()];\n};\nHebcalProto[find][strings].pesach = function() {\n\treturn this[find](c.range(15, 15+8-this.il), NISAN);\n};\nHebcalProto[find][strings].sukkot = function() {\n\treturn this[find](c.range(15, 15+9-this.il), TISHREI);\n};\nHebcalProto[find][strings].succot = HebcalProto[find][strings].succos = HebcalProto[find][strings].sukkos = HebcalProto[find][strings].sukkot;\nHebcalProto[find][strings].shavuot = function() {\n\treturn this[find](c.range(6, 7-this.il), months.SIVAN);\n};\nHebcalProto[find][strings].shavuos = HebcalProto[find][strings].shavuot;\nHebcalProto[find][strings].rosh_hashana = function() {\n\treturn this[find](c.range(1, 2), TISHREI);\n};\nHebcalProto[find][strings].rosh_hashanah = HebcalProto[find][strings].rosh_hashana;\n\n// Hebcal properties\n\nHebcal.addZeman = HDate.addZeman;\n\nHebcal.cities = cities;\n\nHebcal.range = c.range;\n\nHebcal.gematriya = gematriya;\n\nHebcal.holidays = c.filter(holidays, ['masks', 'Event']); // not year(), atzmaut()\n\nHebcal.parshiot = Sedra.parshiot;\n\nHebcal.LANGUAGE = c.LANG;\n\nHebcal[map] = c[map];\n\nHebcal.filter = c.filter;\n\ndefProp(Hebcal, 'defaultLocation', getset(function(){\n\treturn HDate.defaultLocation;\n}, function(loc){\n\tHebcal.events.emit('locationChange', HDate.defaultLocation);\n\tHDate.defaultLocation = loc;\n}));\ndefProp(Hebcal, 'defaultCity', getset(function(){\n\treturn HDate.defaultCity;\n}, function(city){\n\tHebcal.defaultLocation = cities.getCity(city).slice(0, 2); // call the event\n}));\n\ndefProp(Hebcal, 'candleLighting', getset(function(){\n\treturn holidays.Event.candleLighting;\n}, function(mins){\n\tholidays.Event.candleLighting = mins;\n}));\n\ndefProp(Hebcal, 'havdalah', getset(function(){\n\treturn holidays.Event.havdalah;\n}, function(mins){\n\tholidays.Event.havdalah = mins;\n}));\n\n// Months\n\nfunction Month(month, year) {\n\tvar me = this;\n\tmonth = c.monthNum(month);\n\tif (typeof month != 'number') {\n\t\tthrow new TE('month to Hebcal.Month is not a valid type');\n\t}\n\tif (typeof year != 'number') {\n\t\tthrow new TE('year to Hebcal.Month is not a number');\n\t}\n\tme.month = month;\n\tme.year = year;\n\n\tme.days = c.range(1, c.daysInMonth(month, year))[map](function(i){\n\t\tvar d = new HDate(i, month, year);\n\t\tdefProp(d, '__month', {\n\t\t\tconfigurable: true,\n\t\t\twritable: true,\n\t\t\tvalue: me\n\t\t});\n\t\treturn d;\n\t});\n\n\tme[length] = me.days[length];\n\n\tme.holidays = c.filter(holidays.year(year), function(h){\n\t\treturn h[0].date[getMonth]() == month;\n\t});\n\n\tdefProp(me, 'il', getset(function(){\n\t\treturn me[getDay](1).il;\n\t}, function(il){\n\t\tme.days.forEach(function(d){\n\t\t\td.il = il;\n\t\t});\n\t}));\n\n\tdefProp(me, 'lat', getset(function(){\n\t\treturn me[getDay](1).lat;\n\t}, function(lat){\n\t\tme.days.forEach(function(d){\n\t\t\td.lat = lat;\n\t\t});\n\t}));\n\tdefProp(me, 'long', getset(function(){\n\t\treturn me[getDay](1).long;\n\t}, function(lon){\n\t\tme.days.forEach(function(d){\n\t\t\td.long = lon;\n\t\t});\n\t}));\n\n\treturn me;\n};\n\nHebcal.Month = Month;\n\nMonthProto[isLeapYear] = HDateProto[isLeapYear];\n\nMonthProto[prev] = function() {\n\tvar me = this, year = me[getYearObject]();\n\tif (me.month === 1) { // Nisan\n\t\treturn year[getMonth](-1);\n\t} else if (me.month === TISHREI) {\n\t\treturn year[prev]()[getMonth](months.ELUL);\n\t} else {\n\t\treturn year[getMonth](me.month - 1);\n\t}\n};\n\nMonthProto[next] = function() {\n\tvar me = this, year = me[getYearObject]();\n\tif (me.month === c.MONTH_CNT(me.year)) { // Adar\n\t\treturn year[getMonth](1);\n\t} else if (me.month === months.ELUL) {\n\t\treturn year[next]()[getMonth](TISHREI);\n\t} else {\n\t\treturn year[getMonth](me.month + 1);\n\t}\n};\n\nMonthProto[getDay] = function(day) {\n\tvar days = this.days;\n\tday = c.dayYearNum(day);\n\tif (day > days[length]) {\n\t\treturn this[next]()[getDay](day - days[length]);\n\t}\n\treturn days[day > 0 ? day - 1 : days[length] + day];\n};\n\nMonthProto[getYearObject] = function() {\n\treturn this.__year || new Hebcal(this.year);\n};\n\nMonthProto.getName = function(o) {\n\treturn c.LANG(c.monthNames[+this[isLeapYear]()][this.month], o);\n};\n\nMonthProto.rosh_chodesh = function() {\n\tvar prevMonth = this[prev]();\n\treturn prevMonth[length] == 30 ? [prevMonth[getDay](-1), this[getDay](1)] : [this[getDay](1)];\n};\n\nMonthProto.setCity = function(city) {\n\tthis.days.forEach(function(d){\n\t\td.setCity(city);\n\t});\n\treturn this;\n};\n\nMonthProto.setLocation = function(lat, lon) {\n\tthis.days.forEach(function(d){\n\t\td.setLocation(lat, lon);\n\t});\n\treturn this;\n};\n\nMonthProto[map] = function() {\n\treturn [][map].apply(this.days, arguments);\n};\n\nMonthProto.molad = function() {\n\tvar retMolad = {}, year, m_elapsed, p_elapsed, h_elapsed, parts, m_adj, toInt = parseInt;\n\n m_adj = this.month - 7;\n\tyear = this.year - 1;\n if (m_adj < 0) {\n\t\tm_adj += c.MONTH_CNT(year + 1);\n\t}\n\n m_elapsed = toInt(m_adj +\n 235 * (year / 19)/* +\n 12 * (year % 19) +\n (((year % 19) * 7) + 1) / 19*/);\n\n p_elapsed = toInt(204 + (793 * (m_elapsed % 1080)));\n\n h_elapsed = toInt(5 + (12 * m_elapsed) +\n 793 * (m_elapsed / 1080)/* +\n p_elapsed / 1080*/ -\n 6);\n\n parts = toInt((p_elapsed % 1080) + 1080 * (h_elapsed % 24));\n\n retMolad.doy = new HDate(toInt(1 + 29 * m_elapsed + h_elapsed / 24)).getDay();\n retMolad.hour = Math.round(h_elapsed % 24);\n var chalakim = toInt(parts % 1080);\n retMolad.minutes = toInt(chalakim / 18);\n retMolad.chalakim = chalakim % 18;\n var day = this.prev().find.strings.shabbat_mevarchim._calc.call(this)[0].onOrAfter(retMolad.doy).greg();\n day.setHours(retMolad.hour);\n day.setMinutes(retMolad.minutes);\n day.setSeconds(retMolad.chalakim * 3.33);\n retMolad.day = day;\n\n return retMolad;\n};\n\nMonthProto[find] = function find_f(day) {\n\tvar me = this;\n\tif (typeof day == 'number') {\n\t\treturn [me[getDay](day)];\n\t} else if (typeof day == 'string') {\n\t\treturn find_f[strings].call(me, day);\n\t} else if (Array.isArray(day)) {\n\t\treturn [].concat.apply([], day[map](function(d){\n\t\t\treturn me[find](d);\n\t\t}));\n\t} else if (day instanceof HDate && day[getFullYear]() == me.year && day[getMonth]() == me.month) {\n\t\treturn me[find](day.getDate());\n\t} else if (day instanceof Date) {\n\t\treturn me[find](new HDate(day));\n\t}\n\treturn [];\n};\nMonthProto[find][strings] = function strings(str) {\n\tvar func = strings[str.replace(/\\s/g, '_').toLowerCase()];\n\tif (func) {\n\t\treturn func.call(this);\n\t}\n\ttry {\n\t\treturn this[find](new HDate(str));\n\t} catch(e) {\n\t\tvar num = c.dayYearNum(str);\n\t\treturn num ? this[find](num) : [];\n\t}\n};\nMonthProto[find][strings].rosh_chodesh = function() {\n\treturn this.rosh_chodesh();\n};\nMonthProto[find][strings].shabbat_mevarchim = function sm() {\n\treturn this.month === months.ELUL ? [] : // No birchat hachodesh in Elul\n\t\tsm._calc.call(this);\n};\nMonthProto[find][strings].shabbat_mevarchim._calc = function() {\n\treturn this[find](this[getDay](29).onOrBefore(c.days.SAT));\n};\nMonthProto[find][strings].shabbos_mevarchim = MonthProto[find][strings].shabbos_mevorchim = MonthProto[find][strings].shabbat_mevarchim;\n\n// HDate days\n\nHebcal.HDate = HDate;\n\nHDateProto.getMonthObject = function() {\n\treturn this.__month || new Month(this[getMonth](), this[getFullYear]());\n};\n\nHDateProto[getYearObject] = function() {\n\treturn this.getMonthObject()[getYearObject]();\n};\n\n(function(){\n\tvar orig = {}; // slightly less overhead when using unaffiliated HDate()s\n\t[prev, next].forEach(function(func){\n\t\torig[func] = HDateProto[func];\n\t\tHDateProto[func] = function() {\n\t\t\tvar day = orig[func].call(this);\n\t\t\tif (!this.__month) {\n\t\t\t\treturn day;\n\t\t\t}\n\t\t\treturn this[getYearObject]()[find](day)[0];\n\t\t};\n\t});\n})();\n\nHDateProto.getSedra = (function(){\n\tvar __cache = {};\n\n\treturn function(o) {\n\t\tvar sedraYear = __cache[this[getFullYear]()];\n\t\tif (!sedraYear || (sedraYear.il != this.il)) {\n\t\t\tsedraYear = __cache[this[getFullYear]()] = new Sedra(this[getFullYear](), this.il);\n\t\t}\n\t\treturn sedraYear.get(this)[map](function(p){\n\t\t\treturn c.LANG(p, o);\n\t\t});\n\t}\n})();\nHDateProto.getParsha = HDateProto.getSedra;\n\nHDateProto.holidays = function(all) {\n\tvar me = this, days = me[getYearObject]().holidays[me];\n\treturn days ? days.filter(function(h){\n\t\treturn all ? true : !h.routine() && h.is(me);\n\t})[map](function(h){\n\t\th.date.setLocation(me);\n\t\treturn h;\n\t}) : [];\n};\n\n['candleLighting', 'havdalah'].forEach(function(prop){\n\tHDateProto[prop] = function(){\n\t\tvar me = this, hd = me.holidays(true).filter(function(h){\n\t\t\treturn h.is(me);\n\t\t});\n\t\tif (hd.length) {\n\t\t\thd = c.filter(hd.map(function(h){\n\t\t\t\treturn h[prop]();\n\t\t\t}), true);\n\t\t}\n\t\treturn hd.length ? new Date(Math.max.apply(null, hd)) : null;\n\t};\n});\n\nHDateProto.omer = function() {\n\tvar me = this, greg = me.greg().getTime(), year = me[getFullYear]();\n\tif (greg > new HDate(15, NISAN, year).greg().getTime() &&\n\t\tgreg < new HDate( 6, months.SIVAN, year).greg().getTime()) {\n\t\treturn me.abs() - new HDate(16, NISAN, year).abs() + 1;\n\t}\n\treturn 0;\n};\n\nHDateProto.dafyomi = function(o) {\n\treturn dafyomi.dafname(dafyomi.dafyomi(this.greg()), o);\n};\n\nHDateProto.tachanun = (function() {\n\tvar NONE = tachanun.NONE = 0,\n\t\tMINCHA = tachanun.MINCHA = 1,\n\t\tSHACHARIT = tachanun.SHACHARIT = 2,\n\t\tALL_CONGS = tachanun.ALL_CONGS = 4;\n\n\tvar __cache = {\n\t\tall: {},\n\t\tsome: {},\n\t\tyes_prev: {},\n\t\til: {}\n\t};\n\n\tfunction tachanun() {\n\t\tvar checkNext = !arguments[0], me = this;\n\n\t\tvar year = me[getYearObject](), y = year.year;\n\n\t\tfunction mapAbs(arr) {\n\t\t\treturn arr[map](function(d){\n\t\t\t\treturn d.abs();\n\t\t\t});\n\t\t}\n\n\t\tvar all, some, yes_prev;\n\t\tif (__cache.il[y] === me.il) {\n\t\t\tall = __cache.all[y];\n\t\t\tsome = __cache.some[y];\n\t\t\tyes_prev = __cache.yes_prev[y];\n\t\t} else {\n\t\t\tall = __cache.all[y] = mapAbs(year[find]('Rosh Chodesh').concat(\n\t\t\t\tyear[find](c.range(1, c.daysInMonth(NISAN, y)), NISAN), // all of Nisan\n\t\t\t\tyear[find](15 + 33, NISAN), // Lag Baomer\n\t\t\t\tyear[find](c.range(1, 8 - me.il), months.SIVAN), // Rosh Chodesh Sivan thru Isru Chag\n\t\t\t\tyear[find]([9, 15], months.AV), // Tisha B'av and Tu B'av\n\t\t\t\tyear[find](-1, months.ELUL), // Erev Rosh Hashanah\n\t\t\t\tyear[find]([1, 2], TISHREI), // Rosh Hashanah\n\t\t\t\tyear[find](c.range(9, 24 - me.il), TISHREI), // Erev Yom Kippur thru Isru Chag\n\t\t\t\tyear[find](c.range(25, 33), months.KISLEV), // Chanukah\n\t\t\t\tyear[find](15, months.SHVAT), // Tu B'shvat\n\t\t\t\tyear[find]([14, 15], year[isLeapYear]() ? [months.ADAR_I, months.ADAR_II] : months.ADAR_I) // Purim/Shushan Purim + Katan\n\t\t\t));\n\t\t\tsome = __cache.some[y] = mapAbs([].concat( // Don't care if it overlaps days in all, because all takes precedence\n\t\t\t\tyear[find](c.range(1, 13), months.SIVAN), // Until 14 Sivan\n\t\t\t\tyear[find](c.range(20, 31), TISHREI), // Until after Rosh Chodesh Cheshvan\n\t\t\t\tyear[find](14, months.IYYAR), // Pesach Sheini\n\t\t\t\tholidays.atzmaut(y)[1].date || [], // Yom HaAtzma'ut, which changes based on day of week\n\t\t\t\ty >= 5727 ? year[find](29, months.IYYAR) : [] // Yom Yerushalayim\n\t\t\t));\n\t\t\tyes_prev = __cache.yes_prev[y] = mapAbs([].concat( // tachanun is said on the previous day at mincha\n\t\t\t\tyear[find](-1, months.ELUL), // Erev Rosh Hashanah\n\t\t\t\tyear[find](9, months.TISHREI), // Erev Yom Kippur\n\t\t\t\tyear[find](14, months.IYYAR) // Pesach Sheini\n\t\t\t));\n\t\t\t__cache.il[y] = me.il;\n\t\t}\n\n\t\tall = all.indexOf(me.abs()) > -1;\n\t\tsome = some.indexOf(me.abs()) > -1;\n\t\tyes_prev = yes_prev.indexOf(me.abs()+1) > -1;\n\n\t\tif (all) {\n\t\t\treturn NONE;\n\t\t}\n\t\tvar ret = (!some && ALL_CONGS) | (me[getDay]() != 6 && SHACHARIT);\n\t\tif (checkNext && !yes_prev) {\n\t\t\tret |= ((me[next]().tachanun(true) & SHACHARIT) && MINCHA);\n\t\t} else {\n\t\t\tret |= (me[getDay]() != 5 && MINCHA);\n\t\t}\n\t\treturn ret == ALL_CONGS ? NONE : ret;\n\t}\n\treturn tachanun;\n})();\n\nHDateProto.hallel = (function() {\n\tvar NONE = hallel.NONE = 0,\n\t\tHALF = hallel.HALF = 1,\n\t\tWHOLE = hallel.WHOLE = 2;\n\n\tvar __cache = {\n\t\twhole: {},\n\t\thalf: {},\n\t\til: {}\n\t};\n\n\tfunction hallel() {\n\t\tvar me = this, year = me[getYearObject](), y = year.year;\n\n\t\tvar whole = __cache.il[y] == me.il && __cache.whole[y] || (__cache.whole[y] = [].concat(\n\t\t\tyear[find](c.range(25, 33), months.KISLEV), // Chanukah\n\t\t\tyear[find]([15, me.il ? null : 16], NISAN), // First day(s) of Pesach\n\t\t\tyear[find]('Shavuot'),\n\t\t\tyear[find]('Sukkot'),\n\t\t\tholidays.atzmaut(y)[1].date || [], // Yom HaAtzma'ut, which changes based on day of week\n\t\t\ty >= 5727 ? year[find](29, months.IYYAR) : [] // Yom Yerushalayim\n\t\t)[map](function(d){\n\t\t\treturn d.abs();\n\t\t}));\n\t\tvar half = __cache.il[y] == me.il && __cache.half[y] || (__cache.half[y] = [].concat(\n\t\t\tyear[find]('Rosh Chodesh').filter(function(rc){return rc[getMonth]() != TISHREI}), // Rosh Chodesh, but not Rosh Hashanah\n\t\t\tyear[find](c.range(17 - me.il, 23 - me.il), NISAN) // Last six days of Pesach\n\t\t)[map](function(d){\n\t\t\treturn d.abs();\n\t\t}));\n\t\t__cache.il[y] = me.il;\n\n\t\treturn (whole.indexOf(me.abs()) > -1 && WHOLE) || (half.indexOf(me.abs()) > -1 && HALF) || NONE;\n\t}\n\treturn hallel;\n})();\n\n// Events\n\n(function(events){\n\tvar refreshInterval, refresh, today = new HDate();\n\n\tdefProp(events, 'refreshInterval', getset(function(){\n\t\treturn refreshInterval;\n\t}, function(ms){\n\t\tif (refresh) {\n\t\t\trefresh = clearInterval(refresh);\n\t\t}\n\t\trefreshInterval = ms;\n\t\tif (ms) {\n\t\t\trefresh = setInterval(checkTimes, ms);\n\t\t\tif (refresh.unref) {\n\t\t\t\trefresh.unref(); // don't keep the process open\n\t\t\t}\n\t\t}\n\t}));\n\n\tevents.beforeZeman = 1000 * 60 * 10; // 10 minutes\n\n\tfunction checkTimes() {\n\t\tvar now = new HDate();\n\n\t\tif (!today.isSameDate(now)) {\n\t\t\tevents.emit('dayChange');\n\t\t\ttoday = now;\n\t\t}\n\n\t\tfunction close(obj, compare) {\n\t\t\treturn c.filter(c[map](obj, function(time){\n\t\t\t\treturn time - nowGreg;\n\t\t\t}), function(time) {\n\t\t\t\treturn time > 0 && time - compare < 0;\n\t\t\t});\n\t\t}\n\n\t\tvar nowGreg = new Date(),\n\t\t\talmostTime = close(now.getZemanim(), events.beforeZeman),\n\t\t\tcustomTimes = close(events.customs, events.refreshInterval);\n\n\t\tfor (var zeman in almostTime) {\n\t\t\tevents.emit('almostZeman', zeman, almostTime[zeman]);\n\t\t\tif (almostTime[zeman] < events.refreshInterval) {\n\t\t\t\tevents.emit('atZeman', zeman);\n\t\t\t}\n\t\t}\n\t\tfor (var custom in customTimes) {\n\t\t\tevents.emit('custom', custom);\n\t\t}\n\t}\n\tcheckTimes();\n\n\tevents.refreshInterval = 1000 * 60 * 5; // 5 minutes\n\t// set the interval\n\n\tevents.customs = {};\n})(Hebcal.events = new EventEmitter());\n\n// Gregorian years\n\nfunction GregYear(year, month) {\n\tvar me = this;\n\tif (!year) {\n\t\tyear = (new Date)[getFullYear]();\n\t}\n\tif (typeof year === 'string') {\n\t\tvar d = new Date(year);\n\t\tmonth = year.indexOf(' ') + 1 || year.indexOf('-') + 1 || year.indexOf('/') + 1 ? d[getMonth]() + 1 : c.range(1, 12);\n\t\t// Check if a month was passed in the string. Can't just check for default January, because a real January might have been passed.\n\t\treturn new GregYear(d[getFullYear](), month);\n\t}\n\tif (typeof year !== 'number') {\n\t\tthrow new TE('year to Hebcal.GregYear() is not a number');\n\t}\n\tme.year = year;\n\n\tif (month) {\n\t\tif (typeof month === 'string') { // month name\n\t\t\tmonth = greg.lookupMonthName(month);\n\t\t}\n\t\tif (typeof month === 'number') {\n\t\t\tmonth = [month];\n\t\t}\n\n\t\tif (Array.isArray(month)) {\n\t\t\tme.months = month[map](function(i){\n\t\t\t\tvar m = new GregMonth(i, year);\n\t\t\t\tdefProp(m, '__year', {\n\t\t\t\t\tconfigurable: true,\n\t\t\t\t\twritable: true,\n\t\t\t\t\tvalue: me\n\t\t\t\t});\n\t\t\t\treturn m;\n\t\t\t});\n\t\t} else {\n\t\t\tthrow new TE('month to Hebcal.GregYear() is not a valid type');\n\t\t}\n\t} else {\n\t\treturn new GregYear(year, c.range(1, 12));\n\t}\n\n\tme.hebyears = [].concat.apply([], me.months[map](function(m){\n\t\treturn m.hebmonths[map](function(hm){\n\t\t\treturn hm.year;\n\t\t});\n\t})).filter(function(val, i, arr){\n\t\treturn arr.indexOf(val) === i; // keep unique values only\n\t});\n\n\tme.holidays = c.filter(holidays.year(me.hebyears[0]), function(h){\n\t\treturn h[0].date.greg()[getFullYear]() === year && me.months.filter(function(m){ // don't keep ones that are out of bounds\n\t\t\treturn m.month === h[0].date.greg()[getMonth]() + 1;\n\t\t})[length];\n\t});\n\tif (me.hebyears[1]) {\n\t\textend(me.holidays, c.filter(holidays.year(me.hebyears[1]), function(h){\n\t\t\treturn h[0].date.greg()[getFullYear]() === year && me.months.filter(function(m){ // don't keep ones that are out of bounds\n\t\t\t\treturn m.month === h[0].date.greg()[getMonth]() + 1;\n\t\t\t})[length];\n\t\t}));\n\t}\n\n\tme[length] = 365 + greg.LEAP(year);\n\n\tdefProp(me, 'il', getset(function() {\n\t\treturn me[getMonth](1).il;\n\t}, function(il) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.il = il;\n\t\t});\n\t}));\n\n\tdefProp(me, 'lat', getset(function() {\n\t\treturn me[getMonth](1).lat;\n\t}, function(lat) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.lat = lat;\n\t\t});\n\t}));\n\tdefProp(me, 'long', getset(function() {\n\t\treturn me[getMonth](1).long;\n\t}, function(lon) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.long = lon;\n\t\t});\n\t}));\n\n\treturn me;\n};\n\nHebcal.GregYear = GregYear;\n\nGregYearProto[isLeapYear] = function() {\n\treturn this[length] == 366;\n};\n\nGregYearProto.setCity = HebcalProto.setCity;\nGregYearProto.setLocation = HebcalProto.setLocation;\n\nGregYearProto[next] = function() {\n\treturn new GregYear(this.year + 1);\n};\n\nGregYearProto[prev] = function() {\n\treturn new GregYear(this.year - 1);\n};\n\nGregYearProto[getMonth] = function(month) {\n\tvar months = this.months\n\tmonth = typeof month == 'number' ? month : greg.lookupMonthNum(month);\n\tif (month > months[length]) {\n\t\treturn this[next]()[getMonth](month - months[length]);\n\t}\n\treturn months[month > 0 ? month - 1 : months[length] + month];\n};\n\nextend(GregYearProto, {\n\tdays: HebcalProto.days,\n\tmap: HebcalProto[map],\n\tfilter: HebcalProto.filter,\n\taddHoliday: HebcalProto.addHoliday,\n});\n\n/*GregYearProto.days = HebcalProto.days;\nGregYearProto[map] = HebcalProto[map];\nGregYearProto.filter = HebcalProto.filter;\n\nGregYearProto.addHoliday = HebcalProto.addHoliday;*/\n\nfunction GregMonth(month, year) {\n\tvar me = this;\n\tif (typeof month == 'string') {\n\t\tmonth = greg.lookupMonthNum(month);\n\t}\n\tif (typeof month != 'number') {\n\t\tthrow new TE('month to Hebcal.GregMonth is not a valid type');\n\t}\n\tif (typeof year != 'number') {\n\t\tthrow new TE('year to Hebcal.GregMonth is not a number');\n\t}\n\n\tme.year = year;\n\tme.month = month;\n\n\tme.days = c.range(1, greg.daysInMonth(month, year))[map](function(i){\n\t\tvar d = new HDate(new Date(year, month - 1, i));\n\t\tdefProp(d, '__gregmonth', {\n\t\t\tconfigurable: true,\n\t\t\twritable: true,\n\t\t\tvalue: me\n\t\t});\n\t\treturn d;\n\t});\n\n\tme[length] = me.days[length];\n\n\tme.hebmonths = [\n\t\t{month: me[getDay]( 1)[getMonth](), year: me[getDay]( 1)[getFullYear]()},\n\t\t{month: me[getDay](-1)[getMonth](), year: me[getDay](-1)[getFullYear]()}\n\t].filter(function(val, i, arr){\n\t\treturn i === 0 || val.month != arr[0].month;\n\t});\n\n\tdefProp(me, 'il', getset(function(){\n\t\treturn me[getDay](1).il;\n\t}, function(il){\n\t\tme.days.forEach(function(d){\n\t\t\td.il = il;\n\t\t});\n\t}));\n\n\tdefProp(me, 'lat', getset(function(){\n\t\treturn me[getDay](1).lat;\n\t}, function(lat){\n\t\tme.days.forEach(function(d){\n\t\t\td.lat = lat;\n\t\t});\n\t}));\n\tdefProp(me, 'long', getset(function(){\n\t\treturn me[getDay](1).long;\n\t}, function(lon){\n\t\tme.days.forEach(function(d){\n\t\t\td.long = lon;\n\t\t});\n\t}));\n\n\treturn me;\n};\n\nHebcal.GregMonth = GregMonth;\n\nGregMonthProto[isLeapYear] = function() {\n\treturn greg.LEAP(this.year);\n};\n\nGregMonthProto[prev] = function() {\n\tif (this.month === 1) {\n\t\treturn this[getYearObject]()[prev]()[getMonth](-1);\n\t} else {\n\t\treturn this[getYearObject]()[getMonth](this.month - 1);\n\t}\n};\n\nGregMonthProto[next] = function() {\n\treturn this[getYearObject]()[getMonth](this.month + 1);\n};\n\nGregMonthProto[getDay] = function(day) {\n\tif (day > this.days[length]) {\n\t\treturn this[next]()[getDay](day - this.days[length]);\n\t}\n\treturn this.days[day > 0 ? day - 1 : this.days[length] + day];\n};\n\nGregMonthProto[getYearObject] = function() {\n\treturn this.__year || new GregYear(this.year);\n};\n\nGregMonthProto.getName = function() {\n\treturn greg.monthNames[this.month];\n};\n\nGregMonthProto.setCity = MonthProto.setCity;\nGregMonthProto.setLocation = MonthProto.setLocation;\n\nGregMonthProto[map] = MonthProto[map];\n\nHDateProto.getGregMonthObject = function() {\n\treturn this.__gregmonth || new GregMonth(this.greg()[getMonth]() + 1, this.greg()[getFullYear]());\n};\n\nHDateProto.getGregYearObject = function() {\n\treturn this.getGregMonthObject()[getYearObject]();\n};\n\nmodule.exports = Hebcal;\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar c = require('./common'),\n\tHDate = require('./hdate'),\n\tgematriya = require('gematriya');\n\nvar __cache = {};\n\n// for byte optimizations\n\nvar dayOnOrBefore = c.dayOnOrBefore,\n\tmonths = c.months,\n\tdays = c.days,\n\tTISHREI = months.TISHREI,\n\tKISLEV = months.KISLEV,\n\tNISAN = months.NISAN,\n\tSAT = days.SAT,\n\tgetDay = 'getDay',\n\tabs = 'abs',\n\tShabbat = 'Shabbat',\n\tShabbos = 'Shabbos';\n\nfunction Chanukah(day) {\n\treturn ['Chanukah: Candle ' + day, 0, 'חנוכה: נר ' + gematriya(day)];\n}\n\nfunction CHM(desc) {\n\treturn [desc[0] + ' (CH\"M)', desc[1] ? desc[1] + ' (CH\"M)' : desc[1], desc[2] ? desc[2] + ' )חה\"ם(' : desc[2]];\n}\n\nfunction Sukkot(day) {\n\treturn ['Sukkot: ' + day, 'Succos: ' + day, 'סוכות יום ' + gematriya(day)];\n}\n\nfunction Pesach(day) {\n\treturn ['Pesach: ' + day, 0, 'פסח יום ' + gematriya(day)];\n}\n\nvar USER_EVENT = 1,\n\tLIGHT_CANDLES = 2,\n\tYOM_TOV_ENDS = 4,\n\tCHUL_ONLY = 8, // chutz l'aretz (Diaspora)\n\tIL_ONLY = 16, // b'aretz (Israel)\n\tLIGHT_CANDLES_TZEIS = 32;\n\nexports.masks = {\n\tUSER_EVENT : USER_EVENT,\n\tLIGHT_CANDLES : LIGHT_CANDLES,\n\tYOM_TOV_ENDS : YOM_TOV_ENDS,\n\tCHUL_ONLY : CHUL_ONLY,\n\tIL_ONLY : IL_ONLY,\n\tLIGHT_CANDLES_TZEIS: LIGHT_CANDLES_TZEIS\n};\n\nfunction Event(date, desc, mask) {\n\tvar me = this;\n\tme.date = new HDate(date);\n\tme.desc = typeof desc != 'object' ? [desc] : desc;\n\n\tme.USER_EVENT = !!( mask & USER_EVENT );\n\tme.LIGHT_CANDLES = !!( mask & LIGHT_CANDLES );\n\tme.YOM_TOV_ENDS = !!( mask & YOM_TOV_ENDS );\n\tme.CHUL_ONLY = !!( mask & CHUL_ONLY );\n\tme.IL_ONLY = !!( mask & IL_ONLY );\n\tme.LIGHT_CANDLES_TZEIS = !!( mask & LIGHT_CANDLES_TZEIS );\n}\n\nEvent.prototype.is = function(date, il) {\n\tdate = new HDate(date), myDate = this.date;\n\tif (arguments.length < 2) {\n\t\t//il = Event.isIL;\n\t\til = date.il;\n\t}\n\tif (date.getDate() != myDate.getDate() || date.getMonth() != myDate.getMonth()) {\n\t\treturn false;\n\t}\n\tif (date.getFullYear() != myDate.getFullYear()) {\n\t\treturn false;\n\t}\n\tif (il && this.CHUL_ONLY || !il && this.IL_ONLY) {\n\t\treturn false;\n\t}\n\treturn true;\n};\n\nEvent.prototype.masks = function() {\n\tvar me = this;\n\treturn (me.USER_EVENT && USER_EVENT) |\n\t\t (me.LIGHT_CANDLES && LIGHT_CANDLES) |\n\t\t (me.YOM_TOV_ENDS && YOM_TOV_ENDS) |\n\t\t (me.CHUL_ONLY && CHUL_ONLY) |\n\t\t (me.IL_ONLY && IL_ONLY) |\n\t\t (me.LIGHT_CANDLES_TZEIS && LIGHT_CANDLES_TZEIS);\n};\n\nEvent.prototype.getDesc = function(o) {\n\treturn c.LANG(this.desc, o);\n};\n\nEvent.prototype.candleLighting = function() {\n\tvar date = this.date;\n\tif (this.LIGHT_CANDLES) {\n\t\treturn new Date(date.sunset() - (Event.candleLighting * 60 * 1000));\n\t} else if (this.LIGHT_CANDLES_TZEIS) {\n\t\treturn date.getZemanim().tzeit;\n\t}\n\treturn null;\n};\n\nEvent.prototype.havdalah = function() {\n\tif (this.YOM_TOV_ENDS) {\n\t\treturn new Date(this.date.sunset().getTime() + (Event.havdalah * 60 * 1000));\n\t}\n\treturn null;\n};\n\nEvent.prototype.routine = (function(){\n\tfunction routine(){\n\t\treturn !!~routine.names.indexOf(this.getDesc('s'));\n\t}\n\troutine.names = [Shabbat, 'Erev ' + Shabbat];\n\treturn routine;\n})();\n\nEvent.isIL = false;\n\nEvent.candleLighting = 18;\n\nEvent.havdalah = 42;\n\nexports.Event = Event;\n\nexports.year = function(year) {\n\tif (__cache[year]) {\n\t\treturn __cache[year];\n\t}\n\n\tvar\tRH = new HDate(1, TISHREI, year),\n\t\tpesach = new HDate(15, NISAN, year),\n\t\ttmpDate;\n\n\tvar h = {};\n\n\tfunction add(ev) {\n\t\tif (Array.isArray(ev)) {\n\t\t\tev.forEach(function(e){\n\t\t\t\tadd(e);\n\t\t\t});\n\t\t} else {\n\t\t\tif (h[ev.date]) {\n\t\t\t\th[ev.date].push(ev);\n\t\t\t} else {\n\t\t\t\th[ev.date] = [ev];\n\t\t\t}\n\t\t}\n\t}\n\n\tObject.defineProperty(h, 'add', {value: add});\n\n\tadd([ // standard holidays that don't shift based on year\n\t\tnew Event(\n\t\t\tRH,\n\t\t\t['Rosh Hashana 1', 0, 'ראש השנה א\\''],\n\t\t\tLIGHT_CANDLES_TZEIS\n\t\t), new Event(\n\t\t\tnew HDate(2, TISHREI, year),\n\t\t\t['Rosh Hashana 2', 0, 'ראש השנה ב\\''],\n\t\t\tYOM_TOV_ENDS\n\t\t), new Event(\n\t\t\tnew HDate(3 + (RH[getDay]() == days.THU), TISHREI, year), // push off to SUN if RH is THU\n\t\t\t['Tzom Gedaliah', 0, 'צום גדליה'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(9, TISHREI, year),\n\t\t\t['Erev Yom Kippur', 0, 'ערב יום כיפור'],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event( // first SAT after RH\n\t\t\tnew HDate(dayOnOrBefore(SAT, 7 + RH[abs]())),\n\t\t\t[Shabbat + ' Shuva', Shabbos + ' Shuvah', 'שבת שובה'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(10, TISHREI, year),\n\t\t\t['Yom Kippur', 0, 'יום כיפור'],\n\t\t\tYOM_TOV_ENDS\n\t\t), new Event(\n\t\t\tnew HDate(14, TISHREI, year),\n\t\t\t['Erev Sukkot', 'Erev Succos', 'ערב סוכות'],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(15, TISHREI, year),\n\t\t\tSukkot(1),\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(15, TISHREI, year),\n\t\t\tSukkot(1),\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, TISHREI, year),\n\t\t\tSukkot(2),\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, TISHREI, year),\n\t\t\tCHM(Sukkot(2)),\n\t\t\tIL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(17, TISHREI, year),\n\t\t\tCHM(Sukkot(3)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(18, TISHREI, year),\n\t\t\tCHM(Sukkot(4)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(19, TISHREI, year),\n\t\t\tCHM(Sukkot(5)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(20, TISHREI, year),\n\t\t\tCHM(Sukkot(6)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(21, TISHREI, year),\n\t\t\t['Sukkot: 7 (Hoshana Raba)', 'Succos: 7 (Hoshana Raba)', 'סוכות יום ז\\' )הושנע רבה('],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(22, TISHREI, year),\n\t\t\t['Shmini Atzeret', 'Shmini Atzeres', 'שמיני עצרת'],\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(22, TISHREI, year),\n\t\t\t['Shmini Atzeret / Simchat Torah', 'Shmini Atzeres / Simchas Torah', 'שמיני עצרת / שמחת תורה'],\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(23, TISHREI, year),\n\t\t\t['Simchat Torah', 'Simchas Torah', 'שמחת תורה'],\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(24, KISLEV, year),\n\t\t\t['Erev Chanukah', 0, 'ערב חנוכה'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(25, KISLEV, year),\n\t\t\tChanukah(1),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(26, KISLEV, year),\n\t\t\tChanukah(2),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(27, KISLEV, year),\n\t\t\tChanukah(3),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(28, KISLEV, year),\n\t\t\tChanukah(4),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(29, KISLEV, year),\n\t\t\tChanukah(5),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(30, KISLEV, year), // yes, i know these are wrong\n\t\t\tChanukah(6),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(31, KISLEV, year), // HDate() corrects the month automatically\n\t\t\tChanukah(7),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(32, KISLEV, year),\n\t\t\tChanukah(8),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(15, months.SHVAT, year),\n\t\t\t[\"Tu B'Shvat\", 0, 'ט\"ו בשבט'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 43)),\n\t\t\t[Shabbat + ' Shekalim', Shabbos + ' Shekalim', 'שבת שקלים'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 30)),\n\t\t\t[Shabbat + ' Zachor', Shabbos + ' Zachor', 'שבת זכור'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(pesach[abs]() - (pesach[getDay]() == days.TUE ? 33 : 31)),\n\t\t\t[\"Ta'anit Esther\", \"Ta'anis Esther\", 'תענית אסתר'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(13, months.ADAR_II, year),\n\t\t\t['Erev Purim', 0, 'ערב פורים'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(14, months.ADAR_II, year),\n\t\t\t['Purim', 0, 'פורים'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(15, months.ADAR_II, year),\n\t\t\t['Shushan Purim', 0, 'שושן פורים'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 14) - 7),\n\t\t\t[Shabbat + ' Parah', Shabbos + ' Parah', 'שבת פרה'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 14)),\n\t\t\t[Shabbat + ' Hachodesh', Shabbos + ' Hachodesh', 'שבת החודש'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 1)),\n\t\t\t[Shabbat + ' HaGadol', Shabbos + ' HaGadol', 'שבת הגדול'],\n\t\t\t0\n\t\t), new Event(\n\t\t\t// if the fast falls on Shabbat, move to Thursday\n\t\t\tpesach.prev()[getDay]() == SAT ? pesach.onOrBefore(days.THU) : new HDate(14, NISAN, year),\n\t\t\t[\"Ta'anit Bechorot\", \"Ta'anis Bechoros\", 'תענית בכורות'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(14, NISAN, year),\n\t\t\t['Erev Pesach', 0, 'ערב פסח'],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(15, NISAN, year),\n\t\t\tPesach(1),\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(15, NISAN, year),\n\t\t\tPesach(1),\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, NISAN, year),\n\t\t\tPesach(2),\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, NISAN, year),\n\t\t\tCHM(Pesach(2)),\n\t\t\tIL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, NISAN, year),\n\t\t\t['Start counting Omer', 0, 'התחלת ספירת העומר'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(17, NISAN, year),\n\t\t\tCHM(Pesach(3)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(18, NISAN, year),\n\t\t\tCHM(Pesach(4)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(19, NISAN, year),\n\t\t\tCHM(Pesach(5)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(20, NISAN, year),\n\t\t\tCHM(Pesach(6)),\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(21, NISAN, year),\n\t\t\tPesach(7),\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(21, NISAN, year),\n\t\t\tPesach(7),\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(22, NISAN, year),\n\t\t\tPesach(8),\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(14, months.IYYAR, year),\n\t\t\t['Pesach Sheni', 0, 'פסח שני'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(18, months.IYYAR, year),\n\t\t\t[\"Lag B'Omer\", 0, 'ל\"ג בעומר'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(5, months.SIVAN, year),\n\t\t\t['Erev Shavuot', 'Erev Shavuos', 'ערב שבועות'],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(6, months.SIVAN, year),\n\t\t\t['Shavuot 1', 'Shavuos 1', 'שבועות א\\''],\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(6, months.SIVAN, year),\n\t\t\t['Shavuot', 'Shavuos', 'שבועות'],\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(7, months.SIVAN, year),\n\t\t\t['Shavuot 2', 'Shavuos 2', 'שבועות ב\\''],\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, new HDate(1, TISHREI, year + 1)[abs]() - 4)),\n\t\t\t['Leil Selichot', 'Leil Selichos', 'ליל סליחות'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(29, months.ELUL, year),\n\t\t\t['Erev Rosh Hashana', 0, 'ערב ראש השנה'],\n\t\t\tLIGHT_CANDLES\n\t\t)\n\t]);\n\n\ttmpDate = new HDate(10, months.TEVET, year);\n\tif (tmpDate[getDay]() == SAT) {\n\t\ttmpDate = tmpDate.next();\n\t}\n\tadd(new Event(\n\t\ttmpDate,\n\t\t[\"Asara B'Tevet\", 0, 'עשרה בטבת'],\n\t\t0\n\t));\n\n\tif (c.LEAP(year)) {\n\t\tadd(new Event(\n\t\t\tnew HDate(14, months.ADAR_I, year),\n\t\t\t['Purim Katan', 0, 'פורים קטן'],\n\t\t\t0\n\t\t));\n\n\t\tadd(new Event(\n\t\t\tnew HDate(15, months.ADAR_I, year),\n\t\t\t['Shushan Purim Katan', 0, 'שושן פורים קטן'],\n\t\t\t0\n\t\t));\n\t}\n\n\tif (year >= 5711) { // Yom HaShoah first observed in 1951\n\t\ttmpDate = new HDate(27, NISAN, year);\n\t\t/* When the actual date of Yom Hashoah falls on a Friday, the\n\t\t * state of Israel observes Yom Hashoah on the preceding\n\t\t * Thursday. When it falls on a Sunday, Yom Hashoah is observed\n\t\t * on the following Monday.\n\t\t * http://www.ushmm.org/remembrance/dor/calendar/\n\t\t */\n\n\t\tif (tmpDate[getDay]() == days.FRI) {\n\t\t\ttmpDate = tmpDate.prev();\n\t\t} else if (tmpDate[getDay]() == days.SUN) {\n\t\t\ttmpDate = tmpDate.next();\n\t\t}\n\n\t\tadd(new Event(\n\t\t\ttmpDate,\n\t\t\t['Yom HaShoah', 0, 'יום השואה'],\n\t\t\t0\n\t\t));\n\t}\n\n\tadd(atzmaut(year));\n\n\tif (year >= 5727) { // Yom Yerushalayim only celebrated after 1967\n\t\tadd(new Event(\n\t\t\tnew HDate(29, months.IYYAR, year),\n\t\t\t['Yom Yerushalayim', 0, 'יום ירושלים'],\n\t\t\t0\n\t\t));\n\t}\n\n\ttmpDate = new HDate(17, months.TAMUZ, year);\n\tif (tmpDate[getDay]() == SAT) {\n\t\ttmpDate = tmpDate.next();\n\t}\n\tadd(new Event(\n\t\ttmpDate,\n\t\t[\"Shiva-Asar B'Tamuz\", 0, \"צום יז' בתמוז\"],\n\t\t0\n\t));\n\n\ttmpDate = new HDate(9, months.AV, year);\n\tif (tmpDate[getDay]() == SAT) {\n\t\ttmpDate = tmpDate.next();\n\t}\n\n\tadd(new Event(\n\t\tnew HDate(dayOnOrBefore(SAT, tmpDate[abs]())),\n\t\t[Shabbat + ' Chazon', Shabbos + ' Chazon', 'שבת חזון'],\n\t\t0\n\t));\n\n\tadd(new Event(\n\t\ttmpDate.prev(),\n\t\t[\"Erev Tish'a B'Av\", 0, 'ערב תשעה באב'],\n\t\t0\n\t));\n\n\tadd(new Event(\n\t\ttmpDate,\n\t\t[\"Tish'a B'Av\", 0, 'תשעה באב'],\n\t\t0\n\t));\n\n\tadd(new Event(\n\t\tnew HDate(dayOnOrBefore(SAT, tmpDate[abs]() + 7)),\n\t\t[Shabbat + ' Nachamu', Shabbos + ' Nachamu', 'שבת נחמו'],\n\t\t0\n\t));\n\n\tfor (var day = 6; day < c.daysInYear(year); day += 7) {\n\t\tadd(new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, new HDate(1, TISHREI, year)[abs]() + day)),\n\t\t\t[Shabbat, Shabbos, 'שבת'],\n\t\t\tYOM_TOV_ENDS\n\t\t));\n\n\t\tadd(new Event(\n\t\t\tnew HDate(dayOnOrBefore(days.FRI, new HDate(1, TISHREI, year)[abs]() + day)),\n\t\t\t['Erev ' + Shabbat, 'Erev ' + Shabbos, 'ערב שבת'],\n\t\t\tLIGHT_CANDLES\n\t\t));\n\t}\n\n\tfor (var month = 1; month <= c.MONTH_CNT(year); month++) {\n\t\tif ((month == NISAN ? c.daysInMonth(c.MONTH_CNT(year - 1), year - 1) :\n\t\t\t\tc.daysInMonth(month - 1, year)) == 30) {\n\t\t\tadd(new Event(\n\t\t\t\tnew HDate(1, month, year),\n\t\t\t\t['Rosh Chodesh 2', 0, \"ראש חודש ב'\"],\n\t\t\t\t0\n\t\t\t));\n\n\t\t\tadd(new Event(\n\t\t\t\tnew HDate(30, month - 1, year),\n\t\t\t\t['Rosh Chodesh 1', 0, \"ראש חודש א'\"],\n\t\t\t\t0\n\t\t\t));\n\t\t} else if (month !== TISHREI) {\n\t\t\tadd(new Event(\n\t\t\t\tnew HDate(1, month, year),\n\t\t\t\t['Rosh Chodesh', 0, 'ראש חודש'],\n\t\t\t\t0\n\t\t\t));\n\t\t}\n\n\t\tif (month == months.ELUL) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tadd(new Event(\n\t\t\tnew HDate(29, month, year).onOrBefore(SAT),\n\t\t\t[Shabbat + ' Mevarchim', Shabbos + ' Mevorchim', 'שבת מברכים'],\n\t\t\t0\n\t\t));\n\t}\n\n\treturn __cache[year] = h;\n};\n\nfunction atzmaut(year) {\n\tif (year >= 5708) { // Yom HaAtzma'ut only celebrated after 1948\n\t\tvar tmpDate = new HDate(1, months.IYYAR, year), pesach = new HDate(15, NISAN, year);\n\n\t\tif (pesach[getDay]() == days.SUN) {\n\t\t\ttmpDate.setDate(2);\n\t\t} else if (pesach[getDay]() == SAT) {\n\t\t\ttmpDate.setDate(3);\n\t\t} else if (year < 5764) {\n\t\t\ttmpDate.setDate(4);\n\t\t} else if (pesach[getDay]() == days.TUE) {\n\t\t\ttmpDate.setDate(5);\n\t\t} else {\n\t\t\ttmpDate.setDate(4);\n\t\t}\n\n\t\treturn [new Event(\n\t\t\ttmpDate,\n\t\t\t['Yom HaZikaron', 0, 'יום הזיכרון'],\n\t\t\t0\n\t\t), new Event(\n\t\t\ttmpDate.next(),\n\t\t\t[\"Yom HaAtzma'ut\", 0, 'יום העצמאות'],\n\t\t\t0\n\t\t)];\n\t}\n\treturn [];\n}\nexports.atzmaut = atzmaut;\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nfunction EventEmitter() {\n this._events = this._events || {};\n this._maxListeners = this._maxListeners || undefined;\n}\nmodule.exports = EventEmitter;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nEventEmitter.defaultMaxListeners = 10;\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function(n) {\n if (!isNumber(n) || n < 0 || isNaN(n))\n throw TypeError('n must be a positive number');\n this._maxListeners = n;\n return this;\n};\n\nEventEmitter.prototype.emit = function(type) {\n var er, handler, len, args, i, listeners;\n\n if (!this._events)\n this._events = {};\n\n // If there is no 'error' event listener then throw.\n if (type === 'error') {\n if (!this._events.error ||\n (isObject(this._events.error) && !this._events.error.length)) {\n er = arguments[1];\n if (er instanceof Error) {\n throw er; // Unhandled 'error' event\n } else {\n // At least give some kind of context to the user\n var err = new Error('Uncaught, unspecified \"error\" event. (' + er + ')');\n err.context = er;\n throw err;\n }\n }\n }\n\n handler = this._events[type];\n\n if (isUndefined(handler))\n return false;\n\n if (isFunction(handler)) {\n switch (arguments.length) {\n // fast cases\n case 1:\n handler.call(this);\n break;\n case 2:\n handler.call(this, arguments[1]);\n break;\n case 3:\n handler.call(this, arguments[1], arguments[2]);\n break;\n // slower\n default:\n args = Array.prototype.slice.call(arguments, 1);\n handler.apply(this, args);\n }\n } else if (isObject(handler)) {\n args = Array.prototype.slice.call(arguments, 1);\n listeners = handler.slice();\n len = listeners.length;\n for (i = 0; i < len; i++)\n listeners[i].apply(this, args);\n }\n\n return true;\n};\n\nEventEmitter.prototype.addListener = function(type, listener) {\n var m;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events)\n this._events = {};\n\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (this._events.newListener)\n this.emit('newListener', type,\n isFunction(listener.listener) ?\n listener.listener : listener);\n\n if (!this._events[type])\n // Optimize the case of one listener. Don't need the extra array object.\n this._events[type] = listener;\n else if (isObject(this._events[type]))\n // If we've already got an array, just append.\n this._events[type].push(listener);\n else\n // Adding the second element, need to change to array.\n this._events[type] = [this._events[type], listener];\n\n // Check for listener leak\n if (isObject(this._events[type]) && !this._events[type].warned) {\n if (!isUndefined(this._maxListeners)) {\n m = this._maxListeners;\n } else {\n m = EventEmitter.defaultMaxListeners;\n }\n\n if (m && m > 0 && this._events[type].length > m) {\n this._events[type].warned = true;\n console.error('(node) warning: possible EventEmitter memory ' +\n 'leak detected. %d listeners added. ' +\n 'Use emitter.setMaxListeners() to increase limit.',\n this._events[type].length);\n if (typeof console.trace === 'function') {\n // not supported in IE 10\n console.trace();\n }\n }\n }\n\n return this;\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.once = function(type, listener) {\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n var fired = false;\n\n function g() {\n this.removeListener(type, g);\n\n if (!fired) {\n fired = true;\n listener.apply(this, arguments);\n }\n }\n\n g.listener = listener;\n this.on(type, g);\n\n return this;\n};\n\n// emits a 'removeListener' event iff the listener was removed\nEventEmitter.prototype.removeListener = function(type, listener) {\n var list, position, length, i;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events || !this._events[type])\n return this;\n\n list = this._events[type];\n length = list.length;\n position = -1;\n\n if (list === listener ||\n (isFunction(list.listener) && list.listener === listener)) {\n delete this._events[type];\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n\n } else if (isObject(list)) {\n for (i = length; i-- > 0;) {\n if (list[i] === listener ||\n (list[i].listener && list[i].listener === listener)) {\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (list.length === 1) {\n list.length = 0;\n delete this._events[type];\n } else {\n list.splice(position, 1);\n }\n\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n }\n\n return this;\n};\n\nEventEmitter.prototype.removeAllListeners = function(type) {\n var key, listeners;\n\n if (!this._events)\n return this;\n\n // not listening for removeListener, no need to emit\n if (!this._events.removeListener) {\n if (arguments.length === 0)\n this._events = {};\n else if (this._events[type])\n delete this._events[type];\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n for (key in this._events) {\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = {};\n return this;\n }\n\n listeners = this._events[type];\n\n if (isFunction(listeners)) {\n this.removeListener(type, listeners);\n } else if (listeners) {\n // LIFO order\n while (listeners.length)\n this.removeListener(type, listeners[listeners.length - 1]);\n }\n delete this._events[type];\n\n return this;\n};\n\nEventEmitter.prototype.listeners = function(type) {\n var ret;\n if (!this._events || !this._events[type])\n ret = [];\n else if (isFunction(this._events[type]))\n ret = [this._events[type]];\n else\n ret = this._events[type].slice();\n return ret;\n};\n\nEventEmitter.prototype.listenerCount = function(type) {\n if (this._events) {\n var evlistener = this._events[type];\n\n if (isFunction(evlistener))\n return 1;\n else if (evlistener)\n return evlistener.length;\n }\n return 0;\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n return emitter.listenerCount(type);\n};\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\n","/*\n * Convert numbers to gematriya representation, and vice-versa.\n *\n * Licensed MIT.\n *\n * Copyright (c) 2014 Eyal Schachter\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * \n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n * \n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n(function(){\n\tvar letters = {}, numbers = {\n\t\t'': 0,\n\t\tא: 1,\n\t\tב: 2,\n\t\tג: 3,\n\t\tד: 4,\n\t\tה: 5,\n\t\tו: 6,\n\t\tז: 7,\n\t\tח: 8,\n\t\tט: 9,\n\t\tי: 10,\n\t\tכ: 20,\n\t\tל: 30,\n\t\tמ: 40,\n\t\tנ: 50,\n\t\tס: 60,\n\t\tע: 70,\n\t\tפ: 80,\n\t\tצ: 90,\n\t\tק: 100,\n\t\tר: 200,\n\t\tש: 300,\n\t\tת: 400,\n\t\tתק: 500,\n\t\tתר: 600,\n\t\tתש: 700,\n\t\tתת: 800,\n\t\tתתק: 900,\n\t\tתתר: 1000\n\t}, i;\n\tfor (i in numbers) {\n\t\tletters[numbers[i]] = i;\n\t}\n\n\tfunction gematriya(num, limit) {\n\t\tif (typeof num !== 'number' && typeof num !== 'string') {\n\t\t\tthrow new TypeError('non-number or string given to gematriya()');\n\t\t}\n\t\tvar str = typeof num === 'string';\n\t\tif (str) {\n\t\t\tnum = num.replace(/('|\")/g,'');\n\t\t}\n\t\tnum = num.toString().split('').reverse();\n\t\tif (!str && limit) {\n\t\t\tnum = num.slice(0, limit);\n\t\t}\n\n\t\tnum = num.map(function g(n,i){\n\t\t\tif (str) {\n\t\t\t\treturn limit && numbers[n] < numbers[num[i - 1]] && numbers[n] < 100 ? numbers[n] * 1000 : numbers[n];\n\t\t\t} else {\n\t\t\t\tif (parseInt(n, 10) * Math.pow(10, i) > 1000) {\n\t\t\t\t\treturn g(n, i-3);\n\t\t\t\t}\n\t\t\t\treturn letters[parseInt(n, 10) * Math.pow(10, i)];\n\t\t\t}\n\t\t});\n\n\t\tif (str) {\n\t\t\treturn num.reduce(function(o,t){\n\t\t\t\treturn o + t;\n\t\t\t}, 0);\n\t\t} else {\n\t\t\tnum = num.reverse().join('').replace(/יה/g,'טו').replace(/יו/g,'טז').split('');\n\n\t\t\tif (num.length === 1) {\n\t\t\t\tnum.push(\"'\");\n\t\t\t} else if (num.length > 1) {\n\t\t\t\tnum.splice(-1, 0, '\"');\n\t\t\t}\n\n\t\t\treturn num.join('');\n\t\t}\n\t}\n\n\tif (typeof module !== 'undefined') {\n\t\tmodule.exports = gematriya;\n\t} else {\n\t\twindow.gematriya = gematriya;\n\t}\n})();\n","/*\n (c) 2011-2015, Vladimir Agafonkin\n SunCalc is a JavaScript library for calculating sun/moon position and light phases.\n https://github.com/mourner/suncalc\n*/\n\n(function () { 'use strict';\n\n// shortcuts for easier to read formulas\n\nvar PI = Math.PI,\n sin = Math.sin,\n cos = Math.cos,\n tan = Math.tan,\n asin = Math.asin,\n atan = Math.atan2,\n acos = Math.acos,\n rad = PI / 180;\n\n// sun calculations are based on http://aa.quae.nl/en/reken/zonpositie.html formulas\n\n\n// date/time constants and conversions\n\nvar dayMs = 1000 * 60 * 60 * 24,\n J1970 = 2440588,\n J2000 = 2451545;\n\nfunction toJulian(date) { return date.valueOf() / dayMs - 0.5 + J1970; }\nfunction fromJulian(j) { return new Date((j + 0.5 - J1970) * dayMs); }\nfunction toDays(date) { return toJulian(date) - J2000; }\n\n\n// general calculations for position\n\nvar e = rad * 23.4397; // obliquity of the Earth\n\nfunction rightAscension(l, b) { return atan(sin(l) * cos(e) - tan(b) * sin(e), cos(l)); }\nfunction declination(l, b) { return asin(sin(b) * cos(e) + cos(b) * sin(e) * sin(l)); }\n\nfunction azimuth(H, phi, dec) { return atan(sin(H), cos(H) * sin(phi) - tan(dec) * cos(phi)); }\nfunction altitude(H, phi, dec) { return asin(sin(phi) * sin(dec) + cos(phi) * cos(dec) * cos(H)); }\n\nfunction siderealTime(d, lw) { return rad * (280.16 + 360.9856235 * d) - lw; }\n\nfunction astroRefraction(h) {\n if (h < 0) // the following formula works for positive altitudes only.\n h = 0; // if h = -0.08901179 a div/0 would occur.\n\n // formula 16.4 of \"Astronomical Algorithms\" 2nd edition by Jean Meeus (Willmann-Bell, Richmond) 1998.\n // 1.02 / tan(h + 10.26 / (h + 5.10)) h in degrees, result in arc minutes -> converted to rad:\n return 0.0002967 / Math.tan(h + 0.00312536 / (h + 0.08901179));\n}\n\n// general sun calculations\n\nfunction solarMeanAnomaly(d) { return rad * (357.5291 + 0.98560028 * d); }\n\nfunction eclipticLongitude(M) {\n\n var C = rad * (1.9148 * sin(M) + 0.02 * sin(2 * M) + 0.0003 * sin(3 * M)), // equation of center\n P = rad * 102.9372; // perihelion of the Earth\n\n return M + C + P + PI;\n}\n\nfunction sunCoords(d) {\n\n var M = solarMeanAnomaly(d),\n L = eclipticLongitude(M);\n\n return {\n dec: declination(L, 0),\n ra: rightAscension(L, 0)\n };\n}\n\n\nvar SunCalc = {};\n\n\n// calculates sun position for a given date and latitude/longitude\n\nSunCalc.getPosition = function (date, lat, lng) {\n\n var lw = rad * -lng,\n phi = rad * lat,\n d = toDays(date),\n\n c = sunCoords(d),\n H = siderealTime(d, lw) - c.ra;\n\n return {\n azimuth: azimuth(H, phi, c.dec),\n altitude: altitude(H, phi, c.dec)\n };\n};\n\n\n// sun times configuration (angle, morning name, evening name)\n\nvar times = SunCalc.times = [\n [-0.833, 'sunrise', 'sunset' ],\n [ -0.3, 'sunriseEnd', 'sunsetStart' ],\n [ -6, 'dawn', 'dusk' ],\n [ -12, 'nauticalDawn', 'nauticalDusk'],\n [ -18, 'nightEnd', 'night' ],\n [ 6, 'goldenHourEnd', 'goldenHour' ]\n];\n\n// adds a custom time to the times config\n\nSunCalc.addTime = function (angle, riseName, setName) {\n times.push([angle, riseName, setName]);\n};\n\n\n// calculations for sun times\n\nvar J0 = 0.0009;\n\nfunction julianCycle(d, lw) { return Math.round(d - J0 - lw / (2 * PI)); }\n\nfunction approxTransit(Ht, lw, n) { return J0 + (Ht + lw) / (2 * PI) + n; }\nfunction solarTransitJ(ds, M, L) { return J2000 + ds + 0.0053 * sin(M) - 0.0069 * sin(2 * L); }\n\nfunction hourAngle(h, phi, d) { return acos((sin(h) - sin(phi) * sin(d)) / (cos(phi) * cos(d))); }\n\n// returns set time for the given sun altitude\nfunction getSetJ(h, lw, phi, dec, n, M, L) {\n\n var w = hourAngle(h, phi, dec),\n a = approxTransit(w, lw, n);\n return solarTransitJ(a, M, L);\n}\n\n\n// calculates sun times for a given date and latitude/longitude\n\nSunCalc.getTimes = function (date, lat, lng) {\n\n var lw = rad * -lng,\n phi = rad * lat,\n\n d = toDays(date),\n n = julianCycle(d, lw),\n ds = approxTransit(0, lw, n),\n\n M = solarMeanAnomaly(ds),\n L = eclipticLongitude(M),\n dec = declination(L, 0),\n\n Jnoon = solarTransitJ(ds, M, L),\n\n i, len, time, Jset, Jrise;\n\n\n var result = {\n solarNoon: fromJulian(Jnoon),\n nadir: fromJulian(Jnoon - 0.5)\n };\n\n for (i = 0, len = times.length; i < len; i += 1) {\n time = times[i];\n\n Jset = getSetJ(time[0] * rad, lw, phi, dec, n, M, L);\n Jrise = Jnoon - (Jset - Jnoon);\n\n result[time[1]] = fromJulian(Jrise);\n result[time[2]] = fromJulian(Jset);\n }\n\n return result;\n};\n\n\n// moon calculations, based on http://aa.quae.nl/en/reken/hemelpositie.html formulas\n\nfunction moonCoords(d) { // geocentric ecliptic coordinates of the moon\n\n var L = rad * (218.316 + 13.176396 * d), // ecliptic longitude\n M = rad * (134.963 + 13.064993 * d), // mean anomaly\n F = rad * (93.272 + 13.229350 * d), // mean distance\n\n l = L + rad * 6.289 * sin(M), // longitude\n b = rad * 5.128 * sin(F), // latitude\n dt = 385001 - 20905 * cos(M); // distance to the moon in km\n\n return {\n ra: rightAscension(l, b),\n dec: declination(l, b),\n dist: dt\n };\n}\n\nSunCalc.getMoonPosition = function (date, lat, lng) {\n\n var lw = rad * -lng,\n phi = rad * lat,\n d = toDays(date),\n\n c = moonCoords(d),\n H = siderealTime(d, lw) - c.ra,\n h = altitude(H, phi, c.dec),\n // formula 14.1 of \"Astronomical Algorithms\" 2nd edition by Jean Meeus (Willmann-Bell, Richmond) 1998.\n pa = atan(sin(H), tan(phi) * cos(c.dec) - sin(c.dec) * cos(H));\n\n h = h + astroRefraction(h); // altitude correction for refraction\n\n return {\n azimuth: azimuth(H, phi, c.dec),\n altitude: h,\n distance: c.dist,\n parallacticAngle: pa\n };\n};\n\n\n// calculations for illumination parameters of the moon,\n// based on http://idlastro.gsfc.nasa.gov/ftp/pro/astro/mphase.pro formulas and\n// Chapter 48 of \"Astronomical Algorithms\" 2nd edition by Jean Meeus (Willmann-Bell, Richmond) 1998.\n\nSunCalc.getMoonIllumination = function (date) {\n\n var d = toDays(date || new Date()),\n s = sunCoords(d),\n m = moonCoords(d),\n\n sdist = 149598000, // distance from Earth to Sun in km\n\n phi = acos(sin(s.dec) * sin(m.dec) + cos(s.dec) * cos(m.dec) * cos(s.ra - m.ra)),\n inc = atan(sdist * sin(phi), m.dist - sdist * cos(phi)),\n angle = atan(cos(s.dec) * sin(s.ra - m.ra), sin(s.dec) * cos(m.dec) -\n cos(s.dec) * sin(m.dec) * cos(s.ra - m.ra));\n\n return {\n fraction: (1 + cos(inc)) / 2,\n phase: 0.5 + 0.5 * inc * (angle < 0 ? -1 : 1) / Math.PI,\n angle: angle\n };\n};\n\n\nfunction hoursLater(date, h) {\n return new Date(date.valueOf() + h * dayMs / 24);\n}\n\n// calculations for moon rise/set times are based on http://www.stargazing.net/kepler/moonrise.html article\n\nSunCalc.getMoonTimes = function (date, lat, lng, inUTC) {\n var t = new Date(date);\n if (inUTC) t.setUTCHours(0, 0, 0, 0);\n else t.setHours(0, 0, 0, 0);\n\n var hc = 0.133 * rad,\n h0 = SunCalc.getMoonPosition(t, lat, lng).altitude - hc,\n h1, h2, rise, set, a, b, xe, ye, d, roots, x1, x2, dx;\n\n // go in 2-hour chunks, each time seeing if a 3-point quadratic curve crosses zero (which means rise or set)\n for (var i = 1; i <= 24; i += 2) {\n h1 = SunCalc.getMoonPosition(hoursLater(t, i), lat, lng).altitude - hc;\n h2 = SunCalc.getMoonPosition(hoursLater(t, i + 1), lat, lng).altitude - hc;\n\n a = (h0 + h2) / 2 - h1;\n b = (h2 - h0) / 2;\n xe = -b / (2 * a);\n ye = (a * xe + b) * xe + h1;\n d = b * b - 4 * a * h1;\n roots = 0;\n\n if (d >= 0) {\n dx = Math.sqrt(d) / (Math.abs(a) * 2);\n x1 = xe - dx;\n x2 = xe + dx;\n if (Math.abs(x1) <= 1) roots++;\n if (Math.abs(x2) <= 1) roots++;\n if (x1 < -1) x1 = x2;\n }\n\n if (roots === 1) {\n if (h0 < 0) rise = i + x1;\n else set = i + x1;\n\n } else if (roots === 2) {\n rise = i + (ye < 0 ? x2 : x1);\n set = i + (ye < 0 ? x1 : x2);\n }\n\n if (rise && set) break;\n\n h0 = h2;\n }\n\n var result = {};\n\n if (rise) result.rise = hoursLater(t, rise);\n if (set) result.set = hoursLater(t, set);\n\n if (!rise && !set) result[ye > 0 ? 'alwaysUp' : 'alwaysDown'] = true;\n\n return result;\n};\n\n\n// export as Node module / AMD module / browser variable\nif (typeof exports === 'object' && typeof module !== 'undefined') module.exports = SunCalc;\nelse if (typeof define === 'function' && define.amd) define(SunCalc);\nelse window.SunCalc = SunCalc;\n\n}());\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\n/*\n * Many of the following algorithms were taken from hebrew calendar\n * routines by Maimonedes, from his Mishneh Torah, and implemented by\n * Nachum Dershowitz Department of Computer Science\n * (217) 333-4219 University of Illinois at Urbana-Champaign\n * nachum@cs.uiuc.edu 1304 West Springfield Avenue\n * Urbana, Illinois 61801\n *\n * The routines were included in the emacs 19 distribution.\n *\n */\nvar c = require('./common'), HDate = require('./hdate');\n\nvar concat = 'concat', range = c.range; // for client optimization\n\nvar INCOMPLETE = 0,\n\tREGULAR = 1,\n\tCOMPLETE = 2;\n\nfunction Sedra(hebYr, il) { // the Hebrew year\n\til = !!il;\n\tvar long_c = c.lngChesh(hebYr);\n\tvar short_k = c.shrtKis(hebYr);\n\tvar type;\n\tthis.year = hebYr;\n\tif (long_c && !short_k) {\n\t\ttype = COMPLETE;\n\t} else if (!long_c && short_k) {\n\t\ttype = INCOMPLETE;\n\t} else {\n\t\ttype = REGULAR;\n\t}\n\n\tvar rosh_hashana = new HDate(1, c.months.TISHREI, hebYr).abs();\n\tvar rosh_hashana_day = (rosh_hashana % 7) + 1;\n\n\t// find the first Saturday on or after Rosh Hashana\n\tthis.first_saturday = c.dayOnOrBefore(6, rosh_hashana + 6);\n\tvar leap = +c.LEAP(hebYr);\n\tthis.type = type;\n\tthis.rosh_hashana_day = rosh_hashana_day;\n\tthis.leap = leap;\n\tthis.il = il;\n\n\tvar core = \"\" + leap + rosh_hashana_day + type;\n\tif (types[core]) {\n\t\tthis.theSedraArray = types[core];\n\t} else {\n\t\tthis.theSedraArray = types[core + (+il)]; // cast to num, then concat\n\t}\n\n\tif (!this.theSedraArray) {\n\t\tconsole.log(this);\n\t\tthrow new TypeError(\"improper sedra year type calculated.\");\n\t}\n}\n\nvar parshiot = Sedra.parshiot = [\n\t[ 'Bereshit', 'Bereshis', 'בראשית' ], // 0\n\t[ 'Noach', 0, 'נח' ],\n\t[ 'Lech-Lecha', 0, 'לך-לך' ],\n\t[ 'Vayera', 0, 'וירא' ],\n\t[ 'Chayei Sara', 0, 'חי שרה' ],\n\t[ 'Toldot', 'Toldos', 'תולדות' ],\n\t[ 'Vayetzei', 0, 'ויצא' ],\n\t[ 'Vayishlach', 0, 'וישלח' ],\n\t[ 'Vayeshev', 0, 'וישב' ],\n\t[ 'Miketz', 0, 'מקץ' ],\n\t[ 'Vayigash', 0, 'ויגש' ], // 10\n\t[ 'Vayechi', 0, 'ויחי' ],\n\t[ 'Shemot', 'Shemos', 'שמות' ],\n\t[ 'Vaera', 0, 'וארא' ],\n\t[ 'Bo', 0, 'בא' ],\n\t[ 'Beshalach', 0, 'בשלח' ],\n\t[ 'Yitro', 'Yisro', 'יתרו' ],\n\t[ 'Mishpatim', 0, 'משפטים' ],\n\t[ 'Terumah', 0, 'תרומה' ],\n\t[ 'Tetzaveh', 0, 'תצוה' ],\n\t[ 'Ki Tisa', 'Ki Sisa', 'כי תשא' ], // 20\n\t[ 'Vayakhel', 0, 'ויקהל' ],\n\t[ 'Pekudei', 0, 'פקודי' ],\n\t[ 'Vayikra', 0, 'ויקרא' ],\n\t[ 'Tzav', 0, 'צו' ],\n\t[ 'Shmini', 0, 'שמיני' ],\n\t[ 'Tazria', 0, 'תזריע' ],\n\t[ 'Metzora', 0, 'מצרע' ],\n\t[ 'Achrei Mot', 'Achrei Mos', 'אחרי מות' ],\n\t[ 'Kedoshim', 0, 'קדשים' ],\n\t[ 'Emor', 0, 'אמור' ], // 30\n\t[ 'Behar', 0, 'בהר' ],\n\t[ 'Bechukotai', 'Bechukosai', 'בחקתי' ],\n\t[ 'Bamidbar', 0, 'במדבר' ],\n\t[ 'Nasso', 0, 'נשא' ],\n\t[ 'Beha\\'alotcha', 'Beha\\'aloscha', 'בהעלתך' ],\n\t[ 'Sh\\'lach', 0, 'שלח לך' ],\n\t[ 'Korach', 0, 'קורח' ],\n\t[ 'Chukat', 'Chukas', 'חקת' ],\n\t[ 'Balak', 0, 'בלק' ],\n\t[ 'Pinchas', 0, 'פינחס' ], // 40\n\t[ 'Matot', 'Matos', 'מטות' ],\n\t[ 'Masei', 0, 'מסעי' ],\n\t[ 'Devarim', 0, 'דברים' ],\n\t[ 'Vaetchanan', 'V\\'eschanan', 'ואתחנן' ],\n\t[ 'Eikev', 0, 'עקב' ],\n\t[ 'Re\\'eh', 0, 'ראה' ],\n\t[ 'Shoftim', 0, 'שופטים' ],\n\t[ 'Ki Teitzei', 'Ki Seitzei', 'כי תצא' ],\n\t[ 'Ki Tavo', 'Ki Savo', 'כי תבוא' ],\n\t[ 'Nitzavim', 0, 'נצבים' ], // 50\n\t[ 'Vayeilech', 0, 'וילך' ],\n\t[ 'Ha\\'Azinu', 0, 'האזינו' ]\n];\n\n\n// parsha doubler/undoubler\nfunction D(p) {\n\treturn -p;\n}\n\n// these are wrapped to protect them from [].concat()\nvar RH = [[ 'Rosh Hashana', 0, 'ראש השנה' ]]; //0\nvar YK = [[ 'Yom Kippur', 0, 'יום כיפור' ]]; //1\n\nvar SUKKOT = [[ 'Sukkot', 'Succos', 'סוכות' ]]; //0\nvar CHMSUKOT = [[ 'Chol hamoed Sukkot', 'Chol hamoed Succos', 'חול המועד סוכות' ]]; //0\nvar SHMINI = [[ 'Shmini Atzeret', 'Shmini Atzeres', 'שמיני עצרת' ]]; //0\nvar EOY = [[ 'End-of-Year: Simchat-Torah, Sukkot', 'End-of-Year: Simchas-Torah, Succos', 'סופשנה: סוכות וסמחת תורה' ]]; //0\n\nvar PESACH = [[ 'Pesach', 0, 'פסח' ]]; //25\nvar CHMPESACH = [[ 'Chol hamoed Pesach', 0, 'חול המועד פסח' ]]; //25\nvar PESACH7 = [[ 'Second days of Pesach', 0, 'שביעי של פסח' ]]; //25\n\nvar SHAVUOT = [[ 'Shavuot', 'Shavuos', 'שבועות' ]]; //33\n\n\n\n// The ordinary year types (keviot)\n\n// names are leap/nonleap - day - incomplete/regular/complete - diaspora/Israel\n\nvar types = {\n\n\t/* Hebrew year that starts on Monday, is `incomplete' (Heshvan and\n\t * Kislev each have 29 days), and has Passover start on Tuesday. */\n\t//e.g. 5753\n\t'020' : [51, 52][concat](EOY, range(0, 20), D(21), 23, 24, PESACH, 25,\n\t\tD(26), D(28), 30, D(31), range(33, 40), D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Monday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Thursday. */\n\t//e.g. 5756\n\t'0220' : [51, 52][concat](EOY, range(0, 20), D(21), 23, 24, PESACH, 25, D(26), D(28),\n\t\t30, D(31), 33, SHAVUOT, range(34, 37), D(38), 40, D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Thursday, is `regular' (Heshvan has 29\n\t * days and Kislev has 30 days), and has Passover start on Saturday. */\n\t//e.g. 5701\n\t'0510' : [52][concat](YK, EOY, range(0, 20), D(21), 23, 24, PESACH, PESACH,\n\t\t25, D(26), D(28), 30, D(31), range(33, 40), D(41), range(43, 50)\n\t),\n\n\t/* Hebrew year that starts on Thursday, is `regular' (Heshvan has 29\n\t * days and Kislev has 30 days), and has Passover start on Saturday. */\n\t// e.g. 5745\n\t'0511' : [52][concat](YK, EOY, range(0, 20), D(21), 23, 24, PESACH,\n\t\t25, D(26), D(28), range(30, 40), D(41), range(43, 50)\n\t),\n\n\t/* Hebrew year that starts on Thursday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Sunday. */\n\t//e.g. 5754\n\t'052' : [52][concat](YK, CHMSUKOT, range(0, 24), PESACH7, 25, D(26),\n\t\tD(28), 30, D(31), range(33, 40), D(41), range(43, 50)\n\t),\n\n\t/* Hebrew year that starts on Saturday, is `incomplete' (Heshvan and Kislev\n\t * each have 29 days), and has Passover start on Sunday. */\n\t//e.g. 5761\n\t'070' : [][concat](RH, 52, SUKKOT, SHMINI, range(0, 20), D(21), 23, 24, PESACH7,\n\t\t25, D(26), D(28), 30, D(31), range(33, 40), D(41), range(43, 50)\n\t),\n\n\n\t/* Hebrew year that starts on Saturday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Tuesday. */\n\t//e.g. 5716\n\t'072' : [][concat](RH, 52, SUKKOT, SHMINI, range(0, 20), D(21), 23, 24, CHMPESACH, 25,\n\t\tD(26), D(28), 30, D(31), range(33, 40), D(41), range(43, 49), D(50)\n\t),\n\n\n\t/* -- The leap year types (keviot) -- */\n\t/* Hebrew year that starts on Monday, is `incomplete' (Heshvan and\n\t * Kislev each have 29 days), and has Passover start on Thursday. */\n\t//e.g. 5746\n\t'1200' : [51, 52][concat](CHMSUKOT, range(0, 27), CHMPESACH, range(28, 33),\n\t\tSHAVUOT, range(34, 37), D(38), 40, D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Monday, is `incomplete' (Heshvan and\n\t * Kislev each have 29 days), and has Passover start on Thursday. */\n\t//e.g. 5746\n\t'1201' : [51, 52][concat](CHMSUKOT, range(0, 27), CHMPESACH,\n\t\trange(28, 40), D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Monday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Saturday. */\n\t//e.g.5752\n\t'1220' : [51, 52][concat](CHMSUKOT, range(0, 27), PESACH,\n\t\tPESACH, range(28, 40), D(41), range(43, 50)\n\t),\n\n\t/* Hebrew year that starts on Monday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Saturday. */\n\t//e.g.5752\n\t'1221' : [51, 52][concat](CHMSUKOT, range(0, 27), PESACH, range(28, 50)),\n\n\t/* Hebrew year that starts on Thursday, is `incomplete' (Heshvan and\n\t * Kislev both have 29 days), and has Passover start on Sunday. */\n\t//e.g. 5768\n\t'150' : [52][concat](YK, CHMSUKOT, range(0, 28), PESACH7, range(29, 50)),\n\n\t/* Hebrew year that starts on Thursday, is `complete' (Heshvan and\n\t * Kislev both have 30 days), and has Passover start on Tuesday. */\n\t//eg. 5771\n\t'152' : [52][concat](YK, CHMSUKOT, range(0, 28), CHMPESACH, range(29, 49), D(50)),\n\n\t/* Hebrew year that starts on Saturday, is `incomplete' (Heshvan and\n\t * Kislev each have 29 days), and has Passover start on Tuesday. */\n\t//e.g.5757\n\t'170' : [][concat](RH, 52, SUKKOT, SHMINI, range(0, 27), CHMPESACH,\n\t\trange(28, 40), D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Saturday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Thursday. */\n\t'1720' : [][concat](RH, 52, SUKKOT, SHMINI, range(0, 27), CHMPESACH, range(28, 33),\n\t\tSHAVUOT, range(34, 37), D(38), 40, D(41), range(43, 49), D(50)\n\t)\n};\n\n/* Hebrew year that starts on Monday, is `complete' (Heshvan and\n * Kislev each have 30 days), and has Passover start on Thursday. */\ntypes['0221'] = types['020'];\n\n/* Hebrew year that starts on Tuesday, is `regular' (Heshvan has 29\n * days and Kislev has 30 days), and has Passover start on Thursday. */\n//e.g. 5715\ntypes['0310'] = types['0220'];\n\n/* Hebrew year that starts on Tuesday, is `regular' (Heshvan has 29\n * days and Kislev has 30 days), and has Passover start on Thursday. */\ntypes['0311'] = types['020'];\n\n/* Hebrew year that starts on Tuesday, is `regular' (Heshvan has 29\n * days and Kislev has 30 days), and has Passover start on Saturday. */\n// e.g. 5715\ntypes['1310'] = types['1220'];\n/* Hebrew year that starts on Tuesday, is `regular' (Heshvan has 29\n * days and Kislev has 30 days), and has Passover start on Saturday. */\ntypes['1311'] = types['1221'];\n\n/* Hebrew year that starts on Saturday, is `complete' (Heshvan and\n * Kislev each have 30 days), and has Passover start on Thursday. */\ntypes['1721'] = types['170'];\n\n\nSedra.prototype.get = function(hDate) {\n\treturn abs(this, hDate.abs());\n};\n\n// returns an array describing the parsha on the first Saturday on or after absdate\nfunction abs(year, absDate) {\n\n\t// find the first saturday on or after today's date\n\tabsDate = c.dayOnOrBefore(6, absDate + 6);\n\n\tvar weekNum = (absDate - year.first_saturday) / 7;\n\tvar index = year.theSedraArray[weekNum];\n\n\tif (undefined === index) {\n\t\treturn abs(new Sedra(year.year + 1, year.il), absDate); // must be next year\n\t}\n\tif (typeof index == 'object') {\n\t\t// Shabbat has a chag. Return a description\n\t\treturn [index];\n\t}\n\tif (index >= 0) {\n\t\treturn [parshiot[index]];\n\t}\n\n\tindex = D(index); // undouble the parsha\n\treturn [parshiot[index], parshiot[index + 1]];\n}\n\nmodule.exports = Sedra;\n"]} \ No newline at end of file +{"version":3,"sources":["node_modules/browser-pack/_prelude.js","cities.js","client/hebcal.noloc.src.js","common.js","dafyomi.js","greg.js","hdate.js","hebcal.js","holidays.js","node_modules/events/events.js","node_modules/gematriya/gematriya.js","node_modules/suncalc/suncalc.js","sedra.js"],"names":["e","t","n","r","s","o","u","a","require","i","f","Error","code","l","exports","call","length","1","module","getCity","city","split","map","w","c","join","toLowerCase","toUpperCase","slice","cities","listCities","Object","keys","Ashdod","Atlanta","Austin","Baghdad","Beer Sheva","Berlin","Baltimore","Bogota","Boston","Buenos Aires","Buffalo","Chicago","Cincinnati","Cleveland","Dallas","Denver","Detroit","Eilat","Gibraltar","Haifa","Hawaii","Houston","Jerusalem","Johannesburg","Kiev","La Paz","Livingston","London","Los Angeles","Miami","Melbourne","Mexico City","Montreal","Moscow","New York","Omaha","Ottawa","Panama City","Paris","Petach Tikvah","Philadelphia","Phoenix","Pittsburgh","Saint Louis","Saint Petersburg","San Francisco","Seattle","Sydney","Tel Aviv","Tiberias","Toronto","Vancouver","White Plains","Washington DC","addCity","info","Array","isArray","TypeError","nearest","lat","lon","name","dist","Math","sqrt","pow","abs","reduce","close","window","Hebcal","finished","warn","console","log","events","on","ready","emit","defineProperty","configurable","get","listeners","set","func","LEAP","x","hebElapsedDays","hYear","m_elapsed","floor","p_elapsed","h_elapsed","parts","day","alt_day","daysInYear","year","lngChesh","shrtKis","monthFromName","months","NISAN","IYYAR","ELUL","CHESHVAN","KISLEV","SIVAN","SHVAT","TAMUZ","TISHREI","TEVET","AV","test","ADAR_I","ADAR_II","filter","self","fun","thisp","v","funOrig","RegExp","k","indexOf","res","hasOwnProperty","val","props","getOwnPropertyDescriptor","value","arr","Number","gematriya","charCodeAt","monthNames","concat","days","SUN","MON","TUE","WED","THU","FRI","SAT","LANG","str","opts","MONTH_CNT","daysInMonth","month","monthNum","parseInt","dayYearNum","dayOnOrBefore","day_of_week","absdate","range","start","end","step","push","greg","shas","m","blatt","dafyomi","gregdate","cno","dno","osday","nsday","total","count","j","cday","dafcnt","Date","greg2abs","dafname","daf","dayOfYear","date","doy","getDate","getMonth","getFullYear","t0t1","tMonthLengths","monthLengths","lookupMonthNum","abs2greg","theDate","d0","n400","d1","n100","d2","n4","d3","n1","setFullYear","HDate","me","this","arguments","d","abs2hebrew","il","setLocation","long","trim","prev","next","setMonth","setDate","apply","defaultLocation","fix","fixMonth","fixDate","isLeapYear","hebrew2abs","tempabs","hebdate","mmap","RangeError","suntime","hdate","suncalc","getTimes","hourOffset","hours","sunrise","getTime","hour","onOrBefore","offset","addTime","prototype","enumerable","getTishreiMonth","nummonths","getDay","setTishreiMonth","gregEve","sunset","toString","getMonthName","setCity","hourMins","nightHour","nightHourMins","zemanim","chatzot","chatzot_night","alot_hashachar","alot_hashacher","misheyakir","misheyakir_machmir","sof_zman_shma","sof_zman_tfilla","mincha_gedola","mincha_ketana","plag_hamincha","tzeit","neitz_hachama","shkiah","getZemanim","z","addZeman","zeman","isSameDate","other","before","onOrAfter","after","getset","g","extend","base","into","TE","Month","defProp","writable","holidays","forEach","h","GregYear","lookupMonthName","GregMonth","hebyears","hebmonths","hm","Sedra","EventEmitter","find","strings","getYearObject","HebcalProto","MonthProto","GregYearProto","GregMonthProto","HDateProto","rosh","addHoliday","holiday","Event","add","findParsha","parsha","langs","max","getSedra","findSedra","find_f","replace","rosh_chodesh","omer","today","yesterday","tomorrow","pesach","sukkot","succot","succos","sukkos","shavuot","shavuos","rosh_hashana","rosh_hashanah","parshiot","LANGUAGE","loc","defaultCity","candleLighting","mins","havdalah","__year","getName","prevMonth","molad","m_adj","retMolad","toInt","round","chalakim","minutes","shabbat_mevarchim","_calc","setHours","setMinutes","setSeconds","num","sm","shabbos_mevarchim","shabbos_mevorchim","getMonthObject","__month","orig","__cache","sedraYear","p","getParsha","all","routine","is","prop","hd","tachanun","mapAbs","some","yes_prev","checkNext","y","atzmaut","NONE","ret","ALL_CONGS","SHACHARIT","MINCHA","hallel","whole","half","rc","WHOLE","HALF","checkTimes","obj","compare","time","nowGreg","now","almostTime","beforeZeman","customTimes","customs","refreshInterval","custom","refresh","ms","clearInterval","setInterval","unref","getGregMonthObject","__gregmonth","getGregYearObject","Chanukah","CHM","desc","Sukkot","Pesach","mask","USER_EVENT","LIGHT_CANDLES","YOM_TOV_ENDS","CHUL_ONLY","IL_ONLY","LIGHT_CANDLES_TZEIS","tmpDate","Shabbat","Shabbos","masks","myDate","getDesc","names","isIL","ev","RH","_events","_maxListeners","undefined","isFunction","arg","isNumber","isObject","isUndefined","defaultMaxListeners","setMaxListeners","isNaN","type","er","handler","len","args","error","err","context","addListener","listener","newListener","warned","trace","once","removeListener","fired","list","position","splice","removeAllListeners","key","listenerCount","evlistener","emitter","limit","reverse","numbers","letters","","א","ב","ג","ד","ה","ו","ז","ח","ט","י","כ","ל","מ","נ","ס","ע","פ","צ","ק","ר","ש","ת","תק","תר","תש","תת","תתק","תתר","toJulian","valueOf","dayMs","J1970","fromJulian","toDays","J2000","rightAscension","b","atan","sin","cos","tan","declination","asin","azimuth","H","phi","dec","altitude","siderealTime","lw","rad","astroRefraction","solarMeanAnomaly","eclipticLongitude","M","C","P","PI","sunCoords","L","ra","julianCycle","J0","approxTransit","Ht","solarTransitJ","ds","hourAngle","acos","getSetJ","moonCoords","F","dt","hoursLater","atan2","SunCalc","getPosition","lng","times","angle","riseName","setName","Jset","Jrise","Jnoon","result","solarNoon","nadir","getMoonPosition","pa","distance","parallacticAngle","getMoonIllumination","sdist","inc","fraction","phase","getMoonTimes","inUTC","setUTCHours","h1","h2","rise","xe","ye","roots","x1","x2","dx","hc","h0","define","amd","hebYr","long_c","short_k","COMPLETE","INCOMPLETE","REGULAR","rosh_hashana_day","first_saturday","leap","core","types","theSedraArray","D","absDate","weekNum","index","YK","SUKKOT","CHMSUKOT","SHMINI","EOY","PESACH","CHMPESACH","PESACH7","SHAVUOT","020","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AAsb,EAAA,IAAA,GAAAA,EAAA,IAAAtb,EAAA,GAAA,IAAAsb,EAAA,KAMAF,GAAA,QAAAA,EAAA,OAKAA,EAAA,QAAAA,EAAA,QAIAA,EAAA,QAAAA,EAAA,OAKAA,EAAA,MAAAA,EAAA,MAGAA,EAAA,MAAAA,EAAA,MAIAA,EAAA,MAAAA,EAAA,KAGA1S,EAAAxD,UAAA9J,IAAA,SAAA8hB,GACA,MAAA7iB,GAAA0I,KAAAma,EAAA7iB,QA2BAlF,EAAAJ,QAAA2T","file":"client/hebcal.noloc.min.js","sourceRoot":"https://github.com/hebcal/hebcal-js/tree/v2.2.3/","sourcesContent":["(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o.\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\n\n// name, lat, long, Israel\nvar cities = {\n\t\"Ashdod\": [ 31.8, 34.633, true ],\n\t\"Atlanta\": [ 33.75, -84.383, false ],\n\t\"Austin\": [ 30.266, -97.75, false ],\n\t\"Baghdad\": [ 33.233, 44.366, false ],\n\t\"Beer Sheva\": [ 31.25, 34.783, true ],\n\t\"Berlin\": [ 52.516, 13.4, false ],\n\t\"Baltimore\": [ 39.283, -76.6, false ],\n\t\"Bogota\": [ 4.6, -74.083, false ],\n\t\"Boston\": [ 42.333, -71.066, false ],\n\t\"Buenos Aires\": [ -34.616, -58.4, false ],\n\t\"Buffalo\": [ 42.883, -78.866, false ],\n\t\"Chicago\": [ 41.833, -87.75, false ],\n\t\"Cincinnati\": [ 39.1, -84.516, false ],\n\t\"Cleveland\": [ 41.5, -81.683, false ],\n\t\"Dallas\": [ 32.783, -96.8, false ],\n\t\"Denver\": [ 39.733, -104.983, false ],\n\t\"Detroit\": [ 42.333, -83.033, false ],\n\t\"Eilat\": [ 29.55, 34.95, true ],\n\t\"Gibraltar\": [ 36.133, -5.35, false ],\n\t\"Haifa\": [ 32.816, 34.983, true ],\n\t\"Hawaii\": [ 19.5, -155.5, false ],\n\t\"Houston\": [ 29.766, -95.366, false ],\n\t\"Jerusalem\": [ 31.783, 35.233, true ],\n\t\"Johannesburg\": [ -26.166, 28.033, false ],\n\t\"Kiev\": [ 50.466, 30.483, false ],\n\t\"La Paz\": [ -16.5, -68.15, false ],\n\t\"Livingston\": [ 40.283, -74.3, false ],\n\t\"London\": [ 51.5, -0.166, false ],\n\t\"Los Angeles\": [ 34.066, -118.25, false ],\n\t\"Miami\": [ 25.766, -80.2, false ],\n\t\"Melbourne\": [ -37.866, 145.133, false ],\n\t\"Mexico City\": [ 19.4, -99.15, false ],\n\t\"Montreal\": [ 45.5, -73.6, false ],\n\t\"Moscow\": [ 55.75, 37.7, false ],\n\t\"New York\": [ 40.716, -74.016, false ],\n\t\"Omaha\": [ 41.266, -95.933, false ],\n\t\"Ottawa\": [ 45.7, -76.183, false ],\n\t\"Panama City\": [ 8.966, -79.533, false ],\n\t\"Paris\": [ 48.866, 2.333, false ],\n\t\"Petach Tikvah\": [ 32.083, 34.883, true ],\n\t\"Philadelphia\": [ 39.95, -75.166, false ],\n\t\"Phoenix\": [ 33.45, -112.066, false ],\n\t\"Pittsburgh\": [ 40.433, -80, false ],\n\t\"Saint Louis\": [ 38.633, -90.2, false ],\n\t\"Saint Petersburg\": [ 59.883, 30.25, false ],\n\t\"San Francisco\": [ 37.783, -122.416, false ],\n\t\"Seattle\": [ 47.6, -122.333, false ],\n\t\"Sydney\": [ -33.916, 151.283, false ],\n\t\"Tel Aviv\": [ 32.083, 34.766, true ],\n\t\"Tiberias\": [ 32.966, 35.533, true ],\n\t\"Toronto\": [ 43.633, -79.4, false ],\n\t\"Vancouver\": [ 49.266, -123.116, false ],\n\t\"White Plains\": [ 41.033, -73.75, false ],\n\t\"Washington DC\": [ 38.916, -77, false ]\n};\n\nfunction getCity(city) {\n\tcity = city.split(/\\s+/).map(function(w,i,c){\n\t\tif (c.join(' ').toLowerCase() === 'washington dc' && i === 1) { // special case\n\t\t\treturn w.toUpperCase();\n\t\t}\n\t\treturn w[0].toUpperCase() + w.slice(1).toLowerCase();\n\t}).join(' ');\n\treturn cities[city] || [ 0, 0, false ];\n}\nexports.getCity = getCity;\n\nfunction listCities() {\n\treturn Object.keys(cities);\n}\nexports.listCities = listCities;\n\nexports.addCity = function(city, info) {\n\tif (!Array.isArray(info)) {\n\t\tthrow new TypeError('adding non-array city');\n\t}\n\tif (info.length == 5) {\n\t\tvar i = info.slice();\n\t\tinfo = [];\n\t\tinfo[0] = (i[0] * 60 + i[1]) / 60;\n\t\tinfo[1] = (i[2] * 60 + i[3]) / 60;\n\t\tinfo[2] = i[4];\n\t}\n\tif (info.length != 3) {\n\t\tthrow new TypeError('length of city array is not 3');\n\t}\n\tcity = city.split(/\\s+/).map(function(w){return w[0].toUpperCase() + w.slice(1).toLowerCase()}).join(' ');\n\tcities[city] = info;\n};\n\nexports.nearest = function(lat, lon) {\n\tif (Array.isArray(lat)) {\n\t\tlat = (lat[0] * 60 + lat[1]) / 60;\n\t}\n\tif (Array.isArray(lon)) {\n\t\tlon = (lon[0] * 60 + lon[1]) / 60;\n\t}\n\tif (typeof lat != 'number') {\n\t\tthrow new TypeError('incorrect lat type passed to nearest()');\n\t}\n\tif (typeof lon != 'number') {\n\t\tthrow new TypeError('incorrect long type passed to nearest()');\n\t}\n\n\treturn listCities().map(function(city){\n\t\tvar i = getCity(city);\n\t\treturn {\n\t\t\tname: city,\n\t\t\tdist: Math.sqrt( Math.pow(Math.abs(i[0] - lat), 2) + Math.pow(Math.abs(i[1] - lon), 2) )\n\t\t};\n\t}).reduce(function(close,city){\n\t\treturn close.dist < city.dist ? close : city;\n\t}).name;\n};","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at \n\tdanny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter\n */\nwindow.Hebcal = require('..');\n\nvar finished = false, warn = (typeof console != 'undefined' && (console.warn || console.log)) || function(){};\n\nHebcal.events.on('newListener', function(e){\n\tif (e === 'ready' && !finished && Hebcal.ready) {\n\t\tfinished = Hebcal.events.emit('ready');\n\t}\n});\n\nObject.defineProperty(Hebcal, 'onready', {\n\tconfigurable: true,\n\n\tget: function() {\n\t\twarn('Getting deprecated property Hebcal.onready');\n\t\treturn Hebcal.events.listeners('ready')[0];\n\t},\n\tset: function(func) {\n\t\twarn('Setting deprecated property Hebcal.onready; use Hebcal.events.on(\\'ready\\', func) instead');\n\t\tHebcal.events.on('ready', func);\n\t}\n});\n\nHebcal.ready = true;\nfinished = Hebcal.events.emit('ready');","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar gematriya = require('gematriya');\n\nvar charCodeAt = 'charCodeAt';\n\nvar months = exports.months = {\n\tNISAN : 1,\n\tIYYAR : 2,\n\tSIVAN : 3,\n\tTAMUZ : 4,\n\tAV : 5,\n\tELUL : 6,\n\tTISHREI : 7,\n\tCHESHVAN: 8,\n\tKISLEV : 9,\n\tTEVET : 10,\n\tSHVAT : 11,\n\tADAR_I : 12,\n\tADAR_II : 13\n};\n\nvar monthNames = [\n\t[\"\", 0, \"\"],\n\t[\"Nisan\", 0, \"ניסן\"],\n\t[\"Iyyar\", 0, \"אייר\"],\n\t[\"Sivan\", 0, \"סיון\"],\n\t[\"Tamuz\", 0, \"תמוז\"],\n\t[\"Av\", 0, \"אב\"],\n\t[\"Elul\", 0, \"אלול\"],\n\t[\"Tishrei\", 0, \"תשרי\"],\n\t[\"Cheshvan\", 0, \"חשון\"],\n\t[\"Kislev\", 0, \"כסלו\"],\n\t[\"Tevet\", 0, \"טבת\"],\n\t[\"Sh'vat\", 0, \"שבט\"]\n];\nexports.monthNames = [\n\tmonthNames.concat([[\"Adar\", 0, \"אדר\"],[\"Nisan\", 0, \"ניסן\"]]),\n\tmonthNames.concat([[\"Adar 1\", 0, \"אדר א'\"],[\"Adar 2\", 0, \"אדר ב'\"],[\"Nisan\", 0, \"ניסן\"]])\n];\n\nexports.days = {\n\tSUN: 0,\n\tMON: 1,\n\tTUE: 2,\n\tWED: 3,\n\tTHU: 4,\n\tFRI: 5,\n\tSAT: 6\n};\n\nexports.LANG = function(str, opts){\n\treturn opts == 'h' && str[2] || (opts == 'a' && str[1] || str[0]);\n};\n\nfunction LEAP(x) {\n\treturn (1 + x * 7) % 19 < 7;\n}\nexports.LEAP = LEAP;\n\nexports.MONTH_CNT = function(x) {\n\treturn 12 + LEAP(x); // boolean is cast to 1 or 0\n};\n\nexports.daysInMonth = function(month, year) {\n\treturn 30 - (month == months.IYYAR ||\n\tmonth == months.TAMUZ ||\n\tmonth == months.ELUL ||\n\tmonth == months.TEVET ||\n\tmonth == months.ADAR_II ||\n\t(month == months.ADAR_I && !LEAP(year)) ||\n\t(month == months.CHESHVAN && !lngChesh(year)) ||\n\t(month == months.KISLEV && shrtKis(year)));\n};\n\nexports.monthNum = function(month) {\n\treturn typeof month === 'number' ? month :\n\t\tmonth[charCodeAt](0) >= 1488 && month[charCodeAt](0) <= 1514 && /('|\")/.test(month) ? gematriya(month) :\n\t\t\tmonth[charCodeAt](0) >= 48 && month[charCodeAt](0) <= 57 /* number */ ? parseInt(month, 10) : monthFromName(month);\n};\n\nexports.dayYearNum = function(str) {\n\treturn typeof str === 'number' ? str :\n\t\tstr[charCodeAt](0) >= 1488 && str[charCodeAt](0) <= 1514 ? gematriya(str, true) : parseInt(str, 10);\n};\n\n/* Days from sunday prior to start of Hebrew calendar to mean\n conjunction of Tishrei in Hebrew YEAR\n */\nfunction hebElapsedDays(hYear){\n\t// borrowed from original JS\n\tvar m_elapsed = 235 * Math.floor((hYear - 1) / 19) +\n\t\t12 * ((hYear - 1) % 19) +\n\t\tMath.floor(((((hYear - 1) % 19) * 7) + 1) / 19);\n\n\tvar p_elapsed = 204 + (793 * (m_elapsed % 1080));\n\n\tvar h_elapsed = 5 + (12 * m_elapsed) +\n\t\t793 * Math.floor(m_elapsed / 1080) +\n\t\tMath.floor(p_elapsed / 1080);\n\n\tvar parts = (p_elapsed % 1080) + 1080 * (h_elapsed % 24);\n\n\tvar day = 1 + 29 * m_elapsed + Math.floor(h_elapsed / 24);\n\tvar alt_day = day + ((parts >= 19440) ||\n\t\t((2 == (day % 7)) && (parts >= 9924) && !(LEAP (hYear))) ||\n\t\t((1 == (day % 7)) && (parts >= 16789) && LEAP (hYear - 1)));\n\n\treturn alt_day + ((alt_day % 7) === 0 ||\n\t\t(alt_day % 7) == 3 ||\n\t\t(alt_day % 7) == 5);\n}\nexports.hebElapsedDays = hebElapsedDays;\n\n/* Number of days in the hebrew YEAR */\nfunction daysInYear(year)\n{\n\treturn hebElapsedDays(year + 1) - hebElapsedDays(year);\n}\nexports.daysInYear = daysInYear;\n\n/* true if Cheshvan is long in Hebrew YEAR */\nfunction lngChesh(year) {\n\treturn (daysInYear(year) % 10) == 5;\n}\nexports.lngChesh = lngChesh;\n\n/* true if Kislev is short in Hebrew YEAR */\nfunction shrtKis(year) {\n\treturn (daysInYear(year) % 10) == 3;\n}\nexports.shrtKis = shrtKis;\n\nfunction monthFromName(c) {\n\t/*\n\tthe Hebrew months are unique to their second letter\n\tN Nisan (November?)\n\tI Iyyar\n\tE Elul\n\tC Cheshvan\n\tK Kislev\n\t1 1Adar\n\t2 2Adar\n\tSi Sh Sivan, Shvat\n\tTa Ti Te Tamuz, Tishrei, Tevet\n\tAv Ad Av, Adar\n\n\tאב אד אי אל אב אדר אייר אלול\n\tח חשון\n\tט טבת\n\tכ כסלב\n\tנ ניסן\n\tס סיון\n\tש שבט\n\tתמ תש תמוז תשרי\n\t*/\n\tswitch (c.toLowerCase()[0]) {\n\t\tcase 'n':\n\t\tcase 'נ':\n\t\t\treturn (c.toLowerCase()[1] == 'o') ? /* this catches \"november\" */\n\t\t\t\t0 : months.NISAN;\n\t\tcase 'i':\n\t\t\treturn months.IYYAR;\n\t\tcase 'e':\n\t\t\treturn months.ELUL;\n\t\tcase 'c':\n\t\tcase 'ח':\n\t\t\treturn months.CHESHVAN;\n\t\tcase 'k':\n\t\tcase 'כ':\n\t\t\treturn months.KISLEV;\n\t\tcase 's':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'i':\n\t\t\t\t\treturn months.SIVAN;\n\t\t\t\tcase 'h':\n\t\t\t\t\treturn months.SHVAT;\n\t\t\t\tdefault:\n\t\t\t\t\treturn 0;\n\t\t\t}\n\t\tcase 't':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'a':\n\t\t\t\t\treturn months.TAMUZ;\n\t\t\t\tcase 'i':\n\t\t\t\t\treturn months.TISHREI;\n\t\t\t\tcase 'e':\n\t\t\t\t\treturn months.TEVET;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'a':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'v':\n\t\t\t\t\treturn months.AV;\n\t\t\t\tcase 'd':\n\t\t\t\t\tif (/(1|[^i]i|a|א)$/i.test(c)) {\n\t\t\t\t\t\treturn months.ADAR_I;\n\t\t\t\t\t}\n\t\t\t\t\treturn months.ADAR_II; // else assume sheini\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'ס':\n\t\t\treturn months.SIVAN;\n\t\tcase 'ש':\n\t\t\treturn months.SHVAT;\n\t\tcase 'א':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'ב':\n\t\t\t\t\treturn months.AV;\n\t\t\t\tcase 'ד':\n\t\t\t\t\tif (/(2|ii|b|ב)$/i.test(c)) {\n\t\t\t\t\t\treturn months.ADAR_I;\n\t\t\t\t\t}\n\t\t\t\t\treturn months.ADAR_II; // else assume sheini\n\t\t\t\tcase 'י':\n\t\t\t\t\treturn months.IYYAR;\n\t\t\t\tcase 'ל':\n\t\t\t\t\treturn months.ELUL;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'ת':\n\t\t\tswitch (c.toLowerCase()[1]) {\n\t\t\t\tcase 'מ':\n\t\t\t\t\treturn months.TAMUZ;\n\t\t\t\tcase 'ש':\n\t\t\t\t\treturn months.TISHREI;\n\t\t\t}\n\t\t\tbreak;\n\t}\n\treturn 0;\n};\nexports.monthFromName = monthFromName;\n\n/* Note: Applying this function to d+6 gives us the DAYNAME on or after an\n * absolute day d. Similarly, applying it to d+3 gives the DAYNAME nearest to\n * absolute date d, applying it to d-1 gives the DAYNAME previous to absolute\n * date d, and applying it to d+7 gives the DAYNAME following absolute date d.\n\n**/\nexports.dayOnOrBefore = function(day_of_week, absdate) {\n\treturn absdate - ((absdate - day_of_week) % 7);\n};\n\nexports.map = function(self, fun, thisp) {\n\t// originally written for http://github.com/Scimonster/localbrowse\n\tif (self === null || typeof fun != 'function') {\n\t\tthrow new TypeError();\n\t}\n\tvar t = Object(self);\n\tvar res = {};\n\tfor (var i in t) {\n\t\tif (t.hasOwnProperty(i)) {\n\t\t\tres[i] = fun.call(thisp, t[i], i, t);\n\t\t}\n\t}\n\tif (Array.isArray(self) || typeof self == 'string') { // came as an array, return an array\n\t\tvar arr = [];\n\t\tfor (i in res) {\n\t\t\tarr[Number(i)] = res[i];\n\t\t}\n\t\tres = filter(arr, true); // for...in isn't guaranteed to give any meaningful order\n\t\tif (typeof self == 'string') {\n\t\t\tres = res.join('');\n\t\t}\n\t}\n\treturn res;\n};\n\nfunction filter(self, fun, thisp) {\n\tif (self === null) {\n\t\tthrow new TypeError('self is null');\n\t}\n\tswitch (typeof fun) {\n\t\tcase 'function':\n\t\t\tbreak; // do nothing\n\t\tcase 'string':\n\t\tcase 'number':\n\t\t\treturn self[fun]; // str/num is just the property\n\t\tcase 'boolean':\n\t\t\t// boolean shortcuts to filter only truthy/falsy values\n\t\t\tif (fun) {\n\t\t\t\tfun = function (v) {\n\t\t\t\t\treturn v;\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\tfun = function (v) {\n\t\t\t\t\treturn !v;\n\t\t\t\t};\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'object':\n\t\t\tvar funOrig = fun; // save it\n\t\t\tif (fun instanceof RegExp) { // test the val against the regex\n\t\t\t\tfun = function (v) {\n\t\t\t\t\treturn funOrig.test(v);\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\t} else if (Array.isArray(fun)) { // keep these keys\n\t\t\t\tfun = function (v, k) {\n\t\t\t\t\treturn funOrig.indexOf(k) > -1;\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\t}\n\t\tdefault:\n\t\t\tthrow new TypeError('fun is not a supported type');\n\t}\n\tvar res = {};\n\tvar t = Object(self);\n\tfor (var i in t) {\n\t\tif (t.hasOwnProperty(i)) {\n\t\t\tvar val = t[i]; // in case fun mutates it\n\t\t\tif (fun.call(thisp, val, i, t)) {\n\t\t\t\t// define property on res in the same manner as it was originally defined\n\t\t\t\tvar props = Object.getOwnPropertyDescriptor(t, i);\n\t\t\t\tprops.value = val;\n\t\t\t\tObject.defineProperty(res, i, props);\n\t\t\t}\n\t\t}\n\t}\n\tif (Array.isArray(self) || typeof self == 'string') { // came as an array, return an array\n\t\tvar arr = [];\n\t\tfor (i in res) {\n\t\t\tarr[Number(i)] = res[i];\n\t\t}\n\t\tres = arr.filter(function (v) {\n\t\t\treturn v;\n\t\t}); // for...in isn't guaranteed to give any meaningful order\n\t\t// can't use c.filter(arr,true) here because that would infitely recurse\n\t\tif (typeof self == 'string') {\n\t\t\tres = res.join('');\n\t\t}\n\t}\n\treturn res;\n}\nexports.filter = filter;\n\nexports.range = function(start, end, step) {\n\tstep = step || 1;\n\tif (step < 0) {\n\t\tstep = 0 - step;\n\t}\n\n\tvar arr = [], i = start;\n\tif (start < end) {\n\t\tfor (; i <= end; i += step) {\n\t\t\tarr.push(i);\n\t\t}\n\t} else {\n\t\tfor (; i >= end; i -= step) {\n\t\t\tarr.push(i);\n\t\t}\n\t}\n\treturn arr;\n};\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar c = require('./common'),\n\tgreg = require('./greg'),\n\tgematriya = require('gematriya');\n\nvar shas = [\n\t// sname, aname, hname, blatt\n\t[ \"Berachot\", \"Berachos\", \"ברכות\", 64 ],\n\t[ \"Shabbat\", \"Shabbos\", \"שבת\", 157 ],\n\t[ \"Eruvin\", \"Eruvin\", \"עירובין\", 105 ],\n\t[ \"Pesachim\", 0, \"פסחים\", 121 ],\n\t[ \"Shekalim\", 0, \"שקלים\", 22 ],\n\t[ \"Yoma\", 0, \"יומא\", 88 ],\n\t[ \"Sukkah\", 0, \"סוכה\", 56 ],\n\t[ \"Beitzah\", 0, \"ביצה\", 40 ],\n\t[ \"Rosh Hashana\", 0, \"ראש השנה\", 35 ],\n\t[ \"Taanit\", \"Taanis\", \"תענית\", 31 ],\n\t[ \"Megillah\", 0, \"מגילה\", 32 ],\n\t[ \"Moed Katan\", 0, \"מועד קטן\", 29 ],\n\t[ \"Chagigah\", 0, \"חגיגה\", 27 ],\n\t[ \"Yevamot\", \"Yevamos\", \"יבמות\", 122 ],\n\t[ \"Ketubot\", \"Kesubos\", \"כתובות\", 112 ],\n\t[ \"Nedarim\", 0, \"נדרים\", 91 ],\n\t[ \"Nazir\", 0, \"נזיר\", 66 ],\n\t[ \"Sotah\", 0, \"סוטה\", 49 ],\n\t[ \"Gitin\", 0, \"גיטין\", 90 ],\n\t[ \"Kiddushin\", 0, \"קידושין\", 82 ],\n\t[ \"Baba Kamma\", 0, \"בבא קמא\", 119 ],\n\t[ \"Baba Metzia\", 0, \"בבא מציעא\", 119 ],\n\t[ \"Baba Batra\", \"Baba Basra\", \"בבא בתרא\", 176 ],\n\t[ \"Sanhedrin\", 0, \"סנהדרין\", 113 ],\n\t[ \"Makkot\", \"Makkos\", \"מכות\", 24 ],\n\t[ \"Shevuot\", \"Shevuos\", \"שבועות\", 49 ],\n\t[ \"Avodah Zarah\", 0, \"עבודה זרה\", 76 ],\n\t[ \"Horayot\", \"Horayos\", \"הוריות\", 14 ],\n\t[ \"Zevachim\", 0, \"זבחים\", 120 ],\n\t[ \"Menachot\", \"Menachos\", \"מנחות\", 110 ],\n\t[ \"Chullin\", 0, \"חולין\", 142 ],\n\t[ \"Bechorot\", \"Bechoros\", \"בכורות\", 61 ],\n\t[ \"Arachin\", 0, \"ערכין\", 34 ],\n\t[ \"Temurah\", 0, \"תמורה\", 34 ],\n\t[ \"Keritot\", \"Kerisos\", \"כריתות\", 28 ],\n\t[ \"Meilah\", 0, \"מעילה\", 22 ],\n\t[ \"Kinnim\", 0, \"קנים\", 4 ],\n\t[ \"Tamid\", 0, \"תמיד\", 10 ],\n\t[ \"Midot\", \"Midos\", \"מדות\", 4 ],\n\t[ \"Niddah\", 0, \"נדה\", 73 ]\n].map(function(m){\n\treturn {name: m.slice(0,3), blatt: m[3]};\n});\n\nexports.dafyomi = function(gregdate) {\n\tvar dafcnt = 40, cno, dno, osday, nsday, total, count, j, cday, blatt;\n\n\tif (!(gregdate instanceof Date)) {\n\t\tthrow new TypeError('non-date given to dafyomi');\n\t}\n\n\tosday = greg.greg2abs(new Date(1923, 8, 11));\n\tnsday = greg.greg2abs(new Date(1975, 5, 24));\n\tcday = greg.greg2abs(gregdate);\n\n\tif (cday < osday) { // no cycle; dy didn't start yet\n\t\treturn {name: [], blatt: 0};\n\t}\n\tif (cday >= nsday) { // \"new\" cycle\n\t\tcno = 8 + ( (cday - nsday) / 2711 );\n\t\tdno = (cday - nsday) % 2711;\n\t} else { // old cycle\n\t\tcno = 1 + ( (cday - osday) / 2702 );\n\t\tdno = (cday - osday) % 2702;\n\t}\n\n\t// Find the daf taking note that the cycle changed slightly after cycle 7.\n\n\ttotal = blatt = 0;\n\tcount = -1;\n\n\t// Fix Shekalim for old cycles\n\tif (cno <= 7) {\n\t\tshas[4].blatt = 13;\n\t} else {\n\t\tshas[4].blatt = 22;\n\t}\n\n\t// Find the daf\n\tj = 0;\n\twhile (j < dafcnt) {\n\t\tcount++;\n\t\ttotal = total + shas[j].blatt - 1;\n\t\tif (dno < total) {\n\t\t\tblatt = (shas[j].blatt + 1) - (total - dno);\n\t\t\t// fiddle with the weird ones near the end\n\t\t\tswitch (count) {\n\t\t\t\tcase 36:\n\t\t\t\t\tblatt = blatt + 21;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 37:\n\t\t\t\t\tblatt = blatt + 24;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 38:\n\t\t\t\t\tblatt = blatt + 33;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// Bailout\n\t\t\tj = 1 + dafcnt;\n\t\t}\n\t\tj++;\n\t}\n\n\treturn {name: shas[count].name, blatt: blatt};\n};\n\nexports.dafname = function(daf, o) {\n\treturn c.LANG(daf.name, o) + ' ' + (o === 'h' ? gematriya(daf.blatt) : daf.blatt);\n};\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar floor = Math.floor,\n\tt0t1 = [30, 31],\n\ttMonthLengths = [0, 31, 28, 31].concat(t0t1, t0t1, 31, t0t1, t0t1),\n\tmonthLengths = [\n\t\ttMonthLengths.slice()\n\t];\ntMonthLengths[2]++;\nmonthLengths.push(tMonthLengths);\n\nexports.daysInMonth = function(month, year) { // 1 based months\n\treturn monthLengths[+LEAP(year)][month];\n};\n\nexports.monthNames = [\n\t'',\n\t'January',\n\t'February',\n\t'March',\n\t'April',\n\t'May',\n\t'June',\n\t'July',\n\t'August',\n\t'September',\n\t'October',\n\t'November',\n\t'December'\n];\n\nexports.lookupMonthNum = function(month) {\n\treturn new Date(month + ' 1').getMonth() + 1;\n};\n\nfunction dayOfYear (date) {\n\tif (!date instanceof Date) {\n\t\tthrow new TypeError('Argument to greg.dayOfYear not a Date');\n\t}\n\tvar doy = date.getDate() + 31 * date.getMonth();\n\tif (date.getMonth() > 1) { // FEB\n\t\tdoy -= floor((4 * (date.getMonth() + 1) + 23) / 10);\n\t\tif (LEAP(date.getFullYear())) {\n\t\t\tdoy++;\n\t\t}\n\t}\n\treturn doy;\n}\nexports.dayOfYear = dayOfYear;\n\nfunction LEAP (year) {\n\treturn !(year % 4) && ( !!(year % 100) || !(year % 400) );\n}\nexports.LEAP = LEAP;\n\nexports.greg2abs = function(date) { // \"absolute date\"\n\tvar year = date.getFullYear() - 1;\n\treturn (dayOfYear(date) + // days this year\n\t\t\t365 * year + // + days in prior years\n\t\t\t( floor(year / 4) - // + Julian Leap years\n\t\t\tfloor(year / 100) + // - century years\n\t\t\tfloor(year / 400))); // + Gregorian leap years\n};\n\n\n/*\n * See the footnote on page 384 of ``Calendrical Calculations, Part II:\n * Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.\n * Clamen, Software--Practice and Experience, Volume 23, Number 4\n * (April, 1993), pages 383-404 for an explanation.\n */\nexports.abs2greg = function(theDate) {\n// calculations copied from original JS code\n\n\tvar d0 = theDate - 1;\n\tvar n400 = floor(d0 / 146097);\n\tvar d1 = floor(d0 % 146097);\n\tvar n100 = floor(d1 / 36524);\n\tvar d2 = d1 % 36524;\n\tvar n4 = floor(d2 / 1461);\n\tvar d3 = d2 % 1461;\n\tvar n1 = floor(d3 / 365);\n\n\tvar day = ((d3 % 365) + 1);\n\tvar year = (400 * n400 + 100 * n100 + 4 * n4 + n1);\n\n\tif (4 == n100 || 4 == n1) {\n\t\treturn new Date(year, 11, 31);\n\t}\n\n\treturn new Date(new Date(++year, 0, day).setFullYear(year)); // new Date() is very smart\n};","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar c = require('./common'),\n\tgreg = require('./greg'),\n\tsuncalc = require('suncalc'),\n\tcities = require('./cities'),\n\tgematriya = require('gematriya');\n\nsuncalc.addTime(-16.1, 'alot_hashachar', 0);\nsuncalc.addTime(-11.5, 'misheyakir', 0);\nsuncalc.addTime(-10.2, 'misheyakir_machmir', 0);\nsuncalc.addTime(-8.5, 0, 'tzeit');\n\n// for minifying optimizations\nvar getFullYear = 'getFullYear',\n\tgetMonth = 'getMonth',\n\tgetDate = 'getDate',\n\tgetTime = 'getTime',\n\tabs = 'abs',\n\thour = 'hour',\n\tmonths = c.months,\n\tTISHREI = months.TISHREI,\n\tMONTH_CNT = c.MONTH_CNT,\n\tdaysInMonth = c.daysInMonth,\n\tdayOnOrBefore = c.dayOnOrBefore,\n\tprototype = HDate.prototype;\n\nfunction HDate(day, month, year) {\n\tvar me = this;\n\tswitch (arguments.length) {\n\t\tcase 0:\n\t\t\treturn new HDate(new Date());\n\t\tcase 1:\n\t\t\tif (typeof day == 'undefined') {\n\t\t\t\treturn new HDate();\n\t\t\t} else if (day instanceof Date) {\n\t\t\t\t// we were passed a Gregorian date, so convert it\n\t\t\t\tvar d = abs2hebrew(greg.greg2abs(day));\n\t\t\t\t/*if (d.sunset() < day) {\n\t\t\t\t\td = d.next();\n\t\t\t\t}*/\n\t\t\t\treturn d;\n\t\t\t} else if (day instanceof HDate) {\n\t\t\t\tvar d = new HDate(day[getDate](), day[getMonth](), day[getFullYear]());\n\t\t\t\td.il = day.il;\n\t\t\t\td.setLocation(d.lat, d.long);\n\t\t\t\treturn d;\n\t\t\t} else if (typeof day == 'string') {\n\t\t\t\tswitch (day.toLowerCase().trim()) {\n\t\t\t\t\tcase 'today':\n\t\t\t\t\t\treturn new HDate();\n\t\t\t\t\tcase 'yesterday':\n\t\t\t\t\t\treturn new HDate().prev();\n\t\t\t\t\tcase 'tomorrow':\n\t\t\t\t\t\treturn new HDate().next();\n\t\t\t\t}\n\t\t\t\tif (/\\s/.test(day)) {\n\t\t\t\t\tvar s = day.split(/\\s+/);\n\t\t\t\t\tif (s.length == 2) {\n\t\t\t\t\t\treturn new HDate(s[0], s[1]);\n\t\t\t\t\t} else if (s.length == 3) {\n\t\t\t\t\t\treturn new HDate(s[0], s[1], s[2]);\n\t\t\t\t\t} else if (s.length == 4) { // should only be if s[1] is Adar\n\t\t\t\t\t\tif (/i/i.test(s[2])) { // Using I[I] syntax\n\t\t\t\t\t\t\ts[2] = s[2].length;\n\t\t\t\t\t\t} // otherwise using 1|2 syntax\n\t\t\t\t\t\treturn new HDate(s[0], s[1] + s[2], s[3]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (typeof day == 'number') { // absolute date\n\t\t\t\treturn abs2hebrew(day);\n\t\t\t}\n\t\t\tthrow new TypeError('HDate called with bad argument');\n\t\tcase 2:\n\t\t\treturn new HDate(day, month, (new HDate)[getFullYear]());\n\t\tcase 3:\n\t\t\tme.day = me.month = 1;\n\t\t\tme.year = c.dayYearNum(year);\n\n\t\t\tme.setMonth(c.monthNum(month));\n\t\t\tme.setDate(c.dayYearNum(day));\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new TypeError('HDate called with bad arguments');\n\t}\n\n\treturn me.setLocation.apply(me, HDate.defaultLocation);\n}\n\nHDate.defaultLocation = [0, 0];\nObject.defineProperty(HDate, 'defaultCity', {\n\tenumerable: true,\n\tconfigurable: true,\n\n\tget: function() {\n\t\treturn cities.nearest(HDate.defaultLocation[0], HDate.defaultLocation[1]);\n\t},\n\tset: function(city) {\n\t\tHDate.defaultLocation = cities.getCity(city).slice(0, 2);\n\t}\n});\n\nfunction fix(date) {\n\tfixMonth(date);\n\tfixDate(date);\n}\n\nfunction fixDate(date) {\n\tif (date.day < 1) {\n\t\tif (date.month == TISHREI) {\n\t\t\tdate.year -= 1;\n\t\t}\n\t\tdate.day += daysInMonth(date.month, date.year);\n\t\tdate.month -= 1;\n\t\tfix(date);\n\t}\n\tif (date.day > daysInMonth(date.month, date.year)) {\n\t\tif (date.month == months.ELUL) {\n\t\t\tdate.year += 1;\n\t\t}\n\t\tdate.day -= daysInMonth(date.month, date.year);\n\t\tdate.month += 1;\n\t\tfix(date);\n\t}\n\tfixMonth(date);\n}\n\nfunction fixMonth(date) {\n\tif (date.month == months.ADAR_II && !date.isLeapYear()) {\n\t\tdate.month -= 1; // to Adar I\n\t\tfix(date);\n\t}\n\tif (date.month < 1) {\n\t\tdate.month += MONTH_CNT(date.year);\n\t\tdate.year -= 1;\n\t\tfix(date);\n\t}\n\tif (date.month > MONTH_CNT(date.year)) {\n\t\tdate.month -= MONTH_CNT(date.year);\n\t\tdate.year += 1;\n\t\tfix(date);\n\t}\n}\n\nprototype[getFullYear] = function() {\n\treturn this.year;\n};\n\nprototype.isLeapYear = function() {\n\treturn c.LEAP(this.year);\n};\n\nprototype[getMonth] = function() {\n\treturn this.month;\n};\n\nprototype.getTishreiMonth = function() {\n\tvar nummonths = MONTH_CNT(this[getFullYear]());\n\treturn (this[getMonth]() + nummonths - 6) % nummonths || nummonths;\n};\n\nprototype.daysInMonth = function() {\n\treturn daysInMonth(this[getMonth](), this[getFullYear]());\n};\n\nprototype[getDate] = function() {\n\treturn this.day;\n};\n\nprototype.getDay = function() {\n\treturn this.greg().getDay();\n};\n\nprototype.setFullYear = function(year) {\n\tthis.year = year;\n\tfix(this);\n\treturn this;\n};\n\nprototype.setMonth = function(month) {\n\tthis.month = c.monthNum(month);\n\tfix(this);\n\treturn this;\n};\n\nprototype.setTishreiMonth = function(month) {\n\treturn this.setMonth((month + 6) % MONTH_CNT(this[getFullYear]()) || 13);\n};\n\nprototype.setDate = function(date) {\n\tthis.day = date;\n\tfix(this);\n\treturn this;\n};\n\n/* convert hebrew date to absolute date */\n/* Absolute date of Hebrew DATE.\n The absolute date is the number of days elapsed since the (imaginary)\n Gregorian date Sunday, December 31, 1 BC. */\nfunction hebrew2abs(d) {\n\tvar m, tempabs = d[getDate](), year = d[getFullYear]();\n\n\tif (d[getMonth]() < TISHREI) {\n\t\tfor (m = TISHREI; m <= MONTH_CNT(year); m++) {\n\t\t\ttempabs += daysInMonth(m, year);\n\t\t}\n\n\t\tfor (m = months.NISAN; m < d[getMonth](); m++) {\n\t\t\ttempabs += daysInMonth(m, year);\n\t\t}\n\t} else {\n\t\tfor (m = TISHREI; m < d[getMonth](); m++) {\n\t\t\ttempabs += daysInMonth(m, year);\n\t\t}\n\t}\n\n\treturn c.hebElapsedDays(year) - 1373429 + tempabs;\n}\n\nfunction abs2hebrew(d) {\n\tvar mmap = [\n\t\tmonths.KISLEV, months.TEVET, months.SHVAT, months.ADAR_I, months.NISAN,\n\t\tmonths.IYYAR, months.SIVAN, months.TAMUZ, TISHREI, TISHREI, TISHREI, months.CHESHVAN\n\t], hebdate, gregdate, month, year;\n\n\tif (d >= 10555144) {\n\t\tthrow new RangeError(\"parameter to abs2hebrew \" + d + \" out of range\");\n\t}\n\n\tgregdate = greg.abs2greg(d);\n\thebdate = new HDate(1, TISHREI, (year = 3760 + gregdate[getFullYear]()));\n\n\twhile (d >= hebrew2abs(hebdate.setFullYear(year + 1))) {\n\t\tyear++;\n\t}\n\n\tif (year > 4634 && year < 10666) {\n\t\t// optimize search\n\t\tmonth = mmap[gregdate[getMonth]()];\n\t} else {\n\t\t// we're outside the usual range, so assume nothing about Hebrew/Gregorian calendar drift...\n\t\tmonth = TISHREI;\n\t}\n\n\twhile (d > hebrew2abs(hebdate = new HDate(daysInMonth(month, year), month, year))) {\n\t\tmonth = (month % MONTH_CNT(year)) + 1;\n\t}\n\n\treturn hebdate.setLocation.apply(hebdate.setDate(d - hebrew2abs(hebdate.setDate(1)) + 1), HDate.defaultLocation);\n}\n\nprototype.greg = function() {\n\treturn greg.abs2greg(hebrew2abs(this));\n};\n\nprototype.gregEve = function() {\n\treturn this.prev().sunset();\n};\n\nprototype[abs] = function() {\n\treturn hebrew2abs(this);\n};\n\nprototype.toString = function(o) {\n\treturn c.LANG([this[getDate](), null, gematriya(this[getDate]())], o) + ' ' +\n\t\tthis.getMonthName(o) + ' ' +\n\t\tc.LANG([this[getFullYear](), null, gematriya(this[getFullYear]())], o);\n};\n\nprototype.getMonthName = function(o) {\n\treturn c.LANG(c.monthNames[+this.isLeapYear()][this[getMonth]()], o);\n};\n\nprototype.setCity = function(city) {\n\treturn this.setLocation(cities.getCity(city));\n};\n\nprototype.setLocation = function(lat, lon) {\n\tif (typeof lat == 'object' && !Array.isArray(lat)) {\n\t\tlon = lat.long;\n\t\tlat = lat.lat;\n\t}\n\tif (Array.isArray(lat) && typeof lon == 'undefined') {\n\t\tlon = lat[0];\n\t\tlat = lat[1];\n\t}\n\tif (Array.isArray(lat)) {\n\t\tlat = (lat[0] * 60 + lat[1]) / 60;\n\t}\n\tif (Array.isArray(lon)) {\n\t\tlon = (lon[0] * 60 + lon[1]) / 60;\n\t}\n\tif (typeof lat != 'number') {\n\t\tthrow new TypeError('incorrect lat type passed to HDate.setLocation()');\n\t}\n\tif (typeof lon != 'number') {\n\t\tthrow new TypeError('incorrect long type passed to HDate.setLocation()');\n\t}\n\n\tthis.lat = lat;\n\tthis.long = lon;\n\n\tthis.il = cities.getCity(cities.nearest(lat, lon))[2];\n\n\treturn this;\n};\n\nfunction suntime(hdate) {\n\t// reset the date to midday before calling suncalc api\n\t// https://github.com/mourner/suncalc/issues/11\n\tvar date = hdate.greg();\n\treturn suncalc.getTimes(new Date(date.getFullYear(), date.getMonth(), date.getDate(), 12, 0, 0, 0, 0), hdate.lat, hdate.long);\n}\n\nprototype.sunrise = function() {\n\treturn suntime(this).sunrise;\n};\n\nprototype.sunset = function() {\n\treturn suntime(this).sunset;\n};\n\nprototype[hour] = function() {\n\treturn (this.sunset() - this.sunrise()) / 12; // ms in hour\n};\n\nprototype.hourMins = function() {\n\t// hour in ms / (1000 ms in s * 60 s in m) = mins in halachic hour\n\treturn this[hour]() / (1000 * 60);\n};\n\nprototype.nightHour = function() {\n\treturn (this.sunrise() - this.gregEve()) / 12; // ms in hour\n};\n\nprototype.nightHourMins = function() {\n\t// hour in ms / (1000 ms in s * 60 s in m) = mins in halachic hour\n\treturn this.nightHour() / (1000 * 60);\n};\n\nfunction hourOffset(hdate, hours) {\n\treturn new Date(hdate.sunrise()[getTime]() + (hdate[hour]() * hours));\n}\n\nvar zemanim = {\n\tchatzot: function(hdate) {\n\t\treturn hourOffset(hdate, 6);\n\t},\n\tchatzot_night: function(hdate) {\n\t\treturn new Date(hdate.sunrise()[getTime]() - (hdate.nightHour() * 6));\n\t},\n\talot_hashachar: function(hdate) {\n\t\treturn suntime(hdate).alot_hashachar;\n\t},\n\talot_hashacher: function(hdate) {\n\t\treturn suntime(hdate).alot_hashachar;\n\t},\n\tmisheyakir: function(hdate) {\n\t\treturn suntime(hdate).misheyakir;\n\t},\n\tmisheyakir_machmir: function(hdate) {\n\t\treturn suntime(hdate).misheyakir_machmir;\n\t},\n\tsof_zman_shma: function(hdate) { // Gra\n\t\treturn hourOffset(hdate, 3);\n\t},\n\tsof_zman_tfilla: function(hdate) { // Gra\n\t\treturn hourOffset(hdate, 4);\n\t},\n\tmincha_gedola: function(hdate) {\n\t\treturn hourOffset(hdate, 6.5);\n\t},\n\tmincha_ketana: function(hdate) {\n\t\treturn hourOffset(hdate, 9.5);\n\t},\n\tplag_hamincha: function(hdate) {\n\t\treturn hourOffset(hdate, 10.75);\n\t},\n\ttzeit: function(hdate) {\n\t\treturn suntime(hdate).tzeit;\n\t},\n\tneitz_hachama: function(hdate) {\n\t\treturn hdate.sunrise();\n\t},\n\tshkiah: function(hdate) {\n\t\treturn hdate.sunset();\n\t}\n};\n\nprototype.getZemanim = function() {\n\treturn c.map(zemanim, function(z){\n\t\treturn z(this);\n\t}, this);\n};\n\nHDate.addZeman = function(zeman, func) {\n\tzemanim[zeman] = func;\n};\n\nprototype.next = function() {\n\treturn abs2hebrew(this.abs() + 1).setLocation(this.lat, this.long);\n};\n\nprototype.prev = function() {\n\treturn abs2hebrew(this.abs() - 1).setLocation(this.lat, this.long);\n};\n\nprototype.isSameDate = function(other) {\n\tif (other instanceof HDate) {\n\t\tif (other[getFullYear]() == -1) {\n\t\t\tother = new HDate(other).setFullYear(this[getFullYear]());\n\t\t}\n\t\treturn this[abs]() == other[abs]();\n\t}\n\treturn false;\n};\n\nfunction onOrBefore(day, t, offset) {\n\treturn new HDate(dayOnOrBefore(day, t[abs]() + offset));\n}\n\nprototype.before = function(day) {\n\treturn onOrBefore(day, this, -1);\n};\n\nprototype.onOrBefore = function(day) {\n\treturn onOrBefore(day, this, 0);\n};\n\nprototype.nearest = function(day) {\n\treturn onOrBefore(day, this, 3);\n};\n\nprototype.onOrAfter = function(day) {\n\treturn onOrBefore(day, this, 6);\n};\n\nprototype.after = function(day) {\n\treturn onOrBefore(day, this, 7);\n};\n\nmodule.exports = HDate;\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar c = require('./common'),\n\tHDate = require('./hdate'),\n\tholidays = require('./holidays'),\n\tSedra = require('./sedra'),\n\tdafyomi = require('./dafyomi'),\n\tcities = require('./cities'),\n\tgreg = require('./greg'),\n\tEventEmitter = require('events').EventEmitter,\n\tgematriya = require('gematriya');\n\n// for minifying optimizations\nvar defProp = Object.defineProperty,\n\tTE = TypeError,\n\tfind = 'find',\n\tstrings = 'strings',\n\tgetYearObject = 'getYearObject',\n\tmap = 'map',\n\tgetDay = 'getDay',\n\tgetMonth = 'getMonth',\n\tgetFullYear = 'getFullYear',\n\tisLeapYear = 'isLeapYear',\n\tlength = 'length',\n\tnext = 'next',\n\tprev = 'prev',\n\tmonths = c.months,\n\tTISHREI = months.TISHREI,\n\tNISAN = months.NISAN,\n\tHebcalProto = Hebcal.prototype,\n\tMonthProto = Month.prototype,\n\tGregYearProto = GregYear.prototype,\n\tGregMonthProto = GregMonth.prototype,\n\tHDateProto = HDate.prototype;\n\nfunction getset(g, s) {\n\treturn {\n\t\tenumerable: true,\n\t\tconfigurable: true,\n\n\t\tget: g,\n\t\tset: s\n\t};\n}\n\nfunction extend(base, into) {\n\tfor (var i in into) {\n\t\tbase[i] = into[i];\n\t}\n\treturn base;\n}\n\n// Main Hebcal function\n\nfunction Hebcal(year, month) {\n\tvar me = this; // whenever this is done, it is for optimizations.\n\tif (!year) {\n\t\tyear = (new HDate())[getFullYear](); // this year;\n\t}\n\tif (typeof year !== 'number') {\n\t\tthrow new TE('year to Hebcal() is not a number');\n\t}\n\tme.year = year;\n\tif (month) {\n\t\tif (typeof month == 'string') {\n\t\t\tmonth = c.monthFromName(month);\n\t\t}\n\t\tif (typeof month == 'number') {\n\t\t\tmonth = [month];\n\t\t}\n\n\t\tif (Array.isArray(month)) {\n\t\t\tme.months = month[map](function(i){\n\t\t\t\tvar m = new Month(i, year);\n\t\t\t\tdefProp(m, '__year', {\n\t\t\t\t\tconfigurable: true,\n\t\t\t\t\twritable: true,\n\t\t\t\t\tvalue: me\n\t\t\t\t});\n\t\t\t\treturn m;\n\t\t\t});\n\n\t\t\tme.holidays = holidays.year(year);\n\t\t} else {\n\t\t\tthrow new TE('month to Hebcal is not a valid type');\n\t\t}\n\t} else {\n\t\treturn new Hebcal(year, c.range(1, c.MONTH_CNT(year)));\n\t}\n\n\tme[length] = c.daysInYear(year);\n\n\tdefProp(me, 'il', getset(function() {\n\t\treturn me[getMonth](1).il;\n\t}, function(il) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.il = il;\n\t\t});\n\t}));\n\n\tdefProp(me, 'lat', getset(function() {\n\t\treturn me[getMonth](1).lat;\n\t}, function(lat) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.lat = lat;\n\t\t});\n\t}));\n\tdefProp(me, 'long', getset(function() {\n\t\treturn me[getMonth](1).long;\n\t}, function(lon) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.long = lon;\n\t\t});\n\t}));\n}\n\nHebcalProto[isLeapYear] = HDateProto[isLeapYear];\n\nHebcalProto.setCity = function(city) {\n\tthis.months.forEach(function(m){\n\t\tm.setCity(city);\n\t});\n\treturn this;\n};\n\nHebcalProto.setLocation = function(lat, lon) {\n\tthis.months.forEach(function(m){\n\t\tm.setLocation(lat, lon);\n\t});\n\treturn this;\n};\n\nHebcalProto[next] = function() {\n\treturn new Hebcal(this.year + 1);\n};\n\nHebcalProto[prev] = function() {\n\treturn new Hebcal(this.year - 1);\n};\n\nHebcalProto[getMonth] = function(month) {\n\tvar months = this.months;\n\tmonth = c.monthNum(month);\n\tif (month > this.months[length]) {\n\t\treturn this[next]()[getMonth](month - months[length]);\n\t}\n\treturn months[month > 0 ? month - 1 : months[length] + month];\n};\n\nHebcalProto[getDay] = function(day) {\n\tvar me = this;\n\tif (day > me[length]) {\n\t\treturn null;\n\t}\n\tif (day < 0) {\n\t\treturn me[getDay](me[length] - day);\n\t}\n\tvar rosh = me[find](29, months.ELUL)[0].abs() + 1 - me[find](1, NISAN)[0].abs(); // number of days between Nisan and Tishrei\n\tif (day <= rosh) {\n\t\treturn me[getMonth](NISAN)[getDay](day);\n\t}\n\treturn me[getMonth](TISHREI)[getDay](day - rosh);\n};\n\nHebcalProto.days = function() {\n\treturn [].concat.apply([], this.months[map](function(m){\n\t\treturn m.days;\n\t}));\n};\n\nHebcalProto[map] = function() {\n\treturn [][map].apply(this.days(), arguments);\n};\n\nHebcalProto.filter = function() {\n\treturn [].filter.apply(this.days(), arguments);\n};\n\nHebcalProto.addHoliday = function(holiday) {\n\tif (!(holiday instanceof holidays.Event)) {\n\t\tthrow new TE('non-Event passed to addHoliday()');\n\t}\n\tthis.holidays.add(holiday);\n\treturn this;\n};\n\nHebcalProto.findParsha = function(parsha, o) {\n\tvar langs = o ? [o] : ['s','a','h']; // FIXME: abstract this away somewhere\n\tvar days = this.filter(function(d){\n\t\treturn Math.max.apply(null, langs.map(function(l){\n\t\t\treturn d.getSedra(l).indexOf(parsha) + 1;\n\t\t}));\n\t});\n\treturn days[days[length] - 1];\n};\nHebcalProto.findSedra = HebcalProto.findParsha;\n\nHebcalProto[find] = function find_f(day, month) {\n\tvar me = this;\n\tif (arguments[length] === 1) {\n\t\tif (typeof day == 'string') {\n\t\t\treturn find_f[strings].call(me, day);\n\t\t} else if (Array.isArray(day)) {\n\t\t\treturn [].concat.apply([], day[map](function(d){\n\t\t\t\treturn me[find][Array.isArray(d) ? 'apply' : 'call'](me, d);\n\t\t\t}));\n\t\t} else if (day instanceof HDate) {\n\t\t\treturn me[find](day.getDate(), day[getMonth]());\n\t\t} else if (day instanceof Date) {\n\t\t\treturn me[find](new HDate(day));\n\t\t}\n\t} else if (arguments[length] == 2) {\n\t\tif (month instanceof Month) {\n\t\t\treturn month[find](day);\n\t\t} else if (Array.isArray(month)) {\n\t\t\treturn [].concat.apply([], month[map](function(m){\n\t\t\t\treturn me[find](day, m);\n\t\t\t}));\n\t\t} else if (typeof month == 'string') {\n\t\t\treturn me[find](day, c.monthNum(month));\n\t\t} else if (typeof month == 'number') {\n\t\t\treturn me[find](day, me[getMonth](month));\n\t\t}\n\t}\n\treturn [];\n};\nHebcalProto[find][strings] = function strings(str) {\n\tvar split = str.split(/\\s+/), func = strings[str.replace(/\\s/g, '_').toLowerCase()];\n\tif (!split[length]) {\n\t\treturn [];\n\t} else if (func) {\n\t\treturn func.call(this);\n\t}\n\ttry {\n\t\treturn this[find](new HDate(str));\n\t} catch(e) {\n\t\treturn split[length] - 1 ? this[find].apply(this, split) : [];\n\t}\n};\nHebcalProto[find][strings].rosh_chodesh = function() {\n\treturn this[find]('Rosh Chodesh', c.range(1, this.months[length]));\n};\nHebcalProto[find][strings].holidays = function() {\n\treturn [].concat.apply([], this.holidays[map](function(h){\n\t\treturn this[find](h.date);\n\t}, this));\n};\nHebcalProto[find][strings].omer = function() {\n\treturn this[find](c.range(15+1, 15+49), NISAN);\n};\nHebcalProto[find][strings].today = function() {\n\treturn this[find](new HDate());\n};\nHebcalProto[find][strings].yesterday = function() {\n\treturn [this[find]('today')[0][prev]()];\n};\nHebcalProto[find][strings].tomorrow = function() {\n\treturn [this[find]('today')[0][next]()];\n};\nHebcalProto[find][strings].pesach = function() {\n\treturn this[find](c.range(15, 15+8-this.il), NISAN);\n};\nHebcalProto[find][strings].sukkot = function() {\n\treturn this[find](c.range(15, 15+9-this.il), TISHREI);\n};\nHebcalProto[find][strings].succot = HebcalProto[find][strings].succos = HebcalProto[find][strings].sukkos = HebcalProto[find][strings].sukkot;\nHebcalProto[find][strings].shavuot = function() {\n\treturn this[find](c.range(6, 7-this.il), months.SIVAN);\n};\nHebcalProto[find][strings].shavuos = HebcalProto[find][strings].shavuot;\nHebcalProto[find][strings].rosh_hashana = function() {\n\treturn this[find](c.range(1, 2), TISHREI);\n};\nHebcalProto[find][strings].rosh_hashanah = HebcalProto[find][strings].rosh_hashana;\n\n// Hebcal properties\n\nHebcal.addZeman = HDate.addZeman;\n\nHebcal.cities = cities;\n\nHebcal.range = c.range;\n\nHebcal.gematriya = gematriya;\n\nHebcal.holidays = c.filter(holidays, ['masks', 'Event']); // not year(), atzmaut()\n\nHebcal.parshiot = Sedra.parshiot;\n\nHebcal.LANGUAGE = c.LANG;\n\nHebcal[map] = c[map];\n\nHebcal.filter = c.filter;\n\ndefProp(Hebcal, 'defaultLocation', getset(function(){\n\treturn HDate.defaultLocation;\n}, function(loc){\n\tHebcal.events.emit('locationChange', HDate.defaultLocation);\n\tHDate.defaultLocation = loc;\n}));\ndefProp(Hebcal, 'defaultCity', getset(function(){\n\treturn HDate.defaultCity;\n}, function(city){\n\tHebcal.defaultLocation = cities.getCity(city).slice(0, 2); // call the event\n}));\n\ndefProp(Hebcal, 'candleLighting', getset(function(){\n\treturn holidays.Event.candleLighting;\n}, function(mins){\n\tholidays.Event.candleLighting = mins;\n}));\n\ndefProp(Hebcal, 'havdalah', getset(function(){\n\treturn holidays.Event.havdalah;\n}, function(mins){\n\tholidays.Event.havdalah = mins;\n}));\n\n// Months\n\nfunction Month(month, year) {\n\tvar me = this;\n\tmonth = c.monthNum(month);\n\tif (typeof month != 'number') {\n\t\tthrow new TE('month to Hebcal.Month is not a valid type');\n\t}\n\tif (typeof year != 'number') {\n\t\tthrow new TE('year to Hebcal.Month is not a number');\n\t}\n\tme.month = month;\n\tme.year = year;\n\n\tme.days = c.range(1, c.daysInMonth(month, year))[map](function(i){\n\t\tvar d = new HDate(i, month, year);\n\t\tdefProp(d, '__month', {\n\t\t\tconfigurable: true,\n\t\t\twritable: true,\n\t\t\tvalue: me\n\t\t});\n\t\treturn d;\n\t});\n\n\tme[length] = me.days[length];\n\n\tme.holidays = c.filter(holidays.year(year), function(h){\n\t\treturn h[0].date[getMonth]() == month;\n\t});\n\n\tdefProp(me, 'il', getset(function(){\n\t\treturn me[getDay](1).il;\n\t}, function(il){\n\t\tme.days.forEach(function(d){\n\t\t\td.il = il;\n\t\t});\n\t}));\n\n\tdefProp(me, 'lat', getset(function(){\n\t\treturn me[getDay](1).lat;\n\t}, function(lat){\n\t\tme.days.forEach(function(d){\n\t\t\td.lat = lat;\n\t\t});\n\t}));\n\tdefProp(me, 'long', getset(function(){\n\t\treturn me[getDay](1).long;\n\t}, function(lon){\n\t\tme.days.forEach(function(d){\n\t\t\td.long = lon;\n\t\t});\n\t}));\n\n\treturn me;\n};\n\nHebcal.Month = Month;\n\nMonthProto[isLeapYear] = HDateProto[isLeapYear];\n\nMonthProto[prev] = function() {\n\tvar me = this, year = me[getYearObject]();\n\tif (me.month === 1) { // Nisan\n\t\treturn year[getMonth](-1);\n\t} else if (me.month === TISHREI) {\n\t\treturn year[prev]()[getMonth](months.ELUL);\n\t} else {\n\t\treturn year[getMonth](me.month - 1);\n\t}\n};\n\nMonthProto[next] = function() {\n\tvar me = this, year = me[getYearObject]();\n\tif (me.month === c.MONTH_CNT(me.year)) { // Adar\n\t\treturn year[getMonth](1);\n\t} else if (me.month === months.ELUL) {\n\t\treturn year[next]()[getMonth](TISHREI);\n\t} else {\n\t\treturn year[getMonth](me.month + 1);\n\t}\n};\n\nMonthProto[getDay] = function(day) {\n\tvar days = this.days;\n\tday = c.dayYearNum(day);\n\tif (day > days[length]) {\n\t\treturn this[next]()[getDay](day - days[length]);\n\t}\n\treturn days[day > 0 ? day - 1 : days[length] + day];\n};\n\nMonthProto[getYearObject] = function() {\n\treturn this.__year || new Hebcal(this.year);\n};\n\nMonthProto.getName = function(o) {\n\treturn c.LANG(c.monthNames[+this[isLeapYear]()][this.month], o);\n};\n\nMonthProto.rosh_chodesh = function() {\n\tvar prevMonth = this[prev]();\n\treturn prevMonth[length] == 30 ? [prevMonth[getDay](-1), this[getDay](1)] : [this[getDay](1)];\n};\n\nMonthProto.setCity = function(city) {\n\tthis.days.forEach(function(d){\n\t\td.setCity(city);\n\t});\n\treturn this;\n};\n\nMonthProto.setLocation = function(lat, lon) {\n\tthis.days.forEach(function(d){\n\t\td.setLocation(lat, lon);\n\t});\n\treturn this;\n};\n\nMonthProto[map] = function() {\n\treturn [][map].apply(this.days, arguments);\n};\n\nMonthProto.molad = function() {\n\tvar retMolad = {}, year, m_elapsed, p_elapsed, h_elapsed, parts, m_adj, toInt = parseInt;\n\n m_adj = this.month - 7;\n\tyear = this.year - 1;\n if (m_adj < 0) {\n\t\tm_adj += c.MONTH_CNT(year + 1);\n\t}\n\n m_elapsed = toInt(m_adj +\n 235 * (year / 19)/* +\n 12 * (year % 19) +\n (((year % 19) * 7) + 1) / 19*/);\n\n p_elapsed = toInt(204 + (793 * (m_elapsed % 1080)));\n\n h_elapsed = toInt(5 + (12 * m_elapsed) +\n 793 * (m_elapsed / 1080)/* +\n p_elapsed / 1080*/ -\n 6);\n\n parts = toInt((p_elapsed % 1080) + 1080 * (h_elapsed % 24));\n\n retMolad.doy = new HDate(toInt(1 + 29 * m_elapsed + h_elapsed / 24)).getDay();\n retMolad.hour = Math.round(h_elapsed % 24);\n var chalakim = toInt(parts % 1080);\n retMolad.minutes = toInt(chalakim / 18);\n retMolad.chalakim = chalakim % 18;\n var day = this.prev().find.strings.shabbat_mevarchim._calc.call(this)[0].onOrAfter(retMolad.doy).greg();\n day.setHours(retMolad.hour);\n day.setMinutes(retMolad.minutes);\n day.setSeconds(retMolad.chalakim * 3.33);\n retMolad.day = day;\n\n return retMolad;\n};\n\nMonthProto[find] = function find_f(day) {\n\tvar me = this;\n\tif (typeof day == 'number') {\n\t\treturn [me[getDay](day)];\n\t} else if (typeof day == 'string') {\n\t\treturn find_f[strings].call(me, day);\n\t} else if (Array.isArray(day)) {\n\t\treturn [].concat.apply([], day[map](function(d){\n\t\t\treturn me[find](d);\n\t\t}));\n\t} else if (day instanceof HDate && day[getFullYear]() == me.year && day[getMonth]() == me.month) {\n\t\treturn me[find](day.getDate());\n\t} else if (day instanceof Date) {\n\t\treturn me[find](new HDate(day));\n\t}\n\treturn [];\n};\nMonthProto[find][strings] = function strings(str) {\n\tvar func = strings[str.replace(/\\s/g, '_').toLowerCase()];\n\tif (func) {\n\t\treturn func.call(this);\n\t}\n\ttry {\n\t\treturn this[find](new HDate(str));\n\t} catch(e) {\n\t\tvar num = c.dayYearNum(str);\n\t\treturn num ? this[find](num) : [];\n\t}\n};\nMonthProto[find][strings].rosh_chodesh = function() {\n\treturn this.rosh_chodesh();\n};\nMonthProto[find][strings].shabbat_mevarchim = function sm() {\n\treturn this.month === months.ELUL ? [] : // No birchat hachodesh in Elul\n\t\tsm._calc.call(this);\n};\nMonthProto[find][strings].shabbat_mevarchim._calc = function() {\n\treturn this[find](this[getDay](29).onOrBefore(c.days.SAT));\n};\nMonthProto[find][strings].shabbos_mevarchim = MonthProto[find][strings].shabbos_mevorchim = MonthProto[find][strings].shabbat_mevarchim;\n\n// HDate days\n\nHebcal.HDate = HDate;\n\nHDateProto.getMonthObject = function() {\n\treturn this.__month || new Month(this[getMonth](), this[getFullYear]());\n};\n\nHDateProto[getYearObject] = function() {\n\treturn this.getMonthObject()[getYearObject]();\n};\n\n(function(){\n\tvar orig = {}; // slightly less overhead when using unaffiliated HDate()s\n\t[prev, next].forEach(function(func){\n\t\torig[func] = HDateProto[func];\n\t\tHDateProto[func] = function() {\n\t\t\tvar day = orig[func].call(this);\n\t\t\tif (!this.__month) {\n\t\t\t\treturn day;\n\t\t\t}\n\t\t\treturn this[getYearObject]()[find](day)[0];\n\t\t};\n\t});\n})();\n\nHDateProto.getSedra = (function(){\n\tvar __cache = {};\n\n\treturn function(o) {\n\t\tvar sedraYear = __cache[this[getFullYear]()];\n\t\tif (!sedraYear || (sedraYear.il != this.il)) {\n\t\t\tsedraYear = __cache[this[getFullYear]()] = new Sedra(this[getFullYear](), this.il);\n\t\t}\n\t\treturn sedraYear.get(this)[map](function(p){\n\t\t\treturn c.LANG(p, o);\n\t\t});\n\t}\n})();\nHDateProto.getParsha = HDateProto.getSedra;\n\nHDateProto.holidays = function(all) {\n\tvar me = this, days = me[getYearObject]().holidays[me];\n\treturn days ? days.filter(function(h){\n\t\treturn all ? true : !h.routine() && h.is(me);\n\t})[map](function(h){\n\t\th.date.setLocation(me);\n\t\treturn h;\n\t}) : [];\n};\n\n['candleLighting', 'havdalah'].forEach(function(prop){\n\tHDateProto[prop] = function(){\n\t\tvar me = this, hd = me.holidays(true).filter(function(h){\n\t\t\treturn h.is(me);\n\t\t});\n\t\tif (hd.length) {\n\t\t\thd = c.filter(hd.map(function(h){\n\t\t\t\treturn h[prop]();\n\t\t\t}), true);\n\t\t}\n\t\treturn hd.length ? new Date(Math.max.apply(null, hd)) : null;\n\t};\n});\n\nHDateProto.omer = function() {\n\tvar me = this, greg = me.greg().getTime(), year = me[getFullYear]();\n\tif (greg > new HDate(15, NISAN, year).greg().getTime() &&\n\t\tgreg < new HDate( 6, months.SIVAN, year).greg().getTime()) {\n\t\treturn me.abs() - new HDate(16, NISAN, year).abs() + 1;\n\t}\n\treturn 0;\n};\n\nHDateProto.dafyomi = function(o) {\n\treturn dafyomi.dafname(dafyomi.dafyomi(this.greg()), o);\n};\n\nHDateProto.tachanun = (function() {\n\tvar NONE = tachanun.NONE = 0,\n\t\tMINCHA = tachanun.MINCHA = 1,\n\t\tSHACHARIT = tachanun.SHACHARIT = 2,\n\t\tALL_CONGS = tachanun.ALL_CONGS = 4;\n\n\tvar __cache = {\n\t\tall: {},\n\t\tsome: {},\n\t\tyes_prev: {},\n\t\til: {}\n\t};\n\n\tfunction tachanun() {\n\t\tvar checkNext = !arguments[0], me = this;\n\n\t\tvar year = me[getYearObject](), y = year.year;\n\n\t\tfunction mapAbs(arr) {\n\t\t\treturn arr[map](function(d){\n\t\t\t\treturn d.abs();\n\t\t\t});\n\t\t}\n\n\t\tvar all, some, yes_prev;\n\t\tif (__cache.il[y] === me.il) {\n\t\t\tall = __cache.all[y];\n\t\t\tsome = __cache.some[y];\n\t\t\tyes_prev = __cache.yes_prev[y];\n\t\t} else {\n\t\t\tall = __cache.all[y] = mapAbs(year[find]('Rosh Chodesh').concat(\n\t\t\t\tyear[find](c.range(1, c.daysInMonth(NISAN, y)), NISAN), // all of Nisan\n\t\t\t\tyear[find](15 + 33, NISAN), // Lag Baomer\n\t\t\t\tyear[find](c.range(1, 8 - me.il), months.SIVAN), // Rosh Chodesh Sivan thru Isru Chag\n\t\t\t\tyear[find]([9, 15], months.AV), // Tisha B'av and Tu B'av\n\t\t\t\tyear[find](-1, months.ELUL), // Erev Rosh Hashanah\n\t\t\t\tyear[find]([1, 2], TISHREI), // Rosh Hashanah\n\t\t\t\tyear[find](c.range(9, 24 - me.il), TISHREI), // Erev Yom Kippur thru Isru Chag\n\t\t\t\tyear[find](c.range(25, 33), months.KISLEV), // Chanukah\n\t\t\t\tyear[find](15, months.SHVAT), // Tu B'shvat\n\t\t\t\tyear[find]([14, 15], year[isLeapYear]() ? [months.ADAR_I, months.ADAR_II] : months.ADAR_I) // Purim/Shushan Purim + Katan\n\t\t\t));\n\t\t\tsome = __cache.some[y] = mapAbs([].concat( // Don't care if it overlaps days in all, because all takes precedence\n\t\t\t\tyear[find](c.range(1, 13), months.SIVAN), // Until 14 Sivan\n\t\t\t\tyear[find](c.range(20, 31), TISHREI), // Until after Rosh Chodesh Cheshvan\n\t\t\t\tyear[find](14, months.IYYAR), // Pesach Sheini\n\t\t\t\tholidays.atzmaut(y)[1].date || [], // Yom HaAtzma'ut, which changes based on day of week\n\t\t\t\ty >= 5727 ? year[find](29, months.IYYAR) : [] // Yom Yerushalayim\n\t\t\t));\n\t\t\tyes_prev = __cache.yes_prev[y] = mapAbs([].concat( // tachanun is said on the previous day at mincha\n\t\t\t\tyear[find](-1, months.ELUL), // Erev Rosh Hashanah\n\t\t\t\tyear[find](9, months.TISHREI), // Erev Yom Kippur\n\t\t\t\tyear[find](14, months.IYYAR) // Pesach Sheini\n\t\t\t));\n\t\t\t__cache.il[y] = me.il;\n\t\t}\n\n\t\tall = all.indexOf(me.abs()) > -1;\n\t\tsome = some.indexOf(me.abs()) > -1;\n\t\tyes_prev = yes_prev.indexOf(me.abs()+1) > -1;\n\n\t\tif (all) {\n\t\t\treturn NONE;\n\t\t}\n\t\tvar ret = (!some && ALL_CONGS) | (me[getDay]() != 6 && SHACHARIT);\n\t\tif (checkNext && !yes_prev) {\n\t\t\tret |= ((me[next]().tachanun(true) & SHACHARIT) && MINCHA);\n\t\t} else {\n\t\t\tret |= (me[getDay]() != 5 && MINCHA);\n\t\t}\n\t\treturn ret == ALL_CONGS ? NONE : ret;\n\t}\n\treturn tachanun;\n})();\n\nHDateProto.hallel = (function() {\n\tvar NONE = hallel.NONE = 0,\n\t\tHALF = hallel.HALF = 1,\n\t\tWHOLE = hallel.WHOLE = 2;\n\n\tvar __cache = {\n\t\twhole: {},\n\t\thalf: {},\n\t\til: {}\n\t};\n\n\tfunction hallel() {\n\t\tvar me = this, year = me[getYearObject](), y = year.year;\n\n\t\tvar whole = __cache.il[y] == me.il && __cache.whole[y] || (__cache.whole[y] = [].concat(\n\t\t\tyear[find](c.range(25, 33), months.KISLEV), // Chanukah\n\t\t\tyear[find]([15, me.il ? null : 16], NISAN), // First day(s) of Pesach\n\t\t\tyear[find]('Shavuot'),\n\t\t\tyear[find]('Sukkot'),\n\t\t\tholidays.atzmaut(y)[1].date || [], // Yom HaAtzma'ut, which changes based on day of week\n\t\t\ty >= 5727 ? year[find](29, months.IYYAR) : [] // Yom Yerushalayim\n\t\t)[map](function(d){\n\t\t\treturn d.abs();\n\t\t}));\n\t\tvar half = __cache.il[y] == me.il && __cache.half[y] || (__cache.half[y] = [].concat(\n\t\t\tyear[find]('Rosh Chodesh').filter(function(rc){return rc[getMonth]() != TISHREI}), // Rosh Chodesh, but not Rosh Hashanah\n\t\t\tyear[find](c.range(17 - me.il, 23 - me.il), NISAN) // Last six days of Pesach\n\t\t)[map](function(d){\n\t\t\treturn d.abs();\n\t\t}));\n\t\t__cache.il[y] = me.il;\n\n\t\treturn (whole.indexOf(me.abs()) > -1 && WHOLE) || (half.indexOf(me.abs()) > -1 && HALF) || NONE;\n\t}\n\treturn hallel;\n})();\n\n// Events\n\n(function(events){\n\tvar refreshInterval, refresh, today = new HDate();\n\n\tdefProp(events, 'refreshInterval', getset(function(){\n\t\treturn refreshInterval;\n\t}, function(ms){\n\t\tif (refresh) {\n\t\t\trefresh = clearInterval(refresh);\n\t\t}\n\t\trefreshInterval = ms;\n\t\tif (ms) {\n\t\t\trefresh = setInterval(checkTimes, ms);\n\t\t\tif (refresh.unref) {\n\t\t\t\trefresh.unref(); // don't keep the process open\n\t\t\t}\n\t\t}\n\t}));\n\n\tevents.beforeZeman = 1000 * 60 * 10; // 10 minutes\n\n\tfunction checkTimes() {\n\t\tvar now = new HDate();\n\n\t\tif (!today.isSameDate(now)) {\n\t\t\tevents.emit('dayChange');\n\t\t\ttoday = now;\n\t\t}\n\n\t\tfunction close(obj, compare) {\n\t\t\treturn c.filter(c[map](obj, function(time){\n\t\t\t\treturn time - nowGreg;\n\t\t\t}), function(time) {\n\t\t\t\treturn time > 0 && time - compare < 0;\n\t\t\t});\n\t\t}\n\n\t\tvar nowGreg = new Date(),\n\t\t\talmostTime = close(now.getZemanim(), events.beforeZeman),\n\t\t\tcustomTimes = close(events.customs, events.refreshInterval);\n\n\t\tfor (var zeman in almostTime) {\n\t\t\tevents.emit('almostZeman', zeman, almostTime[zeman]);\n\t\t\tif (almostTime[zeman] < events.refreshInterval) {\n\t\t\t\tevents.emit('atZeman', zeman);\n\t\t\t}\n\t\t}\n\t\tfor (var custom in customTimes) {\n\t\t\tevents.emit('custom', custom);\n\t\t}\n\t}\n\tcheckTimes();\n\n\tevents.refreshInterval = 1000 * 60 * 5; // 5 minutes\n\t// set the interval\n\n\tevents.customs = {};\n})(Hebcal.events = new EventEmitter());\n\n// Gregorian years\n\nfunction GregYear(year, month) {\n\tvar me = this;\n\tif (!year) {\n\t\tyear = (new Date)[getFullYear]();\n\t}\n\tif (typeof year === 'string') {\n\t\tvar d = new Date(year);\n\t\tmonth = year.indexOf(' ') + 1 || year.indexOf('-') + 1 || year.indexOf('/') + 1 ? d[getMonth]() + 1 : c.range(1, 12);\n\t\t// Check if a month was passed in the string. Can't just check for default January, because a real January might have been passed.\n\t\treturn new GregYear(d[getFullYear](), month);\n\t}\n\tif (typeof year !== 'number') {\n\t\tthrow new TE('year to Hebcal.GregYear() is not a number');\n\t}\n\tme.year = year;\n\n\tif (month) {\n\t\tif (typeof month === 'string') { // month name\n\t\t\tmonth = greg.lookupMonthName(month);\n\t\t}\n\t\tif (typeof month === 'number') {\n\t\t\tmonth = [month];\n\t\t}\n\n\t\tif (Array.isArray(month)) {\n\t\t\tme.months = month[map](function(i){\n\t\t\t\tvar m = new GregMonth(i, year);\n\t\t\t\tdefProp(m, '__year', {\n\t\t\t\t\tconfigurable: true,\n\t\t\t\t\twritable: true,\n\t\t\t\t\tvalue: me\n\t\t\t\t});\n\t\t\t\treturn m;\n\t\t\t});\n\t\t} else {\n\t\t\tthrow new TE('month to Hebcal.GregYear() is not a valid type');\n\t\t}\n\t} else {\n\t\treturn new GregYear(year, c.range(1, 12));\n\t}\n\n\tme.hebyears = [].concat.apply([], me.months[map](function(m){\n\t\treturn m.hebmonths[map](function(hm){\n\t\t\treturn hm.year;\n\t\t});\n\t})).filter(function(val, i, arr){\n\t\treturn arr.indexOf(val) === i; // keep unique values only\n\t});\n\n\tme.holidays = c.filter(holidays.year(me.hebyears[0]), function(h){\n\t\treturn h[0].date.greg()[getFullYear]() === year && me.months.filter(function(m){ // don't keep ones that are out of bounds\n\t\t\treturn m.month === h[0].date.greg()[getMonth]() + 1;\n\t\t})[length];\n\t});\n\tif (me.hebyears[1]) {\n\t\textend(me.holidays, c.filter(holidays.year(me.hebyears[1]), function(h){\n\t\t\treturn h[0].date.greg()[getFullYear]() === year && me.months.filter(function(m){ // don't keep ones that are out of bounds\n\t\t\t\treturn m.month === h[0].date.greg()[getMonth]() + 1;\n\t\t\t})[length];\n\t\t}));\n\t}\n\n\tme[length] = 365 + greg.LEAP(year);\n\n\tdefProp(me, 'il', getset(function() {\n\t\treturn me[getMonth](1).il;\n\t}, function(il) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.il = il;\n\t\t});\n\t}));\n\n\tdefProp(me, 'lat', getset(function() {\n\t\treturn me[getMonth](1).lat;\n\t}, function(lat) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.lat = lat;\n\t\t});\n\t}));\n\tdefProp(me, 'long', getset(function() {\n\t\treturn me[getMonth](1).long;\n\t}, function(lon) {\n\t\tme.months.forEach(function(m){\n\t\t\tm.long = lon;\n\t\t});\n\t}));\n\n\treturn me;\n};\n\nHebcal.GregYear = GregYear;\n\nGregYearProto[isLeapYear] = function() {\n\treturn this[length] == 366;\n};\n\nGregYearProto.setCity = HebcalProto.setCity;\nGregYearProto.setLocation = HebcalProto.setLocation;\n\nGregYearProto[next] = function() {\n\treturn new GregYear(this.year + 1);\n};\n\nGregYearProto[prev] = function() {\n\treturn new GregYear(this.year - 1);\n};\n\nGregYearProto[getMonth] = function(month) {\n\tvar months = this.months\n\tmonth = typeof month == 'number' ? month : greg.lookupMonthNum(month);\n\tif (month > months[length]) {\n\t\treturn this[next]()[getMonth](month - months[length]);\n\t}\n\treturn months[month > 0 ? month - 1 : months[length] + month];\n};\n\nextend(GregYearProto, {\n\tdays: HebcalProto.days,\n\tmap: HebcalProto[map],\n\tfilter: HebcalProto.filter,\n\taddHoliday: HebcalProto.addHoliday,\n});\n\n/*GregYearProto.days = HebcalProto.days;\nGregYearProto[map] = HebcalProto[map];\nGregYearProto.filter = HebcalProto.filter;\n\nGregYearProto.addHoliday = HebcalProto.addHoliday;*/\n\nfunction GregMonth(month, year) {\n\tvar me = this;\n\tif (typeof month == 'string') {\n\t\tmonth = greg.lookupMonthNum(month);\n\t}\n\tif (typeof month != 'number') {\n\t\tthrow new TE('month to Hebcal.GregMonth is not a valid type');\n\t}\n\tif (typeof year != 'number') {\n\t\tthrow new TE('year to Hebcal.GregMonth is not a number');\n\t}\n\n\tme.year = year;\n\tme.month = month;\n\n\tme.days = c.range(1, greg.daysInMonth(month, year))[map](function(i){\n\t\tvar d = new HDate(new Date(year, month - 1, i));\n\t\tdefProp(d, '__gregmonth', {\n\t\t\tconfigurable: true,\n\t\t\twritable: true,\n\t\t\tvalue: me\n\t\t});\n\t\treturn d;\n\t});\n\n\tme[length] = me.days[length];\n\n\tme.hebmonths = [\n\t\t{month: me[getDay]( 1)[getMonth](), year: me[getDay]( 1)[getFullYear]()},\n\t\t{month: me[getDay](-1)[getMonth](), year: me[getDay](-1)[getFullYear]()}\n\t].filter(function(val, i, arr){\n\t\treturn i === 0 || val.month != arr[0].month;\n\t});\n\n\tdefProp(me, 'il', getset(function(){\n\t\treturn me[getDay](1).il;\n\t}, function(il){\n\t\tme.days.forEach(function(d){\n\t\t\td.il = il;\n\t\t});\n\t}));\n\n\tdefProp(me, 'lat', getset(function(){\n\t\treturn me[getDay](1).lat;\n\t}, function(lat){\n\t\tme.days.forEach(function(d){\n\t\t\td.lat = lat;\n\t\t});\n\t}));\n\tdefProp(me, 'long', getset(function(){\n\t\treturn me[getDay](1).long;\n\t}, function(lon){\n\t\tme.days.forEach(function(d){\n\t\t\td.long = lon;\n\t\t});\n\t}));\n\n\treturn me;\n};\n\nHebcal.GregMonth = GregMonth;\n\nGregMonthProto[isLeapYear] = function() {\n\treturn greg.LEAP(this.year);\n};\n\nGregMonthProto[prev] = function() {\n\tif (this.month === 1) {\n\t\treturn this[getYearObject]()[prev]()[getMonth](-1);\n\t} else {\n\t\treturn this[getYearObject]()[getMonth](this.month - 1);\n\t}\n};\n\nGregMonthProto[next] = function() {\n\treturn this[getYearObject]()[getMonth](this.month + 1);\n};\n\nGregMonthProto[getDay] = function(day) {\n\tif (day > this.days[length]) {\n\t\treturn this[next]()[getDay](day - this.days[length]);\n\t}\n\treturn this.days[day > 0 ? day - 1 : this.days[length] + day];\n};\n\nGregMonthProto[getYearObject] = function() {\n\treturn this.__year || new GregYear(this.year);\n};\n\nGregMonthProto.getName = function() {\n\treturn greg.monthNames[this.month];\n};\n\nGregMonthProto.setCity = MonthProto.setCity;\nGregMonthProto.setLocation = MonthProto.setLocation;\n\nGregMonthProto[map] = MonthProto[map];\n\nHDateProto.getGregMonthObject = function() {\n\treturn this.__gregmonth || new GregMonth(this.greg()[getMonth]() + 1, this.greg()[getFullYear]());\n};\n\nHDateProto.getGregYearObject = function() {\n\treturn this.getGregMonthObject()[getYearObject]();\n};\n\nmodule.exports = Hebcal;\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\nvar c = require('./common'),\n\tHDate = require('./hdate'),\n\tgematriya = require('gematriya');\n\nvar __cache = {};\n\n// for byte optimizations\n\nvar dayOnOrBefore = c.dayOnOrBefore,\n\tmonths = c.months,\n\tdays = c.days,\n\tTISHREI = months.TISHREI,\n\tKISLEV = months.KISLEV,\n\tNISAN = months.NISAN,\n\tSAT = days.SAT,\n\tgetDay = 'getDay',\n\tabs = 'abs',\n\tShabbat = 'Shabbat',\n\tShabbos = 'Shabbos';\n\nfunction Chanukah(day) {\n\treturn ['Chanukah: Candle ' + day, 0, 'חנוכה: נר ' + gematriya(day)];\n}\n\nfunction CHM(desc) {\n\treturn [desc[0] + ' (CH\"M)', desc[1] ? desc[1] + ' (CH\"M)' : desc[1], desc[2] ? desc[2] + ' )חה\"ם(' : desc[2]];\n}\n\nfunction Sukkot(day) {\n\treturn ['Sukkot: ' + day, 'Succos: ' + day, 'סוכות יום ' + gematriya(day)];\n}\n\nfunction Pesach(day) {\n\treturn ['Pesach: ' + day, 0, 'פסח יום ' + gematriya(day)];\n}\n\nvar USER_EVENT = 1,\n\tLIGHT_CANDLES = 2,\n\tYOM_TOV_ENDS = 4,\n\tCHUL_ONLY = 8, // chutz l'aretz (Diaspora)\n\tIL_ONLY = 16, // b'aretz (Israel)\n\tLIGHT_CANDLES_TZEIS = 32;\n\nexports.masks = {\n\tUSER_EVENT : USER_EVENT,\n\tLIGHT_CANDLES : LIGHT_CANDLES,\n\tYOM_TOV_ENDS : YOM_TOV_ENDS,\n\tCHUL_ONLY : CHUL_ONLY,\n\tIL_ONLY : IL_ONLY,\n\tLIGHT_CANDLES_TZEIS: LIGHT_CANDLES_TZEIS\n};\n\nfunction Event(date, desc, mask) {\n\tvar me = this;\n\tme.date = new HDate(date);\n\tme.desc = typeof desc != 'object' ? [desc] : desc;\n\n\tme.USER_EVENT = !!( mask & USER_EVENT );\n\tme.LIGHT_CANDLES = !!( mask & LIGHT_CANDLES );\n\tme.YOM_TOV_ENDS = !!( mask & YOM_TOV_ENDS );\n\tme.CHUL_ONLY = !!( mask & CHUL_ONLY );\n\tme.IL_ONLY = !!( mask & IL_ONLY );\n\tme.LIGHT_CANDLES_TZEIS = !!( mask & LIGHT_CANDLES_TZEIS );\n}\n\nEvent.prototype.is = function(date, il) {\n\tdate = new HDate(date), myDate = this.date;\n\tif (arguments.length < 2) {\n\t\t//il = Event.isIL;\n\t\til = date.il;\n\t}\n\tif (date.getDate() != myDate.getDate() || date.getMonth() != myDate.getMonth()) {\n\t\treturn false;\n\t}\n\tif (date.getFullYear() != myDate.getFullYear()) {\n\t\treturn false;\n\t}\n\tif (il && this.CHUL_ONLY || !il && this.IL_ONLY) {\n\t\treturn false;\n\t}\n\treturn true;\n};\n\nEvent.prototype.masks = function() {\n\tvar me = this;\n\treturn (me.USER_EVENT && USER_EVENT) |\n\t\t (me.LIGHT_CANDLES && LIGHT_CANDLES) |\n\t\t (me.YOM_TOV_ENDS && YOM_TOV_ENDS) |\n\t\t (me.CHUL_ONLY && CHUL_ONLY) |\n\t\t (me.IL_ONLY && IL_ONLY) |\n\t\t (me.LIGHT_CANDLES_TZEIS && LIGHT_CANDLES_TZEIS);\n};\n\nEvent.prototype.getDesc = function(o) {\n\treturn c.LANG(this.desc, o);\n};\n\nEvent.prototype.candleLighting = function() {\n\tvar date = this.date;\n\tif (this.LIGHT_CANDLES) {\n\t\treturn new Date(date.sunset() - (Event.candleLighting * 60 * 1000));\n\t} else if (this.LIGHT_CANDLES_TZEIS) {\n\t\treturn date.getZemanim().tzeit;\n\t}\n\treturn null;\n};\n\nEvent.prototype.havdalah = function() {\n\tif (this.YOM_TOV_ENDS) {\n\t\treturn new Date(this.date.sunset().getTime() + (Event.havdalah * 60 * 1000));\n\t}\n\treturn null;\n};\n\nEvent.prototype.routine = (function(){\n\tfunction routine(){\n\t\treturn !!~routine.names.indexOf(this.getDesc('s'));\n\t}\n\troutine.names = [Shabbat, 'Erev ' + Shabbat];\n\treturn routine;\n})();\n\nEvent.isIL = false;\n\nEvent.candleLighting = 18;\n\nEvent.havdalah = 42;\n\nexports.Event = Event;\n\nexports.year = function(year) {\n\tif (__cache[year]) {\n\t\treturn __cache[year];\n\t}\n\n\tvar\tRH = new HDate(1, TISHREI, year),\n\t\tpesach = new HDate(15, NISAN, year),\n\t\ttmpDate;\n\n\tvar h = {};\n\n\tfunction add(ev) {\n\t\tif (Array.isArray(ev)) {\n\t\t\tev.forEach(function(e){\n\t\t\t\tadd(e);\n\t\t\t});\n\t\t} else {\n\t\t\tif (h[ev.date]) {\n\t\t\t\th[ev.date].push(ev);\n\t\t\t} else {\n\t\t\t\th[ev.date] = [ev];\n\t\t\t}\n\t\t}\n\t}\n\n\tObject.defineProperty(h, 'add', {value: add});\n\n\tadd([ // standard holidays that don't shift based on year\n\t\tnew Event(\n\t\t\tRH,\n\t\t\t['Rosh Hashana 1', 0, 'ראש השנה א\\''],\n\t\t\tLIGHT_CANDLES_TZEIS\n\t\t), new Event(\n\t\t\tnew HDate(2, TISHREI, year),\n\t\t\t['Rosh Hashana 2', 0, 'ראש השנה ב\\''],\n\t\t\tYOM_TOV_ENDS\n\t\t), new Event(\n\t\t\tnew HDate(3 + (RH[getDay]() == days.THU), TISHREI, year), // push off to SUN if RH is THU\n\t\t\t['Tzom Gedaliah', 0, 'צום גדליה'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(9, TISHREI, year),\n\t\t\t['Erev Yom Kippur', 0, 'ערב יום כיפור'],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event( // first SAT after RH\n\t\t\tnew HDate(dayOnOrBefore(SAT, 7 + RH[abs]())),\n\t\t\t[Shabbat + ' Shuva', Shabbos + ' Shuvah', 'שבת שובה'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(10, TISHREI, year),\n\t\t\t['Yom Kippur', 0, 'יום כיפור'],\n\t\t\tYOM_TOV_ENDS\n\t\t), new Event(\n\t\t\tnew HDate(14, TISHREI, year),\n\t\t\t['Erev Sukkot', 'Erev Succos', 'ערב סוכות'],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(15, TISHREI, year),\n\t\t\tSukkot(1),\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(15, TISHREI, year),\n\t\t\tSukkot(1),\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, TISHREI, year),\n\t\t\tSukkot(2),\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, TISHREI, year),\n\t\t\tCHM(Sukkot(2)),\n\t\t\tIL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(17, TISHREI, year),\n\t\t\tCHM(Sukkot(3)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(18, TISHREI, year),\n\t\t\tCHM(Sukkot(4)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(19, TISHREI, year),\n\t\t\tCHM(Sukkot(5)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(20, TISHREI, year),\n\t\t\tCHM(Sukkot(6)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(21, TISHREI, year),\n\t\t\t['Sukkot: 7 (Hoshana Raba)', 'Succos: 7 (Hoshana Raba)', 'סוכות יום ז\\' )הושנע רבה('],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(22, TISHREI, year),\n\t\t\t['Shmini Atzeret', 'Shmini Atzeres', 'שמיני עצרת'],\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(22, TISHREI, year),\n\t\t\t['Shmini Atzeret / Simchat Torah', 'Shmini Atzeres / Simchas Torah', 'שמיני עצרת / שמחת תורה'],\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(23, TISHREI, year),\n\t\t\t['Simchat Torah', 'Simchas Torah', 'שמחת תורה'],\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(24, KISLEV, year),\n\t\t\t['Erev Chanukah', 0, 'ערב חנוכה'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(25, KISLEV, year),\n\t\t\tChanukah(1),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(26, KISLEV, year),\n\t\t\tChanukah(2),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(27, KISLEV, year),\n\t\t\tChanukah(3),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(28, KISLEV, year),\n\t\t\tChanukah(4),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(29, KISLEV, year),\n\t\t\tChanukah(5),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(30, KISLEV, year), // yes, i know these are wrong\n\t\t\tChanukah(6),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(31, KISLEV, year), // HDate() corrects the month automatically\n\t\t\tChanukah(7),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(32, KISLEV, year),\n\t\t\tChanukah(8),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(15, months.SHVAT, year),\n\t\t\t[\"Tu B'Shvat\", 0, 'ט\"ו בשבט'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 43)),\n\t\t\t[Shabbat + ' Shekalim', Shabbos + ' Shekalim', 'שבת שקלים'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 30)),\n\t\t\t[Shabbat + ' Zachor', Shabbos + ' Zachor', 'שבת זכור'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(pesach[abs]() - (pesach[getDay]() == days.TUE ? 33 : 31)),\n\t\t\t[\"Ta'anit Esther\", \"Ta'anis Esther\", 'תענית אסתר'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(13, months.ADAR_II, year),\n\t\t\t['Erev Purim', 0, 'ערב פורים'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(14, months.ADAR_II, year),\n\t\t\t['Purim', 0, 'פורים'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(15, months.ADAR_II, year),\n\t\t\t['Shushan Purim', 0, 'שושן פורים'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 14) - 7),\n\t\t\t[Shabbat + ' Parah', Shabbos + ' Parah', 'שבת פרה'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 14)),\n\t\t\t[Shabbat + ' Hachodesh', Shabbos + ' Hachodesh', 'שבת החודש'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, pesach[abs]() - 1)),\n\t\t\t[Shabbat + ' HaGadol', Shabbos + ' HaGadol', 'שבת הגדול'],\n\t\t\t0\n\t\t), new Event(\n\t\t\t// if the fast falls on Shabbat, move to Thursday\n\t\t\tpesach.prev()[getDay]() == SAT ? pesach.onOrBefore(days.THU) : new HDate(14, NISAN, year),\n\t\t\t[\"Ta'anit Bechorot\", \"Ta'anis Bechoros\", 'תענית בכורות'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(14, NISAN, year),\n\t\t\t['Erev Pesach', 0, 'ערב פסח'],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(15, NISAN, year),\n\t\t\tPesach(1),\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(15, NISAN, year),\n\t\t\tPesach(1),\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, NISAN, year),\n\t\t\tPesach(2),\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, NISAN, year),\n\t\t\tCHM(Pesach(2)),\n\t\t\tIL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(16, NISAN, year),\n\t\t\t['Start counting Omer', 0, 'התחלת ספירת העומר'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(17, NISAN, year),\n\t\t\tCHM(Pesach(3)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(18, NISAN, year),\n\t\t\tCHM(Pesach(4)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(19, NISAN, year),\n\t\t\tCHM(Pesach(5)),\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(20, NISAN, year),\n\t\t\tCHM(Pesach(6)),\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(21, NISAN, year),\n\t\t\tPesach(7),\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(21, NISAN, year),\n\t\t\tPesach(7),\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(22, NISAN, year),\n\t\t\tPesach(8),\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(14, months.IYYAR, year),\n\t\t\t['Pesach Sheni', 0, 'פסח שני'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(18, months.IYYAR, year),\n\t\t\t[\"Lag B'Omer\", 0, 'ל\"ג בעומר'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(5, months.SIVAN, year),\n\t\t\t['Erev Shavuot', 'Erev Shavuos', 'ערב שבועות'],\n\t\t\tLIGHT_CANDLES\n\t\t), new Event(\n\t\t\tnew HDate(6, months.SIVAN, year),\n\t\t\t['Shavuot 1', 'Shavuos 1', 'שבועות א\\''],\n\t\t\tLIGHT_CANDLES_TZEIS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(6, months.SIVAN, year),\n\t\t\t['Shavuot', 'Shavuos', 'שבועות'],\n\t\t\tYOM_TOV_ENDS | IL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(7, months.SIVAN, year),\n\t\t\t['Shavuot 2', 'Shavuos 2', 'שבועות ב\\''],\n\t\t\tYOM_TOV_ENDS | CHUL_ONLY\n\t\t), new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, new HDate(1, TISHREI, year + 1)[abs]() - 4)),\n\t\t\t['Leil Selichot', 'Leil Selichos', 'ליל סליחות'],\n\t\t\t0\n\t\t), new Event(\n\t\t\tnew HDate(29, months.ELUL, year),\n\t\t\t['Erev Rosh Hashana', 0, 'ערב ראש השנה'],\n\t\t\tLIGHT_CANDLES\n\t\t)\n\t]);\n\n\ttmpDate = new HDate(10, months.TEVET, year);\n\tif (tmpDate[getDay]() == SAT) {\n\t\ttmpDate = tmpDate.next();\n\t}\n\tadd(new Event(\n\t\ttmpDate,\n\t\t[\"Asara B'Tevet\", 0, 'עשרה בטבת'],\n\t\t0\n\t));\n\n\tif (c.LEAP(year)) {\n\t\tadd(new Event(\n\t\t\tnew HDate(14, months.ADAR_I, year),\n\t\t\t['Purim Katan', 0, 'פורים קטן'],\n\t\t\t0\n\t\t));\n\n\t\tadd(new Event(\n\t\t\tnew HDate(15, months.ADAR_I, year),\n\t\t\t['Shushan Purim Katan', 0, 'שושן פורים קטן'],\n\t\t\t0\n\t\t));\n\t}\n\n\tif (year >= 5711) { // Yom HaShoah first observed in 1951\n\t\ttmpDate = new HDate(27, NISAN, year);\n\t\t/* When the actual date of Yom Hashoah falls on a Friday, the\n\t\t * state of Israel observes Yom Hashoah on the preceding\n\t\t * Thursday. When it falls on a Sunday, Yom Hashoah is observed\n\t\t * on the following Monday.\n\t\t * http://www.ushmm.org/remembrance/dor/calendar/\n\t\t */\n\n\t\tif (tmpDate[getDay]() == days.FRI) {\n\t\t\ttmpDate = tmpDate.prev();\n\t\t} else if (tmpDate[getDay]() == days.SUN) {\n\t\t\ttmpDate = tmpDate.next();\n\t\t}\n\n\t\tadd(new Event(\n\t\t\ttmpDate,\n\t\t\t['Yom HaShoah', 0, 'יום השואה'],\n\t\t\t0\n\t\t));\n\t}\n\n\tadd(atzmaut(year));\n\n\tif (year >= 5727) { // Yom Yerushalayim only celebrated after 1967\n\t\tadd(new Event(\n\t\t\tnew HDate(29, months.IYYAR, year),\n\t\t\t['Yom Yerushalayim', 0, 'יום ירושלים'],\n\t\t\t0\n\t\t));\n\t}\n\n\ttmpDate = new HDate(17, months.TAMUZ, year);\n\tif (tmpDate[getDay]() == SAT) {\n\t\ttmpDate = tmpDate.next();\n\t}\n\tadd(new Event(\n\t\ttmpDate,\n\t\t[\"Shiva-Asar B'Tamuz\", 0, \"צום יז' בתמוז\"],\n\t\t0\n\t));\n\n\ttmpDate = new HDate(9, months.AV, year);\n\tif (tmpDate[getDay]() == SAT) {\n\t\ttmpDate = tmpDate.next();\n\t}\n\n\tadd(new Event(\n\t\tnew HDate(dayOnOrBefore(SAT, tmpDate[abs]())),\n\t\t[Shabbat + ' Chazon', Shabbos + ' Chazon', 'שבת חזון'],\n\t\t0\n\t));\n\n\tadd(new Event(\n\t\ttmpDate.prev(),\n\t\t[\"Erev Tish'a B'Av\", 0, 'ערב תשעה באב'],\n\t\t0\n\t));\n\n\tadd(new Event(\n\t\ttmpDate,\n\t\t[\"Tish'a B'Av\", 0, 'תשעה באב'],\n\t\t0\n\t));\n\n\tadd(new Event(\n\t\tnew HDate(dayOnOrBefore(SAT, tmpDate[abs]() + 7)),\n\t\t[Shabbat + ' Nachamu', Shabbos + ' Nachamu', 'שבת נחמו'],\n\t\t0\n\t));\n\n\tfor (var day = 6; day < c.daysInYear(year); day += 7) {\n\t\tadd(new Event(\n\t\t\tnew HDate(dayOnOrBefore(SAT, new HDate(1, TISHREI, year)[abs]() + day)),\n\t\t\t[Shabbat, Shabbos, 'שבת'],\n\t\t\tYOM_TOV_ENDS\n\t\t));\n\n\t\tadd(new Event(\n\t\t\tnew HDate(dayOnOrBefore(days.FRI, new HDate(1, TISHREI, year)[abs]() + day)),\n\t\t\t['Erev ' + Shabbat, 'Erev ' + Shabbos, 'ערב שבת'],\n\t\t\tLIGHT_CANDLES\n\t\t));\n\t}\n\n\tfor (var month = 1; month <= c.MONTH_CNT(year); month++) {\n\t\tif ((month == NISAN ? c.daysInMonth(c.MONTH_CNT(year - 1), year - 1) :\n\t\t\t\tc.daysInMonth(month - 1, year)) == 30) {\n\t\t\tadd(new Event(\n\t\t\t\tnew HDate(1, month, year),\n\t\t\t\t['Rosh Chodesh 2', 0, \"ראש חודש ב'\"],\n\t\t\t\t0\n\t\t\t));\n\n\t\t\tadd(new Event(\n\t\t\t\tnew HDate(30, month - 1, year),\n\t\t\t\t['Rosh Chodesh 1', 0, \"ראש חודש א'\"],\n\t\t\t\t0\n\t\t\t));\n\t\t} else if (month !== TISHREI) {\n\t\t\tadd(new Event(\n\t\t\t\tnew HDate(1, month, year),\n\t\t\t\t['Rosh Chodesh', 0, 'ראש חודש'],\n\t\t\t\t0\n\t\t\t));\n\t\t}\n\n\t\tif (month == months.ELUL) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tadd(new Event(\n\t\t\tnew HDate(29, month, year).onOrBefore(SAT),\n\t\t\t[Shabbat + ' Mevarchim', Shabbos + ' Mevorchim', 'שבת מברכים'],\n\t\t\t0\n\t\t));\n\t}\n\n\treturn __cache[year] = h;\n};\n\nfunction atzmaut(year) {\n\tif (year >= 5708) { // Yom HaAtzma'ut only celebrated after 1948\n\t\tvar tmpDate = new HDate(1, months.IYYAR, year), pesach = new HDate(15, NISAN, year);\n\n\t\tif (pesach[getDay]() == days.SUN) {\n\t\t\ttmpDate.setDate(2);\n\t\t} else if (pesach[getDay]() == SAT) {\n\t\t\ttmpDate.setDate(3);\n\t\t} else if (year < 5764) {\n\t\t\ttmpDate.setDate(4);\n\t\t} else if (pesach[getDay]() == days.TUE) {\n\t\t\ttmpDate.setDate(5);\n\t\t} else {\n\t\t\ttmpDate.setDate(4);\n\t\t}\n\n\t\treturn [new Event(\n\t\t\ttmpDate,\n\t\t\t['Yom HaZikaron', 0, 'יום הזיכרון'],\n\t\t\t0\n\t\t), new Event(\n\t\t\ttmpDate.next(),\n\t\t\t[\"Yom HaAtzma'ut\", 0, 'יום העצמאות'],\n\t\t\t0\n\t\t)];\n\t}\n\treturn [];\n}\nexports.atzmaut = atzmaut;\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nfunction EventEmitter() {\n this._events = this._events || {};\n this._maxListeners = this._maxListeners || undefined;\n}\nmodule.exports = EventEmitter;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nEventEmitter.defaultMaxListeners = 10;\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function(n) {\n if (!isNumber(n) || n < 0 || isNaN(n))\n throw TypeError('n must be a positive number');\n this._maxListeners = n;\n return this;\n};\n\nEventEmitter.prototype.emit = function(type) {\n var er, handler, len, args, i, listeners;\n\n if (!this._events)\n this._events = {};\n\n // If there is no 'error' event listener then throw.\n if (type === 'error') {\n if (!this._events.error ||\n (isObject(this._events.error) && !this._events.error.length)) {\n er = arguments[1];\n if (er instanceof Error) {\n throw er; // Unhandled 'error' event\n } else {\n // At least give some kind of context to the user\n var err = new Error('Uncaught, unspecified \"error\" event. (' + er + ')');\n err.context = er;\n throw err;\n }\n }\n }\n\n handler = this._events[type];\n\n if (isUndefined(handler))\n return false;\n\n if (isFunction(handler)) {\n switch (arguments.length) {\n // fast cases\n case 1:\n handler.call(this);\n break;\n case 2:\n handler.call(this, arguments[1]);\n break;\n case 3:\n handler.call(this, arguments[1], arguments[2]);\n break;\n // slower\n default:\n args = Array.prototype.slice.call(arguments, 1);\n handler.apply(this, args);\n }\n } else if (isObject(handler)) {\n args = Array.prototype.slice.call(arguments, 1);\n listeners = handler.slice();\n len = listeners.length;\n for (i = 0; i < len; i++)\n listeners[i].apply(this, args);\n }\n\n return true;\n};\n\nEventEmitter.prototype.addListener = function(type, listener) {\n var m;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events)\n this._events = {};\n\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (this._events.newListener)\n this.emit('newListener', type,\n isFunction(listener.listener) ?\n listener.listener : listener);\n\n if (!this._events[type])\n // Optimize the case of one listener. Don't need the extra array object.\n this._events[type] = listener;\n else if (isObject(this._events[type]))\n // If we've already got an array, just append.\n this._events[type].push(listener);\n else\n // Adding the second element, need to change to array.\n this._events[type] = [this._events[type], listener];\n\n // Check for listener leak\n if (isObject(this._events[type]) && !this._events[type].warned) {\n if (!isUndefined(this._maxListeners)) {\n m = this._maxListeners;\n } else {\n m = EventEmitter.defaultMaxListeners;\n }\n\n if (m && m > 0 && this._events[type].length > m) {\n this._events[type].warned = true;\n console.error('(node) warning: possible EventEmitter memory ' +\n 'leak detected. %d listeners added. ' +\n 'Use emitter.setMaxListeners() to increase limit.',\n this._events[type].length);\n if (typeof console.trace === 'function') {\n // not supported in IE 10\n console.trace();\n }\n }\n }\n\n return this;\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.once = function(type, listener) {\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n var fired = false;\n\n function g() {\n this.removeListener(type, g);\n\n if (!fired) {\n fired = true;\n listener.apply(this, arguments);\n }\n }\n\n g.listener = listener;\n this.on(type, g);\n\n return this;\n};\n\n// emits a 'removeListener' event iff the listener was removed\nEventEmitter.prototype.removeListener = function(type, listener) {\n var list, position, length, i;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events || !this._events[type])\n return this;\n\n list = this._events[type];\n length = list.length;\n position = -1;\n\n if (list === listener ||\n (isFunction(list.listener) && list.listener === listener)) {\n delete this._events[type];\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n\n } else if (isObject(list)) {\n for (i = length; i-- > 0;) {\n if (list[i] === listener ||\n (list[i].listener && list[i].listener === listener)) {\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (list.length === 1) {\n list.length = 0;\n delete this._events[type];\n } else {\n list.splice(position, 1);\n }\n\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n }\n\n return this;\n};\n\nEventEmitter.prototype.removeAllListeners = function(type) {\n var key, listeners;\n\n if (!this._events)\n return this;\n\n // not listening for removeListener, no need to emit\n if (!this._events.removeListener) {\n if (arguments.length === 0)\n this._events = {};\n else if (this._events[type])\n delete this._events[type];\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n for (key in this._events) {\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = {};\n return this;\n }\n\n listeners = this._events[type];\n\n if (isFunction(listeners)) {\n this.removeListener(type, listeners);\n } else if (listeners) {\n // LIFO order\n while (listeners.length)\n this.removeListener(type, listeners[listeners.length - 1]);\n }\n delete this._events[type];\n\n return this;\n};\n\nEventEmitter.prototype.listeners = function(type) {\n var ret;\n if (!this._events || !this._events[type])\n ret = [];\n else if (isFunction(this._events[type]))\n ret = [this._events[type]];\n else\n ret = this._events[type].slice();\n return ret;\n};\n\nEventEmitter.prototype.listenerCount = function(type) {\n if (this._events) {\n var evlistener = this._events[type];\n\n if (isFunction(evlistener))\n return 1;\n else if (evlistener)\n return evlistener.length;\n }\n return 0;\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n return emitter.listenerCount(type);\n};\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\n","/*\n * Convert numbers to gematriya representation, and vice-versa.\n *\n * Licensed MIT.\n *\n * Copyright (c) 2014 Eyal Schachter\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * \n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n * \n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n(function(){\n\tvar letters = {}, numbers = {\n\t\t'': 0,\n\t\tא: 1,\n\t\tב: 2,\n\t\tג: 3,\n\t\tד: 4,\n\t\tה: 5,\n\t\tו: 6,\n\t\tז: 7,\n\t\tח: 8,\n\t\tט: 9,\n\t\tי: 10,\n\t\tכ: 20,\n\t\tל: 30,\n\t\tמ: 40,\n\t\tנ: 50,\n\t\tס: 60,\n\t\tע: 70,\n\t\tפ: 80,\n\t\tצ: 90,\n\t\tק: 100,\n\t\tר: 200,\n\t\tש: 300,\n\t\tת: 400,\n\t\tתק: 500,\n\t\tתר: 600,\n\t\tתש: 700,\n\t\tתת: 800,\n\t\tתתק: 900,\n\t\tתתר: 1000\n\t}, i;\n\tfor (i in numbers) {\n\t\tletters[numbers[i]] = i;\n\t}\n\n\tfunction gematriya(num, limit) {\n\t\tif (typeof num !== 'number' && typeof num !== 'string') {\n\t\t\tthrow new TypeError('non-number or string given to gematriya()');\n\t\t}\n\t\tvar str = typeof num === 'string';\n\t\tif (str) {\n\t\t\tnum = num.replace(/('|\")/g,'');\n\t\t}\n\t\tnum = num.toString().split('').reverse();\n\t\tif (!str && limit) {\n\t\t\tnum = num.slice(0, limit);\n\t\t}\n\n\t\tnum = num.map(function g(n,i){\n\t\t\tif (str) {\n\t\t\t\treturn limit && numbers[n] < numbers[num[i - 1]] && numbers[n] < 100 ? numbers[n] * 1000 : numbers[n];\n\t\t\t} else {\n\t\t\t\tif (parseInt(n, 10) * Math.pow(10, i) > 1000) {\n\t\t\t\t\treturn g(n, i-3);\n\t\t\t\t}\n\t\t\t\treturn letters[parseInt(n, 10) * Math.pow(10, i)];\n\t\t\t}\n\t\t});\n\n\t\tif (str) {\n\t\t\treturn num.reduce(function(o,t){\n\t\t\t\treturn o + t;\n\t\t\t}, 0);\n\t\t} else {\n\t\t\tnum = num.reverse().join('').replace(/יה/g,'טו').replace(/יו/g,'טז').split('');\n\n\t\t\tif (num.length === 1) {\n\t\t\t\tnum.push(\"'\");\n\t\t\t} else if (num.length > 1) {\n\t\t\t\tnum.splice(-1, 0, '\"');\n\t\t\t}\n\n\t\t\treturn num.join('');\n\t\t}\n\t}\n\n\tif (typeof module !== 'undefined') {\n\t\tmodule.exports = gematriya;\n\t} else {\n\t\twindow.gematriya = gematriya;\n\t}\n})();\n","/*\n (c) 2011-2015, Vladimir Agafonkin\n SunCalc is a JavaScript library for calculating sun/moon position and light phases.\n https://github.com/mourner/suncalc\n*/\n\n(function () { 'use strict';\n\n// shortcuts for easier to read formulas\n\nvar PI = Math.PI,\n sin = Math.sin,\n cos = Math.cos,\n tan = Math.tan,\n asin = Math.asin,\n atan = Math.atan2,\n acos = Math.acos,\n rad = PI / 180;\n\n// sun calculations are based on http://aa.quae.nl/en/reken/zonpositie.html formulas\n\n\n// date/time constants and conversions\n\nvar dayMs = 1000 * 60 * 60 * 24,\n J1970 = 2440588,\n J2000 = 2451545;\n\nfunction toJulian(date) { return date.valueOf() / dayMs - 0.5 + J1970; }\nfunction fromJulian(j) { return new Date((j + 0.5 - J1970) * dayMs); }\nfunction toDays(date) { return toJulian(date) - J2000; }\n\n\n// general calculations for position\n\nvar e = rad * 23.4397; // obliquity of the Earth\n\nfunction rightAscension(l, b) { return atan(sin(l) * cos(e) - tan(b) * sin(e), cos(l)); }\nfunction declination(l, b) { return asin(sin(b) * cos(e) + cos(b) * sin(e) * sin(l)); }\n\nfunction azimuth(H, phi, dec) { return atan(sin(H), cos(H) * sin(phi) - tan(dec) * cos(phi)); }\nfunction altitude(H, phi, dec) { return asin(sin(phi) * sin(dec) + cos(phi) * cos(dec) * cos(H)); }\n\nfunction siderealTime(d, lw) { return rad * (280.16 + 360.9856235 * d) - lw; }\n\nfunction astroRefraction(h) {\n if (h < 0) // the following formula works for positive altitudes only.\n h = 0; // if h = -0.08901179 a div/0 would occur.\n\n // formula 16.4 of \"Astronomical Algorithms\" 2nd edition by Jean Meeus (Willmann-Bell, Richmond) 1998.\n // 1.02 / tan(h + 10.26 / (h + 5.10)) h in degrees, result in arc minutes -> converted to rad:\n return 0.0002967 / Math.tan(h + 0.00312536 / (h + 0.08901179));\n}\n\n// general sun calculations\n\nfunction solarMeanAnomaly(d) { return rad * (357.5291 + 0.98560028 * d); }\n\nfunction eclipticLongitude(M) {\n\n var C = rad * (1.9148 * sin(M) + 0.02 * sin(2 * M) + 0.0003 * sin(3 * M)), // equation of center\n P = rad * 102.9372; // perihelion of the Earth\n\n return M + C + P + PI;\n}\n\nfunction sunCoords(d) {\n\n var M = solarMeanAnomaly(d),\n L = eclipticLongitude(M);\n\n return {\n dec: declination(L, 0),\n ra: rightAscension(L, 0)\n };\n}\n\n\nvar SunCalc = {};\n\n\n// calculates sun position for a given date and latitude/longitude\n\nSunCalc.getPosition = function (date, lat, lng) {\n\n var lw = rad * -lng,\n phi = rad * lat,\n d = toDays(date),\n\n c = sunCoords(d),\n H = siderealTime(d, lw) - c.ra;\n\n return {\n azimuth: azimuth(H, phi, c.dec),\n altitude: altitude(H, phi, c.dec)\n };\n};\n\n\n// sun times configuration (angle, morning name, evening name)\n\nvar times = SunCalc.times = [\n [-0.833, 'sunrise', 'sunset' ],\n [ -0.3, 'sunriseEnd', 'sunsetStart' ],\n [ -6, 'dawn', 'dusk' ],\n [ -12, 'nauticalDawn', 'nauticalDusk'],\n [ -18, 'nightEnd', 'night' ],\n [ 6, 'goldenHourEnd', 'goldenHour' ]\n];\n\n// adds a custom time to the times config\n\nSunCalc.addTime = function (angle, riseName, setName) {\n times.push([angle, riseName, setName]);\n};\n\n\n// calculations for sun times\n\nvar J0 = 0.0009;\n\nfunction julianCycle(d, lw) { return Math.round(d - J0 - lw / (2 * PI)); }\n\nfunction approxTransit(Ht, lw, n) { return J0 + (Ht + lw) / (2 * PI) + n; }\nfunction solarTransitJ(ds, M, L) { return J2000 + ds + 0.0053 * sin(M) - 0.0069 * sin(2 * L); }\n\nfunction hourAngle(h, phi, d) { return acos((sin(h) - sin(phi) * sin(d)) / (cos(phi) * cos(d))); }\n\n// returns set time for the given sun altitude\nfunction getSetJ(h, lw, phi, dec, n, M, L) {\n\n var w = hourAngle(h, phi, dec),\n a = approxTransit(w, lw, n);\n return solarTransitJ(a, M, L);\n}\n\n\n// calculates sun times for a given date and latitude/longitude\n\nSunCalc.getTimes = function (date, lat, lng) {\n\n var lw = rad * -lng,\n phi = rad * lat,\n\n d = toDays(date),\n n = julianCycle(d, lw),\n ds = approxTransit(0, lw, n),\n\n M = solarMeanAnomaly(ds),\n L = eclipticLongitude(M),\n dec = declination(L, 0),\n\n Jnoon = solarTransitJ(ds, M, L),\n\n i, len, time, Jset, Jrise;\n\n\n var result = {\n solarNoon: fromJulian(Jnoon),\n nadir: fromJulian(Jnoon - 0.5)\n };\n\n for (i = 0, len = times.length; i < len; i += 1) {\n time = times[i];\n\n Jset = getSetJ(time[0] * rad, lw, phi, dec, n, M, L);\n Jrise = Jnoon - (Jset - Jnoon);\n\n result[time[1]] = fromJulian(Jrise);\n result[time[2]] = fromJulian(Jset);\n }\n\n return result;\n};\n\n\n// moon calculations, based on http://aa.quae.nl/en/reken/hemelpositie.html formulas\n\nfunction moonCoords(d) { // geocentric ecliptic coordinates of the moon\n\n var L = rad * (218.316 + 13.176396 * d), // ecliptic longitude\n M = rad * (134.963 + 13.064993 * d), // mean anomaly\n F = rad * (93.272 + 13.229350 * d), // mean distance\n\n l = L + rad * 6.289 * sin(M), // longitude\n b = rad * 5.128 * sin(F), // latitude\n dt = 385001 - 20905 * cos(M); // distance to the moon in km\n\n return {\n ra: rightAscension(l, b),\n dec: declination(l, b),\n dist: dt\n };\n}\n\nSunCalc.getMoonPosition = function (date, lat, lng) {\n\n var lw = rad * -lng,\n phi = rad * lat,\n d = toDays(date),\n\n c = moonCoords(d),\n H = siderealTime(d, lw) - c.ra,\n h = altitude(H, phi, c.dec),\n // formula 14.1 of \"Astronomical Algorithms\" 2nd edition by Jean Meeus (Willmann-Bell, Richmond) 1998.\n pa = atan(sin(H), tan(phi) * cos(c.dec) - sin(c.dec) * cos(H));\n\n h = h + astroRefraction(h); // altitude correction for refraction\n\n return {\n azimuth: azimuth(H, phi, c.dec),\n altitude: h,\n distance: c.dist,\n parallacticAngle: pa\n };\n};\n\n\n// calculations for illumination parameters of the moon,\n// based on http://idlastro.gsfc.nasa.gov/ftp/pro/astro/mphase.pro formulas and\n// Chapter 48 of \"Astronomical Algorithms\" 2nd edition by Jean Meeus (Willmann-Bell, Richmond) 1998.\n\nSunCalc.getMoonIllumination = function (date) {\n\n var d = toDays(date || new Date()),\n s = sunCoords(d),\n m = moonCoords(d),\n\n sdist = 149598000, // distance from Earth to Sun in km\n\n phi = acos(sin(s.dec) * sin(m.dec) + cos(s.dec) * cos(m.dec) * cos(s.ra - m.ra)),\n inc = atan(sdist * sin(phi), m.dist - sdist * cos(phi)),\n angle = atan(cos(s.dec) * sin(s.ra - m.ra), sin(s.dec) * cos(m.dec) -\n cos(s.dec) * sin(m.dec) * cos(s.ra - m.ra));\n\n return {\n fraction: (1 + cos(inc)) / 2,\n phase: 0.5 + 0.5 * inc * (angle < 0 ? -1 : 1) / Math.PI,\n angle: angle\n };\n};\n\n\nfunction hoursLater(date, h) {\n return new Date(date.valueOf() + h * dayMs / 24);\n}\n\n// calculations for moon rise/set times are based on http://www.stargazing.net/kepler/moonrise.html article\n\nSunCalc.getMoonTimes = function (date, lat, lng, inUTC) {\n var t = new Date(date);\n if (inUTC) t.setUTCHours(0, 0, 0, 0);\n else t.setHours(0, 0, 0, 0);\n\n var hc = 0.133 * rad,\n h0 = SunCalc.getMoonPosition(t, lat, lng).altitude - hc,\n h1, h2, rise, set, a, b, xe, ye, d, roots, x1, x2, dx;\n\n // go in 2-hour chunks, each time seeing if a 3-point quadratic curve crosses zero (which means rise or set)\n for (var i = 1; i <= 24; i += 2) {\n h1 = SunCalc.getMoonPosition(hoursLater(t, i), lat, lng).altitude - hc;\n h2 = SunCalc.getMoonPosition(hoursLater(t, i + 1), lat, lng).altitude - hc;\n\n a = (h0 + h2) / 2 - h1;\n b = (h2 - h0) / 2;\n xe = -b / (2 * a);\n ye = (a * xe + b) * xe + h1;\n d = b * b - 4 * a * h1;\n roots = 0;\n\n if (d >= 0) {\n dx = Math.sqrt(d) / (Math.abs(a) * 2);\n x1 = xe - dx;\n x2 = xe + dx;\n if (Math.abs(x1) <= 1) roots++;\n if (Math.abs(x2) <= 1) roots++;\n if (x1 < -1) x1 = x2;\n }\n\n if (roots === 1) {\n if (h0 < 0) rise = i + x1;\n else set = i + x1;\n\n } else if (roots === 2) {\n rise = i + (ye < 0 ? x2 : x1);\n set = i + (ye < 0 ? x1 : x2);\n }\n\n if (rise && set) break;\n\n h0 = h2;\n }\n\n var result = {};\n\n if (rise) result.rise = hoursLater(t, rise);\n if (set) result.set = hoursLater(t, set);\n\n if (!rise && !set) result[ye > 0 ? 'alwaysUp' : 'alwaysDown'] = true;\n\n return result;\n};\n\n\n// export as Node module / AMD module / browser variable\nif (typeof exports === 'object' && typeof module !== 'undefined') module.exports = SunCalc;\nelse if (typeof define === 'function' && define.amd) define(SunCalc);\nelse window.SunCalc = SunCalc;\n\n}());\n","/*\n\tHebcal - A Jewish Calendar Generator\n\tCopyright (C) 1994-2004 Danny Sadinoff\n\tPortions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.\n\n\thttps://github.com/hebcal/hebcal-js\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the GNU General Public License as published by\n\tthe Free Software Foundation, either version 3 of the License, or\n\t(at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\tGNU General Public License for more details.\n\n\tYou should have received a copy of the GNU General Public License\n\talong with this program. If not, see .\n\n\tDanny Sadinoff can be reached at danny@sadinoff.com\n\n\tMichael Radwin has made significant contributions as a result of\n\tmaintaining hebcal.com.\n\n\tThe JavaScript code was completely rewritten in 2014 by Eyal Schachter.\n */\n/*\n * Many of the following algorithms were taken from hebrew calendar\n * routines by Maimonedes, from his Mishneh Torah, and implemented by\n * Nachum Dershowitz Department of Computer Science\n * (217) 333-4219 University of Illinois at Urbana-Champaign\n * nachum@cs.uiuc.edu 1304 West Springfield Avenue\n * Urbana, Illinois 61801\n *\n * The routines were included in the emacs 19 distribution.\n *\n */\nvar c = require('./common'), HDate = require('./hdate');\n\nvar concat = 'concat', range = c.range; // for client optimization\n\nvar INCOMPLETE = 0,\n\tREGULAR = 1,\n\tCOMPLETE = 2;\n\nfunction Sedra(hebYr, il) { // the Hebrew year\n\til = !!il;\n\tvar long_c = c.lngChesh(hebYr);\n\tvar short_k = c.shrtKis(hebYr);\n\tvar type;\n\tthis.year = hebYr;\n\tif (long_c && !short_k) {\n\t\ttype = COMPLETE;\n\t} else if (!long_c && short_k) {\n\t\ttype = INCOMPLETE;\n\t} else {\n\t\ttype = REGULAR;\n\t}\n\n\tvar rosh_hashana = new HDate(1, c.months.TISHREI, hebYr).abs();\n\tvar rosh_hashana_day = (rosh_hashana % 7) + 1;\n\n\t// find the first Saturday on or after Rosh Hashana\n\tthis.first_saturday = c.dayOnOrBefore(6, rosh_hashana + 6);\n\tvar leap = +c.LEAP(hebYr);\n\tthis.type = type;\n\tthis.rosh_hashana_day = rosh_hashana_day;\n\tthis.leap = leap;\n\tthis.il = il;\n\n\tvar core = \"\" + leap + rosh_hashana_day + type;\n\tif (types[core]) {\n\t\tthis.theSedraArray = types[core];\n\t} else {\n\t\tthis.theSedraArray = types[core + (+il)]; // cast to num, then concat\n\t}\n\n\tif (!this.theSedraArray) {\n\t\tconsole.log(this);\n\t\tthrow new TypeError(\"improper sedra year type calculated.\");\n\t}\n}\n\nvar parshiot = Sedra.parshiot = [\n\t[ 'Bereshit', 'Bereshis', 'בראשית' ], // 0\n\t[ 'Noach', 0, 'נח' ],\n\t[ 'Lech-Lecha', 0, 'לך-לך' ],\n\t[ 'Vayera', 0, 'וירא' ],\n\t[ 'Chayei Sara', 0, 'חי שרה' ],\n\t[ 'Toldot', 'Toldos', 'תולדות' ],\n\t[ 'Vayetzei', 0, 'ויצא' ],\n\t[ 'Vayishlach', 0, 'וישלח' ],\n\t[ 'Vayeshev', 0, 'וישב' ],\n\t[ 'Miketz', 0, 'מקץ' ],\n\t[ 'Vayigash', 0, 'ויגש' ], // 10\n\t[ 'Vayechi', 0, 'ויחי' ],\n\t[ 'Shemot', 'Shemos', 'שמות' ],\n\t[ 'Vaera', 0, 'וארא' ],\n\t[ 'Bo', 0, 'בא' ],\n\t[ 'Beshalach', 0, 'בשלח' ],\n\t[ 'Yitro', 'Yisro', 'יתרו' ],\n\t[ 'Mishpatim', 0, 'משפטים' ],\n\t[ 'Terumah', 0, 'תרומה' ],\n\t[ 'Tetzaveh', 0, 'תצוה' ],\n\t[ 'Ki Tisa', 'Ki Sisa', 'כי תשא' ], // 20\n\t[ 'Vayakhel', 0, 'ויקהל' ],\n\t[ 'Pekudei', 0, 'פקודי' ],\n\t[ 'Vayikra', 0, 'ויקרא' ],\n\t[ 'Tzav', 0, 'צו' ],\n\t[ 'Shmini', 0, 'שמיני' ],\n\t[ 'Tazria', 0, 'תזריע' ],\n\t[ 'Metzora', 0, 'מצרע' ],\n\t[ 'Achrei Mot', 'Achrei Mos', 'אחרי מות' ],\n\t[ 'Kedoshim', 0, 'קדשים' ],\n\t[ 'Emor', 0, 'אמור' ], // 30\n\t[ 'Behar', 0, 'בהר' ],\n\t[ 'Bechukotai', 'Bechukosai', 'בחקתי' ],\n\t[ 'Bamidbar', 0, 'במדבר' ],\n\t[ 'Nasso', 0, 'נשא' ],\n\t[ 'Beha\\'alotcha', 'Beha\\'aloscha', 'בהעלתך' ],\n\t[ 'Sh\\'lach', 0, 'שלח לך' ],\n\t[ 'Korach', 0, 'קורח' ],\n\t[ 'Chukat', 'Chukas', 'חקת' ],\n\t[ 'Balak', 0, 'בלק' ],\n\t[ 'Pinchas', 0, 'פינחס' ], // 40\n\t[ 'Matot', 'Matos', 'מטות' ],\n\t[ 'Masei', 0, 'מסעי' ],\n\t[ 'Devarim', 0, 'דברים' ],\n\t[ 'Vaetchanan', 'V\\'eschanan', 'ואתחנן' ],\n\t[ 'Eikev', 0, 'עקב' ],\n\t[ 'Re\\'eh', 0, 'ראה' ],\n\t[ 'Shoftim', 0, 'שופטים' ],\n\t[ 'Ki Teitzei', 'Ki Seitzei', 'כי תצא' ],\n\t[ 'Ki Tavo', 'Ki Savo', 'כי תבוא' ],\n\t[ 'Nitzavim', 0, 'נצבים' ], // 50\n\t[ 'Vayeilech', 0, 'וילך' ],\n\t[ 'Ha\\'Azinu', 0, 'האזינו' ]\n];\n\n\n// parsha doubler/undoubler\nfunction D(p) {\n\treturn -p;\n}\n\n// these are wrapped to protect them from [].concat()\nvar RH = [[ 'Rosh Hashana', 0, 'ראש השנה' ]]; //0\nvar YK = [[ 'Yom Kippur', 0, 'יום כיפור' ]]; //1\n\nvar SUKKOT = [[ 'Sukkot', 'Succos', 'סוכות' ]]; //0\nvar CHMSUKOT = [[ 'Chol hamoed Sukkot', 'Chol hamoed Succos', 'חול המועד סוכות' ]]; //0\nvar SHMINI = [[ 'Shmini Atzeret', 'Shmini Atzeres', 'שמיני עצרת' ]]; //0\nvar EOY = [[ 'End-of-Year: Simchat-Torah, Sukkot', 'End-of-Year: Simchas-Torah, Succos', 'סופשנה: סוכות וסמחת תורה' ]]; //0\n\nvar PESACH = [[ 'Pesach', 0, 'פסח' ]]; //25\nvar CHMPESACH = [[ 'Chol hamoed Pesach', 0, 'חול המועד פסח' ]]; //25\nvar PESACH7 = [[ 'Second days of Pesach', 0, 'שביעי של פסח' ]]; //25\n\nvar SHAVUOT = [[ 'Shavuot', 'Shavuos', 'שבועות' ]]; //33\n\n\n\n// The ordinary year types (keviot)\n\n// names are leap/nonleap - day - incomplete/regular/complete - diaspora/Israel\n\nvar types = {\n\n\t/* Hebrew year that starts on Monday, is `incomplete' (Heshvan and\n\t * Kislev each have 29 days), and has Passover start on Tuesday. */\n\t//e.g. 5753\n\t'020' : [51, 52][concat](EOY, range(0, 20), D(21), 23, 24, PESACH, 25,\n\t\tD(26), D(28), 30, D(31), range(33, 40), D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Monday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Thursday. */\n\t//e.g. 5756\n\t'0220' : [51, 52][concat](EOY, range(0, 20), D(21), 23, 24, PESACH, 25, D(26), D(28),\n\t\t30, D(31), 33, SHAVUOT, range(34, 37), D(38), 40, D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Thursday, is `regular' (Heshvan has 29\n\t * days and Kislev has 30 days), and has Passover start on Saturday. */\n\t//e.g. 5701\n\t'0510' : [52][concat](YK, EOY, range(0, 20), D(21), 23, 24, PESACH, PESACH,\n\t\t25, D(26), D(28), 30, D(31), range(33, 40), D(41), range(43, 50)\n\t),\n\n\t/* Hebrew year that starts on Thursday, is `regular' (Heshvan has 29\n\t * days and Kislev has 30 days), and has Passover start on Saturday. */\n\t// e.g. 5745\n\t'0511' : [52][concat](YK, EOY, range(0, 20), D(21), 23, 24, PESACH,\n\t\t25, D(26), D(28), range(30, 40), D(41), range(43, 50)\n\t),\n\n\t/* Hebrew year that starts on Thursday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Sunday. */\n\t//e.g. 5754\n\t'052' : [52][concat](YK, CHMSUKOT, range(0, 24), PESACH7, 25, D(26),\n\t\tD(28), 30, D(31), range(33, 40), D(41), range(43, 50)\n\t),\n\n\t/* Hebrew year that starts on Saturday, is `incomplete' (Heshvan and Kislev\n\t * each have 29 days), and has Passover start on Sunday. */\n\t//e.g. 5761\n\t'070' : [][concat](RH, 52, SUKKOT, SHMINI, range(0, 20), D(21), 23, 24, PESACH7,\n\t\t25, D(26), D(28), 30, D(31), range(33, 40), D(41), range(43, 50)\n\t),\n\n\n\t/* Hebrew year that starts on Saturday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Tuesday. */\n\t//e.g. 5716\n\t'072' : [][concat](RH, 52, SUKKOT, SHMINI, range(0, 20), D(21), 23, 24, CHMPESACH, 25,\n\t\tD(26), D(28), 30, D(31), range(33, 40), D(41), range(43, 49), D(50)\n\t),\n\n\n\t/* -- The leap year types (keviot) -- */\n\t/* Hebrew year that starts on Monday, is `incomplete' (Heshvan and\n\t * Kislev each have 29 days), and has Passover start on Thursday. */\n\t//e.g. 5746\n\t'1200' : [51, 52][concat](CHMSUKOT, range(0, 27), CHMPESACH, range(28, 33),\n\t\tSHAVUOT, range(34, 37), D(38), 40, D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Monday, is `incomplete' (Heshvan and\n\t * Kislev each have 29 days), and has Passover start on Thursday. */\n\t//e.g. 5746\n\t'1201' : [51, 52][concat](CHMSUKOT, range(0, 27), CHMPESACH,\n\t\trange(28, 40), D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Monday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Saturday. */\n\t//e.g.5752\n\t'1220' : [51, 52][concat](CHMSUKOT, range(0, 27), PESACH,\n\t\tPESACH, range(28, 40), D(41), range(43, 50)\n\t),\n\n\t/* Hebrew year that starts on Monday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Saturday. */\n\t//e.g.5752\n\t'1221' : [51, 52][concat](CHMSUKOT, range(0, 27), PESACH, range(28, 50)),\n\n\t/* Hebrew year that starts on Thursday, is `incomplete' (Heshvan and\n\t * Kislev both have 29 days), and has Passover start on Sunday. */\n\t//e.g. 5768\n\t'150' : [52][concat](YK, CHMSUKOT, range(0, 28), PESACH7, range(29, 50)),\n\n\t/* Hebrew year that starts on Thursday, is `complete' (Heshvan and\n\t * Kislev both have 30 days), and has Passover start on Tuesday. */\n\t//eg. 5771\n\t'152' : [52][concat](YK, CHMSUKOT, range(0, 28), CHMPESACH, range(29, 49), D(50)),\n\n\t/* Hebrew year that starts on Saturday, is `incomplete' (Heshvan and\n\t * Kislev each have 29 days), and has Passover start on Tuesday. */\n\t//e.g.5757\n\t'170' : [][concat](RH, 52, SUKKOT, SHMINI, range(0, 27), CHMPESACH,\n\t\trange(28, 40), D(41), range(43, 49), D(50)\n\t),\n\n\t/* Hebrew year that starts on Saturday, is `complete' (Heshvan and\n\t * Kislev each have 30 days), and has Passover start on Thursday. */\n\t'1720' : [][concat](RH, 52, SUKKOT, SHMINI, range(0, 27), CHMPESACH, range(28, 33),\n\t\tSHAVUOT, range(34, 37), D(38), 40, D(41), range(43, 49), D(50)\n\t)\n};\n\n/* Hebrew year that starts on Monday, is `complete' (Heshvan and\n * Kislev each have 30 days), and has Passover start on Thursday. */\ntypes['0221'] = types['020'];\n\n/* Hebrew year that starts on Tuesday, is `regular' (Heshvan has 29\n * days and Kislev has 30 days), and has Passover start on Thursday. */\n//e.g. 5715\ntypes['0310'] = types['0220'];\n\n/* Hebrew year that starts on Tuesday, is `regular' (Heshvan has 29\n * days and Kislev has 30 days), and has Passover start on Thursday. */\ntypes['0311'] = types['020'];\n\n/* Hebrew year that starts on Tuesday, is `regular' (Heshvan has 29\n * days and Kislev has 30 days), and has Passover start on Saturday. */\n// e.g. 5715\ntypes['1310'] = types['1220'];\n/* Hebrew year that starts on Tuesday, is `regular' (Heshvan has 29\n * days and Kislev has 30 days), and has Passover start on Saturday. */\ntypes['1311'] = types['1221'];\n\n/* Hebrew year that starts on Saturday, is `complete' (Heshvan and\n * Kislev each have 30 days), and has Passover start on Thursday. */\ntypes['1721'] = types['170'];\n\n\nSedra.prototype.get = function(hDate) {\n\treturn abs(this, hDate.abs());\n};\n\n// returns an array describing the parsha on the first Saturday on or after absdate\nfunction abs(year, absDate) {\n\n\t// find the first saturday on or after today's date\n\tabsDate = c.dayOnOrBefore(6, absDate + 6);\n\n\tvar weekNum = (absDate - year.first_saturday) / 7;\n\tvar index = year.theSedraArray[weekNum];\n\n\tif (undefined === index) {\n\t\treturn abs(new Sedra(year.year + 1, year.il), absDate); // must be next year\n\t}\n\tif (typeof index == 'object') {\n\t\t// Shabbat has a chag. Return a description\n\t\treturn [index];\n\t}\n\tif (index >= 0) {\n\t\treturn [parshiot[index]];\n\t}\n\n\tindex = D(index); // undouble the parsha\n\treturn [parshiot[index], parshiot[index + 1]];\n}\n\nmodule.exports = Sedra;\n"]} \ No newline at end of file diff --git a/compile.js b/compile.js index 0fe517d..ccd9685 100644 --- a/compile.js +++ b/compile.js @@ -33,7 +33,7 @@ function minify(inFile, outFile, inSourceMap, outSourceMap) { inSourceMap: inSourceMap, outSourceMap: outSourceMap, sourceRoot: github, - mangle: false, + mangle: true, warnings: true }); fs.writeFileSync(outFile, minHeader + removeLocalPath(result.code));