@hebcal/leyning 4.20.1 → 5.2.0

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/leyning v4.20.1 */
1
+ /*! @hebcal/leyning v5.1.0 */
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -9,20 +9,13 @@ var Genesis=[0,31,25,24,26,32,22,24,22,29,32,32,20,18,24,21,16,27,33,38,18,34,24
9
9
 
10
10
  /**
11
11
  * Names of the books of the Torah. BOOK[1] === 'Genesis'
12
+ * @readonly
13
+ * @const {string[]}
12
14
  */
13
15
 
14
16
  const BOOK = ['', 'Genesis', 'Exodus', 'Leviticus', 'Numbers', 'Deuteronomy'];
15
- const doubled = [21, // Vayakhel-Pekudei
16
- 26, // Tazria-Metzora
17
- 28, // Achrei Mot-Kedoshim
18
- 31, // Behar-Bechukotai
19
- 38, // Chukat-Balak
20
- 41, // Matot-Masei
21
- 50 // Nitzavim-Vayeilech
22
- ];
23
17
  /**
24
18
  * Formats parsha as a string
25
- * @private
26
19
  * @param {string[]} parsha
27
20
  * @return {string}
28
21
  */
@@ -36,19 +29,6 @@ function parshaToString(parsha) {
36
29
 
37
30
  return s;
38
31
  }
39
- /**
40
- * takes a 0-based (Bereshit=0) parsha ID
41
- * @private
42
- * @param {number} id
43
- * @return {string}
44
- */
45
-
46
- function getDoubledName(id) {
47
- const p1 = core.parshiot[id];
48
- const p2 = core.parshiot[id + 1];
49
- const name = p1 + '-' + p2;
50
- return name;
51
- }
52
32
  /**
53
33
  * Represents an aliyah
54
34
  * @typedef {Object} Aliyah
@@ -59,21 +39,8 @@ function getDoubledName(id) {
59
39
  * @property {number} [p] - parsha number (1=Bereshit, 54=Vezot HaBracha)
60
40
  */
61
41
 
62
- /**
63
- * A bit like Object.assign(), but just a shallow copy
64
- * @private
65
- * @param {any} target
66
- * @param {any} source
67
- * @return {any}
68
- */
69
-
70
- function shallowCopy(target, source) {
71
- Object.keys(source).forEach(k => target[k] = source[k]);
72
- return target;
73
- }
74
42
  /**
75
43
  * Makes a deep copy of the src object using JSON stringify and parse
76
- * @private
77
44
  * @param {any} src
78
45
  * @return {any}
79
46
  */
@@ -82,34 +49,10 @@ function clone(src) {
82
49
  return JSON.parse(JSON.stringify(src));
83
50
  }
84
51
  /**
85
- * Makes Sefaria links by adding `href`, `verses` and `num` attributes to each aliyah.
86
- * CAUTION: Modifies the `aliyot` parameter instead of making a copy.
87
- * @deprecated
88
- * @param {Object<string,Aliyah>} aliyot aliyah map to decorate
89
- * @param {boolean} showBook display the book name in the `verses` field (e.g. for special Maftir)
90
- */
91
-
92
- function addSefariaLinksToLeyning(aliyot, showBook) {
93
- var _aliyot$;
94
-
95
- const book1 = (_aliyot$ = aliyot['1']) === null || _aliyot$ === void 0 ? void 0 : _aliyot$.k;
96
- Object.keys(aliyot).forEach(num => {
97
- const aliyah = aliyot[num];
98
- aliyah.num = num == 'M' ? 'maf' : num;
99
- const begin = aliyah.b.split(':');
100
- const end = aliyah.e.split(':');
101
- const endChapVerse = begin[0] === end[0] ? end[1] : aliyah.e;
102
- const verses = `${aliyah.b}-${endChapVerse}`;
103
- aliyah.verses = showBook || book1 != aliyah.k ? `${aliyah.k} ${verses}` : verses;
104
- const sefariaVerses = verses.replace(/:/g, '.');
105
- const sefAliyot = showBook ? '0' : '1';
106
- const url = `https://www.sefaria.org/${aliyah.k}.${sefariaVerses}?lang=bi&aliyot=${sefAliyot}`;
107
- aliyah.href = url;
108
- });
109
- }
110
- /**
111
- * @private
112
- * @param {any} aliyah
52
+ * Calculates the number of verses in an aliyah or haftara based on
53
+ * the `b` (begin verse), `e` (end verse) and `k` (book).
54
+ * Modifies `aliyah` by setting the `v` field.
55
+ * @param {Aliyah} aliyah
113
56
  * @return {number}
114
57
  */
115
58
 
@@ -146,45 +89,6 @@ function calculateNumVerses(aliyah) {
146
89
 
147
90
  return aliyah.v;
148
91
  }
149
- /**
150
- * @private
151
- * @param {string} haftara
152
- * @return {number}
153
- */
154
-
155
- function calculateHaftarahNumVerses(haftara) {
156
- const sections = haftara.split(/[;,]/);
157
- let total = 0;
158
- let prevBook;
159
- sections.forEach(haft => {
160
- const matches = haft.trim().match(/^(([^\d]+)\s+)?(\d.+)$/);
161
-
162
- if (matches !== null) {
163
- const hbook = matches[2] ? matches[2].trim() : prevBook;
164
- const hverses = matches[3].trim();
165
- const cv = hverses.match(/^(\d+:\d+)\s*-\s*(\d+(:\d+)?)$/);
166
-
167
- if (cv) {
168
- if (cv[2].indexOf(':') === -1) {
169
- const chap = cv[1].substring(0, cv[1].indexOf(':'));
170
- cv[2] = `${chap}:${cv[2]}`;
171
- }
172
-
173
- const haft = {
174
- k: hbook,
175
- b: cv[1],
176
- e: cv[2]
177
- };
178
- total += calculateNumVerses(haft);
179
- } else {
180
- total++; // Something like "Jeremiah 3:4" is 1 verse
181
- }
182
-
183
- prevBook = hbook;
184
- }
185
- });
186
- return total || undefined;
187
- }
188
92
  /**
189
93
  * Formats an aliyah object like "Numbers 28:9-28:15"
190
94
  * @param {Aliyah} a aliyah
@@ -215,13 +119,110 @@ function formatAliyahShort(aliyah, showBook) {
215
119
  const end = cv1[0] === cv2[0] ? cv2[1] : end0;
216
120
  return `${prefix}${begin}-${end}`;
217
121
  }
122
+ /**
123
+ * Returns the total number of verses in an array of Aliyah (or haftarah) objects
124
+ * @param {Aliyah|Aliyah[]} aliyot
125
+ * @return {number}
126
+ */
127
+
128
+ function sumVerses(aliyot) {
129
+ return Array.isArray(aliyot) ? aliyot.reduce((prev, cur) => prev + cur.v, 0) : aliyot.v;
130
+ }
218
131
  /**
219
132
  * @private
133
+ * @param {Object.<string,string>} haft
134
+ * @return {Object.<string,string>}
135
+ */
136
+
137
+ function cloneHaftara(haft) {
138
+ if (!haft) {
139
+ return haft;
140
+ }
141
+
142
+ const dest = clone(haft);
143
+
144
+ if (Array.isArray(dest)) {
145
+ dest.map(calculateNumVerses);
146
+ } else {
147
+ calculateNumVerses(dest);
148
+ }
149
+
150
+ return dest;
151
+ }
152
+
153
+ /**
154
+ * @private
155
+ * @param {string} a
156
+ * @param {string} b
157
+ * @return {boolean}
158
+ */
159
+
160
+ function isChapVerseBefore(a, b) {
161
+ const cv1 = a.split(':').map(x => +x);
162
+ const cv2 = b.split(':').map(x => +x);
163
+ return cv1[0] * 100 + cv1[1] < cv2[0] * 100 + cv2[1];
164
+ }
165
+ /**
166
+ * Summarizes an `AliyotMap` by collapsing all adjacent aliyot.
167
+ * Finds any non-overlapping parts (e.g. special 7th aliyah or maftir)
168
+ * @param {Object<string,Aliyah>} aliyot
169
+ * @return {Aliyah[]}
170
+ */
171
+
172
+
173
+ function makeLeyningParts(aliyot) {
174
+ const nums = Object.keys(aliyot).filter(x => x.length === 1);
175
+ let start = aliyot[nums[0]];
176
+ let end = start;
177
+ const parts = [];
178
+
179
+ for (let i = 0; i < nums.length; i++) {
180
+ const num = nums[i];
181
+ const aliyah = aliyot[num];
182
+
183
+ if (i === nums.length - 1 && aliyah.k === end.k && aliyah.e === end.e) {
184
+ // short-circuit when final aliyah is within the previous (e.g. M inside of 7)
185
+ continue;
186
+ }
187
+
188
+ const prevEndChap = +end.e.split(':')[0];
189
+ const curStartChap = +aliyah.b.split(':')[0];
190
+ const sameOrNextChap = curStartChap === prevEndChap || curStartChap === prevEndChap + 1;
191
+
192
+ if (i !== 0 && (aliyah.k !== start.k || isChapVerseBefore(aliyah.b, start.e) || !sameOrNextChap)) {
193
+ parts.push({
194
+ k: start.k,
195
+ b: start.b,
196
+ e: end.e
197
+ });
198
+ start = aliyah;
199
+ }
200
+
201
+ end = aliyah;
202
+ }
203
+
204
+ parts.push({
205
+ k: start.k,
206
+ b: start.b,
207
+ e: end.e
208
+ });
209
+ return parts;
210
+ }
211
+ /**
212
+ * Returns a string representation of the leyning parts.
213
+ * Separate verse ranges read from the same book are separated
214
+ * by commas, e.g. `Isaiah 6:1-7:6, 9:5-6`.
215
+ * Verse ranges from different books are separated by semicolons,
216
+ * e.g. `Genesis 21:1-34; Numbers 29:1-6`.
220
217
  * @param {Aliyah[]} parts
221
218
  * @return {string}
222
219
  */
223
220
 
224
221
  function makeSummaryFromParts(parts) {
222
+ if (!Array.isArray(parts)) {
223
+ parts = [parts];
224
+ }
225
+
225
226
  let prev = parts[0];
226
227
  let summary = formatAliyahShort(prev, true);
227
228
 
@@ -241,71 +242,35 @@ function makeSummaryFromParts(parts) {
241
242
  return summary;
242
243
  }
243
244
  /**
244
- * @private
245
- * @param {Aliyah|Aliyah[]} haft
245
+ * Makes a summary of the leyning, like "Genesis 6:9-11:32"
246
+ * @param {Object<string,Aliyah>} aliyot
246
247
  * @return {string}
247
248
  */
248
249
 
249
- function makeHaftaraSummary(haft) {
250
- if (!haft) {
251
- return haft;
252
- }
253
-
254
- const parts = Array.isArray(haft) ? haft : [haft];
255
- const str = makeSummaryFromParts(parts); // return str.replace(/-/g, ' - ');
256
-
257
- return str;
258
- }
259
- /**
260
- * @private
261
- * @param {Aliyah|Aliyah[]} haft
262
- * @return {number}
263
- */
264
-
265
- function calculateHaftaraNumV(haft) {
266
- return Array.isArray(haft) ? haft.reduce((prev, cur) => prev + cur.v, 0) : haft.v;
267
- }
268
- /**
269
- * @private
270
- * @param {Object.<string,string>} haft
271
- * @return {Object.<string,string>}
272
- */
273
-
274
- function cloneHaftara(haft) {
275
- if (!haft) {
276
- return haft;
277
- }
278
-
279
- const dest = clone(haft);
280
-
281
- if (Array.isArray(dest)) {
282
- dest.map(calculateNumVerses);
283
- } else {
284
- calculateNumVerses(dest);
285
- }
286
-
287
- return dest;
250
+ function makeLeyningSummary(aliyot) {
251
+ const parts = makeLeyningParts(aliyot);
252
+ return makeSummaryFromParts(parts);
288
253
  }
289
254
 
290
255
  var Purim={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"}}};var festivals = {"Pesach I":{haft:{k:"Joshua",b:"5:2",e:"6:1"},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:"5:2",e:"6:1"},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",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":{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:true,il:true,key:"Pesach Chol ha-Moed Day 1"},"Pesach IV (CH''M)":{alias:true,il:true,key:"Pesach Chol ha-Moed Day 2"},"Pesach V (CH''M)":{alias:true,il:true,key:"Pesach Chol ha-Moed Day 3"},"Pesach VI (CH''M)":{alias:true,il:true,key:"Pesach Chol ha-Moed Day 4"},"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":{haft:{k:"Habakkuk",b:"3:1",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)":{haft:{k:"Habakkuk",b:"3:1",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"},"3":{p:21,k:2,b:"34:4",e:"34:10"}}},"Asara B'Tevet":{alias:true,key:"Fast Day (Morning)"},"Ta'anit Bechorot":{alias:true,key:"Fast Day (Morning)"},"Ta'anit Esther":{alias:true,key:"Fast Day (Morning)"},"Tzom Gedaliah":{alias:true,key:"Fast Day (Morning)"},"Tzom Tammuz":{alias:true,key:"Fast Day (Morning)"},"Asara B'Tevet (Mincha)":{alias:true,key:"Fast Day (Afternoon)"},"Ta'anit Bechorot (Mincha)":{alias:true,key:"Fast Day (Afternoon)"},"Ta'anit Esther (Mincha)":{alias:true,key:"Fast Day (Afternoon)"},"Tzom Gedaliah (Mincha)":{alias:true,key:"Fast Day (Afternoon)"},"Tzom Tammuz (Mincha)":{alias:true,key:"Fast Day (Afternoon)"},"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:true,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, 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"},"3":{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"},"3":{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":{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"},"4":{p:54,k:5,b:"33:18",e:"33:21"},"5":{p:54,k:5,b:"33:22",e:"33:26"}}},"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 Chanukah":{haft:{k:"Zechariah",b:"2:14",e:"4:7"}},"Shabbat Chanukah II":{haft:{k:"I Kings",b:"7:40",e:"7:50"}},"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 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 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 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 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 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 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"}}},Purim:Purim,"Shushan Purim":{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"}}},"Shabbat HaChodesh":{haft:{k:"Ezekiel",b:"45:16",e:"46:18"},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"},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"},fullkriyah:{M:{p:39,k:4,b:"19:1",e:"19:22"}}},"Shabbat Shekalim":{haft:{k:"II Kings",b:"12:1",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"},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":{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"},fullkriyah:{M:{p:49,k:5,b:"25:17",e:"25:19"}}},"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"}}},"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"}}};
291
256
 
292
257
  /**
293
- * @private
294
- * @param {string} key
258
+ * Is there a special festival Torah Reading for `holiday`?
259
+ * @param {string} holiday
295
260
  * @return {boolean}
296
261
  */
297
262
 
