@hebcal/core 5.3.1 → 5.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +50 -70
- package/dist/bundle.min.js +2 -2
- package/dist/index.cjs +48 -68
- package/dist/index.mjs +48 -68
- package/package.json +6 -6
package/dist/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v5.3.
|
|
1
|
+
/*! @hebcal/core v5.3.3 */
|
|
2
2
|
var hebcal = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -1619,10 +1619,16 @@ class HDate {
|
|
|
1619
1619
|
*/
|
|
1620
1620
|
static fromGematriyaString(str) {
|
|
1621
1621
|
let currentThousands = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5000;
|
|
1622
|
-
const parts = str.split(' ');
|
|
1622
|
+
const parts = str.split(' ').filter(x => x.length !== 0);
|
|
1623
|
+
const numParts = parts.length;
|
|
1624
|
+
if (numParts !== 3 && numParts !== 4) {
|
|
1625
|
+
throw new RangeError(`Unable to parse gematriya string: "${str}"`);
|
|
1626
|
+
}
|
|
1623
1627
|
const day = gematriyaStrToNum(parts[0]);
|
|
1624
|
-
const
|
|
1625
|
-
|
|
1628
|
+
const monthStr = numParts === 3 ? parts[1] : parts[1] + ' ' + parts[2];
|
|
1629
|
+
const month = HDate.monthFromName(monthStr);
|
|
1630
|
+
const yearStr = numParts === 3 ? parts[2] : parts[3];
|
|
1631
|
+
let year = gematriyaStrToNum(yearStr);
|
|
1626
1632
|
if (year < 1000) {
|
|
1627
1633
|
year += currentThousands;
|
|
1628
1634
|
}
|
|
@@ -2301,10 +2307,10 @@ var SHARED = '__core-js_shared__';
|
|
|
2301
2307
|
var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
2302
2308
|
|
|
2303
2309
|
(store$3.versions || (store$3.versions = [])).push({
|
|
2304
|
-
version: '3.
|
|
2310
|
+
version: '3.37.0',
|
|
2305
2311
|
mode: 'global',
|
|
2306
2312
|
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
2307
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
2313
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE',
|
|
2308
2314
|
source: 'https://github.com/zloirock/core-js'
|
|
2309
2315
|
});
|
|
2310
2316
|
|
|
@@ -7579,32 +7585,16 @@ class GeoLocation {
|
|
|
7579
7585
|
* the <code>TimeZone</code> for the location.
|
|
7580
7586
|
*/
|
|
7581
7587
|
constructor(name, latitude, longitude, elevation, timeZoneId) {
|
|
7588
|
+
/**
|
|
7589
|
+
* @private
|
|
7590
|
+
*/
|
|
7591
|
+
this.locationName = null;
|
|
7582
7592
|
this.setLocationName(name);
|
|
7583
7593
|
this.setLatitude(latitude);
|
|
7584
7594
|
this.setLongitude(longitude);
|
|
7585
7595
|
this.setElevation(elevation);
|
|
7586
7596
|
this.setTimeZone(timeZoneId);
|
|
7587
7597
|
}
|
|
7588
|
-
/**
|
|
7589
|
-
* @private
|
|
7590
|
-
*/
|
|
7591
|
-
latitude;
|
|
7592
|
-
/**
|
|
7593
|
-
* @private
|
|
7594
|
-
*/
|
|
7595
|
-
longitude;
|
|
7596
|
-
/**
|
|
7597
|
-
* @private
|
|
7598
|
-
*/
|
|
7599
|
-
locationName = null;
|
|
7600
|
-
/**
|
|
7601
|
-
* @private
|
|
7602
|
-
*/
|
|
7603
|
-
timeZoneId;
|
|
7604
|
-
/**
|
|
7605
|
-
* @private
|
|
7606
|
-
*/
|
|
7607
|
-
elevation;
|
|
7608
7598
|
/**
|
|
7609
7599
|
* Method to get the elevation in Meters.
|
|
7610
7600
|
*
|
|
@@ -7724,39 +7714,6 @@ class NOAACalculator {
|
|
|
7724
7714
|
this.date = date;
|
|
7725
7715
|
this.geoLocation = geoLocation;
|
|
7726
7716
|
}
|
|
7727
|
-
/**
|
|
7728
|
-
* The zenith of astronomical sunrise and sunset. The sun is 90° from the vertical 0°
|
|
7729
|
-
* @private
|
|
7730
|
-
*/
|
|
7731
|
-
static GEOMETRIC_ZENITH = 90;
|
|
7732
|
-
/**
|
|
7733
|
-
* Default value for Sun's zenith and true rise/set Zenith (used in this class and subclasses) is the angle that the
|
|
7734
|
-
* center of the Sun makes to a line perpendicular to the Earth's surface. If the Sun were a point and the Earth
|
|
7735
|
-
* were without an atmosphere, true sunset and sunrise would correspond to a 90° zenith. Because the Sun is not
|
|
7736
|
-
* a point, and because the atmosphere refracts light, this 90° zenith does not, in fact, correspond to true
|
|
7737
|
-
* sunset or sunrise, instead the center of the Sun's disk must lie just below the horizon for the upper edge to be
|
|
7738
|
-
* obscured. This means that a zenith of just above 90° must be used. The Sun subtends an angle of 16 minutes of
|
|
7739
|
-
* arc, and atmospheric refraction accounts for
|
|
7740
|
-
* 34 minutes or so, giving a total of 50
|
|
7741
|
-
* arcminutes. The total value for ZENITH is 90+(5/6) or 90.8333333° for true sunrise/sunset.
|
|
7742
|
-
*/
|
|
7743
|
-
// const ZENITH: number = GEOMETRIC_ZENITH + 5.0 / 6.0;
|
|
7744
|
-
/** Sun's zenith at civil twilight (96°). */
|
|
7745
|
-
static CIVIL_ZENITH = 96;
|
|
7746
|
-
/** Sun's zenith at nautical twilight (102°). */
|
|
7747
|
-
static NAUTICAL_ZENITH = 102;
|
|
7748
|
-
/** Sun's zenith at astronomical twilight (108°). */
|
|
7749
|
-
static ASTRONOMICAL_ZENITH = 108;
|
|
7750
|
-
/**
|
|
7751
|
-
* The Java Calendar encapsulated by this class to track the current date used by the class
|
|
7752
|
-
* @private
|
|
7753
|
-
*/
|
|
7754
|
-
date;
|
|
7755
|
-
/**
|
|
7756
|
-
* the {@link GeoLocation} used for calculations.
|
|
7757
|
-
* @private
|
|
7758
|
-
*/
|
|
7759
|
-
geoLocation;
|
|
7760
7717
|
/**
|
|
7761
7718
|
* The getSunrise method Returns a `Date` representing the
|
|
7762
7719
|
* {@link getElevationAdjustment elevation adjusted} sunrise time. The zenith used
|
|
@@ -8100,16 +8057,6 @@ class NOAACalculator {
|
|
|
8100
8057
|
}
|
|
8101
8058
|
return adjustedZenith;
|
|
8102
8059
|
}
|
|
8103
|
-
/**
|
|
8104
|
-
* The <a href="http://en.wikipedia.org/wiki/Julian_day">Julian day</a> of January 1, 2000
|
|
8105
|
-
* @private
|
|
8106
|
-
*/
|
|
8107
|
-
static JULIAN_DAY_JAN_1_2000 = 2451545;
|
|
8108
|
-
/**
|
|
8109
|
-
* Julian days per century
|
|
8110
|
-
* @private
|
|
8111
|
-
*/
|
|
8112
|
-
static JULIAN_DAYS_PER_CENTURY = 36525;
|
|
8113
8060
|
/**
|
|
8114
8061
|
* A method that calculates UTC sunrise as well as any time based on an angle above or below sunrise.
|
|
8115
8062
|
* @param date
|
|
@@ -8626,6 +8573,39 @@ class NOAACalculator {
|
|
|
8626
8573
|
return timeUTC;
|
|
8627
8574
|
}
|
|
8628
8575
|
}
|
|
8576
|
+
/**
|
|
8577
|
+
* The zenith of astronomical sunrise and sunset. The sun is 90° from the vertical 0°
|
|
8578
|
+
* @private
|
|
8579
|
+
*/
|
|
8580
|
+
NOAACalculator.GEOMETRIC_ZENITH = 90;
|
|
8581
|
+
/**
|
|
8582
|
+
* Default value for Sun's zenith and true rise/set Zenith (used in this class and subclasses) is the angle that the
|
|
8583
|
+
* center of the Sun makes to a line perpendicular to the Earth's surface. If the Sun were a point and the Earth
|
|
8584
|
+
* were without an atmosphere, true sunset and sunrise would correspond to a 90° zenith. Because the Sun is not
|
|
8585
|
+
* a point, and because the atmosphere refracts light, this 90° zenith does not, in fact, correspond to true
|
|
8586
|
+
* sunset or sunrise, instead the center of the Sun's disk must lie just below the horizon for the upper edge to be
|
|
8587
|
+
* obscured. This means that a zenith of just above 90° must be used. The Sun subtends an angle of 16 minutes of
|
|
8588
|
+
* arc, and atmospheric refraction accounts for
|
|
8589
|
+
* 34 minutes or so, giving a total of 50
|
|
8590
|
+
* arcminutes. The total value for ZENITH is 90+(5/6) or 90.8333333° for true sunrise/sunset.
|
|
8591
|
+
*/
|
|
8592
|
+
// const ZENITH: number = GEOMETRIC_ZENITH + 5.0 / 6.0;
|
|
8593
|
+
/** Sun's zenith at civil twilight (96°). */
|
|
8594
|
+
NOAACalculator.CIVIL_ZENITH = 96;
|
|
8595
|
+
/** Sun's zenith at nautical twilight (102°). */
|
|
8596
|
+
NOAACalculator.NAUTICAL_ZENITH = 102;
|
|
8597
|
+
/** Sun's zenith at astronomical twilight (108°). */
|
|
8598
|
+
NOAACalculator.ASTRONOMICAL_ZENITH = 108;
|
|
8599
|
+
/**
|
|
8600
|
+
* The <a href="http://en.wikipedia.org/wiki/Julian_day">Julian day</a> of January 1, 2000
|
|
8601
|
+
* @private
|
|
8602
|
+
*/
|
|
8603
|
+
NOAACalculator.JULIAN_DAY_JAN_1_2000 = 2451545;
|
|
8604
|
+
/**
|
|
8605
|
+
* Julian days per century
|
|
8606
|
+
* @private
|
|
8607
|
+
*/
|
|
8608
|
+
NOAACalculator.JULIAN_DAYS_PER_CENTURY = 36525;
|
|
8629
8609
|
|
|
8630
8610
|
/*
|
|
8631
8611
|
Hebcal - A Jewish Calendar Generator
|
|
@@ -11847,7 +11827,7 @@ class DailyLearning {
|
|
|
11847
11827
|
}
|
|
11848
11828
|
|
|
11849
11829
|
// DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
11850
|
-
const version = '5.3.
|
|
11830
|
+
const version = '5.3.3';
|
|
11851
11831
|
|
|
11852
11832
|
const NONE$1 = 0;
|
|
11853
11833
|
const HALF = 1;
|