@hebcal/core 6.3.3 → 6.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/bundle.js +5066 -5073
  2. package/dist/bundle.js.map +1 -1
  3. package/dist/bundle.min.js +17 -17
  4. package/dist/bundle.min.js.map +1 -1
  5. package/dist/esm/DailyLearning.js +1 -1
  6. package/dist/esm/HebrewDateEvent.js +1 -1
  7. package/dist/esm/HolidayEvent.js +1 -1
  8. package/dist/esm/MevarchimChodeshEvent.js +1 -1
  9. package/dist/esm/ParshaEvent.js +1 -1
  10. package/dist/esm/TimedEvent.js +1 -1
  11. package/dist/esm/YomKippurKatanEvent.js +1 -1
  12. package/dist/esm/ashkenazi.po.js +1 -1
  13. package/dist/esm/calendar.js +1 -1
  14. package/dist/esm/candles.js +1 -1
  15. package/dist/esm/event.js +1 -1
  16. package/dist/esm/getStartAndEnd.js +1 -1
  17. package/dist/esm/hallel.js +1 -1
  18. package/dist/esm/he-x-NoNikud.po.js +1 -1
  19. package/dist/esm/he.po.js +2 -2
  20. package/dist/esm/he.po.js.map +1 -1
  21. package/dist/esm/hebcal.js +1 -1
  22. package/dist/esm/holidays.js +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/esm/isAssurBemlacha.js +1 -1
  25. package/dist/esm/locale.js +1 -1
  26. package/dist/esm/location.js +1 -1
  27. package/dist/esm/modern.js +1 -1
  28. package/dist/esm/molad.d.ts +1 -1
  29. package/dist/esm/molad.js +2 -2
  30. package/dist/esm/molad.js.map +1 -1
  31. package/dist/esm/moladBase.js +1 -1
  32. package/dist/esm/moladDate.d.ts +1 -1
  33. package/dist/esm/moladDate.js +2 -2
  34. package/dist/esm/moladDate.js.map +1 -1
  35. package/dist/esm/omer.js +1 -1
  36. package/dist/esm/parshaName.js +1 -1
  37. package/dist/esm/parshaYear.js +1 -1
  38. package/dist/esm/pkgVersion.d.ts +1 -1
  39. package/dist/esm/pkgVersion.js +2 -2
  40. package/dist/esm/pkgVersion.js.map +1 -1
  41. package/dist/esm/reformatTimeStr.js +1 -1
  42. package/dist/esm/sedra.js +1 -1
  43. package/dist/esm/sefira.json.js +1 -1
  44. package/dist/esm/staticHolidays.js +1 -1
  45. package/dist/esm/tachanun.js +1 -1
  46. package/dist/esm/temporal-shim.d.ts +1 -0
  47. package/dist/esm/temporal-shim.js +11 -0
  48. package/dist/esm/temporal-shim.js.map +1 -0
  49. package/dist/esm/zmanim.d.ts +1 -1
  50. package/dist/esm/zmanim.js +2 -2
  51. package/dist/esm/zmanim.js.map +1 -1
  52. package/dist/src/he.po.js +1 -1
  53. package/dist/src/molad.d.ts +1 -1
  54. package/dist/src/molad.js +1 -1
  55. package/dist/src/moladDate.d.ts +1 -1
  56. package/dist/src/moladDate.js +1 -1
  57. package/dist/src/pkgVersion.d.ts +1 -1
  58. package/dist/src/pkgVersion.js +1 -1
  59. package/dist/src/temporal-shim.d.ts +1 -0
  60. package/dist/src/temporal-shim.js +8 -0
  61. package/dist/src/zmanim.d.ts +1 -1
  62. package/dist/src/zmanim.js +1 -1
  63. package/package.json +5 -5
