From 664b21996f9a975958a03d1b5447cd2ae7e7e50d Mon Sep 17 00:00:00 2001 From: Scimonster Date: Thu, 18 May 2017 00:13:59 +0300 Subject: [PATCH] Bump version to 2.2.4 --- CHANGELOG | 5 +++++ README.md | 5 +++-- client/hebcal.min.js.map | 2 +- client/hebcal.noloc.min.js.map | 2 +- package.json | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 3ac764d..0cd0bd1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +version 2.2.4 (2017-05-17 [21 Iyyar 5777]) + Fixed previous date issue with suncalc workaround [ybudweiser] + Add HDate.tachanun_uf() function + Mangle variable names in minified JS + version 2.2.3 (2017-02-14 [18 Shvat 5777]) Daf Yomi- renamed Hebrew names for Gmara according to Shas Vilna [gnudles] Daf Yomi- fixed errors in cycles 1-7 ... (division instead of modulo) [gnudles] diff --git a/README.md b/README.md index ffdcf80..9257192 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,10 @@ $ npm install hebcal ...and include Hebcal with `var Hebcal = require('hebcal');` -Hebcal JS is currently at version 2.2.3. It is approximately equivalent to Hebcal C 3.15. +Hebcal JS is currently at version 2.2.4. It is approximately equivalent to Hebcal C 3.15. I (Eyal) did not write Hebcal JS 1.0. 2.x is a nearly-complete rewrite of it. -The version documented here is 2.2.3. +The version documented here is 2.2.4. ## Releases @@ -32,6 +32,7 @@ The version documented here is 2.2.3. * 2.2.1 - 2016-04-17 (9 Nisan 5776) * 2.2.2 - 2016-04-18 (10 Nisan 5776) * 2.2.3 - 2017-02-14 (18 Shvat 5777) +* 2.2.4 - 2017-05-17 (21 Iyyar 5777) ## Contributors diff --git a/client/hebcal.min.js.map b/client/hebcal.min.js.map index 861f371..8429f32 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","tachanun_uf","shacharit","mincha","all_congs","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,GA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lc,EAAA,GAAA,IAAAwb,EAAA,IAAAxb,EAAA,GAAA,IAAAwb,EAAA,KAKA2B,QAAAxe,GAAAuS,EAAA,GAAA2K,EAAAE,EAAA/b,EAAA,EAAA,IAAAkc,EAAAlc,EAAA,GAAA,IACAoc,EAAApc,EAAA,GAAA,IAAAwb,EAAA,IAAA,GAAAA,EAAA,IAAAxb,EAAA,GAAA,IAAAwb,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,KAGA7S,EAAAxD,UAAArK,IAAA,SAAAwiB,GACA,MAAAvjB,GAAAkJ,KAAAqa,EAAAvjB,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.tachanun_uf = function(){\n\tvar ret = this.tachanun();\n\treturn {\n\t\tshacharit: !!(ret & this.tachanun.SHACHARIT),\n\t\tmincha: !!(ret & this.tachanun.MINCHA),\n\t\tall_congs: !!(ret & this.tachanun.ALL_CONGS)\n\t};\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","tachanun_uf","shacharit","mincha","all_congs","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","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,EAAA,KAKA0B,OAAAve,GAAAuS,EAAA,GAAA2K,EAAAE,EAAA/b,EAAA,EAAA,IAAAkc,EACAlc,EAAA,GAAA,IAAAwb,EAAA,IAAAxb,EAAA,GAAA,IAAAwb,EAAA,KAKA2B,QAAAxe,GAAAuS,EAAA,GAAA2K,EAAAE,EAAA/b,EAAA,EAAA,IAAAkc,EAAAlc,EAAA,GAAA,IACAoc,EAAApc,EAAA,GAAA,IAAAwb,EAAA,IAAA,GAAAA,EAAA,IAAAxb,EAAA,GAAA,IAAAwb,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,KAGA7S,EAAAxD,UAAArK,IAAA,SAAAwiB,GACA,MAAAvjB,GAAAkJ,KAAAqa,EAAAvjB,QA2BAlF,EAAAJ,QAAAkU","file":"client/hebcal.min.js","sourceRoot":"https://github.com/hebcal/hebcal-js/tree/v2.2.4/","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.tachanun_uf = function(){\n\tvar ret = this.tachanun();\n\treturn {\n\t\tshacharit: !!(ret & this.tachanun.SHACHARIT),\n\t\tmincha: !!(ret & this.tachanun.MINCHA),\n\t\tall_congs: !!(ret & this.tachanun.ALL_CONGS)\n\t};\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.map b/client/hebcal.noloc.min.js.map index 5f68dc8..ef24c77 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","tachanun_uf","shacharit","mincha","all_congs","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,EAAAE,GAAA,OAAAD,KAAAa,GAAA,SAAAT,EAAAU,EAAAJ,GCsFA,QAAAK,GAAAC,GAOA,MANAA,GAAAA,EAAAC,MAAA,OAAAC,IAAA,SAAAC,EAAAd,EAAAe,GACA,MAAA,kBAAAA,EAAAC,KAAA,KAAAC,eAAA,IAAAjB,EACAc,EAAAI,cAEAJ,EAAA,GAAAI,cAAAJ,EAAAK,MAAA,GAAAF,gBACAD,KAAA,KACAI,EAAAT,KAAA,EAAA,GAAA,GAIA,QAAAU,KACA,MAAAC,QAAA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Axe,GAAAmd,EAAAE,EAAAhc,EAAA,EAAA,IAAAoc,EAAApc,EAAA,GAAA,IAAA0b,EAAA,KAKA0B,OAAAze,GAAAyS,EAAA,GAAA2K,EAAAE,EAAAjc,EAAA,EAAA,IAAAoc,EACApc,EAAA,GAAA,IAAA0b,EAAA,IAAA1b,EAAA,GAAA,IAAA0b,EAAA,KAKA2B,QAAA1e,GAAAyS,EAAA,GAAA2K,EAAAE,EAAAjc,EAAA,EAAA,IAAAoc,EAAApc,EAAA,GAAA,IACAsc,EAAAtc,EAAA,GAAA,IAAA0b,EAAA,IAAA,GAAAA,EAAA,IAAA1b,EAAA,GAAA,IAAA0b,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,KAGA9S,EAAAxD,UAAA9J,IAAA,SAAAkiB,GACA,MAAAjjB,GAAA0I,KAAAua,EAAAjjB,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.tachanun_uf = function(){\n\tvar ret = this.tachanun();\n\treturn {\n\t\tshacharit: !!(ret & this.tachanun.SHACHARIT),\n\t\tmincha: !!(ret & this.tachanun.MINCHA),\n\t\tall_congs: !!(ret & this.tachanun.ALL_CONGS)\n\t};\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","tachanun_uf","shacharit","mincha","all_congs","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","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AAA,IAAA0b,EAAA,KAKA2B,QAAA1e,GAAAyS,EAAA,GAAA2K,EAAAE,EAAAjc,EAAA,EAAA,IAAAoc,EAAApc,EAAA,GAAA,IACAsc,EAAAtc,EAAA,GAAA,IAAA0b,EAAA,IAAA,GAAAA,EAAA,IAAA1b,EAAA,GAAA,IAAA0b,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,KAGA9S,EAAAxD,UAAA9J,IAAA,SAAAkiB,GACA,MAAAjjB,GAAA0I,KAAAua,EAAAjjB,QA2BAlF,EAAAJ,QAAA2T","file":"client/hebcal.noloc.min.js","sourceRoot":"https://github.com/hebcal/hebcal-js/tree/v2.2.4/","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.tachanun_uf = function(){\n\tvar ret = this.tachanun();\n\treturn {\n\t\tshacharit: !!(ret & this.tachanun.SHACHARIT),\n\t\tmincha: !!(ret & this.tachanun.MINCHA),\n\t\tall_congs: !!(ret & this.tachanun.ALL_CONGS)\n\t};\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/package.json b/package.json index 2a0c3b0..b6726ae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hebcal", - "version": "2.2.3", + "version": "2.2.4", "author": "Eyal Schachter (https://github.com/Scimonster)", "contributors": [ "Michael J. Radwin (https://github.com/mjradwin)",