298
- function hasFestival(key) {
299
- return typeof festivals[key] === 'object';
263
+ function hasFestival(holiday) {
264
+ return typeof festivals[holiday] === 'object';
300
265
  }
301
266
  /**
302
- * @private
303
- * @param {string} key
267
+ * Returns the raw metadata for festival reading for `holiday`
268
+ * @param {string} holiday
304
269
  * @return {any}
305
270
  */
306
271
 
307
- function lookupFestival(key) {
308
- let src = festivals[key];
272
+ function lookupFestival(holiday) {
273
+ let src = festivals[holiday];
309
274
 
310
275
  if (typeof src === 'undefined') {
311
276
  return undefined;
@@ -315,7 +280,7 @@ function lookupFestival(key) {
315
280
  const tmp = festivals[src.key];
316
281
 
317
282
  if (typeof tmp === 'undefined') {
318
- throw new Error(`Leying key ${key} => ${src.key} not found`);
283
+ throw new Error(`Leyning alias ${holiday} => ${src.key} not found`);
319
284
  }
320
285
 
321
286
  src = tmp;
@@ -334,37 +299,35 @@ function lookupFestival(key) {
334
299
  return result;
335
300
  }
336
301
 
337
- var Bereshit$2={num:1,hebrew:"בְּרֵאשִׁית",book:1,verses:"1:1-6:8",haft:{k:"Isaiah",b:"42:5",e:"43:10"},seph:{k:"Isaiah",b:"42:5",e:"42:21"},fullkriyah:{"1":{b:"1:1",e:"2:3"},"2":{b:"2:4",e:"2:19"},"3":{b:"2:20",e:"3:21"},"4":{b:"3:22",e:"4:18"},"5":{b:"4:19",e:"4:22"},"6":{b:"4:23",e:"5:24"},"7":{b:"5:25",e:"6:8"},M:{b:"6:5",e:"6:8"}},weekday:{"1":{b:"1:1",e:"1:5"},"2":{b:"1:6",e:"1:8"},"3":{b:"1:9",e:"1:13"}}};var Noach$2={num:2,hebrew:"נֹחַ",book:1,verses:"6:9-11:32",haft:{k:"Isaiah",b:"54:1",e:"55:5"},seph:{k:"Isaiah",b:"54:1",e:"54:10"},fullkriyah:{"1":{b:"6:9",e:"6:22"},"2":{b:"7:1",e:"7:16"},"3":{b:"7:17",e:"8:14"},"4":{b:"8:15",e:"9:7"},"5":{b:"9:8",e:"9:17"},"6":{b:"9:18",e:"10:32"},"7":{b:"11:1",e:"11:32"},M:{b:"11:29",e:"11:32"}},weekday:{"1":{b:"6:9",e:"6:16"},"2":{b:"6:17",e:"6:19"},"3":{b:"6:20",e:"6:22"}}};var Vayera$2={num:4,hebrew:"וַיֵּרָא",book:1,verses:"18:1-22:24",haft:{k:"II Kings",b:"4:1",e:"4:37"},seph:{k:"II Kings",b:"4:1",e:"4:23"},fullkriyah:{"1":{b:"18:1",e:"18:14"},"2":{b:"18:15",e:"18:33"},"3":{b:"19:1",e:"19:20"},"4":{b:"19:21",e:"21:4"},"5":{b:"21:5",e:"21:21"},"6":{b:"21:22",e:"21:34"},"7":{b:"22:1",e:"22:24"},M:{b:"22:20",e:"22:24"}},weekday:{"1":{b:"18:1",e:"18:5"},"2":{b:"18:6",e:"18:8"},"3":{b:"18:9",e:"18:14"}}};var Toldot$2={num:6,hebrew:"תּוֹלְדוֹת",book:1,verses:"25:19-28:9",haft:{k:"Malachi",b:"1:1",e:"2:7"},fullkriyah:{"1":{b:"25:19",e:"26:5"},"2":{b:"26:6",e:"26:12"},"3":{b:"26:13",e:"26:22"},"4":{b:"26:23",e:"26:29"},"5":{b:"26:30",e:"27:27"},"6":{b:"27:28",e:"28:4"},"7":{b:"28:5",e:"28:9"},M:{b:"28:7",e:"28:9"}},weekday:{"1":{b:"25:19",e:"25:22"},"2":{b:"25:23",e:"25:26"},"3":{b:"25:27",e:"26:5"}}};var Vayetzei$2={num:7,hebrew:"וַיֵּצֵא",book:1,verses:"28:10-32:3",haft:{k:"Hosea",b:"12:13",e:"14:10"},seph:{k:"Hosea",b:"11:7",e:"12:12"},fullkriyah:{"1":{b:"28:10",e:"28:22"},"2":{b:"29:1",e:"29:17"},"3":{b:"29:18",e:"30:13"},"4":{b:"30:14",e:"30:27"},"5":{b:"30:28",e:"31:16"},"6":{b:"31:17",e:"31:42"},"7":{b:"31:43",e:"32:3"},M:{b:"32:1",e:"32:3"}},weekday:{"1":{b:"28:10",e:"28:12"},"2":{b:"28:13",e:"28:17"},"3":{b:"28:18",e:"28:22"}}};var Vayishlach$2={num:8,hebrew:"וַיִּשְׁלַח",book:1,verses:"32:4-36:43",haft:{k:"Obadiah",b:"1:1",e:"1:21"},fullkriyah:{"1":{b:"32:4",e:"32:13"},"2":{b:"32:14",e:"32:30"},"3":{b:"32:31",e:"33:5"},"4":{b:"33:6",e:"33:20"},"5":{b:"34:1",e:"35:11"},"6":{b:"35:12",e:"36:19"},"7":{b:"36:20",e:"36:43"},M:{b:"36:40",e:"36:43"}},weekday:{"1":{b:"32:4",e:"32:6"},"2":{b:"32:7",e:"32:9"},"3":{b:"32:10",e:"32:13"}}};var Vayeshev$2={num:9,hebrew:"וַיֵּשֶׁב",book:1,verses:"37:1-40:23",haft:{k:"Amos",b:"2:6",e:"3:8"},fullkriyah:{"1":{b:"37:1",e:"37:11"},"2":{b:"37:12",e:"37:22"},"3":{b:"37:23",e:"37:36"},"4":{b:"38:1",e:"38:30"},"5":{b:"39:1",e:"39:6"},"6":{b:"39:7",e:"39:23"},"7":{b:"40:1",e:"40:23"},M:{b:"40:20",e:"40:23"}},weekday:{"1":{b:"37:1",e:"37:3"},"2":{b:"37:4",e:"37:7"},"3":{b:"37:8",e:"37:11"}}};var Miketz$2={num:10,hebrew:"מִקֵּץ",book:1,verses:"41:1-44:17",haft:{k:"I Kings",b:"3:15",e:"4:1"},fullkriyah:{"1":{b:"41:1",e:"41:14"},"2":{b:"41:15",e:"41:38"},"3":{b:"41:39",e:"41:52"},"4":{b:"41:53",e:"42:18"},"5":{b:"42:19",e:"43:15"},"6":{b:"43:16",e:"43:29"},"7":{b:"43:30",e:"44:17"},M:{b:"44:14",e:"44:17"}},weekday:{"1":{b:"41:1",e:"41:4"},"2":{b:"41:5",e:"41:7"},"3":{b:"41:8",e:"41:14"}}};var Vayigash$2={num:11,hebrew:"וַיִּגַּשׁ",book:1,verses:"44:18-47:27",haft:{k:"Ezekiel",b:"37:15",e:"37:28"},fullkriyah:{"1":{b:"44:18",e:"44:30"},"2":{b:"44:31",e:"45:7"},"3":{b:"45:8",e:"45:18"},"4":{b:"45:19",e:"45:27"},"5":{b:"45:28",e:"46:27"},"6":{b:"46:28",e:"47:10"},"7":{b:"47:11",e:"47:27"},M:{b:"47:25",e:"47:27"}},weekday:{"1":{b:"44:18",e:"44:20"},"2":{b:"44:21",e:"44:24"},"3":{b:"44:25",e:"44:30"}}};var Vayechi$2={num:12,hebrew:"וַיְחִי",book:1,verses:"47:28-50:26",haft:{k:"I Kings",b:"2:1",e:"2:12"},fullkriyah:{"1":{b:"47:28",e:"48:9"},"2":{b:"48:10",e:"48:16"},"3":{b:"48:17",e:"48:22"},"4":{b:"49:1",e:"49:18"},"5":{b:"49:19",e:"49:26"},"6":{b:"49:27",e:"50:20"},"7":{b:"50:21",e:"50:26"},M:{b:"50:23",e:"50:26"}},weekday:{"1":{b:"47:28",e:"47:31"},"2":{b:"48:1",e:"48:3"},"3":{b:"48:4",e:"48:9"}}};var Shemot$2={num:13,hebrew:"שְׁמוֹת",book:2,verses:"1:1-6:1",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":{b:"1:1",e:"1:17"},"2":{b:"1:18",e:"2:10"},"3":{b:"2:11",e:"2:25"},"4":{b:"3:1",e:"3:15"},"5":{b:"3:16",e:"4:17"},"6":{b:"4:18",e:"4:31"},"7":{b:"5:1",e:"6:1"},M:{b:"5:22",e:"6:1"}},weekday:{"1":{b:"1:1",e:"1:7"},"2":{b:"1:8",e:"1:12"},"3":{b:"1:13",e:"1:17"}}};var Vaera$2={num:14,hebrew:"וָאֵרָא",book:2,verses:"6:2-9:35",haft:{k:"Ezekiel",b:"28:25",e:"29:21"},fullkriyah:{"1":{b:"6:2",e:"6:13"},"2":{b:"6:14",e:"6:28"},"3":{b:"6:29",e:"7:7"},"4":{b:"7:8",e:"8:6"},"5":{b:"8:7",e:"8:18"},"6":{b:"8:19",e:"9:16"},"7":{b:"9:17",e:"9:35"},M:{b:"9:33",e:"9:35"}},weekday:{"1":{b:"6:2",e:"6:5"},"2":{b:"6:6",e:"6:9"},"3":{b:"6:10",e:"6:13"}}};var Bo$2={num:15,hebrew:"בֹּא",book:2,verses:"10:1-13:16",haft:{k:"Jeremiah",b:"46:13",e:"46:28"},fullkriyah:{"1":{b:"10:1",e:"10:11"},"2":{b:"10:12",e:"10:23"},"3":{b:"10:24",e:"11:3"},"4":{b:"11:4",e:"12:20"},"5":{b:"12:21",e:"12:28"},"6":{b:"12:29",e:"12:51"},"7":{b:"13:1",e:"13:16"},M:{b:"13:14",e:"13:16"}},weekday:{"1":{b:"10:1",e:"10:3"},"2":{b:"10:4",e:"10:6"},"3":{b:"10:7",e:"10:11"}}};var Beshalach$2={num:16,hebrew:"בְּשַׁלַּח",book:2,verses:"13:17-17:16",haft:{k:"Judges",b:"4:4",e:"5:31"},seph:{k:"Judges",b:"5:1",e:"5:31"},fullkriyah:{"1":{b:"13:17",e:"14:8"},"2":{b:"14:9",e:"14:14"},"3":{b:"14:15",e:"14:25"},"4":{b:"14:26",e:"15:26"},"5":{b:"15:27",e:"16:10"},"6":{b:"16:11",e:"16:36"},"7":{b:"17:1",e:"17:16"},M:{b:"17:14",e:"17:16"}},weekday:{"1":{b:"13:17",e:"13:22"},"2":{b:"14:1",e:"14:4"},"3":{b:"14:5",e:"14:8"}}};var Yitro$2={num:17,hebrew:"יִתְרוֹ",book:2,verses:"18:1-20:23",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":{b:"18:1",e:"18:12"},"2":{b:"18:13",e:"18:23"},"3":{b:"18:24",e:"18:27"},"4":{b:"19:1",e:"19:6"},"5":{b:"19:7",e:"19:19"},"6":{b:"19:20",e:"20:14"},"7":{b:"20:15",e:"20:23"},M:{b:"20:19",e:"20:23"}},weekday:{"1":{b:"18:1",e:"18:4"},"2":{b:"18:5",e:"18:8"},"3":{b:"18:9",e:"18:12"}}};var Mishpatim$2={num:18,hebrew:"מִּשְׁפָּטִים",book:2,verses:"21:1-24:18",haft:[{k:"Jeremiah",b:"34:8",e:"34:22"},{k:"Jeremiah",b:"33:25",e:"33:26"}],fullkriyah:{"1":{b:"21:1",e:"21:19"},"2":{b:"21:20",e:"22:3"},"3":{b:"22:4",e:"22:26"},"4":{b:"22:27",e:"23:5"},"5":{b:"23:6",e:"23:19"},"6":{b:"23:20",e:"23:25"},"7":{b:"23:26",e:"24:18"},M:{b:"24:15",e:"24:18"}},weekday:{"1":{b:"21:1",e:"21:6"},"2":{b:"21:7",e:"21:11"},"3":{b:"21:12",e:"21:19"}}};var Terumah$2={num:19,hebrew:"תְּרוּמָה",book:2,verses:"25:1-27:19",haft:{k:"I Kings",b:"5:26",e:"6:13"},fullkriyah:{"1":{b:"25:1",e:"25:16"},"2":{b:"25:17",e:"25:30"},"3":{b:"25:31",e:"26:14"},"4":{b:"26:15",e:"26:30"},"5":{b:"26:31",e:"26:37"},"6":{b:"27:1",e:"27:8"},"7":{b:"27:9",e:"27:19"},M:{b:"27:17",e:"27:19"}},weekday:{"1":{b:"25:1",e:"25:5"},"2":{b:"25:6",e:"25:9"},"3":{b:"25:10",e:"25:16"}}};var Tetzaveh$2={num:20,hebrew:"תְּצַוֶּה",book:2,verses:"27:20-30:10",haft:{k:"Ezekiel",b:"43:10",e:"43:27"},fullkriyah:{"1":{b:"27:20",e:"28:12"},"2":{b:"28:13",e:"28:30"},"3":{b:"28:31",e:"28:43"},"4":{b:"29:1",e:"29:18"},"5":{b:"29:19",e:"29:37"},"6":{b:"29:38",e:"29:46"},"7":{b:"30:1",e:"30:10"},M:{b:"30:8",e:"30:10"}},weekday:{"1":{b:"27:20",e:"28:5"},"2":{b:"28:6",e:"28:9"},"3":{b:"28:10",e:"28:12"}}};var Vayakhel$2={num:22,hebrew:"וַיַּקְהֵל",book:2,verses:"35:1-38:20",haft:{k:"I Kings",b:"7:40",e:"7:50"},seph:{k:"I Kings",b:"7:13",e:"7:26"},fullkriyah:{"1":{b:"35:1",e:"35:20"},"2":{b:"35:21",e:"35:29"},"3":{b:"35:30",e:"36:7"},"4":{b:"36:8",e:"36:19"},"5":{b:"36:20",e:"37:16"},"6":{b:"37:17",e:"37:29"},"7":{b:"38:1",e:"38:20"},M:{b:"38:18",e:"38:20"}},weekday:{"1":{b:"35:1",e:"35:3"},"2":{b:"35:4",e:"35:10"},"3":{b:"35:11",e:"35:20"}}};var Pekudei$2={num:23,hebrew:"פְקוּדֵי",book:2,verses:"38:21-40:38",haft:{k:"I Kings",b:"7:51",e:"8:21"},seph:{k:"I Kings",b:"7:40",e:"7:50"},fullkriyah:{"1":{b:"38:21",e:"39:1"},"2":{b:"39:2",e:"39:21"},"3":{b:"39:22",e:"39:32"},"4":{b:"39:33",e:"39:43"},"5":{b:"40:1",e:"40:16"},"6":{b:"40:17",e:"40:27"},"7":{b:"40:28",e:"40:38"},M:{b:"40:34",e:"40:38"}},weekday:{"1":{b:"38:21",e:"38:23"},"2":{b:"38:24",e:"38:27"},"3":{b:"38:28",e:"39:1"}}};var Vayikra$2={num:24,hebrew:"וַיִּקְרָא",book:3,verses:"1:1-5:26",haft:{k:"Isaiah",b:"43:21",e:"44:23"},fullkriyah:{"1":{b:"1:1",e:"1:13"},"2":{b:"1:14",e:"2:6"},"3":{b:"2:7",e:"2:16"},"4":{b:"3:1",e:"3:17"},"5":{b:"4:1",e:"4:26"},"6":{b:"4:27",e:"5:10"},"7":{b:"5:11",e:"5:26"},M:{b:"5:24",e:"5:26"}},weekday:{"1":{b:"1:1",e:"1:4"},"2":{b:"1:5",e:"1:9"},"3":{b:"1:10",e:"1:13"}}};var Tzav$2={num:25,hebrew:"צַו",book:3,verses:"6:1-8:36",haft:[{k:"Jeremiah",b:"7:21",e:"8:3"},{k:"Jeremiah",b:"9:22",e:"9:23"}],fullkriyah:{"1":{b:"6:1",e:"6:11"},"2":{b:"6:12",e:"7:10"},"3":{b:"7:11",e:"7:38"},"4":{b:"8:1",e:"8:13"},"5":{b:"8:14",e:"8:21"},"6":{b:"8:22",e:"8:29"},"7":{b:"8:30",e:"8:36"},M:{b:"8:33",e:"8:36"}},weekday:{"1":{b:"6:1",e:"6:3"},"2":{b:"6:4",e:"6:6"},"3":{b:"6:7",e:"6:11"}}};var Shmini$2={num:26,hebrew:"שְּׁמִינִי",book:3,verses:"9:1-11:47",haft:{k:"II Samuel",b:"6:1",e:"7:17"},seph:{k:"II Samuel",b:"6:1",e:"6:19"},fullkriyah:{"1":{b:"9:1",e:"9:16"},"2":{b:"9:17",e:"9:23"},"3":{b:"9:24",e:"10:11"},"4":{b:"10:12",e:"10:15"},"5":{b:"10:16",e:"10:20"},"6":{b:"11:1",e:"11:32"},"7":{b:"11:33",e:"11:47"},M:{b:"11:45",e:"11:47"}},weekday:{"1":{b:"9:1",e:"9:6"},"2":{b:"9:7",e:"9:10"},"3":{b:"9:11",e:"9:16"}}};var Tazria$2={num:27,hebrew:"תַזְרִיעַ",book:3,verses:"12:1-13:59",haft:{k:"II Kings",b:"4:42",e:"5:19"},fullkriyah:{"1":{b:"12:1",e:"13:5"},"2":{b:"13:6",e:"13:17"},"3":{b:"13:18",e:"13:23"},"4":{b:"13:24",e:"13:28"},"5":{b:"13:29",e:"13:39"},"6":{b:"13:40",e:"13:54"},"7":{b:"13:55",e:"13:59"},M:{b:"13:57",e:"13:59"}},weekday:{"1":{b:"12:1",e:"12:4"},"2":{b:"12:5",e:"12:8"},"3":{b:"13:1",e:"13:5"}}};var Metzora$2={num:28,hebrew:"מְּצֹרָע",book:3,verses:"14:1-15:33",haft:{k:"II Kings",b:"7:3",e:"7:20"},fullkriyah:{"1":{b:"14:1",e:"14:12"},"2":{b:"14:13",e:"14:20"},"3":{b:"14:21",e:"14:32"},"4":{b:"14:33",e:"14:53"},"5":{b:"14:54",e:"15:15"},"6":{b:"15:16",e:"15:28"},"7":{b:"15:29",e:"15:33"},M:{b:"15:31",e:"15:33"}},weekday:{"1":{b:"14:1",e:"14:5"},"2":{b:"14:6",e:"14:9"},"3":{b:"14:10",e:"14:12"}}};var Kedoshim$2={num:30,hebrew:"קְדשִׁים",book:3,verses:"19:1-20:27",haft:{k:"Amos",b:"9:7",e:"9:15"},seph:{k:"Ezekiel",b:"20:2",e:"20:20"},fullkriyah:{"1":{b:"19:1",e:"19:14"},"2":{b:"19:15",e:"19:22"},"3":{b:"19:23",e:"19:32"},"4":{b:"19:33",e:"19:37"},"5":{b:"20:1",e:"20:7"},"6":{b:"20:8",e:"20:22"},"7":{b:"20:23",e:"20:27"},M:{b:"20:25",e:"20:27"}},weekday:{"1":{b:"19:1",e:"19:4"},"2":{b:"19:5",e:"19:10"},"3":{b:"19:11",e:"19:14"}}};var Emor$2={num:31,hebrew:"אֱמוֹר",book:3,verses:"21:1-24:23",haft:{k:"Ezekiel",b:"44:15",e:"44:31"},fullkriyah:{"1":{b:"21:1",e:"21:15"},"2":{b:"21:16",e:"22:16"},"3":{b:"22:17",e:"22:33"},"4":{b:"23:1",e:"23:22"},"5":{b:"23:23",e:"23:32"},"6":{b:"23:33",e:"23:44"},"7":{b:"24:1",e:"24:23"},M:{b:"24:21",e:"24:23"}},weekday:{"1":{b:"21:1",e:"21:6"},"2":{b:"21:7",e:"21:12"},"3":{b:"21:13",e:"21:15"}}};var Behar$2={num:32,hebrew:"בְּהַר",book:3,verses:"25:1-26:2",haft:{k:"Jeremiah",b:"32:6",e:"32:27"},fullkriyah:{"1":{b:"25:1",e:"25:13"},"2":{b:"25:14",e:"25:18"},"3":{b:"25:19",e:"25:24"},"4":{b:"25:25",e:"25:28"},"5":{b:"25:29",e:"25:38"},"6":{b:"25:39",e:"25:46"},"7":{b:"25:47",e:"26:2"},M:{b:"25:55",e:"26:2"}},weekday:{"1":{b:"25:1",e:"25:3"},"2":{b:"25:4",e:"25:7"},"3":{b:"25:8",e:"25:13"}}};var Bechukotai$2={num:33,hebrew:"בְּחֻקֹּתַי",book:3,verses:"26:3-27:34",haft:{k:"Jeremiah",b:"16:19",e:"17:14"},fullkriyah:{"1":{b:"26:3",e:"26:5"},"2":{b:"26:6",e:"26:9"},"3":{b:"26:10",e:"26:46"},"4":{b:"27:1",e:"27:15"},"5":{b:"27:16",e:"27:21"},"6":{b:"27:22",e:"27:28"},"7":{b:"27:29",e:"27:34"},M:{b:"27:32",e:"27:34"}},weekday:{"1":{b:"26:3",e:"26:5"},"2":{b:"26:6",e:"26:9"},"3":{b:"26:10",e:"26:13"}}};var Bamidbar$2={num:34,hebrew:"בְּמִדְבַּר",book:4,verses:"1:1-4:20",haft:{k:"Hosea",b:"2:1",e:"2:22"},fullkriyah:{"1":{b:"1:1",e:"1:19"},"2":{b:"1:20",e:"1:54"},"3":{b:"2:1",e:"2:34"},"4":{b:"3:1",e:"3:13"},"5":{b:"3:14",e:"3:39"},"6":{b:"3:40",e:"3:51"},"7":{b:"4:1",e:"4:20"},M:{b:"4:17",e:"4:20"}},weekday:{"1":{b:"1:1",e:"1:4"},"2":{b:"1:5",e:"1:16"},"3":{b:"1:17",e:"1:19"}}};var Nasso$2={num:35,hebrew:"נָשׂא",book:4,verses:"4:21-7:89",haft:{k:"Judges",b:"13:2",e:"13:25"},fullkriyah:{"1":{b:"4:21",e:"4:37"},"2":{b:"4:38",e:"4:49"},"3":{b:"5:1",e:"5:10"},"4":{b:"5:11",e:"6:27"},"5":{b:"7:1",e:"7:41"},"6":{b:"7:42",e:"7:71"},"7":{b:"7:72",e:"7:89"},M:{b:"7:87",e:"7:89"}},weekday:{"1":{b:"4:21",e:"4:24"},"2":{b:"4:25",e:"4:28"},"3":{b:"4:29",e:"4:33"}}};var Korach$2={num:38,hebrew:"קוֹרַח",book:4,verses:"16:1-18:32",haft:{k:"I Samuel",b:"11:14",e:"12:22"},fullkriyah:{"1":{b:"16:1",e:"16:13"},"2":{b:"16:14",e:"16:19"},"3":{b:"16:20",e:"17:8"},"4":{b:"17:9",e:"17:15"},"5":{b:"17:16",e:"17:24"},"6":{b:"17:25",e:"18:20"},"7":{b:"18:21",e:"18:32"},M:{b:"18:30",e:"18:32"}},weekday:{"1":{b:"16:1",e:"16:3"},"2":{b:"16:4",e:"16:7"},"3":{b:"16:8",e:"16:13"}}};var Chukat$2={num:39,hebrew:"חֻקַּת",book:4,verses:"19:1-22:1",haft:{k:"Judges",b:"11:1",e:"11:33"},fullkriyah:{"1":{b:"19:1",e:"19:17"},"2":{b:"19:18",e:"20:6"},"3":{b:"20:7",e:"20:13"},"4":{b:"20:14",e:"20:21"},"5":{b:"20:22",e:"21:9"},"6":{b:"21:10",e:"21:20"},"7":{b:"21:21",e:"22:1"},M:{b:"21:34",e:"22:1"}},weekday:{"1":{b:"19:1",e:"19:6"},"2":{b:"19:7",e:"19:9"},"3":{b:"19:10",e:"19:17"}}};var Balak$2={num:40,hebrew:"בָּלָק",book:4,verses:"22:2-25:9",haft:{k:"Micah",b:"5:6",e:"6:8"},fullkriyah:{"1":{b:"22:2",e:"22:12"},"2":{b:"22:13",e:"22:20"},"3":{b:"22:21",e:"22:38"},"4":{b:"22:39",e:"23:12"},"5":{b:"23:13",e:"23:26"},"6":{b:"23:27",e:"24:13"},"7":{b:"24:14",e:"25:9"},M:{b:"25:7",e:"25:9"}},weekday:{"1":{b:"22:2",e:"22:4"},"2":{b:"22:5",e:"22:7"},"3":{b:"22:8",e:"22:12"}}};var Pinchas$2={num:41,hebrew:"פִּינְחָס",book:4,verses:"25:10-30:1",haft:{k:"I Kings",b:"18:46",e:"19:21"},fullkriyah:{"1":{b:"25:10",e:"26:4"},"2":{b:"26:5",e:"26:51"},"3":{b:"26:52",e:"27:5"},"4":{b:"27:6",e:"27:23"},"5":{b:"28:1",e:"28:15"},"6":{b:"28:16",e:"29:11"},"7":{b:"29:12",e:"30:1"},M:{b:"29:35",e:"30:1"}},weekday:{"1":{b:"25:10",e:"25:12"},"2":{b:"25:13",e:"25:15"},"3":{b:"25:16",e:"26:4"}}};var Matot$2={num:42,hebrew:"מַּטּוֹת",book:4,verses:"30:2-32:42",haft:{k:"Jeremiah",b:"1:1",e:"2:3"},fullkriyah:{"1":{b:"30:2",e:"30:17"},"2":{b:"31:1",e:"31:12"},"3":{b:"31:13",e:"31:24"},"4":{b:"31:25",e:"31:41"},"5":{b:"31:42",e:"31:54"},"6":{b:"32:1",e:"32:19"},"7":{b:"32:20",e:"32:42"},M:{b:"32:39",e:"32:42"}},weekday:{"1":{b:"30:2",e:"30:9"},"2":{b:"30:10",e:"30:13"},"3":{b:"30:14",e:"30:17"}}};var Masei$2={num:43,hebrew:"מַסְעֵי",book:4,verses:"33:1-36:13",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":{b:"33:1",e:"33:10"},"2":{b:"33:11",e:"33:49"},"3":{b:"33:50",e:"34:15"},"4":{b:"34:16",e:"34:29"},"5":{b:"35:1",e:"35:8"},"6":{b:"35:9",e:"35:34"},"7":{b:"36:1",e:"36:13"},M:{b:"36:11",e:"36:13"}},weekday:{"1":{b:"33:1",e:"33:3"},"2":{b:"33:4",e:"33:6"},"3":{b:"33:7",e:"33:10"}}};var Devarim$1={num:44,hebrew:"דְּבָרִים",book:5,verses:"1:1-3:22",haft:{k:"Isaiah",b:"1:1",e:"1:27"},fullkriyah:{"1":{b:"1:1",e:"1:10"},"2":{b:"1:11",e:"1:21"},"3":{b:"1:22",e:"1:38"},"4":{b:"1:39",e:"2:1"},"5":{b:"2:2",e:"2:30"},"6":{b:"2:31",e:"3:14"},"7":{b:"3:15",e:"3:22"},M:{b:"3:20",e:"3:22"}},weekday:{"1":{b:"1:1",e:"1:3"},"2":{b:"1:4",e:"1:7"},"3":{b:"1:8",e:"1:11"}}};var Vaetchanan$1={num:45,hebrew:"וָאֶתְחַנַּן",book:5,verses:"3:23-7:11",haft:{k:"Isaiah",b:"40:1",e:"40:26"},fullkriyah:{"1":{b:"3:23",e:"4:4"},"2":{b:"4:5",e:"4:40"},"3":{b:"4:41",e:"4:49"},"4":{b:"5:1",e:"5:18"},"5":{b:"5:19",e:"6:3"},"6":{b:"6:4",e:"6:25"},"7":{b:"7:1",e:"7:11"},M:{b:"7:9",e:"7:11"}},weekday:{"1":{b:"3:23",e:"3:25"},"2":{b:"3:26",e:"4:4"},"3":{b:"4:5",e:"4:8"}}};var Eikev$2={num:46,hebrew:"עֵקֶב",book:5,verses:"7:12-11:25",haft:{k:"Isaiah",b:"49:14",e:"51:3"},fullkriyah:{"1":{b:"7:12",e:"8:10"},"2":{b:"8:11",e:"9:3"},"3":{b:"9:4",e:"9:29"},"4":{b:"10:1",e:"10:11"},"5":{b:"10:12",e:"11:9"},"6":{b:"11:10",e:"11:21"},"7":{b:"11:22",e:"11:25"},M:{b:"11:22",e:"11:25"}},weekday:{"1":{b:"7:12",e:"7:21"},"2":{b:"7:22",e:"8:3"},"3":{b:"8:4",e:"8:10"}}};var Shoftim$2={num:48,hebrew:"שׁוֹפְטִים",book:5,verses:"16:18-21:9",haft:{k:"Isaiah",b:"51:12",e:"52:12"},fullkriyah:{"1":{b:"16:18",e:"17:13"},"2":{b:"17:14",e:"17:20"},"3":{b:"18:1",e:"18:5"},"4":{b:"18:6",e:"18:13"},"5":{b:"18:14",e:"19:13"},"6":{b:"19:14",e:"20:9"},"7":{b:"20:10",e:"21:9"},M:{b:"21:7",e:"21:9"}},weekday:{"1":{b:"16:18",e:"16:20"},"2":{b:"16:21",e:"17:10"},"3":{b:"17:11",e:"17:13"}}};var Nitzavim$2={num:51,hebrew:"נִצָּבִים",book:5,verses:"29:9-30:20",haft:{k:"Isaiah",b:"61:10",e:"63:9"},fullkriyah:{"1":{b:"29:9",e:"29:11"},"2":{b:"29:12",e:"29:14"},"3":{b:"29:15",e:"29:28"},"4":{b:"30:1",e:"30:6"},"5":{b:"30:7",e:"30:10"},"6":{b:"30:11",e:"30:14"},"7":{b:"30:15",e:"30:20"},M:{b:"30:15",e:"30:20"}},weekday:{"1":{b:"29:9",e:"29:11"},"2":{b:"29:12",e:"29:14"},"3":{b:"29:15",e:"29:28"}}};var Vayeilech$2={num:52,hebrew:"וַיֵּלֶךְ",book:5,verses:"31:1-31:30",haft:{k:"Isaiah",b:"55:6",e:"56:8"},fullkriyah:{"1":{b:"31:1",e:"31:3"},"2":{b:"31:4",e:"31:6"},"3":{b:"31:7",e:"31:9"},"4":{b:"31:10",e:"31:13"},"5":{b:"31:14",e:"31:19"},"6":{b:"31:20",e:"31:24"},"7":{b:"31:25",e:"31:30"},M:{b:"31:28",e:"31:30"}},weekday:{"1":{b:"31:1",e:"31:3"},"2":{b:"31:4",e:"31:6"},"3":{b:"31:7",e:"31:13"}}};var parshiyotObj = {Bereshit:Bereshit$2,Noach:Noach$2,"Lech-Lecha":{num:3,hebrew:"לֶךְ־לְךָ",book:1,verses:"12:1-17:27",haft:{k:"Isaiah",b:"40:27",e:"41:16"},fullkriyah:{"1":{b:"12:1",e:"12:13"},"2":{b:"12:14",e:"13:4"},"3":{b:"13:5",e:"13:18"},"4":{b:"14:1",e:"14:20"},"5":{b:"14:21",e:"15:6"},"6":{b:"15:7",e:"17:6"},"7":{b:"17:7",e:"17:27"},M:{b:"17:24",e:"17:27"}},weekday:{"1":{b:"12:1",e:"12:3"},"2":{b:"12:4",e:"12:9"},"3":{b:"12:10",e:"12:13"}}},Vayera:Vayera$2,"Chayei Sara":{num:5,hebrew:"חַיֵּי שָֹרָה",book:1,verses:"23:1-25:18",haft:{k:"I Kings",b:"1:1",e:"1:31"},fullkriyah:{"1":{b:"23:1",e:"23:16"},"2":{b:"23:17",e:"24:9"},"3":{b:"24:10",e:"24:26"},"4":{b:"24:27",e:"24:52"},"5":{b:"24:53",e:"24:67"},"6":{b:"25:1",e:"25:11"},"7":{b:"25:12",e:"25:18"},M:{b:"25:16",e:"25:18"}},weekday:{"1":{b:"23:1",e:"23:7"},"2":{b:"23:8",e:"23:12"},"3":{b:"23:13",e:"23:16"}}},Toldot:Toldot$2,Vayetzei:Vayetzei$2,Vayishlach:Vayishlach$2,Vayeshev:Vayeshev$2,Miketz:Miketz$2,Vayigash:Vayigash$2,Vayechi:Vayechi$2,Shemot:Shemot$2,Vaera:Vaera$2,Bo:Bo$2,Beshalach:Beshalach$2,Yitro:Yitro$2,Mishpatim:Mishpatim$2,Terumah:Terumah$2,Tetzaveh:Tetzaveh$2,"Ki Tisa":{num:21,hebrew:"כִּי תִשָּׂא",book:2,verses:"30:11-34:35",haft:{k:"I Kings",b:"18:1",e:"18:39"},seph:{k:"I Kings",b:"18:20",e:"18:39"},fullkriyah:{"1":{b:"30:11",e:"31:17"},"2":{b:"31:18",e:"33:11"},"3":{b:"33:12",e:"33:16"},"4":{b:"33:17",e:"33:23"},"5":{b:"34:1",e:"34:9"},"6":{b:"34:10",e:"34:26"},"7":{b:"34:27",e:"34:35"},M:{b:"34:33",e:"34:35"}},weekday:{"1":{b:"30:11",e:"30:13"},"2":{b:"30:14",e:"30:16"},"3":{b:"30:17",e:"30:21"}}},Vayakhel:Vayakhel$2,Pekudei:Pekudei$2,Vayikra:Vayikra$2,Tzav:Tzav$2,Shmini:Shmini$2,Tazria:Tazria$2,Metzora:Metzora$2,"Achrei Mot":{num:29,hebrew:"אַחֲרֵי מוֹת",book:3,verses:"16:1-18:30",haft:{k:"Ezekiel",b:"22:1",e:"22:19"},seph:{k:"Ezekiel",b:"22:1",e:"22:16"},fullkriyah:{"1":{b:"16:1",e:"16:17"},"2":{b:"16:18",e:"16:24"},"3":{b:"16:25",e:"16:34"},"4":{b:"17:1",e:"17:7"},"5":{b:"17:8",e:"18:5"},"6":{b:"18:6",e:"18:21"},"7":{b:"18:22",e:"18:30"},M:{b:"18:28",e:"18:30"}},weekday:{"1":{b:"16:1",e:"16:6"},"2":{b:"16:7",e:"16:11"},"3":{b:"16:12",e:"16:17"}}},Kedoshim:Kedoshim$2,Emor:Emor$2,Behar:Behar$2,Bechukotai:Bechukotai$2,Bamidbar:Bamidbar$2,Nasso:Nasso$2,"Beha'alotcha":{num:36,hebrew:"בְּהַעֲלֹתְךָ",book:4,verses:"8:1-12:16",haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{"1":{b:"8:1",e:"8:14"},"2":{b:"8:15",e:"8:26"},"3":{b:"9:1",e:"9:14"},"4":{b:"9:15",e:"10:10"},"5":{b:"10:11",e:"10:34"},"6":{b:"10:35",e:"11:29"},"7":{b:"11:30",e:"12:16"},M:{b:"12:14",e:"12:16"}},weekday:{"1":{b:"8:1",e:"8:4"},"2":{b:"8:5",e:"8:9"},"3":{b:"8:10",e:"8:14"}}},"Sh'lach":{num:37,hebrew:"שְׁלַח־לְךָ",book:4,verses:"13:1-15:41",haft:{k:"Joshua",b:"2:1",e:"2:24"},fullkriyah:{"1":{b:"13:1",e:"13:20"},"2":{b:"13:21",e:"14:7"},"3":{b:"14:8",e:"14:25"},"4":{b:"14:26",e:"15:7"},"5":{b:"15:8",e:"15:16"},"6":{b:"15:17",e:"15:26"},"7":{b:"15:27",e:"15:41"},M:{b:"15:37",e:"15:41"}},weekday:{"1":{b:"13:1",e:"13:3"},"2":{b:"13:4",e:"13:16"},"3":{b:"13:17",e:"13:20"}}},Korach:Korach$2,Chukat:Chukat$2,Balak:Balak$2,Pinchas:Pinchas$2,Matot:Matot$2,Masei:Masei$2,Devarim:Devarim$1,Vaetchanan:Vaetchanan$1,Eikev:Eikev$2,"Re'eh":{num:47,hebrew:"רְאֵה",book:5,verses:"11:26-16:17",haft:{k:"Isaiah",b:"54:11",e:"55:5"},fullkriyah:{"1":{b:"11:26",e:"12:10"},"2":{b:"12:11",e:"12:28"},"3":{b:"12:29",e:"13:19"},"4":{b:"14:1",e:"14:21"},"5":{b:"14:22",e:"14:29"},"6":{b:"15:1",e:"15:18"},"7":{b:"15:19",e:"16:17"},M:{b:"16:13",e:"16:17"}},weekday:{"1":{b:"11:26",e:"11:31"},"2":{b:"11:32",e:"12:5"},"3":{b:"12:6",e:"12:10"}}},Shoftim:Shoftim$2,"Ki Teitzei":{num:49,hebrew:"כִּי־תֵצֵא",book:5,verses:"21:10-25:19",haft:{k:"Isaiah",b:"54:1",e:"54:10"},fullkriyah:{"1":{b:"21:10",e:"21:21"},"2":{b:"21:22",e:"22:7"},"3":{b:"22:8",e:"23:7"},"4":{b:"23:8",e:"23:24"},"5":{b:"23:25",e:"24:4"},"6":{b:"24:5",e:"24:13"},"7":{b:"24:14",e:"25:19"},M:{b:"25:17",e:"25:19"}},weekday:{"1":{b:"21:10",e:"21:14"},"2":{b:"21:15",e:"21:17"},"3":{b:"21:18",e:"21:21"}}},"Ki Tavo":{num:50,hebrew:"כִּי־תָבוֹא",book:5,verses:"26:1-29:8",haft:{k:"Isaiah",b:"60:1",e:"60:22"},fullkriyah:{"1":{b:"26:1",e:"26:11"},"2":{b:"26:12",e:"26:15"},"3":{b:"26:16",e:"26:19"},"4":{b:"27:1",e:"27:10"},"5":{b:"27:11",e:"28:6"},"6":{b:"28:7",e:"28:69"},"7":{b:"29:1",e:"29:8"},M:{b:"29:6",e:"29:8"}},weekday:{"1":{b:"26:1",e:"26:3"},"2":{b:"26:4",e:"26:11"},"3":{b:"26:12",e:"26:15"}}},Nitzavim:Nitzavim$2,Vayeilech:Vayeilech$2,"Ha'Azinu":{num:53,hebrew:"הַאֲזִינוּ",book:5,verses:"32:1-32:52",haft:{k:"II Samuel",b:"22:1",e:"22:51"},fullkriyah:{"1":{b:"32:1",e:"32:6"},"2":{b:"32:7",e:"32:12"},"3":{b:"32:13",e:"32:18"},"4":{b:"32:19",e:"32:28"},"5":{b:"32:29",e:"32:39"},"6":{b:"32:40",e:"32:43"},"7":{b:"32:44",e:"32:52"},M:{b:"32:48",e:"32:52"}},weekday:{"1":{b:"32:1",e:"32:3"},"2":{b:"32:4",e:"32:6"},"3":{b:"32:7",e:"32:12"}}},"Vezot Haberakhah":{num:54,hebrew:"וְזֹאת הַבְּרָכָה",book:5,verses:"33:1-34:12",haft:{k:"Joshua",b:"1:1",e:"1:18"},seph:{k:"Joshua",b:"1:1",e:"1:9"},fullkriyah:{"1":{b:"33:1",e:"33:7"},"2":{b:"33:8",e:"33:12"},"3":{b:"33:13",e:"33:17"},"4":{b:"33:18",e:"33:21"},"5":{b:"33:22",e:"33:26"},"6":{b:"33:27",e:"33:29"},"7":{b:"34:1",e:"34:12"}},weekday:{"1":{b:"33:1",e:"33:7"},"2":{b:"33:8",e:"33:12"},"3":{b:"33:13",e:"33:17"}}},"Vayakhel-Pekudei":{num:101,combined:true,p1:"Vayakhel",p2:"Pekudei",num1:22,num2:23,book:2,verses:"35:1-40:38",fullkriyah:{"1":{b:"35:1",e:"35:29"},"2":{b:"35:30",e:"37:16"},"3":{b:"37:17",e:"37:29"},"4":{b:"38:1",e:"39:1"},"5":{b:"39:2",e:"39:21"},"6":{b:"39:22",e:"39:43"},"7":{b:"40:1",e:"40:38"},M:{b:"40:34",e:"40:38"}}},"Tazria-Metzora":{num:102,combined:true,p1:"Tazria",p2:"Metzora",num1:27,num2:28,book:3,verses:"12:1-15:33",fullkriyah:{"1":{b:"12:1",e:"13:23"},"2":{b:"13:24",e:"13:39"},"3":{b:"13:40",e:"13:54"},"4":{b:"13:55",e:"14:20"},"5":{b:"14:21",e:"14:32"},"6":{b:"14:33",e:"15:15"},"7":{b:"15:16",e:"15:33"},M:{b:"15:31",e:"15:33"}}},"Achrei Mot-Kedoshim":{num:103,combined:true,p1:"Achrei Mot",p2:"Kedoshim",num1:29,num2:30,book:3,verses:"16:1-20:27",fullkriyah:{"1":{b:"16:1",e:"16:24"},"2":{b:"16:25",e:"17:7"},"3":{b:"17:8",e:"18:21"},"4":{b:"18:22",e:"19:14"},"5":{b:"19:15",e:"19:32"},"6":{b:"19:33",e:"20:7"},"7":{b:"20:8",e:"20:27"},M:{b:"20:25",e:"20:27"}}},"Behar-Bechukotai":{num:104,combined:true,p1:"Behar",p2:"Bechukotai",num1:32,num2:33,book:3,verses:"25:1-27:34",fullkriyah:{"1":{b:"25:1",e:"25:18"},"2":{b:"25:19",e:"25:28"},"3":{b:"25:29",e:"25:38"},"4":{b:"25:39",e:"26:9"},"5":{b:"26:10",e:"26:46"},"6":{b:"27:1",e:"27:15"},"7":{b:"27:16",e:"27:34"},M:{b:"27:32",e:"27:34"}}},"Chukat-Balak":{num:105,combined:true,p1:"Chukat",p2:"Balak",num1:39,num2:40,book:4,verses:"19:1-25:9",fullkriyah:{"1":{b:"19:1",e:"20:6"},"2":{b:"20:7",e:"20:21"},"3":{b:"20:22",e:"21:20"},"4":{b:"21:21",e:"22:12"},"5":{b:"22:13",e:"22:38"},"6":{b:"22:39",e:"23:26"},"7":{b:"23:27",e:"25:9"},M:{b:"25:7",e:"25:9"}}},"Matot-Masei":{num:106,combined:true,p1:"Matot",p2:"Masei",num1:42,num2:43,book:4,verses:"30:2-36:13",fullkriyah:{"1":{b:"30:2",e:"31:12"},"2":{b:"31:13",e:"31:54"},"3":{b:"32:1",e:"32:19"},"4":{b:"32:20",e:"33:49"},"5":{b:"33:50",e:"34:15"},"6":{b:"34:16",e:"35:8"},"7":{b:"35:9",e:"36:13"},M:{b:"36:11",e:"36:13"}}},"Nitzavim-Vayeilech":{num:107,combined:true,p1:"Nitzavim",p2:"Vayeilech",num1:51,num2:52,book:5,verses:"29:9-31:30",fullkriyah:{"1":{b:"29:9",e:"29:28"},"2":{b:"30:1",e:"30:6"},"3":{b:"30:7",e:"30:14"},"4":{b:"30:15",e:"31:6"},"5":{b:"31:7",e:"31:13"},"6":{b:"31:14",e:"31:19"},"7":{b:"31:20",e:"31:30"},M:{b:"31:28",e:"31:30"}}}};
338
-
339
302
  const HOLIDAY_IGNORE_MASK = core.flags.DAF_YOMI | core.flags.OMER_COUNT | core.flags.SHABBAT_MEVARCHIM | core.flags.MOLAD | core.flags.USER_EVENT | core.flags.HEBREW_DATE;
340
303
  /**
341
304
  * Based on the event date, type and title, finds the relevant leyning key
342
- * @param {Event} e event
305
+ * @param {Event} ev event
343
306
  * @param {boolean} [il] true if Israel holiday scheme
344
307
  * @return {string} key to look up in holiday-reading.json
345
308
  */
346
309
 
347
- function getLeyningKeyForEvent(e, il = false) {
348
- const mask = e.getFlags();
310
+ function getLeyningKeyForEvent(ev, il = false) {
311
+ const mask = ev.getFlags();
349
312
 
350
313
  if (mask & HOLIDAY_IGNORE_MASK) {
351
314
  return undefined;
352
315
  } // Skip all Erevs except for Simchat Torah
353
316
 
354
317
 
355
- const desc = e.getDesc();
318
+ const desc = ev.getDesc();
356
319
 
357
320
  if (mask & core.flags.EREV && desc !== 'Erev Simchat Torah') {
358
321
  return undefined;
359
322
  }
360
323
 
361
- const hd = e.getDate();
324
+ const hd = ev.getDate();
362
325
  const day = hd.getDate();
363
326
  const dow = hd.abs() % 7;
364
327
  const month = hd.getMonth();
365
328
  const isShabbat = dow == 6;
366
329
  const isRoshChodesh = day == 1 || day == 30;
367
- const holiday = e.basename();
330
+ const holiday = ev.basename();
368
331
  const isPesach = holiday === 'Pesach';
369
332
 
370
333
  if (il && isPesach) {
@@ -377,7 +340,7 @@ function getLeyningKeyForEvent(e, il = false) {
377
340
 
378
341
  if (day == 1 && month === core.months.TISHREI) {
379
342
  return isShabbat ? 'Rosh Hashana I (on Shabbat)' : 'Rosh Hashana I';
380
- } else if (e.cholHaMoedDay) {
343
+ } else if (ev.cholHaMoedDay) {
381
344
  // Sukkot or Pesach
382
345
  if (isShabbat) {
383
346
  return holiday + ' Shabbat Chol ha-Moed';
@@ -387,7 +350,7 @@ function getLeyningKeyForEvent(e, il = false) {
387
350
  // the readings for the third, fourth, and fifth days are moved ahead
388
351
 
389
352
 
390
- let cholHaMoedDay = e.cholHaMoedDay;
353
+ let cholHaMoedDay = ev.cholHaMoedDay;
391
354
 
392
355
  if (isPesach && cholHaMoedDay >= 3) {
393
356
  if (dow == 0 && cholHaMoedDay == 4) {
@@ -398,13 +361,13 @@ function getLeyningKeyForEvent(e, il = false) {
398
361
  }
399
362
 
400
363
  return `${holiday} Chol ha-Moed Day ${cholHaMoedDay}`;
401
- } else if (e.chanukahDay) {
364
+ } else if (ev.chanukahDay) {
402
365
  if (isShabbat && isRoshChodesh) {
403
366
  return 'Shabbat Rosh Chodesh Chanukah';
404
- } else if (isRoshChodesh && e.chanukahDay == 7) {
367
+ } else if (isRoshChodesh && ev.chanukahDay == 7) {
405
368
  return `Chanukah Day 7 (on Rosh Chodesh)`;
406
369
  } else {
407
- return `Chanukah Day ${e.chanukahDay}`;
370
+ return `Chanukah Day ${ev.chanukahDay}`;
408
371
  }
409
372
  }
410
373
 
@@ -518,19 +481,19 @@ function mergeAliyotWithSpecial(aliyot, special) {
518
481
  }
519
482
  /**
520
483
  * @private
521
- * @param {Event} e
484
+ * @param {Event} ev
522
485
  * @param {string} key
523
486
  * @return {string}
524
487
  */
525
488
 
526
489
 
527
- function getChanukahShabbatKey(e, key) {
490
+ function getChanukahShabbatKey(ev, key) {
528
491
  if (key == 'Shabbat Rosh Chodesh Chanukah') {
529
492
  return undefined;
530
493
  }
531
494
 
532
- if (e.chanukahDay) {
533
- return e.chanukahDay == 8 ? 'Shabbat Chanukah II' : 'Shabbat Chanukah';
495
+ if (ev.chanukahDay) {
496
+ return ev.chanukahDay == 8 ? 'Shabbat Chanukah II' : 'Shabbat Chanukah';
534
497
  }
535
498
 
536
499
  return undefined;
@@ -611,6 +574,8 @@ function specialReadings(hd, il, aliyot, reason) {
611
574
  return haft;
612
575
  }
613
576
 
577
+ var Bereshit$2={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"]}};var Noach$2={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"]}};var Vayera$2={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"]}};var Toldot$2={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"]}};var Vayetzei$2={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"]}};var Vayishlach$2={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"]}};var Vayeshev$2={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"]}};var Miketz$2={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"]}};var Vayigash$2={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"]}};var Vayechi$2={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"]}};var Shemot$2={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"]}};var Vaera$2={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"]}};var Bo$2={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"]}};var Beshalach$2={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"]}};var Yitro$2={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"]}};var Mishpatim$2={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"]}};var Terumah$2={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"]}};var Tetzaveh$2={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"]}};var Vayakhel$2={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"]}};var Pekudei$2={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"]}};var Vayikra$2={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"]}};var Tzav$2={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"]}};var Shmini$2={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"]}};var Tazria$2={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"]}};var Metzora$2={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"]}};var Kedoshim$2={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"]}};var Emor$2={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"]}};var Behar$2={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"]}};var Bechukotai$2={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"]}};var Bamidbar$2={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"]}};var Nasso$2={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"]}};var Korach$2={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"]}};var Chukat$2={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"]}};var Balak$2={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"]}};var Pinchas$2={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"]}};var Matot$2={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"]}};var Masei$2={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"]}};var Devarim$1={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"]}};var Vaetchanan$1={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"]}};var Eikev$2={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"]}};var Shoftim$2={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"]}};var Nitzavim$2={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"]}};var Vayeilech$2={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"]}};var parshiyotObj = {Bereshit:Bereshit$2,Noach:Noach$2,"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:Vayera$2,"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:Toldot$2,Vayetzei:Vayetzei$2,Vayishlach:Vayishlach$2,Vayeshev:Vayeshev$2,Miketz:Miketz$2,Vayigash:Vayigash$2,Vayechi:Vayechi$2,Shemot:Shemot$2,Vaera:Vaera$2,Bo:Bo$2,Beshalach:Beshalach$2,Yitro:Yitro$2,Mishpatim:Mishpatim$2,Terumah:Terumah$2,Tetzaveh:Tetzaveh$2,"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:Vayakhel$2,Pekudei:Pekudei$2,Vayikra:Vayikra$2,Tzav:Tzav$2,Shmini:Shmini$2,Tazria:Tazria$2,Metzora:Metzora$2,"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:Kedoshim$2,Emor:Emor$2,Behar:Behar$2,Bechukotai:Bechukotai$2,Bamidbar:Bamidbar$2,Nasso:Nasso$2,"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:Korach$2,Chukat:Chukat$2,Balak:Balak$2,Pinchas:Pinchas$2,Matot:Matot$2,Masei:Masei$2,Devarim:Devarim$1,Vaetchanan:Vaetchanan$1,Eikev:Eikev$2,"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:Shoftim$2,"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:Nitzavim$2,Vayeilech:Vayeilech$2,"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:true,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:true,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:true,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:true,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:true,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:true,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:true,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"]}}};
578
+
614
579
  /**
615
580
  * Represents an aliyah
616
581
  * @private
@@ -635,7 +600,7 @@ function specialReadings(hd, il, aliyot, reason) {
635
600
  * @property {LeyningNames} name
636
601
  * @property {string[]} [parsha] - An array of either 1 (regular) or 2 (doubled parsha).
637
602
  * `undefined` for holiday readings
638
- * @property {num} [parshaNum] - 1 for Bereshit, 2 for Noach, etc. `undefined` for holiday readings
603
+ * @property {number} [parshaNum] - 1 for Bereshit, 2 for Noach, etc. `undefined` for holiday readings
639
604
  * @property {string} summary - Such as `Genesis 1:1 - 6:8`
640
605
  * @property {Aliyah|Aliyah[]} haft - Haftarah object(s)
641
606
  * @property {string} haftara - Haftarah, such as `Isaiah 42:5 – 43:11`
@@ -653,91 +618,24 @@ function specialReadings(hd, il, aliyot, reason) {
653
618
  /**
654
619
  * Looks up leyning for a given holiday. Returns some
655
620
  * of full kriyah aliyot, special Maftir, special Haftarah
656
- * @param {Event} e the Hebcal event associated with this leyning
621
+ * @param {Event} ev the Hebcal event associated with this leyning
657
622
  * @param {boolean} [il] true if Israel holiday scheme
658
623
  * @return {Leyning} map of aliyot
659
624
  */
