@hebcal/rest-api 5.1.0 → 5.1.2
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/README.md +1 -332
- package/dist/bundle.js +150 -153
- package/dist/bundle.min.js +2 -2
- package/dist/common.d.ts +1 -0
- package/dist/fullcalendar.js +119 -136
- package/dist/fullcalendar.min.js +2 -2
- package/dist/index.cjs +150 -153
- package/dist/index.mjs +150 -153
- package/package.json +10 -11
package/dist/fullcalendar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v5.1.
|
|
1
|
+
/*! @hebcal/rest-api v5.1.2 */
|
|
2
2
|
var hebcalFullCalendar = (function (exports, core, leyning) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -40,107 +40,106 @@ function yearFromFixed(abs) {
|
|
|
40
40
|
const ABS_14SEP1752 = 639797;
|
|
41
41
|
const ABS_2SEP1752 = 639785;
|
|
42
42
|
*/
|
|
43
|
+
/*
|
|
44
|
+
* Formerly in namespace, now top-level
|
|
45
|
+
*/
|
|
43
46
|
/**
|
|
44
|
-
* Gregorian
|
|
47
|
+
* Returns true if the Gregorian year is a leap year
|
|
48
|
+
* @param year Gregorian year
|
|
49
|
+
*/
|
|
50
|
+
function isGregLeapYear(year) {
|
|
51
|
+
return !(year % 4) && (!!(year % 100) || !(year % 400));
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Number of days in the Gregorian month for given year
|
|
55
|
+
* @param month Gregorian month (1=January, 12=December)
|
|
56
|
+
* @param year Gregorian year
|
|
57
|
+
*/
|
|
58
|
+
function daysInGregMonth(month, year) {
|
|
59
|
+
// 1 based months
|
|
60
|
+
return monthLengths[+isGregLeapYear(year)][month];
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Returns true if the object is a Javascript Date
|
|
64
|
+
*/
|
|
65
|
+
function isDate(obj) {
|
|
66
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
67
|
+
return typeof obj === 'object' && Date.prototype.isPrototypeOf(obj);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @private
|
|
71
|
+
* @param year
|
|
72
|
+
* @param month (1-12)
|
|
73
|
+
* @param day (1-31)
|
|
74
|
+
*/
|
|
75
|
+
function toFixed(year, month, day) {
|
|
76
|
+
const py = year - 1;
|
|
77
|
+
return (365 * py +
|
|
78
|
+
quotient(py, 4) -
|
|
79
|
+
quotient(py, 100) +
|
|
80
|
+
quotient(py, 400) +
|
|
81
|
+
quotient(367 * month - 362, 12) +
|
|
82
|
+
(month <= 2 ? 0 : isGregLeapYear(year) ? -1 : -2) +
|
|
83
|
+
day);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Converts Gregorian date to absolute R.D. (Rata Die) days
|
|
87
|
+
* @param date Gregorian date
|
|
88
|
+
*/
|
|
89
|
+
function greg2abs(date) {
|
|
90
|
+
if (!isDate(date)) {
|
|
91
|
+
throw new TypeError(`Argument not a Date: ${date}`);
|
|
92
|
+
}
|
|
93
|
+
const abs = toFixed(date.getFullYear(), date.getMonth() + 1, date.getDate());
|
|
94
|
+
/*
|
|
95
|
+
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
|
|
96
|
+
throw new RangeError(`Invalid Date: ${date}`);
|
|
97
|
+
}
|
|
98
|
+
*/
|
|
99
|
+
return abs;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Converts from Rata Die (R.D. number) to Gregorian date.
|
|
103
|
+
* See the footnote on page 384 of ``Calendrical Calculations, Part II:
|
|
104
|
+
* Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.
|
|
105
|
+
* Clamen, Software--Practice and Experience, Volume 23, Number 4
|
|
106
|
+
* (April, 1993), pages 383-404 for an explanation.
|
|
107
|
+
* @param abs - R.D. number of days
|
|
108
|
+
*/
|
|
109
|
+
function abs2greg(abs) {
|
|
110
|
+
if (typeof abs !== 'number') {
|
|
111
|
+
throw new TypeError(`Argument not a Number: ${abs}`);
|
|
112
|
+
}
|
|
113
|
+
abs = Math.trunc(abs);
|
|
114
|
+
/*
|
|
115
|
+
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
|
|
116
|
+
throw new RangeError(`Invalid Date: ${abs}`);
|
|
117
|
+
}
|
|
118
|
+
*/
|
|
119
|
+
const year = yearFromFixed(abs);
|
|
120
|
+
const priorDays = abs - toFixed(year, 1, 1);
|
|
121
|
+
const correction = abs < toFixed(year, 3, 1) ? 0 : isGregLeapYear(year) ? 1 : 2;
|
|
122
|
+
const month = quotient(12 * (priorDays + correction) + 373, 367);
|
|
123
|
+
const day = abs - toFixed(year, month, 1) + 1;
|
|
124
|
+
const dt = new Date(year, month - 1, day);
|
|
125
|
+
if (year < 100 && year >= 0) {
|
|
126
|
+
dt.setFullYear(year);
|
|
127
|
+
}
|
|
128
|
+
return dt;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-namespace */
|
|
132
|
+
/**
|
|
133
|
+
* Gregorian date helper functions
|
|
45
134
|
*/
|
|
46
135
|
var greg;
|
|
47
136
|
(function (greg) {
|
|
48
|
-
/**
|
|
49
|
-
* Returns true if the Gregorian year is a leap year
|
|
50
|
-
* @param {number} year Gregorian year
|
|
51
|
-
* @return {boolean}
|
|
52
|
-
*/
|
|
53
|
-
function isLeapYear(year) {
|
|
54
|
-
return !(year % 4) && (!!(year % 100) || !(year % 400));
|
|
55
|
-
}
|
|
56
|
-
greg.isLeapYear = isLeapYear;
|
|
57
|
-
/**
|
|
58
|
-
* Number of days in the Gregorian month for given year
|
|
59
|
-
* @param {number} month Gregorian month (1=January, 12=December)
|
|
60
|
-
* @param {number} year Gregorian year
|
|
61
|
-
* @return {number}
|
|
62
|
-
*/
|
|
63
|
-
function daysInMonth(month, year) {
|
|
64
|
-
// 1 based months
|
|
65
|
-
return monthLengths[+isLeapYear(year)][month];
|
|
66
|
-
}
|
|
67
|
-
greg.daysInMonth = daysInMonth;
|
|
68
|
-
/**
|
|
69
|
-
* Returns true if the object is a Javascript Date
|
|
70
|
-
* @param {Object} obj
|
|
71
|
-
* @return {boolean}
|
|
72
|
-
*/
|
|
73
|
-
function isDate(obj) {
|
|
74
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
75
|
-
return typeof obj === 'object' && Date.prototype.isPrototypeOf(obj);
|
|
76
|
-
}
|
|
77
|
-
greg.isDate = isDate;
|
|
78
|
-
/**
|
|
79
|
-
* @private
|
|
80
|
-
* @param year
|
|
81
|
-
* @param month (1-12)
|
|
82
|
-
* @param day (1-31)
|
|
83
|
-
*/
|
|
84
|
-
function toFixed(year, month, day) {
|
|
85
|
-
const py = year - 1;
|
|
86
|
-
return (365 * py +
|
|
87
|
-
quotient(py, 4) -
|
|
88
|
-
quotient(py, 100) +
|
|
89
|
-
quotient(py, 400) +
|
|
90
|
-
quotient(367 * month - 362, 12) +
|
|
91
|
-
(month <= 2 ? 0 : isLeapYear(year) ? -1 : -2) +
|
|
92
|
-
day);
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Converts Gregorian date to absolute R.D. (Rata Die) days
|
|
96
|
-
* @param {Date} date Gregorian date
|
|
97
|
-
* @return {number}
|
|
98
|
-
*/
|
|
99
|
-
function greg2abs(date) {
|
|
100
|
-
if (!isDate(date)) {
|
|
101
|
-
throw new TypeError(`Argument not a Date: ${date}`);
|
|
102
|
-
}
|
|
103
|
-
const abs = toFixed(date.getFullYear(), date.getMonth() + 1, date.getDate());
|
|
104
|
-
/*
|
|
105
|
-
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
|
|
106
|
-
throw new RangeError(`Invalid Date: ${date}`);
|
|
107
|
-
}
|
|
108
|
-
*/
|
|
109
|
-
return abs;
|
|
110
|
-
}
|
|
111
|
-
greg.greg2abs = greg2abs;
|
|
112
|
-
/**
|
|
113
|
-
* Converts from Rata Die (R.D. number) to Gregorian date.
|
|
114
|
-
* See the footnote on page 384 of ``Calendrical Calculations, Part II:
|
|
115
|
-
* Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.
|
|
116
|
-
* Clamen, Software--Practice and Experience, Volume 23, Number 4
|
|
117
|
-
* (April, 1993), pages 383-404 for an explanation.
|
|
118
|
-
* @param {number} abs - R.D. number of days
|
|
119
|
-
* @return {Date}
|
|
120
|
-
*/
|
|
121
|
-
function abs2greg(abs) {
|
|
122
|
-
if (typeof abs !== 'number') {
|
|
123
|
-
throw new TypeError(`Argument not a Number: ${abs}`);
|
|
124
|
-
}
|
|
125
|
-
abs = Math.trunc(abs);
|
|
126
|
-
/*
|
|
127
|
-
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
|
|
128
|
-
throw new RangeError(`Invalid Date: ${abs}`);
|
|
129
|
-
}
|
|
130
|
-
*/
|
|
131
|
-
const year = yearFromFixed(abs);
|
|
132
|
-
const priorDays = abs - toFixed(year, 1, 1);
|
|
133
|
-
const correction = abs < toFixed(year, 3, 1) ? 0 : isLeapYear(year) ? 1 : 2;
|
|
134
|
-
const month = quotient(12 * (priorDays + correction) + 373, 367);
|
|
135
|
-
const day = abs - toFixed(year, month, 1) + 1;
|
|
136
|
-
const dt = new Date(year, month - 1, day);
|
|
137
|
-
if (year < 100 && year >= 0) {
|
|
138
|
-
dt.setFullYear(year);
|
|
139
|
-
}
|
|
140
|
-
return dt;
|
|
141
|
-
}
|
|
142
|
-
greg.abs2greg = abs2greg;
|
|
143
137
|
})(greg || (greg = {}));
|
|
138
|
+
greg.abs2greg = abs2greg;
|
|
139
|
+
greg.daysInMonth = daysInGregMonth;
|
|
140
|
+
greg.greg2abs = greg2abs;
|
|
141
|
+
greg.isDate = isDate;
|
|
142
|
+
greg.isLeapYear = isGregLeapYear;
|
|
144
143
|
|
|
145
144
|
const alefbet = {
|
|
146
145
|
א: 1,
|
|
@@ -178,8 +177,6 @@ for (const [key, val] of Object.entries(alefbet)) {
|
|
|
178
177
|
* Similar to `string.padStart(4, '0')` but will also format
|
|
179
178
|
* negative numbers similar to how the JavaScript date formats
|
|
180
179
|
* negative year numbers (e.g. `-37` is formatted as `-000037`).
|
|
181
|
-
* @param {number} number
|
|
182
|
-
* @return {string}
|
|
183
180
|
*/
|
|
184
181
|
function pad4(number) {
|
|
185
182
|
if (number < 0) {
|
|
@@ -199,8 +196,6 @@ function pad4(number) {
|
|
|
199
196
|
/**
|
|
200
197
|
* Formats a number with leading zeros so the resulting string is 2 digits long.
|
|
201
198
|
* Similar to `string.padStart(2, '0')`.
|
|
202
|
-
* @param {number} number
|
|
203
|
-
* @return {string}
|
|
204
199
|
*/
|
|
205
200
|
function pad2(number) {
|
|
206
201
|
if (number < 10) {
|
|
@@ -210,9 +205,6 @@ function pad2(number) {
|
|
|
210
205
|
}
|
|
211
206
|
/**
|
|
212
207
|
* Returns YYYY-MM-DD in the local timezone
|
|
213
|
-
* @private
|
|
214
|
-
* @param {Date} dt
|
|
215
|
-
* @return {string}
|
|
216
208
|
*/
|
|
217
209
|
function isoDateString(dt) {
|
|
218
210
|
return (pad4(dt.getFullYear()) +
|
|
@@ -231,9 +223,9 @@ const noopLocale = {
|
|
|
231
223
|
contexts: { '': {} },
|
|
232
224
|
};
|
|
233
225
|
const alias = {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
226
|
+
h: 'he',
|
|
227
|
+
a: 'ashkenazi',
|
|
228
|
+
s: 'en',
|
|
237
229
|
'': 'en',
|
|
238
230
|
};
|
|
239
231
|
/** @private */
|
|
@@ -254,12 +246,12 @@ class Locale {
|
|
|
254
246
|
/**
|
|
255
247
|
* Returns translation only if `locale` offers a non-empty translation for `id`.
|
|
256
248
|
* Otherwise, returns `undefined`.
|
|
257
|
-
* @param
|
|
258
|
-
* @param
|
|
259
|
-
* @return {string}
|
|
249
|
+
* @param id Message ID to translate
|
|
250
|
+
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
|
|
260
251
|
*/
|
|
261
252
|
static lookupTranslation(id, locale) {
|
|
262
|
-
const loc = (typeof locale === 'string' && locales.get(locale.toLowerCase())) ||
|
|
253
|
+
const loc = (typeof locale === 'string' && locales.get(locale.toLowerCase())) ||
|
|
254
|
+
activeLocale;
|
|
263
255
|
const array = loc[id];
|
|
264
256
|
if ((array === null || array === void 0 ? void 0 : array.length) && array[0].length) {
|
|
265
257
|
return array[0];
|
|
@@ -268,9 +260,8 @@ class Locale {
|
|
|
268
260
|
}
|
|
269
261
|
/**
|
|
270
262
|
* By default, if no translation was found, returns `id`.
|
|
271
|
-
* @param
|
|
272
|
-
* @param
|
|
273
|
-
* @return {string}
|
|
263
|
+
* @param id Message ID to translate
|
|
264
|
+
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
|
|
274
265
|
*/
|
|
275
266
|
static gettext(id, locale) {
|
|
276
267
|
const text = this.lookupTranslation(id, locale);
|
|
@@ -281,23 +272,24 @@ class Locale {
|
|
|
281
272
|
}
|
|
282
273
|
/**
|
|
283
274
|
* Register locale translations.
|
|
284
|
-
* @param
|
|
285
|
-
* @param
|
|
275
|
+
* @param locale Locale name (i.e.: `'he'`, `'fr'`)
|
|
276
|
+
* @param data parsed data from a `.po` file.
|
|
286
277
|
*/
|
|
287
278
|
static addLocale(locale, data) {
|
|
288
279
|
if (typeof locale !== 'string') {
|
|
289
280
|
throw new TypeError(`Invalid locale name: ${locale}`);
|
|
290
281
|
}
|
|
291
|
-
if (typeof data.contexts !== 'object' ||
|
|
282
|
+
if (typeof data.contexts !== 'object' ||
|
|
283
|
+
typeof data.contexts[''] !== 'object') {
|
|
292
284
|
throw new TypeError(`Locale '${locale}' invalid compact format`);
|
|
293
285
|
}
|
|
294
286
|
locales.set(locale.toLowerCase(), data.contexts['']);
|
|
295
287
|
}
|
|
296
288
|
/**
|
|
297
289
|
* Adds a translation to `locale`, replacing any previous translation.
|
|
298
|
-
* @param
|
|
299
|
-
* @param
|
|
300
|
-
* @param
|
|
290
|
+
* @param locale Locale name (i.e: `'he'`, `'fr'`).
|
|
291
|
+
* @param id Message ID to translate
|
|
292
|
+
* @param translation Translation text
|
|
301
293
|
*/
|
|
302
294
|
static addTranslation(locale, id, translation) {
|
|
303
295
|
if (typeof locale !== 'string') {
|
|
@@ -324,8 +316,8 @@ class Locale {
|
|
|
324
316
|
}
|
|
325
317
|
/**
|
|
326
318
|
* Adds multiple translations to `locale`, replacing any previous translations.
|
|
327
|
-
* @param
|
|
328
|
-
* @param
|
|
319
|
+
* @param locale Locale name (i.e: `'he'`, `'fr'`).
|
|
320
|
+
* @param data parsed data from a `.po` file.
|
|
329
321
|
*/
|
|
330
322
|
static addTranslations(locale, data) {
|
|
331
323
|
if (typeof locale !== 'string') {
|
|
@@ -335,7 +327,8 @@ class Locale {
|
|
|
335
327
|
if (!loc) {
|
|
336
328
|
throw new TypeError(`Unknown locale: ${locale}`);
|
|
337
329
|
}
|
|
338
|
-
if (typeof data.contexts !== 'object' ||
|
|
330
|
+
if (typeof data.contexts !== 'object' ||
|
|
331
|
+
typeof data.contexts[''] !== 'object') {
|
|
339
332
|
throw new TypeError(`Locale '${locale}' invalid compact format`);
|
|
340
333
|
}
|
|
341
334
|
const ctx = data.contexts[''];
|
|
@@ -345,7 +338,7 @@ class Locale {
|
|
|
345
338
|
* Activates a locale. Throws an error if the locale has not been previously added.
|
|
346
339
|
* After setting the locale to be used, all strings marked for translations
|
|
347
340
|
* will be represented by the corresponding translation in the specified locale.
|
|
348
|
-
* @param
|
|
341
|
+
* @param locale Locale name (i.e: `'he'`, `'fr'`)
|
|
349
342
|
*/
|
|
350
343
|
static useLocale(locale) {
|
|
351
344
|
const locale0 = locale.toLowerCase();
|
|
@@ -359,23 +352,20 @@ class Locale {
|
|
|
359
352
|
}
|
|
360
353
|
/**
|
|
361
354
|
* Returns the name of the active locale (i.e. 'he', 'ashkenazi', 'fr')
|
|
362
|
-
* @return {string}
|
|
363
355
|
*/
|
|
364
356
|
static getLocaleName() {
|
|
365
357
|
return activeName;
|
|
366
358
|
}
|
|
367
359
|
/**
|
|
368
360
|
* Returns the names of registered locales
|
|
369
|
-
* @return {string[]}
|
|
370
361
|
*/
|
|
371
362
|
static getLocaleNames() {
|
|
372
363
|
const keys = Array.from(locales.keys());
|
|
373
364
|
return keys.sort((a, b) => a.localeCompare(b));
|
|
374
365
|
}
|
|
375
366
|
/**
|
|
376
|
-
*
|
|
377
|
-
* @param
|
|
378
|
-
* @return {string}
|
|
367
|
+
* Renders a number in ordinal, such as 1st, 2nd or 3rd
|
|
368
|
+
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
|
|
379
369
|
*/
|
|
380
370
|
static ordinal(n, locale) {
|
|
381
371
|
const locale1 = locale === null || locale === void 0 ? void 0 : locale.toLowerCase();
|
|
@@ -402,11 +392,6 @@ class Locale {
|
|
|
402
392
|
return n + '.';
|
|
403
393
|
}
|
|
404
394
|
}
|
|
405
|
-
/**
|
|
406
|
-
* @private
|
|
407
|
-
* @param {number} n
|
|
408
|
-
* @return {string}
|
|
409
|
-
*/
|
|
410
395
|
static getEnOrdinal(n) {
|
|
411
396
|
const s = ['th', 'st', 'nd', 'rd'];
|
|
412
397
|
const v = n % 100;
|
|
@@ -414,8 +399,6 @@ class Locale {
|
|
|
414
399
|
}
|
|
415
400
|
/**
|
|
416
401
|
* Removes nekudot from Hebrew string
|
|
417
|
-
* @param {string} str
|
|
418
|
-
* @return {string}
|
|
419
402
|
*/
|
|
420
403
|
static hebrewStripNikkud(str) {
|
|
421
404
|
return str.replace(/[\u0590-\u05bd]/g, '').replace(/[\u05bf-\u05c7]/g, '');
|
package/dist/fullcalendar.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v5.1.
|
|
2
|
-
var hebcalFullCalendar=function(e,a,o){"use strict";const t=[0,31,28,31,30,31,30,31,31,30,31,30,31],r=[t,t.slice()];function n(e,a){return e-a*Math.floor(e/a)}function h(e,a){return Math.floor(e/a)}var s;r[1][2]=29,function(e){function a(e){return!(e%4||!(e%100)&&e%400)}function o(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function t(e,o,t){const r=e-1;return 365*r+h(r,4)-h(r,100)+h(r,400)+h(367*o-362,12)+(o<=2?0:a(e)?-1:-2)+t}e.isLeapYear=a,e.daysInMonth=function(e,o){return r[+a(o)][e]},e.isDate=o,e.greg2abs=function(e){if(!o(e))throw new TypeError(`Argument not a Date: ${e}`);return t(e.getFullYear(),e.getMonth()+1,e.getDate())},e.abs2greg=function(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const o=function(e){const a=e-1,o=h(a,146097),t=n(a,146097),r=h(t,36524),s=n(t,36524),i=h(s,1461),l=h(n(s,1461),365),d=400*o+100*r+4*i+l;return 4!==r&&4!==l?d+1:d}(e=Math.trunc(e)),r=h(12*(e-t(o,1,1)+(e<t(o,3,1)?0:a(o)?1:2))+373,367),s=e-t(o,r,1)+1,i=new Date(o,r-1,s);return o<100&&o>=0&&i.setFullYear(o),i}}(s||(s={}));const i={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},l=new Map,d=new Map;for(const[e,a]of Object.entries(i))l.set(e,a),d.set(a,e);function c(e){return e<0?"-00"+c(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function f(e){return e<10?"0"+e:String(e)}function m(e){return c(e.getFullYear())+"-"+f(e.getMonth()+1)+"-"+f(e.getDate())}var b={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Tevet:["Teves"]}}},u={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"]}}};const y={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},g={h:"he",a:"ashkenazi",s:"en","":"en"},w=new Map;let p,v;class H{static lookupTranslation(e,a){const o=("string"==typeof a&&w.get(a.toLowerCase())||p)[e];if((null==o?void 0:o.length)&&o[0].length)return o[0]}static gettext(e,a){const o=this.lookupTranslation(e,a);return void 0===o?e:o}static addLocale(e,a){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);if("object"!=typeof a.contexts||"object"!=typeof a.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);w.set(e.toLowerCase(),a.contexts[""])}static addTranslation(e,a,o){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const t=w.get(e.toLowerCase());if(!t)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof a||0===a.length)throw new TypeError(`Invalid id: ${a}`);const r=Array.isArray(o);if(r){const e=o[0];if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid translation array: ${o}`)}else if("string"!=typeof o)throw new TypeError(`Invalid translation: ${o}`);t[a]=r?o:[o]}static addTranslations(e,a){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const o=w.get(e.toLowerCase());if(!o)throw new TypeError(`Unknown locale: ${e}`);if("object"!=typeof a.contexts||"object"!=typeof a.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const t=a.contexts[""];Object.assign(o,t)}static useLocale(e){const a=e.toLowerCase(),o=w.get(a);if(!o)throw new RangeError(`Locale '${e}' not found`);return v=g[a]||a,p=o,p}static getLocaleName(){return v}static getLocaleNames(){return Array.from(w.keys()).sort(((e,a)=>e.localeCompare(a)))}static ordinal(e,a){const o=(null==a?void 0:a.toLowerCase())||v;if(!o)return this.getEnOrdinal(e);switch(o){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}static getEnOrdinal(e){const a=["th","st","nd","rd"],o=e%100;return e+(a[(o-20)%10]||a[o]||a[0])}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}H.addLocale("en",y),H.addLocale("s",y),H.addLocale("",y),H.useLocale("en"),H.addLocale("ashkenazi",b),H.addLocale("a",b),H.addLocale("he",u),H.addLocale("h",u);const S=u.contexts[""],A={};for(const[e,a]of Object.entries(S))A[e]=[H.hebrewStripNikkud(a[0])];const T={headers:u.headers,contexts:{"":A}};H.addLocale("he-x-NoNikud",T);const C={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion","Birkat Hachamah":"A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun","Chag HaBanot":"North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays","Family Day":"Yom HaMishpacha, a day to honor the family unit","Hebrew Language Day":"Promotes the Hebrew language in Israel and around the world. Occurs on the birthday of Eliezer Ben Yehuda, the father of modern spoken Hebrew","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky","Lag BaOmer":"33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:"Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt","Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:"Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination","Purim Meshulash":"Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat","Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":'Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes "Adar Bet" or "Adar Sheni", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon',"Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","Shabbat Chazon":"Shabbat of Prophecy/Shabbat of Vision. Shabbat before Tish'a B'Av","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan. Read in preparation for Passover","Shabbat HaGadol":"Shabbat before Pesach (The Great Shabbat)","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Mevarchim Chodesh":"Shabbat that precedes Rosh Chodesh. The congregation blesses the forthcoming new month","Shabbat Nachamu":"Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")","Shabbat Parah":"Shabbat of the Red Heifer. Shabbat before Shabbat HaChodesh, in preparation for Passover","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar. Read in preparation for Purim","Shabbat Shirah":"Shabbat of Song. Shabbat that includes Parashat Beshalach","Shabbat Shuva":"Shabbat of Returning. Shabbat that occurs during the Ten Days of Repentance between Rosh Hashanah and Yom Kippur","Shabbat Zachor":"Shabbat of Remembrance. Shabbat before Purim",Shavuot:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","Shmini Atzeret":"Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel","Shushan Purim":"Purim celebrated in Jerusalem and walled cities","Shushan Purim Katan":"Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",Sigd:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","Simchat Torah":"Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",Sukkot:"Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)","Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees. Tu BiShvat is one of four “New Years” mentioned in the Mishnah","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer","Yom Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};const R=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.NACH_YOMI|a.flags.DAILY_LEARNING|a.flags.HEBREW_DATE|a.flags.YERUSHALMI_YOMI;function I(e,t){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const r=function(e,t){var r;const n=e.getFlags();if(n&R||void 0!==e.eventTime)return"";const h=n&a.flags.PARSHA_HASHAVUA?o.getLeyningForParshaHaShavua(e,t):o.getLeyningForHoliday(e,t);let s="";return h&&(h.summary||h.haftara)&&(h.summary&&(s+=`Torah: ${h.summary}`),h.summary&&h.haftara&&(s+="\n"),h.haftara&&(s+="Haftarah: "+h.haftara,(null===(r=h.reason)||void 0===r?void 0:r.haftara)&&(s+=" | "+h.reason.haftara))),(null==h?void 0:h.sephardic)&&(s+="\nHaftarah for Sephardim: "+h.sephardic),s}(e,t);if(r)return r}catch(e){}return e.memo||C[e.basename()]}return e.eventToFullCalendar=function(e,o,t){const r=function(e){const a=e.getDesc();return"Purim"===a||"Erev Purim"===a?["holiday","major"]:e.getCategories()}(e),n=e.getFlags();"holiday"==r[0]&&n&a.flags.CHAG&&r.push("yomtov");const h=e.eventTime,s=Boolean(h),i={title:function(e){if(void 0!==e.eventTime)return!0;const o=e.getFlags();if(o&a.flags.HEBREW_DATE)return 1!==e.getDate().getDate();return!!(o&(a.flags.DAILY_LEARNING|a.flags.DAF_YOMI|a.flags.YERUSHALMI_YOMI))||!!(o&a.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(o&a.flags.SHABBAT_MEVARCHIM)}(e)?e.renderBrief():e.render(),start:s?a.Zmanim.formatISOWithTimeZone(o,h):m(e.getDate().greg()),allDay:!s,className:r.join(" ")},l=e.renderBrief("he");l&&(i.hebrew=a.Locale.hebrewStripNikkud(l));const d=e.url();d&&(i.url=function(e,a,o,t,r){const n=new URL(e),h="www.hebcal.com"===n.host;if(h){a&&n.searchParams.set("i","on");const e=n.pathname,r=e.startsWith("/holidays/"),h=e.startsWith("/sedrot/"),s=e.startsWith("/omer/");if(r||h||s)return n.host="hebcal.com",n.pathname=r?"/h/"+e.substring(10):h?"/s/"+e.substring(8):"/o/"+e.substring(6),o&&n.searchParams.set("us",o),n.searchParams.set("um",t),n.toString()}return(o=h?o:"hebcal.com")&&n.searchParams.set("utm_source",o),n.searchParams.set("utm_medium",t),n.toString()}(d,t,"js","fc"));const c=e.getDesc();if(!("Havdalah"===c||"Candle lighting"===c)){const a=I(e,t);a?i.description=a:void 0!==e.linkedEvent&&(i.description=e.linkedEvent.render())}return i},e}({},hebcal,hebcal__leyning);
|
|
1
|
+
/*! @hebcal/rest-api v5.1.2 */
|
|
2
|
+
var hebcalFullCalendar=function(e,a,o){"use strict";const t=[0,31,28,31,30,31,30,31,31,30,31,30,31],r=[t,t.slice()];function n(e,a){return e-a*Math.floor(e/a)}function h(e,a){return Math.floor(e/a)}function s(e){return!(e%4||!(e%100)&&e%400)}function i(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function l(e,a,o){const t=e-1;return 365*t+h(t,4)-h(t,100)+h(t,400)+h(367*a-362,12)+(a<=2?0:s(e)?-1:-2)+o}var d;r[1][2]=29,d||(d={}),d.abs2greg=function(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const a=function(e){const a=e-1,o=h(a,146097),t=n(a,146097),r=h(t,36524),s=n(t,36524),i=h(s,1461),l=h(n(s,1461),365),d=400*o+100*r+4*i+l;return 4!==r&&4!==l?d+1:d}(e=Math.trunc(e)),o=h(12*(e-l(a,1,1)+(e<l(a,3,1)?0:s(a)?1:2))+373,367),t=e-l(a,o,1)+1,r=new Date(a,o-1,t);return a<100&&a>=0&&r.setFullYear(a),r},d.daysInMonth=function(e,a){return r[+s(a)][e]},d.greg2abs=function(e){if(!i(e))throw new TypeError(`Argument not a Date: ${e}`);return l(e.getFullYear(),e.getMonth()+1,e.getDate())},d.isDate=i,d.isLeapYear=s;const c={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},m=new Map,f=new Map;for(const[e,a]of Object.entries(c))m.set(e,a),f.set(a,e);function b(e){return e<0?"-00"+b(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function u(e){return e<10?"0"+e:String(e)}function y(e){return b(e.getFullYear())+"-"+u(e.getMonth()+1)+"-"+u(e.getDate())}var g={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Tevet:["Teves"]}}},w={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"]}}};const p={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},v={h:"he",a:"ashkenazi",s:"en","":"en"},H=new Map;let S,A;class T{static lookupTranslation(e,a){const o=("string"==typeof a&&H.get(a.toLowerCase())||S)[e];if((null==o?void 0:o.length)&&o[0].length)return o[0]}static gettext(e,a){const o=this.lookupTranslation(e,a);return void 0===o?e:o}static addLocale(e,a){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);if("object"!=typeof a.contexts||"object"!=typeof a.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);H.set(e.toLowerCase(),a.contexts[""])}static addTranslation(e,a,o){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const t=H.get(e.toLowerCase());if(!t)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof a||0===a.length)throw new TypeError(`Invalid id: ${a}`);const r=Array.isArray(o);if(r){const e=o[0];if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid translation array: ${o}`)}else if("string"!=typeof o)throw new TypeError(`Invalid translation: ${o}`);t[a]=r?o:[o]}static addTranslations(e,a){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const o=H.get(e.toLowerCase());if(!o)throw new TypeError(`Unknown locale: ${e}`);if("object"!=typeof a.contexts||"object"!=typeof a.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const t=a.contexts[""];Object.assign(o,t)}static useLocale(e){const a=e.toLowerCase(),o=H.get(a);if(!o)throw new RangeError(`Locale '${e}' not found`);return A=v[a]||a,S=o,S}static getLocaleName(){return A}static getLocaleNames(){return Array.from(H.keys()).sort(((e,a)=>e.localeCompare(a)))}static ordinal(e,a){const o=(null==a?void 0:a.toLowerCase())||A;if(!o)return this.getEnOrdinal(e);switch(o){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}static getEnOrdinal(e){const a=["th","st","nd","rd"],o=e%100;return e+(a[(o-20)%10]||a[o]||a[0])}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}T.addLocale("en",p),T.addLocale("s",p),T.addLocale("",p),T.useLocale("en"),T.addLocale("ashkenazi",g),T.addLocale("a",g),T.addLocale("he",w),T.addLocale("h",w);const C=w.contexts[""],R={};for(const[e,a]of Object.entries(C))R[e]=[T.hebrewStripNikkud(a[0])];const I={headers:w.headers,contexts:{"":R}};T.addLocale("he-x-NoNikud",I);const k={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion","Birkat Hachamah":"A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun","Chag HaBanot":"North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays","Family Day":"Yom HaMishpacha, a day to honor the family unit","Hebrew Language Day":"Promotes the Hebrew language in Israel and around the world. Occurs on the birthday of Eliezer Ben Yehuda, the father of modern spoken Hebrew","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky","Lag BaOmer":"33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:"Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt","Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:"Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination","Purim Meshulash":"Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat","Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":'Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes "Adar Bet" or "Adar Sheni", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon',"Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","Shabbat Chazon":"Shabbat of Prophecy/Shabbat of Vision. Shabbat before Tish'a B'Av","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan. Read in preparation for Passover","Shabbat HaGadol":"Shabbat before Pesach (The Great Shabbat)","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Mevarchim Chodesh":"Shabbat that precedes Rosh Chodesh. The congregation blesses the forthcoming new month","Shabbat Nachamu":"Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")","Shabbat Parah":"Shabbat of the Red Heifer. Shabbat before Shabbat HaChodesh, in preparation for Passover","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar. Read in preparation for Purim","Shabbat Shirah":"Shabbat of Song. Shabbat that includes Parashat Beshalach","Shabbat Shuva":"Shabbat of Returning. Shabbat that occurs during the Ten Days of Repentance between Rosh Hashanah and Yom Kippur","Shabbat Zachor":"Shabbat of Remembrance. Shabbat before Purim",Shavuot:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","Shmini Atzeret":"Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel","Shushan Purim":"Purim celebrated in Jerusalem and walled cities","Shushan Purim Katan":"Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",Sigd:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","Simchat Torah":"Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",Sukkot:"Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)","Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees. Tu BiShvat is one of four “New Years” mentioned in the Mishnah","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer","Yom Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};const M=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.NACH_YOMI|a.flags.DAILY_LEARNING|a.flags.HEBREW_DATE|a.flags.YERUSHALMI_YOMI;function E(e,t){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const r=function(e,t){var r;const n=e.getFlags();if(n&M||void 0!==e.eventTime)return"";const h=n&a.flags.PARSHA_HASHAVUA?o.getLeyningForParshaHaShavua(e,t):o.getLeyningForHoliday(e,t);let s="";return h&&(h.summary||h.haftara)&&(h.summary&&(s+=`Torah: ${h.summary}`),h.summary&&h.haftara&&(s+="\n"),h.haftara&&(s+="Haftarah: "+h.haftara,(null===(r=h.reason)||void 0===r?void 0:r.haftara)&&(s+=" | "+h.reason.haftara))),(null==h?void 0:h.sephardic)&&(s+="\nHaftarah for Sephardim: "+h.sephardic),s}(e,t);if(r)return r}catch(e){}return e.memo||k[e.basename()]}return e.eventToFullCalendar=function(e,o,t){const r=function(e){const a=e.getDesc();return"Purim"===a||"Erev Purim"===a?["holiday","major"]:e.getCategories()}(e),n=e.getFlags();"holiday"==r[0]&&n&a.flags.CHAG&&r.push("yomtov");const h=e.eventTime,s=Boolean(h),i={title:function(e){if(void 0!==e.eventTime)return!0;const o=e.getFlags();if(o&a.flags.HEBREW_DATE)return 1!==e.getDate().getDate();return!!(o&(a.flags.DAILY_LEARNING|a.flags.DAF_YOMI|a.flags.YERUSHALMI_YOMI))||!!(o&a.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(o&a.flags.SHABBAT_MEVARCHIM)}(e)?e.renderBrief():e.render(),start:s?a.Zmanim.formatISOWithTimeZone(o,h):y(e.getDate().greg()),allDay:!s,className:r.join(" ")},l=e.renderBrief("he");l&&(i.hebrew=a.Locale.hebrewStripNikkud(l));const d=e.url();d&&(i.url=function(e,a,o,t,r){const n=new URL(e),h="www.hebcal.com"===n.host;if(h){a&&n.searchParams.set("i","on");const e=n.pathname,r=e.startsWith("/holidays/"),h=e.startsWith("/sedrot/"),s=e.startsWith("/omer/");if(r||h||s)return n.host="hebcal.com",n.pathname=r?"/h/"+e.substring(10):h?"/s/"+e.substring(8):"/o/"+e.substring(6),o&&n.searchParams.set("us",o),n.searchParams.set("um",t),n.toString()}return(o=h?o:"hebcal.com")&&n.searchParams.set("utm_source",o),n.searchParams.set("utm_medium",t),n.toString()}(d,t,"js","fc"));const c=e.getDesc();if(!("Havdalah"===c||"Candle lighting"===c)){const a=E(e,t);a?i.description=a:void 0!==e.linkedEvent&&(i.description=e.linkedEvent.render())}return i},e}({},hebcal,hebcal__leyning);
|