@@ -0,0 +1,11 @@
1
+ /*! @hebcal/core v6.4.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
2
+ import { Temporal } from 'temporal-polyfill';
3
+
4
+ /// <reference types="temporal-polyfill/global" />
5
+ // Install the polyfill only when the runtime does not already provide a
6
+ // native `Temporal` global (e.g. Node.js >= 26, future browsers).
7
+ if (typeof globalThis.Temporal === 'undefined') {
8
+ globalThis.Temporal =
9
+ Temporal;
10
+ }
11
+ //# sourceMappingURL=temporal-shim.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"temporal-shim.js","sources":["../../../src/temporal-shim.ts"],"sourcesContent":["/// <reference types=\"temporal-polyfill/global\" />\nimport {Temporal as TemporalPolyfill} from 'temporal-polyfill';\n\n// Install the polyfill only when the runtime does not already provide a\n// native `Temporal` global (e.g. Node.js >= 26, future browsers).\nif (typeof (globalThis as {Temporal?: unknown}).Temporal === 'undefined') {\n (globalThis as unknown as {Temporal: typeof TemporalPolyfill}).Temporal =\n TemporalPolyfill;\n}\n"],"names":["TemporalPolyfill"],"mappings":";;;AAAA;AAGA;AACA;AACA,IAAI,OAAQ,UAAmC,CAAC,QAAQ,KAAK,WAAW,EAAE;AACvE,IAAA,UAA6D,CAAC,QAAQ;AACrE,QAAAA,QAAgB;AACpB"}
@@ -1,4 +1,4 @@
1
- import 'temporal-polyfill/global';
1
+ import './temporal-shim';
2
2
  import { GeoLocation } from '@hebcal/noaa';
3
3
  import { HDate } from '@hebcal/hdate';
4
4
  /**
@@ -1,5 +1,5 @@
1
- /*! @hebcal/core v6.3.3, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
2
- import 'temporal-polyfill/global';
1
+ /*! @hebcal/core v6.4.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
2
+ import './temporal-shim.js';
3
3
  import { NOAACalculator } from '@hebcal/noaa';
4
4
  import { HDate, isDate, getTimezoneOffset, pad2, getPseudoISO } from '@hebcal/hdate';
5
5
  import { Molad } from './molad.js';
@@ -1 +1 @@
1
- {"version":3,"file":"zmanim.js","sources":["../../../src/zmanim.ts"],"sourcesContent":["import 'temporal-polyfill/global';\nimport {GeoLocation, NOAACalculator} from '@hebcal/noaa';\nimport {\n HDate,\n getPseudoISO,\n getTimezoneOffset,\n isDate,\n pad2,\n} from '@hebcal/hdate';\nimport {Molad} from './molad';\n\n/**\n * @private\n */\nfunction zdtToDate(zdt: Temporal.ZonedDateTime | null): Date {\n if (zdt === null) {\n return new Date(NaN);\n }\n const res = new Date(zdt.epochMilliseconds);\n res.setMilliseconds(0);\n return res;\n}\n\n/**\n * The zenith of astronomical sunrise and sunset. The sun is 90&deg; from the vertical 0&deg;\n */\nconst GEOMETRIC_ZENITH: number = 90;\n\n/**\n * The zenith of 1.583&deg; below {@link GEOMETRIC_ZENITH geometric zenith} (90&deg;). This calculation is used for\n * calculating _netz amiti_ (sunrise) and _shkiah amiti_ (sunset) based on the opinion of the\n * <a href=\"https://en.wikipedia.org/wiki/Shneur_Zalman_of_Liadi\">Baal Hatanya</a>.\n *\n * @see Zmanim.sunriseBaalHatanya()\n * @see Zmanim.sunsetBaalHatanya()\n */\nconst ZENITH_1_POINT_583: number = GEOMETRIC_ZENITH + 1.583;\n\n/**\n * Calculate halachic times (zmanim / זְמַנִּים) for a given day and location.\n * Calculations are available for tzeit / tzais (nightfall),\n * shkiah (sunset) and more.\n *\n * Zmanim are estimated using an algorithm published by the US National Oceanic\n * and Atmospheric Administration. The NOAA solar calculator is based on equations\n * from _Astronomical Algorithms_ by Jean Meeus.\n *\n * The sunrise and sunset results are theoretically accurate to within a minute for\n * locations between +/- 72° latitude, and within 10 minutes outside of those latitudes.\n * However, due to variations in atmospheric composition, temperature, pressure and\n * conditions, observed values may vary from calculations.\n * https://gml.noaa.gov/grad/solcalc/calcdetails.html\n *\n * @example\n * const {GeoLocation, Zmanim} = require('@hebcal/core');\n * const latitude = 41.822232;\n * const longitude = -71.448292;\n * const tzid = 'America/New_York';\n * const friday = new Date(2023, 8, 8);\n * const gloc = new GeoLocation(null, latitude, longitude, 0, tzid);\n * const zmanim = new Zmanim(gloc, friday, false);\n * const candleLighting = zmanim.sunsetOffset(-18, true);\n * const timeStr = Zmanim.formatISOWithTimeZone(tzid, candleLighting);\n */\nexport class Zmanim {\n private readonly hdate: HDate;\n private readonly plainDate: Temporal.PlainDate;\n private readonly gloc: GeoLocation;\n private readonly noaa: NOAACalculator;\n private useElevation: boolean;\n /**\n * Initialize a Zmanim instance.\n * @param gloc GeoLocation including latitude, longitude, and timezone\n * @param date Regular or Hebrew Date. If `date` is a regular `Date`,\n * hours, minutes, seconds and milliseconds are ignored.\n * @param useElevation use elevation for calculations (default `false`).\n * If `true`, use elevation to affect the calculation of all sunrise/sunset based\n * zmanim. Note: there are some zmanim such as degree-based zmanim that are driven\n * by the amount of light in the sky and are not impacted by elevation.\n * These zmanim intentionally do not support elevation adjustment.\n */\n constructor(gloc: GeoLocation, date: Date | HDate, useElevation: boolean) {\n this.hdate = new HDate(date);\n const dt = isDate(date) ? date : this.hdate.greg();\n this.plainDate = Temporal.PlainDate.from({\n year: dt.getFullYear(),\n month: dt.getMonth() + 1,\n day: dt.getDate(),\n });\n this.gloc = gloc;\n this.noaa = new NOAACalculator(gloc, this.plainDate);\n this.useElevation = Boolean(useElevation);\n }\n /**\n * Returns `true` if elevation adjustment is enabled\n * for zmanim support elevation adjustment\n */\n getUseElevation(): boolean {\n return this.useElevation;\n }\n /**\n * Enables or disables elevation adjustment for zmanim support elevation adjustment\n * @param useElevation\n */\n setUseElevation(useElevation: boolean) {\n this.useElevation = useElevation;\n }\n /**\n * Convenience function to get the time when sun is above or below the horizon\n * for a certain angle (in degrees).\n * This function does not support elevation adjustment.\n * @param angle\n * @param rising\n */\n timeAtAngle(angle: number, rising: boolean): Date {\n const offsetZenith = GEOMETRIC_ZENITH + angle;\n const zdt = rising\n ? this.noaa.getSunriseOffsetByDegrees(offsetZenith)\n : this.noaa.getSunsetOffsetByDegrees(offsetZenith);\n return zdtToDate(zdt);\n }\n /**\n * Upper edge of the Sun appears over the eastern horizon in the morning (0.833° above horizon)\n * If elevation is enabled, this function will include elevation in the calculation.\n */\n sunrise(): Date {\n const zdt = this.useElevation\n ? this.noaa.getSunrise()\n : this.noaa.getSeaLevelSunrise();\n return zdtToDate(zdt);\n }\n /**\n * Upper edge of the Sun appears over the eastern horizon in the morning (0.833° above horizon).\n * This function does not support elevation adjustment.\n */\n seaLevelSunrise(): Date {\n const zdt = this.noaa.getSeaLevelSunrise();\n return zdtToDate(zdt);\n }\n /**\n * When the upper edge of the Sun disappears below the horizon (0.833° below horizon).\n * If elevation is enabled, this function will include elevation in the calculation.\n */\n sunset(): Date {\n const zdt = this.useElevation\n ? this.noaa.getSunset()\n : this.noaa.getSeaLevelSunset();\n return zdtToDate(zdt);\n }\n /**\n * When the upper edge of the Sun disappears below the horizon (0.833° below horizon).\n * This function does not support elevation adjustment.\n */\n seaLevelSunset(): Date {\n const zdt = this.noaa.getSeaLevelSunset();\n return zdtToDate(zdt);\n }\n /**\n * Civil dawn; Sun is 6° below the horizon in the morning.\n * Because degree-based functions estimate the amount of light in the sky,\n * the result is not impacted by elevation.\n */\n dawn(): Date {\n const zdt = this.noaa.getBeginCivilTwilight();\n return zdtToDate(zdt);\n }\n /**\n * Civil dusk; Sun is 6° below the horizon in the evening.\n * Because degree-based functions estimate the amount of light in the sky,\n * the result is not impacted by elevation.\n */\n dusk(): Date {\n const zdt = this.noaa.getEndCivilTwilight();\n return zdtToDate(zdt);\n }\n /**\n * Returns sunset for the previous day.\n * If elevation is enabled, this function will include elevation in the calculation.\n */\n gregEve(): Date {\n const prev0 = this.plainDate.subtract({days: 1});\n const prev = new Date(prev0.year, prev0.month - 1, prev0.day);\n const zman = new Zmanim(this.gloc, prev, this.useElevation);\n return zman.sunset();\n }\n /**\n * @private\n */\n nightHour(): number {\n return (this.sunrise().getTime() - this.gregEve().getTime()) / 12; // ms in hour\n }\n /**\n * Midday – Chatzot; Sunrise plus 6 halachic hours\n */\n chatzot(): Date {\n const startOfDay = this.noaa.getSeaLevelSunrise();\n const endOfDay = this.noaa.getSeaLevelSunset();\n const zdt = this.noaa.getSunTransit(startOfDay, endOfDay);\n return zdtToDate(zdt);\n }\n /**\n * Midnight – Chatzot; Sunset plus 6 halachic hours.\n * If elevation is enabled, this function will include elevation in the calculation.\n */\n chatzotNight(): Date {\n return new Date(this.sunrise().getTime() - this.nightHour() * 6);\n }\n /**\n * Dawn – Alot haShachar; Sun is 16.1° below the horizon in the morning.\n * Because degree-based functions estimate the amount of light in the sky,\n * the result is not impacted by elevation.\n */\n alotHaShachar(): Date {\n return this.timeAtAngle(16.1, true);\n }\n /**\n * Dawn – Alot haShachar; calculated as 72 minutes before sunrise or\n * sea level sunrise.\n */\n alotHaShachar72(): Date {\n return this.sunriseOffset(-72, false, false);\n }\n alotHaShachar72zdt(): Temporal.ZonedDateTime | null {\n const zdt = this.useElevation\n ? this.noaa.getSunrise()\n : this.noaa.getSeaLevelSunrise();\n if (!zdt) {\n return null;\n }\n return zdt.subtract({minutes: 72});\n }\n\n /**\n * Earliest talis & tefillin – Misheyakir; Sun is 11.5° below the horizon in the morning.\n * Because degree-based functions estimate the amount of light in the sky,\n * the result is not impacted by elevation.\n */\n misheyakir(): Date {\n return this.timeAtAngle(11.5, true);\n }\n /**\n * Earliest talis & tefillin – Misheyakir Machmir; Sun is 10.2° below the horizon in the morning.\n * Because degree-based functions estimate the amount of light in the sky,\n * the result is not impacted by elevation.\n */\n misheyakirMachmir(): Date {\n return this.timeAtAngle(10.2, true);\n }\n private getShaahZmanisBasedZmanZdt(\n startOfDay: Temporal.ZonedDateTime | null,\n endOfDay: Temporal.ZonedDateTime | null,\n hours: number\n ): Temporal.ZonedDateTime | null {\n const temporalHour = this.noaa.getTemporalHour(startOfDay, endOfDay);\n const offset = Math.trunc(temporalHour * hours);\n const zdt = NOAACalculator.getTimeOffset(startOfDay, offset);\n return zdt;\n }\n /**\n * Utility method for using elevation-aware sunrise/sunset\n * @private\n * @param hours\n */\n private getShaahZmanisBasedZman(hours: number): Date {\n const startOfDay = this.useElevation\n ? this.noaa.getSunrise()\n : this.noaa.getSeaLevelSunrise();\n const endOfDay = this.useElevation\n ? this.noaa.getSunset()\n : this.noaa.getSeaLevelSunset();\n const zdt = this.getShaahZmanisBasedZmanZdt(startOfDay, endOfDay, hours);\n return zdtToDate(zdt);\n }\n /**\n * Latest Shema (Gra); Sunrise plus 3 halachic hours, according to the Gra.\n * If elevation is enabled, this function will include elevation in the calculation.\n */\n sofZmanShma(): Date {\n // Gra\n return this.getShaahZmanisBasedZman(3);\n }\n /**\n * Latest Shacharit (Gra); Sunrise plus 4 halachic hours, according to the Gra.\n *\n * This method returns the latest *zman tfila* (time to recite shema in the morning)\n * that is 4 *shaos zmaniyos* (solar hours) after sunrise or sea level sunrise\n * (depending on the `useElevation` setting), according\n * to the [GRA](https://en.wikipedia.org/wiki/Vilna_Gaon).\n *\n * If elevation is enabled, this function will include elevation in the calculation.\n */\n sofZmanTfilla(): Date {\n // Gra\n return this.getShaahZmanisBasedZman(4);\n }\n /**\n * This method returns the latest time for burning _chametz_ on _Erev Pesach_ according to the opinion\n * of the <a href=\"https://en.wikipedia.org/wiki/Vilna_Gaon\">GRA</a>. This time is 5 hours into the day based on the\n * opinion of the <a href=\"https://en.wikipedia.org/wiki/Vilna_Gaon\">GRA</a> that the day is calculated from\n * sunrise to sunset. This returns the time 5 * {@link #getShaahZmanisGra()} after {@link #getSeaLevelSunrise() sea\n * level sunrise}.\n * @return the <code>Date</code> of the latest time for burning _chametz_ on _Erev Pesach_. If it is not\n * _erev Pesach_ or the calculation can't be computed such as in the Arctic Circle where there is at least\n * one day a year where the sun does not rise, and one where it does not set, a <code>null</code> will be\n * returned.\n */\n sofZmanBiurChametzGRA(): Date {\n return this.getShaahZmanisBasedZman(5);\n }\n /**\n * Returns an array with alot (Date) and ms in hour (number)\n * @private\n */\n getTemporalHour72(forceSeaLevel: boolean): [Date, number] {\n const alot72 = this.sunriseOffset(-72, false, forceSeaLevel);\n const tzeit72 = this.sunsetOffset(72, false, forceSeaLevel);\n const temporalHour = (tzeit72.getTime() - alot72.getTime()) / 12;\n return [alot72, temporalHour];\n }\n /**\n * Returns an array with alot (Date) and ms in hour (number)\n * @private\n */\n getTemporalHourByDeg(angle: number): [Date, number] {\n const alot = this.timeAtAngle(angle, true);\n const tzeit = this.timeAtAngle(angle, false);\n const temporalHour = (tzeit.getTime() - alot.getTime()) / 12;\n return [alot, temporalHour];\n }\n /**\n * Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham.\n * Based on the opinion of the MGA that the day is calculated from\n * dawn being fixed 72 minutes before sea-level sunrise, and nightfall is fixed\n * 72 minutes after sea-level sunset.\n */\n sofZmanShmaMGA(): Date {\n // Magen Avraham\n const [alot72, temporalHour] = this.getTemporalHour72(true);\n const offset = Math.floor(3 * temporalHour);\n return new Date(alot72.getTime() + offset);\n }\n /**\n * Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham.\n * Based on the opinion of the MGA that the day is calculated from\n * dawn to nightfall with both being 16.1° below the horizon.\n */\n sofZmanShmaMGA16Point1(): Date {\n const [alot, temporalHour] = this.getTemporalHourByDeg(16.1);\n const offset = Math.floor(3 * temporalHour);\n return new Date(alot.getTime() + offset);\n }\n /**\n * Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham.\n * Based on the opinion of the MGA that the day is calculated from\n * dawn to nightfall with both being 19.8° below the horizon.\n *\n * This calculation is based on the position of the sun 90 minutes after sunset in Jerusalem\n * around the equinox / equilux which calculates to 19.8° below geometric zenith.\n * https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/\n */\n sofZmanShmaMGA19Point8(): Date {\n const [alot, temporalHour] = this.getTemporalHourByDeg(19.8);\n const offset = Math.floor(3 * temporalHour);\n return new Date(alot.getTime() + offset);\n }\n /**\n * Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham\n */\n sofZmanTfillaMGA(): Date {\n // Magen Avraham\n const [alot72, temporalHour] = this.getTemporalHour72(true);\n const offset = Math.floor(4 * temporalHour);\n return new Date(alot72.getTime() + offset);\n }\n /**\n * Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham.\n * Based on the opinion of the MGA that the day is calculated from\n * dawn to nightfall with both being 16.1° below the horizon.\n */\n sofZmanTfillaMGA16Point1(): Date {\n const [alot, temporalHour] = this.getTemporalHourByDeg(16.1);\n const offset = Math.floor(4 * temporalHour);\n return new Date(alot.getTime() + offset);\n }\n /**\n * Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham.\n * Based on the opinion of the MGA that the day is calculated from\n * dawn to nightfall with both being 19.8° below the horizon.\n *\n * This calculation is based on the position of the sun 90 minutes after sunset in Jerusalem\n * around the equinox / equilux which calculates to 19.8° below geometric zenith.\n * https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/\n */\n sofZmanTfillaMGA19Point8(): Date {\n const [alot, temporalHour] = this.getTemporalHourByDeg(19.8);\n const offset = Math.floor(4 * temporalHour);\n return new Date(alot.getTime() + offset);\n }\n /**\n * Earliest Mincha – Mincha Gedola (GRA); Sunrise plus 6.5 halachic hours.\n * If elevation is enabled, this function will include elevation in the calculation.\n *\n * This method returns the latest mincha gedola, the earliest time one can pray mincha\n * that is 6.5 shaos zmaniyos (solar hours) after sunrise or sea level sunrise\n * (depending on the `useElevation` setting), according\n * to the [GRA](https://en.wikipedia.org/wiki/Vilna_Gaon).\n *\n * The Ramba\"m is of the opinion that it is better to delay *mincha* until\n * *mincha ketana* while the Ra\"sh, Tur, GRA and others are of the\n * opinion that *mincha* can be prayed *lechatchila* starting at *mincha gedola*.\n */\n minchaGedola(): Date {\n return this.getShaahZmanisBasedZman(6.5);\n }\n /**\n * Earliest Mincha – Mincha Gedola (MGA); Sunrise plus 6.5 halachic hours.\n * If elevation is enabled, this function will include elevation in the calculation.\n *\n * This method returns the time of *mincha gedola* according to the Magen Avraham\n * with the day starting 72 minutes before sunrise and ending 72 minutes after sunset.\n * This is the earliest time to pray *mincha*.\n */\n minchaGedolaMGA(): Date {\n const [alot72, temporalHour] = this.getTemporalHour72(false);\n const offset = Math.floor(6.5 * temporalHour);\n return new Date(alot72.getTime() + offset);\n }\n /**\n * Preferable earliest time to recite Minchah – Mincha Ketana; Sunrise plus 9.5 halachic hours.\n * If elevation is enabled, this function will include elevation in the calculation.\n *\n * This method returns *mincha ketana*, the preferred earliest time to pray *mincha* in the\n * opinion of the [Rambam](https://en.wikipedia.org/wiki/Maimonides) and others,\n * that is 9.5 *shaos zmaniyos* (solar hours) after sunrise or sea level sunrise\n * (depending on the `useElevation` setting), according\n * to the [GRA](https://en.wikipedia.org/wiki/Vilna_Gaon).\n */\n minchaKetana(): Date {\n return this.getShaahZmanisBasedZman(9.5);\n }\n /**\n * This method returns the time of *mincha ketana* according to the Magen Avraham\n * with the day starting 72 minutes before sunrise and ending 72 minutes after sunset.\n * This is the preferred earliest time to pray *mincha* according to the opinion of\n * the [Rambam](https://en.wikipedia.org/wiki/Maimonides) and others.\n *\n * If elevation is enabled, this function will include elevation in the calculation.\n */\n minchaKetanaMGA(): Date {\n const [alot72, temporalHour] = this.getTemporalHour72(false);\n return new Date(alot72.getTime() + Math.floor(9.5 * temporalHour));\n }\n /**\n * Plag haMincha; Sunrise plus 10.75 halachic hours.\n * If elevation is enabled, this function will include elevation in the calculation.\n */\n plagHaMincha(): Date {\n return this.getShaahZmanisBasedZman(10.75);\n }\n /**\n * @param [angle=8.5] optional time for solar depression.\n * Default is 8.5 degrees for 3 small stars, use 7.083 degrees for 3 medium-sized stars.\n * Because degree-based functions estimate the amount of light in the sky,\n * the result is not impacted by elevation.\n */\n tzeit(angle = 8.5): Date {\n return this.timeAtAngle(angle, false);\n }\n tzeit72(): Temporal.ZonedDateTime | null {\n const zdt = this.useElevation\n ? this.noaa.getSunset()\n : this.noaa.getSeaLevelSunset();\n if (!zdt) {\n return null;\n }\n return zdt.add({minutes: 72});\n }\n /**\n * Alias for sunrise\n */\n neitzHaChama(): Date {\n return this.sunrise();\n }\n /**\n * Alias for sunset\n */\n shkiah(): Date {\n return this.sunset();\n }\n /**\n * Rabbeinu Tam holds that bein hashmashos is a specific time\n * between sunset and tzeis hakochavim.\n * One opinion on how to calculate this time is that\n * it is 13.5 minutes before tzies 7.083.\n * Because degree-based functions estimate the amount of light in the sky,\n * the result is not impacted by elevation.\n */\n beinHaShmashos(): Date {\n const tzeit = this.tzeit(7.083);\n const millis = tzeit.getTime();\n if (isNaN(millis)) {\n return tzeit;\n }\n return new Date(millis - 13.5 * 60 * 1000);\n }\n\n /**\n * Used by Molad based _zmanim_ to determine if _zmanim_ occur during the current day.\n * @return previous midnight\n */\n private getMidnightLastNight(): Temporal.ZonedDateTime {\n // reset hour, minutes, seconds and millis\n return this.plainDate.toZonedDateTime({\n timeZone: this.gloc.getTimeZone(),\n });\n }\n\n /**\n * Used by Molad based _zmanim_ to determine if _zmanim_ occur during the current day.\n * @return following midnight\n */\n private getMidnightTonight(): Temporal.ZonedDateTime {\n return this.plainDate.add({days: 1}).toZonedDateTime({\n timeZone: this.gloc.getTimeZone(),\n });\n }\n\n /**\n * Returns the Date of the _molad_ based time if it occurs on the current date. Since _Kiddush Levana_\n * can only be said during the day, there are parameters to limit it to between _alos_ and _tzais_. If\n * the time occurs between _alos_ and _tzais_, _tzais_ will be returned.\n *\n * @param moladBasedTime\n * the _molad_ based time such as _molad_, _tchilas_ and _sof zman Kiddush Levana_\n * @param alos\n * optional start of day to limit _molad_ times to the end of the night before or beginning of the next night.\n * Ignored if either _alos_ or _tzais_ are null.\n * @param tzais\n * optional end of day to limit _molad_ times to the end of the night before or beginning of the next night.\n * Ignored if either _tzais_ or _alos_ are null\n * @param techila\n * is it the start of _Kiddush Levana_ time or the end? If it is start roll it to the next _tzais_,\n * and if it is the end, return the end of the previous night (_alos_ passed in). Ignored if either\n * _alos_ or _tzais_ are null.\n * @return the _molad_ based time. If the _zman_ does not occur during the current date, `null` will be\n * returned.\n */\n private getMoladBasedTime(\n moladBasedTime: Temporal.ZonedDateTime,\n alos: Temporal.ZonedDateTime | null,\n tzais: Temporal.ZonedDateTime | null,\n techila: boolean\n ): Temporal.ZonedDateTime | null {\n const lastMidnight: Temporal.ZonedDateTime = this.getMidnightLastNight();\n const midnightTonight: Temporal.ZonedDateTime = this.getMidnightTonight();\n\n if (\n Temporal.ZonedDateTime.compare(moladBasedTime, lastMidnight) < 0 ||\n Temporal.ZonedDateTime.compare(moladBasedTime, midnightTonight) > 0\n ) {\n return null; // Invalid time, bailout\n }\n if (alos === null || tzais === null) {\n return moladBasedTime.withTimeZone(this.gloc.getTimeZone()); // Not enough info to adjust\n }\n if (\n Temporal.ZonedDateTime.compare(moladBasedTime, alos) > 0 &&\n Temporal.ZonedDateTime.compare(moladBasedTime, tzais) < 0\n ) {\n // It's the daytime (after alos but before tzais)\n // get the next/prev night\n return techila ? tzais : alos;\n }\n // It's the night, the provided time is valid\n return moladBasedTime.withTimeZone(this.gloc.getTimeZone());\n }\n\n /**\n * Returns the latest time of Kiddush Levana according to the <a\n * href=\"https://en.wikipedia.org/wiki/Yaakov_ben_Moshe_Levi_Moelin\">Maharil's</a> opinion that it is calculated as\n * halfway between _molad_ and _molad_. This adds half the 29 days, 12 hours and 793 chalakim time between\n * _molad_ and _molad_ (14 days, 18 hours, 22 minutes and 666 milliseconds) to the month's _molad_.\n * The _sof zman Kiddush Levana_ will be returned even if it occurs during the day. To limit the time to between\n * _tzais_ and _alos_, see {@link getSofZmanKidushLevanaBetweenMoldos}.\n *\n * @param alos\n * the beginning of the Jewish day. If _Kidush Levana_ occurs during the day (starting at _alos_ and\n * ending at _tzais_), the time returned will be alos. If either the _alos_ or _tzais_ parameters\n * are null, no daytime adjustment will be made.\n * @param tzais\n * the end of the Jewish day. If Kidush Levana occurs during the day (starting at alos and ending at\n * tzais), the time returned will be alos. If either the alos or tzais parameters are null, no daytime\n * adjustment will be made.\n * @return the Date representing the moment halfway between molad and molad. If the time occurs between\n * _alos_ and _tzais_, _alos_ will be returned. If the _zman_ will not occur on this\n * day, a `null` will be returned.\n */\n public getSofZmanKidushLevanaBetweenMoldos(\n alos: Temporal.ZonedDateTime | null = null,\n tzais: Temporal.ZonedDateTime | null = null\n ): Temporal.ZonedDateTime | null {\n const hd = this.hdate;\n\n // Do not calculate for impossible dates, but account for extreme cases. In the extreme case of Rapa Iti in French\n // Polynesia on Dec 2027 when kiddush Levana 3 days can be said on _Rosh Chodesh_, the sof zman Kiddush Levana\n // will be on the 12th of the Teves. In the case of Anadyr, Russia on Jan, 2071, sof zman Kiddush Levana between the\n // moldos will occur is on the night of 17th of Shevat. See Rabbi Dovid Heber's Shaarei Zmanim chapter 4 (pages 28 and 32).\n if (hd.getDate() < 11 || hd.getDate() > 16) {\n return null;\n }\n const molad = new Molad(hd.getFullYear(), hd.getMonth());\n return this.getMoladBasedTime(\n molad.getSofZmanKidushLevanaBetweenMoldos(),\n alos,\n tzais,\n false\n );\n }\n\n /**\n * Returns the latest time of _Kiddush Levana_ calculated as 15 days after the molad. This is the opinion of\n * the Shulchan Aruch (Orach Chaim 426). It should be noted that some opinions hold that the\n * <a href=\"https://en.wikipedia.org/wiki/Moses_Isserles\">Rema</a> who brings down the opinion of the <a\n * href=\"https://en.wikipedia.org/wiki/Yaakov_ben_Moshe_Levi_Moelin\">Maharil's</a> of calculating\n * {@link getSofZmanKidushLevanaBetweenMoldos half way between _molad_ and _molad_} is of\n * the opinion that the Mechaber agrees to his opinion. Also see the Aruch Hashulchan. For additional details on the subject,\n * See Rabbi Dovid Heber's very detailed write-up in Siman Daled (chapter 4) of <a href=\"https://hebrewbooks.org/53000\">Shaarei\n * Zmanim</a>. The _sof zman Kiddush Levana_ will be returned even if it occurs during the day. To limit the time to\n * between _tzais_ and _alos_, see {@link getSofZmanKidushLevana15Days}.\n *\n * @return the Date representing the moment 15 days after the _molad_. If the time occurs between\n * _alos_ and _tzais_, _alos_ will be returned. If the _zman_ will not occur on this day, a\n * `null` will be returned.\n *\n *\n */\n public getSofZmanKidushLevana15Days(\n alos: Temporal.ZonedDateTime | null = null,\n tzais: Temporal.ZonedDateTime | null = null\n ): Temporal.ZonedDateTime | null {\n const hd = this.hdate;\n\n // Do not calculate for impossible dates, but account for extreme cases. In the extreme case of Rapa Iti in\n // French Polynesia on Dec 2027 when kiddush Levana 3 days can be said on _Rosh Chodesh_, the sof zman Kiddush\n // Levana will be on the 12th of the Teves. in the case of Anadyr, Russia on Jan, 2071, sof zman kiddush levana will\n // occur after midnight on the 17th of Shevat. See Rabbi Dovid Heber's Shaarei Zmanim chapter 4 (pages 28 and 32).\n if (hd.getDate() < 11 || hd.getDate() > 17) {\n return null;\n }\n const molad = new Molad(hd.getFullYear(), hd.getMonth());\n return this.getMoladBasedTime(\n molad.getSofZmanKidushLevana15Days(),\n alos,\n tzais,\n false\n );\n }\n\n /**\n * Returns the earliest time of _Kiddush Levana_ according to <a href=\n * \"https://en.wikipedia.org/wiki/Yonah_Gerondi\">Rabbeinu Yonah</a>'s opinion that it can be said 3 days after the _molad_.\n * If the time of _tchilas zman Kiddush Levana_ occurs during the day (between _alos_ and _tzais_ passed to\n * this method) it will return the following _tzais_. If null is passed for either _alos_ or _tzais_, the actual\n * _tchilas zman Kiddush Levana_ will be returned, regardless of if it is during the day or not.\n *\n * @param alos\n * the beginning of the Jewish day. If Kidush Levana occurs during the day (starting at _alos_ and ending\n * at _tzais_), the time returned will be _tzais_. If either the _alos_ or _tzais_ parameters\n * are null, no daytime adjustment will be made.\n * @param tzais\n * the end of the Jewish day. If _Kidush Levana_ occurs during the day (starting at _alos_ and ending at\n * _tzais_), the time returned will be _tzais_. If either the _alos_ or _tzais_ parameters\n * are null, no daytime adjustment will be made.\n *\n * @return the Date representing the moment 3 days after the molad. If the time occurs between _alos_ and\n * _tzais_, _tzais_ will be returned. If the _zman_ will not occur on this day, a\n * `null` will be returned.\n */\n public getTchilasZmanKidushLevana3Days(\n alos: Temporal.ZonedDateTime | null = null,\n tzais: Temporal.ZonedDateTime | null = null\n ): Temporal.ZonedDateTime | null {\n const hd = this.hdate;\n\n // Do not calculate for impossible dates, but account for extreme cases. Tchilas zman kiddush Levana 3 days for\n // the extreme case of Rapa Iti in French Polynesia on Dec 2027 when kiddush Levana 3 days can be said on the evening\n // of the 30th, the second night of Rosh Chodesh. The 3rd day after the _molad_ will be on the 4th of the month.\n // In the case of Anadyr, Russia on Jan, 2071, when sof zman kiddush levana is on the 17th of the month, the 3rd day\n // from the molad will be on the 5th day of Shevat. See Rabbi Dovid Heber's Shaarei Zmanim chapter 4 (pages 28 and 32).\n if (hd.getDate() > 5 && hd.getDate() < 30) {\n return null;\n }\n\n const molad = new Molad(hd.getFullYear(), hd.getMonth());\n let zman: Temporal.ZonedDateTime | null = this.getMoladBasedTime(\n molad.getTchilasZmanKidushLevana3Days(),\n alos,\n tzais,\n true\n );\n\n // Get the following month's zman kiddush Levana for the extreme case of Rapa Iti in French Polynesia on Dec 2027 when\n // kiddush Levana can be said on Rosh Chodesh (the evening of the 30th). See Rabbi Dovid Heber's Shaarei Zmanim chapter 4 (page 32)\n if (zman === null && hd.getDate() === 30) {\n const hd2 = hd.add(1, 'week');\n const molad2 = new Molad(hd2.getFullYear(), hd2.getMonth());\n zman = this.getMoladBasedTime(\n molad2.getTchilasZmanKidushLevana3Days(),\n null,\n null,\n true\n );\n }\n\n return zman;\n }\n\n /**\n * Returns the point in time of _Molad_ as a <code>Date</code> Object. For the traditional day of week, hour,\n * minute and chalakim, {@link Molad.getInstant()} and the not yet completed\n * {@link HebrewDateFormatter} that will have formatting for this.\n *\n * @return the Date representing the moment of the molad. If the _molad_ does not occur on this day, a\n * `null` will be returned.\n *\n */\n public getZmanMolad(): Temporal.ZonedDateTime | null {\n const hd = this.hdate;\n\n // Optimize to not calculate for impossible dates, but account for extreme cases. The molad in the extreme case of Rapa\n // Iti in French Polynesia on Dec 2027 occurs on the night of the 27th of Kislev. In the case of Anadyr, Russia on\n // Jan 2071, the molad will be on the 2nd day of Shevat. See Rabbi Dovid Heber's Shaarei Zmanim chapter 4 (pages 28 and 32).\n if (hd.getDate() > 2 && hd.getDate() < 27) {\n return null;\n }\n\n const molad = new Molad(hd.getFullYear(), hd.getMonth());\n let zman: Temporal.ZonedDateTime | null = this.getMoladBasedTime(\n molad.getInstant(),\n null,\n null,\n true\n );\n\n // deal with molad that happens on the end of the previous month\n if (zman === null && hd.getDate() > 26) {\n const hd2 = hd.add(1, 'week');\n const molad2 = new Molad(hd2.getFullYear(), hd2.getMonth());\n zman = this.getMoladBasedTime(molad2.getInstant(), null, null, true);\n }\n return zman;\n }\n\n /**\n * Returns the earliest time of _Kiddush Levana_ according to the opinions that it should not be said until 7\n * days after the _molad_. The time will be returned even if it occurs during the day when _Kiddush Levana_\n * can't be recited. Use {@link getTchilasZmanKidushLevana7Days} if you want to limit the time to night hours.\n *\n * @return the Date representing the moment 7 days after the molad regardless of it is day or night. If the _zman_\n * will not occur on this day, a `null` will be returned.\n */\n public getTchilasZmanKidushLevana7Days(\n alos: Temporal.ZonedDateTime | null = null,\n tzais: Temporal.ZonedDateTime | null = null\n ): Temporal.ZonedDateTime | null {\n const hd = this.hdate;\n\n // Optimize to not calculate for impossible dates, but account for extreme cases. Tchilas zman kiddush Levana 7 days for\n // the extreme case of Rapa Iti in French Polynesia on Jan 2028 (when kiddush Levana 3 days can be said on the evening\n // of the 30th, the second night of Rosh Chodesh), the 7th day after the molad will be on the 4th of the month.\n // In the case of Anadyr, Russia on Jan, 2071, when sof zman kiddush levana is on the 17th of the month, the 7th day\n // from the molad will be on the 9th day of Shevat. See Rabbi Dovid Heber's Shaarei Zmanim chapter 4 (pages 28 and 32).\n if (hd.getDate() < 4 || hd.getDate() > 9) {\n return null;\n }\n const molad = new Molad(hd.getFullYear(), hd.getMonth());\n return this.getMoladBasedTime(\n molad.getTchilasZmanKidushLevana7Days(),\n alos,\n tzais,\n true\n );\n }\n\n /**\n * A method that returns the <a href=\"https://en.wikipedia.org/wiki/Shneur_Zalman_of_Liadi\">Baal Hatanya</a>'s\n * _netz amiti_ (sunrise) without\n * elevation adjustment. This forms the base for the Baal Hatanya's dawn-based calculations that are\n * calculated as a dip below the horizon before sunrise.\n *\n * According to the Baal Hatanya, _netz amiti_, or true (halachic) sunrise, is when the top of the sun's\n * disk is visible at an elevation similar to the mountains of Eretz Yisrael. The time is calculated as the point at which\n * the center of the sun's disk is 1.583&deg; below the horizon. This degree-based calculation can be found in Rabbi Shalom\n * DovBer Levine's commentary on The <a href=\"https://www.chabadlibrary.org/books/pdf/Seder-Hachnosas-Shabbos.pdf\">Baal\n * Hatanya's Seder Hachnasas Shabbos</a>. From an elevation of 546 meters, the top of <a href=\n * \"https://en.wikipedia.org/wiki/Mount_Carmel\">Har Hacarmel</a>, the sun disappears when it is 1&deg; 35' or 1.583&deg;\n * below the sea level horizon. This in turn is based on the Gemara <a href=\n * \"https://hebrewbooks.org/shas.aspx?mesechta=2&daf=35\">Shabbos 35a</a>. There are other opinions brought down by\n * Rabbi Levine, including Rabbi Yosef Yitzchok Feigelstock who calculates it as the degrees below the horizon 4 minutes after\n * sunset in Yerushalayim (on the equinox). That is brought down as 1.583&deg;. This is identical to the 1&deg; 35' _zman_\n * and is probably a typo and should be 1.683&deg;. These calculations are used by most <a href=\n * \"https://en.wikipedia.org/wiki/Chabad\">Chabad</a> calendars that use the Baal Hatanya's _zmanim_. See\n * <a href=\"https://www.chabad.org/library/article_cdo/aid/3209349/jewish/About-Our-Zmanim-Calculations.htm\">About Our\n * _Zmanim_ Calculations @ Chabad.org</a>.\n *\n * Note: _netz amiti_ is used only for calculating certain _zmanim_, and is intentionally unpublished. For\n * practical purposes, daytime _mitzvos_ like _shofar_ and _lulav_ should not be done until after the\n * published time for _netz_ / sunrise.\n *\n * @return the <code>Date</code> representing the exact sea level _netz amiti_ (sunrise) time. If the calculation can't be\n * computed such as in the Arctic Circle where there is at least one day a year where the sun does not rise, and one\n * where it does not set, a `null` will be returned. See detailed explanation on top of the page.\n *\n * @see ZENITH_1_POINT_583\n */\n private getSunriseBaalHatanya(): Temporal.ZonedDateTime | null {\n return this.noaa.getSunriseOffsetByDegrees(ZENITH_1_POINT_583);\n }\n\n /**\n * A method that returns the <a href=\"https://en.wikipedia.org/wiki/Shneur_Zalman_of_Liadi\">Baal Hatanya</a>'s\n * _shkiah amiti_ (sunset) without\n * elevation adjustment. This forms the base for the Baal Hatanya's dusk-based calculations that are calculated\n * as a dip below the horizon after sunset.\n *\n * According to the Baal Hatanya, _shkiah amiti_, true (_halachic_) sunset, is when the top of the\n * sun's disk disappears from view at an elevation similar to the mountains of _Eretz Yisrael_.\n * This time is calculated as the point at which the center of the sun's disk is 1.583 degrees below the horizon.\n *\n * Note: _shkiah amiti_ is used only for calculating certain _zmanim_, and is intentionally unpublished. For\n * practical purposes, all daytime mitzvos should be completed before the published time for _shkiah_ / sunset.\n *\n * For further explanation of the calculations used for the Baal Hatanya's _zmanim_ in this library, see\n * <a href=\"https://www.chabad.org/library/article_cdo/aid/3209349/jewish/About-Our-Zmanim-Calculations.htm\">About Our\n * _Zmanim_ Calculations @ Chabad.org</a>.\n *\n * @return the <code>Date</code> representing the exact sea level _shkiah amiti_ (sunset) time. If the calculation\n * can't be computed such as in the Arctic Circle where there is at least one day a year where the sun does not\n * rise, and one where it does not set, a `null` will be returned.\n *\n * @see ZENITH_1_POINT_583\n */\n private getSunsetBaalHatanya(): Temporal.ZonedDateTime | null {\n return this.noaa.getSunsetOffsetByDegrees(ZENITH_1_POINT_583);\n }\n\n /**\n * Returns the <a href=\"https://en.wikipedia.org/wiki/Shneur_Zalman_of_Liadi\">Baal Hatanya</a>'s _alos_\n * (dawn) calculated as the time when the sun is 16.9&deg; below the eastern {@link GEOMETRIC_ZENITH geometric horizon}\n * before {@link getSunrise() sunrise}.\n *\n * The zenith of 16.9&deg; below is based on the calculation that the time between dawn\n * and _netz amiti_ (sunrise) is 72 minutes, the time that is takes to walk 4 mil at 18 minutes\n * a mil (<a href=\"https://en.wikipedia.org/wiki/Maimonides\">Rambam</a> and others). The sun's position at 72\n * minutes before {@link getSunriseBaalHatanya _netz amiti_ (sunrise)} in Jerusalem <a href=\n * \"https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/\">around the equinox / equilux</a> is\n * 16.9&deg; below {@link GEOMETRIC_ZENITH geometric zenith}.\n *\n * @return The <code>Date</code> of dawn. If the calculation can't be computed such as northern and southern\n * locations even south of the Arctic Circle and north of the Antarctic Circle where the sun may not reach\n * low enough below the horizon for this calculation, a `null` will be returned. */\n public alosBaalHatanya(): Date {\n return this.timeAtAngle(16.9, true);\n }\n\n private getShaahZmanisBaalHatanya(hours: number): Date {\n const zdt = this.getShaahZmanisBasedZmanZdt(\n this.getSunriseBaalHatanya(),\n this.getSunsetBaalHatanya(),\n hours\n );\n return zdtToDate(zdt);\n }\n\n /**\n * This method returns the latest _zman krias shema_ (time to recite Shema in the morning). This time is 3\n * {@link shaahZmanisBaalHatanya() _shaos zmaniyos_} (solar hours) after {@link getSunriseBaalHatanya()\n * _netz amiti_ (sunrise)} based on the opinion of the Baal Hatanya that the day is calculated from\n * sunrise to sunset. This returns the time 3 * {@link getShaahZmanisBaalHatanya()} after {@link getSunriseBaalHatanya()\n * _netz amiti_ (sunrise)}.\n *\n * @return the <code>Date</code> of the latest _zman shema_ according to the Baal Hatanya. If the calculation\n * can't be computed such as in the Arctic Circle where there is at least one day a year where the sun does\n * not rise, and one where it does not set, a `null` will be returned.\n */\n public sofZmanShmaBaalHatanya(): Date {\n return this.getShaahZmanisBaalHatanya(3);\n }\n\n /**\n * This method returns the latest _zman tfilah_ (time to recite the morning prayers). This time is 4\n * hours into the day based on the opinion of the Baal Hatanya that the day is\n * calculated from sunrise to sunset. This returns the time 4 * {@link getShaahZmanisBaalHatanya()} after\n * {@link getSunriseBaalHatanya() _netz amiti_ (sunrise)}.\n *\n * @return the <code>Date</code> of the latest _zman tfilah_. If the calculation can't be computed such as in\n * the Arctic Circle where there is at least one day a year where the sun does not rise, and one where it does\n * not set, a `null` will be returned.\n */\n public sofZmanTfilaBaalHatanya(): Date {\n return this.getShaahZmanisBaalHatanya(4);\n }\n\n /**\n * This method returns the time of _mincha gedola_. _Mincha gedola_ is the earliest time one can pray\n * _mincha_. The <a href=\"https://en.wikipedia.org/wiki/Maimonides\">Rambam</a> is of the opinion that it is\n * better to delay _mincha_ until {@link minchaKetanaBaalHatanya() _mincha ketana_} while the\n * <a href=\"https://en.wikipedia.org/wiki/Asher_ben_Jehiel\">Ra\"sh</a>,\n * <a href=\"https://en.wikipedia.org/wiki/Jacob_ben_Asher\">Tur</a>, <a href=\n * \"https://en.wikipedia.org/wiki/Vilna_Gaon\">GRA</a> and others are of the opinion that _mincha_ can be prayed\n * _lechatchila_ starting at _mincha gedola_. This is calculated as 6.5 {@link getShaahZmanisBaalHatanya()\n * sea level solar hours} after {@link getSunriseBaalHatanya() _netz amiti_ (sunrise)}. This calculation is based\n * on the opinion of the Baal Hatanya that the day is calculated from sunrise to sunset. This returns the time 6.5\n * * {@link getShaahZmanisBaalHatanya()} after {@link getSunriseBaalHatanya() _netz amiti_ (\"real\" sunrise)}.\n * @return the <code>Date</code> of the time of _mincha gedola_ according to the Baal Hatanya. If the calculation\n * can't be computed such as in the Arctic Circle where there is at least one day a year where the sun does not rise,\n * and one where it does not set, a `null` will be returned.\n */\n public minchaGedolaBaalHatanya(): Date {\n return this.getShaahZmanisBaalHatanya(6.5);\n }\n\n /**\n * This method returns the time of _mincha ketana_. This is the preferred earliest time to pray\n * _mincha_ in the opinion of the <a href=\"https://en.wikipedia.org/wiki/Maimonides\">Rambam</a> and others.\n * For more information on this see the documentation on {@link minchaGedolaBaalHatanya() _mincha gedola_}.\n * This is calculated as 9.5 sea level solar hours after {@link getSunriseBaalHatanya\n * _netz amiti_ (sunrise)}. This calculation is calculated based on the opinion of the Baal Hatanya that the\n * day is calculated from sunrise to sunset. This returns the time 9.5 * after\n * _netz amiti_ (sunrise).\n *\n * @return the <code>Date</code> of the time of _mincha ketana_. If the calculation can't be computed such as\n * in the Arctic Circle where there is at least one day a year where the sun does not rise, and one where it\n * does not set, a `null` will be returned.\n */\n public minchaKetanaBaalHatanya(): Date {\n return this.getShaahZmanisBaalHatanya(9.5);\n }\n\n /**\n * This method returns the time of _plag hamincha_. This is calculated as 10.75 hours after sunrise. This\n * calculation is based on the opinion of the Baal Hatanya that the day is calculated\n * from sunrise to sunset. This returns the time 10.75 * {@link getShaahZmanisBaalHatanya()} after\n * {@link getSunriseBaalHatanya() _netz amiti_ (sunrise)}.\n *\n * @return the <code>Date</code> of the time of _plag hamincha_. If the calculation can't be computed such as\n * in the Arctic Circle where there is at least one day a year where the sun does not rise, and one where it\n * does not set, a `null` will be returned.\n */\n public plagHaminchaBaalHatanya(): Date {\n return this.getShaahZmanisBaalHatanya(10.75);\n }\n\n /**\n * A method that returns _tzais_ (nightfall) when the sun is 6&deg; below the western geometric horizon\n * (90&deg;) after {@link getSunset() sunset}. For information on the source of this calculation see\n * {@link ZENITH_6_DEGREES}.\n *\n * @return The <code>Date</code> of nightfall. If the calculation can't be computed such as northern and southern\n * locations even south of the Arctic Circle and north of the Antarctic Circle where the sun may not reach\n * low enough below the horizon for this calculation, a `null` will be returned. * @see ZENITH_6_DEGREES\n */\n public tzaisBaalHatanya(): Date {\n return this.timeAtAngle(6, false);\n }\n\n /**\n * Uses timeFormat to return a date like '20:34'.\n * Returns `XX:XX` if the date is invalid.\n */\n static formatTime(dt: Date, timeFormat: Intl.DateTimeFormat): string {\n if (isNaN(dt.getTime())) {\n return 'XX:XX'; // Invalid Date\n }\n const time = timeFormat.format(dt);\n const hm = time.split(':');\n if (hm[0] === '24') {\n return '00:' + hm[1];\n }\n return time;\n }\n\n /**\n * Discards seconds, rounding to nearest minute.\n * @param dt\n */\n static roundTime(dt: Date): Date {\n const millis = dt.getTime();\n if (isNaN(millis)) {\n return dt;\n }\n // Round up to next minute if needed\n const millisOnly = dt.getMilliseconds();\n const seconds = dt.getSeconds();\n if (seconds === 0 && millisOnly === 0) {\n return dt;\n }\n const secAndMillis = seconds * 1000 + millisOnly;\n const delta =\n secAndMillis >= 30000 ? 60000 - secAndMillis : -1 * secAndMillis;\n return new Date(millis + delta);\n }\n\n /**\n * Get offset string (like \"+05:00\" or \"-08:00\") from tzid (like \"Europe/Moscow\")\n * @param tzid\n * @param date\n */\n static timeZoneOffset(tzid: string, date: Date): string {\n const offset = getTimezoneOffset(tzid, date);\n const offsetAbs = Math.abs(offset);\n const hours = Math.floor(offsetAbs / 60);\n const minutes = offsetAbs % 60;\n return (offset < 0 ? '+' : '-') + pad2(hours) + ':' + pad2(minutes);\n }\n\n /**\n * Returns a string like \"2022-04-01T13:06:00-11:00\"\n * @param tzid\n * @param date\n */\n static formatISOWithTimeZone(tzid: string, date: Date): string {\n if (isNaN(date.getTime())) {\n return '0000-00-00T00:00:00Z';\n }\n return (\n getPseudoISO(tzid, date).substring(0, 19) +\n Zmanim.timeZoneOffset(tzid, date)\n );\n }\n\n /**\n * Returns sunrise + `offset` minutes (either positive or negative).\n * If elevation is enabled, this function will include elevation in the calculation\n * unless `forceSeaLevel` is `true`.\n * @param offset minutes\n * @param roundMinute round time to nearest minute (default true)\n * @param forceSeaLevel use sea-level sunrise (default false)\n */\n sunriseOffset(\n offset: number,\n roundMinute = true,\n forceSeaLevel = false\n ): Date {\n const sunrise = forceSeaLevel ? this.seaLevelSunrise() : this.sunrise();\n if (isNaN(sunrise.getTime())) {\n return sunrise;\n }\n if (roundMinute) {\n // For positive offsets only, round up to next minute if needed\n if (offset > 0 && sunrise.getSeconds() >= 30) {\n offset++;\n }\n sunrise.setSeconds(0, 0);\n }\n return new Date(sunrise.getTime() + offset * 60 * 1000);\n }\n\n /**\n * Returns sunset + `offset` minutes (either positive or negative).\n * If elevation is enabled, this function will include elevation in the calculation\n * unless `forceSeaLevel` is `true`.\n * @param offset minutes\n * @param roundMinute round time to nearest minute (default true)\n * @param forceSeaLevel use sea-level sunset (default false)\n */\n sunsetOffset(\n offset: number,\n roundMinute = true,\n forceSeaLevel = false\n ): Date {\n const sunset = forceSeaLevel ? this.seaLevelSunset() : this.sunset();\n if (isNaN(sunset.getTime())) {\n return sunset;\n }\n if (roundMinute) {\n // For Havdalah only, round up to next minute if needed\n if (offset > 0 && sunset.getSeconds() >= 30) {\n offset++;\n }\n sunset.setSeconds(0, 0);\n }\n return new Date(sunset.getTime() + offset * 60 * 1000);\n }\n /**\n * Returns the Hebrew date relative to the specified location and Gregorian date,\n * taking into consideration whether the time is before or after sunset.\n *\n * For example, if the given date and is `2024-09-22T10:35` (before sunset), and\n * sunset for the specified location is **19:04**, then this function would\n * return a Hebrew date of `19th of Elul, 5784`.\n * If the given date is the same Gregorian day after sunset\n * (for example `2024-09-22T20:07`), this function would return a\n * Hebrew date of `20th of Elul, 5784`.\n * @example\n * const {GeoLocation, Zmanim, HDate} = require('@hebcal/core');\n * const latitude = 48.85341;\n * const longitude = 2.3488;\n * const timezone = 'Europe/Paris';\n * const gloc = new GeoLocation(null, latitude, longitude, 0, timezone);\n * const before = Zmanim.makeSunsetAwareHDate(gloc, new Date('2024-09-22T17:38:46.123Z'), false);\n * console.log(before.toString()); // '19 Elul 5784'\n * const after = Zmanim.makeSunsetAwareHDate(gloc, new Date('2024-09-22T23:45:18.345Z'), false);\n * console.log(after.toString()); // '20 Elul 5784'\n */\n static makeSunsetAwareHDate(\n gloc: GeoLocation,\n date: Date,\n useElevation: boolean\n ): HDate {\n const zmanim = new Zmanim(gloc, date, useElevation);\n const sunset = zmanim.sunset();\n let hd = new HDate(date);\n const sunsetMillis = sunset.getTime();\n if (isNaN(sunsetMillis)) {\n return hd;\n }\n if (date.getTime() >= sunsetMillis) {\n hd = hd.next();\n }\n return hd;\n }\n}\n"],"names":[],"mappings":";;;;;;AAWA;;AAEG;AACH,SAAS,SAAS,CAAC,GAAkC,EAAA;AACnD,IAAA,IAAI,GAAG,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,IAAI,CAAC,GAAG,CAAC;IACtB;IACA,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC;AAC3C,IAAA,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;AACtB,IAAA,OAAO,GAAG;AACZ;AAEA;;AAEG;AACH,MAAM,gBAAgB,GAAW,EAAE;AAEnC;;;;;;;AAOG;AACH,MAAM,kBAAkB,GAAW,gBAAgB,GAAG,KAAK;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;;AAyBG;MACU,MAAM,CAAA;AACA,IAAA,KAAK;AACL,IAAA,SAAS;AACT,IAAA,IAAI;AACJ,IAAA,IAAI;AACb,IAAA,YAAY;AACpB;;;;;;;;;;AAUG;AACH,IAAA,WAAA,CAAY,IAAiB,EAAE,IAAkB,EAAE,YAAqB,EAAA;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
1
+ {"version":3,"file":"zmanim.js","sources":["../../../src/zmanim.ts"],"sourcesContent":["import './temporal-shim';\nimport {GeoLocation, NOAACalculator} from '@hebcal/noaa';\nimport {\n HDate,\n getPseudoISO,\n getTimezoneOffset,\n isDate,\n pad2,\n} from '@hebcal/hdate';\nimport {Molad} from './molad';\n\n/**\n * @private\n */\nfunction zdtToDate(zdt: Temporal.ZonedDateTime | null): Date {\n if (zdt === null) {\n return new Date(NaN);\n }\n const res = new Date(zdt.epochMilliseconds);\n res.setMilliseconds(0);\n return res;\n}\n\n/**\n * The zenith of astronomical sunrise and sunset. The sun is 90&deg; from the vertical 0&deg;\n */\nconst GEOMETRIC_ZENITH: number = 90;\n\n/**\n * The zenith of 1.583&deg; below {@link GEOMETRIC_ZENITH geometric zenith} (90&deg;). This calculation is used for\n * calculating _netz amiti_ (sunrise) and _shkiah amiti_ (sunset) based on the opinion of the\n * <a href=\"https://en.wikipedia.org/wiki/Shneur_Zalman_of_Liadi\">Baal Hatanya</a>.\n *\n * @see Zmanim.sunriseBaalHatanya()\n * @see Zmanim.sunsetBaalHatanya()\n */\nconst ZENITH_1_POINT_583: number = GEOMETRIC_ZENITH + 1.583;\n\n/**\n * Calculate halachic times (zmanim / זְמַנִּים) for a given day and location.\n * Calculations are available for tzeit / tzais (nightfall),\n * shkiah (sunset) and more.\n *\n * Zmanim are estimated using an algorithm published by the US National Oceanic\n * and Atmospheric Administration. The NOAA solar calculator is based on equations\n * from _Astronomical Algorithms_ by Jean Meeus.\n *\n * The sunrise and sunset results are theoretically accurate to within a minute for\n * locations between +/- 72° latitude, and within 10 minutes outside of those latitudes.\n * However, due to variations in atmospheric composition, temperature, pressure and\n * conditions, observed values may vary from calculations.\n * https://gml.noaa.gov/grad/solcalc/calcdetails.html\n *\n * @example\n * const {GeoLocation, Zmanim} = require('@hebcal/core');\n * const latitude = 41.822232;\n * const longitude = -71.448292;\n * const tzid = 'America/New_York';\n * const friday = new Date(2023, 8, 8);\n * const gloc = new GeoLocation(null, latitude, longitude, 0, tzid);\n * const zmanim = new Zmanim(gloc, friday, false);\n * const candleLighting = zmanim.sunsetOffset(-18, true);\n * const timeStr = Zmanim.formatISOWithTimeZone(tzid, candleLighting);\n */\nexport class Zmanim {\n private readonly hdate: HDate;\n private readonly plainDate: Temporal.PlainDate;\n private readonly gloc: GeoLocation;\n private readonly noaa: NOAACalculator;\n private useElevation: boolean;\n /**\n * Initialize a Zmanim instance.\n * @param gloc GeoLocation including latitude, longitude, and timezone\n * @param date Regular or Hebrew Date. If `date` is a regular `Date`,\n * hours, minutes, seconds and milliseconds are ignored.\n * @param useElevation use elevation for calculations (default `false`).\n * If `true`, use elevation to affect the calculation of all sunrise/sunset based\n * zmanim. Note: there are some zmanim such as degree-based zmanim that are driven\n * by the amount of light in the sky and are not impacted by elevation.\n * These zmanim intentionally do not support elevation adjustment.\n */\n constructor(gloc: GeoLocation, date: Date | HDate, useElevation: boolean) {\n this.hdate = new HDate(date);\n const dt = isDate(date) ? date : this.hdate.greg();\n this.plainDate = Temporal.PlainDate.from({\n year: dt.getFullYear(),\n month: dt.getMonth() + 1,\n day: dt.getDate(),\n });\n this.gloc = gloc;\n this.noaa = new NOAACalculator(gloc, this.plainDate);\n this.useElevation = Boolean(useElevation);\n }\n /**\n * Returns `true` if elevation adjustment is enabled\n * for zmanim support elevation adjustment\n */\n getUseElevation(): boolean {\n return this.useElevation;\n }\n /**\n * Enables or disables elevation adjustment for zmanim support elevation adjustment\n * @param useElevation\n */\n setUseElevation(useElevation: boolean) {\n this.useElevation = useElevation;\n }\n /**\n * Convenience function to get the time when sun is above or below the horizon\n * for a certain angle (in degrees).\n * This function does not support elevation adjustment.\n * @param angle\n * @param rising\n */\n timeAtAngle(angle: number, rising: boolean): Date {\n const offsetZenith = GEOMETRIC_ZENITH + angle;\n const zdt = rising\n ? this.noaa.getSunriseOffsetByDegrees(offsetZenith)\n : this.noaa.getSunsetOffsetByDegrees(offsetZenith);\n return zdtToDate(zdt);\n }\n /**\n * Upper edge of the Sun appears over the eastern horizon in the morning (0.833° above horizon)\n * If elevation is enabled, this function will include elevation in the calculation.\n */\n sunrise(): Date {\n const zdt = this.useElevation\n ? this.noaa.getSunrise()\n : this.noaa.getSeaLevelSunrise();\n return zdtToDate(zdt);\n }\n /**\n * Upper edge of the Sun appears over the eastern horizon in the morning (0.833° above horizon).\n * This function does not support elevation adjustment.\n */\n seaLevelSunrise(): Date {\n const zdt = this.noaa.getSeaLevelSunrise();\n return zdtToDate(zdt);\n }\n /**\n * When the upper edge of the Sun disappears below the horizon (0.833° below horizon).\n * If elevation is enabled, this function will include elevation in the calculation.\n */\n sunset(): Date {\n const zdt = this.useElevation\n ? this.noaa.getSunset()\n : this.noaa.getSeaLevelSunset();\n return zdtToDate(zdt);\n }\n /**\n * When the upper edge of the Sun disappears below the horizon (0.833° below horizon).\n * This function does not support elevation adjustment.\n */\n seaLevelSunset(): Date {\n const zdt = this.noaa.getSeaLevelSunset();\n return zdtToDate(zdt);\n }\n /**\n * Civil dawn; Sun is 6° below the horizon in the morning.\n * Because degree-based functions estimate the amount of light in the sky,\n * the result is not impacted by elevation.\n */\n dawn(): Date {\n const zdt = this.noaa.getBeginCivilTwilight();\n return zdtToDate(zdt);\n }\n /**\n * Civil dusk; Sun is 6° below the horizon in the evening.\n * Because degree-based functions estimate the amount of light in the sky,\n * the result is not impacted by elevation.\n */\n dusk(): Date {\n const zdt = this.noaa.getEndCivilTwilight();\n return zdtToDate(zdt);\n }\n /**\n * Returns sunset for the previous day.\n * If elevation is enabled, this function will include elevation in the calculation.\n */\n gregEve(): Date {\n const prev0 = this.plainDate.subtract({days: 1});\n const prev = new Date(prev0.year, prev0.month - 1, prev0.day);\n const zman = new Zmanim(this.gloc, prev, this.useElevation);\n return zman.sunset();\n }\n /**\n * @private\n */\n nightHour(): number {\n return (this.sunrise().getTime() - this.gregEve().getTime()) / 12; // ms in hour\n }\n /**\n * Midday – Chatzot; Sunrise plus 6 halachic hours\n */\n chatzot(): Date {\n const startOfDay = this.noaa.getSeaLevelSunrise();\n const endOfDay = this.noaa.getSeaLevelSunset();\n const zdt = this.noaa.getSunTransit(startOfDay, endOfDay);\n return zdtToDate(zdt);\n }\n /**\n * Midnight – Chatzot; Sunset plus 6 halachic hours.\n * If elevation is enabled, this function will include elevation in the calculation.\n */\n chatzotNight(): Date {\n return new Date(this.sunrise().getTime() - this.nightHour() * 6);\n }\n /**\n * Dawn – Alot haShachar; Sun is 16.1° below the horizon in the morning.\n * Because degree-based functions estimate the amount of light in the sky,\n * the result is not impacted by elevation.\n */\n alotHaShachar(): Date {\n return this.timeAtAngle(16.1, true);\n }\n /**\n * Dawn – Alot haShachar; calculated as 72 minutes before sunrise or\n * sea level sunrise.\n */\n alotHaShachar72(): Date {\n return this.sunriseOffset(-72, false, false);\n }\n alotHaShachar72zdt(): Temporal.ZonedDateTime | null {\n const zdt = this.useElevation\n ? this.noaa.getSunrise()\n : this.noaa.getSeaLevelSunrise();\n if (!zdt) {\n return null;\n }\n return zdt.subtract({minutes: 72});\n }\n\n /**\n * Earliest talis & tefillin – Misheyakir; Sun is 11.5° below the horizon in the morning.\n * Because degree-based functions estimate the amount of light in the sky,\n * the result is not impacted by elevation.\n */\n misheyakir(): Date {\n return this.timeAtAngle(11.5, true);\n }\n /**\n * Earliest talis & tefillin – Misheyakir Machmir; Sun is 10.2° below the horizon in the morning.\n * Because degree-based functions estimate the amount of light in the sky,\n * the result is not impacted by elevation.\n */\n misheyakirMachmir(): Date {\n return this.timeAtAngle(10.2, true);\n }\n private getShaahZmanisBasedZmanZdt(\n startOfDay: Temporal.ZonedDateTime | null,\n endOfDay: Temporal.ZonedDateTime | null,\n hours: number\n ): Temporal.ZonedDateTime | null {\n const temporalHour = this.noaa.getTemporalHour(startOfDay, endOfDay);\n const offset = Math.trunc(temporalHour * hours);\n const zdt = NOAACalculator.getTimeOffset(startOfDay, offset);\n return zdt;\n }\n /**\n * Utility method for using elevation-aware sunrise/sunset\n * @private\n * @param hours\n */\n private getShaahZmanisBasedZman(hours: number): Date {\n const startOfDay = this.useElevation\n ? this.noaa.getSunrise()\n : this.noaa.getSeaLevelSunrise();\n const endOfDay = this.useElevation\n ? this.noaa.getSunset()\n : this.noaa.getSeaLevelSunset();\n const zdt = this.getShaahZmanisBasedZmanZdt(startOfDay, endOfDay, hours);\n return zdtToDate(zdt);\n }\n /**\n * Latest Shema (Gra); Sunrise plus 3 halachic hours, according to the Gra.\n * If elevation is enabled, this function will include elevation in the calculation.\n */\n sofZmanShma(): Date {\n // Gra\n return this.getShaahZmanisBasedZman(3);\n }\n /**\n * Latest Shacharit (Gra); Sunrise plus 4 halachic hours, according to the Gra.\n *\n * This method returns the latest *zman tfila* (time to recite shema in the morning)\n * that is 4 *shaos zmaniyos* (solar hours) after sunrise or sea level sunrise\n * (depending on the `useElevation` setting), according\n * to the [GRA](https://en.wikipedia.org/wiki/Vilna_Gaon).\n *\n * If elevation is enabled, this function will include elevation in the calculation.\n */\n sofZmanTfilla(): Date {\n // Gra\n return this.getShaahZmanisBasedZman(4);\n }\n /**\n * This method returns the latest time for burning _chametz_ on _Erev Pesach_ according to the opinion\n * of the <a href=\"https://en.wikipedia.org/wiki/Vilna_Gaon\">GRA</a>. This time is 5 hours into the day based on the\n * opinion of the <a href=\"https://en.wikipedia.org/wiki/Vilna_Gaon\">GRA</a> that the day is calculated from\n * sunrise to sunset. This returns the time 5 * {@link #getShaahZmanisGra()} after {@link #getSeaLevelSunrise() sea\n * level sunrise}.\n * @return the <code>Date</code> of the latest time for burning _chametz_ on _Erev Pesach_. If it is not\n * _erev Pesach_ or the calculation can't be computed such as in the Arctic Circle where there is at least\n * one day a year where the sun does not rise, and one where it does not set, a <code>null</code> will be\n * returned.\n */\n sofZmanBiurChametzGRA(): Date {\n return this.getShaahZmanisBasedZman(5);\n }\n /**\n * Returns an array with alot (Date) and ms in hour (number)\n * @private\n */\n getTemporalHour72(forceSeaLevel: boolean): [Date, number] {\n const alot72 = this.sunriseOffset(-72, false, forceSeaLevel);\n const tzeit72 = this.sunsetOffset(72, false, forceSeaLevel);\n const temporalHour = (tzeit72.getTime() - alot72.getTime()) / 12;\n return [alot72, temporalHour];\n }\n /**\n * Returns an array with alot (Date) and ms in hour (number)\n * @private\n */\n getTemporalHourByDeg(angle: number): [Date, number] {\n const alot = this.timeAtAngle(angle, true);\n const tzeit = this.timeAtAngle(angle, false);\n const temporalHour = (tzeit.getTime() - alot.getTime()) / 12;\n return [alot, temporalHour];\n }\n /**\n * Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham.\n * Based on the opinion of the MGA that the day is calculated from\n * dawn being fixed 72 minutes before sea-level sunrise, and nightfall is fixed\n * 72 minutes after sea-level sunset.\n */\n sofZmanShmaMGA(): Date {\n // Magen Avraham\n const [alot72, temporalHour] = this.getTemporalHour72(true);\n const offset = Math.floor(3 * temporalHour);\n return new Date(alot72.getTime() + offset);\n }\n /**\n * Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham.\n * Based on the opinion of the MGA that the day is calculated from\n * dawn to nightfall with both being 16.1° below the horizon.\n */\n sofZmanShmaMGA16Point1(): Date {\n const [alot, temporalHour] = this.getTemporalHourByDeg(16.1);\n const offset = Math.floor(3 * temporalHour);\n return new Date(alot.getTime() + offset);\n }\n /**\n * Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham.\n * Based on the opinion of the MGA that the day is calculated from\n * dawn to nightfall with both being 19.8° below the horizon.\n *\n * This calculation is based on the position of the sun 90 minutes after sunset in Jerusalem\n * around the equinox / equilux which calculates to 19.8° below geometric zenith.\n * https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/\n */\n sofZmanShmaMGA19Point8(): Date {\n const [alot, temporalHour] = this.getTemporalHourByDeg(19.8);\n const offset = Math.floor(3 * temporalHour);\n return new Date(alot.getTime() + offset);\n }\n /**\n * Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham\n */\n sofZmanTfillaMGA(): Date {\n // Magen Avraham\n const [alot72, temporalHour] = this.getTemporalHour72(true);\n const offset = Math.floor(4 * temporalHour);\n return new Date(alot72.getTime() + offset);\n }\n /**\n * Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham.\n * Based on the opinion of the MGA that the day is calculated from\n * dawn to nightfall with both being 16.1° below the horizon.\n */\n sofZmanTfillaMGA16Point1(): Date {\n const [alot, temporalHour] = this.getTemporalHourByDeg(16.1);\n const offset = Math.floor(4 * temporalHour);\n return new Date(alot.getTime() + offset);\n }\n /**\n * Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham.\n * Based on the opinion of the MGA that the day is calculated from\n * dawn to nightfall with both being 19.8° below the horizon.\n *\n * This calculation is based on the position of the sun 90 minutes after sunset in Jerusalem\n * around the equinox / equilux which calculates to 19.8° below geometric zenith.\n * https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/\n */\n sofZmanTfillaMGA19Point8(): Date {\n const [alot, temporalHour] = this.getTemporalHourByDeg(19.8);\n const offset = Math.floor(4 * temporalHour);\n return new Date(alot.getTime() + offset);\n }\n /**\n * Earliest Mincha – Mincha Gedola (GRA); Sunrise plus 6.5 halachic hours.\n * If elevation is enabled, this function will include elevation in the calculation.\n *\n * This method returns the latest mincha gedola, the earliest time one can pray mincha\n * that is 6.5 shaos zmaniyos (solar hours) after sunrise or sea level sunrise\n * (depending on the `useElevation` setting), according\n * to the [GRA](https://en.wikipedia.org/wiki/Vilna_Gaon).\n *\n * The Ramba\"m is of the opinion that it is better to delay *mincha* until\n * *mincha ketana* while the Ra\"sh, Tur, GRA and others are of the\n * opinion that *mincha* can be prayed *lechatchila* starting at *mincha gedola*.\n */\n minchaGedola(): Date {\n return this.getShaahZmanisBasedZman(6.5);\n }\n /**\n * Earliest Mincha – Mincha Gedola (MGA); Sunrise plus 6.5 halachic hours.\n * If elevation is enabled, this function will include elevation in the calculation.\n *\n * This method returns the time of *mincha gedola* according to the Magen Avraham\n * with the day starting 72 minutes before sunrise and ending 72 minutes after sunset.\n * This is the earliest time to pray *mincha*.\n */\n minchaGedolaMGA(): Date {\n const [alot72, temporalHour] = this.getTemporalHour72(false);\n const offset = Math.floor(6.5 * temporalHour);\n return new Date(alot72.getTime() + offset);\n }\n /**\n * Preferable earliest time to recite Minchah – Mincha Ketana; Sunrise plus 9.5 halachic hours.\n * If elevation is enabled, this function will include elevation in the calculation.\n *\n * This method returns *mincha ketana*, the preferred earliest time to pray *mincha* in the\n * opinion of the [Rambam](https://en.wikipedia.org/wiki/Maimonides) and others,\n * that is 9.5 *shaos zmaniyos* (solar hours) after sunrise or sea level sunrise\n * (depending on the `useElevation` setting), according\n * to the [GRA](https://en.wikipedia.org/wiki/Vilna_Gaon).\n */\n minchaKetana(): Date {\n return this.getShaahZmanisBasedZman(9.5);\n }\n /**\n * This method returns the time of *mincha ketana* according to the Magen Avraham\n * with the day starting 72 minutes before sunrise and ending 72 minutes after sunset.\n * This is the preferred earliest time to pray *mincha* according to the opinion of\n * the [Rambam](https://en.wikipedia.org/wiki/Maimonides) and others.\n *\n * If elevation is enabled, this function will include elevation in the calculation.\n */\n minchaKetanaMGA(): Date {\n const [alot72, temporalHour] = this.getTemporalHour72(false);\n return new Date(alot72.getTime() + Math.floor(9.5 * temporalHour));\n }\n /**\n * Plag haMincha; Sunrise plus 10.75 halachic hours.\n * If elevation is enabled, this function will include elevation in the calculation.\n */\n plagHaMincha(): Date {\n return this.getShaahZmanisBasedZman(10.75);\n }\n /**\n * @param [angle=8.5] optional time for solar depression.\n * Default is 8.5 degrees for 3 small stars, use 7.083 degrees for 3 medium-sized stars.\n * Because degree-based functions estimate the amount of light in the sky,\n * the result is not impacted by elevation.\n */\n tzeit(angle = 8.5): Date {\n return this.timeAtAngle(angle, false);\n }\n tzeit72(): Temporal.ZonedDateTime | null {\n const zdt = this.useElevation\n ? this.noaa.getSunset()\n : this.noaa.getSeaLevelSunset();\n if (!zdt) {\n return null;\n }\n return zdt.add({minutes: 72});\n }\n /**\n * Alias for sunrise\n */\n neitzHaChama(): Date {\n return this.sunrise();\n }\n /**\n * Alias for sunset\n */\n shkiah(): Date {\n return this.sunset();\n }\n /**\n * Rabbeinu Tam holds that bein hashmashos is a specific time\n * between sunset and tzeis hakochavim.\n * One opinion on how to calculate this time is that\n * it is 13.5 minutes before tzies 7.083.\n * Because degree-based functions estimate the amount of light in the sky,\n * the result is not impacted by elevation.\n */\n beinHaShmashos(): Date {\n const tzeit = this.tzeit(7.083);\n const millis = tzeit.getTime();\n if (isNaN(millis)) {\n return tzeit;\n }\n return new Date(millis - 13.5 * 60 * 1000);\n }\n\n /**\n * Used by Molad based _zmanim_ to determine if _zmanim_ occur during the current day.\n * @return previous midnight\n */\n private getMidnightLastNight(): Temporal.ZonedDateTime {\n // reset hour, minutes, seconds and millis\n return this.plainDate.toZonedDateTime({\n timeZone: this.gloc.getTimeZone(),\n });\n }\n\n /**\n * Used by Molad based _zmanim_ to determine if _zmanim_ occur during the current day.\n * @return following midnight\n */\n private getMidnightTonight(): Temporal.ZonedDateTime {\n return this.plainDate.add({days: 1}).toZonedDateTime({\n timeZone: this.gloc.getTimeZone(),\n });\n }\n\n /**\n * Returns the Date of the _molad_ based time if it occurs on the current date. Since _Kiddush Levana_\n * can only be said during the day, there are parameters to limit it to between _alos_ and _tzais_. If\n * the time occurs between _alos_ and _tzais_, _tzais_ will be returned.\n *\n * @param moladBasedTime\n * the _molad_ based time such as _molad_, _tchilas_ and _sof zman Kiddush Levana_\n * @param alos\n * optional start of day to limit _molad_ times to the end of the night before or beginning of the next night.\n * Ignored if either _alos_ or _tzais_ are null.\n * @param tzais\n * optional end of day to limit _molad_ times to the end of the night before or beginning of the next night.\n * Ignored if either _tzais_ or _alos_ are null\n * @param techila\n * is it the start of _Kiddush Levana_ time or the end? If it is start roll it to the next _tzais_,\n * and if it is the end, return the end of the previous night (_alos_ passed in). Ignored if either\n * _alos_ or _tzais_ are null.\n * @return the _molad_ based time. If the _zman_ does not occur during the current date, `null` will be\n * returned.\n */\n private getMoladBasedTime(\n moladBasedTime: Temporal.ZonedDateTime,\n alos: Temporal.ZonedDateTime | null,\n tzais: Temporal.ZonedDateTime | null,\n techila: boolean\n ): Temporal.ZonedDateTime | null {\n const lastMidnight: Temporal.ZonedDateTime = this.getMidnightLastNight();\n const midnightTonight: Temporal.ZonedDateTime = this.getMidnightTonight();\n\n if (\n Temporal.ZonedDateTime.compare(moladBasedTime, lastMidnight) < 0 ||\n Temporal.ZonedDateTime.compare(moladBasedTime, midnightTonight) > 0\n ) {\n return null; // Invalid time, bailout\n }\n if (alos === null || tzais === null) {\n return moladBasedTime.withTimeZone(this.gloc.getTimeZone()); // Not enough info to adjust\n }\n if (\n Temporal.ZonedDateTime.compare(moladBasedTime, alos) > 0 &&\n Temporal.ZonedDateTime.compare(moladBasedTime, tzais) < 0\n ) {\n // It's the daytime (after alos but before tzais)\n // get the next/prev night\n return techila ? tzais : alos;\n }\n // It's the night, the provided time is valid\n return moladBasedTime.withTimeZone(this.gloc.getTimeZone());\n }\n\n /**\n * Returns the latest time of Kiddush Levana according to the <a\n * href=\"https://en.wikipedia.org/wiki/Yaakov_ben_Moshe_Levi_Moelin\">Maharil's</a> opinion that it is calculated as\n * halfway between _molad_ and _molad_. This adds half the 29 days, 12 hours and 793 chalakim time between\n * _molad_ and _molad_ (14 days, 18 hours, 22 minutes and 666 milliseconds) to the month's _molad_.\n * The _sof zman Kiddush Levana_ will be returned even if it occurs during the day. To limit the time to between\n * _tzais_ and _alos_, see {@link getSofZmanKidushLevanaBetweenMoldos}.\n *\n * @param alos\n * the beginning of the Jewish day. If _Kidush Levana_ occurs during the day (starting at _alos_ and\n * ending at _tzais_), the time returned will be alos. If either the _alos_ or _tzais_ parameters\n * are null, no daytime adjustment will be made.\n * @param tzais\n * the end of the Jewish day. If Kidush Levana occurs during the day (starting at alos and ending at\n * tzais), the time returned will be alos. If either the alos or tzais parameters are null, no daytime\n * adjustment will be made.\n * @return the Date representing the moment halfway between molad and molad. If the time occurs between\n * _alos_ and _tzais_, _alos_ will be returned. If the _zman_ will not occur on this\n * day, a `null` will be returned.\n */\n public getSofZmanKidushLevanaBetweenMoldos(\n alos: Temporal.ZonedDateTime | null = null,\n tzais: Temporal.ZonedDateTime | null = null\n ): Temporal.ZonedDateTime | null {\n const hd = this.hdate;\n\n // Do not calculate for impossible dates, but account for extreme cases. In the extreme case of Rapa Iti in French\n // Polynesia on Dec 2027 when kiddush Levana 3 days can be said on _Rosh Chodesh_, the sof zman Kiddush Levana\n // will be on the 12th of the Teves. In the case of Anadyr, Russia on Jan, 2071, sof zman Kiddush Levana between the\n // moldos will occur is on the night of 17th of Shevat. See Rabbi Dovid Heber's Shaarei Zmanim chapter 4 (pages 28 and 32).\n if (hd.getDate() < 11 || hd.getDate() > 16) {\n return null;\n }\n const molad = new Molad(hd.getFullYear(), hd.getMonth());\n return this.getMoladBasedTime(\n molad.getSofZmanKidushLevanaBetweenMoldos(),\n alos,\n tzais,\n false\n );\n }\n\n /**\n * Returns the latest time of _Kiddush Levana_ calculated as 15 days after the molad. This is the opinion of\n * the Shulchan Aruch (Orach Chaim 426). It should be noted that some opinions hold that the\n * <a href=\"https://en.wikipedia.org/wiki/Moses_Isserles\">Rema</a> who brings down the opinion of the <a\n * href=\"https://en.wikipedia.org/wiki/Yaakov_ben_Moshe_Levi_Moelin\">Maharil's</a> of calculating\n * {@link getSofZmanKidushLevanaBetweenMoldos half way between _molad_ and _molad_} is of\n * the opinion that the Mechaber agrees to his opinion. Also see the Aruch Hashulchan. For additional details on the subject,\n * See Rabbi Dovid Heber's very detailed write-up in Siman Daled (chapter 4) of <a href=\"https://hebrewbooks.org/53000\">Shaarei\n * Zmanim</a>. The _sof zman Kiddush Levana_ will be returned even if it occurs during the day. To limit the time to\n * between _tzais_ and _alos_, see {@link getSofZmanKidushLevana15Days}.\n *\n * @return the Date representing the moment 15 days after the _molad_. If the time occurs between\n * _alos_ and _tzais_, _alos_ will be returned. If the _zman_ will not occur on this day, a\n * `null` will be returned.\n *\n *\n */\n public getSofZmanKidushLevana15Days(\n alos: Temporal.ZonedDateTime | null = null,\n tzais: Temporal.ZonedDateTime | null = null\n ): Temporal.ZonedDateTime | null {\n const hd = this.hdate;\n\n // Do not calculate for impossible dates, but account for extreme cases. In the extreme case of Rapa Iti in\n // French Polynesia on Dec 2027 when kiddush Levana 3 days can be said on _Rosh Chodesh_, the sof zman Kiddush\n // Levana will be on the 12th of the Teves. in the case of Anadyr, Russia on Jan, 2071, sof zman kiddush levana will\n // occur after midnight on the 17th of Shevat. See Rabbi Dovid Heber's Shaarei Zmanim chapter 4 (pages 28 and 32).\n if (hd.getDate() < 11 || hd.getDate() > 17) {\n return null;\n }\n const molad = new Molad(hd.getFullYear(), hd.getMonth());\n return this.getMoladBasedTime(\n molad.getSofZmanKidushLevana15Days(),\n alos,\n tzais,\n false\n );\n }\n\n /**\n * Returns the earliest time of _Kiddush Levana_ according to <a href=\n * \"https://en.wikipedia.org/wiki/Yonah_Gerondi\">Rabbeinu Yonah</a>'s opinion that it can be said 3 days after the _molad_.\n * If the time of _tchilas zman Kiddush Levana_ occurs during the day (between _alos_ and _tzais_ passed to\n * this method) it will return the following _tzais_. If null is passed for either _alos_ or _tzais_, the actual\n * _tchilas zman Kiddush Levana_ will be returned, regardless of if it is during the day or not.\n *\n * @param alos\n * the beginning of the Jewish day. If Kidush Levana occurs during the day (starting at _alos_ and ending\n * at _tzais_), the time returned will be _tzais_. If either the _alos_ or _tzais_ parameters\n * are null, no daytime adjustment will be made.\n * @param tzais\n * the end of the Jewish day. If _Kidush Levana_ occurs during the day (starting at _alos_ and ending at\n * _tzais_), the time returned will be _tzais_. If either the _alos_ or _tzais_ parameters\n * are null, no daytime adjustment will be made.\n *\n * @return the Date representing the moment 3 days after the molad. If the time occurs between _alos_ and\n * _tzais_, _tzais_ will be returned. If the _zman_ will not occur on this day, a\n * `null` will be returned.\n */\n public getTchilasZmanKidushLevana3Days(\n alos: Temporal.ZonedDateTime | null = null,\n tzais: Temporal.ZonedDateTime | null = null\n ): Temporal.ZonedDateTime | null {\n const hd = this.hdate;\n\n // Do not calculate for impossible dates, but account for extreme cases. Tchilas zman kiddush Levana 3 days for\n // the extreme case of Rapa Iti in French Polynesia on Dec 2027 when kiddush Levana 3 days can be said on the evening\n // of the 30th, the second night of Rosh Chodesh. The 3rd day after the _molad_ will be on the 4th of the month.\n // In the case of Anadyr, Russia on Jan, 2071, when sof zman kiddush levana is on the 17th of the month, the 3rd day\n // from the molad will be on the 5th day of Shevat. See Rabbi Dovid Heber's Shaarei Zmanim chapter 4 (pages 28 and 32).\n if (hd.getDate() > 5 && hd.getDate() < 30) {\n return null;\n }\n\n const molad = new Molad(hd.getFullYear(), hd.getMonth());\n let zman: Temporal.ZonedDateTime | null = this.getMoladBasedTime(\n molad.getTchilasZmanKidushLevana3Days(),\n alos,\n tzais,\n true\n );\n\n // Get the following month's zman kiddush Levana for the extreme case of Rapa Iti in French Polynesia on Dec 2027 when\n // kiddush Levana can be said on Rosh Chodesh (the evening of the 30th). See Rabbi Dovid Heber's Shaarei Zmanim chapter 4 (page 32)\n if (zman === null && hd.getDate() === 30) {\n const hd2 = hd.add(1, 'week');\n const molad2 = new Molad(hd2.getFullYear(), hd2.getMonth());\n zman = this.getMoladBasedTime(\n molad2.getTchilasZmanKidushLevana3Days(),\n null,\n null,\n true\n );\n }\n\n return zman;\n }\n\n /**\n * Returns the point in time of _Molad_ as a <code>Date</code> Object. For the traditional day of week, hour,\n * minute and chalakim, {@link Molad.getInstant()} and the not yet completed\n * {@link HebrewDateFormatter} that will have formatting for this.\n *\n * @return the Date representing the moment of the molad. If the _molad_ does not occur on this day, a\n * `null` will be returned.\n *\n */\n public getZmanMolad(): Temporal.ZonedDateTime | null {\n const hd = this.hdate;\n\n // Optimize to not calculate for impossible dates, but account for extreme cases. The molad in the extreme case of Rapa\n // Iti in French Polynesia on Dec 2027 occurs on the night of the 27th of Kislev. In the case of Anadyr, Russia on\n // Jan 2071, the molad will be on the 2nd day of Shevat. See Rabbi Dovid Heber's Shaarei Zmanim chapter 4 (pages 28 and 32).\n if (hd.getDate() > 2 && hd.getDate() < 27) {\n return null;\n }\n\n const molad = new Molad(hd.getFullYear(), hd.getMonth());\n let zman: Temporal.ZonedDateTime | null = this.getMoladBasedTime(\n molad.getInstant(),\n null,\n null,\n true\n );\n\n // deal with molad that happens on the end of the previous month\n if (zman === null && hd.getDate() > 26) {\n const hd2 = hd.add(1, 'week');\n const molad2 = new Molad(hd2.getFullYear(), hd2.getMonth());\n zman = this.getMoladBasedTime(molad2.getInstant(), null, null, true);\n }\n return zman;\n }\n\n /**\n * Returns the earliest time of _Kiddush Levana_ according to the opinions that it should not be said until 7\n * days after the _molad_. The time will be returned even if it occurs during the day when _Kiddush Levana_\n * can't be recited. Use {@link getTchilasZmanKidushLevana7Days} if you want to limit the time to night hours.\n *\n * @return the Date representing the moment 7 days after the molad regardless of it is day or night. If the _zman_\n * will not occur on this day, a `null` will be returned.\n */\n public getTchilasZmanKidushLevana7Days(\n alos: Temporal.ZonedDateTime | null = null,\n tzais: Temporal.ZonedDateTime | null = null\n ): Temporal.ZonedDateTime | null {\n const hd = this.hdate;\n\n // Optimize to not calculate for impossible dates, but account for extreme cases. Tchilas zman kiddush Levana 7 days for\n // the extreme case of Rapa Iti in French Polynesia on Jan 2028 (when kiddush Levana 3 days can be said on the evening\n // of the 30th, the second night of Rosh Chodesh), the 7th day after the molad will be on the 4th of the month.\n // In the case of Anadyr, Russia on Jan, 2071, when sof zman kiddush levana is on the 17th of the month, the 7th day\n // from the molad will be on the 9th day of Shevat. See Rabbi Dovid Heber's Shaarei Zmanim chapter 4 (pages 28 and 32).\n if (hd.getDate() < 4 || hd.getDate() > 9) {\n return null;\n }\n const molad = new Molad(hd.getFullYear(), hd.getMonth());\n return this.getMoladBasedTime(\n molad.getTchilasZmanKidushLevana7Days(),\n alos,\n tzais,\n true\n );\n }\n\n /**\n * A method that returns the <a href=\"https://en.wikipedia.org/wiki/Shneur_Zalman_of_Liadi\">Baal Hatanya</a>'s\n * _netz amiti_ (sunrise) without\n * elevation adjustment. This forms the base for the Baal Hatanya's dawn-based calculations that are\n * calculated as a dip below the horizon before sunrise.\n *\n * According to the Baal Hatanya, _netz amiti_, or true (halachic) sunrise, is when the top of the sun's\n * disk is visible at an elevation similar to the mountains of Eretz Yisrael. The time is calculated as the point at which\n * the center of the sun's disk is 1.583&deg; below the horizon. This degree-based calculation can be found in Rabbi Shalom\n * DovBer Levine's commentary on The <a href=\"https://www.chabadlibrary.org/books/pdf/Seder-Hachnosas-Shabbos.pdf\">Baal\n * Hatanya's Seder Hachnasas Shabbos</a>. From an elevation of 546 meters, the top of <a href=\n * \"https://en.wikipedia.org/wiki/Mount_Carmel\">Har Hacarmel</a>, the sun disappears when it is 1&deg; 35' or 1.583&deg;\n * below the sea level horizon. This in turn is based on the Gemara <a href=\n * \"https://hebrewbooks.org/shas.aspx?mesechta=2&daf=35\">Shabbos 35a</a>. There are other opinions brought down by\n * Rabbi Levine, including Rabbi Yosef Yitzchok Feigelstock who calculates it as the degrees below the horizon 4 minutes after\n * sunset in Yerushalayim (on the equinox). That is brought down as 1.583&deg;. This is identical to the 1&deg; 35' _zman_\n * and is probably a typo and should be 1.683&deg;. These calculations are used by most <a href=\n * \"https://en.wikipedia.org/wiki/Chabad\">Chabad</a> calendars that use the Baal Hatanya's _zmanim_. See\n * <a href=\"https://www.chabad.org/library/article_cdo/aid/3209349/jewish/About-Our-Zmanim-Calculations.htm\">About Our\n * _Zmanim_ Calculations @ Chabad.org</a>.\n *\n * Note: _netz amiti_ is used only for calculating certain _zmanim_, and is intentionally unpublished. For\n * practical purposes, daytime _mitzvos_ like _shofar_ and _lulav_ should not be done until after the\n * published time for _netz_ / sunrise.\n *\n * @return the <code>Date</code> representing the exact sea level _netz amiti_ (sunrise) time. If the calculation can't be\n * computed such as in the Arctic Circle where there is at least one day a year where the sun does not rise, and one\n * where it does not set, a `null` will be returned. See detailed explanation on top of the page.\n *\n * @see ZENITH_1_POINT_583\n */\n private getSunriseBaalHatanya(): Temporal.ZonedDateTime | null {\n return this.noaa.getSunriseOffsetByDegrees(ZENITH_1_POINT_583);\n }\n\n /**\n * A method that returns the <a href=\"https://en.wikipedia.org/wiki/Shneur_Zalman_of_Liadi\">Baal Hatanya</a>'s\n * _shkiah amiti_ (sunset) without\n * elevation adjustment. This forms the base for the Baal Hatanya's dusk-based calculations that are calculated\n * as a dip below the horizon after sunset.\n *\n * According to the Baal Hatanya, _shkiah amiti_, true (_halachic_) sunset, is when the top of the\n * sun's disk disappears from view at an elevation similar to the mountains of _Eretz Yisrael_.\n * This time is calculated as the point at which the center of the sun's disk is 1.583 degrees below the horizon.\n *\n * Note: _shkiah amiti_ is used only for calculating certain _zmanim_, and is intentionally unpublished. For\n * practical purposes, all daytime mitzvos should be completed before the published time for _shkiah_ / sunset.\n *\n * For further explanation of the calculations used for the Baal Hatanya's _zmanim_ in this library, see\n * <a href=\"https://www.chabad.org/library/article_cdo/aid/3209349/jewish/About-Our-Zmanim-Calculations.htm\">About Our\n * _Zmanim_ Calculations @ Chabad.org</a>.\n *\n * @return the <code>Date</code> representing the exact sea level _shkiah amiti_ (sunset) time. If the calculation\n * can't be computed such as in the Arctic Circle where there is at least one day a year where the sun does not\n * rise, and one where it does not set, a `null` will be returned.\n *\n * @see ZENITH_1_POINT_583\n */\n private getSunsetBaalHatanya(): Temporal.ZonedDateTime | null {\n return this.noaa.getSunsetOffsetByDegrees(ZENITH_1_POINT_583);\n }\n\n /**\n * Returns the <a href=\"https://en.wikipedia.org/wiki/Shneur_Zalman_of_Liadi\">Baal Hatanya</a>'s _alos_\n * (dawn) calculated as the time when the sun is 16.9&deg; below the eastern {@link GEOMETRIC_ZENITH geometric horizon}\n * before {@link getSunrise() sunrise}.\n *\n * The zenith of 16.9&deg; below is based on the calculation that the time between dawn\n * and _netz amiti_ (sunrise) is 72 minutes, the time that is takes to walk 4 mil at 18 minutes\n * a mil (<a href=\"https://en.wikipedia.org/wiki/Maimonides\">Rambam</a> and others). The sun's position at 72\n * minutes before {@link getSunriseBaalHatanya _netz amiti_ (sunrise)} in Jerusalem <a href=\n * \"https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/\">around the equinox / equilux</a> is\n * 16.9&deg; below {@link GEOMETRIC_ZENITH geometric zenith}.\n *\n * @return The <code>Date</code> of dawn. If the calculation can't be computed such as northern and southern\n * locations even south of the Arctic Circle and north of the Antarctic Circle where the sun may not reach\n * low enough below the horizon for this calculation, a `null` will be returned. */\n public alosBaalHatanya(): Date {\n return this.timeAtAngle(16.9, true);\n }\n\n private getShaahZmanisBaalHatanya(hours: number): Date {\n const zdt = this.getShaahZmanisBasedZmanZdt(\n this.getSunriseBaalHatanya(),\n this.getSunsetBaalHatanya(),\n hours\n );\n return zdtToDate(zdt);\n }\n\n /**\n * This method returns the latest _zman krias shema_ (time to recite Shema in the morning). This time is 3\n * {@link shaahZmanisBaalHatanya() _shaos zmaniyos_} (solar hours) after {@link getSunriseBaalHatanya()\n * _netz amiti_ (sunrise)} based on the opinion of the Baal Hatanya that the day is calculated from\n * sunrise to sunset. This returns the time 3 * {@link getShaahZmanisBaalHatanya()} after {@link getSunriseBaalHatanya()\n * _netz amiti_ (sunrise)}.\n *\n * @return the <code>Date</code> of the latest _zman shema_ according to the Baal Hatanya. If the calculation\n * can't be computed such as in the Arctic Circle where there is at least one day a year where the sun does\n * not rise, and one where it does not set, a `null` will be returned.\n */\n public sofZmanShmaBaalHatanya(): Date {\n return this.getShaahZmanisBaalHatanya(3);\n }\n\n /**\n * This method returns the latest _zman tfilah_ (time to recite the morning prayers). This time is 4\n * hours into the day based on the opinion of the Baal Hatanya that the day is\n * calculated from sunrise to sunset. This returns the time 4 * {@link getShaahZmanisBaalHatanya()} after\n * {@link getSunriseBaalHatanya() _netz amiti_ (sunrise)}.\n *\n * @return the <code>Date</code> of the latest _zman tfilah_. If the calculation can't be computed such as in\n * the Arctic Circle where there is at least one day a year where the sun does not rise, and one where it does\n * not set, a `null` will be returned.\n */\n public sofZmanTfilaBaalHatanya(): Date {\n return this.getShaahZmanisBaalHatanya(4);\n }\n\n /**\n * This method returns the time of _mincha gedola_. _Mincha gedola_ is the earliest time one can pray\n * _mincha_. The <a href=\"https://en.wikipedia.org/wiki/Maimonides\">Rambam</a> is of the opinion that it is\n * better to delay _mincha_ until {@link minchaKetanaBaalHatanya() _mincha ketana_} while the\n * <a href=\"https://en.wikipedia.org/wiki/Asher_ben_Jehiel\">Ra\"sh</a>,\n * <a href=\"https://en.wikipedia.org/wiki/Jacob_ben_Asher\">Tur</a>, <a href=\n * \"https://en.wikipedia.org/wiki/Vilna_Gaon\">GRA</a> and others are of the opinion that _mincha_ can be prayed\n * _lechatchila_ starting at _mincha gedola_. This is calculated as 6.5 {@link getShaahZmanisBaalHatanya()\n * sea level solar hours} after {@link getSunriseBaalHatanya() _netz amiti_ (sunrise)}. This calculation is based\n * on the opinion of the Baal Hatanya that the day is calculated from sunrise to sunset. This returns the time 6.5\n * * {@link getShaahZmanisBaalHatanya()} after {@link getSunriseBaalHatanya() _netz amiti_ (\"real\" sunrise)}.\n * @return the <code>Date</code> of the time of _mincha gedola_ according to the Baal Hatanya. If the calculation\n * can't be computed such as in the Arctic Circle where there is at least one day a year where the sun does not rise,\n * and one where it does not set, a `null` will be returned.\n */\n public minchaGedolaBaalHatanya(): Date {\n return this.getShaahZmanisBaalHatanya(6.5);\n }\n\n /**\n * This method returns the time of _mincha ketana_. This is the preferred earliest time to pray\n * _mincha_ in the opinion of the <a href=\"https://en.wikipedia.org/wiki/Maimonides\">Rambam</a> and others.\n * For more information on this see the documentation on {@link minchaGedolaBaalHatanya() _mincha gedola_}.\n * This is calculated as 9.5 sea level solar hours after {@link getSunriseBaalHatanya\n * _netz amiti_ (sunrise)}. This calculation is calculated based on the opinion of the Baal Hatanya that the\n * day is calculated from sunrise to sunset. This returns the time 9.5 * after\n * _netz amiti_ (sunrise).\n *\n * @return the <code>Date</code> of the time of _mincha ketana_. If the calculation can't be computed such as\n * in the Arctic Circle where there is at least one day a year where the sun does not rise, and one where it\n * does not set, a `null` will be returned.\n */\n public minchaKetanaBaalHatanya(): Date {\n return this.getShaahZmanisBaalHatanya(9.5);\n }\n\n /**\n * This method returns the time of _plag hamincha_. This is calculated as 10.75 hours after sunrise. This\n * calculation is based on the opinion of the Baal Hatanya that the day is calculated\n * from sunrise to sunset. This returns the time 10.75 * {@link getShaahZmanisBaalHatanya()} after\n * {@link getSunriseBaalHatanya() _netz amiti_ (sunrise)}.\n *\n * @return the <code>Date</code> of the time of _plag hamincha_. If the calculation can't be computed such as\n * in the Arctic Circle where there is at least one day a year where the sun does not rise, and one where it\n * does not set, a `null` will be returned.\n */\n public plagHaminchaBaalHatanya(): Date {\n return this.getShaahZmanisBaalHatanya(10.75);\n }\n\n /**\n * A method that returns _tzais_ (nightfall) when the sun is 6&deg; below the western geometric horizon\n * (90&deg;) after {@link getSunset() sunset}. For information on the source of this calculation see\n * {@link ZENITH_6_DEGREES}.\n *\n * @return The <code>Date</code> of nightfall. If the calculation can't be computed such as northern and southern\n * locations even south of the Arctic Circle and north of the Antarctic Circle where the sun may not reach\n * low enough below the horizon for this calculation, a `null` will be returned. * @see ZENITH_6_DEGREES\n */\n public tzaisBaalHatanya(): Date {\n return this.timeAtAngle(6, false);\n }\n\n /**\n * Uses timeFormat to return a date like '20:34'.\n * Returns `XX:XX` if the date is invalid.\n */\n static formatTime(dt: Date, timeFormat: Intl.DateTimeFormat): string {\n if (isNaN(dt.getTime())) {\n return 'XX:XX'; // Invalid Date\n }\n const time = timeFormat.format(dt);\n const hm = time.split(':');\n if (hm[0] === '24') {\n return '00:' + hm[1];\n }\n return time;\n }\n\n /**\n * Discards seconds, rounding to nearest minute.\n * @param dt\n */\n static roundTime(dt: Date): Date {\n const millis = dt.getTime();\n if (isNaN(millis)) {\n return dt;\n }\n // Round up to next minute if needed\n const millisOnly = dt.getMilliseconds();\n const seconds = dt.getSeconds();\n if (seconds === 0 && millisOnly === 0) {\n return dt;\n }\n const secAndMillis = seconds * 1000 + millisOnly;\n const delta =\n secAndMillis >= 30000 ? 60000 - secAndMillis : -1 * secAndMillis;\n return new Date(millis + delta);\n }\n\n /**\n * Get offset string (like \"+05:00\" or \"-08:00\") from tzid (like \"Europe/Moscow\")\n * @param tzid\n * @param date\n */\n static timeZoneOffset(tzid: string, date: Date): string {\n const offset = getTimezoneOffset(tzid, date);\n const offsetAbs = Math.abs(offset);\n const hours = Math.floor(offsetAbs / 60);\n const minutes = offsetAbs % 60;\n return (offset < 0 ? '+' : '-') + pad2(hours) + ':' + pad2(minutes);\n }\n\n /**\n * Returns a string like \"2022-04-01T13:06:00-11:00\"\n * @param tzid\n * @param date\n */\n static formatISOWithTimeZone(tzid: string, date: Date): string {\n if (isNaN(date.getTime())) {\n return '0000-00-00T00:00:00Z';\n }\n return (\n getPseudoISO(tzid, date).substring(0, 19) +\n Zmanim.timeZoneOffset(tzid, date)\n );\n }\n\n /**\n * Returns sunrise + `offset` minutes (either positive or negative).\n * If elevation is enabled, this function will include elevation in the calculation\n * unless `forceSeaLevel` is `true`.\n * @param offset minutes\n * @param roundMinute round time to nearest minute (default true)\n * @param forceSeaLevel use sea-level sunrise (default false)\n */\n sunriseOffset(\n offset: number,\n roundMinute = true,\n forceSeaLevel = false\n ): Date {\n const sunrise = forceSeaLevel ? this.seaLevelSunrise() : this.sunrise();\n if (isNaN(sunrise.getTime())) {\n return sunrise;\n }\n if (roundMinute) {\n // For positive offsets only, round up to next minute if needed\n if (offset > 0 && sunrise.getSeconds() >= 30) {\n offset++;\n }\n sunrise.setSeconds(0, 0);\n }\n return new Date(sunrise.getTime() + offset * 60 * 1000);\n }\n\n /**\n * Returns sunset + `offset` minutes (either positive or negative).\n * If elevation is enabled, this function will include elevation in the calculation\n * unless `forceSeaLevel` is `true`.\n * @param offset minutes\n * @param roundMinute round time to nearest minute (default true)\n * @param forceSeaLevel use sea-level sunset (default false)\n */\n sunsetOffset(\n offset: number,\n roundMinute = true,\n forceSeaLevel = false\n ): Date {\n const sunset = forceSeaLevel ? this.seaLevelSunset() : this.sunset();\n if (isNaN(sunset.getTime())) {\n return sunset;\n }\n if (roundMinute) {\n // For Havdalah only, round up to next minute if needed\n if (offset > 0 && sunset.getSeconds() >= 30) {\n offset++;\n }\n sunset.setSeconds(0, 0);\n }\n return new Date(sunset.getTime() + offset * 60 * 1000);\n }\n /**\n * Returns the Hebrew date relative to the specified location and Gregorian date,\n * taking into consideration whether the time is before or after sunset.\n *\n * For example, if the given date and is `2024-09-22T10:35` (before sunset), and\n * sunset for the specified location is **19:04**, then this function would\n * return a Hebrew date of `19th of Elul, 5784`.\n * If the given date is the same Gregorian day after sunset\n * (for example `2024-09-22T20:07`), this function would return a\n * Hebrew date of `20th of Elul, 5784`.\n * @example\n * const {GeoLocation, Zmanim, HDate} = require('@hebcal/core');\n * const latitude = 48.85341;\n * const longitude = 2.3488;\n * const timezone = 'Europe/Paris';\n * const gloc = new GeoLocation(null, latitude, longitude, 0, timezone);\n * const before = Zmanim.makeSunsetAwareHDate(gloc, new Date('2024-09-22T17:38:46.123Z'), false);\n * console.log(before.toString()); // '19 Elul 5784'\n * const after = Zmanim.makeSunsetAwareHDate(gloc, new Date('2024-09-22T23:45:18.345Z'), false);\n * console.log(after.toString()); // '20 Elul 5784'\n */\n static makeSunsetAwareHDate(\n gloc: GeoLocation,\n date: Date,\n useElevation: boolean\n ): HDate {\n const zmanim = new Zmanim(gloc, date, useElevation);\n const sunset = zmanim.sunset();\n let hd = new HDate(date);\n const sunsetMillis = sunset.getTime();\n if (isNaN(sunsetMillis)) {\n return hd;\n }\n if (date.getTime() >= sunsetMillis) {\n hd = hd.next();\n }\n return hd;\n }\n}\n"],"names":[],"mappings":";;;;;;AAWA;;AAEG;AACH,SAAS,SAAS,CAAC,GAAkC,EAAA;AACnD,IAAA,IAAI,GAAG,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,IAAI,CAAC,GAAG,CAAC;I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ACV,YAAqB,EAAA;QAErB,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,CAAC;AACnD,QAAA,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE;AAC9B,QAAA,IAAI,EAAE,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC;AACxB,QAAA,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,EAAE;AACrC,QAAA,IAAI,KAAK,CAAC,YAAY,CAAC,EAAE;AACvB,YAAA,OAAO,EAAE;QACX;AACA,QAAA,IAAI,IAAI,CAAC,OAAO,EAAE,IAAI,YAAY,EAAE;AAClC,YAAA,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE;QAChB;AACA,QAAA,OAAO,EAAE;IACX;AACD;;;;"}
package/dist/src/he.po.js CHANGED
@@ -1 +1 @@
1
- export default { "headers": { "plural-forms": "nplurals=2; plural=(n > 1);", "language": "he_IL" }, "contexts": { "": { "Shabbat": ["שַׁבָּת"], "Parashat": ["פָּרָשַׁת"], "Achrei Mot": ["אַחֲרֵי מוֹת"], "Balak": ["בָּלָק"], "Bamidbar": ["בְּמִדְבַּר"], "Bechukotai": ["בְּחֻקֹּתַי"], "Beha'alotcha": ["בְּהַעֲלֹתְךָ"], "Behar": ["בְּהַר"], "Bereshit": ["בְּרֵאשִׁית"], "Beshalach": ["בְּשַׁלַּח"], "Bo": ["בֹּא"], "Chayei Sara": ["חַיֵּי שָֹרָה"], "Chukat": ["חֻקַּת"], "Devarim": ["דְּבָרִים"], "Eikev": ["עֵקֶב"], "Emor": ["אֱמוֹר"], "Ha'azinu": ["הַאֲזִינוּ"], "Kedoshim": ["קְדֹשִׁים"], "Ki Tavo": ["כִּי־תָבוֹא"], "Ki Teitzei": ["כִּי־תֵצֵא"], "Ki Tisa": ["כִּי תִשָּׂא"], "Korach": ["קֹרַח"], "Lech-Lecha": ["לֶךְ־לְךָ"], "Masei": ["מַסְעֵי"], "Matot": ["מַטּוֹת"], "Metzora": ["מְצֹרָע"], "Miketz": ["מִקֵּץ"], "Mishpatim": ["מִשְׁפָּטִים"], "Nasso": ["נָשׂא"], "Nitzavim": ["נִצָּבִים"], "Noach": ["נֹחַ"], "Pekudei": ["פְקוּדֵי"], "Pinchas": ["פִּינְחָס"], "Re'eh": ["רְאֵה"], "Sh'lach": ["שְׁלַח־לְךָ"], "Shemot": ["שְׁמוֹת"], "Shmini": ["שְּׁמִינִי"], "Shoftim": ["שׁוֹפְטִים"], "Tazria": ["תַזְרִיעַ"], "Terumah": ["תְּרוּמָה"], "Tetzaveh": ["תְּצַוֶּה"], "Toldot": ["תּוֹלְדוֹת"], "Tzav": ["צַו"], "Vaera": ["וָאֵרָא"], "Vaetchanan": ["וָאֶתְחַנַּן"], "Vayakhel": ["וַיַּקְהֵל"], "Vayechi": ["וַיְחִי"], "Vayeilech": ["וַיֵּלֶךְ"], "Vayera": ["וַיֵּרָא"], "Vayeshev": ["וַיֵּשֶׁב"], "Vayetzei": ["וַיֵּצֵא"], "Vayigash": ["וַיִּגַּשׁ"], "Vayikra": ["וַיִּקְרָא"], "Vayishlach": ["וַיִּשְׁלַח"], "Vezot Haberakhah": ["וְזֹאת הַבְּרָכָה"], "Yitro": ["יִתְרוֹ"], "Asara B'Tevet": ["עֲשָׂרָה בְּטֵבֵת"], "Candle lighting": ["הַדְלָקַת נֵרוֹת"], "Chanukah": ["חֲנוּכָּה"], "Chanukah: 1 Candle": ["חֲנוּכָּה: א׳ נֵר"], "Chanukah: 2 Candles": ["חֲנוּכָּה: ב׳ נֵרוֹת"], "Chanukah: 3 Candles": ["חֲנוּכָּה: ג׳ נֵרוֹת"], "Chanukah: 4 Candles": ["חֲנוּכָּה: ד׳ נֵרוֹת"], "Chanukah: 5 Candles": ["חֲנוּכָּה: ה׳ נֵרוֹת"], "Chanukah: 6 Candles": ["חֲנוּכָּה: ו׳ נֵרוֹת"], "Chanukah: 7 Candles": ["חֲנוּכָּה: ז׳ נֵרוֹת"], "Chanukah: 8 Candles": ["חֲנוּכָּה: ח׳ נֵרוֹת"], "Chanukah: 8th Day": ["חֲנוּכָּה: יוֹם ח׳"], "Days of the Omer": ["סְפִירַת הָעוֹמֶר"], "Omer": ["עוֹמֶר"], "day of the Omer": ["בָּעוֹמֶר"], "Erev Pesach": ["עֶרֶב פֶּסַח"], "Erev Purim": ["עֶרֶב פּוּרִים"], "Erev Rosh Hashana": ["עֶרֶב רֹאשׁ הַשָּׁנָה"], "Erev Shavuot": ["עֶרֶב שָׁבוּעוֹת"], "Erev Simchat Torah": ["עֶרֶב שִׂמְחַת תּוֹרָה"], "Erev Sukkot": ["עֶרֶב סֻכּוֹת"], "Erev Tish'a B'Av": ["עֶרֶב תִּשְׁעָה בְּאָב"], "Erev Yom Kippur": ["עֶרֶב יוֹם כִּפּוּר"], "Havdalah": ["הַבְדָּלָה"], "Lag BaOmer": ["ל״ג בָּעוֹמֶר"], "Leil Selichot": ["סְלִיחוֹת"], "Pesach": ["פֶּסַח"], "Pesach I": ["פֶּסַח א׳"], "Pesach II": ["פֶּסַח ב׳"], "Pesach II (CH''M)": ["פֶּסַח ב׳ (חוה״מ)"], "Pesach III (CH''M)": ["פֶּסַח ג׳ (חוה״מ)"], "Pesach IV (CH''M)": ["פֶּסַח ד׳ (חוה״מ)"], "Pesach Sheni": ["פֶּסַח שֵׁנִי"], "Pesach V (CH''M)": ["פֶּסַח ה׳ (חוה״מ)"], "Pesach VI (CH''M)": ["פֶּסַח ו׳ (חוה״מ)"], "Pesach VII": ["פֶּסַח ז׳"], "Pesach VIII": ["פֶּסַח ח׳"], "Pesach Shabbat Chol ha-Moed": ["פֶּסַח שַׁבָּת חֹל הַמּוֹעֵד"], "Purim": ["פּוּרִים"], "Purim Katan": ["פּוּרִים קָטָן"], "Rosh Chodesh %s": ["רֹאשׁ חוֹדֶשׁ %s"], "Rosh Chodesh": ["רֹאשׁ חוֹדֶשׁ"], "Rosh Hashana": ["רֹאשׁ הַשָּׁנָה"], "Rosh Hashana I": ["רֹאשׁ הַשָּׁנָה א׳"], "Rosh Hashana II": ["רֹאשׁ הַשָּׁנָה ב׳"], "Shabbat Chazon": ["שַׁבַּת חֲזוֹן"], "Shabbat HaChodesh": ["שַׁבַּת הַחֹדֶשׁ"], "Shabbat HaGadol": ["שַׁבַּת הַגָּדוֹל"], "Shabbat Nachamu": ["שַׁבַּת נַחֲמוּ"], "Shabbat Parah": ["שַׁבַּת פָּרָה"], "Shabbat Shekalim": ["שַׁבַּת שְׁקָלִים"], "Shabbat Shuva": ["שַׁבַּת שׁוּבָה"], "Shabbat Zachor": ["שַׁבַּת זָכוֹר"], "Shavuot": ["שָׁבוּעוֹת"], "Shavuot I": ["שָׁבוּעוֹת א׳"], "Shavuot II": ["שָׁבוּעוֹת ב׳"], "Shmini Atzeret": ["שְׁמִינִי עֲצֶרֶת"], "Shushan Purim": ["שׁוּשָׁן פּוּרִים"], "Sigd": ["חַג הַסִּיגְד"], "Simchat Torah": ["שִׂמְחַת תּוֹרָה"], "Sukkot": ["סֻכּוֹת"], "Sukkot I": ["סֻכּוֹת א׳"], "Sukkot II": ["סֻכּוֹת ב׳"], "Sukkot II (CH''M)": ["סֻכּוֹת ב׳ (חוה״מ)"], "Sukkot III (CH''M)": ["סֻכּוֹת ג׳ (חוה״מ)"], "Sukkot IV (CH''M)": ["סֻכּוֹת ד׳ (חוה״מ)"], "Sukkot V (CH''M)": ["סֻכּוֹת ה׳ (חוה״מ)"], "Sukkot VI (CH''M)": ["סֻכּוֹת ו׳ (חוה״מ)"], "Sukkot VII (Hoshana Raba)": ["סֻכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"], "Sukkot Shabbat Chol ha-Moed": ["סֻכּוֹת שַׁבָּת חֹל הַמּוֹעֵד"], "Ta'anit Bechorot": ["תַּעֲנִית בְּכוֹרוֹת"], "Ta'anit Esther": ["תַּעֲנִית אֶסְתֵּר"], "Tish'a B'Av": ["תִּשְׁעָה בְּאָב"], "Tu B'Av": ["ט״וּ בְּאָב"], "Tu BiShvat": ["ט״וּ בִּשְׁבָט"], "Tu B'Shvat": ["ט״וּ בִּשְׁבָט"], "Tzom Gedaliah": ["צוֹם גְּדַלְיָה"], "Tzom Tammuz": ["צוֹם י״ז בְּתַמּוּז"], "Yom HaAtzma'ut": ["יוֹם הָעַצְמָאוּת"], "Yom HaShoah": ["יוֹם הַשּׁוֹאָה"], "Yom HaZikaron": ["יוֹם הַזִּכָּרוֹן"], "Yom Kippur": ["יוֹם כִּפּוּר"], "Yom Yerushalayim": ["יוֹם יְרוּשָׁלַיִם"], "Yom HaAliyah": ["יוֹם הַעֲלִיָּה"], "Yom HaAliyah School Observance": ["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"], "Rosh Chodesh Adar": ["רֹאשׁ חוֹדֶשׁ אֲדָר"], "Rosh Chodesh Adar I": ["רֹאשׁ חוֹדֶשׁ אֲדָר א׳"], "Rosh Chodesh Adar II": ["רֹאשׁ חוֹדֶשׁ אֲדָר ב׳"], "Rosh Chodesh Av": ["רֹאשׁ חוֹדֶשׁ אָב"], "Rosh Chodesh Cheshvan": ["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"], "Rosh Chodesh Elul": ["רֹאשׁ חוֹדֶשׁ אֱלוּל"], "Rosh Chodesh Iyyar": ["רֹאשׁ חוֹדֶשׁ אִיָּיר"], "Rosh Chodesh Kislev": ["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"], "Rosh Chodesh Nisan": ["רֹאשׁ חוֹדֶשׁ נִיסָן"], "Rosh Chodesh Sh'vat": ["רֹאשׁ חוֹדֶשׁ שְׁבָט"], "Rosh Chodesh Sivan": ["רֹאשׁ חוֹדֶשׁ סִיוָן"], "Rosh Chodesh Tamuz": ["רֹאשׁ חוֹדֶשׁ תַּמּוּז"], "Rosh Chodesh Tammuz": ["רֹאשׁ חוֹדֶשׁ תַּמּוּז"], "Rosh Chodesh Tevet": ["רֹאשׁ חוֹדֶשׁ טֵבֵת"], "min": ["דַּקּוֹת"], "Fast begins": ["תְּחִילַּת הַצוֹם"], "Fast ends": ["סִיּוּם הַצוֹם"], "Rosh Hashana LaBehemot": ["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"], "Tish'a B'Av (observed)": ["(תִּשְׁעָה בְּאָב (נִדְחָה"], "Shabbat Mevarchim Chodesh": ["שַׁבַּת מְבָרְכִים חוֹדֶשׁ"], "Shabbat Shirah": ["שַׁבַּת שִׁירָה"], "Lovingkindness": ["חֶסֶד"], "Might": ["גְּבוּרָה"], "Beauty": ["תִּפְאֶרֶת"], "Eternity": ["נֶּצַח"], "Splendor": ["הוֹד"], "Foundation": ["יְּסוֹד"], "Majesty": ["מַּלְכוּת"], "day": ["יוֹם"], "Yom Kippur Katan": ["יוֹם כִּפּוּר קָטָן"], "Yizkor": ["יִזְכּוֹר"], "Family Day": ["יוֹם הַמִּשׁפָּחָה"], "Yitzhak Rabin Memorial Day": ["יוֹם הַזִּכָּרוֹן לְיִצְחָק רַבִּין"], "Jabotinsky Day": ["יוֹם זַ׳בּוֹטִינְסְקִי"], "Herzl Day": ["יוֹם הֵרְצְל"], "Ben-Gurion Day": ["יוֹם בן־גוריון"], "Hebrew Language Day": ["יוֹם הַשָׂפָה הַעִברִית"], "Birkat Hachamah": ["בִּרְכַּת הַחַמָּה"], "Birkat HaChamah": ["בִּרְכַּת הַחַמָּה"], "Shushan Purim Katan": ["שׁוּשָׁן פּוּרִים קָטָן"], "Purim Meshulash": ["פּוּרִים מְשׁוּלָּשׁ"], "Chag HaBanot": ["חַג הַבָּנוֹת"], "Molad": ["מוֹלָד הָלְּבָנָה"], "chalakim": ["חֲלָקִים"], "Alot HaShachar": ["עֲלוֹת הַשַּׁחַר"], "Misheyakir": ["מִשֶּׁיַּכִּיר"], "Misheyakir Machmir": ["מִשֶּׁיַּכִּיר מַחְמִיר"], "Sunrise": ["נֵץ הַחַמָּה"], "Kriat Shema, sof zeman": ["סוֹף זְמַן קְרִיאַת שְׁמַע"], "Tefilah, sof zeman": ["סוֹף זְמַן תְּפִלָּה"], "Kriat Shema, sof zeman (MGA)": ["סוֹף זְמַן קְרִיאַת שְׁמַע (מג״א)"], "Kriat Shema, sof zeman (GRA)": ["סוֹף זְמַן קְרִיאַת שְׁמַע (גְּרָ״א)"], "Tefilah, sof zeman (MGA)": ["סוֹף זְמַן תְּפִלָּה (מג״א)"], "Tefilah, sof zeman (GRA)": ["סוֹף זְמַן תְּפִלָּה (גְּרָ״א)"], "Chatzot HaLailah": ["חֲצוֹת הַלַּיְלָה"], "Chatzot HaYom": ["חֲצוֹת הַיּוֹם"], "Chatzot hayom": ["חֲצוֹת הַיּוֹם"], "Mincha Gedolah": ["מִנְחָה גְּדוֹלָה"], "Mincha Ketanah": ["מִנְחָה קְטַנָּה"], "Plag HaMincha": ["פְּלַג הַמִּנְחָה"], "Sunset": ["שְׁקִיעַת הַחַמָּה"], "Bein HaShemashot": ["בֵּין הַשְּׁמָשׁוֹת"], "Tzeit HaKochavim": ["צֵאת הַכּוֹכָבִים"], "Biur Chametz": ["בִּעוּר חָמֵץ"], "Finish eating chametz": ["סוֹף זְמַן אֲכִילַת חָמֵץ"] } } };
1
+ export default { "headers": { "plural-forms": "nplurals=2; plural=(n > 1);", "language": "he_IL" }, "contexts": { "": { "Shabbat": ["שַׁבָּת"], "Parashat": ["פָּרָשַׁת"], "Achrei Mot": ["אַחֲרֵי מוֹת"], "Balak": ["בָּלָק"], "Bamidbar": ["בְּמִדְבַּר"], "Bechukotai": ["בְּחֻקֹּתַי"], "Beha'alotcha": ["בְּהַעֲלֹתְךָ"], "Behar": ["בְּהַר"], "Bereshit": ["בְּרֵאשִׁית"], "Beshalach": ["בְּשַׁלַּח"], "Bo": ["בֹּא"], "Chayei Sara": ["חַיֵּי שָֹרָה"], "Chukat": ["חֻקַּת"], "Devarim": ["דְּבָרִים"], "Eikev": ["עֵקֶב"], "Emor": ["אֱמוֹר"], "Ha'azinu": ["הַאֲזִינוּ"], "Kedoshim": ["קְדֹשִׁים"], "Ki Tavo": ["כִּי־תָבוֹא"], "Ki Teitzei": ["כִּי־תֵצֵא"], "Ki Tisa": ["כִּי תִשָּׂא"], "Korach": ["קֹרַח"], "Lech-Lecha": ["לֶךְ־לְךָ"], "Masei": ["מַסְעֵי"], "Matot": ["מַטּוֹת"], "Metzora": ["מְצֹרָע"], "Miketz": ["מִקֵּץ"], "Mishpatim": ["מִשְׁפָּטִים"], "Nasso": ["נָשׂא"], "Nitzavim": ["נִצָּבִים"], "Noach": ["נֹחַ"], "Pekudei": ["פְקוּדֵי"], "Pinchas": ["פִּינְחָס"], "Re'eh": ["רְאֵה"], "Sh'lach": ["שְׁלַח־לְךָ"], "Shemot": ["שְׁמוֹת"], "Shmini": ["שְּׁמִינִי"], "Shoftim": ["שׁוֹפְטִים"], "Tazria": ["תַזְרִיעַ"], "Terumah": ["תְּרוּמָה"], "Tetzaveh": ["תְּצַוֶּה"], "Toldot": ["תּוֹלְדוֹת"], "Tzav": ["צַו"], "Vaera": ["וָאֵרָא"], "Vaetchanan": ["וָאֶתְחַנַּן"], "Vayakhel": ["וַיַּקְהֵל"], "Vayechi": ["וַיְחִי"], "Vayeilech": ["וַיֵּלֶךְ"], "Vayera": ["וַיֵּרָא"], "Vayeshev": ["וַיֵּשֶׁב"], "Vayetzei": ["וַיֵּצֵא"], "Vayigash": ["וַיִּגַּשׁ"], "Vayikra": ["וַיִּקְרָא"], "Vayishlach": ["וַיִּשְׁלַח"], "Vezot Haberakhah": ["וְזֹאת הַבְּרָכָה"], "Yitro": ["יִתְרוֹ"], "Asara B'Tevet": ["עֲשָׂרָה בְּטֵבֵת"], "Candle lighting": ["הַדְלָקַת נֵרוֹת"], "Chanukah": ["חֲנוּכָּה"], "Chanukah: 1 Candle": ["חֲנוּכָּה: א׳ נֵר"], "Chanukah: 2 Candles": ["חֲנוּכָּה: ב׳ נֵרוֹת"], "Chanukah: 3 Candles": ["חֲנוּכָּה: ג׳ נֵרוֹת"], "Chanukah: 4 Candles": ["חֲנוּכָּה: ד׳ נֵרוֹת"], "Chanukah: 5 Candles": ["חֲנוּכָּה: ה׳ נֵרוֹת"], "Chanukah: 6 Candles": ["חֲנוּכָּה: ו׳ נֵרוֹת"], "Chanukah: 7 Candles": ["חֲנוּכָּה: ז׳ נֵרוֹת"], "Chanukah: 8 Candles": ["חֲנוּכָּה: ח׳ נֵרוֹת"], "Chanukah: 8th Day": ["חֲנוּכָּה: יוֹם ח׳"], "Days of the Omer": ["סְפִירַת הָעוֹמֶר"], "Omer": ["עוֹמֶר"], "day of the Omer": ["בָּעוֹמֶר"], "Erev Pesach": ["עֶרֶב פֶּסַח"], "Erev Purim": ["עֶרֶב פּוּרִים"], "Erev Rosh Hashana": ["עֶרֶב רֹאשׁ הַשָּׁנָה"], "Erev Shavuot": ["עֶרֶב שָׁבוּעוֹת"], "Erev Simchat Torah": ["עֶרֶב שִׂמְחַת תּוֹרָה"], "Erev Sukkot": ["עֶרֶב סֻכּוֹת"], "Erev Tish'a B'Av": ["עֶרֶב תִּשְׁעָה בְּאָב"], "Erev Yom Kippur": ["עֶרֶב יוֹם כִּפּוּר"], "Havdalah": ["הַבְדָּלָה"], "Lag BaOmer": ["ל״ג בָּעוֹמֶר"], "Leil Selichot": ["סְלִיחוֹת"], "Pesach": ["פֶּסַח"], "Pesach I": ["פֶּסַח א׳"], "Pesach II": ["פֶּסַח ב׳"], "Pesach II (CH''M)": ["פֶּסַח ב׳ (חוה״מ)"], "Pesach III (CH''M)": ["פֶּסַח ג׳ (חוה״מ)"], "Pesach IV (CH''M)": ["פֶּסַח ד׳ (חוה״מ)"], "Pesach Sheni": ["פֶּסַח שֵׁנִי"], "Pesach V (CH''M)": ["פֶּסַח ה׳ (חוה״מ)"], "Pesach VI (CH''M)": ["פֶּסַח ו׳ (חוה״מ)"], "Pesach VII": ["פֶּסַח ז׳"], "Pesach VIII": ["פֶּסַח ח׳"], "Pesach Shabbat Chol ha-Moed": ["פֶּסַח שַׁבָּת חֹל הַמּוֹעֵד"], "Purim": ["פּוּרִים"], "Purim Katan": ["פּוּרִים קָטָן"], "Rosh Chodesh %s": ["רֹאשׁ חוֹדֶשׁ %s"], "Rosh Chodesh": ["רֹאשׁ חוֹדֶשׁ"], "Rosh Hashana": ["רֹאשׁ הַשָּׁנָה"], "Rosh Hashana I": ["רֹאשׁ הַשָּׁנָה א׳"], "Rosh Hashana II": ["רֹאשׁ הַשָּׁנָה ב׳"], "Shabbat Chazon": ["שַׁבַּת חֲזוֹן"], "Shabbat HaChodesh": ["שַׁבַּת הַחֹדֶשׁ"], "Shabbat HaGadol": ["שַׁבַּת הַגָּדוֹל"], "Shabbat Nachamu": ["שַׁבַּת נַחֲמוּ"], "Shabbat Parah": ["שַׁבַּת פָּרָה"], "Shabbat Shekalim": ["שַׁבַּת שְׁקָלִים"], "Shabbat Shuva": ["שַׁבַּת שׁוּבָה"], "Shabbat Zachor": ["שַׁבַּת זָכוֹר"], "Shavuot": ["שָׁבוּעוֹת"], "Shavuot I": ["שָׁבוּעוֹת א׳"], "Shavuot II": ["שָׁבוּעוֹת ב׳"], "Shmini Atzeret": ["שְׁמִינִי עֲצֶרֶת"], "Shushan Purim": ["שׁוּשָׁן פּוּרִים"], "Sigd": ["חַג הַסִּיגְד"], "Simchat Torah": ["שִׂמְחַת תּוֹרָה"], "Sukkot": ["סֻכּוֹת"], "Sukkot I": ["סֻכּוֹת א׳"], "Sukkot II": ["סֻכּוֹת ב׳"], "Sukkot II (CH''M)": ["סֻכּוֹת ב׳ (חוה״מ)"], "Sukkot III (CH''M)": ["סֻכּוֹת ג׳ (חוה״מ)"], "Sukkot IV (CH''M)": ["סֻכּוֹת ד׳ (חוה״מ)"], "Sukkot V (CH''M)": ["סֻכּוֹת ה׳ (חוה״מ)"], "Sukkot VI (CH''M)": ["סֻכּוֹת ו׳ (חוה״מ)"], "Sukkot VII (Hoshana Raba)": ["סֻכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"], "Sukkot Shabbat Chol ha-Moed": ["סֻכּוֹת שַׁבָּת חֹל הַמּוֹעֵד"], "Ta'anit Bechorot": ["תַּעֲנִית בְּכוֹרוֹת"], "Ta'anit Esther": ["תַּעֲנִית אֶסְתֵּר"], "Tish'a B'Av": ["תִּשְׁעָה בְּאָב"], "Tu B'Av": ["ט״וּ בְּאָב"], "Tu BiShvat": ["ט״וּ בִּשְׁבָט"], "Tu B'Shvat": ["ט״וּ בִּשְׁבָט"], "Tzom Gedaliah": ["צוֹם גְּדַלְיָה"], "Tzom Tammuz": ["צוֹם י״ז בְּתַמּוּז"], "Yom HaAtzma'ut": ["יוֹם הָעַצְמָאוּת"], "Yom HaShoah": ["יוֹם הַשּׁוֹאָה"], "Yom HaZikaron": ["יוֹם הַזִּכָּרוֹן"], "Yom Kippur": ["יוֹם כִּפּוּר"], "Yom Yerushalayim": ["יוֹם יְרוּשָׁלַיִם"], "Yom HaAliyah": ["יוֹם הַעֲלִיָּה"], "Yom HaAliyah School Observance": ["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"], "Rosh Chodesh Adar": ["רֹאשׁ חוֹדֶשׁ אֲדָר"], "Rosh Chodesh Adar I": ["רֹאשׁ חוֹדֶשׁ אֲדָר א׳"], "Rosh Chodesh Adar II": ["רֹאשׁ חוֹדֶשׁ אֲדָר ב׳"], "Rosh Chodesh Av": ["רֹאשׁ חוֹדֶשׁ אָב"], "Rosh Chodesh Cheshvan": ["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"], "Rosh Chodesh Elul": ["רֹאשׁ חוֹדֶשׁ אֱלוּל"], "Rosh Chodesh Iyyar": ["רֹאשׁ חוֹדֶשׁ אִיָּיר"], "Rosh Chodesh Kislev": ["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"], "Rosh Chodesh Nisan": ["רֹאשׁ חוֹדֶשׁ נִיסָן"], "Rosh Chodesh Sh'vat": ["רֹאשׁ חוֹדֶשׁ שְׁבָט"], "Rosh Chodesh Sivan": ["רֹאשׁ חוֹדֶשׁ סִיוָן"], "Rosh Chodesh Tamuz": ["רֹאשׁ חוֹדֶשׁ תַּמּוּז"], "Rosh Chodesh Tammuz": ["רֹאשׁ חוֹדֶשׁ תַּמּוּז"], "Rosh Chodesh Tevet": ["רֹאשׁ חוֹדֶשׁ טֵבֵת"], "min": ["דַּקּוֹת"], "Fast begins": ["תְּחִילַּת הַצוֹם"], "Fast ends": ["סִיּוּם הַצוֹם"], "Rosh Hashana LaBehemot": ["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"], "Tish'a B'Av (observed)": ["(תִּשְׁעָה בְּאָב (נִדְחָה"], "Shabbat Mevarchim Chodesh": ["שַׁבַּת מְבָרְכִים חוֹדֶשׁ"], "Shabbat Shirah": ["שַׁבַּת שִׁירָה"], "Lovingkindness": ["חֶסֶד"], "Might": ["גְּבוּרָה"], "Beauty": ["תִּפְאֶרֶת"], "Eternity": ["נֶּצַח"], "Splendor": ["הוֹד"], "Foundation": ["יְּסוֹד"], "Majesty": ["מַּלְכוּת"], "day": ["יוֹם"], "Yom Kippur Katan": ["יוֹם כִּפּוּר קָטָן"], "Yizkor": ["יִזְכּוֹר"], "Family Day": ["יוֹם הַמִּשׁפָּחָה"], "Yitzhak Rabin Memorial Day": ["יוֹם הַזִּכָּרוֹן לְיִצְחָק רַבִּין"], "Jabotinsky Day": ["יוֹם זַ׳בּוֹטִינְסְקִי"], "Herzl Day": ["יוֹם הֶרְצְל"], "Ben-Gurion Day": ["יוֹם בֶּן־גּוּרִיּוֹן"], "Hebrew Language Day": ["יוֹם הַשָׂפָה הַעִברִית"], "Birkat Hachamah": ["בִּרְכַּת הַחַמָּה"], "Birkat HaChamah": ["בִּרְכַּת הַחַמָּה"], "Shushan Purim Katan": ["שׁוּשָׁן פּוּרִים קָטָן"], "Purim Meshulash": ["פּוּרִים מְשׁוּלָּשׁ"], "Chag HaBanot": ["חַג הַבָּנוֹת"], "Molad": ["מוֹלָד הָלְּבָנָה"], "chalakim": ["חֲלָקִים"], "Alot HaShachar": ["עֲלוֹת הַשַּׁחַר"], "Misheyakir": ["מִשֶּׁיַּכִּיר"], "Misheyakir Machmir": ["מִשֶּׁיַּכִּיר מַחְמִיר"], "Sunrise": ["נֵץ הַחַמָּה"], "Kriat Shema, sof zeman": ["סוֹף זְמַן קְרִיאַת שְׁמַע"], "Tefilah, sof zeman": ["סוֹף זְמַן תְּפִלָּה"], "Kriat Shema, sof zeman (MGA)": ["סוֹף זְמַן קְרִיאַת שְׁמַע (מג״א)"], "Kriat Shema, sof zeman (GRA)": ["סוֹף זְמַן קְרִיאַת שְׁמַע (גְּרָ״א)"], "Tefilah, sof zeman (MGA)": ["סוֹף זְמַן תְּפִלָּה (מג״א)"], "Tefilah, sof zeman (GRA)": ["סוֹף זְמַן תְּפִלָּה (גְּרָ״א)"], "Chatzot HaLailah": ["חֲצוֹת הַלַּיְלָה"], "Chatzot HaYom": ["חֲצוֹת הַיּוֹם"], "Chatzot hayom": ["חֲצוֹת הַיּוֹם"], "Mincha Gedolah": ["מִנְחָה גְּדוֹלָה"], "Mincha Ketanah": ["מִנְחָה קְטַנָּה"], "Plag HaMincha": ["פְּלַג הַמִּנְחָה"], "Sunset": ["שְׁקִיעַת הַחַמָּה"], "Bein HaShemashot": ["בֵּין הַשְּׁמָשׁוֹת"], "Tzeit HaKochavim": ["צֵאת הַכּוֹכָבִים"], "Biur Chametz": ["בִּעוּר חָמֵץ"], "Finish eating chametz": ["סוֹף זְמַן אֲכִילַת חָמֵץ"] } } };
@@ -1,4 +1,4 @@
1
- import 'temporal-polyfill/global';
1
+ import './temporal-shim';
2
2
  import { Event } from './event';
3
3
  import { CalOptions } from './CalOptions';
4
4
  import { HDate } from '@hebcal/hdate';
package/dist/src/molad.js CHANGED
@@ -1,4 +1,4 @@
1
- import 'temporal-polyfill/global';
1
+ import './temporal-shim';
2
2
  import { Event, flags } from './event';
3
3
  import { HDate, Locale, pad2 } from '@hebcal/hdate';
4
4
  import { reformatTimeStr } from './reformatTimeStr';
@@ -1,4 +1,4 @@
1
- import 'temporal-polyfill/global';
1
+ import './temporal-shim';
2
2
  import { MoladBase } from './moladBase';
3
3
  /**
4
4
  * Returns the molad in UTC as a Temporal.ZonedDateTime.
@@ -1,4 +1,4 @@
1
- import 'temporal-polyfill/global';
1
+ import './temporal-shim';
2
2
  import { getTimezoneOffset } from '@hebcal/hdate';
3
3
  /** constant for milliseconds in a minute (60,000) */
4
4
  const MINUTE_MILLIS = 60 * 1000;
@@ -1,2 +1,2 @@
1
1
  /** DO NOT EDIT THIS AUTO-GENERATED FILE! */
2
- export declare const version = "6.3.3";
2
+ export declare const version = "6.4.0";
@@ -1,2 +1,2 @@
1
1
  /** DO NOT EDIT THIS AUTO-GENERATED FILE! */
2
- export const version = '6.3.3';
2
+ export const version = '6.4.0';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="temporal-polyfill/global" />
2
+ import { Temporal as TemporalPolyfill } from 'temporal-polyfill';
3
+ // Install the polyfill only when the runtime does not already provide a
4
+ // native `Temporal` global (e.g. Node.js >= 26, future browsers).
5
+ if (typeof globalThis.Temporal === 'undefined') {
6
+ globalThis.Temporal =
7
+ TemporalPolyfill;
8
+ }
@@ -1,4 +1,4 @@
1
- import 'temporal-polyfill/global';
1
+ import './temporal-shim';
2
2
  import { GeoLocation } from '@hebcal/noaa';
3
3
  import { HDate } from '@hebcal/hdate';
4
4
  /**
@@ -1,4 +1,4 @@
1
- import 'temporal-polyfill/global';
1
+ import './temporal-shim';
2
2
  import { NOAACalculator } from '@hebcal/noaa';
3
3
  import { HDate, getPseudoISO, getTimezoneOffset, isDate, pad2, } from '@hebcal/hdate';
4
4
  import { Molad } from './molad';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/core",
3
- "version": "6.3.3",
3
+ "version": "6.4.0",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "contributors": [
6
6
  "Eyal Schachter (https://github.com/Scimonster)",
@@ -72,12 +72,12 @@
72
72
  "@rollup/plugin-node-resolve": "^16.0.3",
73
73
  "@rollup/plugin-terser": "^1.0.0",
74
74
  "@rollup/plugin-typescript": "^12.3.0",
75
- "@types/node": "^25.6.0",
75
+ "@types/node": "^25.6.2",
76
76
  "@vitest/coverage-v8": "^4.1.5",
77
77
  "gettext-parser": "^9.0.2",
78
78
  "gts": "^7.0.0",
79
79
  "pretty-bytes": "^7.1.0",
80
- "rollup": "^4.60.2",
80
+ "rollup": "^4.60.3",
81
81
  "rollup-plugin-bundle-size": "^1.0.3",
82
82
  "rollup-plugin-visualizer": "^7.0.1",
83
83
  "typedoc": "^0.28.19",
@@ -85,8 +85,8 @@
85
85
  "vitest": "^4.1.5"
86
86
  },
87
87
  "dependencies": {
88
- "@hebcal/hdate": "^0.22.1",
89
- "@hebcal/noaa": "^0.10.1",
88
+ "@hebcal/hdate": "^0.22.2",
89
+ "@hebcal/noaa": "^0.11.0",
90
90
  "quick-lru": "^7.3.0",
91
91
  "temporal-polyfill": "^0.3.2"
92
92
  }