660
625
 
661
- function getLeyningForHoliday(e, il = false) {
662
- if (typeof e !== 'object' || !(e instanceof core.Event)) {
663
- throw new TypeError(`Bad event argument: ${e}`);
664
- } else if (e.getFlags() & core.flags.PARSHA_HASHAVUA) {
665
- throw new TypeError(`Event should be a holiday: ${e.getDesc()}`);
666
- } else if (e.getFlags() & HOLIDAY_IGNORE_MASK) {
626
+ function getLeyningForHoliday(ev, il = false) {
627
+ if (typeof ev !== 'object' || !(ev instanceof core.Event)) {
628
+ throw new TypeError(`Bad event argument: ${ev}`);
629
+ } else if (ev.getFlags() & core.flags.PARSHA_HASHAVUA) {
630
+ throw new TypeError(`Event should be a holiday: ${ev.getDesc()}`);
631
+ } else if (ev.getFlags() & HOLIDAY_IGNORE_MASK) {
667
632
  return undefined;
668
633
  }
669
634
 
670
- const key = getLeyningKeyForEvent(e, il);
671
- const leyning = getLeyningForHolidayKey(key, e.cholHaMoedDay);
635
+ const key = getLeyningKeyForEvent(ev, il);
636
+ const leyning = getLeyningForHolidayKey(key, ev.cholHaMoedDay);
672
637
  return leyning;
673
638
  }
674
- /**
675
- * @private
676
- * @param {string} a
677
- * @param {string} b
678
- * @return {boolean}
679
- */
680
-
681
- function isChapVerseBefore(a, b) {
682
- const cv1 = a.split(':').map(x => +x);
683
- const cv2 = b.split(':').map(x => +x);
684
- return cv1[0] * 100 + cv1[1] < cv2[0] * 100 + cv2[1];
685
- }
686
- /**
687
- * Makes a summary of the leyning, like "Genesis 6:9-11:32"
688
- * @param {Object<string,Aliyah>} aliyot
689
- * @return {string}
690
- */
691
-
692
-
693
- function makeLeyningSummary(aliyot) {
694
- const parts = makeLeyningParts(aliyot);
695
- return makeSummaryFromParts(parts);
696
- }
697
- /**
698
- * @private
699
- * @param {Object<string,Aliyah>} aliyot
700
- * @return {Aliyah[]}
701
- */
702
-
703
- function makeLeyningParts(aliyot) {
704
- const nums = Object.keys(aliyot).filter(x => x.length === 1);
705
- let start = aliyot[nums[0]];
706
- let end = start;
707
- const parts = [];
708
-
709
- for (let i = 0; i < nums.length; i++) {
710
- const num = nums[i];
711
- const aliyah = aliyot[num];
712
-
713
- if (i === nums.length - 1 && aliyah.k === end.k && aliyah.e === end.e) {
714
- // short-circuit when final aliyah is within the previous (e.g. M inside of 7)
715
- continue;
716
- }
717
-
718
- const prevEndChap = +end.e.split(':')[0];
719
- const curStartChap = +aliyah.b.split(':')[0];
720
- const sameOrNextChap = curStartChap === prevEndChap || curStartChap === prevEndChap + 1;
721
-
722
- if (i !== 0 && (aliyah.k !== start.k || isChapVerseBefore(aliyah.b, start.e) || !sameOrNextChap)) {
723
- parts.push({
724
- k: start.k,
725
- b: start.b,
726
- e: end.e
727
- });
728
- start = aliyah;
729
- }
730
-
731
- end = aliyah;
732
- }
733
-
734
- parts.push({
735
- k: start.k,
736
- b: start.b,
737
- e: end.e
738
- });
739
- return parts;
740
- }
741
639
  /**
742
640
  * Looks up leyning for a given holiday key. Key should be an
743
641
  * (untranslated) string used in holiday-readings.json. Returns some
@@ -791,8 +689,8 @@ function getLeyningForHolidayKey(key, cholHaMoedDay) {
791
689
 
792
690
  if (src.haft) {
793
691
  const haft = leyning.haft = cloneHaftara(src.haft);
794
- leyning.haftara = makeHaftaraSummary(haft);
795
- leyning.haftaraNumV = calculateHaftaraNumV(haft);
692
+ leyning.haftara = makeSummaryFromParts(haft);
693
+ leyning.haftaraNumV = sumVerses(haft);
796
694
  }
797
695
 
798
696
  return leyning;
@@ -886,14 +784,14 @@ function getLeyningForParsha(parsha) {
886
784
 
887
785
  const name = isParshaString ? parsha : parshaToString(parsha);
888
786
  const raw = parshiyotObj[name];
889
- const fullkriyah = Object.create(null);
787
+ const fullkriyah = {};
890
788
  const book = BOOK[raw.book];
891
789
  Object.keys(raw.fullkriyah).forEach(num => {
892
790
  const src = raw.fullkriyah[num];
893
791
  const reading = {
894
792
  k: book,
895
- b: src.b,
896
- e: src.e
793
+ b: src[0],
794
+ e: src[1]
897
795
  };
898
796
  fullkriyah[num] = reading;
899
797
  });
@@ -923,26 +821,26 @@ function getLeyningForParsha(parsha) {
923
821
 
924
822
  if (haft0) {
925
823
  const haft = result.haft = cloneHaftara(haft0);
926
- result.haftara = makeHaftaraSummary(haft);
927
- result.haftaraNumV = calculateHaftaraNumV(haft);
824
+ result.haftara = makeSummaryFromParts(haft);
825
+ result.haftaraNumV = sumVerses(haft);
928
826
  }
929
827
 
930
828
  if (raw.seph) {
931
829
  const seph = result.seph = cloneHaftara(raw.seph);
932
- result.sephardic = makeHaftaraSummary(seph);
933
- result.sephardicNumV = calculateHaftaraNumV(seph);
830
+ result.sephardic = makeSummaryFromParts(seph);
831
+ result.sephardicNumV = sumVerses(seph);
934
832
  }
935
833
 
936
834
  const weekdaySrc = raw.weekday || parshiyotObj[parshaNameArray[0]].weekday;
937
835
 
938
836
  if (weekdaySrc) {
939
- const weekday = result.weekday = Object.create(null);
837
+ const weekday = result.weekday = {};
940
838
  ['1', '2', '3'].forEach(num => {
941
839
  const src = weekdaySrc[num];
942
840
  const aliyah = {
943
841
  k: book,
944
- b: src.b,
945
- e: src.e
842
+ b: src[0],
843
+ e: src[1]
946
844
  };
947
845
  calculateNumVerses(aliyah);
948
846
  weekday[num] = aliyah;
@@ -969,7 +867,7 @@ function getLeyningForParshaHaShavua(ev, il = false) {
969
867
 
970
868
  const parsha = ev.parsha;
971
869
  const result = getLeyningForParsha(parsha);
972
- const reason = Object.create(null);
870
+ const reason = {};
973
871
  const hd = ev.getDate(); // Now, check for special maftir or haftara on same date
974
872
 
975
873
  const specialHaftara = specialReadings(hd, il, result.fullkriyah, reason);
@@ -1013,8 +911,8 @@ function getLeyningForParshaHaShavua(ev, il = false) {
1013
911
 
1014
912
  if (updateHaftaraSummary) {
1015
913
  const haft = result.haft;
1016
- result.haftara = makeHaftaraSummary(haft);
1017
- result.haftaraNumV = calculateHaftaraNumV(haft);
914
+ result.haftara = makeSummaryFromParts(haft);
915
+ result.haftaraNumV = sumVerses(haft);
1018
916
  }
1019
917
 
1020
918
  return result;
@@ -1110,6 +1008,42 @@ function findParshaHaShavua(saturday, il) {
1110
1008
 
1111
1009
  return null;
1112
1010
  }
1011
+ /**
1012
+ * Parsha metadata
1013
+ * @typedef {Object} ParshaMeta
1014
+ * @property {number} num - 1 for Bereshit, 2 for Noach, etc. `undefined` for holiday readings
1015
+ * @property {string} hebrew - parsha name in Hebrew with niqud
1016
+ * @property {number} book - 1 for Genesis, 2 for Exodus, 5 for Deuteronomy
1017
+ * @property {Aliyah|Aliyah[]} haft - Haftarah object(s)
1018
+ * @property {Aliyah|Aliyah[]} [seph] - Haftarah object(s) for Sephardim
1019
+ * @property {Object<string,string[]>} fullkriyah - Map of aliyot `1` through `7` plus `M` for maftir
1020
+ * @property {Object<string,string[]>} weekday - Map of weekday Torah Readings
1021
+ * aliyot `1` through `3` for Monday and Thursday
1022
+ */
1023
+
1024
+ /**
1025
+ * Returns the parsha metadata
1026
+ * @param {string|string[]} parsha
1027
+ * @return {ParshaMeta}
1028
+ */
1029
+
1030
+
1031
+ function lookupParsha(parsha) {
1032
+ const isParshaString = typeof parsha === 'string';
1033
+
1034
+ if (!isParshaString && (!Array.isArray(parsha) || parsha.length !== 1 && parsha.length !== 2)) {
1035
+ throw new TypeError(`Bad parsha argument: ${parsha}`);
1036
+ }
1037
+
1038
+ const name = isParshaString ? parsha : parshaToString(parsha);
1039
+ const raw = parshiyotObj[name];
1040
+
1041
+ if (typeof raw !== 'object') {
1042
+ throw new TypeError(`Bad parsha argument: ${parsha}`);
1043
+ }
1044
+
1045
+ return raw;
1046
+ }
1113
1047
 
1114
1048
  var Bereshit$1={book:1,years:{"Y.1":{"1":["1:1","1:5"],"2":["1:6","1:8"],"3":["1:9","1:13"],"4":["1:14","1:19"],"5":["1:20","1:23"],"6":["1:24","1:31"],"7":["2:1","2:3"],M:["2:1","2:3"]},"Y.2":{"1":["2:4","2:9"],"2":["2:10","2:19"],"3":["2:20","2:25"],"4":["3:1","3:21"],"5":["3:22","3:24"],"6":["4:1","4:18"],"7":["4:19","4:26"],M:["4:23","4:26"]},"Y.3":{"1":["5:1","5:5"],"2":["5:6","5:8"],"3":["5:9","5:14"],"4":["5:15","5:20"],"5":["5:21","5:24"],"6":["5:25","5:31"],"7":["5:32","6:8"],M:["6:5","6:8"]}}};var Noach$1={book:1,years:{"Y.1":{"1":["6:9","6:16"],"2":["6:17","6:19"],"3":["6:20","6:22"],"4":["7:1","7:9"],"5":["7:10","7:16"],"6":["7:17","7:24"],"7":["8:1","8:14"],M:["8:12","8:14"]},"Y.2":{"1":["8:15","8:22"],"2":["9:1","9:7"],"3":["9:8","9:17"],"4":["9:18","9:29"],"5":["10:1","10:14"],"6":["10:15","10:20"],"7":["10:21","10:32"],M:["10:26","10:32"]},"Y.3":{"1":["11:1","11:4"],"2":["11:5","11:9"],"3":["11:10","11:13"],"4":["11:14","11:17"],"5":["11:18","11:21"],"6":["11:22","11:25"],"7":["11:26","11:32"],M:["11:29","11:32"]}}};var Vayera$1={book:1,years:{"Y.1":{"1":["18:1","18:5"],"2":["18:6","18:8"],"3":["18:9","18:14"],"4":["18:15","18:21"],"5":["18:22","18:26"],"6":["18:27","18:30"],"7":["18:31","18:33"],M:["18:31","18:33"]},"Y.2":{"1":["19:1","19:11"],"2":["19:12","19:20"],"3":["19:21","19:29"],"4":["19:30","19:38"],"5":["20:1","20:8"],"6":["20:9","20:14"],"7":["20:15","20:18"],M:["20:15","20:18"]},"Y.3":{"1":["21:1","21:4"],"2":["21:5","21:13"],"3":["21:14","21:21"],"4":["21:22","21:34"],"5":["22:1","22:8"],"6":["22:9","22:19"],"7":["22:20","22:24"],M:["22:20","22:24"]}}};var Toldot$1={book:1,years:{"Y.1":{"1":["25:19","25:22"],"2":["25:23","25:26"],"3":["25:27","25:34"],"4":["26:1","26:5"],"5":["26:6","26:12"],"6":["26:13","26:16"],"7":["26:17","26:22"],M:["26:19","26:22"]},"Y.2":{"1":["26:23","26:29"],"2":["26:30","26:33"],"3":["26:34","27:4"],"4":["27:5","27:13"],"5":["27:14","27:17"],"6":["27:18","27:23"],"7":["27:24","27:27"],M:["27:24","27:27"]},"Y.3":{"1":["27:28","27:30"],"2":["27:31","27:33"],"3":["27:34","27:37"],"4":["27:38","27:40"],"5":["27:41","27:46"],"6":["28:1","28:4"],"7":["28:5","28:9"],M:["28:7","28:9"]}}};var Vayetzei$1={book:1,years:{"Y.1":{"1":["28:10","28:12"],"2":["28:13","28:17"],"3":["28:18","28:22"],"4":["29:1","29:8"],"5":["29:9","29:17"],"6":["29:18","29:33"],"7":["29:34","30:13"],M:["30:9","30:13"]},"Y.2":{"1":["30:14","30:16"],"2":["30:17","30:21"],"3":["30:22","30:27"],"4":["30:28","30:36"],"5":["30:37","30:43"],"6":["31:1","31:9"],"7":["31:10","31:16"],M:["31:14","31:16"]},"Y.3":{"1":["31:17","31:21"],"2":["31:22","31:24"],"3":["31:25","31:35"],"4":["31:36","31:42"],"5":["31:43","31:45"],"6":["31:46","31:50"],"7":["31:51","32:3"],M:["32:1","32:3"]}}};var Vayishlach$1={book:1,years:{"Y.1":{"1":["32:4","32:6"],"2":["32:7","32:9"],"3":["32:10","32:13"],"4":["32:14","32:22"],"5":["32:23","32:30"],"6":["32:31","33:5"],"7":["33:6","33:20"],M:["33:18","33:20"]},"Y.2":{"1":["34:1","34:4"],"2":["34:5","34:12"],"3":["34:13","34:17"],"4":["34:18","34:23"],"5":["34:24","34:31"],"6":["35:1","35:11"],"7":["35:12","35:15"],M:["35:12","35:15"]},"Y.3":{"1":["35:16","35:26"],"2":["35:27","35:29"],"3":["36:1","36:8"],"4":["36:9","36:19"],"5":["36:20","36:30"],"6":["36:31","36:39"],"7":["36:40","36:43"],M:["36:40","36:43"]}}};var Vayeshev$1={book:1,years:{"Y.1":{"1":["37:1","37:3"],"2":["37:4","37:7"],"3":["37:8","37:11"],"4":["37:12","37:17"],"5":["37:18","37:22"],"6":["37:23","37:28"],"7":["37:29","37:36"],M:["37:34","37:36"]},"Y.2":{"1":["38:1","38:5"],"2":["38:6","38:11"],"3":["38:12","38:14"],"4":["38:15","38:19"],"5":["38:20","38:23"],"6":["38:24","38:26"],"7":["38:27","38:30"],M:["38:27","38:30"]},"Y.3":{"1":["39:1","39:6"],"2":["39:7","39:10"],"3":["39:11","39:18"],"4":["39:19","39:23"],"5":["40:1","40:8"],"6":["40:9","40:15"],"7":["40:16","40:23"],M:["40:20","40:23"]}}};var Miketz$1={book:1,years:{"Y.1":{"1":["41:1","41:4"],"2":["41:5","41:7"],"3":["41:8","41:14"],"4":["41:15","41:24"],"5":["41:25","41:38"],"6":["41:39","41:43"],"7":["41:44","41:52"],M:["41:50","41:52"]},"Y.2":{"1":["41:53","41:57"],"2":["42:1","42:5"],"3":["42:6","42:18"],"4":["42:19","42:28"],"5":["42:29","42:38"],"6":["43:1","43:7"],"7":["43:8","43:15"],M:["43:11","43:15"]},"Y.3":{"1":["43:16","43:18"],"2":["43:19","43:25"],"3":["43:26","43:29"],"4":["43:30","43:34"],"5":["44:1","44:6"],"6":["44:7","44:10"],"7":["44:11","44:17"],M:["44:14","44:17"]}}};var Vayigash$1={book:1,years:{"Y.1":{"1":["44:18","44:20"],"2":["44:21","44:24"],"3":["44:25","44:30"],"4":["44:31","44:34"],"5":["45:1","45:7"],"6":["45:8","45:18"],"7":["45:19","45:27"],M:["45:25","45:27"]},"Y.2":{"1":["45:28","46:4"],"2":["46:5","46:7"],"3":["46:8","46:11"],"4":["46:12","46:15"],"5":["46:16","46:18"],"6":["46:19","46:22"],"7":["46:23","46:27"],M:["46:23","46:27"]},"Y.3":{"1":["46:28","46:30"],"2":["46:31","46:34"],"3":["47:1","47:6"],"4":["47:7","47:10"],"5":["47:11","47:19"],"6":["47:20","47:22"],"7":["47:23","47:27"],M:["47:25","47:27"]}}};var Vayechi$1={book:1,years:{"Y.1":{"1":["47:28","47:31"],"2":["48:1","48:3"],"3":["48:4","48:9"],"4":["48:10","48:13"],"5":["48:14","48:16"],"6":["48:17","48:19"],"7":["48:20","48:22"],M:["48:20","48:22"]},"Y.2":{"1":["49:1","49:4"],"2":["49:5","49:7"],"3":["49:8","49:12"],"4":["49:13","49:15"],"5":["49:16","49:18"],"6":["49:19","49:21"],"7":["49:22","49:26"],M:["49:22","49:26"]},"Y.3":{"1":["49:27","49:30"],"2":["49:31","49:33"],"3":["50:1","50:6"],"4":["50:7","50:9"],"5":["50:10","50:14"],"6":["50:15","50:20"],"7":["50:21","50:26"],M:["50:23","50:26"]}}};var Shemot$1={book:2,years:{"Y.1":{"1":["1:1","1:7"],"2":["1:8","1:12"],"3":["1:13","1:17"],"4":["1:18","1:22"],"5":["2:1","2:10"],"6":["2:11","2:15"],"7":["2:16","2:25"],M:["2:23","2:25"]},"Y.2":{"1":["3:1","3:6"],"2":["3:7","3:10"],"3":["3:11","3:15"],"4":["3:16","3:22"],"5":["4:1","4:5"],"6":["4:6","4:9"],"7":["4:10","4:17"],M:["4:14","4:17"]},"Y.3":{"1":["4:18","4:20"],"2":["4:21","4:26"],"3":["4:27","4:31"],"4":["5:1","5:5"],"5":["5:6","5:9"],"6":["5:10","5:14"],"7":["5:15","6:1"],M:["5:22","6:1"]}}};var Vaera$1={book:2,years:{"Y.1":{"1":["6:2","6:5"],"2":["6:6","6:9"],"3":["6:10","6:13"],"4":["6:14","6:19"],"5":["6:20","6:25"],"6":["6:26","6:28"],"7":["6:29","7:7"],M:["7:5","7:7"]},"Y.2":{"1":["7:8","7:13"],"2":["7:14","7:18"],"3":["7:19","7:25"],"4":["7:26","7:29"],"5":["8:1","8:6"],"6":["8:7","8:11"],"7":["8:12","8:15"],M:["8:12","8:15"]},"Y.3":{"1":["8:16","8:23"],"2":["8:24","8:28"],"3":["9:1","9:7"],"4":["9:8","9:16"],"5":["9:17","9:21"],"6":["9:22","9:26"],"7":["9:27","9:35"],M:["9:33","9:35"]}}};var Bo$1={book:2,years:{"Y.1":{"1":["10:1","10:3"],"2":["10:4","10:6"],"3":["10:7","10:11"],"4":["10:12","10:15"],"5":["10:16","10:23"],"6":["10:24","10:29"],"7":["11:1","11:3"],M:["11:1","11:3"]},"Y.2":{"1":["11:4","11:10"],"2":["12:1","12:10"],"3":["12:11","12:13"],"4":["12:14","12:16"],"5":["12:17","12:20"],"6":["12:21","12:24"],"7":["12:25","12:28"],M:["12:25","12:28"]},"Y.3":{"1":["12:29","12:32"],"2":["12:33","12:36"],"3":["12:37","12:42"],"4":["12:43","12:51"],"5":["13:1","13:4"],"6":["13:5","13:10"],"7":["13:11","13:16"],M:["13:14","13:16"]}}};var Beshalach$1={book:2,years:{"Y.1":{"1":["13:17","13:22"],"2":["14:1","14:4"],"3":["14:5","14:8"],"4":["14:9","14:14"],"5":["14:15","14:20"],"6":["14:21","14:25"],"7":["14:26","15:26"],M:["15:22","15:26"]},"Y.2":{"1":["14:15","14:20"],"2":["14:21","14:25"],"3":["14:26","15:21"],"4":["15:22","15:26"],"5":["15:27","16:3"],"6":["16:4","16:7"],"7":["16:8","16:10"],M:["16:8","16:10"]},"Y.3":{"1":["14:26","15:21"],"2":["15:22","15:26"],"3":["15:27","16:10"],"4":["16:11","16:27"],"5":["16:28","16:36"],"6":["17:1","17:7"],"7":["17:8","17:16"],M:["17:14","17:16"]}}};var Yitro$1={book:2,descr:"full parashah with Ten Commandments every year",variations:{"Y.1":{"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"]},"Y.2":"Y.1","Y.3":"Y.1"},alt:{descr:"triennial divisions with Ten Commandments in years two and three",variations:{"Y.1":{"1":["18:1","18:4"],"2":["18:5","18:8"],"3":["18:9","18:12"],"4":["18:13","18:16"],"5":["18:17","18:19"],"6":["18:20","18:23"],"7":["18:24","18:27"],M:["18:24","18:27"]},"Y.2":{"1":["19:1","19:6"],"2":["19:7","19:9"],"3":["19:10","19:13"],"4":["19:14","19:19"],"5":["19:20","20:14"],"6":["20:15","20:18"],"7":["20:19","20:23"],M:["20:21","20:23"]},"Y.3":"Y.2"}}};var Mishpatim$1={book:2,years:{"Y.1":{"1":["21:1","21:6"],"2":["21:7","21:11"],"3":["21:12","21:19"],"4":["21:20","21:27"],"5":["21:28","21:32"],"6":["21:33","21:36"],"7":["21:37","22:3"],M:["21:37","22:3"]},"Y.2":{"1":["22:4","22:8"],"2":["22:9","22:12"],"3":["22:13","22:18"],"4":["22:19","22:26"],"5":["22:27","23:5"],"6":["23:6","23:13"],"7":["23:14","23:19"],M:["23:14","23:19"]},"Y.3":{"1":["23:20","23:25"],"2":["23:26","23:30"],"3":["23:31","23:33"],"4":["24:1","24:6"],"5":["24:7","24:11"],"6":["24:12","24:14"],"7":["24:15","24:18"],M:["24:15","24:18"]}}};var Terumah$1={book:2,years:{"Y.1":{"1":["25:1","25:5"],"2":["25:6","25:9"],"3":["25:10","25:16"],"4":["25:17","25:22"],"5":["25:23","25:30"],"6":["25:31","25:33"],"7":["25:34","25:40"],M:["25:37","25:40"]},"Y.2":{"1":["26:1","26:3"],"2":["26:4","26:6"],"3":["26:7","26:11"],"4":["26:12","26:14"],"5":["26:15","26:21"],"6":["26:22","26:25"],"7":["26:26","26:30"],M:["26:26","26:30"]},"Y.3":{"1":["26:31","26:33"],"2":["26:34","26:37"],"3":["27:1","27:3"],"4":["27:4","27:8"],"5":["27:9","27:12"],"6":["27:13","27:16"],"7":["27:17","27:19"],M:["27:17","27:19"]}}};var Tetzaveh$1={book:2,years:{"Y.1":{"1":["27:20","28:5"],"2":["28:6","28:9"],"3":["28:10","28:12"],"4":["28:13","28:17"],"5":["28:18","28:21"],"6":["28:22","28:25"],"7":["28:26","28:30"],M:["28:28","28:30"]},"Y.2":{"1":["28:31","28:35"],"2":["28:36","28:38"],"3":["28:39","28:43"],"4":["29:1","29:4"],"5":["29:5","29:9"],"6":["29:10","29:14"],"7":["29:15","29:18"],M:["29:15","29:18"]},"Y.3":{"1":["29:19","29:21"],"2":["29:22","29:25"],"3":["29:26","29:30"],"4":["29:31","29:34"],"5":["29:35","29:37"],"6":["29:38","29:46"],"7":["30:1","30:10"],M:["30:8","30:10"]}}};var Vayakhel$1={book:2,variations:{"C.2":{"1":["35:1","35:3"],"2":["35:4","35:10"],"3":["35:11","35:20"],"4":["35:21","35:29"],"5":["35:30","35:35"],"6":["36:1","36:7"],"7":["36:8","36:19"],M:["36:17","36:19"]},"B.2":{"1":["37:17","37:19"],"2":["37:20","37:24"],"3":["37:25","37:29"],"4":["38:1","38:3"],"5":["38:4","38:8"],"6":["38:9","38:15"],"7":["38:16","38:20"],M:["38:18","38:20"]},"C.3":{"1":["36:20","36:30"],"2":["36:31","36:38"],"3":["37:1","37:16"],"4":["37:17","37:24"],"5":["37:25","37:29"],"6":["38:1","38:8"],"7":["38:9","38:20"],M:["38:18","38:20"]},"A.3":"C.3","D.1":"C.2","D.2":"C.3","E.1":"C.2","E.3":"C.3","F.1":{"1":["35:1","35:10"],"2":["35:11","35:20"],"3":["35:21","35:29"],"4":["35:30","36:7"],"5":["36:8","36:19"],"6":["36:20","36:38"],"7":["37:1","37:16"],M:["37:10","37:16"]},"G.1":{"1":["35:1","35:3"],"2":["35:4","35:10"],"3":["35:11","35:20"],"4":["35:21","35:23"],"5":["35:24","35:26"],"6":["35:27","35:29"],"7":["35:30","35:35"],M:["35:30","35:35"]},"G.2":{"1":["36:1","36:7"],"2":["36:8","36:13"],"3":["36:14","36:19"],"4":["36:20","36:30"],"5":["36:31","36:38"],"6":["37:1","37:9"],"7":["37:10","37:16"],M:["37:13","37:16"]},"G.3":{"1":["37:17","37:19"],"2":["37:20","37:24"],"3":["37:25","37:29"],"4":["38:1","38:3"],"5":["38:4","38:8"],"6":["38:9","38:15"],"7":["38:16","38:20"],M:["38:18","38:20"]}}};var Pekudei$1={book:2,variations:{"A.3":{"1":["39:22","39:26"],"2":["39:27","39:32"],"3":["39:33","39:43"],"4":["40:1","40:8"],"5":["40:9","40:16"],"6":["40:17","40:27"],"7":["40:28","40:38"],M:["40:34","40:38"]},"B.2":{"1":["38:21","38:23"],"2":["38:24","38:27"],"3":["38:28","39:1"],"4":["39:2","39:7"],"5":["39:8","39:14"],"6":["39:15","39:18"],"7":["39:19","39:21"],M:["39:19","39:21"]},"C.2":"B.2","C.3":"A.3","D.1":"B.2","D.2":"A.3","E.1":"B.2","E.3":"A.3","F.1":"B.2","G.1":{"1":["38:21","38:23"],"2":["38:24","38:27"],"3":["38:28","39:1"],"4":["39:2","39:7"],"5":["39:8","39:14"],"6":["39:15","39:18"],"7":["39:19","39:21"],M:["39:19","39:21"]},"G.2":{"1":["39:22","39:26"],"2":["39:27","39:29"],"3":["39:30","39:32"],"4":["39:33","39:43"],"5":["40:1","40:3"],"6":["40:4","40:6"],"7":["40:7","40:9"],M:["40:7","40:9"]},"G.3":{"1":["40:10","40:12"],"2":["40:13","40:16"],"3":["40:17","40:19"],"4":["40:20","40:25"],"5":["40:26","40:29"],"6":["40:30","40:33"],"7":["40:34","40:38"],M:["40:36","40:38"]}}};var Vayikra$1={book:3,years:{"Y.1":{"1":["1:1","1:4"],"2":["1:5","1:9"],"3":["1:10","1:13"],"4":["1:14","1:17"],"5":["2:1","2:6"],"6":["2:7","2:13"],"7":["2:14","2:16"],M:["2:14","2:16"]},"Y.2":{"1":["3:1","3:5"],"2":["3:6","3:11"],"3":["3:12","3:17"],"4":["4:1","4:7"],"5":["4:8","4:12"],"6":["4:13","4:21"],"7":["4:22","4:26"],M:["4:24","4:26"]},"Y.3":{"1":["4:27","4:31"],"2":["4:32","4:35"],"3":["5:1","5:10"],"4":["5:11","5:13"],"5":["5:14","5:16"],"6":["5:17","5:19"],"7":["5:20","5:26"],M:["5:24","5:26"]}}};var Tzav$1={book:3,years:{"Y.1":{"1":["6:1","6:3"],"2":["6:4","6:6"],"3":["6:7","6:11"],"4":["6:12","6:16"],"5":["6:17","6:23"],"6":["7:1","7:6"],"7":["7:7","7:10"],M:["7:7","7:10"]},"Y.2":{"1":["7:11","7:15"],"2":["7:16","7:18"],"3":["7:19","7:21"],"4":["7:22","7:27"],"5":["7:28","7:31"],"6":["7:32","7:34"],"7":["7:35","7:38"],M:["7:35","7:38"]},"Y.3":{"1":["8:1","8:5"],"2":["8:6","8:9"],"3":["8:10","8:13"],"4":["8:14","8:17"],"5":["8:18","8:21"],"6":["8:22","8:29"],"7":["8:30","8:36"],M:["8:33","8:36"]}}};var Shmini$1={book:3,years:{"Y.1":{"1":["9:1","9:6"],"2":["9:7","9:10"],"3":["9:11","9:16"],"4":["9:17","9:23"],"5":["9:24","10:3"],"6":["10:4","10:7"],"7":["10:8","10:11"],M:["10:8","10:11"]},"Y.2":{"1":["10:12","10:15"],"2":["10:16","10:20"],"3":["11:1","11:8"],"4":["11:9","11:12"],"5":["11:13","11:19"],"6":["11:20","11:28"],"7":["11:29","11:32"],M:["11:29","11:32"]},"Y.3":{"1":["11:1","11:8"],"2":["11:9","11:12"],"3":["11:13","11:19"],"4":["11:20","11:28"],"5":["11:29","11:32"],"6":["11:33","11:38"],"7":["11:39","11:47"],M:["11:45","11:47"]}}};var Tazria$1={book:3,variations:{"D.1":{"1":["12:1","12:4"],"2":["12:5","12:8"],"3":["13:1","13:5"],"4":["13:6","13:8"],"5":["13:9","13:17"],"6":["13:18","13:23"],"7":["13:24","13:28"],M:["13:26","13:28"]},"B.2":{"1":["13:29","13:34"],"2":["13:35","13:39"],"3":["13:40","13:42"],"4":["13:43","13:46"],"5":["13:47","13:50"],"6":["13:51","13:54"],"7":["13:55","13:59"],M:["13:57","13:59"]},"A.3":"B.2","C.1":{"1":["12:1","12:4"],"2":["12:5","12:8"],"3":["13:1","13:5"],"4":["13:6","13:17"],"5":["13:18","13:23"],"6":["13:24","13:28"],"7":["13:29","13:39"],M:["13:37","13:39"]},"D.3":"B.2"}};var Metzora$1={book:3,variations:{"A.3":{"1":["14:33","14:38"],"2":["14:39","14:47"],"3":["14:48","14:53"],"4":["14:54","15:7"],"5":["15:8","15:15"],"6":["15:16","15:28"],"7":["15:29","15:33"],M:["15:31","15:33"]},"B.2":{"1":["14:1","14:5"],"2":["14:6","14:9"],"3":["14:10","14:12"],"4":["14:13","14:15"],"5":["14:16","14:20"],"6":["14:21","14:25"],"7":["14:26","14:32"],M:["14:30","14:32"]},"C.1":"B.2","D.1":"B.2","D.3":"A.3"}};var Kedoshim$1={book:3,variations:{"A.3":{"1":["19:15","19:18"],"2":["19:19","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"]},"B.2":{"1":["19:1","19:4"],"2":["19:5","19:10"],"3":["19:11","19:14"],"4":["19:15","19:18"],"5":["19:19","19:22"],"6":["19:23","19:32"],"7":["19:33","19:37"],M:["19:35","19:37"]},"C.1":"B.2","D.1":"B.2","D.3":{"1":["19:23","19:25"],"2":["19:26","19:28"],"3":["19:29","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"]}}};var Emor$1={book:3,years:{"Y.1":{"1":["21:1","21:6"],"2":["21:7","21:12"],"3":["21:13","21:15"],"4":["21:16","21:24"],"5":["22:1","22:9"],"6":["22:10","22:12"],"7":["22:13","22:16"],M:["22:13","22:16"]},"Y.2":{"1":["22:17","22:20"],"2":["22:21","22:25"],"3":["22:26","22:33"],"4":["23:1","23:3"],"5":["23:4","23:8"],"6":["23:9","23:14"],"7":["23:15","23:22"],M:["23:19","23:22"]},"Y.3":{"1":["23:23","23:25"],"2":["23:26","23:32"],"3":["23:33","23:44"],"4":["24:1","24:4"],"5":["24:5","24:9"],"6":["24:10","24:12"],"7":["24:13","24:23"],M:["24:21","24:23"]}}};var Behar$1={book:3,variations:{"D.1":{"1":["25:1","25:3"],"2":["25:4","25:7"],"3":["25:8","25:10"],"4":["25:11","25:13"],"5":["25:14","25:18"],"6":["25:19","25:24"],"7":["25:25","25:28"],M:["25:25","25:28"]},"B.2":{"1":["25:29","25:34"],"2":["25:35","25:38"],"3":["25:39","25:43"],"4":["25:44","25:46"],"5":["25:47","25:50"],"6":["25:51","25:54"],"7":["25:55","26:2"],M:["25:55","26:2"]},"A.3":"B.2","C.1":{"1":["25:1","25:3"],"2":["25:4","25:7"],"3":["25:8","25:13"],"4":["25:14","25:18"],"5":["25:19","25:24"],"6":["25:25","25:28"],"7":["25:29","25:38"],M:["25:35","25:38"]},"D.3":"B.2"}};var Bechukotai$1={book:3,variations:{"A.3":{"1":["27:1","27:4"],"2":["27:5","27:8"],"3":["27:9","27:15"],"4":["27:16","27:21"],"5":["27:22","27:25"],"6":["27:26","27:28"],"7":["27:29","27:34"],M:["27:32","27:34"]},"B.2":{"1":["26:3","26:5"],"2":["26:6","26:9"],"3":["26:10","26:46"],"4":["27:1","27:4"],"5":["27:5","27:8"],"6":["27:9","27:11"],"7":["27:12","27:15"],M:["27:12","27:15"]},"C.1":"B.2","D.1":"B.2","D.3":"A.3"}};var Bamidbar$1={book:4,years:{"Y.1":{"1":["1:1","1:4"],"2":["1:5","1:16"],"3":["1:17","1:19"],"4":["1:20","1:27"],"5":["1:28","1:35"],"6":["1:36","1:43"],"7":["1:44","1:54"],M:["1:52","1:54"]},"Y.2":{"1":["2:1","2:9"],"2":["2:10","2:16"],"3":["2:17","2:24"],"4":["2:25","2:31"],"5":["2:32","2:34"],"6":["3:1","3:4"],"7":["3:5","3:13"],M:["3:11","3:13"]},"Y.3":{"1":["3:14","3:20"],"2":["3:21","3:26"],"3":["3:27","3:39"],"4":["3:40","3:43"],"5":["3:44","3:51"],"6":["4:1","4:10"],"7":["4:11","4:20"],M:["4:17","4:20"]}}};var Nasso$1={book:4,years:{"Y.1":{"1":["4:21","4:24"],"2":["4:25","4:28"],"3":["4:29","4:33"],"4":["4:34","4:37"],"5":["4:38","4:49"],"6":["5:1","5:4"],"7":["5:5","5:10"],M:["5:8","5:10"]},"Y.2":{"1":["5:11","5:15"],"2":["5:16","5:26"],"3":["5:27","6:4"],"4":["6:5","6:8"],"5":["6:9","6:15"],"6":["6:16","6:21"],"7":["6:22","6:27"],M:["6:22","6:27"]},"Y.3":{"1":["7:1","7:11"],"2":["7:12","7:23"],"3":["7:24","7:35"],"4":["7:36","7:47"],"5":["7:48","7:59"],"6":["7:60","7:71"],"7":["7:72","7:89"],M:["7:87","7:89"]}}};var Korach$1={book:4,years:{"Y.1":{"1":["16:1","16:3"],"2":["16:4","16:7"],"3":["16:8","16:13"],"4":["16:14","16:19"],"5":["16:20","16:35"],"6":["17:1","17:8"],"7":["17:9","17:15"],M:["17:9","17:15"]},"Y.2":{"1":["16:20","16:27"],"2":["16:28","16:35"],"3":["17:1","17:5"],"4":["17:6","17:8"],"5":["17:9","17:15"],"6":["17:16","17:20"],"7":["17:21","17:24"],M:["17:21","17:24"]},"Y.3":{"1":["17:25","18:7"],"2":["18:8","18:10"],"3":["18:11","18:13"],"4":["18:14","18:20"],"5":["18:21","18:24"],"6":["18:25","18:29"],"7":["18:30","18:32"],M:["18:30","18:32"]}}};var Chukat$1={book:4,variations:{"C.2":{"1":["19:1","19:6"],"2":["19:7","19:9"],"3":["19:10","19:17"],"4":["19:18","19:22"],"5":["20:1","20:6"],"6":["20:7","20:13"],"7":["20:14","20:21"],M:["20:18","20:21"]},"B.2":{"1":["21:11","21:13"],"2":["21:14","21:16"],"3":["21:17","21:20"],"4":["21:21","21:25"],"5":["21:26","21:28"],"6":["21:29","21:33"],"7":["21:34","22:1"],M:["21:34","22:1"]},"C.3":{"1":["20:22","21:3"],"2":["21:4","21:10"],"3":["21:11","21:16"],"4":["21:17","21:20"],"5":["21:21","21:25"],"6":["21:26","21:33"],"7":["21:34","22:1"],M:["21:34","22:1"]},"A.3":"C.3","D.1":"C.2","D.2":"C.3","E.1":"C.2","E.3":"C.3","F.1":{"1":["19:1","19:9"],"2":["19:10","19:17"],"3":["19:18","20:6"],"4":["20:7","20:13"],"5":["20:14","20:21"],"6":["20:22","21:9"],"7":["21:10","21:20"],M:["21:16","21:20"]},"G.1":{"1":["19:1","19:6"],"2":["19:7","19:9"],"3":["19:10","19:13"],"4":["19:14","19:17"],"5":["19:18","19:22"],"6":["20:1","20:6"],"7":["20:7","20:13"],M:["20:7","20:13"]},"G.2":{"1":["20:1","20:6"],"2":["20:7","20:13"],"3":["20:14","20:17"],"4":["20:18","20:21"],"5":["20:22","21:3"],"6":["21:4","21:7"],"7":["21:8","21:10"],M:["21:8","21:10"]},"G.3":"B.2"}};var Balak$1={book:4,variations:{"A.3":{"1":["22:39","23:5"],"2":["23:6","23:12"],"3":["23:13","23:26"],"4":["23:27","23:30"],"5":["24:1","24:13"],"6":["24:14","24:25"],"7":["25:1","25:9"],M:["25:7","25:9"]},"B.2":{"1":["22:2","22:4"],"2":["22:5","22:7"],"3":["22:8","22:12"],"4":["22:13","22:20"],"5":["22:21","22:27"],"6":["22:28","22:30"],"7":["22:31","22:38"],M:["22:36","22:38"]},"C.2":"B.2","C.3":"A.3","D.1":"B.2","D.2":"A.3","E.1":"B.2","E.3":"A.3","F.1":"B.2","G.1":"B.2","G.2":{"1":["22:39","22:41"],"2":["23:1","23:3"],"3":["23:4","23:6"],"4":["23:7","23:12"],"5":["23:13","23:15"],"6":["23:16","23:18"],"7":["23:19","23:26"],M:["23:19","23:26"]},"G.3":{"1":["23:27","23:30"],"2":["24:1","24:9"],"3":["24:10","24:13"],"4":["24:14","24:19"],"5":["24:20","24:25"],"6":["25:1","25:6"],"7":["25:7","25:9"],M:["25:7","25:9"]}}};var Pinchas$1={book:4,years:{"Y.1":{"1":["25:10","25:12"],"2":["25:13","25:15"],"3":["25:16","26:4"],"4":["26:5","26:11"],"5":["26:12","26:22"],"6":["26:23","26:34"],"7":["26:35","26:51"],M:["26:48","26:51"]},"Y.2":{"1":["26:52","26:56"],"2":["26:57","26:62"],"3":["26:63","27:5"],"4":["27:6","27:14"],"5":["27:15","27:23"],"6":["28:1","28:10"],"7":["28:11","28:15"],M:["28:11","28:15"]},"Y.3":{"1":["28:16","28:25"],"2":["28:26","28:31"],"3":["29:1","29:6"],"4":["29:7","29:11"],"5":["29:12","29:16"],"6":["29:17","29:28"],"7":["29:29","30:1"],M:["29:35","30:1"]}}};var Matot$1={book:4,variations:{"B.2":{"1":["31:1","32:4"],"2":["32:5","32:19"],"3":["32:20","32:24"],"4":["32:25","32:27"],"5":["32:28","32:30"],"6":["32:31","32:38"],"7":["32:39","32:42"],M:["32:39","32:42"]},"A.3":"B.2","C.1":{"1":["30:2","30:9"],"2":["30:10","30:13"],"3":["30:14","30:17"],"4":["31:1","31:12"],"5":["31:13","31:24"],"6":["31:25","31:41"],"7":["31:42","31:54"],M:["31:51","31:54"]}}};var Masei$1={book:4,variations:{"A.3":{"1":["33:50","34:15"],"2":["34:16","34:29"],"3":["35:1","35:8"],"4":["35:9","35:15"],"5":["35:16","35:29"],"6":["35:30","35:34"],"7":["36:1","36:13"],M:["36:10","36:13"]},"B.2":{"1":["33:1","33:3"],"2":["33:4","33:6"],"3":["33:7","33:10"],"4":["33:11","33:23"],"5":["33:24","33:36"],"6":["33:37","33:43"],"7":["33:44","33:49"],M:["33:47","33:49"]},"C.1":"B.2"}};var Devarim={book:5,years:{"Y.1":{"1":["1:1","1:3"],"2":["1:4","1:7"],"3":["1:8","1:10"],"4":["1:11","1:21"],"5":["1:22","1:28"],"6":["1:29","1:38"],"7":["1:39","2:1"],M:["1:39","2:1"]},"Y.2":{"1":["2:2","2:5"],"2":["2:6","2:12"],"3":["2:13","2:16"],"4":["2:17","2:19"],"5":["2:20","2:22"],"6":["2:23","2:25"],"7":["2:26","2:30"],M:["2:28","2:30"]},"Y.3":{"1":["2:31","2:34"],"2":["2:35","2:37"],"3":["3:1","3:3"],"4":["3:4","3:7"],"5":["3:8","3:11"],"6":["3:12","3:14"],"7":["3:15","3:22"],M:["3:20","3:22"]}}};var Vaetchanan={book:5,descr:"with the Ten Commandments every year and the Sh'ma in years two and three",years:{"Y.1":{"1":["3:23","3:25"],"2":["3:26","4:4"],"3":["4:5","4:14"],"4":["4:15","4:20"],"5":["4:21","4:40"],"6":["4:41","4:49"],"7":["5:1","5:18"],M:["5:16","5:18"]},"Y.2":{"1":["5:1","5:18"],"2":["5:19","5:24"],"3":["5:25","5:30"],"4":["6:1","6:3"],"5":["6:4","6:9"],"6":["6:10","6:19"],"7":["6:20","6:25"],M:["6:23","6:25"]},"Y.3":{"1":["5:1","5:18"],"2":["5:19","5:24"],"3":["5:25","6:3"],"4":["6:4","6:9"],"5":["6:10","6:19"],"6":["6:20","6:25"],"7":["7:1","7:11"],M:["7:9","7:11"]},alt:{descr:"with the Ten Commandments in year two and the Sh'ma in year three",years:{"Y.1":{"1":["3:23","3:25"],"2":["3:26","3:29"],"3":["4:1","4:4"],"4":["4:5","4:14"],"5":["4:15","4:20"],"6":["4:21","4:29"],"7":["4:30","4:40"],M:["4:36","4:40"]},"Y.2":{"1":["4:41","4:43"],"2":["4:44","4:49"],"3":["5:1","5:18"],"4":["5:19","5:21"],"5":["5:22","5:24"],"6":["5:25","5:30"],"7":["6:1","6:3"],M:["6:1","6:3"]},"Y.3":{"1":["6:4","6:9"],"2":["6:10","6:19"],"3":["6:20","6:22"],"4":["6:23","6:25"],"5":["7:1","7:5"],"6":["7:6","7:8"],"7":["7:9","7:11"],M:["7:9","7:11"]}}}}};var Eikev$1={book:5,years:{"Y.1":{"1":["7:12","7:16"],"2":["7:17","7:21"],"3":["7:22","7:26"],"4":["8:1","8:3"],"5":["8:4","8:10"],"6":["8:11","8:18"],"7":["8:19","9:3"],M:["9:1","9:3"]},"Y.2":{"1":["9:4","9:10"],"2":["9:11","9:14"],"3":["9:15","9:21"],"4":["9:22","9:29"],"5":["10:1","10:5"],"6":["10:6","10:8"],"7":["10:9","10:11"],M:["10:9","10:11"]},"Y.3":{"1":["10:12","10:15"],"2":["10:16","10:22"],"3":["11:1","11:9"],"4":["11:10","11:12"],"5":["11:13","11:15"],"6":["11:16","11:21"],"7":["11:22","11:25"],M:["11:22","11:25"]}}};var Shoftim$1={book:5,years:{"Y.1":{"1":["16:18","16:20"],"2":["16:21","17:7"],"3":["17:8","17:10"],"4":["17:11","17:13"],"5":["17:14","17:17"],"6":["17:18","17:20"],"7":["18:1","18:5"],M:["18:3","18:5"]},"Y.2":{"1":["18:6","18:8"],"2":["18:9","18:13"],"3":["18:14","18:17"],"4":["18:18","18:22"],"5":["19:1","19:7"],"6":["19:8","19:10"],"7":["19:11","19:13"],M:["19:11","19:13"]},"Y.3":{"1":["19:14","19:21"],"2":["20:1","20:4"],"3":["20:5","20:9"],"4":["20:10","20:14"],"5":["20:15","20:20"],"6":["21:1","21:6"],"7":["21:7","21:9"],M:["21:7","21:9"]}}};var Nitzavim$1={book:5,descr:"When these Sidrot are not combined, they should each be read in their entirety.",variations:{"Y.1":{"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"]},"Y.2":"Y.1","Y.3":"Y.1"}};var Vayeilech$1={book:5,descr:"When these Sidrot are not combined, they should each be read in their entirety.",variations:{"Y.1":{"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"]},"Y.2":"Y.1","Y.3":"Y.1"}};var triennialConfig = {Bereshit:Bereshit$1,Noach:Noach$1,"Lech-Lecha":{book:1,years:{"Y.1":{"1":["12:1","12:3"],"2":["12:4","12:9"],"3":["12:10","12:13"],"4":["12:14","12:20"],"5":["13:1","13:4"],"6":["13:5","13:11"],"7":["13:12","13:18"],M:["13:16","13:18"]},"Y.2":{"1":["14:1","14:9"],"2":["14:10","14:16"],"3":["14:17","14:20"],"4":["14:21","14:24"],"5":["15:1","15:6"],"6":["15:7","15:16"],"7":["15:17","15:21"],M:["15:17","15:21"]},"Y.3":{"1":["16:1","16:6"],"2":["16:7","16:9"],"3":["16:10","16:16"],"4":["17:1","17:6"],"5":["17:7","17:17"],"6":["17:18","17:23"],"7":["17:24","17:27"],M:["17:24","17:27"]}}},Vayera:Vayera$1,"Chayei Sara":{book:1,years:{"Y.1":{"1":["23:1","23:4"],"2":["23:5","23:7"],"3":["23:8","23:12"],"4":["23:13","23:16"],"5":["23:17","23:20"],"6":["24:1","24:4"],"7":["24:5","24:9"],M:["24:5","24:9"]},"Y.2":{"1":["24:10","24:14"],"2":["24:15","24:20"],"3":["24:21","24:26"],"4":["24:27","24:33"],"5":["24:34","24:41"],"6":["24:42","24:49"],"7":["24:50","24:52"],M:["24:50","24:52"]},"Y.3":{"1":["24:53","24:58"],"2":["24:59","24:61"],"3":["24:62","24:67"],"4":["25:1","25:6"],"5":["25:7","25:11"],"6":["25:12","25:15"],"7":["25:16","25:18"],M:["25:16","25:18"]}}},Toldot:Toldot$1,Vayetzei:Vayetzei$1,Vayishlach:Vayishlach$1,Vayeshev:Vayeshev$1,Miketz:Miketz$1,Vayigash:Vayigash$1,Vayechi:Vayechi$1,Shemot:Shemot$1,Vaera:Vaera$1,Bo:Bo$1,Beshalach:Beshalach$1,Yitro:Yitro$1,Mishpatim:Mishpatim$1,Terumah:Terumah$1,Tetzaveh:Tetzaveh$1,"Ki Tisa":{book:2,years:{"Y.1":{"1":["30:11","30:13"],"2":["30:14","30:16"],"3":["30:17","30:21"],"4":["30:22","30:33"],"5":["30:34","30:38"],"6":["31:1","31:11"],"7":["31:12","31:17"],M:["31:15","31:17"]},"Y.2":{"1":["31:18","32:6"],"2":["32:7","32:11"],"3":["32:12","32:14"],"4":["32:15","32:24"],"5":["32:25","32:29"],"6":["32:30","33:6"],"7":["33:7","33:11"],M:["33:9","33:11"]},"Y.3":{"1":["33:12","33:16"],"2":["33:17","33:23"],"3":["34:1","34:9"],"4":["34:10","34:17"],"5":["34:18","34:21"],"6":["34:22","34:26"],"7":["34:27","34:35"],M:["34:33","34:35"]}}},Vayakhel:Vayakhel$1,Pekudei:Pekudei$1,Vayikra:Vayikra$1,Tzav:Tzav$1,Shmini:Shmini$1,Tazria:Tazria$1,Metzora:Metzora$1,"Achrei Mot":{book:3,variations:{"D.1":{"1":["16:1","16:3"],"2":["16:4","16:6"],"3":["16:7","16:11"],"4":["16:12","16:17"],"5":["16:18","16:24"],"6":["16:25","16:30"],"7":["16:31","16:34"],M:["16:31","16:34"]},"B.2":{"1":["17:1","17:7"],"2":["17:8","17:12"],"3":["17:13","17:16"],"4":["18:1","18:5"],"5":["18:6","18:21"],"6":["18:22","18:25"],"7":["18:26","18:30"],M:["18:26","18:30"]},"A.3":"B.2","C.1":{"1":["16:1","16:6"],"2":["16:7","16:11"],"3":["16:12","16:17"],"4":["16:18","16:24"],"5":["16:25","16:30"],"6":["16:31","16:34"],"7":["17:1","17:7"],M:["17:5","17:7"]},"D.3":"B.2"}},Kedoshim:Kedoshim$1,Emor:Emor$1,Behar:Behar$1,Bechukotai:Bechukotai$1,Bamidbar:Bamidbar$1,Nasso:Nasso$1,"Beha'alotcha":{book:4,years:{"Y.1":{"1":["8:1","8:4"],"2":["8:5","8:9"],"3":["8:10","8:14"],"4":["8:15","8:22"],"5":["8:23","8:26"],"6":["9:1","9:8"],"7":["9:9","9:14"],M:["9:12","9:14"]},"Y.2":{"1":["9:15","9:18"],"2":["9:19","9:23"],"3":["10:1","10:7"],"4":["10:8","10:10"],"5":["10:11","10:20"],"6":["10:21","10:28"],"7":["10:29","10:34"],M:["10:32","10:34"]},"Y.3":{"1":["10:35","11:9"],"2":["11:10","11:18"],"3":["11:19","11:22"],"4":["11:23","11:29"],"5":["11:30","11:35"],"6":["12:1","12:13"],"7":["12:14","12:16"],M:["12:14","12:16"]}}},"Sh'lach":{book:4,years:{"Y.1":{"1":["13:1","13:3"],"2":["13:4","13:16"],"3":["13:17","13:20"],"4":["13:21","13:24"],"5":["13:25","13:30"],"6":["13:31","13:33"],"7":["14:1","14:7"],M:["14:5","14:7"]},"Y.2":{"1":["14:8","14:10"],"2":["14:11","14:20"],"3":["14:21","14:25"],"4":["14:26","14:38"],"5":["14:39","14:42"],"6":["14:43","15:3"],"7":["15:4","15:7"],M:["15:4","15:7"]},"Y.3":{"1":["15:8","15:10"],"2":["15:11","15:16"],"3":["15:17","15:21"],"4":["15:22","15:26"],"5":["15:27","15:31"],"6":["15:32","15:36"],"7":["15:37","15:41"],M:["15:37","15:41"]}}},Korach:Korach$1,Chukat:Chukat$1,Balak:Balak$1,Pinchas:Pinchas$1,Matot:Matot$1,Masei:Masei$1,Devarim:Devarim,Vaetchanan:Vaetchanan,Eikev:Eikev$1,"Re'eh":{book:5,years:{"Y.1":{"1":["11:26","11:31"],"2":["11:32","12:5"],"3":["12:6","12:10"],"4":["12:11","12:16"],"5":["12:17","12:19"],"6":["12:20","12:25"],"7":["12:26","12:28"],M:["12:26","12:28"]},"Y.2":{"1":["12:29","13:1"],"2":["13:2","13:6"],"3":["13:7","13:12"],"4":["13:13","13:19"],"5":["14:1","14:8"],"6":["14:9","14:21"],"7":["14:22","14:29"],M:["14:22","14:29"]},"Y.3":{"1":["15:1","15:6"],"2":["15:7","15:11"],"3":["15:12","15:18"],"4":["15:19","15:23"],"5":["16:1","16:8"],"6":["16:9","16:12"],"7":["16:13","16:17"],M:["16:13","16:17"]}}},Shoftim:Shoftim$1,"Ki Teitzei":{book:5,years:{"Y.1":{"1":["21:10","21:14"],"2":["21:15","21:17"],"3":["21:18","21:21"],"4":["21:22","22:7"],"5":["22:8","22:12"],"6":["22:13","22:29"],"7":["23:1","23:7"],M:["23:4","23:7"]},"Y.2":{"1":["23:8","23:12"],"2":["23:13","23:15"],"3":["23:16","23:19"],"4":["23:20","23:24"],"5":["23:25","24:4"],"6":["24:5","24:9"],"7":["24:10","24:13"],M:["24:10","24:13"]},"Y.3":{"1":["24:14","24:16"],"2":["24:17","24:19"],"3":["24:20","24:22"],"4":["25:1","25:4"],"5":["25:5","25:10"],"6":["25:11","25:16"],"7":["25:17","25:19"],M:["25:17","25:19"]}}},"Ki Tavo":{book:5,years:{"Y.1":{"1":["26:1","26:3"],"2":["26:4","26:8"],"3":["26:9","26:11"],"4":["26:12","26:15"],"5":["26:16","26:19"],"6":["27:1","27:4"],"7":["27:5","27:10"],M:["27:7","27:10"]},"Y.2":{"1":["26:12","26:15"],"2":["26:16","26:19"],"3":["27:1","27:3"],"4":["27:4","27:8"],"5":["27:6","27:10"],"6":["27:11","28:3"],"7":["28:4","28:6"],M:["28:4","28:6"]},"Y.3":{"1":["27:11","28:3"],"2":["28:4","28:6"],"3":["28:7","28:11"],"4":["28:12","28:14"],"5":["28:15","28:69"],"6":["29:1","29:5"],"7":["29:6","29:8"],M:["29:6","29:8"]}}},Nitzavim:Nitzavim$1,Vayeilech:Vayeilech$1,"Ha'Azinu":{book:5,descr:"every year",variations:{"Y.1":{"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"]},"Y.2":"Y.1","Y.3":"Y.1"}},"Vezot Haberakhah":{book:5,descr:"האזינו-וזאת הברכה should both be read in their entirety due to their brief length",variations:{"Y.1":{"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"]},"Y.2":"Y.1","Y.3":"Y.1"}},"Vayakhel-Pekudei":{book:2,descr:"Aliyot Divisions for Combined Sidrot",years:{"Y.1":{"1":["35:1","35:10"],"2":["35:11","35:20"],"3":["35:21","35:29"],"4":["35:30","36:7"],"5":["36:8","36:19"],"6":["36:20","36:38"],"7":["37:1","37:16"],M:["37:10","37:16"]},"Y.2":{"1":["37:17","37:24"],"2":["37:25","37:29"],"3":["38:1","38:8"],"4":["38:9","38:20"],"5":["38:21","39:1"],"6":["39:2","39:7"],"7":["39:8","39:21"],M:["39:19","39:21"]},"Y.3":{"1":["39:22","39:26"],"2":["39:27","39:32"],"3":["39:33","39:43"],"4":["40:1","40:8"],"5":["40:9","40:16"],"6":["40:17","40:27"],"7":["40:28","40:38"],M:["40:34","40:38"]}},patterns:{TTS:"A",TST:"B",TSS:"C",SST:"D",STS:"E",STT:"F",SSS:"G"}},"Tazria-Metzora":{book:3,descr:"Aliyot Divisions for Combined Sidrot",years:{"Y.1":{"1":["12:1","12:4"],"2":["12:5","12:8"],"3":["13:1","13:5"],"4":["13:6","13:17"],"5":["13:18","13:23"],"6":["13:24","13:28"],"7":["13:29","13:39"],M:["13:37","13:39"]},"Y.2":{"1":["13:40","13:46"],"2":["13:47","13:54"],"3":["13:55","13:59"],"4":["14:1","14:5"],"5":["14:6","14:12"],"6":["14:13","14:20"],"7":["14:21","14:32"],M:["14:30","14:32"]},"Y.3":{"1":["14:33","14:38"],"2":["14:39","14:47"],"3":["14:48","14:53"],"4":["14:54","15:7"],"5":["15:8","15:15"],"6":["15:16","15:28"],"7":["15:29","15:33"],M:["15:31","15:33"]}},patterns:{TTS:"A",TST:"B",STT:"C",STS:"D"}},"Achrei Mot-Kedoshim":{book:3,descr:"Aliyot Divisions for Combined Sidrot",years:{"Y.1":{"1":["16:1","16:6"],"2":["16:7","16:11"],"3":["16:12","16:17"],"4":["16:18","16:24"],"5":["16:25","16:30"],"6":["16:31","16:34"],"7":["17:1","17:7"],M:["17:5","17:7"]},"Y.2":{"1":["17:8","17:12"],"2":["17:13","17:16"],"3":["18:1","18:5"],"4":["18:6","18:21"],"5":["18:22","18:30"],"6":["19:1","19:4"],"7":["19:5","19:14"],M:["19:11","19:14"]},"Y.3":{"1":["19:15","19:18"],"2":["19:19","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"]}},patterns:{TTS:"A",TST:"B",STT:"C",STS:"D"}},"Behar-Bechukotai":{book:3,descr:"Aliyot Divisions for Combined Sidrot",years:{"Y.1":{"1":["25:1","25:3"],"2":["25:4","25:7"],"3":["25:8","25:13"],"4":["25:14","25:18"],"5":["25:19","25:24"],"6":["25:25","25:28"],"7":["25:29","25:38"],M:["25:35","25:38"]},"Y.2":{"1":["25:39","25:43"],"2":["25:44","25:46"],"3":["25:47","25:54"],"4":["25:55","26:2"],"5":["26:3","26:5"],"6":["26:6","26:9"],"7":["26:10","26:46"],M:["26:44","26:46"]},"Y.3":{"1":["27:1","27:4"],"2":["27:5","27:8"],"3":["27:9","27:15"],"4":["27:16","27:21"],"5":["27:22","27:25"],"6":["27:26","27:28"],"7":["27:29","27:34"],M:["27:32","27:34"]}},patterns:{TTS:"A",TST:"B",STT:"C",STS:"D"}},"Chukat-Balak":{book:4,descr:"Aliyot Divisions for Combined Sidrot",years:{"Y.1":{"1":["19:1","19:9"],"2":["19:10","19:17"],"3":["19:18","20:6"],"4":["20:7","20:13"],"5":["20:14","20:21"],"6":["20:22","21:9"],"7":["21:10","21:20"],M:["21:16","21:20"]},"Y.2":{"1":["21:21","21:25"],"2":["21:26","22:1"],"3":["22:2","22:7"],"4":["22:8","22:12"],"5":["22:13","22:20"],"6":["22:21","22:30"],"7":["22:31","22:38"],M:["22:36","22:38"]},"Y.3":{"1":["22:39","23:5"],"2":["23:6","23:12"],"3":["23:13","23:26"],"4":["23:27","23:30"],"5":["24:1","24:13"],"6":["24:14","24:25"],"7":["25:1","25:9"],M:["25:7","25:9"]}},patterns:{TTS:"A",TST:"B",TSS:"C",SST:"D",STS:"E",STT:"F",SSS:"G"}},"Matot-Masei":{book:4,descr:"Aliyot Divisions for Combined Sidrot",years:{"Y.1":{"1":["30:2","30:9"],"2":["30:10","30:13"],"3":["30:14","30:17"],"4":["31:1","31:12"],"5":["31:13","31:24"],"6":["31:25","31:41"],"7":["31:42","31:54"],M:["31:51","31:54"]},"Y.2":{"1":["32:1","32:4"],"2":["32:5","32:19"],"3":["32:20","32:27"],"4":["32:28","32:42"],"5":["33:1","33:6"],"6":["33:7","33:36"],"7":["33:37","33:49"],M:["33:47","33:49"]},"Y.3":{"1":["33:50","34:15"],"2":["34:16","34:29"],"3":["35:1","35:8"],"4":["35:9","35:15"],"5":["35:16","35:29"],"6":["35:30","35:34"],"7":["36:1","36:13"],M:["36:10","36:13"]}},patterns:{TTS:"A",TST:"B",STT:"C"}},"Nitzavim-Vayeilech":{book:5,descr:"Aliyot Divisions for Combined Sidrot",years:{"Y.1":{"1":["29:9","29:11"],"2":["29:12","29:14"],"3":["29:15","29:28"],"4":["30:1","30:3"],"5":["30:4","30:6"],"6":["30:7","30:10"],"7":["30:11","30:14"],M:["30:11","30:14"]},"Y.2":{"1":["30:1","30:3"],"2":["30:4","30:6"],"3":["30:7","30:10"],"4":["30:11","30:14"],"5":["30:15","30:20"],"6":["31:1","31:3"],"7":["31:4","31:6"],M:["31:4","31:6"]},"Y.3":{"1":["31:7","31:9"],"2":["31:10","31:13"],"3":["31:14","31:19"],"4":["31:20","31:22"],"5":["31:22","31:24"],"6":["31:25","31:27"],"7":["31:28","31:30"],M:["31:28","31:30"]}},patterns:{TTS:"Y",TST:"Y",TSS:"Y",SST:"Y",STS:"Y",STT:"Y",SSS:"Y"}}};
