@hebcal/core 6.0.6 → 6.0.7
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 +42 -27
- package/dist/bundle.js +13 -8
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +3 -3
- package/dist/bundle.min.js.map +1 -1
- package/dist/esm/DailyLearning.js +1 -1
- package/dist/esm/HebrewDateEvent.js +1 -1
- package/dist/esm/HolidayEvent.js +1 -1
- package/dist/esm/MevarchimChodeshEvent.js +1 -1
- package/dist/esm/ParshaEvent.js +1 -1
- package/dist/esm/TimedEvent.js +1 -1
- package/dist/esm/YomKippurKatanEvent.js +1 -1
- package/dist/esm/ashkenazi.po.js +1 -1
- package/dist/esm/calendar.js +1 -1
- package/dist/esm/candles.js +1 -1
- package/dist/esm/event.js +1 -1
- package/dist/esm/getStartAndEnd.js +1 -1
- package/dist/esm/hallel.js +1 -1
- package/dist/esm/he-x-NoNikud.po.d.ts +2 -0
- package/dist/esm/he-x-NoNikud.po.js +2 -2
- package/dist/esm/he-x-NoNikud.po.js.map +1 -1
- package/dist/esm/he.po.d.ts +1 -0
- package/dist/esm/he.po.js +2 -2
- package/dist/esm/he.po.js.map +1 -1
- package/dist/esm/hebcal.js +1 -1
- package/dist/esm/holidays.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/isAssurBemlacha.js +1 -1
- package/dist/esm/locale.js +1 -1
- package/dist/esm/location.js +2 -2
- package/dist/esm/location.js.map +1 -1
- package/dist/esm/modern.js +1 -1
- package/dist/esm/molad.js +1 -1
- package/dist/esm/omer.js +1 -1
- package/dist/esm/parshaName.js +1 -1
- package/dist/esm/parshaYear.d.ts +2 -2
- package/dist/esm/parshaYear.js +1 -1
- package/dist/esm/parshaYear.js.map +1 -1
- package/dist/esm/pkgVersion.d.ts +1 -1
- package/dist/esm/pkgVersion.js +2 -2
- package/dist/esm/pkgVersion.js.map +1 -1
- package/dist/esm/reformatTimeStr.js +1 -1
- package/dist/esm/sedra.d.ts +5 -1
- package/dist/esm/sedra.js +9 -3
- package/dist/esm/sedra.js.map +1 -1
- package/dist/esm/staticHolidays.js +1 -2
- package/dist/esm/staticHolidays.js.map +1 -1
- package/dist/esm/tachanun.js +1 -1
- package/dist/esm/zmanim.js +1 -1
- package/dist/he-x-NoNikud.po.d.ts +2 -0
- package/dist/he.po.d.ts +1 -0
- package/dist/parshaYear.d.ts +2 -2
- package/dist/pkgVersion.d.ts +1 -1
- package/dist/po2json.d.ts +1 -0
- package/dist/po2json.js +41 -0
- package/dist/sedra.d.ts +5 -1
- package/dist/size-demo/dist/getHoliday.d.ts +1944 -0
- package/dist/size-demo/dist/getHoliday.js +3712 -0
- package/dist/size-demo/dist/parshiyot.js +10662 -0
- package/dist/size-demo/dist/sedra.d.ts +1411 -0
- package/dist/size-demo/dist/sedra.js +2359 -0
- package/dist/size-demo/dist/tachanun.d.ts +1015 -0
- package/dist/size-demo/dist/tachanun.js +1755 -0
- package/dist/size-demo/getHoliday.d.ts +1 -0
- package/dist/size-demo/getHoliday.js +3 -0
- package/dist/size-demo/parshiyot.d.ts +1 -0
- package/dist/size-demo/parshiyot.js +11 -0
- package/dist/size-demo/rollup.config.d.ts +3 -0
- package/dist/size-demo/rollup.config.js +47 -0
- package/dist/size-demo/sedra.d.ts +1 -0
- package/dist/size-demo/sedra.js +3 -0
- package/dist/size-demo/tachanun.d.ts +1 -0
- package/dist/size-demo/tachanun.js +3 -0
- package/dist/src/CalOptions.d.ts +168 -0
- package/dist/src/CalOptions.js +1 -0
- package/dist/src/DailyLearning.d.ts +32 -0
- package/dist/src/DailyLearning.js +55 -0
- package/dist/src/HebrewDateEvent.d.ts +37 -0
- package/dist/src/HebrewDateEvent.js +72 -0
- package/dist/src/HolidayEvent.d.ts +83 -0
- package/dist/src/HolidayEvent.js +186 -0
- package/dist/src/MevarchimChodeshEvent.d.ts +26 -0
- package/dist/src/MevarchimChodeshEvent.js +50 -0
- package/dist/src/ParshaEvent.d.ts +19 -0
- package/dist/src/ParshaEvent.js +43 -0
- package/dist/src/TimedEvent.d.ts +47 -0
- package/dist/src/TimedEvent.js +92 -0
- package/dist/src/YomKippurKatanEvent.d.ts +23 -0
- package/dist/src/YomKippurKatanEvent.js +38 -0
- package/dist/src/ashkenazi.po.d.ts +70 -0
- package/dist/src/ashkenazi.po.js +1 -0
- package/dist/src/calendar.d.ts +111 -0
- package/dist/src/calendar.js +660 -0
- package/dist/src/candles.d.ts +44 -0
- package/dist/src/candles.js +163 -0
- package/dist/src/event.d.ts +188 -0
- package/dist/src/event.js +233 -0
- package/dist/src/getStartAndEnd.d.ts +6 -0
- package/dist/src/getStartAndEnd.js +97 -0
- package/dist/src/hallel.d.ts +6 -0
- package/dist/src/hallel.js +47 -0
- package/dist/src/he-x-NoNikud.po.d.ts +15 -0
- package/dist/src/he-x-NoNikud.po.js +1 -0
- package/dist/src/he.po.d.ts +195 -0
- package/dist/src/he.po.js +1 -0
- package/dist/src/hebcal.d.ts +260 -0
- package/dist/src/hebcal.js +332 -0
- package/dist/src/holidays.d.ts +22 -0
- package/dist/src/holidays.js +288 -0
- package/dist/src/index.d.ts +26 -0
- package/dist/src/index.js +24 -0
- package/dist/src/isAssurBemlacha.d.ts +9 -0
- package/dist/src/isAssurBemlacha.js +62 -0
- package/dist/src/locale.d.ts +2 -0
- package/dist/src/locale.js +11 -0
- package/dist/src/location.d.ts +73 -0
- package/dist/src/location.js +306 -0
- package/dist/src/modern.d.ts +18 -0
- package/dist/src/modern.js +59 -0
- package/dist/src/molad.d.ts +62 -0
- package/dist/src/molad.js +169 -0
- package/dist/src/omer.d.ts +53 -0
- package/dist/src/omer.js +302 -0
- package/dist/src/parshaName.d.ts +2 -0
- package/dist/src/parshaName.js +13 -0
- package/dist/src/parshaYear.d.ts +9 -0
- package/dist/src/parshaYear.js +24 -0
- package/dist/src/pkgVersion.d.ts +2 -0
- package/dist/src/pkgVersion.js +2 -0
- package/dist/src/reformatTimeStr.d.ts +8 -0
- package/dist/src/reformatTimeStr.js +48 -0
- package/dist/src/sedra.d.ts +95 -0
- package/dist/src/sedra.js +477 -0
- package/dist/src/staticHolidays.d.ts +176 -0
- package/dist/src/staticHolidays.js +614 -0
- package/dist/src/tachanun.d.ts +29 -0
- package/dist/src/tachanun.js +120 -0
- package/dist/src/zmanim.d.ts +347 -0
- package/dist/src/zmanim.js +579 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +9 -0
- package/package.json +11 -8
|
@@ -0,0 +1,1411 @@
|
|
|
1
|
+
declare function mod$1(x: any, y: any): number;
|
|
2
|
+
declare function mod$1(x: any, y: any): number;
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
declare function mod$1(x: any, y: any): number;
|
|
7
|
+
declare function mod$1(x: any, y: any): number;
|
|
8
|
+
declare function quotient(x: any, y: any): number;
|
|
9
|
+
declare function quotient(x: any, y: any): number;
|
|
10
|
+
/**
|
|
11
|
+
* @private
|
|
12
|
+
*/
|
|
13
|
+
declare function quotient(x: any, y: any): number;
|
|
14
|
+
declare function quotient(x: any, y: any): number;
|
|
15
|
+
declare function yearFromFixed(abs: any): number;
|
|
16
|
+
declare function yearFromFixed(abs: any): number;
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* @param abs - R.D. number of days
|
|
20
|
+
*/
|
|
21
|
+
declare function yearFromFixed(abs: any): number;
|
|
22
|
+
declare function yearFromFixed(abs: any): number;
|
|
23
|
+
declare function isGregLeapYear(year: any): boolean;
|
|
24
|
+
declare function isGregLeapYear(year: any): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Returns true if the Gregorian year is a leap year
|
|
27
|
+
* @param year Gregorian year
|
|
28
|
+
*/
|
|
29
|
+
declare function isGregLeapYear(year: any): boolean;
|
|
30
|
+
declare function isGregLeapYear(year: any): boolean;
|
|
31
|
+
declare function daysInGregMonth(month: any, year: any): number;
|
|
32
|
+
declare function daysInGregMonth(month: any, year: any): number;
|
|
33
|
+
/**
|
|
34
|
+
* Number of days in the Gregorian month for given year
|
|
35
|
+
* @param month Gregorian month (1=January, 12=December)
|
|
36
|
+
* @param year Gregorian year
|
|
37
|
+
*/
|
|
38
|
+
declare function daysInGregMonth(month: any, year: any): number;
|
|
39
|
+
declare function daysInGregMonth(month: any, year: any): number;
|
|
40
|
+
declare function isDate(obj: any): boolean;
|
|
41
|
+
declare function isDate(obj: any): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Returns true if the object is a Javascript Date
|
|
44
|
+
*/
|
|
45
|
+
declare function isDate(obj: any): boolean;
|
|
46
|
+
declare function isDate(obj: any): boolean;
|
|
47
|
+
declare function toFixed(year: any, month: any, day: any): any;
|
|
48
|
+
declare function toFixed(year: any, month: any, day: any): any;
|
|
49
|
+
/**
|
|
50
|
+
* @private
|
|
51
|
+
* @param year
|
|
52
|
+
* @param month (1-12)
|
|
53
|
+
* @param day (1-31)
|
|
54
|
+
*/
|
|
55
|
+
declare function toFixed(year: any, month: any, day: any): any;
|
|
56
|
+
declare function toFixed(year: any, month: any, day: any): any;
|
|
57
|
+
declare function greg2abs(date: any): any;
|
|
58
|
+
declare function greg2abs(date: any): any;
|
|
59
|
+
/**
|
|
60
|
+
* Converts Gregorian date to absolute R.D. (Rata Die) days
|
|
61
|
+
* @param date Gregorian date
|
|
62
|
+
*/
|
|
63
|
+
declare function greg2abs(date: any): any;
|
|
64
|
+
declare function greg2abs(date: any): any;
|
|
65
|
+
declare function abs2greg(abs: any): Date;
|
|
66
|
+
declare function abs2greg(abs: any): Date;
|
|
67
|
+
/**
|
|
68
|
+
* Converts from Rata Die (R.D. number) to Gregorian date.
|
|
69
|
+
* See the footnote on page 384 of ``Calendrical Calculations, Part II:
|
|
70
|
+
* Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.
|
|
71
|
+
* Clamen, Software--Practice and Experience, Volume 23, Number 4
|
|
72
|
+
* (April, 1993), pages 383-404 for an explanation.
|
|
73
|
+
*
|
|
74
|
+
* Note that this function returns the daytime portion of the date.
|
|
75
|
+
* For example, the 15th of Cheshvan 5769 began at sundown on
|
|
76
|
+
* 12 November 2008 and continues through 13 November 2008. This
|
|
77
|
+
* function would return only the date 13 November 2008.
|
|
78
|
+
* @param abs - R.D. number of days
|
|
79
|
+
* @example
|
|
80
|
+
* const abs = hebrew2abs(5769, months.CHESHVAN, 15);
|
|
81
|
+
* const date = abs2greg(abs); // 13 November 2008
|
|
82
|
+
* const year = date.getFullYear(); // 2008
|
|
83
|
+
* const monthNum = date.getMonth() + 1; // 11
|
|
84
|
+
* const day = date.getDate(); // 13
|
|
85
|
+
*/
|
|
86
|
+
declare function abs2greg(abs: any): Date;
|
|
87
|
+
declare function abs2greg(abs: any): Date;
|
|
88
|
+
declare function hebrewStripNikkud(str: any): any;
|
|
89
|
+
declare function hebrewStripNikkud(str: any): any;
|
|
90
|
+
/*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
91
|
+
/**
|
|
92
|
+
* Removes niqqud from Hebrew string
|
|
93
|
+
*/
|
|
94
|
+
declare function hebrewStripNikkud(str: any): any;
|
|
95
|
+
declare function hebrewStripNikkud(str: any): any;
|
|
96
|
+
declare function assertNumber(n: any, name: any): void;
|
|
97
|
+
declare function assertNumber(n: any, name: any): void;
|
|
98
|
+
/**
|
|
99
|
+
* @private
|
|
100
|
+
*/
|
|
101
|
+
declare function assertNumber(n: any, name: any): void;
|
|
102
|
+
declare function assertNumber(n: any, name: any): void;
|
|
103
|
+
declare function hebrew2abs(year: any, month: any, day: any): number;
|
|
104
|
+
declare function hebrew2abs(year: any, month: any, day: any): number;
|
|
105
|
+
/**
|
|
106
|
+
* Converts Hebrew date to R.D. (Rata Die) fixed days.
|
|
107
|
+
* R.D. 1 is the imaginary date Monday, January 1, 1 on the Gregorian
|
|
108
|
+
* Calendar.
|
|
109
|
+
* @param year Hebrew year
|
|
110
|
+
* @param month Hebrew month
|
|
111
|
+
* @param day Hebrew date (1-30)
|
|
112
|
+
* @example
|
|
113
|
+
* const abs = hebrew2abs(5769, months.CHESHVAN, 15);
|
|
114
|
+
*/
|
|
115
|
+
declare function hebrew2abs(year: any, month: any, day: any): number;
|
|
116
|
+
declare function hebrew2abs(year: any, month: any, day: any): number;
|
|
117
|
+
declare function newYear(year: any): number;
|
|
118
|
+
declare function newYear(year: any): number;
|
|
119
|
+
/**
|
|
120
|
+
* @private
|
|
121
|
+
*/
|
|
122
|
+
declare function newYear(year: any): number;
|
|
123
|
+
declare function newYear(year: any): number;
|
|
124
|
+
declare function abs2hebrew(abs: any): {
|
|
125
|
+
yy: number;
|
|
126
|
+
mm: number;
|
|
127
|
+
dd: number;
|
|
128
|
+
};
|
|
129
|
+
declare function abs2hebrew(abs: any): {
|
|
130
|
+
yy: number;
|
|
131
|
+
mm: number;
|
|
132
|
+
dd: number;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Converts absolute R.D. days to Hebrew date
|
|
136
|
+
* @param abs absolute R.D. days
|
|
137
|
+
*/
|
|
138
|
+
declare function abs2hebrew(abs: any): {
|
|
139
|
+
yy: number;
|
|
140
|
+
mm: number;
|
|
141
|
+
dd: number;
|
|
142
|
+
};
|
|
143
|
+
declare function abs2hebrew(abs: any): {
|
|
144
|
+
yy: number;
|
|
145
|
+
mm: number;
|
|
146
|
+
dd: number;
|
|
147
|
+
};
|
|
148
|
+
declare function isLeapYear(year: any): boolean;
|
|
149
|
+
declare function isLeapYear(year: any): boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Returns true if Hebrew year is a leap year
|
|
152
|
+
* @param year Hebrew year
|
|
153
|
+
*/
|
|
154
|
+
declare function isLeapYear(year: any): boolean;
|
|
155
|
+
declare function isLeapYear(year: any): boolean;
|
|
156
|
+
declare function monthsInYear(year: any): number;
|
|
157
|
+
declare function monthsInYear(year: any): number;
|
|
158
|
+
/**
|
|
159
|
+
* Number of months in this Hebrew year (either 12 or 13 depending on leap year)
|
|
160
|
+
* @param year Hebrew year
|
|
161
|
+
*/
|
|
162
|
+
declare function monthsInYear(year: any): number;
|
|
163
|
+
declare function monthsInYear(year: any): number;
|
|
164
|
+
declare function daysInMonth(month: any, year: any): 30 | 29;
|
|
165
|
+
declare function daysInMonth(month: any, year: any): 30 | 29;
|
|
166
|
+
/**
|
|
167
|
+
* Number of days in Hebrew month in a given year (29 or 30)
|
|
168
|
+
* @param month Hebrew month (e.g. months.TISHREI)
|
|
169
|
+
* @param year Hebrew year
|
|
170
|
+
*/
|
|
171
|
+
declare function daysInMonth(month: any, year: any): 30 | 29;
|
|
172
|
+
declare function daysInMonth(month: any, year: any): 30 | 29;
|
|
173
|
+
declare function getMonthName(month: any, year: any): string;
|
|
174
|
+
declare function getMonthName(month: any, year: any): string;
|
|
175
|
+
/**
|
|
176
|
+
* Returns a transliterated string name of Hebrew month in year,
|
|
177
|
+
* for example 'Elul' or 'Cheshvan'.
|
|
178
|
+
* @param month Hebrew month (e.g. months.TISHREI)
|
|
179
|
+
* @param year Hebrew year
|
|
180
|
+
*/
|
|
181
|
+
declare function getMonthName(month: any, year: any): string;
|
|
182
|
+
declare function getMonthName(month: any, year: any): string;
|
|
183
|
+
declare function elapsedDays(year: any): number;
|
|
184
|
+
declare function elapsedDays(year: any): number;
|
|
185
|
+
/**
|
|
186
|
+
* Days from sunday prior to start of Hebrew calendar to mean
|
|
187
|
+
* conjunction of Tishrei in Hebrew YEAR
|
|
188
|
+
* @param year Hebrew year
|
|
189
|
+
*/
|
|
190
|
+
declare function elapsedDays(year: any): number;
|
|
191
|
+
declare function elapsedDays(year: any): number;
|
|
192
|
+
declare function elapsedDays0(year: any): number;
|
|
193
|
+
declare function elapsedDays0(year: any): number;
|
|
194
|
+
/**
|
|
195
|
+
* Days from sunday prior to start of Hebrew calendar to mean
|
|
196
|
+
* conjunction of Tishrei in Hebrew YEAR
|
|
197
|
+
* @private
|
|
198
|
+
* @param year Hebrew year
|
|
199
|
+
*/
|
|
200
|
+
declare function elapsedDays0(year: any): number;
|
|
201
|
+
declare function elapsedDays0(year: any): number;
|
|
202
|
+
declare function daysInYear(year: any): number;
|
|
203
|
+
declare function daysInYear(year: any): number;
|
|
204
|
+
/**
|
|
205
|
+
* Number of days in the hebrew YEAR.
|
|
206
|
+
* A common Hebrew calendar year can have a length of 353, 354 or 355 days
|
|
207
|
+
* A leap Hebrew calendar year can have a length of 383, 384 or 385 days
|
|
208
|
+
* @param year Hebrew year
|
|
209
|
+
*/
|
|
210
|
+
declare function daysInYear(year: any): number;
|
|
211
|
+
declare function daysInYear(year: any): number;
|
|
212
|
+
declare function longCheshvan(year: any): boolean;
|
|
213
|
+
declare function longCheshvan(year: any): boolean;
|
|
214
|
+
/**
|
|
215
|
+
* true if Cheshvan is long in Hebrew year
|
|
216
|
+
* @param year Hebrew year
|
|
217
|
+
*/
|
|
218
|
+
declare function longCheshvan(year: any): boolean;
|
|
219
|
+
declare function longCheshvan(year: any): boolean;
|
|
220
|
+
declare function shortKislev(year: any): boolean;
|
|
221
|
+
declare function shortKislev(year: any): boolean;
|
|
222
|
+
/**
|
|
223
|
+
* true if Kislev is short in Hebrew year
|
|
224
|
+
* @param year Hebrew year
|
|
225
|
+
*/
|
|
226
|
+
declare function shortKislev(year: any): boolean;
|
|
227
|
+
declare function shortKislev(year: any): boolean;
|
|
228
|
+
declare function monthFromName(monthName: any): number;
|
|
229
|
+
declare function monthFromName(monthName: any): number;
|
|
230
|
+
/**
|
|
231
|
+
* Converts Hebrew month string name to numeric
|
|
232
|
+
* @param monthName monthName
|
|
233
|
+
*/
|
|
234
|
+
declare function monthFromName(monthName: any): number;
|
|
235
|
+
declare function monthFromName(monthName: any): number;
|
|
236
|
+
declare function num2digits(num: any): number[];
|
|
237
|
+
declare function num2digits(num: any): number[];
|
|
238
|
+
declare function num2digits(num: any): number[];
|
|
239
|
+
declare function num2digits(num: any): number[];
|
|
240
|
+
declare function gematriya(num: any): string;
|
|
241
|
+
declare function gematriya(num: any): string;
|
|
242
|
+
/**
|
|
243
|
+
* Converts a numerical value to a string of Hebrew letters.
|
|
244
|
+
*
|
|
245
|
+
* When specifying years of the Hebrew calendar in the present millennium,
|
|
246
|
+
* we omit the thousands (which is presently 5 [ה]).
|
|
247
|
+
* @example
|
|
248
|
+
* gematriya(5774) // 'תשע״ד' - cropped to 774
|
|
249
|
+
* gematriya(25) // 'כ״ה'
|
|
250
|
+
* gematriya(60) // 'ס׳'
|
|
251
|
+
* gematriya(3761) // 'ג׳תשס״א'
|
|
252
|
+
* gematriya(1123) // 'א׳קכ״ג'
|
|
253
|
+
*/
|
|
254
|
+
declare function gematriya(num: any): string;
|
|
255
|
+
declare function gematriya(num: any): string;
|
|
256
|
+
declare function gematriyaStrToNum(str: any): number;
|
|
257
|
+
declare function gematriyaStrToNum(str: any): number;
|
|
258
|
+
/**
|
|
259
|
+
* Converts a string of Hebrew letters to a numerical value.
|
|
260
|
+
*
|
|
261
|
+
* Only considers the value of Hebrew letters `א` through `ת`.
|
|
262
|
+
* Ignores final Hebrew letters such as `ך` (kaf sofit) or `ם` (mem sofit)
|
|
263
|
+
* and vowels (nekudot).
|
|
264
|
+
*/
|
|
265
|
+
declare function gematriyaStrToNum(str: any): number;
|
|
266
|
+
declare function gematriyaStrToNum(str: any): number;
|
|
267
|
+
declare function getEnOrdinal(n: any): string;
|
|
268
|
+
declare function getEnOrdinal(n: any): string;
|
|
269
|
+
/** @private */
|
|
270
|
+
declare function getEnOrdinal(n: any): string;
|
|
271
|
+
declare function getEnOrdinal(n: any): string;
|
|
272
|
+
declare function checkLocale(locale: any): any;
|
|
273
|
+
declare function checkLocale(locale: any): any;
|
|
274
|
+
/** @private */
|
|
275
|
+
declare function checkLocale(locale: any): any;
|
|
276
|
+
declare function checkLocale(locale: any): any;
|
|
277
|
+
declare function getExistingLocale(locale: any): any;
|
|
278
|
+
declare function getExistingLocale(locale: any): any;
|
|
279
|
+
/** @private */
|
|
280
|
+
declare function getExistingLocale(locale: any): any;
|
|
281
|
+
declare function getExistingLocale(locale: any): any;
|
|
282
|
+
declare function mod(x: any, y: any): number;
|
|
283
|
+
declare function mod(x: any, y: any): number;
|
|
284
|
+
/*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
285
|
+
declare function mod(x: any, y: any): number;
|
|
286
|
+
declare function mod(x: any, y: any): number;
|
|
287
|
+
declare function isSimpleHebrewDate(obj: any): boolean;
|
|
288
|
+
declare function isSimpleHebrewDate(obj: any): boolean;
|
|
289
|
+
declare function isSimpleHebrewDate(obj: any): boolean;
|
|
290
|
+
declare function isSimpleHebrewDate(obj: any): boolean;
|
|
291
|
+
declare function standardizeUnits(units: any): "year" | "month" | "day" | "week";
|
|
292
|
+
declare function standardizeUnits(units: any): "year" | "month" | "day" | "week";
|
|
293
|
+
declare function standardizeUnits(units: any): "year" | "month" | "day" | "week";
|
|
294
|
+
declare function standardizeUnits(units: any): "year" | "month" | "day" | "week";
|
|
295
|
+
declare function getDayOfTranslation(locale: any): string;
|
|
296
|
+
declare function getDayOfTranslation(locale: any): string;
|
|
297
|
+
declare function getDayOfTranslation(locale: any): string;
|
|
298
|
+
declare function getDayOfTranslation(locale: any): string;
|
|
299
|
+
declare function setMonth(hd: any, month: any): any;
|
|
300
|
+
declare function setMonth(hd: any, month: any): any;
|
|
301
|
+
/**
|
|
302
|
+
* Sets the day of the month of the date. Returns the object it was called upon
|
|
303
|
+
* @private
|
|
304
|
+
* @param month A number, or Hebrew month name string
|
|
305
|
+
*/
|
|
306
|
+
declare function setMonth(hd: any, month: any): any;
|
|
307
|
+
declare function setMonth(hd: any, month: any): any;
|
|
308
|
+
declare function setDate(hd: any, date: any): any;
|
|
309
|
+
declare function setDate(hd: any, date: any): any;
|
|
310
|
+
declare function setDate(hd: any, date: any): any;
|
|
311
|
+
declare function setDate(hd: any, date: any): any;
|
|
312
|
+
declare function fix(hd: any): void;
|
|
313
|
+
declare function fix(hd: any): void;
|
|
314
|
+
declare function fix(hd: any): void;
|
|
315
|
+
declare function fix(hd: any): void;
|
|
316
|
+
declare function fixDate(hd: any): void;
|
|
317
|
+
declare function fixDate(hd: any): void;
|
|
318
|
+
declare function fixDate(hd: any): void;
|
|
319
|
+
declare function fixDate(hd: any): void;
|
|
320
|
+
declare function fixMonth(hd: any): void;
|
|
321
|
+
declare function fixMonth(hd: any): void;
|
|
322
|
+
declare function fixMonth(hd: any): void;
|
|
323
|
+
declare function fixMonth(hd: any): void;
|
|
324
|
+
declare function onOrBefore(day: any, t: any, offset: any): HDate;
|
|
325
|
+
declare function onOrBefore(day: any, t: any, offset: any): HDate;
|
|
326
|
+
declare function onOrBefore(day: any, t: any, offset: any): HDate;
|
|
327
|
+
declare function onOrBefore(day: any, t: any, offset: any): HDate;
|
|
328
|
+
declare function yearType(hyear: any): 2 | 0 | 1;
|
|
329
|
+
declare function yearType(hyear: any): 2 | 0 | 1;
|
|
330
|
+
declare function yearType(hyear: any): 2 | 0 | 1;
|
|
331
|
+
declare function isValidDouble(id: any): boolean;
|
|
332
|
+
declare function isValidDouble(id: any): boolean;
|
|
333
|
+
/**
|
|
334
|
+
* @private
|
|
335
|
+
* @param id a negative number
|
|
336
|
+
*/
|
|
337
|
+
declare function isValidDouble(id: any): boolean;
|
|
338
|
+
declare function D(p: any): number;
|
|
339
|
+
declare function D(p: any): number;
|
|
340
|
+
/**
|
|
341
|
+
* parsha doubler/undoubler
|
|
342
|
+
* @private
|
|
343
|
+
* @param p
|
|
344
|
+
*/
|
|
345
|
+
declare function D(p: any): number;
|
|
346
|
+
declare function range(start: any, stop: any): any[];
|
|
347
|
+
declare function range(start: any, stop: any): any[];
|
|
348
|
+
/**
|
|
349
|
+
* Returns an array from start to end
|
|
350
|
+
* @private
|
|
351
|
+
* @param start beginning number, inclusive
|
|
352
|
+
* @param stop ending number, inclusive
|
|
353
|
+
*/
|
|
354
|
+
declare function range(start: any, stop: any): any[];
|
|
355
|
+
declare function range(start: any, end: any): any[];
|
|
356
|
+
declare function getSedra(hyear: any, il: any): any;
|
|
357
|
+
declare function getSedra(hyear: any, il: any): any;
|
|
358
|
+
/**
|
|
359
|
+
* Convenience function to create an instance of `Sedra` or reuse a previously
|
|
360
|
+
* created and cached instance.
|
|
361
|
+
* @param hyear
|
|
362
|
+
* @param il
|
|
363
|
+
*/
|
|
364
|
+
declare function getSedra(hyear: any, il: any): any;
|
|
365
|
+
/*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
366
|
+
/** @private */
|
|
367
|
+
declare const lengths: number[];
|
|
368
|
+
/** @private */
|
|
369
|
+
declare const monthLengths: number[][];
|
|
370
|
+
/*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
371
|
+
/**
|
|
372
|
+
* Gregorian date helper functions
|
|
373
|
+
*/
|
|
374
|
+
declare var greg: any;
|
|
375
|
+
/*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
376
|
+
declare const NISAN: 1;
|
|
377
|
+
declare const IYYAR: 2;
|
|
378
|
+
declare const SIVAN: 3;
|
|
379
|
+
declare const TAMUZ: 4;
|
|
380
|
+
declare const AV: 5;
|
|
381
|
+
declare const ELUL: 6;
|
|
382
|
+
declare const TISHREI: 7;
|
|
383
|
+
declare const CHESHVAN: 8;
|
|
384
|
+
declare const KISLEV: 9;
|
|
385
|
+
declare const TEVET: 10;
|
|
386
|
+
declare const SHVAT: 11;
|
|
387
|
+
declare const ADAR_I: 12;
|
|
388
|
+
declare const ADAR_II: 13;
|
|
389
|
+
/**
|
|
390
|
+
* Hebrew months of the year (NISAN=1, TISHREI=7)
|
|
391
|
+
*/
|
|
392
|
+
type months = number;
|
|
393
|
+
declare namespace months {
|
|
394
|
+
let ELUL: number;
|
|
395
|
+
let TISHREI: number;
|
|
396
|
+
let ADAR_II: number;
|
|
397
|
+
}
|
|
398
|
+
declare const NISAN_STR: "Nisan";
|
|
399
|
+
declare const monthNames0: string[];
|
|
400
|
+
declare const monthNames: string[][];
|
|
401
|
+
declare const edCache: Map<any, any>;
|
|
402
|
+
declare const EPOCH: -1373428;
|
|
403
|
+
declare const AVG_HEBYEAR_DAYS: 365.24682220597794;
|
|
404
|
+
/*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
405
|
+
declare const GERESH: "\u05F3";
|
|
406
|
+
declare const GERSHAYIM: "\u05F4";
|
|
407
|
+
declare namespace heb2num {
|
|
408
|
+
let א: number;
|
|
409
|
+
let ב: number;
|
|
410
|
+
let ג: number;
|
|
411
|
+
let ד: number;
|
|
412
|
+
let ה: number;
|
|
413
|
+
let ו: number;
|
|
414
|
+
let ז: number;
|
|
415
|
+
let ח: number;
|
|
416
|
+
let ט: number;
|
|
417
|
+
let י: number;
|
|
418
|
+
let כ: number;
|
|
419
|
+
let ל: number;
|
|
420
|
+
let מ: number;
|
|
421
|
+
let נ: number;
|
|
422
|
+
let ס: number;
|
|
423
|
+
let ע: number;
|
|
424
|
+
let פ: number;
|
|
425
|
+
let צ: number;
|
|
426
|
+
let ק: number;
|
|
427
|
+
let ר: number;
|
|
428
|
+
let ש: number;
|
|
429
|
+
let ת: number;
|
|
430
|
+
}
|
|
431
|
+
declare const num2heb: {};
|
|
432
|
+
declare namespace poAshkenazi$1 {
|
|
433
|
+
let headers: {
|
|
434
|
+
"plural-forms": string;
|
|
435
|
+
language: string;
|
|
436
|
+
};
|
|
437
|
+
let contexts: {
|
|
438
|
+
"": {
|
|
439
|
+
Tevet: string[];
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
declare namespace poHe$1 {
|
|
444
|
+
let headers_1: {
|
|
445
|
+
"plural-forms": string;
|
|
446
|
+
language: string;
|
|
447
|
+
};
|
|
448
|
+
export { headers_1 as headers };
|
|
449
|
+
let contexts_1: {
|
|
450
|
+
"": {
|
|
451
|
+
Adar: string[];
|
|
452
|
+
"Adar I": string[];
|
|
453
|
+
"Adar II": string[];
|
|
454
|
+
Av: string[];
|
|
455
|
+
Cheshvan: string[];
|
|
456
|
+
Elul: string[];
|
|
457
|
+
Iyyar: string[];
|
|
458
|
+
Kislev: string[];
|
|
459
|
+
Nisan: string[];
|
|
460
|
+
"Sh'vat": string[];
|
|
461
|
+
Sivan: string[];
|
|
462
|
+
Tamuz: string[];
|
|
463
|
+
Tevet: string[];
|
|
464
|
+
Tishrei: string[];
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
export { contexts_1 as contexts };
|
|
468
|
+
}
|
|
469
|
+
declare namespace noopLocale {
|
|
470
|
+
let headers_2: {
|
|
471
|
+
'plural-forms': string;
|
|
472
|
+
};
|
|
473
|
+
export { headers_2 as headers };
|
|
474
|
+
let contexts_2: {
|
|
475
|
+
'': {};
|
|
476
|
+
};
|
|
477
|
+
export { contexts_2 as contexts };
|
|
478
|
+
}
|
|
479
|
+
declare const alias: {
|
|
480
|
+
h: string;
|
|
481
|
+
a: string;
|
|
482
|
+
s: string;
|
|
483
|
+
'': string;
|
|
484
|
+
};
|
|
485
|
+
/** @private */
|
|
486
|
+
declare const locales: Map<any, any>;
|
|
487
|
+
/**
|
|
488
|
+
* A locale in Hebcal is used for translations/transliterations of
|
|
489
|
+
* holidays. `@hebcal/hdate` supports four locales by default
|
|
490
|
+
* * `en` - default, Sephardic transliterations (e.g. "Shabbat")
|
|
491
|
+
* * `ashkenazi` - Ashkenazi transliterations (e.g. "Shabbos")
|
|
492
|
+
* * `he` - Hebrew (e.g. "שַׁבָּת")
|
|
493
|
+
* * `he-x-NoNikud` - Hebrew without nikud (e.g. "שבת")
|
|
494
|
+
*/
|
|
495
|
+
declare class Locale {
|
|
496
|
+
/**
|
|
497
|
+
* Returns translation only if `locale` offers a non-empty translation for `id`.
|
|
498
|
+
* Otherwise, returns `undefined`.
|
|
499
|
+
* @param id Message ID to translate
|
|
500
|
+
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to no-op locale.
|
|
501
|
+
*/
|
|
502
|
+
static lookupTranslation(id: any, locale?: any): any;
|
|
503
|
+
/**
|
|
504
|
+
* By default, if no translation was found, returns `id`.
|
|
505
|
+
* @param id Message ID to translate
|
|
506
|
+
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to no-op locale.
|
|
507
|
+
*/
|
|
508
|
+
static gettext(id: any, locale?: any): any;
|
|
509
|
+
/**
|
|
510
|
+
* Register locale translations.
|
|
511
|
+
* @param locale Locale name (i.e.: `'he'`, `'fr'`)
|
|
512
|
+
* @param data parsed data from a `.po` file.
|
|
513
|
+
*/
|
|
514
|
+
static addLocale(locale: any, data: any): void;
|
|
515
|
+
/**
|
|
516
|
+
* Adds a translation to `locale`, replacing any previous translation.
|
|
517
|
+
* @param locale Locale name (i.e: `'he'`, `'fr'`).
|
|
518
|
+
* @param id Message ID to translate
|
|
519
|
+
* @param translation Translation text
|
|
520
|
+
*/
|
|
521
|
+
static addTranslation(locale: any, id: any, translation: any): void;
|
|
522
|
+
/**
|
|
523
|
+
* Adds multiple translations to `locale`, replacing any previous translations.
|
|
524
|
+
* @param locale Locale name (i.e: `'he'`, `'fr'`).
|
|
525
|
+
* @param data parsed data from a `.po` file.
|
|
526
|
+
*/
|
|
527
|
+
static addTranslations(locale: any, data: any): void;
|
|
528
|
+
/**
|
|
529
|
+
* Returns the names of registered locales
|
|
530
|
+
*/
|
|
531
|
+
static getLocaleNames(): any[];
|
|
532
|
+
/**
|
|
533
|
+
* Checks whether a locale has been registered
|
|
534
|
+
* @param locale Locale name (i.e: `'he'`, `'fr'`).
|
|
535
|
+
*/
|
|
536
|
+
static hasLocale(locale: any): boolean;
|
|
537
|
+
/**
|
|
538
|
+
* Renders a number in ordinal, such as 1st, 2nd or 3rd
|
|
539
|
+
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to no-op locale.
|
|
540
|
+
*/
|
|
541
|
+
static ordinal(n: any, locale?: any): string;
|
|
542
|
+
/**
|
|
543
|
+
* Removes nekudot from Hebrew string
|
|
544
|
+
*/
|
|
545
|
+
static hebrewStripNikkud(str: any): any;
|
|
546
|
+
/**
|
|
547
|
+
* Makes a copy of entire Hebrew locale with no niqqud
|
|
548
|
+
*/
|
|
549
|
+
static copyLocaleNoNikud(data: any): {
|
|
550
|
+
headers: any;
|
|
551
|
+
contexts: {
|
|
552
|
+
'': {};
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
declare const poHeNoNikud$1: {
|
|
557
|
+
headers: any;
|
|
558
|
+
contexts: {
|
|
559
|
+
'': {};
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
declare const UNITS_DAY: "day";
|
|
563
|
+
declare const UNITS_WEEK: "week";
|
|
564
|
+
declare const UNITS_MONTH: "month";
|
|
565
|
+
declare const UNITS_YEAR: "year";
|
|
566
|
+
/**
|
|
567
|
+
* A `HDate` represents a Hebrew calendar date.
|
|
568
|
+
*
|
|
569
|
+
* An instance of this class encapsulates a date in the Hebrew calendar system.
|
|
570
|
+
* It consists of a year, month, and day, without any associated time or location data.
|
|
571
|
+
* The Hebrew calendar is a lunisolar calendar, meaning it is based on both lunar and solar cycles.
|
|
572
|
+
*
|
|
573
|
+
* A Hebrew date internally stores three numbers:
|
|
574
|
+
* - year: The Hebrew year (1-9999). Counted from the traditional Hebrew date of creation (3761 BCE in the Gregorian calendar)
|
|
575
|
+
* - month: The Hebrew month (1-13). Month 1 is Nisan, month 7 is Tishrei. There are 12 months in a regular year and 13 months in a leap year.
|
|
576
|
+
* - day: The day of the month (1-30)
|
|
577
|
+
*
|
|
578
|
+
* This class uses Rata Die to convert between the Hebrew and Gregorian calendars.
|
|
579
|
+
*
|
|
580
|
+
* To calculate times of day, use `Zmanim` class from `@hebcal/core`
|
|
581
|
+
* @see {@link https://en.wikipedia.org/wiki/Rata_Die | Rata Die}
|
|
582
|
+
* @see {@link https://hebcal.github.io/api/core/classes/Zmanim.html | Zmanim}
|
|
583
|
+
*/
|
|
584
|
+
declare class HDate {
|
|
585
|
+
/**
|
|
586
|
+
* Converts Hebrew date to R.D. (Rata Die) fixed days.
|
|
587
|
+
* R.D. 1 is the imaginary date Monday, January 1, 1 on the Gregorian
|
|
588
|
+
* Calendar.
|
|
589
|
+
* @param year Hebrew year
|
|
590
|
+
* @param month Hebrew month (1=NISAN, 7=TISHREI)
|
|
591
|
+
* @param day Hebrew date (1-30)
|
|
592
|
+
* @example
|
|
593
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
594
|
+
* HDate.hebrew2abs(5769, months.CHESHVAN, 15); // 733359
|
|
595
|
+
*/
|
|
596
|
+
static hebrew2abs(year: any, month: any, day: any): number;
|
|
597
|
+
/**
|
|
598
|
+
* Returns true if Hebrew year is a leap year
|
|
599
|
+
* @param year Hebrew year
|
|
600
|
+
* @example
|
|
601
|
+
* HDate.isLeapYear(5783); // false
|
|
602
|
+
* HDate.isLeapYear(5784); // true
|
|
603
|
+
*/
|
|
604
|
+
static isLeapYear(year: any): boolean;
|
|
605
|
+
/**
|
|
606
|
+
* Number of months in this Hebrew year (either 12 or 13 depending on leap year)
|
|
607
|
+
* @param year Hebrew year
|
|
608
|
+
* @example
|
|
609
|
+
* HDate.monthsInYear(5783); // 12
|
|
610
|
+
* HDate.monthsInYear(5784); // 13
|
|
611
|
+
*/
|
|
612
|
+
static monthsInYear(year: any): number;
|
|
613
|
+
/**
|
|
614
|
+
* Number of days in Hebrew month in a given year (29 or 30)
|
|
615
|
+
* @param month Hebrew month (e.g. months.TISHREI)
|
|
616
|
+
* @param year Hebrew year
|
|
617
|
+
* @example
|
|
618
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
619
|
+
* HDate.daysInMonth(months.CHESHVAN, 5769); // 29
|
|
620
|
+
*/
|
|
621
|
+
static daysInMonth(month: any, year: any): 30 | 29;
|
|
622
|
+
/**
|
|
623
|
+
* Returns a transliterated string name of Hebrew month in year,
|
|
624
|
+
* for example 'Elul' or 'Cheshvan'.
|
|
625
|
+
* @param month Hebrew month (e.g. months.TISHREI)
|
|
626
|
+
* @param year Hebrew year
|
|
627
|
+
* @example
|
|
628
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
629
|
+
* HDate.getMonthName(months.CHESHVAN, 5769); // 'Cheshvan'
|
|
630
|
+
*/
|
|
631
|
+
static getMonthName(month: any, year: any): string;
|
|
632
|
+
/**
|
|
633
|
+
* Returns the Hebrew month number (NISAN=1, TISHREI=7)
|
|
634
|
+
* @param month A number, or Hebrew month name string
|
|
635
|
+
* @example
|
|
636
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
637
|
+
* HDate.monthNum(months.CHESHVAN); // 8
|
|
638
|
+
* HDate.monthNum('Cheshvan'); // 8
|
|
639
|
+
* HDate.monthNum('חשון'); // 8
|
|
640
|
+
*/
|
|
641
|
+
static monthNum(month: any): number;
|
|
642
|
+
/**
|
|
643
|
+
* Number of days in the Hebrew year.
|
|
644
|
+
* Regular years can have 353, 354, or 355 days.
|
|
645
|
+
* Leap years can have 383, 384, or 385 days.
|
|
646
|
+
* @param year Hebrew year
|
|
647
|
+
* @example
|
|
648
|
+
* HDate.daysInYear(5783); // 355
|
|
649
|
+
* HDate.daysInYear(5784); // 383
|
|
650
|
+
*/
|
|
651
|
+
static daysInYear(year: any): number;
|
|
652
|
+
/**
|
|
653
|
+
* true if Cheshvan is long in Hebrew year
|
|
654
|
+
* @param year Hebrew year
|
|
655
|
+
* @example
|
|
656
|
+
* HDate.longCheshvan(5783); // true
|
|
657
|
+
* HDate.longCheshvan(5784); // false
|
|
658
|
+
*/
|
|
659
|
+
static longCheshvan(year: any): boolean;
|
|
660
|
+
/**
|
|
661
|
+
* true if Kislev is short in Hebrew year
|
|
662
|
+
* @param year Hebrew year
|
|
663
|
+
* @example
|
|
664
|
+
* HDate.shortKislev(5783); // false
|
|
665
|
+
* HDate.shortKislev(5784); // true
|
|
666
|
+
*/
|
|
667
|
+
static shortKislev(year: any): boolean;
|
|
668
|
+
/**
|
|
669
|
+
* Converts Hebrew month string name to numeric
|
|
670
|
+
* @example
|
|
671
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
672
|
+
* HDate.monthFromName(months.CHESHVAN); // 8
|
|
673
|
+
* HDate.monthFromName('Cheshvan'); // 8
|
|
674
|
+
* HDate.monthFromName('חשון'); // 8
|
|
675
|
+
*/
|
|
676
|
+
static monthFromName(monthName: any): number;
|
|
677
|
+
/**
|
|
678
|
+
* Convenience function for determining the R.D. date
|
|
679
|
+
* near a specified R.D. date, corresponding to the specified day of week.
|
|
680
|
+
*
|
|
681
|
+
* Note: Applying this function to d+6 gives us the `dayOfWeek` on or after an
|
|
682
|
+
* absolute day d. Similarly, applying it to d+3 gives the `dayOfWeek` nearest to
|
|
683
|
+
* absolute date d, applying it to d-1 gives the `dayOfWeek` previous to absolute
|
|
684
|
+
* date d, and applying it to d+7 gives the `dayOfWeek` following absolute date d.
|
|
685
|
+
* @param dayOfWeek day of week: Sunday=0, Saturday=6
|
|
686
|
+
*/
|
|
687
|
+
static dayOnOrBefore(dayOfWeek: any, absdate: any): number;
|
|
688
|
+
/**
|
|
689
|
+
* Tests if the object is an instance of `HDate`
|
|
690
|
+
* @example
|
|
691
|
+
* HDate.isHDate(new HDate()); // true
|
|
692
|
+
* HDate.isHDate(new Date()); // false
|
|
693
|
+
* HDate.isHDate(null); // false
|
|
694
|
+
* HDate.isHDate(12345); // false
|
|
695
|
+
* HDate.isHDate('15 Cheshvan 5769'); // false
|
|
696
|
+
*/
|
|
697
|
+
static isHDate(obj: any): boolean;
|
|
698
|
+
/**
|
|
699
|
+
* Construct a new instance of `HDate` from a Gematriya-formatted string
|
|
700
|
+
* @example
|
|
701
|
+
* HDate.fromGematriyaString('כ״ז בְּתַמּוּז תשפ״ג') // 27 Tamuz 5783
|
|
702
|
+
* HDate.fromGematriyaString('כ׳ סיון תש״ד') // 20 Sivan 5704
|
|
703
|
+
* HDate.fromGematriyaString('ה׳ אִיָיר תש״ח') // 5 Iyyar 5708
|
|
704
|
+
*/
|
|
705
|
+
static fromGematriyaString(str: any, currentThousands?: number): HDate;
|
|
706
|
+
/**
|
|
707
|
+
* Create a Hebrew date. There are 3 basic forms for the `HDate()` constructor.
|
|
708
|
+
*
|
|
709
|
+
* 1. No parameters - represents the current Hebrew date at time of instantiation
|
|
710
|
+
* 2. One parameter
|
|
711
|
+
* * `Date` - represents the Hebrew date corresponding to the Gregorian date using
|
|
712
|
+
* local time. Hours, minutes, seconds and milliseconds are ignored.
|
|
713
|
+
* * `HDate` - clones a copy of the given Hebrew date
|
|
714
|
+
* * `number` - Converts absolute R.D. days to Hebrew date.
|
|
715
|
+
* R.D. 1 == the imaginary date January 1, 1 (Gregorian)
|
|
716
|
+
* 3. Three parameters: Hebrew day, Hebrew month, Hebrew year. Hebrew day should
|
|
717
|
+
* be a number between 1-30, Hebrew month can be a number or string, and
|
|
718
|
+
* Hebrew year is always a number.
|
|
719
|
+
* @example
|
|
720
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
721
|
+
*
|
|
722
|
+
* const hd1 = new HDate();
|
|
723
|
+
* const hd2 = new HDate(new Date(2008, 10, 13));
|
|
724
|
+
* const hd3 = new HDate(15, 'Cheshvan', 5769);
|
|
725
|
+
* const hd4 = new HDate(15, months.CHESHVAN, 5769);
|
|
726
|
+
* const hd5 = new HDate(733359); // ==> 15 Cheshvan 5769
|
|
727
|
+
* const monthName = 'אייר';
|
|
728
|
+
* const hd6 = new HDate(5, monthName, 5773);
|
|
729
|
+
* @param [day] - Day of month (1-30) if a `number`.
|
|
730
|
+
* If a `Date` is specified, represents the Hebrew date corresponding to the
|
|
731
|
+
* Gregorian date using local time.
|
|
732
|
+
* If an `HDate` is specified, clones a copy of the given Hebrew date.
|
|
733
|
+
* @param [month] - Hebrew month of year (1=NISAN, 7=TISHREI)
|
|
734
|
+
* @param [year] - Hebrew year
|
|
735
|
+
*/
|
|
736
|
+
constructor(day?: any, month?: any, year?: any, ...args: any[]);
|
|
737
|
+
dd: any;
|
|
738
|
+
mm: any;
|
|
739
|
+
yy: any;
|
|
740
|
+
rd: number | undefined;
|
|
741
|
+
/**
|
|
742
|
+
* Returns the Hebrew year of this Hebrew date
|
|
743
|
+
* @returns an integer >= 1
|
|
744
|
+
* @example
|
|
745
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
746
|
+
* hd.getFullYear(); // 5769
|
|
747
|
+
*/
|
|
748
|
+
getFullYear(): any;
|
|
749
|
+
/**
|
|
750
|
+
* Returns `true` if this Hebrew date occurs during a Hebrew leap year
|
|
751
|
+
* @example
|
|
752
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
753
|
+
* hd.isLeapYear(); // false
|
|
754
|
+
*/
|
|
755
|
+
isLeapYear(): boolean;
|
|
756
|
+
/**
|
|
757
|
+
* Returns the Hebrew month (1=NISAN, 7=TISHREI) of this Hebrew date
|
|
758
|
+
* @returns an integer 1-13
|
|
759
|
+
* @example
|
|
760
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
761
|
+
* hd.getMonth(); // 8
|
|
762
|
+
*/
|
|
763
|
+
getMonth(): any;
|
|
764
|
+
/**
|
|
765
|
+
* The Tishrei-based month of this Hebrew date. 1 is Tishrei, 7 is Nisan, 13 is Elul in a leap year
|
|
766
|
+
* @returns an integer 1-13
|
|
767
|
+
* @example
|
|
768
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
769
|
+
* hd.getTishreiMonth(); // 2
|
|
770
|
+
*/
|
|
771
|
+
getTishreiMonth(): number;
|
|
772
|
+
/**
|
|
773
|
+
* Number of days in the month of this Hebrew date (29 or 30)
|
|
774
|
+
* @returns an integer 29-30
|
|
775
|
+
* @example
|
|
776
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
777
|
+
* hd.daysInMonth(); // 29
|
|
778
|
+
*/
|
|
779
|
+
daysInMonth(): 30 | 29;
|
|
780
|
+
/**
|
|
781
|
+
* Gets the day within the month (1-30)
|
|
782
|
+
* @returns an integer 1-30
|
|
783
|
+
* @example
|
|
784
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
785
|
+
* hd.getDate(); // 15
|
|
786
|
+
*/
|
|
787
|
+
getDate(): any;
|
|
788
|
+
/**
|
|
789
|
+
* Returns the day of the week for this Hebrew date,
|
|
790
|
+
* where 0 represents Sunday, 1 represents Monday, 6 represents Saturday.
|
|
791
|
+
*
|
|
792
|
+
* For the day of the month, see `getDate()`
|
|
793
|
+
* @returns an integer 0-6
|
|
794
|
+
* @example
|
|
795
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
796
|
+
* hd.getDate(); // 4
|
|
797
|
+
*/
|
|
798
|
+
getDay(): number;
|
|
799
|
+
/**
|
|
800
|
+
* Converts this Hebrew date to the corresponding Gregorian date.
|
|
801
|
+
*
|
|
802
|
+
* The returned `Date` object will be in the local (i.e. host system) time zone.
|
|
803
|
+
* Hours, minutes, seconds and milliseconds will all be zero.
|
|
804
|
+
*
|
|
805
|
+
* Note that this function returns the daytime portion of the date.
|
|
806
|
+
* For example, the 15th of Cheshvan 5769 began at sundown on
|
|
807
|
+
* 12 November 2008 and continues through 13 November 2008. This
|
|
808
|
+
* function would return only the date 13 November 2008.
|
|
809
|
+
* @example
|
|
810
|
+
* const hd = new HDate(15, 'Cheshvan', 5769);
|
|
811
|
+
* const date = hd.greg(); // 13 November 2008
|
|
812
|
+
* const year = date.getFullYear(); // 2008
|
|
813
|
+
* const monthNum = date.getMonth() + 1; // 11
|
|
814
|
+
* const day = date.getDate(); // 13
|
|
815
|
+
*/
|
|
816
|
+
greg(): Date;
|
|
817
|
+
/**
|
|
818
|
+
* Converts from Hebrew date representation to R.D. (Rata Die) fixed days.
|
|
819
|
+
* R.D. 1 is the imaginary date Monday, January 1, 1 (Gregorian).
|
|
820
|
+
* Note also that R.D. = Julian Date − 1,721,424.5
|
|
821
|
+
* @see {@link https://en.wikipedia.org/wiki/Rata_Die | Rata Die}
|
|
822
|
+
* @example
|
|
823
|
+
* const hd = new HDate(15, 'Cheshvan', 5769);
|
|
824
|
+
* hd.abs(); // 733359
|
|
825
|
+
*/
|
|
826
|
+
abs(): number;
|
|
827
|
+
/**
|
|
828
|
+
* Returns a transliterated Hebrew month name, e.g. `'Elul'` or `'Cheshvan'`.
|
|
829
|
+
* @example
|
|
830
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
831
|
+
* hd.getMonthName(); // 'Cheshvan'
|
|
832
|
+
*/
|
|
833
|
+
getMonthName(): string;
|
|
834
|
+
/**
|
|
835
|
+
* Renders this Hebrew date as a translated or transliterated string,
|
|
836
|
+
* including ordinal e.g. `'15th of Cheshvan, 5769'`.
|
|
837
|
+
* @example
|
|
838
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
839
|
+
*
|
|
840
|
+
* const hd = new HDate(15, months.CHESHVAN, 5769);
|
|
841
|
+
* console.log(hd.render('en')); // '15th of Cheshvan, 5769'
|
|
842
|
+
* console.log(hd.render('he')); // '15 חֶשְׁוָן, 5769'
|
|
843
|
+
* console.log(hd.render('en', false)); // '15th of Cheshvan'
|
|
844
|
+
* console.log(hd.render('he', false)); // '15 חֶשְׁוָן'
|
|
845
|
+
* @param [locale] Optional locale name (defaults to active locale).
|
|
846
|
+
* @param [showYear=true] Display year (defaults to true).
|
|
847
|
+
* @see {@link Locale}
|
|
848
|
+
*/
|
|
849
|
+
render(locale?: any, showYear?: boolean | undefined): string;
|
|
850
|
+
/**
|
|
851
|
+
* Renders this Hebrew date in Hebrew gematriya, regardless of locale.
|
|
852
|
+
* @param suppressNikud - suppress nekudot (default false)
|
|
853
|
+
* @param suppressYear - suppress Hebrew year (default false)
|
|
854
|
+
* @example
|
|
855
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
856
|
+
* const hd = new HDate(15, months.CHESHVAN, 5769);
|
|
857
|
+
* hd.renderGematriya(); // 'ט״ו חֶשְׁוָן תשס״ט'
|
|
858
|
+
* hd.renderGematriya(true); // 'ט״ו חשון תשס״ט'
|
|
859
|
+
* hd.renderGematriya(false, true); // 'ט״ו חֶשְׁוָן'
|
|
860
|
+
*/
|
|
861
|
+
renderGematriya(suppressNikud?: boolean, suppressYear?: boolean): string;
|
|
862
|
+
/**
|
|
863
|
+
* Returns an `HDate` corresponding to the specified day of week
|
|
864
|
+
* **before** this Hebrew date
|
|
865
|
+
* @example
|
|
866
|
+
* new HDate(new Date('Wednesday February 19, 2014')).before(6).greg() // Sat Feb 15 2014
|
|
867
|
+
* @param dayOfWeek day of week: Sunday=0, Saturday=6
|
|
868
|
+
*/
|
|
869
|
+
before(dayOfWeek: any): HDate;
|
|
870
|
+
/**
|
|
871
|
+
* Returns an `HDate` corresponding to the specified day of week
|
|
872
|
+
* **on or before** this Hebrew date
|
|
873
|
+
* @example
|
|
874
|
+
* new HDate(new Date('Wednesday February 19, 2014')).onOrBefore(6).greg() // Sat Feb 15 2014
|
|
875
|
+
* new HDate(new Date('Saturday February 22, 2014')).onOrBefore(6).greg() // Sat Feb 22 2014
|
|
876
|
+
* new HDate(new Date('Sunday February 23, 2014')).onOrBefore(6).greg() // Sat Feb 22 2014
|
|
877
|
+
* @param dayOfWeek day of week: Sunday=0, Saturday=6
|
|
878
|
+
*/
|
|
879
|
+
onOrBefore(dayOfWeek: any): HDate;
|
|
880
|
+
/**
|
|
881
|
+
* Returns an `HDate` corresponding to the specified day of week
|
|
882
|
+
* **nearest** to this Hebrew date
|
|
883
|
+
* @example
|
|
884
|
+
* new HDate(new Date('Wednesday February 19, 2014')).nearest(6).greg() // Sat Feb 22 2014
|
|
885
|
+
* new HDate(new Date('Tuesday February 18, 2014')).nearest(6).greg() // Sat Feb 15 2014
|
|
886
|
+
* @param dayOfWeek day of week: Sunday=0, Saturday=6
|
|
887
|
+
*/
|
|
888
|
+
nearest(dayOfWeek: any): HDate;
|
|
889
|
+
/**
|
|
890
|
+
* Returns an `HDate` corresponding to the specified day of week
|
|
891
|
+
* **on or after** this Hebrew date
|
|
892
|
+
* @example
|
|
893
|
+
* new HDate(new Date('Wednesday February 19, 2014')).onOrAfter(6).greg() // Sat Feb 22 2014
|
|
894
|
+
* new HDate(new Date('Saturday February 22, 2014')).onOrAfter(6).greg() // Sat Feb 22 2014
|
|
895
|
+
* new HDate(new Date('Sunday February 23, 2014')).onOrAfter(6).greg() // Sat Mar 01 2014
|
|
896
|
+
* @param dayOfWeek day of week: Sunday=0, Saturday=6
|
|
897
|
+
*/
|
|
898
|
+
onOrAfter(dayOfWeek: any): HDate;
|
|
899
|
+
/**
|
|
900
|
+
* Returns an `HDate` corresponding to the specified day of week
|
|
901
|
+
* **after** this Hebrew date
|
|
902
|
+
* @example
|
|
903
|
+
* new HDate(new Date('Wednesday February 19, 2014')).after(6).greg() // Sat Feb 22 2014
|
|
904
|
+
* new HDate(new Date('Saturday February 22, 2014')).after(6).greg() // Sat Mar 01 2014
|
|
905
|
+
* new HDate(new Date('Sunday February 23, 2014')).after(6).greg() // Sat Mar 01 2014
|
|
906
|
+
* @param dayOfWeek day of week: Sunday=0, Saturday=6
|
|
907
|
+
*/
|
|
908
|
+
after(dayOfWeek: any): HDate;
|
|
909
|
+
/**
|
|
910
|
+
* Returns the next Hebrew date
|
|
911
|
+
* @example
|
|
912
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
913
|
+
* hd.next(); // '16 Cheshvan 5769'
|
|
914
|
+
*/
|
|
915
|
+
next(): HDate;
|
|
916
|
+
/**
|
|
917
|
+
* Returns the previous Hebrew date
|
|
918
|
+
* @example
|
|
919
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
920
|
+
* hd.prev(); // '14 Cheshvan 5769'
|
|
921
|
+
*/
|
|
922
|
+
prev(): HDate;
|
|
923
|
+
/**
|
|
924
|
+
* Returns a cloned `HDate` object with a specified amount of time added
|
|
925
|
+
*
|
|
926
|
+
* Units are case insensitive, and support plural and short forms.
|
|
927
|
+
* Note, short forms are case sensitive.
|
|
928
|
+
*
|
|
929
|
+
* | Unit | Shorthand | Description
|
|
930
|
+
* | --- | --- | --- |
|
|
931
|
+
* | `day` | `d` | days |
|
|
932
|
+
* | `week` | `w` | weeks |
|
|
933
|
+
* | `month` | `M` | months |
|
|
934
|
+
* | `year` | `y` | years |
|
|
935
|
+
*/
|
|
936
|
+
add(amount: any, units?: string): HDate;
|
|
937
|
+
/**
|
|
938
|
+
* Returns a cloned `HDate` object with a specified amount of time subracted
|
|
939
|
+
*
|
|
940
|
+
* Units are case insensitive, and support plural and short forms.
|
|
941
|
+
* Note, short forms are case sensitive.
|
|
942
|
+
*
|
|
943
|
+
* | Unit | Shorthand | Description
|
|
944
|
+
* | --- | --- | --- |
|
|
945
|
+
* | `day` | `d` | days |
|
|
946
|
+
* | `week` | `w` | weeks |
|
|
947
|
+
* | `month` | `M` | months |
|
|
948
|
+
* | `year` | `y` | years |
|
|
949
|
+
* @example
|
|
950
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
951
|
+
*
|
|
952
|
+
* const hd1 = new HDate(15, months.CHESHVAN, 5769);
|
|
953
|
+
* const hd2 = hd1.add(1, 'weeks'); // 7 Kislev 5769
|
|
954
|
+
* const hd3 = hd1.add(-3, 'M'); // 30 Av 5768
|
|
955
|
+
*/
|
|
956
|
+
subtract(amount: any, units?: string): HDate;
|
|
957
|
+
/**
|
|
958
|
+
* Returns the difference in days between the two given HDates.
|
|
959
|
+
*
|
|
960
|
+
* The result is positive if `this` date is comes chronologically
|
|
961
|
+
* after the `other` date, and negative
|
|
962
|
+
* if the order of the two dates is reversed.
|
|
963
|
+
*
|
|
964
|
+
* The result is zero if the two dates are identical.
|
|
965
|
+
* @example
|
|
966
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
967
|
+
*
|
|
968
|
+
* const hd1 = new HDate(25, months.KISLEV, 5770);
|
|
969
|
+
* const hd2 = new HDate(15, months.CHESHVAN, 5769);
|
|
970
|
+
* const days = hd1.deltaDays(hd2); // 394
|
|
971
|
+
* @param other Hebrew date to compare
|
|
972
|
+
*/
|
|
973
|
+
deltaDays(other: any): number;
|
|
974
|
+
/**
|
|
975
|
+
* Compares this Hebrew date to another date, returning `true` if the dates match.
|
|
976
|
+
* @param other Hebrew date to compare
|
|
977
|
+
* @example
|
|
978
|
+
* const hd1 = new HDate(new Date(2008, 10, 13));
|
|
979
|
+
* const hd2 = new HDate(15, 'Cheshvan', 5769);
|
|
980
|
+
* hd1.isSameDate(hd2); // true
|
|
981
|
+
*/
|
|
982
|
+
isSameDate(other: any): boolean;
|
|
983
|
+
/**
|
|
984
|
+
* Returns a string representation of this Hebrew date using English transliterations
|
|
985
|
+
* @example
|
|
986
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
987
|
+
* hd.toString(); // '15 Cheshvan 5769'
|
|
988
|
+
*/
|
|
989
|
+
toString(): string;
|
|
990
|
+
}
|
|
991
|
+
declare class QuickLRU extends Map<any, any> {
|
|
992
|
+
constructor(options?: {});
|
|
993
|
+
get __oldCache(): Map<any, any>;
|
|
994
|
+
get(key: any): any;
|
|
995
|
+
set(key: any, value: any, { maxAge }?: {
|
|
996
|
+
maxAge?: any;
|
|
997
|
+
}): this;
|
|
998
|
+
has(key: any): boolean;
|
|
999
|
+
peek(key: any): any;
|
|
1000
|
+
expiresIn(key: any): number | undefined;
|
|
1001
|
+
delete(key: any): boolean;
|
|
1002
|
+
resize(newSize: any): void;
|
|
1003
|
+
evict(count?: number): void;
|
|
1004
|
+
keys(): Generator<any, void, unknown>;
|
|
1005
|
+
values(): Generator<any, void, unknown>;
|
|
1006
|
+
entriesDescending(): Generator<any[], void, unknown>;
|
|
1007
|
+
entriesAscending(): Generator<any[], void, unknown>;
|
|
1008
|
+
get maxSize(): any;
|
|
1009
|
+
get maxAge(): any;
|
|
1010
|
+
entries(): Generator<any[], void, unknown>;
|
|
1011
|
+
forEach(callbackFunction: any, thisArgument?: this): void;
|
|
1012
|
+
[Symbol.iterator](): Generator<any[], void, unknown>;
|
|
1013
|
+
#private;
|
|
1014
|
+
}
|
|
1015
|
+
declare namespace poAshkenazi {
|
|
1016
|
+
let headers_3: {
|
|
1017
|
+
"plural-forms": string;
|
|
1018
|
+
language: string;
|
|
1019
|
+
};
|
|
1020
|
+
export { headers_3 as headers };
|
|
1021
|
+
let contexts_3: {
|
|
1022
|
+
"": {
|
|
1023
|
+
Shabbat: string[];
|
|
1024
|
+
"Achrei Mot": string[];
|
|
1025
|
+
Bechukotai: string[];
|
|
1026
|
+
"Beha'alotcha": string[];
|
|
1027
|
+
Bereshit: string[];
|
|
1028
|
+
Chukat: string[];
|
|
1029
|
+
"Erev Shavuot": string[];
|
|
1030
|
+
"Erev Sukkot": string[];
|
|
1031
|
+
"Ki Tavo": string[];
|
|
1032
|
+
"Ki Teitzei": string[];
|
|
1033
|
+
"Ki Tisa": string[];
|
|
1034
|
+
Matot: string[];
|
|
1035
|
+
"Pesach Shabbat Chol ha-Moed": string[];
|
|
1036
|
+
"Purim Katan": string[];
|
|
1037
|
+
"Shabbat Chazon": string[];
|
|
1038
|
+
"Shabbat HaChodesh": string[];
|
|
1039
|
+
"Shabbat HaGadol": string[];
|
|
1040
|
+
"Shabbat Nachamu": string[];
|
|
1041
|
+
"Shabbat Parah": string[];
|
|
1042
|
+
"Shabbat Shekalim": string[];
|
|
1043
|
+
"Shabbat Shuva": string[];
|
|
1044
|
+
"Shabbat Zachor": string[];
|
|
1045
|
+
Shavuot: string[];
|
|
1046
|
+
"Shavuot I": string[];
|
|
1047
|
+
"Shavuot II": string[];
|
|
1048
|
+
Shemot: string[];
|
|
1049
|
+
"Shmini Atzeret": string[];
|
|
1050
|
+
"Simchat Torah": string[];
|
|
1051
|
+
Sukkot: string[];
|
|
1052
|
+
"Sukkot I": string[];
|
|
1053
|
+
"Sukkot II": string[];
|
|
1054
|
+
"Sukkot II (CH''M)": string[];
|
|
1055
|
+
"Sukkot III (CH''M)": string[];
|
|
1056
|
+
"Sukkot IV (CH''M)": string[];
|
|
1057
|
+
"Sukkot V (CH''M)": string[];
|
|
1058
|
+
"Sukkot VI (CH''M)": string[];
|
|
1059
|
+
"Sukkot VII (Hoshana Raba)": string[];
|
|
1060
|
+
"Sukkot Shabbat Chol ha-Moed": string[];
|
|
1061
|
+
"Ta'anit Bechorot": string[];
|
|
1062
|
+
"Ta'anit Esther": string[];
|
|
1063
|
+
Toldot: string[];
|
|
1064
|
+
Vaetchanan: string[];
|
|
1065
|
+
Yitro: string[];
|
|
1066
|
+
"Vezot Haberakhah": string[];
|
|
1067
|
+
Parashat: string[];
|
|
1068
|
+
"Leil Selichot": string[];
|
|
1069
|
+
"Shabbat Mevarchim Chodesh": string[];
|
|
1070
|
+
"Shabbat Shirah": string[];
|
|
1071
|
+
"Asara B'Tevet": string[];
|
|
1072
|
+
"Alot HaShachar": string[];
|
|
1073
|
+
"Kriat Shema, sof zeman": string[];
|
|
1074
|
+
"Tefilah, sof zeman": string[];
|
|
1075
|
+
"Kriat Shema, sof zeman (MGA)": string[];
|
|
1076
|
+
"Tefilah, sof zeman (MGA)": string[];
|
|
1077
|
+
"Chatzot HaLailah": string[];
|
|
1078
|
+
"Chatzot hayom": string[];
|
|
1079
|
+
"Tzeit HaKochavim": string[];
|
|
1080
|
+
"Birkat Hachamah": string[];
|
|
1081
|
+
"Shushan Purim Katan": string[];
|
|
1082
|
+
};
|
|
1083
|
+
};
|
|
1084
|
+
export { contexts_3 as contexts };
|
|
1085
|
+
}
|
|
1086
|
+
declare namespace poHe {
|
|
1087
|
+
let headers_4: {
|
|
1088
|
+
"plural-forms": string;
|
|
1089
|
+
language: string;
|
|
1090
|
+
};
|
|
1091
|
+
export { headers_4 as headers };
|
|
1092
|
+
let contexts_4: {
|
|
1093
|
+
"": {
|
|
1094
|
+
Shabbat: string[];
|
|
1095
|
+
Parashat: string[];
|
|
1096
|
+
"Achrei Mot": string[];
|
|
1097
|
+
Balak: string[];
|
|
1098
|
+
Bamidbar: string[];
|
|
1099
|
+
Bechukotai: string[];
|
|
1100
|
+
"Beha'alotcha": string[];
|
|
1101
|
+
Behar: string[];
|
|
1102
|
+
Bereshit: string[];
|
|
1103
|
+
Beshalach: string[];
|
|
1104
|
+
Bo: string[];
|
|
1105
|
+
"Chayei Sara": string[];
|
|
1106
|
+
Chukat: string[];
|
|
1107
|
+
Devarim: string[];
|
|
1108
|
+
Eikev: string[];
|
|
1109
|
+
Emor: string[];
|
|
1110
|
+
"Ha'azinu": string[];
|
|
1111
|
+
Kedoshim: string[];
|
|
1112
|
+
"Ki Tavo": string[];
|
|
1113
|
+
"Ki Teitzei": string[];
|
|
1114
|
+
"Ki Tisa": string[];
|
|
1115
|
+
Korach: string[];
|
|
1116
|
+
"Lech-Lecha": string[];
|
|
1117
|
+
Masei: string[];
|
|
1118
|
+
Matot: string[];
|
|
1119
|
+
Metzora: string[];
|
|
1120
|
+
Miketz: string[];
|
|
1121
|
+
Mishpatim: string[];
|
|
1122
|
+
Nasso: string[];
|
|
1123
|
+
Nitzavim: string[];
|
|
1124
|
+
Noach: string[];
|
|
1125
|
+
Pekudei: string[];
|
|
1126
|
+
Pinchas: string[];
|
|
1127
|
+
"Re'eh": string[];
|
|
1128
|
+
"Sh'lach": string[];
|
|
1129
|
+
Shemot: string[];
|
|
1130
|
+
Shmini: string[];
|
|
1131
|
+
Shoftim: string[];
|
|
1132
|
+
Tazria: string[];
|
|
1133
|
+
Terumah: string[];
|
|
1134
|
+
Tetzaveh: string[];
|
|
1135
|
+
Toldot: string[];
|
|
1136
|
+
Tzav: string[];
|
|
1137
|
+
Vaera: string[];
|
|
1138
|
+
Vaetchanan: string[];
|
|
1139
|
+
Vayakhel: string[];
|
|
1140
|
+
Vayechi: string[];
|
|
1141
|
+
Vayeilech: string[];
|
|
1142
|
+
Vayera: string[];
|
|
1143
|
+
Vayeshev: string[];
|
|
1144
|
+
Vayetzei: string[];
|
|
1145
|
+
Vayigash: string[];
|
|
1146
|
+
Vayikra: string[];
|
|
1147
|
+
Vayishlach: string[];
|
|
1148
|
+
"Vezot Haberakhah": string[];
|
|
1149
|
+
Yitro: string[];
|
|
1150
|
+
"Asara B'Tevet": string[];
|
|
1151
|
+
"Candle lighting": string[];
|
|
1152
|
+
Chanukah: string[];
|
|
1153
|
+
"Chanukah: 1 Candle": string[];
|
|
1154
|
+
"Chanukah: 2 Candles": string[];
|
|
1155
|
+
"Chanukah: 3 Candles": string[];
|
|
1156
|
+
"Chanukah: 4 Candles": string[];
|
|
1157
|
+
"Chanukah: 5 Candles": string[];
|
|
1158
|
+
"Chanukah: 6 Candles": string[];
|
|
1159
|
+
"Chanukah: 7 Candles": string[];
|
|
1160
|
+
"Chanukah: 8 Candles": string[];
|
|
1161
|
+
"Chanukah: 8th Day": string[];
|
|
1162
|
+
"Days of the Omer": string[];
|
|
1163
|
+
Omer: string[];
|
|
1164
|
+
"day of the Omer": string[];
|
|
1165
|
+
"Erev Pesach": string[];
|
|
1166
|
+
"Erev Purim": string[];
|
|
1167
|
+
"Erev Rosh Hashana": string[];
|
|
1168
|
+
"Erev Shavuot": string[];
|
|
1169
|
+
"Erev Simchat Torah": string[];
|
|
1170
|
+
"Erev Sukkot": string[];
|
|
1171
|
+
"Erev Tish'a B'Av": string[];
|
|
1172
|
+
"Erev Yom Kippur": string[];
|
|
1173
|
+
Havdalah: string[];
|
|
1174
|
+
"Lag BaOmer": string[];
|
|
1175
|
+
"Leil Selichot": string[];
|
|
1176
|
+
Pesach: string[];
|
|
1177
|
+
"Pesach I": string[];
|
|
1178
|
+
"Pesach II": string[];
|
|
1179
|
+
"Pesach II (CH''M)": string[];
|
|
1180
|
+
"Pesach III (CH''M)": string[];
|
|
1181
|
+
"Pesach IV (CH''M)": string[];
|
|
1182
|
+
"Pesach Sheni": string[];
|
|
1183
|
+
"Pesach V (CH''M)": string[];
|
|
1184
|
+
"Pesach VI (CH''M)": string[];
|
|
1185
|
+
"Pesach VII": string[];
|
|
1186
|
+
"Pesach VIII": string[];
|
|
1187
|
+
"Pesach Shabbat Chol ha-Moed": string[];
|
|
1188
|
+
Purim: string[];
|
|
1189
|
+
"Purim Katan": string[];
|
|
1190
|
+
"Rosh Chodesh %s": string[];
|
|
1191
|
+
"Rosh Chodesh": string[];
|
|
1192
|
+
"Rosh Hashana": string[];
|
|
1193
|
+
"Rosh Hashana I": string[];
|
|
1194
|
+
"Rosh Hashana II": string[];
|
|
1195
|
+
"Shabbat Chazon": string[];
|
|
1196
|
+
"Shabbat HaChodesh": string[];
|
|
1197
|
+
"Shabbat HaGadol": string[];
|
|
1198
|
+
"Shabbat Nachamu": string[];
|
|
1199
|
+
"Shabbat Parah": string[];
|
|
1200
|
+
"Shabbat Shekalim": string[];
|
|
1201
|
+
"Shabbat Shuva": string[];
|
|
1202
|
+
"Shabbat Zachor": string[];
|
|
1203
|
+
Shavuot: string[];
|
|
1204
|
+
"Shavuot I": string[];
|
|
1205
|
+
"Shavuot II": string[];
|
|
1206
|
+
"Shmini Atzeret": string[];
|
|
1207
|
+
"Shushan Purim": string[];
|
|
1208
|
+
Sigd: string[];
|
|
1209
|
+
"Simchat Torah": string[];
|
|
1210
|
+
Sukkot: string[];
|
|
1211
|
+
"Sukkot I": string[];
|
|
1212
|
+
"Sukkot II": string[];
|
|
1213
|
+
"Sukkot II (CH''M)": string[];
|
|
1214
|
+
"Sukkot III (CH''M)": string[];
|
|
1215
|
+
"Sukkot IV (CH''M)": string[];
|
|
1216
|
+
"Sukkot V (CH''M)": string[];
|
|
1217
|
+
"Sukkot VI (CH''M)": string[];
|
|
1218
|
+
"Sukkot VII (Hoshana Raba)": string[];
|
|
1219
|
+
"Sukkot Shabbat Chol ha-Moed": string[];
|
|
1220
|
+
"Ta'anit Bechorot": string[];
|
|
1221
|
+
"Ta'anit Esther": string[];
|
|
1222
|
+
"Tish'a B'Av": string[];
|
|
1223
|
+
"Tu B'Av": string[];
|
|
1224
|
+
"Tu BiShvat": string[];
|
|
1225
|
+
"Tu B'Shvat": string[];
|
|
1226
|
+
"Tzom Gedaliah": string[];
|
|
1227
|
+
"Tzom Tammuz": string[];
|
|
1228
|
+
"Yom HaAtzma'ut": string[];
|
|
1229
|
+
"Yom HaShoah": string[];
|
|
1230
|
+
"Yom HaZikaron": string[];
|
|
1231
|
+
"Yom Kippur": string[];
|
|
1232
|
+
"Yom Yerushalayim": string[];
|
|
1233
|
+
"Yom HaAliyah": string[];
|
|
1234
|
+
"Yom HaAliyah School Observance": string[];
|
|
1235
|
+
"Rosh Chodesh Adar": string[];
|
|
1236
|
+
"Rosh Chodesh Adar I": string[];
|
|
1237
|
+
"Rosh Chodesh Adar II": string[];
|
|
1238
|
+
"Rosh Chodesh Av": string[];
|
|
1239
|
+
"Rosh Chodesh Cheshvan": string[];
|
|
1240
|
+
"Rosh Chodesh Elul": string[];
|
|
1241
|
+
"Rosh Chodesh Iyyar": string[];
|
|
1242
|
+
"Rosh Chodesh Kislev": string[];
|
|
1243
|
+
"Rosh Chodesh Nisan": string[];
|
|
1244
|
+
"Rosh Chodesh Sh'vat": string[];
|
|
1245
|
+
"Rosh Chodesh Sivan": string[];
|
|
1246
|
+
"Rosh Chodesh Tamuz": string[];
|
|
1247
|
+
"Rosh Chodesh Tammuz": string[];
|
|
1248
|
+
"Rosh Chodesh Tevet": string[];
|
|
1249
|
+
min: string[];
|
|
1250
|
+
"Fast begins": string[];
|
|
1251
|
+
"Fast ends": string[];
|
|
1252
|
+
"Rosh Hashana LaBehemot": string[];
|
|
1253
|
+
"Tish'a B'Av (observed)": string[];
|
|
1254
|
+
"Shabbat Mevarchim Chodesh": string[];
|
|
1255
|
+
"Shabbat Shirah": string[];
|
|
1256
|
+
Lovingkindness: string[];
|
|
1257
|
+
Might: string[];
|
|
1258
|
+
Beauty: string[];
|
|
1259
|
+
Eternity: string[];
|
|
1260
|
+
Splendor: string[];
|
|
1261
|
+
Foundation: string[];
|
|
1262
|
+
Majesty: string[];
|
|
1263
|
+
day: string[];
|
|
1264
|
+
"Yom Kippur Katan": string[];
|
|
1265
|
+
Yizkor: string[];
|
|
1266
|
+
"Family Day": string[];
|
|
1267
|
+
"Yitzhak Rabin Memorial Day": string[];
|
|
1268
|
+
"Jabotinsky Day": string[];
|
|
1269
|
+
"Herzl Day": string[];
|
|
1270
|
+
"Ben-Gurion Day": string[];
|
|
1271
|
+
"Hebrew Language Day": string[];
|
|
1272
|
+
"Birkat Hachamah": string[];
|
|
1273
|
+
"Shushan Purim Katan": string[];
|
|
1274
|
+
"Purim Meshulash": string[];
|
|
1275
|
+
"Chag HaBanot": string[];
|
|
1276
|
+
Molad: string[];
|
|
1277
|
+
chalakim: string[];
|
|
1278
|
+
};
|
|
1279
|
+
};
|
|
1280
|
+
export { contexts_4 as contexts };
|
|
1281
|
+
}
|
|
1282
|
+
declare namespace noNikudOverride {
|
|
1283
|
+
let headers_5: {
|
|
1284
|
+
"plural-forms": string;
|
|
1285
|
+
language: string;
|
|
1286
|
+
};
|
|
1287
|
+
export { headers_5 as headers };
|
|
1288
|
+
let contexts_5: {
|
|
1289
|
+
"": {
|
|
1290
|
+
Korach: string[];
|
|
1291
|
+
Chukat: string[];
|
|
1292
|
+
"Yom Kippur": string[];
|
|
1293
|
+
"Yom Kippur Katan": string[];
|
|
1294
|
+
};
|
|
1295
|
+
};
|
|
1296
|
+
export { contexts_5 as contexts };
|
|
1297
|
+
}
|
|
1298
|
+
declare const poHeNoNikud: {
|
|
1299
|
+
headers: any;
|
|
1300
|
+
contexts: {
|
|
1301
|
+
'': {};
|
|
1302
|
+
};
|
|
1303
|
+
};
|
|
1304
|
+
/*! @hebcal/core v6.0.7, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
1305
|
+
declare const INCOMPLETE: 0;
|
|
1306
|
+
declare const REGULAR: 1;
|
|
1307
|
+
declare const COMPLETE: 2;
|
|
1308
|
+
/**
|
|
1309
|
+
* Represents Parashah HaShavua for an entire Hebrew year
|
|
1310
|
+
*/
|
|
1311
|
+
declare class Sedra {
|
|
1312
|
+
/**
|
|
1313
|
+
* Caculates the Parashah HaShavua for an entire Hebrew year
|
|
1314
|
+
* @param hyear - Hebrew year (e.g. 5749)
|
|
1315
|
+
* @param il - Use Israel sedra schedule (false for Diaspora)
|
|
1316
|
+
*/
|
|
1317
|
+
constructor(hyear: any, il: any);
|
|
1318
|
+
year: any;
|
|
1319
|
+
rh: number;
|
|
1320
|
+
firstSaturday: number;
|
|
1321
|
+
il: boolean;
|
|
1322
|
+
theSedraArray: any;
|
|
1323
|
+
yearKey: string;
|
|
1324
|
+
/**
|
|
1325
|
+
* Returns the date that a parsha occurs
|
|
1326
|
+
* or `null` if the parsha doesn't occur this year
|
|
1327
|
+
* @param parsha if a `string`, specified with Sephardic transliterations
|
|
1328
|
+
* like `'Noach'` or `'Matot-Masei'`. If an array, must be a 1- or 2-element
|
|
1329
|
+
* array such as `['Noach']` or `['Matot', 'Masei']`. If a `number`, should
|
|
1330
|
+
* be a 0-based parsha index (`0` for Bereshit, `1` for Noach) or a negative
|
|
1331
|
+
* number for a doubled parsha (e.g. `-21` for Vayakhel-Pekudei)
|
|
1332
|
+
*/
|
|
1333
|
+
find(parsha: any): any;
|
|
1334
|
+
findInternal(parsha: any): HDate | null;
|
|
1335
|
+
/**
|
|
1336
|
+
* Returns the date that a parsha (or its doubled or undoubled counterpart)
|
|
1337
|
+
* occurs, or `null` if the parsha doesn't occur this year
|
|
1338
|
+
*/
|
|
1339
|
+
findContaining(parsha: any): any;
|
|
1340
|
+
/**
|
|
1341
|
+
* Returns the underlying annual sedra schedule.
|
|
1342
|
+
* Used by `@hebcal/triennial`
|
|
1343
|
+
*/
|
|
1344
|
+
getSedraArray(): any;
|
|
1345
|
+
/**
|
|
1346
|
+
* R.D. date of the first Saturday on or after Rosh Hashana
|
|
1347
|
+
*/
|
|
1348
|
+
getFirstSaturday(): number;
|
|
1349
|
+
getYear(): any;
|
|
1350
|
+
/**
|
|
1351
|
+
* Returns an object describing the parsha on the first Saturday on or after `hd`
|
|
1352
|
+
* @param hd Hebrew date or R.D. days
|
|
1353
|
+
*/
|
|
1354
|
+
lookup(hd: any): any;
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* The 54 parshiyot of the Torah as transilterated strings.
|
|
1358
|
+
* * parshiot[0] == `Bereshit`
|
|
1359
|
+
* * parshiot[1] == `Noach`
|
|
1360
|
+
* * parshiot[52] == `Ha'azinu`
|
|
1361
|
+
* * parshiot[53] == `Vezot Haberakhah`
|
|
1362
|
+
* @readonly
|
|
1363
|
+
* @type {string[]}
|
|
1364
|
+
*/
|
|
1365
|
+
declare const parshiot: string[];
|
|
1366
|
+
declare const parsha2id: Map<any, any>;
|
|
1367
|
+
declare const doubles: number[];
|
|
1368
|
+
declare const RH: "Rosh Hashana";
|
|
1369
|
+
declare const YK: "Yom Kippur";
|
|
1370
|
+
declare const SUKKOT: "Sukkot";
|
|
1371
|
+
declare const CHMSUKOT: "Sukkot Shabbat Chol ha-Moed";
|
|
1372
|
+
declare const SHMINI: "Shmini Atzeret";
|
|
1373
|
+
declare const PESACH: "Pesach";
|
|
1374
|
+
declare const PESACH1: "Pesach I";
|
|
1375
|
+
declare const CHMPESACH: "Pesach Shabbat Chol ha-Moed";
|
|
1376
|
+
declare const PESACH7: "Pesach VII";
|
|
1377
|
+
declare const PESACH8: "Pesach VIII";
|
|
1378
|
+
declare const SHAVUOT: "Shavuot";
|
|
1379
|
+
declare const yearStartVayeilech: (string | number)[];
|
|
1380
|
+
declare const yearStartHaazinu: (string | number)[];
|
|
1381
|
+
declare const yearStartRH: (string | number)[];
|
|
1382
|
+
declare const r020: any[];
|
|
1383
|
+
declare const r027: any[];
|
|
1384
|
+
declare const r3340: any[];
|
|
1385
|
+
declare const r4349: any[];
|
|
1386
|
+
declare const r4350: any[];
|
|
1387
|
+
/**
|
|
1388
|
+
* The ordinary year types (keviot)
|
|
1389
|
+
* names are leap/nonleap - day - incomplete/regular/complete - diaspora/Israel
|
|
1390
|
+
* @private
|
|
1391
|
+
* @readonly
|
|
1392
|
+
*/
|
|
1393
|
+
declare const types: {
|
|
1394
|
+
'020': (string | number)[];
|
|
1395
|
+
'0220': (string | number)[];
|
|
1396
|
+
'0510': (string | number)[];
|
|
1397
|
+
'0511': (string | number)[];
|
|
1398
|
+
'052': (string | number)[];
|
|
1399
|
+
'070': (string | number)[];
|
|
1400
|
+
'072': (string | number)[];
|
|
1401
|
+
'1200': (string | number)[];
|
|
1402
|
+
'1201': (string | number)[];
|
|
1403
|
+
'1220': (string | number)[];
|
|
1404
|
+
'1221': (string | number)[];
|
|
1405
|
+
'150': (string | number)[];
|
|
1406
|
+
'152': (string | number)[];
|
|
1407
|
+
'170': (string | number)[];
|
|
1408
|
+
'1720': (string | number)[];
|
|
1409
|
+
};
|
|
1410
|
+
declare const sedraCache: QuickLRU;
|
|
1411
|
+
declare const sedra: any;
|