@hebcal/leyning 8.1.7 → 8.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +47 -14
- package/dist/bundle.min.js +2 -2
- package/dist/index.cjs +47 -14
- package/dist/index.mjs +47 -14
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/leyning v8.1.
|
|
1
|
+
/*! @hebcal/leyning v8.1.9 */
|
|
2
2
|
var hebcal__leyning = (function (exports, core) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -817,6 +817,9 @@ var festivals = {"Pesach I":{
|
|
|
817
817
|
{"M":{"p":49,"k":5,"b":"25:17","e":"25:19"}}},
|
|
818
818
|
"Pinchas occurring after 17 Tammuz":{
|
|
819
819
|
"haft": {"k": "Jeremiah", "b": "1:1", "e": "2:3"}},
|
|
820
|
+
"Kedoshim following Special Shabbat":{
|
|
821
|
+
"haft":{"k":"Amos","b":"9:7","e":"9:15"},
|
|
822
|
+
"seph":{"k":"Ezekiel","b":"20:2","e":"20:20"}},
|
|
820
823
|
"Masei on Shabbat Rosh Chodesh":{
|
|
821
824
|
"haft":[
|
|
822
825
|
{"k":"Jeremiah","b":"2:4","e":"2:28"},
|
|
@@ -936,10 +939,11 @@ function getLeyningKeyForEvent(ev, il = false) {
|
|
|
936
939
|
}
|
|
937
940
|
return desc;
|
|
938
941
|
}
|
|
939
|
-
const cholHaMoedDay = ev.cholHaMoedDay;
|
|
940
942
|
if (day == 1 && month === core.months.TISHREI) {
|
|
941
943
|
return isShabbat ? 'Rosh Hashana I (on Shabbat)' : 'Rosh Hashana I';
|
|
942
|
-
}
|
|
944
|
+
}
|
|
945
|
+
const cholHaMoedDay = ev.cholHaMoedDay;
|
|
946
|
+
if (typeof cholHaMoedDay === 'number') {
|
|
943
947
|
// Sukkot or Pesach
|
|
944
948
|
if (isShabbat) {
|
|
945
949
|
return holiday + ' Shabbat Chol ha-Moed';
|
|
@@ -954,15 +958,17 @@ function getLeyningKeyForEvent(ev, il = false) {
|
|
|
954
958
|
}
|
|
955
959
|
}
|
|
956
960
|
return `${holiday} Chol ha-Moed Day ${cholHaMoedDay}`;
|
|
957
|
-
}
|
|
961
|
+
}
|
|
962
|
+
const chanukahDay = ev.chanukahDay;
|
|
963
|
+
if (typeof chanukahDay === 'number') {
|
|
958
964
|
if (isShabbat && isRoshChodesh) {
|
|
959
965
|
return 'Shabbat Rosh Chodesh Chanukah';
|
|
960
|
-
} else if (isRoshChodesh &&
|
|
966
|
+
} else if (isRoshChodesh && chanukahDay == 7) {
|
|
961
967
|
return `Chanukah Day 7 (on Rosh Chodesh)`;
|
|
962
968
|
} else if (isShabbat) {
|
|
963
|
-
return `Chanukah Day ${
|
|
969
|
+
return `Chanukah Day ${chanukahDay} (on Shabbat)`;
|
|
964
970
|
} else {
|
|
965
|
-
return `Chanukah Day ${
|
|
971
|
+
return `Chanukah Day ${chanukahDay}`;
|
|
966
972
|
}
|
|
967
973
|
}
|
|
968
974
|
|
|
@@ -1159,6 +1165,17 @@ function specialReadings2(parsha, hd, il, aliyot) {
|
|
|
1159
1165
|
// In the book of Isaiah these two brief passages are adjacent."
|
|
1160
1166
|
// Source: Luaḥ Hashanah, Rabbi Miles B. Cohen and Leslie Rubin
|
|
1161
1167
|
handleSpecial('Ki Teitzei with 3rd Haftarah of Consolation');
|
|
1168
|
+
} else if (parshaName === 'Kedoshim' && (day === 26 || day === 28 || day === 6)) {
|
|
1169
|
+
// Kedoshim is read separately from Achrei Mot in ~37% of years.
|
|
1170
|
+
// When this happens, it is will be read on
|
|
1171
|
+
// 26th or 28th of Nisan (Achrei Mot was Shabbat HaGadol, ~10%),
|
|
1172
|
+
// or 1st of Iyyar (Rosh Chodesh, ~10%),
|
|
1173
|
+
// or 6th of Iyyar (~10%, immediately after Shabbat Machar Chodesh)
|
|
1174
|
+
// or 3rd of Iyyar (~6%, "the nominal situation — in which both parashiyyot
|
|
1175
|
+
// are read separately and no overriding occasions coincide")
|
|
1176
|
+
// http://www.scholar.davidesstein.name/Articles/HaftarotOfEtzHayim--Stein.pdf
|
|
1177
|
+
// "The Haftarot of Etz Hayim," David E. S. Stein, Conservative Judaism 54/3 (Spring 2002)
|
|
1178
|
+
handleSpecial('Kedoshim following Special Shabbat');
|
|
1162
1179
|
} else if (hd.getMonth() !== core.months.AV) {
|
|
1163
1180
|
// Parashat Re'eh is always read in Av on 25, 27, 29 or 30.
|
|
1164
1181
|
// When it coincides with Erev Rosh Chodesh, the Haftarah is
|
|
@@ -1811,7 +1828,7 @@ var parshiyotObj = {
|
|
|
1811
1828
|
"num":29,
|
|
1812
1829
|
"hebrew":"אַחֲרֵי מוֹת",
|
|
1813
1830
|
"book":3,
|
|
1814
|
-
"haft":{"k":"
|
|
1831
|
+
"haft":{"k":"Amos","b":"9:7","e":"9:15"},
|
|
1815
1832
|
"seph":{"k":"Ezekiel","b":"22:1","e":"22:16"},
|
|
1816
1833
|
"fullkriyah":{
|
|
1817
1834
|
"1":["16:1","16:17"],
|
|
@@ -1831,7 +1848,7 @@ var parshiyotObj = {
|
|
|
1831
1848
|
"num":30,
|
|
1832
1849
|
"hebrew":"קְדשִׁים",
|
|
1833
1850
|
"book":3,
|
|
1834
|
-
"haft":{"k":"
|
|
1851
|
+
"haft":{"k":"Ezekiel","b":"22:1","e":"22:19"},
|
|
1835
1852
|
"seph":{"k":"Ezekiel","b":"20:2","e":"20:20"},
|
|
1836
1853
|
"fullkriyah":{
|
|
1837
1854
|
"1":["19:1","19:14"],
|
|
@@ -2345,6 +2362,8 @@ var parshiyotObj = {
|
|
|
2345
2362
|
"num1":29,
|
|
2346
2363
|
"num2":30,
|
|
2347
2364
|
"book":3,
|
|
2365
|
+
"haft":{"k":"Amos","b":"9:7","e":"9:15"},
|
|
2366
|
+
"seph":{"k":"Ezekiel","b":"20:2","e":"20:20"},
|
|
2348
2367
|
"fullkriyah":{
|
|
2349
2368
|
"1":["16:1","16:24"],
|
|
2350
2369
|
"2":["16:25","17:7"],
|
|
@@ -2469,14 +2488,18 @@ var parshiyotObj = {
|
|
|
2469
2488
|
|
|
2470
2489
|
/**
|
|
2471
2490
|
* on doubled parshiot, read only the second Haftarah
|
|
2472
|
-
* except for Nitzavim-Vayelech
|
|
2491
|
+
* except for Nitzavim-Vayelech and Achrei Mot-Kedoshim
|
|
2473
2492
|
* @private
|
|
2474
2493
|
* @param {string[]} parsha
|
|
2475
2494
|
* @return {string}
|
|
2476
2495
|
*/
|
|
2477
2496
|
function getHaftaraKey(parsha) {
|
|
2478
|
-
|
|
2479
|
-
|
|
2497
|
+
const first = parsha[0];
|
|
2498
|
+
if (parsha.length === 2 && first == 'Achrei Mot') {
|
|
2499
|
+
return parshaToString(parsha); // 'Achrei Mot-Kedoshim'
|
|
2500
|
+
}
|
|
2501
|
+
if (parsha.length === 1 || first == 'Nitzavim') {
|
|
2502
|
+
return first;
|
|
2480
2503
|
} else {
|
|
2481
2504
|
return parsha[1];
|
|
2482
2505
|
}
|
|
@@ -2723,6 +2746,8 @@ function findParshaHaShavua(saturday, il) {
|
|
|
2723
2746
|
*/
|
|
2724
2747
|
function getLeyningOnDate(hdate, il, wantarray = false) {
|
|
2725
2748
|
const dow = hdate.getDay();
|
|
2749
|
+
const arr = [];
|
|
2750
|
+
let hasParshaHaShavua = false;
|
|
2726
2751
|
if (dow === 6) {
|
|
2727
2752
|
const hyear = hdate.getFullYear();
|
|
2728
2753
|
const sedra = core.HebrewCalendar.getSedra(hyear, il);
|
|
@@ -2730,13 +2755,21 @@ function getLeyningOnDate(hdate, il, wantarray = false) {
|
|
|
2730
2755
|
if (!parsha.chag) {
|
|
2731
2756
|
const parshaEvent = new core.ParshaEvent(hdate, parsha.parsha, il);
|
|
2732
2757
|
const reading = getLeyningForParshaHaShavua(parshaEvent, il);
|
|
2733
|
-
|
|
2758
|
+
if (wantarray) {
|
|
2759
|
+
hasParshaHaShavua = true;
|
|
2760
|
+
arr.push(reading);
|
|
2761
|
+
} else {
|
|
2762
|
+
return reading;
|
|
2763
|
+
}
|
|
2734
2764
|
}
|
|
2735
2765
|
}
|
|
2736
2766
|
const events = core.HebrewCalendar.getHolidaysOnDate(hdate, il) || [];
|
|
2737
|
-
const arr = [];
|
|
2738
2767
|
let hasFullKriyah = false;
|
|
2739
2768
|
for (const ev of events) {
|
|
2769
|
+
const specialShabbat = Boolean(ev.getFlags() & core.flags.SPECIAL_SHABBAT);
|
|
2770
|
+
if (hasParshaHaShavua && specialShabbat) {
|
|
2771
|
+
continue;
|
|
2772
|
+
}
|
|
2740
2773
|
const reading = getLeyningForHoliday(ev, il);
|
|
2741
2774
|
if (reading) {
|
|
2742
2775
|
arr.push(reading);
|
package/dist/bundle.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @hebcal/leyning v8.1.
|
|
2
|
-
var hebcal__leyning=function(e,a){"use strict";var h={Genesis:[0,31,25,24,26,32,22,24,22,29,32,32,20,18,24,21,16,27,33,38,18,34,24,20,67,34,35,46,22,35,43,54,33,20,31,29,43,36,30,23,23,57,38,34,34,28,34,31,22,33,26],Exodus:[0,22,25,22,31,23,30,29,28,35,29,10,51,22,31,27,36,16,27,25,26,37,30,33,18,40,37,21,43,46,38,18,35,23,35,35,38,29,31,43,38],Leviticus:[0,17,16,17,35,26,23,38,36,24,20,47,8,59,57,33,34,16,30,37,27,24,33,44,23,55,46,34],Numbers:[0,54,34,51,49,31,27,89,26,23,36,35,16,33,45,41,35,28,32,22,29,35,41,30,25,19,65,23,31,39,17,54,42,56,29,34,13],Deuteronomy:[0,46,37,29,49,30,25,26,20,29,22,32,31,19,29,23,22,20,22,21,20,23,29,26,22,19,19,26,69,28,20,30,52,29,12],Joshua:[0,18,24,17,24,15,27,26,35,27,43,23,24,33,15,63,10,18,28,51,9,45,34,16,33],Judges:[0,36,23,31,24,31,40,25,35,57,18,40,15,25,20,20,31,13,31,30,48,25],Ruth:[0,22,23,18,22],"I Samuel":[0,28,36,21,22,12,21,17,22,27,27,15,25,23,52,35,23,58,30,24,42,16,23,28,23,43,25,12,25,11,31,13],"II Samuel":[0,27,32,39,12,25,23,29,18,13,19,27,31,39,33,37,23,29,32,44,26,22,51,39,25],"I Kings":[0,53,46,28,20,32,38,51,66,28,29,43,33,34,31,34,34,24,46,21,43,29,54],"II Kings":[0,18,25,27,44,27,33,20,29,37,36,20,22,25,29,38,20,41,37,37,21,26,20,37,20,30],Isaiah:[0,31,22,26,6,30,13,25,23,20,34,16,6,22,32,9,14,14,7,25,6,17,25,18,23,12,21,13,29,24,33,9,20,24,17,10,22,38,22,8,31,29,25,28,28,25,13,15,22,26,11,23,15,12,17,13,12,21,14,21,22,11,12,19,11,25,24],Jeremiah:[0,19,37,25,31,31,30,34,23,25,25,23,17,27,22,21,21,27,23,15,18,14,30,40,10,38,24,22,17,32,24,40,44,26,22,19,32,21,28,18,16,18,22,13,30,5,28,7,47,39,46,64,34],Lamentations:[0,22,22,66,22,22],Baruch:[0,22,35,38,37,9,72],Esther:[0,22,23,15,17,14,14,10,17,32,3],Ecclesiastes:[0,18,26,22,17,19,12,29,17,18,20,10,14],"Song of Songs":[0,17,17,11,16,16,12,14,14],Ezekiel:[0,28,10,27,17,17,14,27,18,11,22,25,28,23,23,8,63,24,32,14,44,37,31,49,27,17,21,36,26,21,26,18,32,33,31,15,38,28,23,29,49,26,20,27,31,25,24,23,35],Daniel:[0,21,49,100,34,30,29,28,27,27,21,45,13,64,42],Hosea:[0,9,25,5,19,15,11,16,14,17,15,11,15,15,10],Joel:[0,20,27,5,21],Amos:[0,15,16,15,13,27,14,17,14,15],Obadiah:[0,21],Jonah:[0,16,11,10,11],Micah:[0,16,13,12,14,14,16,20],Nachum:[0,14,14,19],Habakkuk:[0,17,20,19],Zephaniah:[0,18,15,20],Haggai:[0,15,23],Zechariah:[0,17,17,10,14,11,15,14,23,17,12,17,14,9,21],Malachi:[0,14,17,24]};const k=["","Genesis","Exodus","Leviticus","Numbers","Deuteronomy"];function o(e){if("string"==typeof e)return e;if(!Array.isArray(e)||0===e.length||e.length>2)throw new TypeError(`Bad parsha argument: ${e}`);let a=e[0];return 2==e.length&&(a+="-"+e[1]),a}function t(e){return JSON.parse(JSON.stringify(e))}function b(e){if(e.v)return e.v;const a=e.b.split(":"),k=e.e.split(":"),o=parseInt(a[0],10),t=parseInt(k[0],10),b=parseInt(a[1],10),i=parseInt(k[1],10);if(o===t)e.v=i-b+1;else if("string"==typeof e.k){const a=h[e.k];if("object"!=typeof a||!a.length)throw new ReferenceError(`Can't find numverses for ${e.k}`);let k=a[o]-b+1;for(let e=o+1;e<t;e++)k+=a[e];k+=i,e.v=k}return e.v}function i(e){return`${e.k} ${e.b}-${e.e}`}function r(e,a){const h=e.b,k=e.e,o=a?e.k+" ":"";if(h===k)return`${o}${h}`;const t=h.split(":"),b=k.split(":");return`${o}${h}-${t[0]===b[0]?b[1]:k}`}function n(e){return Array.isArray(e)?e.reduce(((e,a)=>e+a.v),0):e.v}function s(e){if(!e)return e;const a=t(e);return Array.isArray(a)?a.map(b):b(a),a}function l(e,a){const h=e.split(":").map((e=>+e)),k=a.split(":").map((e=>+e));return 100*h[0]+h[1]<100*k[0]+k[1]}function u(e){const a=Object.keys(e).filter((e=>{if(1===e.length)return!0;const a=e.charCodeAt(0);return a>=48&&a<=57}));let h=e[a[0]],k=h;const o=[];for(let t=0;t<a.length;t++){const b=e[a[t]];if(t===a.length-1&&b.k===k.k&&b.e===k.e)continue;const i=+k.e.split(":")[0],r=+b.b.split(":")[0],n=r===i||r===i+1;0===t||b.k===h.k&&!l(b.b,h.e)&&n||(o.push({k:h.k,b:h.b,e:k.e}),h=b),k=b}return o.push({k:h.k,b:h.b,e:k.e}),o}function f(e){Array.isArray(e)||(e=[e]);let a=e[0],h=r(a,!0);for(let k=1;k<e.length;k++){const o=e[k];o.k===a.k?h+=", ":h+=`; ${o.k} `,h+=r(o,!1),a=o}return h}var p={"Pesach I":{haft:[{k:"Joshua",b:"3:5",e:"3:7"},{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],seph:[{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],fullkriyah:{1:{p:15,k:2,b:"12:21",e:"12:24"},2:{p:15,k:2,b:"12:25",e:"12:28"},3:{p:15,k:2,b:"12:29",e:"12:36"},4:{p:15,k:2,b:"12:37",e:"12:42"},5:{p:15,k:2,b:"12:43",e:"12:51"},M:{p:41,k:4,b:"28:16",e:"28:25"}}},"Pesach I (on Shabbat)":{haft:[{k:"Joshua",b:"3:5",e:"3:7"},{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],seph:[{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],fullkriyah:{1:{p:15,k:2,b:"12:21",e:"12:24"},2:{p:15,k:2,b:"12:25",e:"12:28"},3:{p:15,k:2,b:"12:29",e:"12:32"},4:{p:15,k:2,b:"12:33",e:"12:36"},5:{p:15,k:2,b:"12:37",e:"12:42"},6:{p:15,k:2,b:"12:43",e:"12:47"},7:{p:15,k:2,b:"12:48",e:"12:51"},M:{p:41,k:4,b:"28:16",e:"28:25"}}},"Pesach II":{haft:[{k:"II Kings",b:"23:1",e:"23:9"},{k:"II Kings",b:"23:21",e:"23:25"}],fullkriyah:{1:{p:31,k:3,b:"22:26",e:"23:3"},2:{p:31,k:3,b:"23:4",e:"23:14"},3:{p:31,k:3,b:"23:15",e:"23:22"},4:{p:31,k:3,b:"23:23",e:"23:32"},5:{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"28:16",e:"28:25"}}},"Pesach II (CH''M)":{note:"Israel only - according to Vaani T'fillati Siddur Yisraeli",il:!0,fullkriyah:{1:{p:31,k:3,b:"22:26",e:"23:8"},2:{p:31,k:3,b:"23:9",e:"23:14"},3:{p:31,k:3,b:"23:15",e:"23:44"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 1":{fullkriyah:{1:{p:15,k:2,b:"13:1",e:"13:4"},2:{p:15,k:2,b:"13:5",e:"13:10"},3:{p:15,k:2,b:"13:11",e:"13:16"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 2":{fullkriyah:{1:{p:18,k:2,b:"22:24",e:"22:26"},2:{p:18,k:2,b:"22:27",e:"23:5"},3:{p:18,k:2,b:"23:6",e:"23:19"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 3":{fullkriyah:{1:{p:21,k:2,b:"34:1",e:"34:10"},2:{p:21,k:2,b:"34:11",e:"34:17"},3:{p:21,k:2,b:"34:18",e:"34:26"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 4":{fullkriyah:{1:{p:36,k:4,b:"9:1",e:"9:5"},2:{p:36,k:4,b:"9:6",e:"9:8"},3:{p:36,k:4,b:"9:9",e:"9:14"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Shabbat Chol ha-Moed":{megillah:"Song of Songs",haft:{k:"Ezekiel",b:"37:1",e:"37:14"},fullkriyah:{1:{p:21,k:2,b:"33:12",e:"33:16"},2:{p:21,k:2,b:"33:17",e:"33:19"},3:{p:21,k:2,b:"33:20",e:"33:23"},4:{p:21,k:2,b:"34:1",e:"34:3"},5:{p:21,k:2,b:"34:4",e:"34:10"},6:{p:21,k:2,b:"34:11",e:"34:17"},7:{p:21,k:2,b:"34:18",e:"34:26"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VII":{haft:{k:"II Samuel",b:"22:1",e:"22:51"},fullkriyah:{1:{p:16,k:2,b:"13:17",e:"13:22"},2:{p:16,k:2,b:"14:1",e:"14:8"},3:{p:16,k:2,b:"14:9",e:"14:14"},4:{p:16,k:2,b:"14:15",e:"14:25"},5:{p:16,k:2,b:"14:26",e:"15:26"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VII (on Shabbat)":{haft:{k:"II Samuel",b:"22:1",e:"22:51"},fullkriyah:{1:{p:16,k:2,b:"13:17",e:"13:19"},2:{p:16,k:2,b:"13:20",e:"13:22"},3:{p:16,k:2,b:"14:1",e:"14:4"},4:{p:16,k:2,b:"14:5",e:"14:8"},5:{p:16,k:2,b:"14:9",e:"14:14"},6:{p:16,k:2,b:"14:15",e:"14:25"},7:{p:16,k:2,b:"14:26",e:"15:26"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VIII":{haft:{k:"Isaiah",b:"10:32",e:"12:6"},fullkriyah:{1:{p:47,k:5,b:"15:19",e:"15:23"},2:{p:47,k:5,b:"16:1",e:"16:3"},3:{p:47,k:5,b:"16:4",e:"16:8"},4:{p:47,k:5,b:"16:9",e:"16:12"},5:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VIII (on Shabbat)":{haft:{k:"Isaiah",b:"10:32",e:"12:6"},fullkriyah:{1:{p:47,k:5,b:"14:22",e:"14:29"},2:{p:47,k:5,b:"15:1",e:"15:18"},3:{p:47,k:5,b:"15:19",e:"15:23"},4:{p:47,k:5,b:"16:1",e:"16:3"},5:{p:47,k:5,b:"16:4",e:"16:8"},6:{p:47,k:5,b:"16:9",e:"16:12"},7:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach III (CH''M)":{alias:!0,il:!0,key:"Pesach Chol ha-Moed Day 1"},"Pesach IV (CH''M)":{alias:!0,il:!0,key:"Pesach Chol ha-Moed Day 2"},"Pesach V (CH''M)":{alias:!0,il:!0,key:"Pesach Chol ha-Moed Day 3"},"Pesach VI (CH''M)":{alias:!0,il:!0,key:"Pesach Chol ha-Moed Day 4"},"Pesach Chol ha-Moed Day 2 on Sunday":{alias:!0,il:!1,key:"Pesach Chol ha-Moed Day 1"},"Pesach Chol ha-Moed Day 3 on Monday":{alias:!0,il:!1,key:"Pesach Chol ha-Moed Day 2"},Shavuot:{note:"Israel only",il:!0,megillah:"Ruth",haft:[{k:"Ezekiel",b:"1:1",e:"1:28"},{k:"Ezekiel",b:"3:12",e:"3:12"}],fullkriyah:{1:{p:17,k:2,b:"19:1",e:"19:6"},2:{p:17,k:2,b:"19:7",e:"19:13"},3:{p:17,k:2,b:"19:14",e:"19:19"},4:{p:17,k:2,b:"19:20",e:"20:14"},5:{p:17,k:2,b:"20:15",e:"20:23"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Shavuot I":{haft:[{k:"Ezekiel",b:"1:1",e:"1:28"},{k:"Ezekiel",b:"3:12",e:"3:12"}],fullkriyah:{1:{p:17,k:2,b:"19:1",e:"19:6"},2:{p:17,k:2,b:"19:7",e:"19:13"},3:{p:17,k:2,b:"19:14",e:"19:19"},4:{p:17,k:2,b:"19:20",e:"20:14"},5:{p:17,k:2,b:"20:15",e:"20:23"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Shavuot II":{megillah:"Ruth",haft:{k:"Habakkuk",b:"3:1",e:"3:19"},seph:{k:"Habakkuk",b:"2:20",e:"3:19"},fullkriyah:{1:{p:47,k:5,b:"15:19",e:"15:23"},2:{p:47,k:5,b:"16:1",e:"16:3"},3:{p:47,k:5,b:"16:4",e:"16:8"},4:{p:47,k:5,b:"16:9",e:"16:12"},5:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Shavuot II (on Shabbat)":{megillah:"Ruth",haft:{k:"Habakkuk",b:"3:1",e:"3:19"},seph:{k:"Habakkuk",b:"2:20",e:"3:19"},fullkriyah:{1:{p:47,k:5,b:"14:22",e:"14:29"},2:{p:47,k:5,b:"15:1",e:"15:18"},3:{p:47,k:5,b:"15:19",e:"15:23"},4:{p:47,k:5,b:"16:1",e:"16:3"},5:{p:47,k:5,b:"16:4",e:"16:8"},6:{p:47,k:5,b:"16:9",e:"16:12"},7:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Fast Day (Morning)":{fullkriyah:{1:{p:21,k:2,b:"32:11",e:"32:14"},2:{p:21,k:2,b:"34:1",e:"34:3"},3:{p:21,k:2,b:"34:4",e:"34:10"}}},"Fast Day (Afternoon)":{haft:{k:"Isaiah",b:"55:6",e:"56:8"},fullkriyah:{1:{p:21,k:2,b:"32:11",e:"32:14"},2:{p:21,k:2,b:"34:1",e:"34:3"},M:{p:21,k:2,b:"34:4",e:"34:10"}}},"Asara B'Tevet":{alias:!0,key:"Fast Day (Morning)"},"Ta'anit Esther":{alias:!0,key:"Fast Day (Morning)"},"Tzom Gedaliah":{alias:!0,key:"Fast Day (Morning)"},"Tzom Tammuz":{alias:!0,key:"Fast Day (Morning)"},"Asara B'Tevet (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Ta'anit Esther (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Tzom Gedaliah (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Tzom Tammuz (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Erev Tish'a B'Av":{megillah:"Lamentations"},"Tish'a B'Av":{haft:{k:"Jeremiah",b:"8:13",e:"9:23"},fullkriyah:{1:{p:45,k:5,b:"4:25",e:"4:29"},2:{p:45,k:5,b:"4:30",e:"4:35"},3:{p:45,k:5,b:"4:36",e:"4:40"}}},"Tish'a B'Av (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Rosh Hashana I":{haft:{k:"I Samuel",b:"1:1",e:"2:10"},fullkriyah:{1:{p:4,k:1,b:"21:1",e:"21:4"},2:{p:4,k:1,b:"21:5",e:"21:12"},3:{p:4,k:1,b:"21:13",e:"21:21"},4:{p:4,k:1,b:"21:22",e:"21:27"},5:{p:4,k:1,b:"21:28",e:"21:34"},M:{p:41,k:4,b:"29:1",e:"29:6"}}},"Rosh Hashana I (on Shabbat)":{haft:{k:"I Samuel",b:"1:1",e:"2:10"},fullkriyah:{1:{p:4,k:1,b:"21:1",e:"21:4"},2:{p:4,k:1,b:"21:5",e:"21:8"},3:{p:4,k:1,b:"21:9",e:"21:12"},4:{p:4,k:1,b:"21:13",e:"21:17"},5:{p:4,k:1,b:"21:18",e:"21:21"},6:{p:4,k:1,b:"21:22",e:"21:27"},7:{p:4,k:1,b:"21:28",e:"21:34"},M:{p:41,k:4,b:"29:1",e:"29:6"}}},"Rosh Hashana II":{haft:{k:"Jeremiah",b:"31:1",e:"31:19"},fullkriyah:{1:{p:4,k:1,b:"22:1",e:"22:3"},2:{p:4,k:1,b:"22:4",e:"22:8"},3:{p:4,k:1,b:"22:9",e:"22:14"},4:{p:4,k:1,b:"22:15",e:"22:19"},5:{p:4,k:1,b:"22:20",e:"22:24"},M:{p:41,k:4,b:"29:1",e:"29:6"}}},"Yom Kippur":{haft:{k:"Isaiah",b:"57:14",e:"58:14"},fullkriyah:{1:{p:29,k:3,b:"16:1",e:"16:6"},2:{p:29,k:3,b:"16:7",e:"16:11"},3:{p:29,k:3,b:"16:12",e:"16:17"},4:{p:29,k:3,b:"16:18",e:"16:24"},5:{p:29,k:3,b:"16:25",e:"16:30"},6:{p:29,k:3,b:"16:31",e:"16:34"},M:{p:41,k:4,b:"29:7",e:"29:11"}}},"Yom Kippur (on Shabbat)":{haft:{k:"Isaiah",b:"57:14",e:"58:14"},fullkriyah:{1:{p:29,k:3,b:"16:1",e:"16:3"},2:{p:29,k:3,b:"16:4",e:"16:6"},3:{p:29,k:3,b:"16:7",e:"16:11"},4:{p:29,k:3,b:"16:12",e:"16:17"},5:{p:29,k:3,b:"16:18",e:"16:24"},6:{p:29,k:3,b:"16:25",e:"16:30"},7:{p:29,k:3,b:"16:31",e:"16:34"},M:{p:41,k:4,b:"29:7",e:"29:11"}}},"Yom Kippur (Mincha)":{alias:!0,key:"Yom Kippur (Mincha, Traditional)"},"Yom Kippur (Mincha, Traditional)":{haft:[{k:"Jonah",b:"1:1",e:"4:11"},{k:"Micah",b:"7:18",e:"7:20"}],fullkriyah:{1:{p:29,k:3,b:"18:1",e:"18:5"},2:{p:29,k:3,b:"18:6",e:"18:21"},M:{p:29,k:3,b:"18:22",e:"18:30"}}},"Yom Kippur (Mincha, Alternate)":{haft:[{k:"Jonah",b:"1:1",e:"4:11"},{k:"Micah",b:"7:18",e:"7:20"}],fullkriyah:{1:{p:30,k:3,b:"19:1",e:"19:4"},2:{p:30,k:3,b:"19:5",e:"19:10"},M:{p:30,k:3,b:"19:11",e:"19:18"}}},"Sukkot I":{haft:{k:"Zechariah",b:"14:1",e:"14:21"},fullkriyah:{1:{p:31,k:3,b:"22:26",e:"23:3"},2:{p:31,k:3,b:"23:4",e:"23:14"},3:{p:31,k:3,b:"23:15",e:"23:22"},4:{p:31,k:3,b:"23:23",e:"23:32"},5:{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"29:12",e:"29:16"}}},"Sukkot I (on Shabbat)":{haft:{k:"Zechariah",b:"14:1",e:"14:21"},fullkriyah:{1:{p:31,k:3,b:"22:26",e:"22:33"},2:{p:31,k:3,b:"23:1",e:"23:3"},3:{p:31,k:3,b:"23:4",e:"23:8"},4:{p:31,k:3,b:"23:9",e:"23:14"},5:{p:31,k:3,b:"23:15",e:"23:22"},6:{p:31,k:3,b:"23:23",e:"23:32"},7:{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"29:12",e:"29:16"}}},"Sukkot II":{haft:{k:"I Kings",b:"8:2",e:"8:21"},fullkriyah:{1:{p:31,k:3,b:"22:26",e:"23:3"},2:{p:31,k:3,b:"23:4",e:"23:14"},3:{p:31,k:3,b:"23:15",e:"23:22"},4:{p:31,k:3,b:"23:23",e:"23:32"},5:{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"29:12",e:"29:16"}}},"Sukkot Chol ha-Moed Day 1":{fullkriyah:{1:{p:41,k:4,b:"29:17",e:"29:19"},2:{p:41,k:4,b:"29:20",e:"29:22"},3:{p:41,k:4,b:"29:23",e:"29:25"},4:{p:41,k:4,b:"29:17",e:"29:22"}}},"Sukkot Chol ha-Moed Day 2":{fullkriyah:{1:{p:41,k:4,b:"29:20",e:"29:22"},2:{p:41,k:4,b:"29:23",e:"29:25"},3:{p:41,k:4,b:"29:26",e:"29:28"},4:{p:41,k:4,b:"29:20",e:"29:25"}}},"Sukkot Chol ha-Moed Day 3":{fullkriyah:{1:{p:41,k:4,b:"29:23",e:"29:25"},2:{p:41,k:4,b:"29:26",e:"29:28"},3:{p:41,k:4,b:"29:29",e:"29:31"},4:{p:41,k:4,b:"29:23",e:"29:28"}}},"Sukkot Chol ha-Moed Day 4":{fullkriyah:{1:{p:41,k:4,b:"29:26",e:"29:28"},2:{p:41,k:4,b:"29:29",e:"29:31"},3:{p:41,k:4,b:"29:32",e:"29:34"},4:{p:41,k:4,b:"29:26",e:"29:31"}}},"Sukkot Chol ha-Moed Day 5":{fullkriyah:{1:{p:41,k:4,b:"29:29",e:"29:31"},2:{p:41,k:4,b:"29:32",e:"29:34"},3:{p:41,k:4,b:"29:35",e:"29:37"},4:{p:41,k:4,b:"29:29",e:"29:34"}}},"Sukkot Shabbat Chol ha-Moed":{megillah:"Ecclesiastes",haft:{k:"Ezekiel",b:"38:18",e:"39:16"},fullkriyah:{1:{p:21,k:2,b:"33:12",e:"33:16"},2:{p:21,k:2,b:"33:17",e:"33:19"},3:{p:21,k:2,b:"33:20",e:"33:23"},4:{p:21,k:2,b:"34:1",e:"34:3"},5:{p:21,k:2,b:"34:4",e:"34:10"},6:{p:21,k:2,b:"34:11",e:"34:17"},7:{p:21,k:2,b:"34:18",e:"34:26"},"M-day1":{p:41,k:4,b:"29:17",e:"29:22"},"M-day2":{p:41,k:4,b:"29:20",e:"29:25"},"M-day3":{p:41,k:4,b:"29:23",e:"29:28"},"M-day4":{p:41,k:4,b:"29:26",e:"29:31"},"M-day5":{p:41,k:4,b:"29:29",e:"29:34"}}},"Sukkot Final Day (Hoshana Raba)":{fullkriyah:{1:{p:41,k:4,b:"29:26",e:"29:28"},2:{p:41,k:4,b:"29:29",e:"29:31"},3:{p:41,k:4,b:"29:32",e:"29:34"},4:{p:41,k:4,b:"29:29",e:"29:34"}}},"Shmini Atzeret":{haft:{k:"I Kings",b:"8:54",e:"8:66"},fullkriyah:{1:{p:47,k:5,b:"14:22",e:"14:29"},2:{p:47,k:5,b:"15:1",e:"15:18"},3:{p:47,k:5,b:"15:19",e:"16:3"},4:{p:47,k:5,b:"16:4",e:"16:8"},5:{p:47,k:5,b:"16:9",e:"16:17"},M:{p:41,k:4,b:"29:35",e:"30:1"}}},"Shmini Atzeret (on Shabbat)":{haft:{k:"I Kings",b:"8:54",e:"8:66"},fullkriyah:{1:{p:47,k:5,b:"14:22",e:"14:29"},2:{p:47,k:5,b:"15:1",e:"15:18"},3:{p:47,k:5,b:"15:19",e:"15:23"},4:{p:47,k:5,b:"16:1",e:"16:3"},5:{p:47,k:5,b:"16:4",e:"16:8"},6:{p:47,k:5,b:"16:9",e:"16:12"},7:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"29:35",e:"30:1"}}},"Erev Simchat Torah":{fullkriyah:{1:{p:54,k:5,b:"33:1",e:"33:7"},2:{p:54,k:5,b:"33:8",e:"33:12"},3:{p:54,k:5,b:"33:13",e:"33:17"}}},"Simchat Torah":{haft:{k:"Joshua",b:"1:1",e:"1:18"},fullkriyah:{1:{p:54,k:5,b:"33:1",e:"33:7"},2:{p:54,k:5,b:"33:8",e:"33:12"},3:{p:54,k:5,b:"33:13",e:"33:17"},4:{p:54,k:5,b:"33:18",e:"33:21"},5:{p:54,k:5,b:"33:22",e:"33:26"},6:{p:54,k:5,b:"33:27",e:"34:12"},7:{p:1,k:1,b:"1:1",e:"2:3"},M:{p:41,k:4,b:"29:35",e:"30:1"}}},"Shabbat Rosh Chodesh Chanukah":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{7:{p:41,k:4,b:"28:9",e:"28:15"},M:{p:35,k:4,b:"7:42",e:"7:47"}}},"Chanukah Day 1":{fullkriyah:{1:{p:35,k:4,b:"7:1",e:"7:11"},2:{p:35,k:4,b:"7:12",e:"7:14"},3:{p:35,k:4,b:"7:15",e:"7:17"}},alt:{1:{p:35,k:4,b:"7:1",e:"7:3"},2:{p:35,k:4,b:"7:4",e:"7:11"},3:{p:35,k:4,b:"7:12",e:"7:17"}}},"Chanukah Day 1 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:1",e:"7:17"}}},"Chanukah Day 2":{fullkriyah:{1:{p:35,k:4,b:"7:18",e:"7:20"},2:{p:35,k:4,b:"7:21",e:"7:23"},3:{p:35,k:4,b:"7:24",e:"7:29"}},alt:{1:{p:35,k:4,b:"7:18",e:"7:20"},2:{p:35,k:4,b:"7:21",e:"7:23"},3:{p:35,k:4,b:"7:18",e:"7:23"}}},"Chanukah Day 2 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:18",e:"7:23"}}},"Chanukah Day 3":{fullkriyah:{1:{p:35,k:4,b:"7:24",e:"7:26"},2:{p:35,k:4,b:"7:27",e:"7:29"},3:{p:35,k:4,b:"7:30",e:"7:35"}},alt:{1:{p:35,k:4,b:"7:24",e:"7:26"},2:{p:35,k:4,b:"7:27",e:"7:29"},3:{p:35,k:4,b:"7:24",e:"7:29"}}},"Chanukah Day 3 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:24",e:"7:29"}}},"Chanukah Day 4":{fullkriyah:{1:{p:35,k:4,b:"7:30",e:"7:32"},2:{p:35,k:4,b:"7:33",e:"7:35"},3:{p:35,k:4,b:"7:36",e:"7:41"}},alt:{1:{p:35,k:4,b:"7:30",e:"7:32"},2:{p:35,k:4,b:"7:33",e:"7:35"},3:{p:35,k:4,b:"7:30",e:"7:35"}}},"Chanukah Day 4 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:30",e:"7:35"}}},"Chanukah Day 5":{fullkriyah:{1:{p:35,k:4,b:"7:36",e:"7:38"},2:{p:35,k:4,b:"7:39",e:"7:41"},3:{p:35,k:4,b:"7:42",e:"7:47"}},alt:{1:{p:35,k:4,b:"7:36",e:"7:38"},2:{p:35,k:4,b:"7:39",e:"7:41"},3:{p:35,k:4,b:"7:36",e:"7:41"}}},"Chanukah Day 5 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:36",e:"7:41"}}},"Chanukah Day 6":{fullkriyah:{1:{p:41,k:4,b:"28:1",e:"28:5"},2:{p:41,k:4,b:"28:6",e:"28:10"},3:{p:41,k:4,b:"28:11",e:"28:15"},4:{p:35,k:4,b:"7:42",e:"7:47"}}},"Chanukah Day 7":{fullkriyah:{1:{p:35,k:4,b:"7:48",e:"7:50"},2:{p:35,k:4,b:"7:51",e:"7:53"},3:{p:35,k:4,b:"7:54",e:"7:59"}},alt:{1:{p:35,k:4,b:"7:48",e:"7:50"},2:{p:35,k:4,b:"7:51",e:"7:53"},3:{p:35,k:4,b:"7:48",e:"7:53"}}},"Chanukah Day 7 (on Rosh Chodesh)":{fullkriyah:{1:{p:41,k:4,b:"28:1",e:"28:5"},2:{p:41,k:4,b:"28:6",e:"28:10"},3:{p:41,k:4,b:"28:11",e:"28:15"},4:{p:35,k:4,b:"7:48",e:"7:53"}}},"Chanukah Day 7 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:48",e:"7:53"}}},"Chanukah Day 8":{fullkriyah:{1:{p:35,k:4,b:"7:54",e:"7:56"},2:{p:35,k:4,b:"7:57",e:"7:59"},3:{p:35,k:4,b:"7:60",e:"8:4"}}},"Chanukah Day 8 (on Shabbat)":{haft:{k:"I Kings",b:"7:40",e:"7:50"},fullkriyah:{M:{p:35,k:4,b:"7:54",e:"8:4"}}},"Erev Purim":{megillah:"Esther"},Purim:{megillah:"Esther",fullkriyah:{1:{p:16,k:2,b:"17:8",e:"17:10"},2:{p:16,k:2,b:"17:11",e:"17:13"},3:{p:16,k:2,b:"17:14",e:"17:16"}}},"Shushan Purim":{note:"Jerusalem & walled cities only",il:!0,megillah:"Esther",fullkriyah:{1:{p:16,k:2,b:"17:8",e:"17:10"},2:{p:16,k:2,b:"17:11",e:"17:13"},3:{p:16,k:2,b:"17:14",e:"17:16"}}},"Shushan Purim (on Shabbat)":{il:!0,note:"Jerusalem & walled cities only: special maftir Exodus 17:8-16, same Haftara as Shabbat Zachor"},"Shabbat HaChodesh":{haft:{k:"Ezekiel",b:"45:16",e:"46:18"},seph:{k:"Ezekiel",b:"45:18",e:"46:15"},fullkriyah:{M:{p:15,k:2,b:"12:1",e:"12:20"}}},"Shabbat HaChodesh (on Rosh Chodesh)":{haft:{k:"Ezekiel",b:"45:16",e:"46:18"},seph:{k:"Ezekiel",b:"45:18",e:"46:15"},fullkriyah:{7:{p:41,k:4,b:"28:9",e:"28:15"},M:{p:15,k:2,b:"12:1",e:"12:20"}}},"Shabbat HaGadol":{haft:{k:"Malachi",b:"3:4",e:"3:24"}},"Shabbat Parah":{haft:{k:"Ezekiel",b:"36:16",e:"36:38"},seph:{k:"Ezekiel",b:"36:16",e:"36:36"},fullkriyah:{M:{p:39,k:4,b:"19:1",e:"19:22"}}},"Shabbat Shekalim":{haft:{k:"II Kings",b:"12:1",e:"12:17"},seph:{k:"II Kings",b:"11:17",e:"12:17"},fullkriyah:{M:{p:21,k:2,b:"30:11",e:"30:16"}}},"Shabbat Shekalim (on Rosh Chodesh)":{haft:{k:"II Kings",b:"12:1",e:"12:17"},seph:{k:"II Kings",b:"11:17",e:"12:17"},fullkriyah:{7:{p:41,k:4,b:"28:9",e:"28:15"},M:{p:21,k:2,b:"30:11",e:"30:16"}}},"Shabbat Shuva (with Vayeilech)":{haft:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Micah",b:"7:18",e:"7:20"}]},"Shabbat Shuva (with Ha'azinu)":{haft:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Joel",b:"2:15",e:"2:27"}],seph:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Micah",b:"7:18",e:"7:20"}]},"Shabbat Shuva":{haft:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Micah",b:"7:18",e:"7:20"},{k:"Joel",b:"2:15",e:"2:27"}]},"Shabbat Zachor":{haft:{k:"I Samuel",b:"15:2",e:"15:34"},seph:{k:"I Samuel",b:"15:1",e:"15:34"},fullkriyah:{M:{p:49,k:5,b:"25:17",e:"25:19"}}},"Pinchas occurring after 17 Tammuz":{haft:{k:"Jeremiah",b:"1:1",e:"2:3"}},"Masei on Shabbat Rosh Chodesh":{haft:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"3:4",e:"3:4"}],seph:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"4:1",e:"4:2"},{k:"Isaiah",b:"66:1",e:"66:1"},{k:"Isaiah",b:"66:23",e:"66:23"}],fullkriyah:{M:{p:41,k:4,b:"28:9",e:"28:15"}}},"Matot-Masei on Shabbat Rosh Chodesh":{alias:!0,key:"Masei on Shabbat Rosh Chodesh"},"Ki Teitzei with 3rd Haftarah of Consolation":{haft:[{k:"Isaiah",b:"54:1",e:"54:10"},{k:"Isaiah",b:"54:11",e:"55:5"}]},"Rosh Chodesh":{fullkriyah:{1:{p:41,k:4,b:"28:1",e:"28:3"},2:{p:41,k:4,b:"28:3",e:"28:5"},3:{p:41,k:4,b:"28:6",e:"28:10"},4:{p:41,k:4,b:"28:11",e:"28:15"}}},"Rosh Chodesh Nisan":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Iyyar":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Sivan":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Tamuz":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Av":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Elul":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Tishrei":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Cheshvan":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Kislev":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Sh'vat":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Adar":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Adar I":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Adar II":{alias:!0,key:"Rosh Chodesh"},"Shabbat Rosh Chodesh":{haft:{k:"Isaiah",b:"66:1",e:"66:24"},fullkriyah:{M:{p:41,k:4,b:"28:9",e:"28:15"}}},"Shabbat Machar Chodesh":{haft:{k:"I Samuel",b:"20:18",e:"20:42"}}};function y(e){return"object"==typeof p[e]}function c(e){let a=p[e];if(void 0===a)return;if(a.alias){const h=p[a.key];if(void 0===h)throw new Error(`Leyning alias ${e} => ${a.key} not found`);a=h}const h=a.fullkriyah?t(a):a;if(h.fullkriyah)for(const e of Object.values(h.fullkriyah))"number"==typeof e.k&&(e.k=k[e.k]);return a.note&&(h.note=a.note),h}const m=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.HEBREW_DATE|a.flags.MISHNA_YOMI|a.flags.MODERN_HOLIDAY|a.flags.YERUSHALMI_YOMI;function d(e,h=!1){if(void 0!==e.eventTime)return;const k=e.getFlags();if(k&m)return;const o=e.getDesc();if(k&a.flags.EREV&&!y(o))return;const t=e.getDate(),b=t.getDate(),i=t.abs()%7,r=t.getMonth(),n=6==i,s=1==b||30==b,l=e.basename(),u="Pesach"===l;if(h&&u)return n?15===b||21===b?o+" (on Shabbat)":"Pesach Shabbat Chol ha-Moed":o;const f=e.cholHaMoedDay;if(1==b&&r===a.months.TISHREI)return n?"Rosh Hashana I (on Shabbat)":"Rosh Hashana I";if(f){if(n)return l+" Shabbat Chol ha-Moed";if("Sukkot VII (Hoshana Raba)"==o)return"Sukkot Final Day (Hoshana Raba)";if(u&&f){if(0===i&&"Pesach IV (CH''M)"===o)return"Pesach Chol ha-Moed Day 2 on Sunday";if(1===i&&"Pesach V (CH''M)"===o)return"Pesach Chol ha-Moed Day 3 on Monday"}return`${l} Chol ha-Moed Day ${f}`}if(e.chanukahDay)return n&&s?"Shabbat Rosh Chodesh Chanukah":s&&7==e.chanukahDay?"Chanukah Day 7 (on Rosh Chodesh)":n?`Chanukah Day ${e.chanukahDay} (on Shabbat)`:`Chanukah Day ${e.chanukahDay}`;if(s&&("Shabbat HaChodesh"==o||"Shabbat Shekalim"==o))return o+" (on Rosh Chodesh)";if(h&&"Shmini Atzeret"==o)return"Simchat Torah";if("Chag HaBanot"!==o){if(n&&"Shabbat"!=o.substring(0,7)){if(s)return"Rosh Chodesh Tevet"===o?"Shabbat Rosh Chodesh Chanukah":"Shabbat Rosh Chodesh";const e=o+" (on Shabbat)";if(y(e))return e}if(y(o))return o;if(n){const e=t.next().getDate();if(30===e||1===e)return"Shabbat Machar Chodesh"}if("Rosh Hashana LaBehemot"!==o)return"Rosh Chodesh Tevet"===o?n?"Shabbat Rosh Chodesh Chanukah":30===b||a.HDate.shortKislev(t.getFullYear())?"Chanukah Day 6":"Chanukah Day 7 (on Rosh Chodesh)":s?o:"Tish'a B'Av (observed)"===o?"Tish'a B'Av":void 0}}function M(e,a){a[7]&&(!function(e){const a=t(e[6]),h=e[7];if(a.k!==h.k)throw new Error("Impossible to combine aliyot 6 & 7: "+JSON.stringify(e));delete e[7],e[6]={k:a.k,b:a.b,e:h.e},a.v&&h.v&&(e[6].v=a.v+h.v)}(e),e[7]=t(a[7]),b(e[7])),a.M&&(e.M=t(a.M),b(e.M))}function g(e,h,k,b){let i,r,n=!1;const l={};function u(e){const a=c(e);if(a&&("boolean"!=typeof a.il||k===a.il)&&(a.haft&&!n&&(i=s(a.haft),l.haftara=e,n=!0,a.seph&&(r=s(a.seph),l.sephardic=e)),a.fullkriyah)){const h=t(b);M(h,a.fullkriyah);for(const h of Object.keys(a.fullkriyah))l[h]=e;b=h}}const f=o(e),p=(a.HebrewCalendar.getHolidaysOnDate(h,k)||[]).filter((e=>!(e.getFlags()&a.flags.ROSH_CHODESH)));for(const e of p)if("Shabbat Shuva"===e.getDesc())u(`Shabbat Shuva (with ${f})`);else{const a=d(e,k);a&&u(a)}if(!i){const e=h.getDate();if("Pinchas"===f&&e>17)u("Pinchas occurring after 17 Tammuz");else if(30===e||1===e){u("Masei"===f||"Matot-Masei"===f?`${f} on Shabbat Rosh Chodesh`:"Shabbat Rosh Chodesh")}else if("Ki Teitzei"===f&&14===e)u("Ki Teitzei with 3rd Haftarah of Consolation");else if(h.getMonth()!==a.months.AV){const e=h.next().getDate();30!==e&&1!==e||u("Shabbat Machar Chodesh")}}return{aliyot:b,reason:l,haft:i,seph:r}}function w(e,k,o){if("string"!=typeof e)return;const i=c(e);if(void 0===i)return;if("boolean"==typeof i.il&&"boolean"==typeof o&&o!==i.il)return;const r={name:{en:e,he:a.Locale.lookupTranslation(e,"he")}};if(i.fullkriyah){if(r.fullkriyah=t(i.fullkriyah),"Sukkot Shabbat Chol ha-Moed"===e&&k){r.fullkriyah.M=r.fullkriyah[`M-day${k}`];for(let e=1;e<=5;e++)delete r.fullkriyah[`M-day${e}`]}if("object"==typeof r.fullkriyah[1]){const e=u(r.fullkriyah);r.summary=f(e),e.length>1&&(r.summaryParts=e)}Object.values(r.fullkriyah).map((e=>b(e)))}if(i.haft){const e=r.haft=s(i.haft);r.haftara=f(e),r.haftaraNumV=n(e)}if(i.seph){const e=r.seph=s(i.seph);r.sephardic=f(e),r.sephardicNumV=n(e)}if(i.megillah){const e=i.megillah,a=h[e],k={};for(let h=1;h<a.length;h++){const o=a[h];k[`${h}`]={k:e,b:`${h}:1`,e:`${h}:${o}`,v:o}}r.megillah=k}return i.note&&(r.note=i.note),r}function S(e,h=!1){if("object"!=typeof e||"function"!=typeof e.getFlags)throw new TypeError(`Bad event argument: ${e}`);if(void 0!==e.eventTime)return;if(e.getFlags()&a.flags.PARSHA_HASHAVUA)throw new TypeError(`Event should be a holiday: ${e.getDesc()}`);if(e.getFlags()&m)return;return w(d(e,h),e.cholHaMoedDay,h)}var I={Bereshit:{num:1,hebrew:"בְּרֵאשִׁית",book:1,haft:{k:"Isaiah",b:"42:5",e:"43:10"},seph:{k:"Isaiah",b:"42:5",e:"42:21"},fullkriyah:{1:["1:1","2:3"],2:["2:4","2:19"],3:["2:20","3:21"],4:["3:22","4:18"],5:["4:19","4:22"],6:["4:23","5:24"],7:["5:25","6:8"],M:["6:5","6:8"]},weekday:{1:["1:1","1:5"],2:["1:6","1:8"],3:["1:9","1:13"]}},Noach:{num:2,hebrew:"נֹחַ",book:1,haft:{k:"Isaiah",b:"54:1",e:"55:5"},seph:{k:"Isaiah",b:"54:1",e:"54:10"},fullkriyah:{1:["6:9","6:22"],2:["7:1","7:16"],3:["7:17","8:14"],4:["8:15","9:7"],5:["9:8","9:17"],6:["9:18","10:32"],7:["11:1","11:32"],M:["11:29","11:32"]},weekday:{1:["6:9","6:16"],2:["6:17","6:19"],3:["6:20","6:22"]}},"Lech-Lecha":{num:3,hebrew:"לֶךְ־לְךָ",book:1,haft:{k:"Isaiah",b:"40:27",e:"41:16"},fullkriyah:{1:["12:1","12:13"],2:["12:14","13:4"],3:["13:5","13:18"],4:["14:1","14:20"],5:["14:21","15:6"],6:["15:7","17:6"],7:["17:7","17:27"],M:["17:24","17:27"]},weekday:{1:["12:1","12:3"],2:["12:4","12:9"],3:["12:10","12:13"]}},Vayera:{num:4,hebrew:"וַיֵּרָא",book:1,haft:{k:"II Kings",b:"4:1",e:"4:37"},seph:{k:"II Kings",b:"4:1",e:"4:23"},fullkriyah:{1:["18:1","18:14"],2:["18:15","18:33"],3:["19:1","19:20"],4:["19:21","21:4"],5:["21:5","21:21"],6:["21:22","21:34"],7:["22:1","22:24"],M:["22:20","22:24"]},weekday:{1:["18:1","18:5"],2:["18:6","18:8"],3:["18:9","18:14"]}},"Chayei Sara":{num:5,hebrew:"חַיֵּי שָֹרָה",book:1,haft:{k:"I Kings",b:"1:1",e:"1:31"},fullkriyah:{1:["23:1","23:16"],2:["23:17","24:9"],3:["24:10","24:26"],4:["24:27","24:52"],5:["24:53","24:67"],6:["25:1","25:11"],7:["25:12","25:18"],M:["25:16","25:18"]},weekday:{1:["23:1","23:7"],2:["23:8","23:12"],3:["23:13","23:16"]}},Toldot:{num:6,hebrew:"תּוֹלְדוֹת",book:1,haft:{k:"Malachi",b:"1:1",e:"2:7"},fullkriyah:{1:["25:19","26:5"],2:["26:6","26:12"],3:["26:13","26:22"],4:["26:23","26:29"],5:["26:30","27:27"],6:["27:28","28:4"],7:["28:5","28:9"],M:["28:7","28:9"]},weekday:{1:["25:19","25:22"],2:["25:23","25:26"],3:["25:27","26:5"]}},Vayetzei:{num:7,hebrew:"וַיֵּצֵא",book:1,haft:{k:"Hosea",b:"12:13",e:"14:10"},seph:{k:"Hosea",b:"11:7",e:"12:12"},fullkriyah:{1:["28:10","28:22"],2:["29:1","29:17"],3:["29:18","30:13"],4:["30:14","30:27"],5:["30:28","31:16"],6:["31:17","31:42"],7:["31:43","32:3"],M:["32:1","32:3"]},weekday:{1:["28:10","28:12"],2:["28:13","28:17"],3:["28:18","28:22"]}},Vayishlach:{num:8,hebrew:"וַיִּשְׁלַח",book:1,haft:{k:"Obadiah",b:"1:1",e:"1:21"},fullkriyah:{1:["32:4","32:13"],2:["32:14","32:30"],3:["32:31","33:5"],4:["33:6","33:20"],5:["34:1","35:11"],6:["35:12","36:19"],7:["36:20","36:43"],M:["36:40","36:43"]},weekday:{1:["32:4","32:6"],2:["32:7","32:9"],3:["32:10","32:13"]}},Vayeshev:{num:9,hebrew:"וַיֵּשֶׁב",book:1,haft:{k:"Amos",b:"2:6",e:"3:8"},fullkriyah:{1:["37:1","37:11"],2:["37:12","37:22"],3:["37:23","37:36"],4:["38:1","38:30"],5:["39:1","39:6"],6:["39:7","39:23"],7:["40:1","40:23"],M:["40:20","40:23"]},weekday:{1:["37:1","37:3"],2:["37:4","37:7"],3:["37:8","37:11"]}},Miketz:{num:10,hebrew:"מִקֵּץ",book:1,haft:{k:"I Kings",b:"3:15",e:"4:1"},fullkriyah:{1:["41:1","41:14"],2:["41:15","41:38"],3:["41:39","41:52"],4:["41:53","42:18"],5:["42:19","43:15"],6:["43:16","43:29"],7:["43:30","44:17"],M:["44:14","44:17"]},weekday:{1:["41:1","41:4"],2:["41:5","41:7"],3:["41:8","41:14"]}},Vayigash:{num:11,hebrew:"וַיִּגַּשׁ",book:1,haft:{k:"Ezekiel",b:"37:15",e:"37:28"},fullkriyah:{1:["44:18","44:30"],2:["44:31","45:7"],3:["45:8","45:18"],4:["45:19","45:27"],5:["45:28","46:27"],6:["46:28","47:10"],7:["47:11","47:27"],M:["47:25","47:27"]},weekday:{1:["44:18","44:20"],2:["44:21","44:24"],3:["44:25","44:30"]}},Vayechi:{num:12,hebrew:"וַיְחִי",book:1,haft:{k:"I Kings",b:"2:1",e:"2:12"},fullkriyah:{1:["47:28","48:9"],2:["48:10","48:16"],3:["48:17","48:22"],4:["49:1","49:18"],5:["49:19","49:26"],6:["49:27","50:20"],7:["50:21","50:26"],M:["50:23","50:26"]},weekday:{1:["47:28","47:31"],2:["48:1","48:3"],3:["48:4","48:9"]}},Shemot:{num:13,hebrew:"שְׁמוֹת",book:2,haft:[{k:"Isaiah",b:"27:6",e:"28:13"},{k:"Isaiah",b:"29:22",e:"29:23"}],seph:{k:"Jeremiah",b:"1:1",e:"2:3"},fullkriyah:{1:["1:1","1:17"],2:["1:18","2:10"],3:["2:11","2:25"],4:["3:1","3:15"],5:["3:16","4:17"],6:["4:18","4:31"],7:["5:1","6:1"],M:["5:22","6:1"]},weekday:{1:["1:1","1:7"],2:["1:8","1:12"],3:["1:13","1:17"]}},Vaera:{num:14,hebrew:"וָאֵרָא",book:2,haft:{k:"Ezekiel",b:"28:25",e:"29:21"},fullkriyah:{1:["6:2","6:13"],2:["6:14","6:28"],3:["6:29","7:7"],4:["7:8","8:6"],5:["8:7","8:18"],6:["8:19","9:16"],7:["9:17","9:35"],M:["9:33","9:35"]},weekday:{1:["6:2","6:5"],2:["6:6","6:9"],3:["6:10","6:13"]}},Bo:{num:15,hebrew:"בֹּא",book:2,haft:{k:"Jeremiah",b:"46:13",e:"46:28"},fullkriyah:{1:["10:1","10:11"],2:["10:12","10:23"],3:["10:24","11:3"],4:["11:4","12:20"],5:["12:21","12:28"],6:["12:29","12:51"],7:["13:1","13:16"],M:["13:14","13:16"]},weekday:{1:["10:1","10:3"],2:["10:4","10:6"],3:["10:7","10:11"]}},Beshalach:{num:16,hebrew:"בְּשַׁלַּח",book:2,haft:{k:"Judges",b:"4:4",e:"5:31"},seph:{k:"Judges",b:"5:1",e:"5:31"},fullkriyah:{1:["13:17","14:8"],2:["14:9","14:14"],3:["14:15","14:25"],4:["14:26","15:26"],5:["15:27","16:10"],6:["16:11","16:36"],7:["17:1","17:16"],M:["17:14","17:16"]},weekday:{1:["13:17","13:22"],2:["14:1","14:4"],3:["14:5","14:8"]}},Yitro:{num:17,hebrew:"יִתְרוֹ",book:2,haft:[{k:"Isaiah",b:"6:1",e:"7:6"},{k:"Isaiah",b:"9:5",e:"9:6"}],seph:{k:"Isaiah",b:"6:1",e:"6:13"},fullkriyah:{1:["18:1","18:12"],2:["18:13","18:23"],3:["18:24","18:27"],4:["19:1","19:6"],5:["19:7","19:19"],6:["19:20","20:14"],7:["20:15","20:23"],M:["20:19","20:23"]},weekday:{1:["18:1","18:4"],2:["18:5","18:8"],3:["18:9","18:12"]}},Mishpatim:{num:18,hebrew:"מִּשְׁפָּטִים",book:2,haft:[{k:"Jeremiah",b:"34:8",e:"34:22"},{k:"Jeremiah",b:"33:25",e:"33:26"}],fullkriyah:{1:["21:1","21:19"],2:["21:20","22:3"],3:["22:4","22:26"],4:["22:27","23:5"],5:["23:6","23:19"],6:["23:20","23:25"],7:["23:26","24:18"],M:["24:15","24:18"]},weekday:{1:["21:1","21:6"],2:["21:7","21:11"],3:["21:12","21:19"]}},Terumah:{num:19,hebrew:"תְּרוּמָה",book:2,haft:{k:"I Kings",b:"5:26",e:"6:13"},fullkriyah:{1:["25:1","25:16"],2:["25:17","25:30"],3:["25:31","26:14"],4:["26:15","26:30"],5:["26:31","26:37"],6:["27:1","27:8"],7:["27:9","27:19"],M:["27:17","27:19"]},weekday:{1:["25:1","25:5"],2:["25:6","25:9"],3:["25:10","25:16"]}},Tetzaveh:{num:20,hebrew:"תְּצַוֶּה",book:2,haft:{k:"Ezekiel",b:"43:10",e:"43:27"},fullkriyah:{1:["27:20","28:12"],2:["28:13","28:30"],3:["28:31","28:43"],4:["29:1","29:18"],5:["29:19","29:37"],6:["29:38","29:46"],7:["30:1","30:10"],M:["30:8","30:10"]},weekday:{1:["27:20","28:5"],2:["28:6","28:9"],3:["28:10","28:12"]}},"Ki Tisa":{num:21,hebrew:"כִּי תִשָּׂא",book:2,haft:{k:"I Kings",b:"18:1",e:"18:39"},seph:{k:"I Kings",b:"18:20",e:"18:39"},fullkriyah:{1:["30:11","31:17"],2:["31:18","33:11"],3:["33:12","33:16"],4:["33:17","33:23"],5:["34:1","34:9"],6:["34:10","34:26"],7:["34:27","34:35"],M:["34:33","34:35"]},weekday:{1:["30:11","30:13"],2:["30:14","30:16"],3:["30:17","30:21"]}},Vayakhel:{num:22,hebrew:"וַיַּקְהֵל",book:2,haft:{k:"I Kings",b:"7:40",e:"7:50"},seph:{k:"I Kings",b:"7:13",e:"7:26"},fullkriyah:{1:["35:1","35:20"],2:["35:21","35:29"],3:["35:30","36:7"],4:["36:8","36:19"],5:["36:20","37:16"],6:["37:17","37:29"],7:["38:1","38:20"],M:["38:18","38:20"]},weekday:{1:["35:1","35:3"],2:["35:4","35:10"],3:["35:11","35:20"]}},Pekudei:{num:23,hebrew:"פְקוּדֵי",book:2,haft:{k:"I Kings",b:"7:51",e:"8:21"},seph:{k:"I Kings",b:"7:40",e:"7:50"},fullkriyah:{1:["38:21","39:1"],2:["39:2","39:21"],3:["39:22","39:32"],4:["39:33","39:43"],5:["40:1","40:16"],6:["40:17","40:27"],7:["40:28","40:38"],M:["40:34","40:38"]},weekday:{1:["38:21","38:23"],2:["38:24","38:27"],3:["38:28","39:1"]}},Vayikra:{num:24,hebrew:"וַיִּקְרָא",book:3,haft:{k:"Isaiah",b:"43:21",e:"44:23"},fullkriyah:{1:["1:1","1:13"],2:["1:14","2:6"],3:["2:7","2:16"],4:["3:1","3:17"],5:["4:1","4:26"],6:["4:27","5:10"],7:["5:11","5:26"],M:["5:24","5:26"]},weekday:{1:["1:1","1:4"],2:["1:5","1:9"],3:["1:10","1:13"]}},Tzav:{num:25,hebrew:"צַו",book:3,haft:[{k:"Jeremiah",b:"7:21",e:"8:3"},{k:"Jeremiah",b:"9:22",e:"9:23"}],fullkriyah:{1:["6:1","6:11"],2:["6:12","7:10"],3:["7:11","7:38"],4:["8:1","8:13"],5:["8:14","8:21"],6:["8:22","8:29"],7:["8:30","8:36"],M:["8:33","8:36"]},weekday:{1:["6:1","6:3"],2:["6:4","6:6"],3:["6:7","6:11"]}},Shmini:{num:26,hebrew:"שְּׁמִינִי",book:3,haft:{k:"II Samuel",b:"6:1",e:"7:17"},seph:{k:"II Samuel",b:"6:1",e:"6:19"},fullkriyah:{1:["9:1","9:16"],2:["9:17","9:23"],3:["9:24","10:11"],4:["10:12","10:15"],5:["10:16","10:20"],6:["11:1","11:32"],7:["11:33","11:47"],M:["11:45","11:47"]},weekday:{1:["9:1","9:6"],2:["9:7","9:10"],3:["9:11","9:16"]}},Tazria:{num:27,hebrew:"תַזְרִיעַ",book:3,haft:{k:"II Kings",b:"4:42",e:"5:19"},fullkriyah:{1:["12:1","13:5"],2:["13:6","13:17"],3:["13:18","13:23"],4:["13:24","13:28"],5:["13:29","13:39"],6:["13:40","13:54"],7:["13:55","13:59"],M:["13:57","13:59"]},weekday:{1:["12:1","12:4"],2:["12:5","12:8"],3:["13:1","13:5"]}},Metzora:{num:28,hebrew:"מְּצֹרָע",book:3,haft:{k:"II Kings",b:"7:3",e:"7:20"},fullkriyah:{1:["14:1","14:12"],2:["14:13","14:20"],3:["14:21","14:32"],4:["14:33","14:53"],5:["14:54","15:15"],6:["15:16","15:28"],7:["15:29","15:33"],M:["15:31","15:33"]},weekday:{1:["14:1","14:5"],2:["14:6","14:9"],3:["14:10","14:12"]}},"Achrei Mot":{num:29,hebrew:"אַחֲרֵי מוֹת",book:3,haft:{k:"Ezekiel",b:"22:1",e:"22:19"},seph:{k:"Ezekiel",b:"22:1",e:"22:16"},fullkriyah:{1:["16:1","16:17"],2:["16:18","16:24"],3:["16:25","16:34"],4:["17:1","17:7"],5:["17:8","18:5"],6:["18:6","18:21"],7:["18:22","18:30"],M:["18:28","18:30"]},weekday:{1:["16:1","16:6"],2:["16:7","16:11"],3:["16:12","16:17"]}},Kedoshim:{num:30,hebrew:"קְדשִׁים",book:3,haft:{k:"Amos",b:"9:7",e:"9:15"},seph:{k:"Ezekiel",b:"20:2",e:"20:20"},fullkriyah:{1:["19:1","19:14"],2:["19:15","19:22"],3:["19:23","19:32"],4:["19:33","19:37"],5:["20:1","20:7"],6:["20:8","20:22"],7:["20:23","20:27"],M:["20:25","20:27"]},weekday:{1:["19:1","19:4"],2:["19:5","19:10"],3:["19:11","19:14"]}},Emor:{num:31,hebrew:"אֱמוֹר",book:3,haft:{k:"Ezekiel",b:"44:15",e:"44:31"},fullkriyah:{1:["21:1","21:15"],2:["21:16","22:16"],3:["22:17","22:33"],4:["23:1","23:22"],5:["23:23","23:32"],6:["23:33","23:44"],7:["24:1","24:23"],M:["24:21","24:23"]},weekday:{1:["21:1","21:6"],2:["21:7","21:12"],3:["21:13","21:15"]}},Behar:{num:32,hebrew:"בְּהַר",book:3,haft:{k:"Jeremiah",b:"32:6",e:"32:27"},fullkriyah:{1:["25:1","25:13"],2:["25:14","25:18"],3:["25:19","25:24"],4:["25:25","25:28"],5:["25:29","25:38"],6:["25:39","25:46"],7:["25:47","26:2"],M:["25:55","26:2"]},weekday:{1:["25:1","25:3"],2:["25:4","25:7"],3:["25:8","25:13"]}},Bechukotai:{num:33,hebrew:"בְּחֻקֹּתַי",book:3,haft:{k:"Jeremiah",b:"16:19",e:"17:14"},fullkriyah:{1:["26:3","26:5"],2:["26:6","26:9"],3:["26:10","26:46"],4:["27:1","27:15"],5:["27:16","27:21"],6:["27:22","27:28"],7:["27:29","27:34"],M:["27:32","27:34"]},weekday:{1:["26:3","26:5"],2:["26:6","26:9"],3:["26:10","26:13"]}},Bamidbar:{num:34,hebrew:"בְּמִדְבַּר",book:4,haft:{k:"Hosea",b:"2:1",e:"2:22"},fullkriyah:{1:["1:1","1:19"],2:["1:20","1:54"],3:["2:1","2:34"],4:["3:1","3:13"],5:["3:14","3:39"],6:["3:40","3:51"],7:["4:1","4:20"],M:["4:17","4:20"]},weekday:{1:["1:1","1:4"],2:["1:5","1:16"],3:["1:17","1:19"]}},Nasso:{num:35,hebrew:"נָשׂא",book:4,haft:{k:"Judges",b:"13:2",e:"13:25"},fullkriyah:{1:["4:21","4:37"],2:["4:38","4:49"],3:["5:1","5:10"],4:["5:11","6:27"],5:["7:1","7:41"],6:["7:42","7:71"],7:["7:72","7:89"],M:["7:87","7:89"]},weekday:{1:["4:21","4:24"],2:["4:25","4:28"],3:["4:29","4:33"]}},"Beha'alotcha":{num:36,hebrew:"בְּהַעֲלֹתְךָ",book:4,haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{1:["8:1","8:14"],2:["8:15","8:26"],3:["9:1","9:14"],4:["9:15","10:10"],5:["10:11","10:34"],6:["10:35","11:29"],7:["11:30","12:16"],M:["12:14","12:16"]},weekday:{1:["8:1","8:4"],2:["8:5","8:9"],3:["8:10","8:14"]}},"Sh'lach":{num:37,hebrew:"שְׁלַח־לְךָ",book:4,haft:{k:"Joshua",b:"2:1",e:"2:24"},fullkriyah:{1:["13:1","13:20"],2:["13:21","14:7"],3:["14:8","14:25"],4:["14:26","15:7"],5:["15:8","15:16"],6:["15:17","15:26"],7:["15:27","15:41"],M:["15:37","15:41"]},weekday:{1:["13:1","13:3"],2:["13:4","13:16"],3:["13:17","13:20"]}},Korach:{num:38,hebrew:"קוֹרַח",book:4,haft:{k:"I Samuel",b:"11:14",e:"12:22"},fullkriyah:{1:["16:1","16:13"],2:["16:14","16:19"],3:["16:20","17:8"],4:["17:9","17:15"],5:["17:16","17:24"],6:["17:25","18:20"],7:["18:21","18:32"],M:["18:30","18:32"]},weekday:{1:["16:1","16:3"],2:["16:4","16:7"],3:["16:8","16:13"]}},Chukat:{num:39,hebrew:"חֻקַּת",book:4,haft:{k:"Judges",b:"11:1",e:"11:33"},fullkriyah:{1:["19:1","19:17"],2:["19:18","20:6"],3:["20:7","20:13"],4:["20:14","20:21"],5:["20:22","21:9"],6:["21:10","21:20"],7:["21:21","22:1"],M:["21:34","22:1"]},weekday:{1:["19:1","19:6"],2:["19:7","19:9"],3:["19:10","19:17"]}},Balak:{num:40,hebrew:"בָּלָק",book:4,haft:{k:"Micah",b:"5:6",e:"6:8"},fullkriyah:{1:["22:2","22:12"],2:["22:13","22:20"],3:["22:21","22:38"],4:["22:39","23:12"],5:["23:13","23:26"],6:["23:27","24:13"],7:["24:14","25:9"],M:["25:7","25:9"]},weekday:{1:["22:2","22:4"],2:["22:5","22:7"],3:["22:8","22:12"]}},Pinchas:{num:41,hebrew:"פִּינְחָס",book:4,haft:{k:"I Kings",b:"18:46",e:"19:21"},fullkriyah:{1:["25:10","26:4"],2:["26:5","26:51"],3:["26:52","27:5"],4:["27:6","27:23"],5:["28:1","28:15"],6:["28:16","29:11"],7:["29:12","30:1"],M:["29:35","30:1"]},weekday:{1:["25:10","25:12"],2:["25:13","25:15"],3:["25:16","26:4"]}},Matot:{num:42,hebrew:"מַּטּוֹת",book:4,haft:{k:"Jeremiah",b:"1:1",e:"2:3"},fullkriyah:{1:["30:2","30:17"],2:["31:1","31:12"],3:["31:13","31:24"],4:["31:25","31:41"],5:["31:42","31:54"],6:["32:1","32:19"],7:["32:20","32:42"],M:["32:39","32:42"]},weekday:{1:["30:2","30:9"],2:["30:10","30:13"],3:["30:14","30:17"]}},Masei:{num:43,hebrew:"מַסְעֵי",book:4,haft:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"3:4",e:"3:4"}],seph:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"4:1",e:"4:2"}],fullkriyah:{1:["33:1","33:10"],2:["33:11","33:49"],3:["33:50","34:15"],4:["34:16","34:29"],5:["35:1","35:8"],6:["35:9","35:34"],7:["36:1","36:13"],M:["36:11","36:13"]},weekday:{1:["33:1","33:3"],2:["33:4","33:6"],3:["33:7","33:10"]}},Devarim:{num:44,hebrew:"דְּבָרִים",book:5,haft:{k:"Isaiah",b:"1:1",e:"1:27"},fullkriyah:{1:["1:1","1:10"],2:["1:11","1:21"],3:["1:22","1:38"],4:["1:39","2:1"],5:["2:2","2:30"],6:["2:31","3:14"],7:["3:15","3:22"],M:["3:20","3:22"]},weekday:{1:["1:1","1:3"],2:["1:4","1:7"],3:["1:8","1:11"]}},Vaetchanan:{num:45,hebrew:"וָאֶתְחַנַּן",book:5,haft:{k:"Isaiah",b:"40:1",e:"40:26"},fullkriyah:{1:["3:23","4:4"],2:["4:5","4:40"],3:["4:41","4:49"],4:["5:1","5:18"],5:["5:19","6:3"],6:["6:4","6:25"],7:["7:1","7:11"],M:["7:9","7:11"]},weekday:{1:["3:23","3:25"],2:["3:26","4:4"],3:["4:5","4:8"]}},Eikev:{num:46,hebrew:"עֵקֶב",book:5,haft:{k:"Isaiah",b:"49:14",e:"51:3"},fullkriyah:{1:["7:12","8:10"],2:["8:11","9:3"],3:["9:4","9:29"],4:["10:1","10:11"],5:["10:12","11:9"],6:["11:10","11:21"],7:["11:22","11:25"],M:["11:22","11:25"]},weekday:{1:["7:12","7:21"],2:["7:22","8:3"],3:["8:4","8:10"]}},"Re'eh":{num:47,hebrew:"רְאֵה",book:5,haft:{k:"Isaiah",b:"54:11",e:"55:5"},fullkriyah:{1:["11:26","12:10"],2:["12:11","12:28"],3:["12:29","13:19"],4:["14:1","14:21"],5:["14:22","14:29"],6:["15:1","15:18"],7:["15:19","16:17"],M:["16:13","16:17"]},weekday:{1:["11:26","11:31"],2:["11:32","12:5"],3:["12:6","12:10"]}},Shoftim:{num:48,hebrew:"שׁוֹפְטִים",book:5,haft:{k:"Isaiah",b:"51:12",e:"52:12"},fullkriyah:{1:["16:18","17:13"],2:["17:14","17:20"],3:["18:1","18:5"],4:["18:6","18:13"],5:["18:14","19:13"],6:["19:14","20:9"],7:["20:10","21:9"],M:["21:7","21:9"]},weekday:{1:["16:18","16:20"],2:["16:21","17:10"],3:["17:11","17:13"]}},"Ki Teitzei":{num:49,hebrew:"כִּי־תֵצֵא",book:5,haft:{k:"Isaiah",b:"54:1",e:"54:10"},fullkriyah:{1:["21:10","21:21"],2:["21:22","22:7"],3:["22:8","23:7"],4:["23:8","23:24"],5:["23:25","24:4"],6:["24:5","24:13"],7:["24:14","25:19"],M:["25:17","25:19"]},weekday:{1:["21:10","21:14"],2:["21:15","21:17"],3:["21:18","21:21"]}},"Ki Tavo":{num:50,hebrew:"כִּי־תָבוֹא",book:5,haft:{k:"Isaiah",b:"60:1",e:"60:22"},fullkriyah:{1:["26:1","26:11"],2:["26:12","26:15"],3:["26:16","26:19"],4:["27:1","27:10"],5:["27:11","28:6"],6:["28:7","28:69"],7:["29:1","29:8"],M:["29:6","29:8"]},weekday:{1:["26:1","26:3"],2:["26:4","26:11"],3:["26:12","26:15"]}},Nitzavim:{num:51,hebrew:"נִצָּבִים",book:5,haft:{k:"Isaiah",b:"61:10",e:"63:9"},fullkriyah:{1:["29:9","29:11"],2:["29:12","29:14"],3:["29:15","29:28"],4:["30:1","30:6"],5:["30:7","30:10"],6:["30:11","30:14"],7:["30:15","30:20"],M:["30:15","30:20"]},weekday:{1:["29:9","29:11"],2:["29:12","29:14"],3:["29:15","29:28"]}},Vayeilech:{num:52,hebrew:"וַיֵּלֶךְ",book:5,haft:{k:"Isaiah",b:"55:6",e:"56:8"},fullkriyah:{1:["31:1","31:3"],2:["31:4","31:6"],3:["31:7","31:9"],4:["31:10","31:13"],5:["31:14","31:19"],6:["31:20","31:24"],7:["31:25","31:30"],M:["31:28","31:30"]},weekday:{1:["31:1","31:3"],2:["31:4","31:6"],3:["31:7","31:13"]}},"Ha'azinu":{num:53,hebrew:"הַאֲזִינוּ",book:5,haft:{k:"II Samuel",b:"22:1",e:"22:51"},fullkriyah:{1:["32:1","32:6"],2:["32:7","32:12"],3:["32:13","32:18"],4:["32:19","32:28"],5:["32:29","32:39"],6:["32:40","32:43"],7:["32:44","32:52"],M:["32:48","32:52"]},weekday:{1:["32:1","32:3"],2:["32:4","32:6"],3:["32:7","32:12"]}},"Vezot Haberakhah":{num:54,hebrew:"וְזֹאת הַבְּרָכָה",book:5,haft:{k:"Joshua",b:"1:1",e:"1:18"},seph:{k:"Joshua",b:"1:1",e:"1:9"},fullkriyah:{1:["33:1","33:7"],2:["33:8","33:12"],3:["33:13","33:17"],4:["33:18","33:21"],5:["33:22","33:26"],6:["33:27","33:29"],7:["34:1","34:12"]},weekday:{1:["33:1","33:7"],2:["33:8","33:12"],3:["33:13","33:17"]}},"Vayakhel-Pekudei":{num:101,combined:!0,p1:"Vayakhel",p2:"Pekudei",num1:22,num2:23,book:2,fullkriyah:{1:["35:1","35:29"],2:["35:30","37:16"],3:["37:17","37:29"],4:["38:1","39:1"],5:["39:2","39:21"],6:["39:22","39:43"],7:["40:1","40:38"],M:["40:34","40:38"]}},"Tazria-Metzora":{num:102,combined:!0,p1:"Tazria",p2:"Metzora",num1:27,num2:28,book:3,fullkriyah:{1:["12:1","13:23"],2:["13:24","13:39"],3:["13:40","13:54"],4:["13:55","14:20"],5:["14:21","14:32"],6:["14:33","15:15"],7:["15:16","15:33"],M:["15:31","15:33"]}},"Achrei Mot-Kedoshim":{num:103,combined:!0,p1:"Achrei Mot",p2:"Kedoshim",num1:29,num2:30,book:3,fullkriyah:{1:["16:1","16:24"],2:["16:25","17:7"],3:["17:8","18:21"],4:["18:22","19:14"],5:["19:15","19:32"],6:["19:33","20:7"],7:["20:8","20:27"],M:["20:25","20:27"]}},"Behar-Bechukotai":{num:104,combined:!0,p1:"Behar",p2:"Bechukotai",num1:32,num2:33,book:3,fullkriyah:{1:["25:1","25:18"],2:["25:19","25:28"],3:["25:29","25:38"],4:["25:39","26:9"],5:["26:10","26:46"],6:["27:1","27:15"],7:["27:16","27:34"],M:["27:32","27:34"]}},"Chukat-Balak":{num:105,combined:!0,p1:"Chukat",p2:"Balak",num1:39,num2:40,book:4,fullkriyah:{1:["19:1","20:6"],2:["20:7","20:21"],3:["20:22","21:20"],4:["21:21","22:12"],5:["22:13","22:38"],6:["22:39","23:26"],7:["23:27","25:9"],M:["25:7","25:9"]}},"Matot-Masei":{num:106,combined:!0,p1:"Matot",p2:"Masei",num1:42,num2:43,book:4,fullkriyah:{1:["30:2","31:12"],2:["31:13","31:54"],3:["32:1","32:19"],4:["32:20","33:49"],5:["33:50","34:15"],6:["34:16","35:8"],7:["35:9","36:13"],M:["36:11","36:13"]}},"Nitzavim-Vayeilech":{num:107,combined:!0,p1:"Nitzavim",p2:"Vayeilech",num1:51,num2:52,book:5,fullkriyah:{1:["29:9","29:28"],2:["30:1","30:6"],3:["30:7","30:14"],4:["30:15","31:6"],5:["31:7","31:13"],6:["31:14","31:19"],7:["31:20","31:30"],M:["31:28","31:30"]}}};function C(e){return{en:o(e),he:e.map((e=>a.Locale.lookupTranslation(e,"he"))).join("־")}}function D(e){const a=A(e),h={},t=k[a.book];for(const[e,k]of Object.entries(a.fullkriyah)){const a={k:t,b:k[0],e:k[1]};b(a),h[e]=a}const i=o(e),r=a.combined?[a.p1,a.p2]:[i],l=u(h),p=f(l),y={name:C(r),parsha:r,parshaNum:a.num,summary:p,fullkriyah:h};l.length>1&&(y.summaryParts=l);const c=function(e){return 1==e.length||"Nitzavim"==e[0]?e[0]:e[1]}(r),m=I[c].haft;if(m){const e=y.haft=s(m);y.haftara=f(e),y.haftaraNumV=n(e)}const d=I[c].seph;if(d){const e=y.seph=s(d);y.sephardic=f(e),y.sephardicNumV=n(e)}return y}function H(e){const a=A(e),h=(a.combined?A(a.p1):a).weekday;if(!h)throw new Error(`Parsha missing weekday: ${e}`);const o=k[a.book],t={};for(let e=1;e<=3;e++){const a=""+e,k=h[a],i={k:o,b:k[0],e:k[1]};b(i),t[a]=i}return t}function v(e,h=!1){if("object"!=typeof e||"function"!=typeof e.getFlags)throw new TypeError(`Bad event argument: ${e}`);if(e.getFlags()!=a.flags.PARSHA_HASHAVUA)throw new TypeError(`Event must be parsha hashavua: ${e.getDesc()}`);const k=e.parsha,o=D(k),t=g(k,e.getDate(),h,o.fullkriyah),b=t.reason;if(t.haft){const e=o.haft=s(t.haft);if(o.haftara=f(e),o.haftaraNumV=n(e),t.seph){const e=o.seph=s(t.seph);o.sephardic=f(e),o.sephardicNumV=n(e)}else o.seph&&(delete o.seph,delete o.sephardic,delete o.sephardicNumV)}if(b[7]||b.M){o.fullkriyah=t.aliyot;const e=u(o.fullkriyah);o.summary=f(e),o.summaryParts=e}const i=Object.keys(b);if(0!==i.length){o.reason=b;for(const e of i)if("haftara"===e||"sephardic"===e){const a=o["haftara"===e?"haft":"seph"],h=Array.isArray(a)?a:[a];for(const a of h)a.reason=b[e]}else{const a=o.fullkriyah[e];"object"==typeof a&&(a.reason=b[e])}}return o}function A(e){const a=o(e),h=I[a];if("object"!=typeof h)throw new TypeError(`Bad parsha argument: ${e}`);return h}const R=" (Mincha)";function E(e,a){const h=w(e.getDesc()+R,e.cholHaMoedDay,a);if(h)return h;const k=d(e,a);if(k){const h=w(k+R,e.cholHaMoedDay,a);if(h)return h}}const T=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"2-digit"});function P(e){return e.filter((e=>e.getFlags()===a.flags.PARSHA_HASHAVUA)).reduce(((e,a)=>(e[a.getDate().toString()]=!0,e)),{})}function z(e,h,k){if(function(e){const h=e.getFlags();return h===a.flags.SPECIAL_SHABBAT||h===a.flags.ROSH_CHODESH&&6===e.getDate().getDay()}(h))return;const o=h.getFlags()===a.flags.PARSHA_HASHAVUA,t=o?v(h,k):S(h,k);t&&(V(e,h,t,k,o),o||J(e,h,k))}function J(e,h,k){const o=h.getDesc()+" (Mincha)",t=w(o,h.cholHaMoedDay,k)||w(d(h,k)+" (Mincha)",h.cholHaMoedDay,k);if(t){V(e,new a.Event(h.getDate(),o,a.flags.USER_EVENT),t,k,!1)}}function V(e,a,h,k,o){const t=o?a.basename():d(a,k)||a.render(),b=function(e){const a=T.format(e).split(" ");return a[1].substring(0,2)+"-"+a[0]+"-"+a[2]}(a.getDate().greg()),r=function(e){const a=[];if(e.fullkriyah)for(const[h,k]of Object.entries(e.fullkriyah))if(void 0!==k){const o="M"==h?"maf":h;let t=i(k);e.reason?.[h]&&(t+=" | "+e.reason[h]),a.push([o,t,k.v||""])}if(e.haftara){let h=e.haftara.replace(/,/g,";");e.reason?.haftara&&(h+=" | "+e.reason.haftara);const k=e.sephardic?"Haftara for Ashkenazim":"Haftara";a.push([k,h,e.haftaraNumV||""])}if(e.sephardic){let h=e.sephardic.replace(/,/g,";");e.reason?.sephardic&&(h+=" | "+e.reason.sephardic),a.push(["Haftara for Sephardim",h,e.sephardicNumV||""])}if(e.triHaftara){const h=e.triHaftara.replace(/,/g,";");a.push(["Alternate Haftara",h,e.triHaftaraNumV||""])}if(e.megillah)for(const[h,k]of Object.entries(e.megillah))if(void 0!==k){const e=i(k);a.push([`Megillah Ch. ${h}`,e,k.v||""])}return a}(h);for(const a of r){const h=a[0].charCodeAt(0);(h<48||h>57)&&(a[0]=`"${a[0]}"`),e.write(`${b},"${t}",${a[0]},"${a[1]}",${a[2]}\r\n`)}e.write("\r\n")}return e.BOOK=k,e.calculateNumVerses=b,e.clone=t,e.cloneHaftara=s,e.formatAliyahShort=r,e.formatAliyahWithBook=i,e.getLeyningForHoliday=S,e.getLeyningForHolidayKey=w,e.getLeyningForParsha=function(e){const a=D(e);return a.weekday=H(e),a},e.getLeyningForParshaHaShavua=v,e.getLeyningKeyForEvent=d,e.getLeyningOnDate=function(e,h,k=!1){const o=e.getDay();if(6===o){const o=e.getFullYear(),t=a.HebrewCalendar.getSedra(o,h).lookup(e);if(!t.chag){const o=v(new a.ParshaEvent(e,t.parsha,h),h);return k?[o]:o}}const t=a.HebrewCalendar.getHolidaysOnDate(e,h)||[],b=[];let i=!1;for(const e of t){const a=S(e,h);if(a){b.push(a),a.fullkriyah&&(i=!0);const k=E(e,h);k&&b.push(k)}}if(!i&&(1===o||4===o)){const h=function(e,h){const k=e.getFullYear(),o=a.HebrewCalendar.getSedra(k,h),t=o.lookup(e);if(!t.chag)return t;if(e.getMonth()===a.months.TISHREI){const a=e.getDate();if(a>10&&a<=(h?22:23))return{parsha:["Vezot Haberakhah"],chag:!1,num:54}}const b=new a.HDate(1,a.months.TISHREI,k+1).abs()-1,i=b+30;for(let t=e.abs()+7;t<=i;t+=7){const e=(t>b?a.HebrewCalendar.getSedra(k+1,h):o).lookup(t);if(!e.chag)return e}return null}(e.onOrAfter(6)),k={name:C(h.parsha),parsha:h.parsha,parshaNum:h.num,weekday:H(h.parsha)};b.unshift(k)}return k?b:b[0]},e.getParshaDates=P,e.getWeekdayReading=H,e.hasFestival=y,e.lookupFestival=c,e.lookupParsha=A,e.makeLeyningNames=C,e.makeLeyningParts=u,e.makeLeyningSummary=function(e){return f(u(e))},e.makeSummaryFromParts=f,e.parshaToString=o,e.specialReadings2=g,e.sumVerses=n,e.writeCsvLines=V,e.writeFullKriyahCsv=function(e,h,k){const o=a.HebrewCalendar.calendar({year:h,isHebrewYear:!0,sedrot:!0,il:k}).filter((e=>"Rosh Chodesh Tevet"!==e.getDesc())),t=P(o);e.write('"Date","Parashah","Aliyah","Reading","Verses"\r\n');for(const h of o)h.getFlags()!==a.flags.PARSHA_HASHAVUA&&t[h.getDate().toString()]||z(e,h,k)},e.writeHolidayMincha=J,e}({},hebcal);
|
|
1
|
+
/*! @hebcal/leyning v8.1.9 */
|
|
2
|
+
var hebcal__leyning=function(e,a){"use strict";var h={Genesis:[0,31,25,24,26,32,22,24,22,29,32,32,20,18,24,21,16,27,33,38,18,34,24,20,67,34,35,46,22,35,43,54,33,20,31,29,43,36,30,23,23,57,38,34,34,28,34,31,22,33,26],Exodus:[0,22,25,22,31,23,30,29,28,35,29,10,51,22,31,27,36,16,27,25,26,37,30,33,18,40,37,21,43,46,38,18,35,23,35,35,38,29,31,43,38],Leviticus:[0,17,16,17,35,26,23,38,36,24,20,47,8,59,57,33,34,16,30,37,27,24,33,44,23,55,46,34],Numbers:[0,54,34,51,49,31,27,89,26,23,36,35,16,33,45,41,35,28,32,22,29,35,41,30,25,19,65,23,31,39,17,54,42,56,29,34,13],Deuteronomy:[0,46,37,29,49,30,25,26,20,29,22,32,31,19,29,23,22,20,22,21,20,23,29,26,22,19,19,26,69,28,20,30,52,29,12],Joshua:[0,18,24,17,24,15,27,26,35,27,43,23,24,33,15,63,10,18,28,51,9,45,34,16,33],Judges:[0,36,23,31,24,31,40,25,35,57,18,40,15,25,20,20,31,13,31,30,48,25],Ruth:[0,22,23,18,22],"I Samuel":[0,28,36,21,22,12,21,17,22,27,27,15,25,23,52,35,23,58,30,24,42,16,23,28,23,43,25,12,25,11,31,13],"II Samuel":[0,27,32,39,12,25,23,29,18,13,19,27,31,39,33,37,23,29,32,44,26,22,51,39,25],"I Kings":[0,53,46,28,20,32,38,51,66,28,29,43,33,34,31,34,34,24,46,21,43,29,54],"II Kings":[0,18,25,27,44,27,33,20,29,37,36,20,22,25,29,38,20,41,37,37,21,26,20,37,20,30],Isaiah:[0,31,22,26,6,30,13,25,23,20,34,16,6,22,32,9,14,14,7,25,6,17,25,18,23,12,21,13,29,24,33,9,20,24,17,10,22,38,22,8,31,29,25,28,28,25,13,15,22,26,11,23,15,12,17,13,12,21,14,21,22,11,12,19,11,25,24],Jeremiah:[0,19,37,25,31,31,30,34,23,25,25,23,17,27,22,21,21,27,23,15,18,14,30,40,10,38,24,22,17,32,24,40,44,26,22,19,32,21,28,18,16,18,22,13,30,5,28,7,47,39,46,64,34],Lamentations:[0,22,22,66,22,22],Baruch:[0,22,35,38,37,9,72],Esther:[0,22,23,15,17,14,14,10,17,32,3],Ecclesiastes:[0,18,26,22,17,19,12,29,17,18,20,10,14],"Song of Songs":[0,17,17,11,16,16,12,14,14],Ezekiel:[0,28,10,27,17,17,14,27,18,11,22,25,28,23,23,8,63,24,32,14,44,37,31,49,27,17,21,36,26,21,26,18,32,33,31,15,38,28,23,29,49,26,20,27,31,25,24,23,35],Daniel:[0,21,49,100,34,30,29,28,27,27,21,45,13,64,42],Hosea:[0,9,25,5,19,15,11,16,14,17,15,11,15,15,10],Joel:[0,20,27,5,21],Amos:[0,15,16,15,13,27,14,17,14,15],Obadiah:[0,21],Jonah:[0,16,11,10,11],Micah:[0,16,13,12,14,14,16,20],Nachum:[0,14,14,19],Habakkuk:[0,17,20,19],Zephaniah:[0,18,15,20],Haggai:[0,15,23],Zechariah:[0,17,17,10,14,11,15,14,23,17,12,17,14,9,21],Malachi:[0,14,17,24]};const k=["","Genesis","Exodus","Leviticus","Numbers","Deuteronomy"];function o(e){if("string"==typeof e)return e;if(!Array.isArray(e)||0===e.length||e.length>2)throw new TypeError(`Bad parsha argument: ${e}`);let a=e[0];return 2==e.length&&(a+="-"+e[1]),a}function t(e){return JSON.parse(JSON.stringify(e))}function b(e){if(e.v)return e.v;const a=e.b.split(":"),k=e.e.split(":"),o=parseInt(a[0],10),t=parseInt(k[0],10),b=parseInt(a[1],10),i=parseInt(k[1],10);if(o===t)e.v=i-b+1;else if("string"==typeof e.k){const a=h[e.k];if("object"!=typeof a||!a.length)throw new ReferenceError(`Can't find numverses for ${e.k}`);let k=a[o]-b+1;for(let e=o+1;e<t;e++)k+=a[e];k+=i,e.v=k}return e.v}function i(e){return`${e.k} ${e.b}-${e.e}`}function r(e,a){const h=e.b,k=e.e,o=a?e.k+" ":"";if(h===k)return`${o}${h}`;const t=h.split(":"),b=k.split(":");return`${o}${h}-${t[0]===b[0]?b[1]:k}`}function s(e){return Array.isArray(e)?e.reduce(((e,a)=>e+a.v),0):e.v}function n(e){if(!e)return e;const a=t(e);return Array.isArray(a)?a.map(b):b(a),a}function l(e,a){const h=e.split(":").map((e=>+e)),k=a.split(":").map((e=>+e));return 100*h[0]+h[1]<100*k[0]+k[1]}function u(e){const a=Object.keys(e).filter((e=>{if(1===e.length)return!0;const a=e.charCodeAt(0);return a>=48&&a<=57}));let h=e[a[0]],k=h;const o=[];for(let t=0;t<a.length;t++){const b=e[a[t]];if(t===a.length-1&&b.k===k.k&&b.e===k.e)continue;const i=+k.e.split(":")[0],r=+b.b.split(":")[0],s=r===i||r===i+1;0===t||b.k===h.k&&!l(b.b,h.e)&&s||(o.push({k:h.k,b:h.b,e:k.e}),h=b),k=b}return o.push({k:h.k,b:h.b,e:k.e}),o}function f(e){Array.isArray(e)||(e=[e]);let a=e[0],h=r(a,!0);for(let k=1;k<e.length;k++){const o=e[k];o.k===a.k?h+=", ":h+=`; ${o.k} `,h+=r(o,!1),a=o}return h}var p={"Pesach I":{haft:[{k:"Joshua",b:"3:5",e:"3:7"},{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],seph:[{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],fullkriyah:{1:{p:15,k:2,b:"12:21",e:"12:24"},2:{p:15,k:2,b:"12:25",e:"12:28"},3:{p:15,k:2,b:"12:29",e:"12:36"},4:{p:15,k:2,b:"12:37",e:"12:42"},5:{p:15,k:2,b:"12:43",e:"12:51"},M:{p:41,k:4,b:"28:16",e:"28:25"}}},"Pesach I (on Shabbat)":{haft:[{k:"Joshua",b:"3:5",e:"3:7"},{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],seph:[{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],fullkriyah:{1:{p:15,k:2,b:"12:21",e:"12:24"},2:{p:15,k:2,b:"12:25",e:"12:28"},3:{p:15,k:2,b:"12:29",e:"12:32"},4:{p:15,k:2,b:"12:33",e:"12:36"},5:{p:15,k:2,b:"12:37",e:"12:42"},6:{p:15,k:2,b:"12:43",e:"12:47"},7:{p:15,k:2,b:"12:48",e:"12:51"},M:{p:41,k:4,b:"28:16",e:"28:25"}}},"Pesach II":{haft:[{k:"II Kings",b:"23:1",e:"23:9"},{k:"II Kings",b:"23:21",e:"23:25"}],fullkriyah:{1:{p:31,k:3,b:"22:26",e:"23:3"},2:{p:31,k:3,b:"23:4",e:"23:14"},3:{p:31,k:3,b:"23:15",e:"23:22"},4:{p:31,k:3,b:"23:23",e:"23:32"},5:{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"28:16",e:"28:25"}}},"Pesach II (CH''M)":{note:"Israel only - according to Vaani T'fillati Siddur Yisraeli",il:!0,fullkriyah:{1:{p:31,k:3,b:"22:26",e:"23:8"},2:{p:31,k:3,b:"23:9",e:"23:14"},3:{p:31,k:3,b:"23:15",e:"23:44"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 1":{fullkriyah:{1:{p:15,k:2,b:"13:1",e:"13:4"},2:{p:15,k:2,b:"13:5",e:"13:10"},3:{p:15,k:2,b:"13:11",e:"13:16"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 2":{fullkriyah:{1:{p:18,k:2,b:"22:24",e:"22:26"},2:{p:18,k:2,b:"22:27",e:"23:5"},3:{p:18,k:2,b:"23:6",e:"23:19"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 3":{fullkriyah:{1:{p:21,k:2,b:"34:1",e:"34:10"},2:{p:21,k:2,b:"34:11",e:"34:17"},3:{p:21,k:2,b:"34:18",e:"34:26"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 4":{fullkriyah:{1:{p:36,k:4,b:"9:1",e:"9:5"},2:{p:36,k:4,b:"9:6",e:"9:8"},3:{p:36,k:4,b:"9:9",e:"9:14"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Shabbat Chol ha-Moed":{megillah:"Song of Songs",haft:{k:"Ezekiel",b:"37:1",e:"37:14"},fullkriyah:{1:{p:21,k:2,b:"33:12",e:"33:16"},2:{p:21,k:2,b:"33:17",e:"33:19"},3:{p:21,k:2,b:"33:20",e:"33:23"},4:{p:21,k:2,b:"34:1",e:"34:3"},5:{p:21,k:2,b:"34:4",e:"34:10"},6:{p:21,k:2,b:"34:11",e:"34:17"},7:{p:21,k:2,b:"34:18",e:"34:26"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VII":{haft:{k:"II Samuel",b:"22:1",e:"22:51"},fullkriyah:{1:{p:16,k:2,b:"13:17",e:"13:22"},2:{p:16,k:2,b:"14:1",e:"14:8"},3:{p:16,k:2,b:"14:9",e:"14:14"},4:{p:16,k:2,b:"14:15",e:"14:25"},5:{p:16,k:2,b:"14:26",e:"15:26"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VII (on Shabbat)":{haft:{k:"II Samuel",b:"22:1",e:"22:51"},fullkriyah:{1:{p:16,k:2,b:"13:17",e:"13:19"},2:{p:16,k:2,b:"13:20",e:"13:22"},3:{p:16,k:2,b:"14:1",e:"14:4"},4:{p:16,k:2,b:"14:5",e:"14:8"},5:{p:16,k:2,b:"14:9",e:"14:14"},6:{p:16,k:2,b:"14:15",e:"14:25"},7:{p:16,k:2,b:"14:26",e:"15:26"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VIII":{haft:{k:"Isaiah",b:"10:32",e:"12:6"},fullkriyah:{1:{p:47,k:5,b:"15:19",e:"15:23"},2:{p:47,k:5,b:"16:1",e:"16:3"},3:{p:47,k:5,b:"16:4",e:"16:8"},4:{p:47,k:5,b:"16:9",e:"16:12"},5:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VIII (on Shabbat)":{haft:{k:"Isaiah",b:"10:32",e:"12:6"},fullkriyah:{1:{p:47,k:5,b:"14:22",e:"14:29"},2:{p:47,k:5,b:"15:1",e:"15:18"},3:{p:47,k:5,b:"15:19",e:"15:23"},4:{p:47,k:5,b:"16:1",e:"16:3"},5:{p:47,k:5,b:"16:4",e:"16:8"},6:{p:47,k:5,b:"16:9",e:"16:12"},7:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach III (CH''M)":{alias:!0,il:!0,key:"Pesach Chol ha-Moed Day 1"},"Pesach IV (CH''M)":{alias:!0,il:!0,key:"Pesach Chol ha-Moed Day 2"},"Pesach V (CH''M)":{alias:!0,il:!0,key:"Pesach Chol ha-Moed Day 3"},"Pesach VI (CH''M)":{alias:!0,il:!0,key:"Pesach Chol ha-Moed Day 4"},"Pesach Chol ha-Moed Day 2 on Sunday":{alias:!0,il:!1,key:"Pesach Chol ha-Moed Day 1"},"Pesach Chol ha-Moed Day 3 on Monday":{alias:!0,il:!1,key:"Pesach Chol ha-Moed Day 2"},Shavuot:{note:"Israel only",il:!0,megillah:"Ruth",haft:[{k:"Ezekiel",b:"1:1",e:"1:28"},{k:"Ezekiel",b:"3:12",e:"3:12"}],fullkriyah:{1:{p:17,k:2,b:"19:1",e:"19:6"},2:{p:17,k:2,b:"19:7",e:"19:13"},3:{p:17,k:2,b:"19:14",e:"19:19"},4:{p:17,k:2,b:"19:20",e:"20:14"},5:{p:17,k:2,b:"20:15",e:"20:23"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Shavuot I":{haft:[{k:"Ezekiel",b:"1:1",e:"1:28"},{k:"Ezekiel",b:"3:12",e:"3:12"}],fullkriyah:{1:{p:17,k:2,b:"19:1",e:"19:6"},2:{p:17,k:2,b:"19:7",e:"19:13"},3:{p:17,k:2,b:"19:14",e:"19:19"},4:{p:17,k:2,b:"19:20",e:"20:14"},5:{p:17,k:2,b:"20:15",e:"20:23"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Shavuot II":{megillah:"Ruth",haft:{k:"Habakkuk",b:"3:1",e:"3:19"},seph:{k:"Habakkuk",b:"2:20",e:"3:19"},fullkriyah:{1:{p:47,k:5,b:"15:19",e:"15:23"},2:{p:47,k:5,b:"16:1",e:"16:3"},3:{p:47,k:5,b:"16:4",e:"16:8"},4:{p:47,k:5,b:"16:9",e:"16:12"},5:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Shavuot II (on Shabbat)":{megillah:"Ruth",haft:{k:"Habakkuk",b:"3:1",e:"3:19"},seph:{k:"Habakkuk",b:"2:20",e:"3:19"},fullkriyah:{1:{p:47,k:5,b:"14:22",e:"14:29"},2:{p:47,k:5,b:"15:1",e:"15:18"},3:{p:47,k:5,b:"15:19",e:"15:23"},4:{p:47,k:5,b:"16:1",e:"16:3"},5:{p:47,k:5,b:"16:4",e:"16:8"},6:{p:47,k:5,b:"16:9",e:"16:12"},7:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Fast Day (Morning)":{fullkriyah:{1:{p:21,k:2,b:"32:11",e:"32:14"},2:{p:21,k:2,b:"34:1",e:"34:3"},3:{p:21,k:2,b:"34:4",e:"34:10"}}},"Fast Day (Afternoon)":{haft:{k:"Isaiah",b:"55:6",e:"56:8"},fullkriyah:{1:{p:21,k:2,b:"32:11",e:"32:14"},2:{p:21,k:2,b:"34:1",e:"34:3"},M:{p:21,k:2,b:"34:4",e:"34:10"}}},"Asara B'Tevet":{alias:!0,key:"Fast Day (Morning)"},"Ta'anit Esther":{alias:!0,key:"Fast Day (Morning)"},"Tzom Gedaliah":{alias:!0,key:"Fast Day (Morning)"},"Tzom Tammuz":{alias:!0,key:"Fast Day (Morning)"},"Asara B'Tevet (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Ta'anit Esther (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Tzom Gedaliah (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Tzom Tammuz (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Erev Tish'a B'Av":{megillah:"Lamentations"},"Tish'a B'Av":{haft:{k:"Jeremiah",b:"8:13",e:"9:23"},fullkriyah:{1:{p:45,k:5,b:"4:25",e:"4:29"},2:{p:45,k:5,b:"4:30",e:"4:35"},3:{p:45,k:5,b:"4:36",e:"4:40"}}},"Tish'a B'Av (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Rosh Hashana I":{haft:{k:"I Samuel",b:"1:1",e:"2:10"},fullkriyah:{1:{p:4,k:1,b:"21:1",e:"21:4"},2:{p:4,k:1,b:"21:5",e:"21:12"},3:{p:4,k:1,b:"21:13",e:"21:21"},4:{p:4,k:1,b:"21:22",e:"21:27"},5:{p:4,k:1,b:"21:28",e:"21:34"},M:{p:41,k:4,b:"29:1",e:"29:6"}}},"Rosh Hashana I (on Shabbat)":{haft:{k:"I Samuel",b:"1:1",e:"2:10"},fullkriyah:{1:{p:4,k:1,b:"21:1",e:"21:4"},2:{p:4,k:1,b:"21:5",e:"21:8"},3:{p:4,k:1,b:"21:9",e:"21:12"},4:{p:4,k:1,b:"21:13",e:"21:17"},5:{p:4,k:1,b:"21:18",e:"21:21"},6:{p:4,k:1,b:"21:22",e:"21:27"},7:{p:4,k:1,b:"21:28",e:"21:34"},M:{p:41,k:4,b:"29:1",e:"29:6"}}},"Rosh Hashana II":{haft:{k:"Jeremiah",b:"31:1",e:"31:19"},fullkriyah:{1:{p:4,k:1,b:"22:1",e:"22:3"},2:{p:4,k:1,b:"22:4",e:"22:8"},3:{p:4,k:1,b:"22:9",e:"22:14"},4:{p:4,k:1,b:"22:15",e:"22:19"},5:{p:4,k:1,b:"22:20",e:"22:24"},M:{p:41,k:4,b:"29:1",e:"29:6"}}},"Yom Kippur":{haft:{k:"Isaiah",b:"57:14",e:"58:14"},fullkriyah:{1:{p:29,k:3,b:"16:1",e:"16:6"},2:{p:29,k:3,b:"16:7",e:"16:11"},3:{p:29,k:3,b:"16:12",e:"16:17"},4:{p:29,k:3,b:"16:18",e:"16:24"},5:{p:29,k:3,b:"16:25",e:"16:30"},6:{p:29,k:3,b:"16:31",e:"16:34"},M:{p:41,k:4,b:"29:7",e:"29:11"}}},"Yom Kippur (on Shabbat)":{haft:{k:"Isaiah",b:"57:14",e:"58:14"},fullkriyah:{1:{p:29,k:3,b:"16:1",e:"16:3"},2:{p:29,k:3,b:"16:4",e:"16:6"},3:{p:29,k:3,b:"16:7",e:"16:11"},4:{p:29,k:3,b:"16:12",e:"16:17"},5:{p:29,k:3,b:"16:18",e:"16:24"},6:{p:29,k:3,b:"16:25",e:"16:30"},7:{p:29,k:3,b:"16:31",e:"16:34"},M:{p:41,k:4,b:"29:7",e:"29:11"}}},"Yom Kippur (Mincha)":{alias:!0,key:"Yom Kippur (Mincha, Traditional)"},"Yom Kippur (Mincha, Traditional)":{haft:[{k:"Jonah",b:"1:1",e:"4:11"},{k:"Micah",b:"7:18",e:"7:20"}],fullkriyah:{1:{p:29,k:3,b:"18:1",e:"18:5"},2:{p:29,k:3,b:"18:6",e:"18:21"},M:{p:29,k:3,b:"18:22",e:"18:30"}}},"Yom Kippur (Mincha, Alternate)":{haft:[{k:"Jonah",b:"1:1",e:"4:11"},{k:"Micah",b:"7:18",e:"7:20"}],fullkriyah:{1:{p:30,k:3,b:"19:1",e:"19:4"},2:{p:30,k:3,b:"19:5",e:"19:10"},M:{p:30,k:3,b:"19:11",e:"19:18"}}},"Sukkot I":{haft:{k:"Zechariah",b:"14:1",e:"14:21"},fullkriyah:{1:{p:31,k:3,b:"22:26",e:"23:3"},2:{p:31,k:3,b:"23:4",e:"23:14"},3:{p:31,k:3,b:"23:15",e:"23:22"},4:{p:31,k:3,b:"23:23",e:"23:32"},5:{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"29:12",e:"29:16"}}},"Sukkot I (on Shabbat)":{haft:{k:"Zechariah",b:"14:1",e:"14:21"},fullkriyah:{1:{p:31,k:3,b:"22:26",e:"22:33"},2:{p:31,k:3,b:"23:1",e:"23:3"},3:{p:31,k:3,b:"23:4",e:"23:8"},4:{p:31,k:3,b:"23:9",e:"23:14"},5:{p:31,k:3,b:"23:15",e:"23:22"},6:{p:31,k:3,b:"23:23",e:"23:32"},7:{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"29:12",e:"29:16"}}},"Sukkot II":{haft:{k:"I Kings",b:"8:2",e:"8:21"},fullkriyah:{1:{p:31,k:3,b:"22:26",e:"23:3"},2:{p:31,k:3,b:"23:4",e:"23:14"},3:{p:31,k:3,b:"23:15",e:"23:22"},4:{p:31,k:3,b:"23:23",e:"23:32"},5:{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"29:12",e:"29:16"}}},"Sukkot Chol ha-Moed Day 1":{fullkriyah:{1:{p:41,k:4,b:"29:17",e:"29:19"},2:{p:41,k:4,b:"29:20",e:"29:22"},3:{p:41,k:4,b:"29:23",e:"29:25"},4:{p:41,k:4,b:"29:17",e:"29:22"}}},"Sukkot Chol ha-Moed Day 2":{fullkriyah:{1:{p:41,k:4,b:"29:20",e:"29:22"},2:{p:41,k:4,b:"29:23",e:"29:25"},3:{p:41,k:4,b:"29:26",e:"29:28"},4:{p:41,k:4,b:"29:20",e:"29:25"}}},"Sukkot Chol ha-Moed Day 3":{fullkriyah:{1:{p:41,k:4,b:"29:23",e:"29:25"},2:{p:41,k:4,b:"29:26",e:"29:28"},3:{p:41,k:4,b:"29:29",e:"29:31"},4:{p:41,k:4,b:"29:23",e:"29:28"}}},"Sukkot Chol ha-Moed Day 4":{fullkriyah:{1:{p:41,k:4,b:"29:26",e:"29:28"},2:{p:41,k:4,b:"29:29",e:"29:31"},3:{p:41,k:4,b:"29:32",e:"29:34"},4:{p:41,k:4,b:"29:26",e:"29:31"}}},"Sukkot Chol ha-Moed Day 5":{fullkriyah:{1:{p:41,k:4,b:"29:29",e:"29:31"},2:{p:41,k:4,b:"29:32",e:"29:34"},3:{p:41,k:4,b:"29:35",e:"29:37"},4:{p:41,k:4,b:"29:29",e:"29:34"}}},"Sukkot Shabbat Chol ha-Moed":{megillah:"Ecclesiastes",haft:{k:"Ezekiel",b:"38:18",e:"39:16"},fullkriyah:{1:{p:21,k:2,b:"33:12",e:"33:16"},2:{p:21,k:2,b:"33:17",e:"33:19"},3:{p:21,k:2,b:"33:20",e:"33:23"},4:{p:21,k:2,b:"34:1",e:"34:3"},5:{p:21,k:2,b:"34:4",e:"34:10"},6:{p:21,k:2,b:"34:11",e:"34:17"},7:{p:21,k:2,b:"34:18",e:"34:26"},"M-day1":{p:41,k:4,b:"29:17",e:"29:22"},"M-day2":{p:41,k:4,b:"29:20",e:"29:25"},"M-day3":{p:41,k:4,b:"29:23",e:"29:28"},"M-day4":{p:41,k:4,b:"29:26",e:"29:31"},"M-day5":{p:41,k:4,b:"29:29",e:"29:34"}}},"Sukkot Final Day (Hoshana Raba)":{fullkriyah:{1:{p:41,k:4,b:"29:26",e:"29:28"},2:{p:41,k:4,b:"29:29",e:"29:31"},3:{p:41,k:4,b:"29:32",e:"29:34"},4:{p:41,k:4,b:"29:29",e:"29:34"}}},"Shmini Atzeret":{haft:{k:"I Kings",b:"8:54",e:"8:66"},fullkriyah:{1:{p:47,k:5,b:"14:22",e:"14:29"},2:{p:47,k:5,b:"15:1",e:"15:18"},3:{p:47,k:5,b:"15:19",e:"16:3"},4:{p:47,k:5,b:"16:4",e:"16:8"},5:{p:47,k:5,b:"16:9",e:"16:17"},M:{p:41,k:4,b:"29:35",e:"30:1"}}},"Shmini Atzeret (on Shabbat)":{haft:{k:"I Kings",b:"8:54",e:"8:66"},fullkriyah:{1:{p:47,k:5,b:"14:22",e:"14:29"},2:{p:47,k:5,b:"15:1",e:"15:18"},3:{p:47,k:5,b:"15:19",e:"15:23"},4:{p:47,k:5,b:"16:1",e:"16:3"},5:{p:47,k:5,b:"16:4",e:"16:8"},6:{p:47,k:5,b:"16:9",e:"16:12"},7:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"29:35",e:"30:1"}}},"Erev Simchat Torah":{fullkriyah:{1:{p:54,k:5,b:"33:1",e:"33:7"},2:{p:54,k:5,b:"33:8",e:"33:12"},3:{p:54,k:5,b:"33:13",e:"33:17"}}},"Simchat Torah":{haft:{k:"Joshua",b:"1:1",e:"1:18"},fullkriyah:{1:{p:54,k:5,b:"33:1",e:"33:7"},2:{p:54,k:5,b:"33:8",e:"33:12"},3:{p:54,k:5,b:"33:13",e:"33:17"},4:{p:54,k:5,b:"33:18",e:"33:21"},5:{p:54,k:5,b:"33:22",e:"33:26"},6:{p:54,k:5,b:"33:27",e:"34:12"},7:{p:1,k:1,b:"1:1",e:"2:3"},M:{p:41,k:4,b:"29:35",e:"30:1"}}},"Shabbat Rosh Chodesh Chanukah":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{7:{p:41,k:4,b:"28:9",e:"28:15"},M:{p:35,k:4,b:"7:42",e:"7:47"}}},"Chanukah Day 1":{fullkriyah:{1:{p:35,k:4,b:"7:1",e:"7:11"},2:{p:35,k:4,b:"7:12",e:"7:14"},3:{p:35,k:4,b:"7:15",e:"7:17"}},alt:{1:{p:35,k:4,b:"7:1",e:"7:3"},2:{p:35,k:4,b:"7:4",e:"7:11"},3:{p:35,k:4,b:"7:12",e:"7:17"}}},"Chanukah Day 1 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:1",e:"7:17"}}},"Chanukah Day 2":{fullkriyah:{1:{p:35,k:4,b:"7:18",e:"7:20"},2:{p:35,k:4,b:"7:21",e:"7:23"},3:{p:35,k:4,b:"7:24",e:"7:29"}},alt:{1:{p:35,k:4,b:"7:18",e:"7:20"},2:{p:35,k:4,b:"7:21",e:"7:23"},3:{p:35,k:4,b:"7:18",e:"7:23"}}},"Chanukah Day 2 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:18",e:"7:23"}}},"Chanukah Day 3":{fullkriyah:{1:{p:35,k:4,b:"7:24",e:"7:26"},2:{p:35,k:4,b:"7:27",e:"7:29"},3:{p:35,k:4,b:"7:30",e:"7:35"}},alt:{1:{p:35,k:4,b:"7:24",e:"7:26"},2:{p:35,k:4,b:"7:27",e:"7:29"},3:{p:35,k:4,b:"7:24",e:"7:29"}}},"Chanukah Day 3 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:24",e:"7:29"}}},"Chanukah Day 4":{fullkriyah:{1:{p:35,k:4,b:"7:30",e:"7:32"},2:{p:35,k:4,b:"7:33",e:"7:35"},3:{p:35,k:4,b:"7:36",e:"7:41"}},alt:{1:{p:35,k:4,b:"7:30",e:"7:32"},2:{p:35,k:4,b:"7:33",e:"7:35"},3:{p:35,k:4,b:"7:30",e:"7:35"}}},"Chanukah Day 4 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:30",e:"7:35"}}},"Chanukah Day 5":{fullkriyah:{1:{p:35,k:4,b:"7:36",e:"7:38"},2:{p:35,k:4,b:"7:39",e:"7:41"},3:{p:35,k:4,b:"7:42",e:"7:47"}},alt:{1:{p:35,k:4,b:"7:36",e:"7:38"},2:{p:35,k:4,b:"7:39",e:"7:41"},3:{p:35,k:4,b:"7:36",e:"7:41"}}},"Chanukah Day 5 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:36",e:"7:41"}}},"Chanukah Day 6":{fullkriyah:{1:{p:41,k:4,b:"28:1",e:"28:5"},2:{p:41,k:4,b:"28:6",e:"28:10"},3:{p:41,k:4,b:"28:11",e:"28:15"},4:{p:35,k:4,b:"7:42",e:"7:47"}}},"Chanukah Day 7":{fullkriyah:{1:{p:35,k:4,b:"7:48",e:"7:50"},2:{p:35,k:4,b:"7:51",e:"7:53"},3:{p:35,k:4,b:"7:54",e:"7:59"}},alt:{1:{p:35,k:4,b:"7:48",e:"7:50"},2:{p:35,k:4,b:"7:51",e:"7:53"},3:{p:35,k:4,b:"7:48",e:"7:53"}}},"Chanukah Day 7 (on Rosh Chodesh)":{fullkriyah:{1:{p:41,k:4,b:"28:1",e:"28:5"},2:{p:41,k:4,b:"28:6",e:"28:10"},3:{p:41,k:4,b:"28:11",e:"28:15"},4:{p:35,k:4,b:"7:48",e:"7:53"}}},"Chanukah Day 7 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:48",e:"7:53"}}},"Chanukah Day 8":{fullkriyah:{1:{p:35,k:4,b:"7:54",e:"7:56"},2:{p:35,k:4,b:"7:57",e:"7:59"},3:{p:35,k:4,b:"7:60",e:"8:4"}}},"Chanukah Day 8 (on Shabbat)":{haft:{k:"I Kings",b:"7:40",e:"7:50"},fullkriyah:{M:{p:35,k:4,b:"7:54",e:"8:4"}}},"Erev Purim":{megillah:"Esther"},Purim:{megillah:"Esther",fullkriyah:{1:{p:16,k:2,b:"17:8",e:"17:10"},2:{p:16,k:2,b:"17:11",e:"17:13"},3:{p:16,k:2,b:"17:14",e:"17:16"}}},"Shushan Purim":{note:"Jerusalem & walled cities only",il:!0,megillah:"Esther",fullkriyah:{1:{p:16,k:2,b:"17:8",e:"17:10"},2:{p:16,k:2,b:"17:11",e:"17:13"},3:{p:16,k:2,b:"17:14",e:"17:16"}}},"Shushan Purim (on Shabbat)":{il:!0,note:"Jerusalem & walled cities only: special maftir Exodus 17:8-16, same Haftara as Shabbat Zachor"},"Shabbat HaChodesh":{haft:{k:"Ezekiel",b:"45:16",e:"46:18"},seph:{k:"Ezekiel",b:"45:18",e:"46:15"},fullkriyah:{M:{p:15,k:2,b:"12:1",e:"12:20"}}},"Shabbat HaChodesh (on Rosh Chodesh)":{haft:{k:"Ezekiel",b:"45:16",e:"46:18"},seph:{k:"Ezekiel",b:"45:18",e:"46:15"},fullkriyah:{7:{p:41,k:4,b:"28:9",e:"28:15"},M:{p:15,k:2,b:"12:1",e:"12:20"}}},"Shabbat HaGadol":{haft:{k:"Malachi",b:"3:4",e:"3:24"}},"Shabbat Parah":{haft:{k:"Ezekiel",b:"36:16",e:"36:38"},seph:{k:"Ezekiel",b:"36:16",e:"36:36"},fullkriyah:{M:{p:39,k:4,b:"19:1",e:"19:22"}}},"Shabbat Shekalim":{haft:{k:"II Kings",b:"12:1",e:"12:17"},seph:{k:"II Kings",b:"11:17",e:"12:17"},fullkriyah:{M:{p:21,k:2,b:"30:11",e:"30:16"}}},"Shabbat Shekalim (on Rosh Chodesh)":{haft:{k:"II Kings",b:"12:1",e:"12:17"},seph:{k:"II Kings",b:"11:17",e:"12:17"},fullkriyah:{7:{p:41,k:4,b:"28:9",e:"28:15"},M:{p:21,k:2,b:"30:11",e:"30:16"}}},"Shabbat Shuva (with Vayeilech)":{haft:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Micah",b:"7:18",e:"7:20"}]},"Shabbat Shuva (with Ha'azinu)":{haft:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Joel",b:"2:15",e:"2:27"}],seph:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Micah",b:"7:18",e:"7:20"}]},"Shabbat Shuva":{haft:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Micah",b:"7:18",e:"7:20"},{k:"Joel",b:"2:15",e:"2:27"}]},"Shabbat Zachor":{haft:{k:"I Samuel",b:"15:2",e:"15:34"},seph:{k:"I Samuel",b:"15:1",e:"15:34"},fullkriyah:{M:{p:49,k:5,b:"25:17",e:"25:19"}}},"Pinchas occurring after 17 Tammuz":{haft:{k:"Jeremiah",b:"1:1",e:"2:3"}},"Kedoshim following Special Shabbat":{haft:{k:"Amos",b:"9:7",e:"9:15"},seph:{k:"Ezekiel",b:"20:2",e:"20:20"}},"Masei on Shabbat Rosh Chodesh":{haft:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"3:4",e:"3:4"}],seph:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"4:1",e:"4:2"},{k:"Isaiah",b:"66:1",e:"66:1"},{k:"Isaiah",b:"66:23",e:"66:23"}],fullkriyah:{M:{p:41,k:4,b:"28:9",e:"28:15"}}},"Matot-Masei on Shabbat Rosh Chodesh":{alias:!0,key:"Masei on Shabbat Rosh Chodesh"},"Ki Teitzei with 3rd Haftarah of Consolation":{haft:[{k:"Isaiah",b:"54:1",e:"54:10"},{k:"Isaiah",b:"54:11",e:"55:5"}]},"Rosh Chodesh":{fullkriyah:{1:{p:41,k:4,b:"28:1",e:"28:3"},2:{p:41,k:4,b:"28:3",e:"28:5"},3:{p:41,k:4,b:"28:6",e:"28:10"},4:{p:41,k:4,b:"28:11",e:"28:15"}}},"Rosh Chodesh Nisan":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Iyyar":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Sivan":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Tamuz":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Av":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Elul":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Tishrei":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Cheshvan":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Kislev":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Sh'vat":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Adar":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Adar I":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Adar II":{alias:!0,key:"Rosh Chodesh"},"Shabbat Rosh Chodesh":{haft:{k:"Isaiah",b:"66:1",e:"66:24"},fullkriyah:{M:{p:41,k:4,b:"28:9",e:"28:15"}}},"Shabbat Machar Chodesh":{haft:{k:"I Samuel",b:"20:18",e:"20:42"}}};function y(e){return"object"==typeof p[e]}function c(e){let a=p[e];if(void 0===a)return;if(a.alias){const h=p[a.key];if(void 0===h)throw new Error(`Leyning alias ${e} => ${a.key} not found`);a=h}const h=a.fullkriyah?t(a):a;if(h.fullkriyah)for(const e of Object.values(h.fullkriyah))"number"==typeof e.k&&(e.k=k[e.k]);return a.note&&(h.note=a.note),h}const m=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.HEBREW_DATE|a.flags.MISHNA_YOMI|a.flags.MODERN_HOLIDAY|a.flags.YERUSHALMI_YOMI;function d(e,h=!1){if(void 0!==e.eventTime)return;const k=e.getFlags();if(k&m)return;const o=e.getDesc();if(k&a.flags.EREV&&!y(o))return;const t=e.getDate(),b=t.getDate(),i=t.abs()%7,r=t.getMonth(),s=6==i,n=1==b||30==b,l=e.basename(),u="Pesach"===l;if(h&&u)return s?15===b||21===b?o+" (on Shabbat)":"Pesach Shabbat Chol ha-Moed":o;if(1==b&&r===a.months.TISHREI)return s?"Rosh Hashana I (on Shabbat)":"Rosh Hashana I";const f=e.cholHaMoedDay;if("number"==typeof f){if(s)return l+" Shabbat Chol ha-Moed";if("Sukkot VII (Hoshana Raba)"==o)return"Sukkot Final Day (Hoshana Raba)";if(u&&f){if(0===i&&"Pesach IV (CH''M)"===o)return"Pesach Chol ha-Moed Day 2 on Sunday";if(1===i&&"Pesach V (CH''M)"===o)return"Pesach Chol ha-Moed Day 3 on Monday"}return`${l} Chol ha-Moed Day ${f}`}const p=e.chanukahDay;if("number"==typeof p)return s&&n?"Shabbat Rosh Chodesh Chanukah":n&&7==p?"Chanukah Day 7 (on Rosh Chodesh)":s?`Chanukah Day ${p} (on Shabbat)`:`Chanukah Day ${p}`;if(n&&("Shabbat HaChodesh"==o||"Shabbat Shekalim"==o))return o+" (on Rosh Chodesh)";if(h&&"Shmini Atzeret"==o)return"Simchat Torah";if("Chag HaBanot"!==o){if(s&&"Shabbat"!=o.substring(0,7)){if(n)return"Rosh Chodesh Tevet"===o?"Shabbat Rosh Chodesh Chanukah":"Shabbat Rosh Chodesh";const e=o+" (on Shabbat)";if(y(e))return e}if(y(o))return o;if(s){const e=t.next().getDate();if(30===e||1===e)return"Shabbat Machar Chodesh"}if("Rosh Hashana LaBehemot"!==o)return"Rosh Chodesh Tevet"===o?s?"Shabbat Rosh Chodesh Chanukah":30===b||a.HDate.shortKislev(t.getFullYear())?"Chanukah Day 6":"Chanukah Day 7 (on Rosh Chodesh)":n?o:"Tish'a B'Av (observed)"===o?"Tish'a B'Av":void 0}}function M(e,a){a[7]&&(!function(e){const a=t(e[6]),h=e[7];if(a.k!==h.k)throw new Error("Impossible to combine aliyot 6 & 7: "+JSON.stringify(e));delete e[7],e[6]={k:a.k,b:a.b,e:h.e},a.v&&h.v&&(e[6].v=a.v+h.v)}(e),e[7]=t(a[7]),b(e[7])),a.M&&(e.M=t(a.M),b(e.M))}function g(e,h,k,b){let i,r,s=!1;const l={};function u(e){const a=c(e);if(a&&("boolean"!=typeof a.il||k===a.il)&&(a.haft&&!s&&(i=n(a.haft),l.haftara=e,s=!0,a.seph&&(r=n(a.seph),l.sephardic=e)),a.fullkriyah)){const h=t(b);M(h,a.fullkriyah);for(const h of Object.keys(a.fullkriyah))l[h]=e;b=h}}const f=o(e),p=(a.HebrewCalendar.getHolidaysOnDate(h,k)||[]).filter((e=>!(e.getFlags()&a.flags.ROSH_CHODESH)));for(const e of p)if("Shabbat Shuva"===e.getDesc())u(`Shabbat Shuva (with ${f})`);else{const a=d(e,k);a&&u(a)}if(!i){const e=h.getDate();if("Pinchas"===f&&e>17)u("Pinchas occurring after 17 Tammuz");else if(30===e||1===e){u("Masei"===f||"Matot-Masei"===f?`${f} on Shabbat Rosh Chodesh`:"Shabbat Rosh Chodesh")}else if("Ki Teitzei"===f&&14===e)u("Ki Teitzei with 3rd Haftarah of Consolation");else if("Kedoshim"!==f||26!==e&&28!==e&&6!==e){if(h.getMonth()!==a.months.AV){const e=h.next().getDate();30!==e&&1!==e||u("Shabbat Machar Chodesh")}}else u("Kedoshim following Special Shabbat")}return{aliyot:b,reason:l,haft:i,seph:r}}function S(e,k,o){if("string"!=typeof e)return;const i=c(e);if(void 0===i)return;if("boolean"==typeof i.il&&"boolean"==typeof o&&o!==i.il)return;const r={name:{en:e,he:a.Locale.lookupTranslation(e,"he")}};if(i.fullkriyah){if(r.fullkriyah=t(i.fullkriyah),"Sukkot Shabbat Chol ha-Moed"===e&&k){r.fullkriyah.M=r.fullkriyah[`M-day${k}`];for(let e=1;e<=5;e++)delete r.fullkriyah[`M-day${e}`]}if("object"==typeof r.fullkriyah[1]){const e=u(r.fullkriyah);r.summary=f(e),e.length>1&&(r.summaryParts=e)}Object.values(r.fullkriyah).map((e=>b(e)))}if(i.haft){const e=r.haft=n(i.haft);r.haftara=f(e),r.haftaraNumV=s(e)}if(i.seph){const e=r.seph=n(i.seph);r.sephardic=f(e),r.sephardicNumV=s(e)}if(i.megillah){const e=i.megillah,a=h[e],k={};for(let h=1;h<a.length;h++){const o=a[h];k[`${h}`]={k:e,b:`${h}:1`,e:`${h}:${o}`,v:o}}r.megillah=k}return i.note&&(r.note=i.note),r}function w(e,h=!1){if("object"!=typeof e||"function"!=typeof e.getFlags)throw new TypeError(`Bad event argument: ${e}`);if(void 0!==e.eventTime)return;if(e.getFlags()&a.flags.PARSHA_HASHAVUA)throw new TypeError(`Event should be a holiday: ${e.getDesc()}`);if(e.getFlags()&m)return;return S(d(e,h),e.cholHaMoedDay,h)}var I={Bereshit:{num:1,hebrew:"בְּרֵאשִׁית",book:1,haft:{k:"Isaiah",b:"42:5",e:"43:10"},seph:{k:"Isaiah",b:"42:5",e:"42:21"},fullkriyah:{1:["1:1","2:3"],2:["2:4","2:19"],3:["2:20","3:21"],4:["3:22","4:18"],5:["4:19","4:22"],6:["4:23","5:24"],7:["5:25","6:8"],M:["6:5","6:8"]},weekday:{1:["1:1","1:5"],2:["1:6","1:8"],3:["1:9","1:13"]}},Noach:{num:2,hebrew:"נֹחַ",book:1,haft:{k:"Isaiah",b:"54:1",e:"55:5"},seph:{k:"Isaiah",b:"54:1",e:"54:10"},fullkriyah:{1:["6:9","6:22"],2:["7:1","7:16"],3:["7:17","8:14"],4:["8:15","9:7"],5:["9:8","9:17"],6:["9:18","10:32"],7:["11:1","11:32"],M:["11:29","11:32"]},weekday:{1:["6:9","6:16"],2:["6:17","6:19"],3:["6:20","6:22"]}},"Lech-Lecha":{num:3,hebrew:"לֶךְ־לְךָ",book:1,haft:{k:"Isaiah",b:"40:27",e:"41:16"},fullkriyah:{1:["12:1","12:13"],2:["12:14","13:4"],3:["13:5","13:18"],4:["14:1","14:20"],5:["14:21","15:6"],6:["15:7","17:6"],7:["17:7","17:27"],M:["17:24","17:27"]},weekday:{1:["12:1","12:3"],2:["12:4","12:9"],3:["12:10","12:13"]}},Vayera:{num:4,hebrew:"וַיֵּרָא",book:1,haft:{k:"II Kings",b:"4:1",e:"4:37"},seph:{k:"II Kings",b:"4:1",e:"4:23"},fullkriyah:{1:["18:1","18:14"],2:["18:15","18:33"],3:["19:1","19:20"],4:["19:21","21:4"],5:["21:5","21:21"],6:["21:22","21:34"],7:["22:1","22:24"],M:["22:20","22:24"]},weekday:{1:["18:1","18:5"],2:["18:6","18:8"],3:["18:9","18:14"]}},"Chayei Sara":{num:5,hebrew:"חַיֵּי שָֹרָה",book:1,haft:{k:"I Kings",b:"1:1",e:"1:31"},fullkriyah:{1:["23:1","23:16"],2:["23:17","24:9"],3:["24:10","24:26"],4:["24:27","24:52"],5:["24:53","24:67"],6:["25:1","25:11"],7:["25:12","25:18"],M:["25:16","25:18"]},weekday:{1:["23:1","23:7"],2:["23:8","23:12"],3:["23:13","23:16"]}},Toldot:{num:6,hebrew:"תּוֹלְדוֹת",book:1,haft:{k:"Malachi",b:"1:1",e:"2:7"},fullkriyah:{1:["25:19","26:5"],2:["26:6","26:12"],3:["26:13","26:22"],4:["26:23","26:29"],5:["26:30","27:27"],6:["27:28","28:4"],7:["28:5","28:9"],M:["28:7","28:9"]},weekday:{1:["25:19","25:22"],2:["25:23","25:26"],3:["25:27","26:5"]}},Vayetzei:{num:7,hebrew:"וַיֵּצֵא",book:1,haft:{k:"Hosea",b:"12:13",e:"14:10"},seph:{k:"Hosea",b:"11:7",e:"12:12"},fullkriyah:{1:["28:10","28:22"],2:["29:1","29:17"],3:["29:18","30:13"],4:["30:14","30:27"],5:["30:28","31:16"],6:["31:17","31:42"],7:["31:43","32:3"],M:["32:1","32:3"]},weekday:{1:["28:10","28:12"],2:["28:13","28:17"],3:["28:18","28:22"]}},Vayishlach:{num:8,hebrew:"וַיִּשְׁלַח",book:1,haft:{k:"Obadiah",b:"1:1",e:"1:21"},fullkriyah:{1:["32:4","32:13"],2:["32:14","32:30"],3:["32:31","33:5"],4:["33:6","33:20"],5:["34:1","35:11"],6:["35:12","36:19"],7:["36:20","36:43"],M:["36:40","36:43"]},weekday:{1:["32:4","32:6"],2:["32:7","32:9"],3:["32:10","32:13"]}},Vayeshev:{num:9,hebrew:"וַיֵּשֶׁב",book:1,haft:{k:"Amos",b:"2:6",e:"3:8"},fullkriyah:{1:["37:1","37:11"],2:["37:12","37:22"],3:["37:23","37:36"],4:["38:1","38:30"],5:["39:1","39:6"],6:["39:7","39:23"],7:["40:1","40:23"],M:["40:20","40:23"]},weekday:{1:["37:1","37:3"],2:["37:4","37:7"],3:["37:8","37:11"]}},Miketz:{num:10,hebrew:"מִקֵּץ",book:1,haft:{k:"I Kings",b:"3:15",e:"4:1"},fullkriyah:{1:["41:1","41:14"],2:["41:15","41:38"],3:["41:39","41:52"],4:["41:53","42:18"],5:["42:19","43:15"],6:["43:16","43:29"],7:["43:30","44:17"],M:["44:14","44:17"]},weekday:{1:["41:1","41:4"],2:["41:5","41:7"],3:["41:8","41:14"]}},Vayigash:{num:11,hebrew:"וַיִּגַּשׁ",book:1,haft:{k:"Ezekiel",b:"37:15",e:"37:28"},fullkriyah:{1:["44:18","44:30"],2:["44:31","45:7"],3:["45:8","45:18"],4:["45:19","45:27"],5:["45:28","46:27"],6:["46:28","47:10"],7:["47:11","47:27"],M:["47:25","47:27"]},weekday:{1:["44:18","44:20"],2:["44:21","44:24"],3:["44:25","44:30"]}},Vayechi:{num:12,hebrew:"וַיְחִי",book:1,haft:{k:"I Kings",b:"2:1",e:"2:12"},fullkriyah:{1:["47:28","48:9"],2:["48:10","48:16"],3:["48:17","48:22"],4:["49:1","49:18"],5:["49:19","49:26"],6:["49:27","50:20"],7:["50:21","50:26"],M:["50:23","50:26"]},weekday:{1:["47:28","47:31"],2:["48:1","48:3"],3:["48:4","48:9"]}},Shemot:{num:13,hebrew:"שְׁמוֹת",book:2,haft:[{k:"Isaiah",b:"27:6",e:"28:13"},{k:"Isaiah",b:"29:22",e:"29:23"}],seph:{k:"Jeremiah",b:"1:1",e:"2:3"},fullkriyah:{1:["1:1","1:17"],2:["1:18","2:10"],3:["2:11","2:25"],4:["3:1","3:15"],5:["3:16","4:17"],6:["4:18","4:31"],7:["5:1","6:1"],M:["5:22","6:1"]},weekday:{1:["1:1","1:7"],2:["1:8","1:12"],3:["1:13","1:17"]}},Vaera:{num:14,hebrew:"וָאֵרָא",book:2,haft:{k:"Ezekiel",b:"28:25",e:"29:21"},fullkriyah:{1:["6:2","6:13"],2:["6:14","6:28"],3:["6:29","7:7"],4:["7:8","8:6"],5:["8:7","8:18"],6:["8:19","9:16"],7:["9:17","9:35"],M:["9:33","9:35"]},weekday:{1:["6:2","6:5"],2:["6:6","6:9"],3:["6:10","6:13"]}},Bo:{num:15,hebrew:"בֹּא",book:2,haft:{k:"Jeremiah",b:"46:13",e:"46:28"},fullkriyah:{1:["10:1","10:11"],2:["10:12","10:23"],3:["10:24","11:3"],4:["11:4","12:20"],5:["12:21","12:28"],6:["12:29","12:51"],7:["13:1","13:16"],M:["13:14","13:16"]},weekday:{1:["10:1","10:3"],2:["10:4","10:6"],3:["10:7","10:11"]}},Beshalach:{num:16,hebrew:"בְּשַׁלַּח",book:2,haft:{k:"Judges",b:"4:4",e:"5:31"},seph:{k:"Judges",b:"5:1",e:"5:31"},fullkriyah:{1:["13:17","14:8"],2:["14:9","14:14"],3:["14:15","14:25"],4:["14:26","15:26"],5:["15:27","16:10"],6:["16:11","16:36"],7:["17:1","17:16"],M:["17:14","17:16"]},weekday:{1:["13:17","13:22"],2:["14:1","14:4"],3:["14:5","14:8"]}},Yitro:{num:17,hebrew:"יִתְרוֹ",book:2,haft:[{k:"Isaiah",b:"6:1",e:"7:6"},{k:"Isaiah",b:"9:5",e:"9:6"}],seph:{k:"Isaiah",b:"6:1",e:"6:13"},fullkriyah:{1:["18:1","18:12"],2:["18:13","18:23"],3:["18:24","18:27"],4:["19:1","19:6"],5:["19:7","19:19"],6:["19:20","20:14"],7:["20:15","20:23"],M:["20:19","20:23"]},weekday:{1:["18:1","18:4"],2:["18:5","18:8"],3:["18:9","18:12"]}},Mishpatim:{num:18,hebrew:"מִּשְׁפָּטִים",book:2,haft:[{k:"Jeremiah",b:"34:8",e:"34:22"},{k:"Jeremiah",b:"33:25",e:"33:26"}],fullkriyah:{1:["21:1","21:19"],2:["21:20","22:3"],3:["22:4","22:26"],4:["22:27","23:5"],5:["23:6","23:19"],6:["23:20","23:25"],7:["23:26","24:18"],M:["24:15","24:18"]},weekday:{1:["21:1","21:6"],2:["21:7","21:11"],3:["21:12","21:19"]}},Terumah:{num:19,hebrew:"תְּרוּמָה",book:2,haft:{k:"I Kings",b:"5:26",e:"6:13"},fullkriyah:{1:["25:1","25:16"],2:["25:17","25:30"],3:["25:31","26:14"],4:["26:15","26:30"],5:["26:31","26:37"],6:["27:1","27:8"],7:["27:9","27:19"],M:["27:17","27:19"]},weekday:{1:["25:1","25:5"],2:["25:6","25:9"],3:["25:10","25:16"]}},Tetzaveh:{num:20,hebrew:"תְּצַוֶּה",book:2,haft:{k:"Ezekiel",b:"43:10",e:"43:27"},fullkriyah:{1:["27:20","28:12"],2:["28:13","28:30"],3:["28:31","28:43"],4:["29:1","29:18"],5:["29:19","29:37"],6:["29:38","29:46"],7:["30:1","30:10"],M:["30:8","30:10"]},weekday:{1:["27:20","28:5"],2:["28:6","28:9"],3:["28:10","28:12"]}},"Ki Tisa":{num:21,hebrew:"כִּי תִשָּׂא",book:2,haft:{k:"I Kings",b:"18:1",e:"18:39"},seph:{k:"I Kings",b:"18:20",e:"18:39"},fullkriyah:{1:["30:11","31:17"],2:["31:18","33:11"],3:["33:12","33:16"],4:["33:17","33:23"],5:["34:1","34:9"],6:["34:10","34:26"],7:["34:27","34:35"],M:["34:33","34:35"]},weekday:{1:["30:11","30:13"],2:["30:14","30:16"],3:["30:17","30:21"]}},Vayakhel:{num:22,hebrew:"וַיַּקְהֵל",book:2,haft:{k:"I Kings",b:"7:40",e:"7:50"},seph:{k:"I Kings",b:"7:13",e:"7:26"},fullkriyah:{1:["35:1","35:20"],2:["35:21","35:29"],3:["35:30","36:7"],4:["36:8","36:19"],5:["36:20","37:16"],6:["37:17","37:29"],7:["38:1","38:20"],M:["38:18","38:20"]},weekday:{1:["35:1","35:3"],2:["35:4","35:10"],3:["35:11","35:20"]}},Pekudei:{num:23,hebrew:"פְקוּדֵי",book:2,haft:{k:"I Kings",b:"7:51",e:"8:21"},seph:{k:"I Kings",b:"7:40",e:"7:50"},fullkriyah:{1:["38:21","39:1"],2:["39:2","39:21"],3:["39:22","39:32"],4:["39:33","39:43"],5:["40:1","40:16"],6:["40:17","40:27"],7:["40:28","40:38"],M:["40:34","40:38"]},weekday:{1:["38:21","38:23"],2:["38:24","38:27"],3:["38:28","39:1"]}},Vayikra:{num:24,hebrew:"וַיִּקְרָא",book:3,haft:{k:"Isaiah",b:"43:21",e:"44:23"},fullkriyah:{1:["1:1","1:13"],2:["1:14","2:6"],3:["2:7","2:16"],4:["3:1","3:17"],5:["4:1","4:26"],6:["4:27","5:10"],7:["5:11","5:26"],M:["5:24","5:26"]},weekday:{1:["1:1","1:4"],2:["1:5","1:9"],3:["1:10","1:13"]}},Tzav:{num:25,hebrew:"צַו",book:3,haft:[{k:"Jeremiah",b:"7:21",e:"8:3"},{k:"Jeremiah",b:"9:22",e:"9:23"}],fullkriyah:{1:["6:1","6:11"],2:["6:12","7:10"],3:["7:11","7:38"],4:["8:1","8:13"],5:["8:14","8:21"],6:["8:22","8:29"],7:["8:30","8:36"],M:["8:33","8:36"]},weekday:{1:["6:1","6:3"],2:["6:4","6:6"],3:["6:7","6:11"]}},Shmini:{num:26,hebrew:"שְּׁמִינִי",book:3,haft:{k:"II Samuel",b:"6:1",e:"7:17"},seph:{k:"II Samuel",b:"6:1",e:"6:19"},fullkriyah:{1:["9:1","9:16"],2:["9:17","9:23"],3:["9:24","10:11"],4:["10:12","10:15"],5:["10:16","10:20"],6:["11:1","11:32"],7:["11:33","11:47"],M:["11:45","11:47"]},weekday:{1:["9:1","9:6"],2:["9:7","9:10"],3:["9:11","9:16"]}},Tazria:{num:27,hebrew:"תַזְרִיעַ",book:3,haft:{k:"II Kings",b:"4:42",e:"5:19"},fullkriyah:{1:["12:1","13:5"],2:["13:6","13:17"],3:["13:18","13:23"],4:["13:24","13:28"],5:["13:29","13:39"],6:["13:40","13:54"],7:["13:55","13:59"],M:["13:57","13:59"]},weekday:{1:["12:1","12:4"],2:["12:5","12:8"],3:["13:1","13:5"]}},Metzora:{num:28,hebrew:"מְּצֹרָע",book:3,haft:{k:"II Kings",b:"7:3",e:"7:20"},fullkriyah:{1:["14:1","14:12"],2:["14:13","14:20"],3:["14:21","14:32"],4:["14:33","14:53"],5:["14:54","15:15"],6:["15:16","15:28"],7:["15:29","15:33"],M:["15:31","15:33"]},weekday:{1:["14:1","14:5"],2:["14:6","14:9"],3:["14:10","14:12"]}},"Achrei Mot":{num:29,hebrew:"אַחֲרֵי מוֹת",book:3,haft:{k:"Amos",b:"9:7",e:"9:15"},seph:{k:"Ezekiel",b:"22:1",e:"22:16"},fullkriyah:{1:["16:1","16:17"],2:["16:18","16:24"],3:["16:25","16:34"],4:["17:1","17:7"],5:["17:8","18:5"],6:["18:6","18:21"],7:["18:22","18:30"],M:["18:28","18:30"]},weekday:{1:["16:1","16:6"],2:["16:7","16:11"],3:["16:12","16:17"]}},Kedoshim:{num:30,hebrew:"קְדשִׁים",book:3,haft:{k:"Ezekiel",b:"22:1",e:"22:19"},seph:{k:"Ezekiel",b:"20:2",e:"20:20"},fullkriyah:{1:["19:1","19:14"],2:["19:15","19:22"],3:["19:23","19:32"],4:["19:33","19:37"],5:["20:1","20:7"],6:["20:8","20:22"],7:["20:23","20:27"],M:["20:25","20:27"]},weekday:{1:["19:1","19:4"],2:["19:5","19:10"],3:["19:11","19:14"]}},Emor:{num:31,hebrew:"אֱמוֹר",book:3,haft:{k:"Ezekiel",b:"44:15",e:"44:31"},fullkriyah:{1:["21:1","21:15"],2:["21:16","22:16"],3:["22:17","22:33"],4:["23:1","23:22"],5:["23:23","23:32"],6:["23:33","23:44"],7:["24:1","24:23"],M:["24:21","24:23"]},weekday:{1:["21:1","21:6"],2:["21:7","21:12"],3:["21:13","21:15"]}},Behar:{num:32,hebrew:"בְּהַר",book:3,haft:{k:"Jeremiah",b:"32:6",e:"32:27"},fullkriyah:{1:["25:1","25:13"],2:["25:14","25:18"],3:["25:19","25:24"],4:["25:25","25:28"],5:["25:29","25:38"],6:["25:39","25:46"],7:["25:47","26:2"],M:["25:55","26:2"]},weekday:{1:["25:1","25:3"],2:["25:4","25:7"],3:["25:8","25:13"]}},Bechukotai:{num:33,hebrew:"בְּחֻקֹּתַי",book:3,haft:{k:"Jeremiah",b:"16:19",e:"17:14"},fullkriyah:{1:["26:3","26:5"],2:["26:6","26:9"],3:["26:10","26:46"],4:["27:1","27:15"],5:["27:16","27:21"],6:["27:22","27:28"],7:["27:29","27:34"],M:["27:32","27:34"]},weekday:{1:["26:3","26:5"],2:["26:6","26:9"],3:["26:10","26:13"]}},Bamidbar:{num:34,hebrew:"בְּמִדְבַּר",book:4,haft:{k:"Hosea",b:"2:1",e:"2:22"},fullkriyah:{1:["1:1","1:19"],2:["1:20","1:54"],3:["2:1","2:34"],4:["3:1","3:13"],5:["3:14","3:39"],6:["3:40","3:51"],7:["4:1","4:20"],M:["4:17","4:20"]},weekday:{1:["1:1","1:4"],2:["1:5","1:16"],3:["1:17","1:19"]}},Nasso:{num:35,hebrew:"נָשׂא",book:4,haft:{k:"Judges",b:"13:2",e:"13:25"},fullkriyah:{1:["4:21","4:37"],2:["4:38","4:49"],3:["5:1","5:10"],4:["5:11","6:27"],5:["7:1","7:41"],6:["7:42","7:71"],7:["7:72","7:89"],M:["7:87","7:89"]},weekday:{1:["4:21","4:24"],2:["4:25","4:28"],3:["4:29","4:33"]}},"Beha'alotcha":{num:36,hebrew:"בְּהַעֲלֹתְךָ",book:4,haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{1:["8:1","8:14"],2:["8:15","8:26"],3:["9:1","9:14"],4:["9:15","10:10"],5:["10:11","10:34"],6:["10:35","11:29"],7:["11:30","12:16"],M:["12:14","12:16"]},weekday:{1:["8:1","8:4"],2:["8:5","8:9"],3:["8:10","8:14"]}},"Sh'lach":{num:37,hebrew:"שְׁלַח־לְךָ",book:4,haft:{k:"Joshua",b:"2:1",e:"2:24"},fullkriyah:{1:["13:1","13:20"],2:["13:21","14:7"],3:["14:8","14:25"],4:["14:26","15:7"],5:["15:8","15:16"],6:["15:17","15:26"],7:["15:27","15:41"],M:["15:37","15:41"]},weekday:{1:["13:1","13:3"],2:["13:4","13:16"],3:["13:17","13:20"]}},Korach:{num:38,hebrew:"קוֹרַח",book:4,haft:{k:"I Samuel",b:"11:14",e:"12:22"},fullkriyah:{1:["16:1","16:13"],2:["16:14","16:19"],3:["16:20","17:8"],4:["17:9","17:15"],5:["17:16","17:24"],6:["17:25","18:20"],7:["18:21","18:32"],M:["18:30","18:32"]},weekday:{1:["16:1","16:3"],2:["16:4","16:7"],3:["16:8","16:13"]}},Chukat:{num:39,hebrew:"חֻקַּת",book:4,haft:{k:"Judges",b:"11:1",e:"11:33"},fullkriyah:{1:["19:1","19:17"],2:["19:18","20:6"],3:["20:7","20:13"],4:["20:14","20:21"],5:["20:22","21:9"],6:["21:10","21:20"],7:["21:21","22:1"],M:["21:34","22:1"]},weekday:{1:["19:1","19:6"],2:["19:7","19:9"],3:["19:10","19:17"]}},Balak:{num:40,hebrew:"בָּלָק",book:4,haft:{k:"Micah",b:"5:6",e:"6:8"},fullkriyah:{1:["22:2","22:12"],2:["22:13","22:20"],3:["22:21","22:38"],4:["22:39","23:12"],5:["23:13","23:26"],6:["23:27","24:13"],7:["24:14","25:9"],M:["25:7","25:9"]},weekday:{1:["22:2","22:4"],2:["22:5","22:7"],3:["22:8","22:12"]}},Pinchas:{num:41,hebrew:"פִּינְחָס",book:4,haft:{k:"I Kings",b:"18:46",e:"19:21"},fullkriyah:{1:["25:10","26:4"],2:["26:5","26:51"],3:["26:52","27:5"],4:["27:6","27:23"],5:["28:1","28:15"],6:["28:16","29:11"],7:["29:12","30:1"],M:["29:35","30:1"]},weekday:{1:["25:10","25:12"],2:["25:13","25:15"],3:["25:16","26:4"]}},Matot:{num:42,hebrew:"מַּטּוֹת",book:4,haft:{k:"Jeremiah",b:"1:1",e:"2:3"},fullkriyah:{1:["30:2","30:17"],2:["31:1","31:12"],3:["31:13","31:24"],4:["31:25","31:41"],5:["31:42","31:54"],6:["32:1","32:19"],7:["32:20","32:42"],M:["32:39","32:42"]},weekday:{1:["30:2","30:9"],2:["30:10","30:13"],3:["30:14","30:17"]}},Masei:{num:43,hebrew:"מַסְעֵי",book:4,haft:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"3:4",e:"3:4"}],seph:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"4:1",e:"4:2"}],fullkriyah:{1:["33:1","33:10"],2:["33:11","33:49"],3:["33:50","34:15"],4:["34:16","34:29"],5:["35:1","35:8"],6:["35:9","35:34"],7:["36:1","36:13"],M:["36:11","36:13"]},weekday:{1:["33:1","33:3"],2:["33:4","33:6"],3:["33:7","33:10"]}},Devarim:{num:44,hebrew:"דְּבָרִים",book:5,haft:{k:"Isaiah",b:"1:1",e:"1:27"},fullkriyah:{1:["1:1","1:10"],2:["1:11","1:21"],3:["1:22","1:38"],4:["1:39","2:1"],5:["2:2","2:30"],6:["2:31","3:14"],7:["3:15","3:22"],M:["3:20","3:22"]},weekday:{1:["1:1","1:3"],2:["1:4","1:7"],3:["1:8","1:11"]}},Vaetchanan:{num:45,hebrew:"וָאֶתְחַנַּן",book:5,haft:{k:"Isaiah",b:"40:1",e:"40:26"},fullkriyah:{1:["3:23","4:4"],2:["4:5","4:40"],3:["4:41","4:49"],4:["5:1","5:18"],5:["5:19","6:3"],6:["6:4","6:25"],7:["7:1","7:11"],M:["7:9","7:11"]},weekday:{1:["3:23","3:25"],2:["3:26","4:4"],3:["4:5","4:8"]}},Eikev:{num:46,hebrew:"עֵקֶב",book:5,haft:{k:"Isaiah",b:"49:14",e:"51:3"},fullkriyah:{1:["7:12","8:10"],2:["8:11","9:3"],3:["9:4","9:29"],4:["10:1","10:11"],5:["10:12","11:9"],6:["11:10","11:21"],7:["11:22","11:25"],M:["11:22","11:25"]},weekday:{1:["7:12","7:21"],2:["7:22","8:3"],3:["8:4","8:10"]}},"Re'eh":{num:47,hebrew:"רְאֵה",book:5,haft:{k:"Isaiah",b:"54:11",e:"55:5"},fullkriyah:{1:["11:26","12:10"],2:["12:11","12:28"],3:["12:29","13:19"],4:["14:1","14:21"],5:["14:22","14:29"],6:["15:1","15:18"],7:["15:19","16:17"],M:["16:13","16:17"]},weekday:{1:["11:26","11:31"],2:["11:32","12:5"],3:["12:6","12:10"]}},Shoftim:{num:48,hebrew:"שׁוֹפְטִים",book:5,haft:{k:"Isaiah",b:"51:12",e:"52:12"},fullkriyah:{1:["16:18","17:13"],2:["17:14","17:20"],3:["18:1","18:5"],4:["18:6","18:13"],5:["18:14","19:13"],6:["19:14","20:9"],7:["20:10","21:9"],M:["21:7","21:9"]},weekday:{1:["16:18","16:20"],2:["16:21","17:10"],3:["17:11","17:13"]}},"Ki Teitzei":{num:49,hebrew:"כִּי־תֵצֵא",book:5,haft:{k:"Isaiah",b:"54:1",e:"54:10"},fullkriyah:{1:["21:10","21:21"],2:["21:22","22:7"],3:["22:8","23:7"],4:["23:8","23:24"],5:["23:25","24:4"],6:["24:5","24:13"],7:["24:14","25:19"],M:["25:17","25:19"]},weekday:{1:["21:10","21:14"],2:["21:15","21:17"],3:["21:18","21:21"]}},"Ki Tavo":{num:50,hebrew:"כִּי־תָבוֹא",book:5,haft:{k:"Isaiah",b:"60:1",e:"60:22"},fullkriyah:{1:["26:1","26:11"],2:["26:12","26:15"],3:["26:16","26:19"],4:["27:1","27:10"],5:["27:11","28:6"],6:["28:7","28:69"],7:["29:1","29:8"],M:["29:6","29:8"]},weekday:{1:["26:1","26:3"],2:["26:4","26:11"],3:["26:12","26:15"]}},Nitzavim:{num:51,hebrew:"נִצָּבִים",book:5,haft:{k:"Isaiah",b:"61:10",e:"63:9"},fullkriyah:{1:["29:9","29:11"],2:["29:12","29:14"],3:["29:15","29:28"],4:["30:1","30:6"],5:["30:7","30:10"],6:["30:11","30:14"],7:["30:15","30:20"],M:["30:15","30:20"]},weekday:{1:["29:9","29:11"],2:["29:12","29:14"],3:["29:15","29:28"]}},Vayeilech:{num:52,hebrew:"וַיֵּלֶךְ",book:5,haft:{k:"Isaiah",b:"55:6",e:"56:8"},fullkriyah:{1:["31:1","31:3"],2:["31:4","31:6"],3:["31:7","31:9"],4:["31:10","31:13"],5:["31:14","31:19"],6:["31:20","31:24"],7:["31:25","31:30"],M:["31:28","31:30"]},weekday:{1:["31:1","31:3"],2:["31:4","31:6"],3:["31:7","31:13"]}},"Ha'azinu":{num:53,hebrew:"הַאֲזִינוּ",book:5,haft:{k:"II Samuel",b:"22:1",e:"22:51"},fullkriyah:{1:["32:1","32:6"],2:["32:7","32:12"],3:["32:13","32:18"],4:["32:19","32:28"],5:["32:29","32:39"],6:["32:40","32:43"],7:["32:44","32:52"],M:["32:48","32:52"]},weekday:{1:["32:1","32:3"],2:["32:4","32:6"],3:["32:7","32:12"]}},"Vezot Haberakhah":{num:54,hebrew:"וְזֹאת הַבְּרָכָה",book:5,haft:{k:"Joshua",b:"1:1",e:"1:18"},seph:{k:"Joshua",b:"1:1",e:"1:9"},fullkriyah:{1:["33:1","33:7"],2:["33:8","33:12"],3:["33:13","33:17"],4:["33:18","33:21"],5:["33:22","33:26"],6:["33:27","33:29"],7:["34:1","34:12"]},weekday:{1:["33:1","33:7"],2:["33:8","33:12"],3:["33:13","33:17"]}},"Vayakhel-Pekudei":{num:101,combined:!0,p1:"Vayakhel",p2:"Pekudei",num1:22,num2:23,book:2,fullkriyah:{1:["35:1","35:29"],2:["35:30","37:16"],3:["37:17","37:29"],4:["38:1","39:1"],5:["39:2","39:21"],6:["39:22","39:43"],7:["40:1","40:38"],M:["40:34","40:38"]}},"Tazria-Metzora":{num:102,combined:!0,p1:"Tazria",p2:"Metzora",num1:27,num2:28,book:3,fullkriyah:{1:["12:1","13:23"],2:["13:24","13:39"],3:["13:40","13:54"],4:["13:55","14:20"],5:["14:21","14:32"],6:["14:33","15:15"],7:["15:16","15:33"],M:["15:31","15:33"]}},"Achrei Mot-Kedoshim":{num:103,combined:!0,p1:"Achrei Mot",p2:"Kedoshim",num1:29,num2:30,book:3,haft:{k:"Amos",b:"9:7",e:"9:15"},seph:{k:"Ezekiel",b:"20:2",e:"20:20"},fullkriyah:{1:["16:1","16:24"],2:["16:25","17:7"],3:["17:8","18:21"],4:["18:22","19:14"],5:["19:15","19:32"],6:["19:33","20:7"],7:["20:8","20:27"],M:["20:25","20:27"]}},"Behar-Bechukotai":{num:104,combined:!0,p1:"Behar",p2:"Bechukotai",num1:32,num2:33,book:3,fullkriyah:{1:["25:1","25:18"],2:["25:19","25:28"],3:["25:29","25:38"],4:["25:39","26:9"],5:["26:10","26:46"],6:["27:1","27:15"],7:["27:16","27:34"],M:["27:32","27:34"]}},"Chukat-Balak":{num:105,combined:!0,p1:"Chukat",p2:"Balak",num1:39,num2:40,book:4,fullkriyah:{1:["19:1","20:6"],2:["20:7","20:21"],3:["20:22","21:20"],4:["21:21","22:12"],5:["22:13","22:38"],6:["22:39","23:26"],7:["23:27","25:9"],M:["25:7","25:9"]}},"Matot-Masei":{num:106,combined:!0,p1:"Matot",p2:"Masei",num1:42,num2:43,book:4,fullkriyah:{1:["30:2","31:12"],2:["31:13","31:54"],3:["32:1","32:19"],4:["32:20","33:49"],5:["33:50","34:15"],6:["34:16","35:8"],7:["35:9","36:13"],M:["36:11","36:13"]}},"Nitzavim-Vayeilech":{num:107,combined:!0,p1:"Nitzavim",p2:"Vayeilech",num1:51,num2:52,book:5,fullkriyah:{1:["29:9","29:28"],2:["30:1","30:6"],3:["30:7","30:14"],4:["30:15","31:6"],5:["31:7","31:13"],6:["31:14","31:19"],7:["31:20","31:30"],M:["31:28","31:30"]}}};function C(e){return{en:o(e),he:e.map((e=>a.Locale.lookupTranslation(e,"he"))).join("־")}}function H(e){const a=v(e),h={},t=k[a.book];for(const[e,k]of Object.entries(a.fullkriyah)){const a={k:t,b:k[0],e:k[1]};b(a),h[e]=a}const i=o(e),r=a.combined?[a.p1,a.p2]:[i],l=u(h),p=f(l),y={name:C(r),parsha:r,parshaNum:a.num,summary:p,fullkriyah:h};l.length>1&&(y.summaryParts=l);const c=function(e){const a=e[0];return 2===e.length&&"Achrei Mot"==a?o(e):1===e.length||"Nitzavim"==a?a:e[1]}(r),m=I[c].haft;if(m){const e=y.haft=n(m);y.haftara=f(e),y.haftaraNumV=s(e)}const d=I[c].seph;if(d){const e=y.seph=n(d);y.sephardic=f(e),y.sephardicNumV=s(e)}return y}function D(e){const a=v(e),h=(a.combined?v(a.p1):a).weekday;if(!h)throw new Error(`Parsha missing weekday: ${e}`);const o=k[a.book],t={};for(let e=1;e<=3;e++){const a=""+e,k=h[a],i={k:o,b:k[0],e:k[1]};b(i),t[a]=i}return t}function A(e,h=!1){if("object"!=typeof e||"function"!=typeof e.getFlags)throw new TypeError(`Bad event argument: ${e}`);if(e.getFlags()!=a.flags.PARSHA_HASHAVUA)throw new TypeError(`Event must be parsha hashavua: ${e.getDesc()}`);const k=e.parsha,o=H(k),t=g(k,e.getDate(),h,o.fullkriyah),b=t.reason;if(t.haft){const e=o.haft=n(t.haft);if(o.haftara=f(e),o.haftaraNumV=s(e),t.seph){const e=o.seph=n(t.seph);o.sephardic=f(e),o.sephardicNumV=s(e)}else o.seph&&(delete o.seph,delete o.sephardic,delete o.sephardicNumV)}if(b[7]||b.M){o.fullkriyah=t.aliyot;const e=u(o.fullkriyah);o.summary=f(e),o.summaryParts=e}const i=Object.keys(b);if(0!==i.length){o.reason=b;for(const e of i)if("haftara"===e||"sephardic"===e){const a=o["haftara"===e?"haft":"seph"],h=Array.isArray(a)?a:[a];for(const a of h)a.reason=b[e]}else{const a=o.fullkriyah[e];"object"==typeof a&&(a.reason=b[e])}}return o}function v(e){const a=o(e),h=I[a];if("object"!=typeof h)throw new TypeError(`Bad parsha argument: ${e}`);return h}const R=" (Mincha)";function E(e,a){const h=S(e.getDesc()+R,e.cholHaMoedDay,a);if(h)return h;const k=d(e,a);if(k){const h=S(k+R,e.cholHaMoedDay,a);if(h)return h}}const T=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"2-digit"});function P(e){return e.filter((e=>e.getFlags()===a.flags.PARSHA_HASHAVUA)).reduce(((e,a)=>(e[a.getDate().toString()]=!0,e)),{})}function z(e,h,k){if(function(e){const h=e.getFlags();return h===a.flags.SPECIAL_SHABBAT||h===a.flags.ROSH_CHODESH&&6===e.getDate().getDay()}(h))return;const o=h.getFlags()===a.flags.PARSHA_HASHAVUA,t=o?A(h,k):w(h,k);t&&(K(e,h,t,k,o),o||J(e,h,k))}function J(e,h,k){const o=h.getDesc()+" (Mincha)",t=S(o,h.cholHaMoedDay,k)||S(d(h,k)+" (Mincha)",h.cholHaMoedDay,k);if(t){K(e,new a.Event(h.getDate(),o,a.flags.USER_EVENT),t,k,!1)}}function K(e,a,h,k,o){const t=o?a.basename():d(a,k)||a.render(),b=function(e){const a=T.format(e).split(" ");return a[1].substring(0,2)+"-"+a[0]+"-"+a[2]}(a.getDate().greg()),r=function(e){const a=[];if(e.fullkriyah)for(const[h,k]of Object.entries(e.fullkriyah))if(void 0!==k){const o="M"==h?"maf":h;let t=i(k);e.reason?.[h]&&(t+=" | "+e.reason[h]),a.push([o,t,k.v||""])}if(e.haftara){let h=e.haftara.replace(/,/g,";");e.reason?.haftara&&(h+=" | "+e.reason.haftara);const k=e.sephardic?"Haftara for Ashkenazim":"Haftara";a.push([k,h,e.haftaraNumV||""])}if(e.sephardic){let h=e.sephardic.replace(/,/g,";");e.reason?.sephardic&&(h+=" | "+e.reason.sephardic),a.push(["Haftara for Sephardim",h,e.sephardicNumV||""])}if(e.triHaftara){const h=e.triHaftara.replace(/,/g,";");a.push(["Alternate Haftara",h,e.triHaftaraNumV||""])}if(e.megillah)for(const[h,k]of Object.entries(e.megillah))if(void 0!==k){const e=i(k);a.push([`Megillah Ch. ${h}`,e,k.v||""])}return a}(h);for(const a of r){const h=a[0].charCodeAt(0);(h<48||h>57)&&(a[0]=`"${a[0]}"`),e.write(`${b},"${t}",${a[0]},"${a[1]}",${a[2]}\r\n`)}e.write("\r\n")}return e.BOOK=k,e.calculateNumVerses=b,e.clone=t,e.cloneHaftara=n,e.formatAliyahShort=r,e.formatAliyahWithBook=i,e.getLeyningForHoliday=w,e.getLeyningForHolidayKey=S,e.getLeyningForParsha=function(e){const a=H(e);return a.weekday=D(e),a},e.getLeyningForParshaHaShavua=A,e.getLeyningKeyForEvent=d,e.getLeyningOnDate=function(e,h,k=!1){const o=e.getDay(),t=[];let b=!1;if(6===o){const o=e.getFullYear(),i=a.HebrewCalendar.getSedra(o,h).lookup(e);if(!i.chag){const o=A(new a.ParshaEvent(e,i.parsha,h),h);if(!k)return o;b=!0,t.push(o)}}const i=a.HebrewCalendar.getHolidaysOnDate(e,h)||[];let r=!1;for(const e of i){const k=Boolean(e.getFlags()&a.flags.SPECIAL_SHABBAT);if(b&&k)continue;const o=w(e,h);if(o){t.push(o),o.fullkriyah&&(r=!0);const a=E(e,h);a&&t.push(a)}}if(!r&&(1===o||4===o)){const h=function(e,h){const k=e.getFullYear(),o=a.HebrewCalendar.getSedra(k,h),t=o.lookup(e);if(!t.chag)return t;if(e.getMonth()===a.months.TISHREI){const a=e.getDate();if(a>10&&a<=(h?22:23))return{parsha:["Vezot Haberakhah"],chag:!1,num:54}}const b=new a.HDate(1,a.months.TISHREI,k+1).abs()-1,i=b+30;for(let t=e.abs()+7;t<=i;t+=7){const e=(t>b?a.HebrewCalendar.getSedra(k+1,h):o).lookup(t);if(!e.chag)return e}return null}(e.onOrAfter(6)),k={name:C(h.parsha),parsha:h.parsha,parshaNum:h.num,weekday:D(h.parsha)};t.unshift(k)}return k?t:t[0]},e.getParshaDates=P,e.getWeekdayReading=D,e.hasFestival=y,e.lookupFestival=c,e.lookupParsha=v,e.makeLeyningNames=C,e.makeLeyningParts=u,e.makeLeyningSummary=function(e){return f(u(e))},e.makeSummaryFromParts=f,e.parshaToString=o,e.specialReadings2=g,e.sumVerses=s,e.writeCsvLines=K,e.writeFullKriyahCsv=function(e,h,k){const o=a.HebrewCalendar.calendar({year:h,isHebrewYear:!0,sedrot:!0,il:k}).filter((e=>"Rosh Chodesh Tevet"!==e.getDesc())),t=P(o);e.write('"Date","Parashah","Aliyah","Reading","Verses"\r\n');for(const h of o)h.getFlags()!==a.flags.PARSHA_HASHAVUA&&t[h.getDate().toString()]||z(e,h,k)},e.writeHolidayMincha=J,e}({},hebcal);
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/leyning v8.1.
|
|
1
|
+
/*! @hebcal/leyning v8.1.9 */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var core = require('@hebcal/core');
|
|
@@ -818,6 +818,9 @@ var festivals = {"Pesach I":{
|
|
|
818
818
|
{"M":{"p":49,"k":5,"b":"25:17","e":"25:19"}}},
|
|
819
819
|
"Pinchas occurring after 17 Tammuz":{
|
|
820
820
|
"haft": {"k": "Jeremiah", "b": "1:1", "e": "2:3"}},
|
|
821
|
+
"Kedoshim following Special Shabbat":{
|
|
822
|
+
"haft":{"k":"Amos","b":"9:7","e":"9:15"},
|
|
823
|
+
"seph":{"k":"Ezekiel","b":"20:2","e":"20:20"}},
|
|
821
824
|
"Masei on Shabbat Rosh Chodesh":{
|
|
822
825
|
"haft":[
|
|
823
826
|
{"k":"Jeremiah","b":"2:4","e":"2:28"},
|
|
@@ -937,10 +940,11 @@ function getLeyningKeyForEvent(ev, il = false) {
|
|
|
937
940
|
}
|
|
938
941
|
return desc;
|
|
939
942
|
}
|
|
940
|
-
const cholHaMoedDay = ev.cholHaMoedDay;
|
|
941
943
|
if (day == 1 && month === core.months.TISHREI) {
|
|
942
944
|
return isShabbat ? 'Rosh Hashana I (on Shabbat)' : 'Rosh Hashana I';
|
|
943
|
-
}
|
|
945
|
+
}
|
|
946
|
+
const cholHaMoedDay = ev.cholHaMoedDay;
|
|
947
|
+
if (typeof cholHaMoedDay === 'number') {
|
|
944
948
|
// Sukkot or Pesach
|
|
945
949
|
if (isShabbat) {
|
|
946
950
|
return holiday + ' Shabbat Chol ha-Moed';
|
|
@@ -955,15 +959,17 @@ function getLeyningKeyForEvent(ev, il = false) {
|
|
|
955
959
|
}
|
|
956
960
|
}
|
|
957
961
|
return `${holiday} Chol ha-Moed Day ${cholHaMoedDay}`;
|
|
958
|
-
}
|
|
962
|
+
}
|
|
963
|
+
const chanukahDay = ev.chanukahDay;
|
|
964
|
+
if (typeof chanukahDay === 'number') {
|
|
959
965
|
if (isShabbat && isRoshChodesh) {
|
|
960
966
|
return 'Shabbat Rosh Chodesh Chanukah';
|
|
961
|
-
} else if (isRoshChodesh &&
|
|
967
|
+
} else if (isRoshChodesh && chanukahDay == 7) {
|
|
962
968
|
return `Chanukah Day 7 (on Rosh Chodesh)`;
|
|
963
969
|
} else if (isShabbat) {
|
|
964
|
-
return `Chanukah Day ${
|
|
970
|
+
return `Chanukah Day ${chanukahDay} (on Shabbat)`;
|
|
965
971
|
} else {
|
|
966
|
-
return `Chanukah Day ${
|
|
972
|
+
return `Chanukah Day ${chanukahDay}`;
|
|
967
973
|
}
|
|
968
974
|
}
|
|
969
975
|
|
|
@@ -1160,6 +1166,17 @@ function specialReadings2(parsha, hd, il, aliyot) {
|
|
|
1160
1166
|
// In the book of Isaiah these two brief passages are adjacent."
|
|
1161
1167
|
// Source: Luaḥ Hashanah, Rabbi Miles B. Cohen and Leslie Rubin
|
|
1162
1168
|
handleSpecial('Ki Teitzei with 3rd Haftarah of Consolation');
|
|
1169
|
+
} else if (parshaName === 'Kedoshim' && (day === 26 || day === 28 || day === 6)) {
|
|
1170
|
+
// Kedoshim is read separately from Achrei Mot in ~37% of years.
|
|
1171
|
+
// When this happens, it is will be read on
|
|
1172
|
+
// 26th or 28th of Nisan (Achrei Mot was Shabbat HaGadol, ~10%),
|
|
1173
|
+
// or 1st of Iyyar (Rosh Chodesh, ~10%),
|
|
1174
|
+
// or 6th of Iyyar (~10%, immediately after Shabbat Machar Chodesh)
|
|
1175
|
+
// or 3rd of Iyyar (~6%, "the nominal situation — in which both parashiyyot
|
|
1176
|
+
// are read separately and no overriding occasions coincide")
|
|
1177
|
+
// http://www.scholar.davidesstein.name/Articles/HaftarotOfEtzHayim--Stein.pdf
|
|
1178
|
+
// "The Haftarot of Etz Hayim," David E. S. Stein, Conservative Judaism 54/3 (Spring 2002)
|
|
1179
|
+
handleSpecial('Kedoshim following Special Shabbat');
|
|
1163
1180
|
} else if (hd.getMonth() !== core.months.AV) {
|
|
1164
1181
|
// Parashat Re'eh is always read in Av on 25, 27, 29 or 30.
|
|
1165
1182
|
// When it coincides with Erev Rosh Chodesh, the Haftarah is
|
|
@@ -1812,7 +1829,7 @@ var parshiyotObj = {
|
|
|
1812
1829
|
"num":29,
|
|
1813
1830
|
"hebrew":"אַחֲרֵי מוֹת",
|
|
1814
1831
|
"book":3,
|
|
1815
|
-
"haft":{"k":"
|
|
1832
|
+
"haft":{"k":"Amos","b":"9:7","e":"9:15"},
|
|
1816
1833
|
"seph":{"k":"Ezekiel","b":"22:1","e":"22:16"},
|
|
1817
1834
|
"fullkriyah":{
|
|
1818
1835
|
"1":["16:1","16:17"],
|
|
@@ -1832,7 +1849,7 @@ var parshiyotObj = {
|
|
|
1832
1849
|
"num":30,
|
|
1833
1850
|
"hebrew":"קְדשִׁים",
|
|
1834
1851
|
"book":3,
|
|
1835
|
-
"haft":{"k":"
|
|
1852
|
+
"haft":{"k":"Ezekiel","b":"22:1","e":"22:19"},
|
|
1836
1853
|
"seph":{"k":"Ezekiel","b":"20:2","e":"20:20"},
|
|
1837
1854
|
"fullkriyah":{
|
|
1838
1855
|
"1":["19:1","19:14"],
|
|
@@ -2346,6 +2363,8 @@ var parshiyotObj = {
|
|
|
2346
2363
|
"num1":29,
|
|
2347
2364
|
"num2":30,
|
|
2348
2365
|
"book":3,
|
|
2366
|
+
"haft":{"k":"Amos","b":"9:7","e":"9:15"},
|
|
2367
|
+
"seph":{"k":"Ezekiel","b":"20:2","e":"20:20"},
|
|
2349
2368
|
"fullkriyah":{
|
|
2350
2369
|
"1":["16:1","16:24"],
|
|
2351
2370
|
"2":["16:25","17:7"],
|
|
@@ -2470,14 +2489,18 @@ var parshiyotObj = {
|
|
|
2470
2489
|
|
|
2471
2490
|
/**
|
|
2472
2491
|
* on doubled parshiot, read only the second Haftarah
|
|
2473
|
-
* except for Nitzavim-Vayelech
|
|
2492
|
+
* except for Nitzavim-Vayelech and Achrei Mot-Kedoshim
|
|
2474
2493
|
* @private
|
|
2475
2494
|
* @param {string[]} parsha
|
|
2476
2495
|
* @return {string}
|
|
2477
2496
|
*/
|
|
2478
2497
|
function getHaftaraKey(parsha) {
|
|
2479
|
-
|
|
2480
|
-
|
|
2498
|
+
const first = parsha[0];
|
|
2499
|
+
if (parsha.length === 2 && first == 'Achrei Mot') {
|
|
2500
|
+
return parshaToString(parsha); // 'Achrei Mot-Kedoshim'
|
|
2501
|
+
}
|
|
2502
|
+
if (parsha.length === 1 || first == 'Nitzavim') {
|
|
2503
|
+
return first;
|
|
2481
2504
|
} else {
|
|
2482
2505
|
return parsha[1];
|
|
2483
2506
|
}
|
|
@@ -2724,6 +2747,8 @@ function findParshaHaShavua(saturday, il) {
|
|
|
2724
2747
|
*/
|
|
2725
2748
|
function getLeyningOnDate(hdate, il, wantarray = false) {
|
|
2726
2749
|
const dow = hdate.getDay();
|
|
2750
|
+
const arr = [];
|
|
2751
|
+
let hasParshaHaShavua = false;
|
|
2727
2752
|
if (dow === 6) {
|
|
2728
2753
|
const hyear = hdate.getFullYear();
|
|
2729
2754
|
const sedra = core.HebrewCalendar.getSedra(hyear, il);
|
|
@@ -2731,13 +2756,21 @@ function getLeyningOnDate(hdate, il, wantarray = false) {
|
|
|
2731
2756
|
if (!parsha.chag) {
|
|
2732
2757
|
const parshaEvent = new core.ParshaEvent(hdate, parsha.parsha, il);
|
|
2733
2758
|
const reading = getLeyningForParshaHaShavua(parshaEvent, il);
|
|
2734
|
-
|
|
2759
|
+
if (wantarray) {
|
|
2760
|
+
hasParshaHaShavua = true;
|
|
2761
|
+
arr.push(reading);
|
|
2762
|
+
} else {
|
|
2763
|
+
return reading;
|
|
2764
|
+
}
|
|
2735
2765
|
}
|
|
2736
2766
|
}
|
|
2737
2767
|
const events = core.HebrewCalendar.getHolidaysOnDate(hdate, il) || [];
|
|
2738
|
-
const arr = [];
|
|
2739
2768
|
let hasFullKriyah = false;
|
|
2740
2769
|
for (const ev of events) {
|
|
2770
|
+
const specialShabbat = Boolean(ev.getFlags() & core.flags.SPECIAL_SHABBAT);
|
|
2771
|
+
if (hasParshaHaShavua && specialShabbat) {
|
|
2772
|
+
continue;
|
|
2773
|
+
}
|
|
2741
2774
|
const reading = getLeyningForHoliday(ev, il);
|
|
2742
2775
|
if (reading) {
|
|
2743
2776
|
arr.push(reading);
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/leyning v8.1.
|
|
1
|
+
/*! @hebcal/leyning v8.1.9 */
|
|
2
2
|
import { flags, months, HDate, HebrewCalendar, Locale, ParshaEvent, Event } from '@hebcal/core';
|
|
3
3
|
|
|
4
4
|
var numverses = {
|
|
@@ -816,6 +816,9 @@ var festivals = {"Pesach I":{
|
|
|
816
816
|
{"M":{"p":49,"k":5,"b":"25:17","e":"25:19"}}},
|
|
817
817
|
"Pinchas occurring after 17 Tammuz":{
|
|
818
818
|
"haft": {"k": "Jeremiah", "b": "1:1", "e": "2:3"}},
|
|
819
|
+
"Kedoshim following Special Shabbat":{
|
|
820
|
+
"haft":{"k":"Amos","b":"9:7","e":"9:15"},
|
|
821
|
+
"seph":{"k":"Ezekiel","b":"20:2","e":"20:20"}},
|
|
819
822
|
"Masei on Shabbat Rosh Chodesh":{
|
|
820
823
|
"haft":[
|
|
821
824
|
{"k":"Jeremiah","b":"2:4","e":"2:28"},
|
|
@@ -935,10 +938,11 @@ function getLeyningKeyForEvent(ev, il = false) {
|
|
|
935
938
|
}
|
|
936
939
|
return desc;
|
|
937
940
|
}
|
|
938
|
-
const cholHaMoedDay = ev.cholHaMoedDay;
|
|
939
941
|
if (day == 1 && month === months.TISHREI) {
|
|
940
942
|
return isShabbat ? 'Rosh Hashana I (on Shabbat)' : 'Rosh Hashana I';
|
|
941
|
-
}
|
|
943
|
+
}
|
|
944
|
+
const cholHaMoedDay = ev.cholHaMoedDay;
|
|
945
|
+
if (typeof cholHaMoedDay === 'number') {
|
|
942
946
|
// Sukkot or Pesach
|
|
943
947
|
if (isShabbat) {
|
|
944
948
|
return holiday + ' Shabbat Chol ha-Moed';
|
|
@@ -953,15 +957,17 @@ function getLeyningKeyForEvent(ev, il = false) {
|
|
|
953
957
|
}
|
|
954
958
|
}
|
|
955
959
|
return `${holiday} Chol ha-Moed Day ${cholHaMoedDay}`;
|
|
956
|
-
}
|
|
960
|
+
}
|
|
961
|
+
const chanukahDay = ev.chanukahDay;
|
|
962
|
+
if (typeof chanukahDay === 'number') {
|
|
957
963
|
if (isShabbat && isRoshChodesh) {
|
|
958
964
|
return 'Shabbat Rosh Chodesh Chanukah';
|
|
959
|
-
} else if (isRoshChodesh &&
|
|
965
|
+
} else if (isRoshChodesh && chanukahDay == 7) {
|
|
960
966
|
return `Chanukah Day 7 (on Rosh Chodesh)`;
|
|
961
967
|
} else if (isShabbat) {
|
|
962
|
-
return `Chanukah Day ${
|
|
968
|
+
return `Chanukah Day ${chanukahDay} (on Shabbat)`;
|
|
963
969
|
} else {
|
|
964
|
-
return `Chanukah Day ${
|
|
970
|
+
return `Chanukah Day ${chanukahDay}`;
|
|
965
971
|
}
|
|
966
972
|
}
|
|
967
973
|
|
|
@@ -1158,6 +1164,17 @@ function specialReadings2(parsha, hd, il, aliyot) {
|
|
|
1158
1164
|
// In the book of Isaiah these two brief passages are adjacent."
|
|
1159
1165
|
// Source: Luaḥ Hashanah, Rabbi Miles B. Cohen and Leslie Rubin
|
|
1160
1166
|
handleSpecial('Ki Teitzei with 3rd Haftarah of Consolation');
|
|
1167
|
+
} else if (parshaName === 'Kedoshim' && (day === 26 || day === 28 || day === 6)) {
|
|
1168
|
+
// Kedoshim is read separately from Achrei Mot in ~37% of years.
|
|
1169
|
+
// When this happens, it is will be read on
|
|
1170
|
+
// 26th or 28th of Nisan (Achrei Mot was Shabbat HaGadol, ~10%),
|
|
1171
|
+
// or 1st of Iyyar (Rosh Chodesh, ~10%),
|
|
1172
|
+
// or 6th of Iyyar (~10%, immediately after Shabbat Machar Chodesh)
|
|
1173
|
+
// or 3rd of Iyyar (~6%, "the nominal situation — in which both parashiyyot
|
|
1174
|
+
// are read separately and no overriding occasions coincide")
|
|
1175
|
+
// http://www.scholar.davidesstein.name/Articles/HaftarotOfEtzHayim--Stein.pdf
|
|
1176
|
+
// "The Haftarot of Etz Hayim," David E. S. Stein, Conservative Judaism 54/3 (Spring 2002)
|
|
1177
|
+
handleSpecial('Kedoshim following Special Shabbat');
|
|
1161
1178
|
} else if (hd.getMonth() !== months.AV) {
|
|
1162
1179
|
// Parashat Re'eh is always read in Av on 25, 27, 29 or 30.
|
|
1163
1180
|
// When it coincides with Erev Rosh Chodesh, the Haftarah is
|
|
@@ -1810,7 +1827,7 @@ var parshiyotObj = {
|
|
|
1810
1827
|
"num":29,
|
|
1811
1828
|
"hebrew":"אַחֲרֵי מוֹת",
|
|
1812
1829
|
"book":3,
|
|
1813
|
-
"haft":{"k":"
|
|
1830
|
+
"haft":{"k":"Amos","b":"9:7","e":"9:15"},
|
|
1814
1831
|
"seph":{"k":"Ezekiel","b":"22:1","e":"22:16"},
|
|
1815
1832
|
"fullkriyah":{
|
|
1816
1833
|
"1":["16:1","16:17"],
|
|
@@ -1830,7 +1847,7 @@ var parshiyotObj = {
|
|
|
1830
1847
|
"num":30,
|
|
1831
1848
|
"hebrew":"קְדשִׁים",
|
|
1832
1849
|
"book":3,
|
|
1833
|
-
"haft":{"k":"
|
|
1850
|
+
"haft":{"k":"Ezekiel","b":"22:1","e":"22:19"},
|
|
1834
1851
|
"seph":{"k":"Ezekiel","b":"20:2","e":"20:20"},
|
|
1835
1852
|
"fullkriyah":{
|
|
1836
1853
|
"1":["19:1","19:14"],
|
|
@@ -2344,6 +2361,8 @@ var parshiyotObj = {
|
|
|
2344
2361
|
"num1":29,
|
|
2345
2362
|
"num2":30,
|
|
2346
2363
|
"book":3,
|
|
2364
|
+
"haft":{"k":"Amos","b":"9:7","e":"9:15"},
|
|
2365
|
+
"seph":{"k":"Ezekiel","b":"20:2","e":"20:20"},
|
|
2347
2366
|
"fullkriyah":{
|
|
2348
2367
|
"1":["16:1","16:24"],
|
|
2349
2368
|
"2":["16:25","17:7"],
|
|
@@ -2468,14 +2487,18 @@ var parshiyotObj = {
|
|
|
2468
2487
|
|
|
2469
2488
|
/**
|
|
2470
2489
|
* on doubled parshiot, read only the second Haftarah
|
|
2471
|
-
* except for Nitzavim-Vayelech
|
|
2490
|
+
* except for Nitzavim-Vayelech and Achrei Mot-Kedoshim
|
|
2472
2491
|
* @private
|
|
2473
2492
|
* @param {string[]} parsha
|
|
2474
2493
|
* @return {string}
|
|
2475
2494
|
*/
|
|
2476
2495
|
function getHaftaraKey(parsha) {
|
|
2477
|
-
|
|
2478
|
-
|
|
2496
|
+
const first = parsha[0];
|
|
2497
|
+
if (parsha.length === 2 && first == 'Achrei Mot') {
|
|
2498
|
+
return parshaToString(parsha); // 'Achrei Mot-Kedoshim'
|
|
2499
|
+
}
|
|
2500
|
+
if (parsha.length === 1 || first == 'Nitzavim') {
|
|
2501
|
+
return first;
|
|
2479
2502
|
} else {
|
|
2480
2503
|
return parsha[1];
|
|
2481
2504
|
}
|
|
@@ -2722,6 +2745,8 @@ function findParshaHaShavua(saturday, il) {
|
|
|
2722
2745
|
*/
|
|
2723
2746
|
function getLeyningOnDate(hdate, il, wantarray = false) {
|
|
2724
2747
|
const dow = hdate.getDay();
|
|
2748
|
+
const arr = [];
|
|
2749
|
+
let hasParshaHaShavua = false;
|
|
2725
2750
|
if (dow === 6) {
|
|
2726
2751
|
const hyear = hdate.getFullYear();
|
|
2727
2752
|
const sedra = HebrewCalendar.getSedra(hyear, il);
|
|
@@ -2729,13 +2754,21 @@ function getLeyningOnDate(hdate, il, wantarray = false) {
|
|
|
2729
2754
|
if (!parsha.chag) {
|
|
2730
2755
|
const parshaEvent = new ParshaEvent(hdate, parsha.parsha, il);
|
|
2731
2756
|
const reading = getLeyningForParshaHaShavua(parshaEvent, il);
|
|
2732
|
-
|
|
2757
|
+
if (wantarray) {
|
|
2758
|
+
hasParshaHaShavua = true;
|
|
2759
|
+
arr.push(reading);
|
|
2760
|
+
} else {
|
|
2761
|
+
return reading;
|
|
2762
|
+
}
|
|
2733
2763
|
}
|
|
2734
2764
|
}
|
|
2735
2765
|
const events = HebrewCalendar.getHolidaysOnDate(hdate, il) || [];
|
|
2736
|
-
const arr = [];
|
|
2737
2766
|
let hasFullKriyah = false;
|
|
2738
2767
|
for (const ev of events) {
|
|
2768
|
+
const specialShabbat = Boolean(ev.getFlags() & flags.SPECIAL_SHABBAT);
|
|
2769
|
+
if (hasParshaHaShavua && specialShabbat) {
|
|
2770
|
+
continue;
|
|
2771
|
+
}
|
|
2739
2772
|
const reading = getLeyningForHoliday(ev, il);
|
|
2740
2773
|
if (reading) {
|
|
2741
2774
|
arr.push(reading);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/leyning",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.9",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hebcal",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"leyning-csv": "bin/leyning-csv"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@hebcal/core": "^5.
|
|
44
|
+
"@hebcal/core": "^5.3.2"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build:rollup": "rollup -c",
|
|
@@ -63,6 +63,6 @@
|
|
|
63
63
|
"eslint-config-google": "^0.14.0",
|
|
64
64
|
"jsdoc": "^4.0.2",
|
|
65
65
|
"jsdoc-to-markdown": "^8.0.1",
|
|
66
|
-
"rollup": "^4.
|
|
66
|
+
"rollup": "^4.16.4"
|
|
67
67
|
}
|
|
68
68
|
}
|