1115
1049
 
@@ -1127,11 +1061,47 @@ var Bereshit={"1":{k:"Isaiah",b:"42:5",e:"42:21",note:"God identified as the cre
1127
1061
  */
1128
1062
 
1129
1063
  const VEZOT_HABERAKHAH = 'Vezot Haberakhah';
1130
- const isSometimesDoubled = Object.create(null);
1064
+ const isSometimesDoubled = Object.create(null); // N.B. these are 0-based indices
1065
+
1066
+ const doubled = [21, // Vayakhel-Pekudei
1067
+ 26, // Tazria-Metzora
1068
+ 28, // Achrei Mot-Kedoshim
1069
+ 31, // Behar-Bechukotai
1070
+ 38, // Chukat-Balak
1071
+ 41, // Matot-Masei
1072
+ 50 // Nitzavim-Vayeilech
1073
+ ];
1131
1074
  doubled.forEach(id => {
1132
1075
  isSometimesDoubled[id] = true;
1133
1076
  isSometimesDoubled[id + 1] = true;
1134
1077
  });
1078
+ /**
1079
+ * takes a 0-based (Bereshit=0) parsha ID
1080
+ * @private
1081
+ * @param {number} id
1082
+ * @return {string}
1083
+ */
1084
+
1085
+ function getDoubledName(id) {
1086
+ const p1 = core.parshiot[id];
1087
+ const p2 = core.parshiot[id + 1];
1088
+ const name = p1 + '-' + p2;
1089
+ return name;
1090
+ }
1091
+ /**
1092
+ * A bit like Object.assign(), but just a shallow copy
1093
+ * @private
1094
+ * @param {any} target
1095
+ * @param {any} source
1096
+ * @return {any}
1097
+ */
1098
+
1099
+
1100
+ function shallowCopy(target, source) {
1101
+ Object.keys(source).forEach(k => target[k] = source[k]);
1102
+ return target;
1103
+ }
1104
+
1135
1105
  let triennialAliyot;
1136
1106
  /** Triennial Torah readings */
1137
1107
 
@@ -1419,7 +1389,7 @@ class Triennial {
1419
1389
  const aliyot = variations[variation];
1420
1390
 
1421
1391
  if (typeof aliyot === 'object') {
1422
- const dest = Object.create(null);
1392
+ const dest = {};
1423
1393
  Object.keys(aliyot).forEach(num => {
1424
1394
  const src = aliyot[num];
1425
1395
  const reading = {
@@ -1477,11 +1447,10 @@ function getTriennial(year) {
1477
1447
  /**
1478
1448
  * Looks up the triennial leyning for this Parashat HaShavua
1479
1449
  * @param {Event} ev
1480
- * @param {boolean} [context=false] returns a reading wrapper object which includes `date`, `yearNum` and `aliyot`
1481
- * @return {TriennialAliyot|Object<string,Aliyah>} a map of aliyot 1-7 plus "M"
1450
+ * @return {TriennialAliyot} a map of aliyot 1-7 plus "M"
1482
1451
  */
1483
1452
 
1484
- function getTriennialForParshaHaShavua(ev, context = false) {
1453
+ function getTriennialForParshaHaShavua(ev) {
1485
1454
  if (!ev instanceof core.Event) {
1486
1455
  throw new TypeError(`Bad event argument: ${ev}`);
1487
1456
  } else if (ev.getFlags() != core.flags.PARSHA_HASHAVUA) {
@@ -1509,7 +1478,7 @@ function getTriennialForParshaHaShavua(ev, context = false) {
1509
1478
 
1510
1479
  const aliyotMap = shallowCopy({}, reading.aliyot); // possibly replace 7th aliyah and/or maftir
1511
1480
 
1512
- const reason = Object.create(null);
1481
+ const reason = {};
1513
1482
  specialReadings(hd, false, aliyotMap, reason);
1514
1483
  Object.keys(reason).forEach(num => {
1515
1484
  const aliyah = aliyotMap[num];
@@ -1518,16 +1487,11 @@ function getTriennialForParshaHaShavua(ev, context = false) {
1518
1487
  aliyah.reason = reason[num];
1519
1488
  }
1520
1489
  });
1521
-
1522
- if (context) {
1523
- reading.yearNum = yearNum;
1524
- reading.aliyot = aliyotMap;
1525
- const triHaft = getTriennialHaftara(parsha, yearNum);
1526
- shallowCopy(reading, triHaft);
1527
- return reading;
1528
- }
1529
-
1530
- return aliyotMap;
1490
+ reading.yearNum = yearNum;
1491
+ reading.aliyot = aliyotMap;
1492
+ const triHaft = getTriennialHaftara(parsha, yearNum);
1493
+ shallowCopy(reading, triHaft);
1494
+ return reading;
1531
1495
  }
1532
1496
  /**
1533
1497
  * Looks up the alternative triennial Haftara for a given parsha
@@ -1556,8 +1520,8 @@ function getTriennialHaftara(parsha, yearNum) {
1556
1520
  const haft = cloneHaftara(triHaft2);
1557
1521
  return {
1558
1522
  haft: haft,
1559
- haftara: makeHaftaraSummary(haft),
1560
- haftaraNumV: calculateHaftaraNumV(haft)
1523
+ haftara: makeSummaryFromParts(haft),
1524
+ haftaraNumV: sumVerses(haft)
1561
1525
  };
1562
1526
  }
1563
1527
 
@@ -1581,8 +1545,8 @@ function getTriennialHaftaraForHoliday(key, yearNum) {
1581
1545
  const haft = cloneHaftara(triHaft2);
1582
1546
  return {
1583
1547
  haft: haft,
1584
- haftara: makeHaftaraSummary(haft),
1585
- haftaraNumV: calculateHaftaraNumV(haft)
1548
+ haftara: makeSummaryFromParts(haft),
1549
+ haftaraNumV: sumVerses(haft)
1586
1550
  };
1587
1551
  }
1588
1552
 
@@ -1715,7 +1679,7 @@ function writeTriennialEventHoliday(stream, ev) {
1715
1679
 
1716
1680
 
1717
1681
  function writeTriennialEventParsha(stream, ev) {
1718
- const triReading = getTriennialForParshaHaShavua(ev, true);
1682
+ const triReading = getTriennialForParshaHaShavua(ev);
1719
1683
 
1720
1684
  if (triReading) {
1721
1685
  const il = false;
@@ -1860,16 +1824,11 @@ function getFullKriyahLines(reading) {
1860
1824
 
1861
1825
  exports.BOOK = BOOK;
1862
1826
  exports.Triennial = Triennial;
1863
- exports.addSefariaLinksToLeyning = addSefariaLinksToLeyning;
1864
- exports.calculateHaftaraNumV = calculateHaftaraNumV;
1865
- exports.calculateHaftarahNumVerses = calculateHaftarahNumVerses;
1866
1827
  exports.calculateNumVerses = calculateNumVerses;
1867
1828
  exports.clone = clone;
1868
1829
  exports.cloneHaftara = cloneHaftara;
1869
- exports.doubled = doubled;
1870
1830
  exports.formatAliyahShort = formatAliyahShort;
1871
1831
  exports.formatAliyahWithBook = formatAliyahWithBook;
1872
- exports.getDoubledName = getDoubledName;
1873
1832
  exports.getLeyningForHoliday = getLeyningForHoliday;
1874
1833
  exports.getLeyningForHolidayKey = getLeyningForHolidayKey;
1875
1834
  exports.getLeyningForParsha = getLeyningForParsha;
@@ -1880,14 +1839,13 @@ exports.getTriennial = getTriennial;
1880
1839
  exports.getTriennialForParshaHaShavua = getTriennialForParshaHaShavua;
1881
1840
  exports.getTriennialHaftaraForHoliday = getTriennialHaftaraForHoliday;
1882
1841
  exports.hasFestival = hasFestival;
1883
- exports.holidayReadings = festivals;
1884
1842
  exports.lookupFestival = lookupFestival;
1885
- exports.makeHaftaraSummary = makeHaftaraSummary;
1843
+ exports.lookupParsha = lookupParsha;
1886
1844
  exports.makeLeyningParts = makeLeyningParts;
1887
1845
  exports.makeLeyningSummary = makeLeyningSummary;
1888
1846
  exports.makeSummaryFromParts = makeSummaryFromParts;
1889
1847
  exports.parshaToString = parshaToString;
1890
- exports.parshiyot = parshiyotObj;
1891
- exports.shallowCopy = shallowCopy;
1848
+ exports.specialReadings = specialReadings;
1849
+ exports.sumVerses = sumVerses;
1892
1850
  exports.writeFullKriyahCsv = writeFullKriyahCsv;
1893
1851
  exports.writeTriennialCsv = writeTriennialCsv;