@astronomy-bundle/moon 9.5.0 → 9.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/chunk-IFJFPMLZ.mjs +2 -0
- package/chunk-IFJFPMLZ.mjs.map +1 -0
- package/high-precision.d.mts +2 -2
- package/high-precision.d.ts +2 -2
- package/high-precision.js +1 -1
- package/high-precision.js.map +1 -1
- package/high-precision.mjs +1 -1
- package/high-precision.mjs.map +1 -1
- package/{MoonBase-Q8bNAmwm.d.mts → index-CVdG2AWH.d.mts} +31 -28
- package/{MoonBase-Q8bNAmwm.d.ts → index-CVdG2AWH.d.ts} +31 -28
- package/index.d.mts +1 -8
- package/index.d.ts +1 -8
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/chunk-NYCHVUKJ.mjs +0 -2
- package/chunk-NYCHVUKJ.mjs.map +0 -1
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
interface RectangularCoordinates {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
z: number;
|
|
5
|
+
}
|
|
6
|
+
interface EclipticSphericalCoordinates {
|
|
7
|
+
lon: number;
|
|
8
|
+
lat: number;
|
|
9
|
+
radiusVector: number;
|
|
10
|
+
}
|
|
11
|
+
interface EquatorialSphericalCoordinates {
|
|
12
|
+
rightAscension: number;
|
|
13
|
+
declination: number;
|
|
14
|
+
radiusVector: number;
|
|
15
|
+
}
|
|
16
|
+
interface LocalHorizontalCoordinates {
|
|
17
|
+
azimuth: number;
|
|
18
|
+
altitude: number;
|
|
19
|
+
radiusVector: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
1
22
|
interface LatLon {
|
|
2
23
|
lat: number;
|
|
3
24
|
lon: number;
|
|
@@ -44,27 +65,6 @@ declare class TimeOfInterest {
|
|
|
44
65
|
getDeltaT(): number;
|
|
45
66
|
}
|
|
46
67
|
|
|
47
|
-
interface RectangularCoordinates {
|
|
48
|
-
x: number;
|
|
49
|
-
y: number;
|
|
50
|
-
z: number;
|
|
51
|
-
}
|
|
52
|
-
interface EclipticSphericalCoordinates {
|
|
53
|
-
lon: number;
|
|
54
|
-
lat: number;
|
|
55
|
-
radiusVector: number;
|
|
56
|
-
}
|
|
57
|
-
interface EquatorialSphericalCoordinates {
|
|
58
|
-
rightAscension: number;
|
|
59
|
-
declination: number;
|
|
60
|
-
radiusVector: number;
|
|
61
|
-
}
|
|
62
|
-
interface LocalHorizontalCoordinates {
|
|
63
|
-
azimuth: number;
|
|
64
|
-
altitude: number;
|
|
65
|
-
radiusVector: number;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
68
|
interface AstronomicalObjectInterface {
|
|
69
69
|
getGeocentricEclipticRectangularJ2000Coordinates(): RectangularCoordinates;
|
|
70
70
|
getGeocentricEclipticRectangularDateCoordinates(): RectangularCoordinates;
|
|
@@ -118,10 +118,11 @@ type Vsop87 = {
|
|
|
118
118
|
VSOP87_Z: Vsop87Group;
|
|
119
119
|
};
|
|
120
120
|
|
|
121
|
-
declare
|
|
121
|
+
declare class Earth extends AstronomicalObject {
|
|
122
122
|
private readonly vsop87Date;
|
|
123
123
|
private readonly vsop87J2000;
|
|
124
|
-
|
|
124
|
+
constructor(toi?: TimeOfInterest, vsop87Date?: Vsop87, vsop87J2000?: Vsop87);
|
|
125
|
+
static create(toi?: TimeOfInterest): Earth;
|
|
125
126
|
getHeliocentricEclipticRectangularJ2000Coordinates(): RectangularCoordinates;
|
|
126
127
|
getHeliocentricEclipticRectangularDateCoordinates(): RectangularCoordinates;
|
|
127
128
|
getHeliocentricEclipticSphericalJ2000Coordinates(): EclipticSphericalCoordinates;
|
|
@@ -137,9 +138,10 @@ declare abstract class EarthBase extends AstronomicalObject {
|
|
|
137
138
|
getTrueObliquityOfEcliptic(): number;
|
|
138
139
|
}
|
|
139
140
|
|
|
140
|
-
declare
|
|
141
|
+
declare class Sun extends AstronomicalObject {
|
|
141
142
|
private readonly earth;
|
|
142
|
-
|
|
143
|
+
constructor(toi?: TimeOfInterest, earth?: Earth);
|
|
144
|
+
static create(toi?: TimeOfInterest): Sun;
|
|
143
145
|
getHeliocentricEclipticRectangularJ2000Coordinates(): RectangularCoordinates;
|
|
144
146
|
getHeliocentricEclipticRectangularDateCoordinates(): RectangularCoordinates;
|
|
145
147
|
getHeliocentricEclipticSphericalJ2000Coordinates(): EclipticSphericalCoordinates;
|
|
@@ -155,10 +157,11 @@ declare abstract class SunBase extends AstronomicalObject {
|
|
|
155
157
|
getTopocentricApparentMagnitude(): number;
|
|
156
158
|
}
|
|
157
159
|
|
|
158
|
-
declare
|
|
160
|
+
declare class Moon extends AstronomicalObject {
|
|
159
161
|
private readonly sun;
|
|
160
162
|
private readonly earth;
|
|
161
|
-
|
|
163
|
+
constructor(toi?: TimeOfInterest, sun?: Sun, earth?: Earth);
|
|
164
|
+
static create(toi?: TimeOfInterest): Moon;
|
|
162
165
|
getHeliocentricEclipticRectangularJ2000Coordinates(): RectangularCoordinates;
|
|
163
166
|
getHeliocentricEclipticRectangularDateCoordinates(): RectangularCoordinates;
|
|
164
167
|
getHeliocentricEclipticSphericalJ2000Coordinates(): EclipticSphericalCoordinates;
|
|
@@ -188,4 +191,4 @@ declare abstract class MoonBase extends AstronomicalObject {
|
|
|
188
191
|
getUpcomingLastQuarter(): TimeOfInterest;
|
|
189
192
|
}
|
|
190
193
|
|
|
191
|
-
export {
|
|
194
|
+
export { Moon as M, TimeOfInterest as T };
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
interface RectangularCoordinates {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
z: number;
|
|
5
|
+
}
|
|
6
|
+
interface EclipticSphericalCoordinates {
|
|
7
|
+
lon: number;
|
|
8
|
+
lat: number;
|
|
9
|
+
radiusVector: number;
|
|
10
|
+
}
|
|
11
|
+
interface EquatorialSphericalCoordinates {
|
|
12
|
+
rightAscension: number;
|
|
13
|
+
declination: number;
|
|
14
|
+
radiusVector: number;
|
|
15
|
+
}
|
|
16
|
+
interface LocalHorizontalCoordinates {
|
|
17
|
+
azimuth: number;
|
|
18
|
+
altitude: number;
|
|
19
|
+
radiusVector: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
1
22
|
interface LatLon {
|
|
2
23
|
lat: number;
|
|
3
24
|
lon: number;
|
|
@@ -44,27 +65,6 @@ declare class TimeOfInterest {
|
|
|
44
65
|
getDeltaT(): number;
|
|
45
66
|
}
|
|
46
67
|
|
|
47
|
-
interface RectangularCoordinates {
|
|
48
|
-
x: number;
|
|
49
|
-
y: number;
|
|
50
|
-
z: number;
|
|
51
|
-
}
|
|
52
|
-
interface EclipticSphericalCoordinates {
|
|
53
|
-
lon: number;
|
|
54
|
-
lat: number;
|
|
55
|
-
radiusVector: number;
|
|
56
|
-
}
|
|
57
|
-
interface EquatorialSphericalCoordinates {
|
|
58
|
-
rightAscension: number;
|
|
59
|
-
declination: number;
|
|
60
|
-
radiusVector: number;
|
|
61
|
-
}
|
|
62
|
-
interface LocalHorizontalCoordinates {
|
|
63
|
-
azimuth: number;
|
|
64
|
-
altitude: number;
|
|
65
|
-
radiusVector: number;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
68
|
interface AstronomicalObjectInterface {
|
|
69
69
|
getGeocentricEclipticRectangularJ2000Coordinates(): RectangularCoordinates;
|
|
70
70
|
getGeocentricEclipticRectangularDateCoordinates(): RectangularCoordinates;
|
|
@@ -118,10 +118,11 @@ type Vsop87 = {
|
|
|
118
118
|
VSOP87_Z: Vsop87Group;
|
|
119
119
|
};
|
|
120
120
|
|
|
121
|
-
declare
|
|
121
|
+
declare class Earth extends AstronomicalObject {
|
|
122
122
|
private readonly vsop87Date;
|
|
123
123
|
private readonly vsop87J2000;
|
|
124
|
-
|
|
124
|
+
constructor(toi?: TimeOfInterest, vsop87Date?: Vsop87, vsop87J2000?: Vsop87);
|
|
125
|
+
static create(toi?: TimeOfInterest): Earth;
|
|
125
126
|
getHeliocentricEclipticRectangularJ2000Coordinates(): RectangularCoordinates;
|
|
126
127
|
getHeliocentricEclipticRectangularDateCoordinates(): RectangularCoordinates;
|
|
127
128
|
getHeliocentricEclipticSphericalJ2000Coordinates(): EclipticSphericalCoordinates;
|
|
@@ -137,9 +138,10 @@ declare abstract class EarthBase extends AstronomicalObject {
|
|
|
137
138
|
getTrueObliquityOfEcliptic(): number;
|
|
138
139
|
}
|
|
139
140
|
|
|
140
|
-
declare
|
|
141
|
+
declare class Sun extends AstronomicalObject {
|
|
141
142
|
private readonly earth;
|
|
142
|
-
|
|
143
|
+
constructor(toi?: TimeOfInterest, earth?: Earth);
|
|
144
|
+
static create(toi?: TimeOfInterest): Sun;
|
|
143
145
|
getHeliocentricEclipticRectangularJ2000Coordinates(): RectangularCoordinates;
|
|
144
146
|
getHeliocentricEclipticRectangularDateCoordinates(): RectangularCoordinates;
|
|
145
147
|
getHeliocentricEclipticSphericalJ2000Coordinates(): EclipticSphericalCoordinates;
|
|
@@ -155,10 +157,11 @@ declare abstract class SunBase extends AstronomicalObject {
|
|
|
155
157
|
getTopocentricApparentMagnitude(): number;
|
|
156
158
|
}
|
|
157
159
|
|
|
158
|
-
declare
|
|
160
|
+
declare class Moon extends AstronomicalObject {
|
|
159
161
|
private readonly sun;
|
|
160
162
|
private readonly earth;
|
|
161
|
-
|
|
163
|
+
constructor(toi?: TimeOfInterest, sun?: Sun, earth?: Earth);
|
|
164
|
+
static create(toi?: TimeOfInterest): Moon;
|
|
162
165
|
getHeliocentricEclipticRectangularJ2000Coordinates(): RectangularCoordinates;
|
|
163
166
|
getHeliocentricEclipticRectangularDateCoordinates(): RectangularCoordinates;
|
|
164
167
|
getHeliocentricEclipticSphericalJ2000Coordinates(): EclipticSphericalCoordinates;
|
|
@@ -188,4 +191,4 @@ declare abstract class MoonBase extends AstronomicalObject {
|
|
|
188
191
|
getUpcomingLastQuarter(): TimeOfInterest;
|
|
189
192
|
}
|
|
190
193
|
|
|
191
|
-
export {
|
|
194
|
+
export { Moon as M, TimeOfInterest as T };
|
package/index.d.mts
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare class Moon extends MoonBase {
|
|
4
|
-
constructor(toi?: TimeOfInterest);
|
|
5
|
-
static create(toi?: TimeOfInterest): Moon;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export { Moon };
|
|
1
|
+
export { M as Moon } from './index-CVdG2AWH.mjs';
|
package/index.d.ts
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare class Moon extends MoonBase {
|
|
4
|
-
constructor(toi?: TimeOfInterest);
|
|
5
|
-
static create(toi?: TimeOfInterest): Moon;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export { Moon };
|
|
1
|
+
export { M as Moon } from './index-CVdG2AWH.js';
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var s0=Object.defineProperty;var ct=Object.getOwnPropertyDescriptor;var st=Object.getOwnPropertyNames;var ut=Object.prototype.hasOwnProperty;var u0=(t,e)=>{for(var n in e)s0(t,n,{get:e[n],enumerable:!0})},lt=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of st(e))!ut.call(t,r)&&r!==n&&s0(t,r,{get:()=>e[r],enumerable:!(o=ct(e,r))||o.enumerable});return t};var pt=t=>lt(s0({},"__esModule",{value:!0}),t);var Se={};u0(Se,{Moon:()=>$});module.exports=pt(Se);var l0={};u0(l0,{VSOP87_X:()=>Lt,VSOP87_Y:()=>Vt,VSOP87_Z:()=>Pt});var mt=[[1.75347045673],[.03341656456,4.66925680417,6283.0758499914],[.00034894275,4.62610241759,12566.1516999828],[3497056e-11,2.74411800971,5753.3848848968],[3417571e-11,2.82886579606,3.523118349],[3135896e-11,3.62767041758,77713.7714681205],[2676218e-11,4.41808351397,7860.4193924392],[2342687e-11,6.13516237631,3930.2096962196],[1324292e-11,.74246356352,11506.7697697936],[1273166e-11,2.03709655772,529.6909650946],[1199167e-11,1.10962944315,1577.3435424478],[99025e-10,5.23268129594,5884.9268465832],[901855e-11,2.04505443513,26.2983197998],[857223e-11,3.50849156957,398.1490034082],[779786e-11,1.17882652114,5223.6939198022],[753141e-11,2.53339053818,5507.5532386674],[505264e-11,4.58292563052,18849.2275499742],[492379e-11,4.20506639861,775.522611324],[356655e-11,2.91954116867,.0673103028],[317087e-11,5.84901952218,11790.6290886588],[284125e-11,1.89869034186,796.2980068164],[271039e-11,.31488607649,10977.078804699],[24281e-10,.34481140906,5486.777843175],[20616e-10,4.80646606059,2544.3144198834],[205385e-11,1.86947813692,5573.1428014331],[202261e-11,2.45767795458,6069.7767545534],[155516e-11,.83306073807,213.299095438],[132212e-11,3.41118275555,2942.4634232916],[126184e-11,1.0830263021,20.7753954924],[115132e-11,.64544911683,.9803210682],[102851e-11,.63599846727,4694.0029547076],[101895e-11,.97569221824,15720.8387848784],[101724e-11,4.26679821365,7.1135470008],[99206e-11,6.20992940258,2146.1654164752],[97607e-11,.6810127227,155.4203994342],[85803e-11,5.98322631256,161000.6857376741],[85128e-11,1.29870743025,6275.9623029906],[84711e-11,3.67080093025,71430.69561812909],[79637e-11,1.807913307,17260.1546546904],[78756e-11,3.03698313141,12036.4607348882],[74651e-11,1.75508916159,5088.6288397668],[73874e-11,3.50319443167,3154.6870848956],[73547e-11,4.67926565481,801.8209311238],[69627e-11,.83297596966,9437.762934887],[62449e-11,3.97763880587,8827.3902698748],[61148e-11,1.81839811024,7084.8967811152],[56963e-11,2.78430398043,6286.5989683404],[56116e-11,4.38694880779,14143.4952424306],[55577e-11,3.47006009062,6279.5527316424],[51992e-11,.18914945834,12139.5535091068],[51605e-11,1.33282746983,1748.016413067],[51145e-11,.28306864501,5856.4776591154],[49e-8,.48735065033,1194.4470102246],[41036e-11,5.36817351402,8429.2412664666],[40938e-11,2.39850881707,19651.048481098],[392e-9,6.16832995016,10447.3878396044],[3677e-10,6.04133859347,10213.285546211],[36596e-11,2.56955238628,1059.3819301892],[35954e-11,1.70876111898,2352.8661537718],[35566e-11,1.77597314691,6812.766815086],[33291e-11,.59309499459,17789.845619785],[30412e-11,.44294464135,83996.84731811189],[30047e-11,2.73975123935,1349.8674096588],[25352e-11,3.16470953405,4690.4798363586]],ht=[[6283.31966747491],[.00206058863,2.67823455584,6283.0758499914],[430343e-10,2.63512650414,12566.1516999828],[425264e-11,1.59046980729,3.523118349],[119261e-11,5.79557487799,26.2983197998],[108977e-11,2.96618001993,1577.3435424478],[93478e-11,2.59212835365,18849.2275499742],[72122e-11,1.13846158196,529.6909650946],[67768e-11,1.87472304791,398.1490034082],[67327e-11,4.40918235168,5507.5532386674],[59027e-11,2.8879703846,5223.6939198022],[55976e-11,2.17471680261,155.4203994342],[45407e-11,.39803079805,796.2980068164],[36369e-11,.46624739835,775.522611324],[28958e-11,2.64707383882,7.1135470008],[20844e-11,5.34138275149,.9803210682],[19097e-11,1.84628332577,5486.777843175],[18508e-11,4.96855124577,213.299095438],[17293e-11,2.99116864949,6275.9623029906],[16233e-11,.03216483047,2544.3144198834],[15832e-11,1.43049285325,2146.1654164752],[14615e-11,1.20532366323,10977.078804699],[12461e-11,2.83432285512,1748.016413067],[11877e-11,3.25804815607,5088.6288397668],[11808e-11,5.2737979048,1194.4470102246],[11514e-11,2.07502418155,4694.0029547076],[10641e-11,.76614199202,553.5694028424],[9969e-11,1.30262991097,6286.5989683404],[9721e-11,4.23925472239,1349.8674096588],[9452e-11,2.69957062864,242.728603974],[8577e-11,5.64475868067,951.7184062506],[7576e-11,5.30062664886,2352.8661537718],[6385e-11,2.65033984967,9437.762934887],[6101e-11,4.66632584188,4690.4798363586]],dt=[[.0005291887],[8719837e-11,1.07209665242,6283.0758499914],[309125e-11,.86728818832,12566.1516999828],[27339e-11,.05297871691,3.523118349],[16334e-11,5.18826691036,26.2983197998],[15752e-11,3.6845788943,155.4203994342],[9541e-11,.75742297675,18849.2275499742],[8937e-11,2.05705419118,77713.7714681205],[6952e-11,.8267330541,775.522611324],[5064e-11,4.66284525271,1577.3435424478],[4061e-11,1.03057162962,7.1135470008],[381e-10,3.4405080349,5573.1428014331],[3463e-11,5.14074632811,796.2980068164],[3169e-11,6.05291851171,5507.5532386674],[302e-10,1.19246506441,242.728603974],[2886e-11,6.11652627155,529.6909650946],[2714e-11,.30637881025,398.1490034082],[2538e-11,2.27992810679,553.5694028424],[2371e-11,4.38118838167,5223.6939198022],[2079e-11,3.75435330484,.9803210682]],gt=[[289226e-11,5.84384198723,6283.0758499914],[34955e-11],[16819e-11,5.48766912348,12566.1516999828],[2962e-11,5.19577265202,155.4203994342],[1288e-11,4.72200252235,3.523118349],[714e-11,5.30045809128,18849.2275499742],[635e-11,5.96925937141,242.728603974]],Mt=[[7717e-11,4.13446589358,6283.0758499914],[765e-11,3.83803776214,12566.1516999828],[42e-10,.41925861858,155.4203994342]],bt=[[172e-11,2.7657906951,6283.0758499914]],ft=[[27962e-10,3.19870156017,84334.66158130829],[101643e-11,5.42248619256,5507.5532386674],[80445e-11,3.88013204458,5223.6939198022],[43806e-11,3.70444689758,2352.8661537718],[31933e-11,4.00026369781,1577.3435424478]],Et=[[903e-10,3.8972906189,5507.5532386674],[6177e-11,1.73038850355,5223.6939198022]],St=[],Rt=[],Ct=[],At=[],Ot=[[1.00013988799],[.01670699626,3.09846350771,6283.0758499914],[.00013956023,3.0552460962,12566.1516999828],[308372e-10,5.19846674381,77713.7714681205],[1628461e-11,1.17387749012,5753.3848848968],[1575568e-11,2.84685245825,7860.4193924392],[924799e-11,5.45292234084,11506.7697697936],[542444e-11,4.56409149777,3930.2096962196],[47211e-10,3.66100022149,5884.9268465832],[345983e-11,.96368617687,5507.5532386674],[32878e-10,5.89983646482,5223.6939198022],[306784e-11,.29867139512,5573.1428014331],[243189e-11,4.27349536153,11790.6290886588],[211829e-11,5.84714540314,1577.3435424478],[185752e-11,5.02194447178,10977.078804699],[174844e-11,3.01193636534,18849.2275499742],[109835e-11,5.05510636285,5486.777843175],[98316e-11,.88681311277,6069.7767545534],[86499e-11,5.68959778254,15720.8387848784],[85825e-11,1.27083733351,161000.6857376741],[64903e-11,.27250613787,17260.1546546904],[62916e-11,.92177108832,529.6909650946],[57056e-11,2.01374292014,83996.84731811189],[55736e-11,5.24159798933,71430.69561812909],[49384e-11,3.24501240359,2544.3144198834],[46963e-11,2.57805070386,775.522611324],[44661e-11,5.53715807302,9437.762934887],[42515e-11,6.01110242003,6275.9623029906],[38968e-11,5.36071738169,4694.0029547076],[38245e-11,2.39255343974,8827.3902698748],[3749e-10,.82952922332,19651.048481098],[36957e-11,4.90107591914,12139.5535091068],[3566e-10,1.67468058995,12036.4607348882],[34537e-11,1.84270693282,2942.4634232916],[33193e-11,.24370300098,7084.8967811152],[31921e-11,.18368229781,5088.6288397668],[31846e-11,1.77775642085,398.1490034082],[28464e-11,1.21344868176,6286.5989683404],[27793e-11,1.89934330904,6279.5527316424],[26275e-11,4.58896850401,10447.3878396044]],xt=[[.00103018608,1.10748969588,6283.0758499914],[1721238e-11,1.06442301418,12566.1516999828],[32346e-11,1.02169059149,18849.2275499742],[30799e-11,2.84353804832,5507.5532386674],[24971e-11,1.31906709482,5223.6939198022],[18485e-11,1.42429748614,1577.3435424478],[10078e-11,5.91378194648,10977.078804699],[8654e-11,1.42046854427,6275.9623029906],[8634e-11,.27146150602,5486.777843175],[5069e-11,1.68613426734,5088.6288397668]],yt=[[4359385e-11,5.78455133738,6283.0758499914],[123633e-11,5.57934722157,12566.1516999828],[8792e-11,3.62777733395,77713.7714681205],[5689e-11,1.86958905084,5573.1428014331],[3301e-11,5.47027913302,18849.2275499742],[1471e-11,4.48028885617,5507.5532386674]],Dt=[[144595e-11,4.27319435148,6283.0758499914],[6729e-11,3.91697608662,12566.1516999828]],Tt=[[3858e-11,2.56384387339,6283.0758499914]],_t=[],Lt=[mt,ht,dt,gt,Mt,bt],Vt=[ft,Et,St,Rt,Ct,At],Pt=[Ot,xt,yt,Dt,Tt,_t];var p0={};u0(p0,{VSOP87_X:()=>Xt,VSOP87_Y:()=>Zt,VSOP87_Z:()=>kt});var It=[[1.75347045673],[.03341656453,4.66925680415,6283.0758499914],[.00034894275,4.62610242189,12566.1516999828],[3497056e-11,2.74411783405,5753.3848848968],[3417572e-11,2.82886579754,3.523118349],[3135899e-11,3.62767041756,77713.7714681205],[2676218e-11,4.41808345438,7860.4193924392],[2342691e-11,6.13516214446,3930.2096962196],[1324294e-11,.74246341673,11506.7697697936],[1273165e-11,2.03709657878,529.6909650946],[1199167e-11,1.10962946234,1577.3435424478],[99025e-10,5.23268072088,5884.9268465832],[901854e-11,2.04505446477,26.2983197998],[857223e-11,3.50849152283,398.1490034082],[779786e-11,1.17882681962,5223.6939198022],[753141e-11,2.53339052847,5507.5532386674],[505267e-11,4.58292599973,18849.2275499742],[492392e-11,4.20505711826,775.522611324],[356672e-11,2.91954114478,.0673103028],[317087e-11,5.84901948512,11790.6290886588],[284125e-11,1.89869240932,796.2980068164],[271112e-11,.31486255375,10977.078804699],[242879e-11,.34481445893,5486.777843175],[206217e-11,4.80646631478,2544.3144198834],[205478e-11,1.86953770281,5573.1428014331],[202318e-11,2.45767790232,6069.7767545534],[155516e-11,.83306084617,213.299095438],[132212e-11,3.41118292683,2942.4634232916],[126225e-11,1.08295459501,20.7753954924],[115132e-11,.64544911683,.9803210682],[102851e-11,.63599845579,4694.0029547076],[101895e-11,.97569280312,15720.8387848784],[101724e-11,4.2667980198,7.1135470008],[99206e-11,6.20992926918,2146.1654164752],[97607e-11,.68101342359,155.4203994342],[85803e-11,5.9832263126,161000.6857376741],[85128e-11,1.29870764804,6275.9623029906],[84711e-11,3.67080093031,71430.69561812909],[79637e-11,1.80791287082,17260.1546546904],[78757e-11,3.03697458703,12036.4607348882],[74651e-11,1.755089133,5088.6288397668],[73874e-11,3.50319414955,3154.6870848956],[73547e-11,4.67926633877,801.8209311238],[69627e-11,.83297621398,9437.762934887],[62449e-11,3.97763912806,8827.3902698748],[61148e-11,1.81839892984,7084.8967811152],[56963e-11,2.78430458592,6286.5989683404],[56116e-11,4.38694865354,14143.4952424306],[55577e-11,3.47006059924,6279.5527316424],[51992e-11,.18914947184,12139.5535091068],[51605e-11,1.33282739866,1748.016413067],[51145e-11,.28306832879,5856.4776591154],[49e-8,.48735014197,1194.4470102246],[41036e-11,5.36817592855,8429.2412664666],[40938e-11,2.39850938714,19651.048481098],[392e-9,6.16833020996,10447.3878396044],[3677e-10,6.04133863162,10213.285546211],[36596e-11,2.56957481827,1059.3819301892],[35954e-11,1.70875808777,2352.8661537718],[3557e-10,1.775968892,6812.766815086],[33296e-11,.59310278598,17789.845619785],[30412e-11,.44294464169,83996.84731811189],[30047e-11,2.73975124088,1349.8674096588],[25352e-11,3.16470891653,4690.4798363586]],Gt=[[6283.0758499914],[.00206058863,2.67823455808,6283.0758499914],[4303419e-11,2.63512233481,12566.1516999828],[425264e-11,1.59046982018,3.523118349],[119305e-11,5.79555765566,26.2983197998],[109017e-11,2.96631010675,1577.3435424478],[93479e-11,2.59211109542,18849.2275499742],[72121e-11,1.13840581212,529.6909650946],[67784e-11,1.87453300345,398.1490034082],[6735e-10,4.40932832004,5507.5532386674],[59045e-11,2.88815790631,5223.6939198022],[55976e-11,2.17471740035,155.4203994342],[45411e-11,.39799502896,796.2980068164],[36298e-11,.46875437227,775.522611324],[28962e-11,2.64732254645,7.1135470008],[20844e-11,5.34138275149,.9803210682],[19097e-11,1.84628376049,5486.777843175],[18508e-11,4.96855179468,213.299095438],[17293e-11,2.9911676063,6275.9623029906],[16233e-11,.03216587315,2544.3144198834],[15832e-11,1.43049301283,2146.1654164752],[14608e-11,1.2046979369,10977.078804699],[12461e-11,2.83432282119,1748.016413067],[11877e-11,3.25805082007,5088.6288397668],[11808e-11,5.27379760438,1194.4470102246],[11514e-11,2.07502080082,4694.0029547076],[10641e-11,.76614722966,553.5694028424],[9969e-11,1.30263423409,6286.5989683404],[9721e-11,4.2392586526,1349.8674096588],[9452e-11,2.69956827011,242.728603974],[8577e-11,5.6447608598,951.7184062506],[7576e-11,5.30056172859,2352.8661537718],[6385e-11,2.65034514038,9437.762934887],[6101e-11,4.66633726278,4690.4798363586]],Ht=[[8721859e-11,1.07253635559,6283.0758499914],[294833e-11,.43717350256,12566.1516999828],[27338e-11,.05295636147,3.523118349],[16333e-11,5.18820215724,26.2983197998],[15745e-11,3.68504712183,155.4203994342],[9425e-11,.29667114694,18849.2275499742],[8938e-11,2.05706319592,77713.7714681205],[694e-10,.82691541038,775.522611324],[5061e-11,4.6624323168,1577.3435424478],[406e-10,1.03067032318,7.1135470008],[3809e-11,3.44043369494,5573.1428014331],[3464e-11,5.14021224609,796.2980068164],[3172e-11,6.05479318507,5507.5532386674],[302e-10,1.19240008524,242.728603974],[2885e-11,6.11705865396,529.6909650946],[2719e-11,.30363248164,398.1490034082],[2538e-11,2.27966434314,553.5694028424],[2365e-11,4.37666117992,5223.6939198022],[2078e-11,3.75435095487,.9803210682],[1675e-11,.90149951436,951.7184062506]],Nt=[[289058e-11,5.84173149732,6283.0758499914],[20712e-11,6.0498393902,12566.1516999828],[2962e-11,5.1956057957,155.4203994342],[1288e-11,4.7219761197,3.523118349],[635e-11,5.96904899168,242.728603974],[57e-10,5.54182903238,18849.2275499742],[402e-11,3.78606612895,553.5694028424]],qt=[[7714e-11,4.14117321449,6283.0758499914],[1016e-11,3.27573644241,12566.1516999828],[42e-10,.41892851415,155.4203994342]],Jt=[[172e-11,2.74854172392,6283.0758499914]],Ft=[[27962e-10,3.19870156017,84334.66158130829],[101643e-11,5.42248619256,5507.5532386674],[80445e-11,3.88013204458,5223.6939198022],[43806e-11,3.70444689759,2352.8661537718],[31933e-11,4.00026369781,1577.3435424478]],Ut=[[.00227777722,3.4137662053,6283.0758499914],[3805678e-11,3.37063423795,12566.1516999828]],jt=[],wt=[],Bt=[],zt=[],Yt=[[1.00013988784],[.01670699632,3.09846350258,6283.0758499914],[.00013956024,3.05524609456,12566.1516999828],[308372e-10,5.19846674381,77713.7714681205],[1628463e-11,1.17387558054,5753.3848848968],[1575572e-11,2.84685214877,7860.4193924392],[924799e-11,5.45292236722,11506.7697697936],[542439e-11,4.56409151453,3930.2096962196],[47211e-10,3.66100022149,5884.9268465832],[345969e-11,.96368627272,5507.5532386674],[32878e-10,5.89983686142,5223.6939198022],[306784e-11,.29867139512,5573.1428014331],[243181e-11,4.2734953079,11790.6290886588],[211836e-11,5.84714461348,1577.3435424478],[18574e-10,5.02199710705,10977.078804699],[174844e-11,3.01193636733,18849.2275499742],[109835e-11,5.0551063586,5486.777843175],[98316e-11,.88681311278,6069.7767545534],[865e-9,5.68956418946,15720.8387848784],[85831e-11,1.27079125277,161000.6857376741],[64908e-11,.27251341435,17260.1546546904],[62917e-11,.92177053978,529.6909650946],[57056e-11,2.01374292245,83996.84731811189],[55736e-11,5.2415979917,71430.69561812909],[49384e-11,3.24501240359,2544.3144198834],[46966e-11,2.57799853213,775.522611324],[44666e-11,5.53715663816,9437.762934887],[4252e-10,6.01110257982,6275.9623029906],[38963e-11,5.36063832897,4694.0029547076],[38245e-11,2.39255343973,8827.3902698748],[37486e-11,.82961281844,19651.048481098],[36957e-11,4.90107587287,12139.5535091068],[35661e-11,1.67447135798,12036.4607348882],[34537e-11,1.84270693281,2942.4634232916],[33193e-11,.24370221704,7084.8967811152],[31922e-11,.18368299942,5088.6288397668],[31846e-11,1.77775642078,398.1490034082],[28468e-11,1.21344887533,6286.5989683404],[27795e-11,1.89934427832,6279.5527316424],[26275e-11,4.58896863104,10447.3878396044]],$t=[[.00103018607,1.10748968172,6283.0758499914],[1721238e-11,1.06442300386,12566.1516999828],[32345e-11,1.02168583254,18849.2275499742],[30801e-11,2.84358443952,5507.5532386674],[24978e-11,1.31906570344,5223.6939198022],[18487e-11,1.42428709076,1577.3435424478],[10077e-11,5.91385248388,10977.078804699],[8654e-11,1.42046854427,6275.9623029906],[8635e-11,.27158192945,5486.777843175],[5069e-11,1.68613408916,5088.6288397668]],vt=[[4359385e-11,5.78455133808,6283.0758499914],[123633e-11,5.57935427994,12566.1516999828],[8792e-11,3.62777893099,77713.7714681205],[5689e-11,1.86958905084,5573.1428014331],[3302e-11,5.47034879713,18849.2275499742],[1471e-11,4.47964125007,5507.5532386674]],Wt=[[144595e-11,4.27319433901,6283.0758499914],[6729e-11,3.91706261708,12566.1516999828]],Qt=[[3858e-11,2.56389016346,6283.0758499914]],Kt=[],Xt=[It,Gt,Ht,Nt,qt,Jt],Zt=[Ft,Ut,jt,wt,Bt,zt],kt=[Yt,$t,vt,Wt,Qt,Kt];function I(t,e=0){let n=10**e;return Math.round(t*n)/n}function O(t,e){let n=t.toString();for(;n.length<e;)n=`0${n}`;return n}function m(t,e=360){let n=t%e;return n<0&&(n=n+e),n}function G(t){return t/3600}var H=.996647189335,te=1-H,xe=1.002738*15,m0=[[0,0,0,0,1,-171996,-174.2,92025,8.9],[0,0,2,-2,2,-13187,-1.6,5736,-3.1],[0,0,2,0,2,-2274,-.2,977,-.5],[0,0,0,0,2,2062,.2,-895,.5],[0,1,0,0,0,1426,-3.4,54,-.1],[1,0,0,0,0,712,.1,-7,0],[0,1,2,-2,2,-517,1.2,224,-.6],[0,0,2,0,1,-386,-.4,200,0],[1,0,2,0,2,-301,0,129,-.1],[0,-1,2,-2,2,217,-.5,-95,.3],[1,0,0,-2,0,-158,0,-1,0],[0,0,2,-2,1,129,.1,-70,0],[-1,0,2,0,2,123,0,-53,0],[0,0,0,2,0,63,0,-2,0],[1,0,0,0,1,63,.1,-33,0],[-1,0,2,2,2,-59,0,26,0],[-1,0,0,0,1,-58,-.1,32,0],[1,0,2,0,1,-51,0,27,0],[2,0,0,-2,0,48,0,1,0],[-2,0,2,0,1,46,0,-24,0],[0,0,2,2,2,-38,0,16,0],[2,0,2,0,2,-31,0,13,0],[2,0,0,0,0,29,0,-1,0],[1,0,2,-2,2,29,0,-12,0],[0,0,2,0,0,26,0,-1,0],[0,0,2,-2,0,-22,0,0,0],[-1,0,2,0,1,21,0,-10,0],[0,2,0,0,0,17,-.1,0,0],[0,2,2,-2,2,-16,.1,7,0],[-1,0,0,2,1,16,0,-8,0],[0,1,0,0,1,-15,0,9,0],[1,0,0,-2,1,-13,0,7,0],[0,-1,0,0,1,-12,0,6,0],[2,0,-2,0,0,11,0,0,0],[-1,0,2,2,1,-10,0,5,0],[1,0,2,2,2,-8,0,3,0],[1,1,0,-2,0,-7,0,0,0],[0,1,2,0,2,7,0,-3,0],[0,-1,2,0,2,-7,0,3,0],[0,0,2,2,1,-7,0,3,0],[-2,0,0,2,1,-6,0,3,0],[1,0,0,2,0,6,0,0,0],[2,0,2,-2,2,6,0,-3,0],[0,0,0,2,1,-6,0,3,0],[1,0,2,-2,1,6,0,-3,0],[0,-1,2,-2,1,-5,0,3,0],[0,0,0,-2,1,-5,0,3,0],[1,-1,0,0,0,5,0,0,0],[2,0,2,0,1,-5,0,3,0],[2,0,0,-2,1,4,0,-2,0],[0,1,2,-2,1,4,0,-2,0],[1,0,0,-1,0,-4,0,0,0],[0,1,0,-2,0,-4,0,0,0],[1,0,-2,0,0,4,0,0,0],[0,0,0,1,0,-4,0,0,0],[-2,0,2,0,2,-3,0,1,0],[1,-1,0,-1,0,-3,0,0,0],[1,1,0,0,0,-3,0,0,0],[1,0,2,0,0,3,0,0,0],[1,-1,2,0,2,-3,0,1,0],[-1,-1,2,2,2,-3,0,1,0],[3,0,2,0,2,-3,0,1,0],[0,-1,2,2,2,-3,0,1,0],[0,-2,2,-2,1,-2,0,1,0],[-2,0,0,0,1,-2,0,1,0],[1,1,2,0,2,2,0,-1,0],[-1,0,2,-2,1,-2,0,1,0],[2,0,0,0,1,2,0,-1,0],[1,0,0,0,2,-2,0,1,0],[3,0,0,0,0,2,0,0,0],[0,0,2,1,2,2,0,-1,0],[-1,0,2,4,2,-2,0,1,0],[2,0,-2,0,1,1,0,0,0],[2,1,0,-2,0,1,0,0,0],[0,0,-2,2,1,1,0,0,0],[0,1,-2,2,0,-1,0,0,0],[0,1,0,0,2,1,0,0,0],[-1,0,0,1,1,1,0,0,0],[0,1,2,-2,0,-1,0,0,0],[-1,0,0,0,2,1,0,-1,0],[1,0,0,-4,0,-1,0,0,0],[-2,0,2,2,2,1,0,-1,0],[2,0,0,-4,0,-1,0,0,0],[1,1,2,-2,2,1,0,-1,0],[1,0,2,2,1,-1,0,1,0],[-2,0,2,4,2,-1,0,1,0],[-1,0,4,0,2,1,0,0,0],[1,-1,0,-2,0,1,0,0,0],[2,0,2,-2,1,1,0,-1,0],[2,0,2,2,2,-1,0,0,0],[1,0,0,2,1,-1,0,0,0],[0,0,4,-2,2,1,0,0,0],[3,0,2,-2,2,1,0,0,0],[1,0,2,-2,0,-1,0,0,0],[0,1,2,0,1,1,0,0,0],[-1,-1,0,2,1,1,0,0,0],[0,0,-2,0,1,-1,0,0,0],[0,0,2,-1,2,-1,0,0,0],[0,1,0,2,0,-1,0,0,0],[1,0,-2,-2,0,-1,0,0,0],[0,-1,2,0,1,-1,0,0,0],[1,1,0,-2,1,-1,0,0,0],[1,0,-2,2,0,-1,0,0,0],[2,0,0,2,0,1,0,0,0],[0,0,2,4,2,-1,0,0,0],[0,1,0,1,0,1,0,0,0]];var c=Math.PI/180,M=180/Math.PI;var h0=[[0,0,1,0,6288774,-20905355],[2,0,-1,0,1274027,-3699111],[2,0,0,0,658314,-2955968],[0,0,2,0,213618,-569925],[0,1,0,0,-185116,48888],[0,0,0,2,-114332,-3149],[2,0,-2,0,58793,246158],[2,-1,-1,0,57066,-152138],[2,0,1,0,53322,-170733],[2,-1,0,0,45758,-204586],[0,1,-1,0,-40923,-129620],[1,0,0,0,-34720,108743],[0,1,1,0,-30383,104755],[2,0,0,-2,15327,10321],[0,0,1,2,-12528,0],[0,0,1,-2,10980,79661],[4,0,-1,0,10675,-34782],[0,0,3,0,10034,-23210],[4,0,-2,0,8548,-21636],[2,1,-1,0,-7888,24208],[2,1,0,0,-6766,30824],[1,0,-1,0,-5163,-8379],[1,1,0,0,4987,-16675],[2,-1,1,0,4036,-12831],[2,0,2,0,3994,-10445],[4,0,0,0,3861,-11650],[2,0,-3,0,3665,14403],[0,1,-2,0,-2689,-7003],[2,0,-1,2,-2602,0],[2,-1,-2,0,2390,10056],[1,0,1,0,-2348,6322],[2,-2,0,0,2236,-9884],[0,1,2,0,-2120,5751],[0,2,0,0,-2069,0],[2,-2,-1,0,2048,-4950],[2,0,1,-2,-1773,4130],[2,0,0,2,-1595,0],[4,-1,-1,0,1215,-3958],[0,0,2,2,-1110,0],[3,0,-1,0,-892,3258],[2,1,1,0,-810,2616],[4,-1,-2,0,759,-1897],[0,2,-1,0,-713,-2117],[2,2,-1,0,-700,2354],[2,1,-2,0,691,0],[2,-1,0,-2,596,0],[4,0,1,0,549,-1423],[0,0,4,0,537,-1117],[4,-1,0,0,520,-1571],[1,0,-2,0,-487,-1739],[2,1,0,-2,-399,0],[0,0,2,-2,-381,-4421],[1,1,1,0,351,0],[3,0,-2,0,-340,0],[4,0,-3,0,330,0],[2,-1,2,0,327,0],[0,2,1,0,-323,1165],[1,1,-1,0,299,0],[2,0,3,0,294,0],[2,0,-1,-2,0,8752]],G0=[[0,0,0,1,5128122],[0,0,1,1,280602],[0,0,1,-1,277693],[2,0,0,-1,173237],[2,0,-1,1,55413],[2,0,-1,-1,46271],[2,0,0,1,32573],[0,0,2,1,17198],[2,0,1,-1,9266],[0,0,2,-1,8822],[2,-1,0,-1,8216],[2,0,-2,-1,4324],[2,0,1,1,4200],[2,1,0,-1,-3359],[2,-1,-1,1,2463],[2,-1,0,1,2211],[2,-1,-1,-1,2065],[0,1,-1,-1,-1870],[4,0,-1,-1,1828],[0,1,0,1,-1794],[0,0,0,3,-1749],[0,1,-1,1,-1565],[1,0,0,1,-1491],[0,1,1,1,-1475],[0,1,1,-1,-1410],[0,1,0,-1,-1344],[1,0,0,-1,-1335],[0,0,3,1,1107],[4,0,0,-1,1021],[4,0,-1,1,833],[0,0,1,-3,777],[4,0,-2,1,671],[2,0,0,-3,607],[2,0,2,-1,596],[2,-1,1,-1,491],[2,0,-2,1,-451],[0,0,3,-1,439],[2,0,2,1,422],[2,0,-3,-1,421],[2,1,-1,1,-366],[2,1,0,1,-351],[4,0,0,1,331],[2,-1,1,1,315],[2,-2,0,-1,302],[0,0,1,3,-283],[2,1,1,-1,-229],[1,1,0,-1,223],[1,1,0,1,223],[0,1,-2,-1,-220],[2,1,-1,-1,-220],[1,0,1,1,-185],[2,-1,-2,-1,181],[0,1,2,1,-177],[4,0,-2,-1,176],[4,-1,-1,-1,166],[1,0,1,-1,-164],[4,0,1,-1,132],[1,0,-1,-1,-119],[4,-1,0,-1,115],[2,-2,0,1,107]];var H0=299792.458;function x(t){return t*(149597870700/1e3)}function q0(t){return t/(149597870700/1e3)}function C(t){let e=357.5291092+35999.0502909*t-1536e-7*t**2+t**3/2449e3;return m(e)}function ee(t){let e=t/10,n=280.4664567+360007.6982779*e+.03042028*e**2+e**3/49931-e**4/15300+e**5/2e6;return m(n)}function J0(t){let e=ee(t),n=ne(t);return e+n}function ne(t){let e=C(t),n=(1.914602-.004817*t-14e-6*t**2)*Math.sin(e*c);return n+=(.019993-101e-6*t)*Math.sin(2*e*c),n+=289e-6*Math.sin(3*e*c),n}function T(t){let e=297.8501921+445267.1114034*t-.0018819*t**2+t**3/545868-t**4/113065e3;return m(e)}function _(t){let e=134.9633964+477198.8675055*t+.0087414*t**2+t**3/69699-t**4/1471200;return m(e)}function L(t){let e=93.272095+483202.0175233*t-.0036539*t**2-t**3/352600+t**4/86331e3;return m(e)}function M0(t){let e=218.3164477+481267.88123421*t-.0015786*t**2+t**3/538841-t**4/65194e3;return m(e)}function F0(t){let e=M0(t),n=ie(t);return e+n/1e6}function U0(t){return ae(t)/1e6}function j0(t){return q0(oe(t))}function oe(t){return 385000.56+re(t)/1e3}function re(t){let e=T(t),n=C(t),o=_(t),r=L(t),s=1-.002516*t-74e-7*t**2,l=0;return h0.forEach(i=>{let a=i[0],u=i[1],p=i[2],g=i[3],d=i[5],h=Math.cos((a*e+u*n+p*o+g*r)*c);switch(u){case 1:case-1:h=h*d*s;break;case 2:case-2:h=h*d*s*s;break;default:h=h*d;break}l+=h}),l}function ie(t){let e=M0(t),n=T(t),o=C(t),r=_(t),s=L(t),l=119.75+131.849*t,i=53.09+479264.29*t,a=1-.002516*t-74e-7*t**2,u=3958*Math.sin(l*c)+1962*Math.sin((e-s)*c)+318*Math.sin(i*c);return h0.forEach(p=>{let g=p[0],d=p[1],h=p[2],E=p[3],f=p[4],b=Math.sin((g*n+d*o+h*r+E*s)*c);switch(d){case 1:case-1:b=b*f*a;break;case 2:case-2:b=b*f*a*a;break;default:b=b*f;break}u+=b}),u}function ae(t){let e=M0(t),n=T(t),o=C(t),r=_(t),s=L(t),l=119.75+131.849*t,i=313.45+481266.484*t,a=1-.002516*t-74e-7*t**2,u=-2235*Math.sin(e*c)+382*Math.sin(i*c)+175*Math.sin((l-s)*c)+175*Math.sin((l+s)*c)+127*Math.sin((e-r)*c)-115*Math.sin((e+r)*c);return G0.forEach(p=>{let g=p[0],d=p[1],h=p[2],E=p[3],f=p[4],b=Math.sin((g*n+d*o+h*r+E*s)*c);switch(d){case 1:case-1:b=b*f*a;break;case 2:case-2:b=b*f*a**2;break;default:b=b*f;break}u+=b}),u}function B0(t){return .016708634-42037e-9*t-1267e-10*t**2}function z0(t){return 102.93735+1.71946*t+46e-5*t**2}function b0(t){let e=t/100;return(84381.448-4680.93*e-1.55*e**2+1999.25*e**3-51.38*e**4-249.67*e**5-39.05*e**6+7.12*e**7+27.87*e**8+5.79*e**9+2.45*e**10)/3600}function V(t){let e=b0(t),n=f0(t);return e+n}function y(t){let e=T(t),n=C(t),o=_(t),r=L(t),s=125.04452-1934.136261*t+.0020708*t**2+t**3/45e4,l=0;return m0.forEach(i=>{let a=i[0],u=i[1],p=i[2],g=i[3],d=i[4],h=i[5],E=i[6],f=g*e+u*n+a*o+p*r+d*s;l+=Math.sin(f*c)*(h+E*t)}),l*1e-4/3600}function f0(t){let e=T(t),n=C(t),o=_(t),r=L(t),s=125.04452-1934.136261*t+.0020708*t**2+t**3/45e4,l=0;return m0.forEach(i=>{let a=i[0],u=i[1],p=i[2],g=i[3],d=i[4],h=i[7],E=i[8],f=g*e+u*n+a*o+p*r+d*s;l+=Math.cos(f*c)*(h+E*t)}),l*1e-4/3600}function E0(t){let e=parseFloat(`${t.year}.${v(t)}`),n,o;t.month>2?(n=t.year,o=t.month):(n=t.year-1,o=t.month+12);let r=t.day,s=t.hour/24+t.min/1440+t.sec/86400,l,i;if(e>=1582.288)l=Math.floor(n/100),i=2-l+Math.floor(l/4);else if(e<=1582.277)i=0;else throw new Error("Date between 1582-10-04 and 1582-10-15 is not defined.");return Math.floor(365.25*(n+4716))+Math.floor(30.6001*(o+1))+r+s+i-1524.5}function S0(t){t=t+.5;let e=Math.floor(t),n=t-e,o=e;if(e>=2299161){let E=Math.floor((e-186721625e-2)/36524.25);o=e+1+E-Math.floor(E/4)}let r=o+1524,s=Math.floor((r-122.1)/365.25),l=Math.floor(365.25*s),i=Math.floor((r-l)/30.6001),a=r-l-Math.floor(30.6001*i)+n,u=i<14?i-1:i-13,p=u>2?s-4716:s-4715,g=(a-Math.floor(a))*24,d=(g-Math.floor(g))*60,h=(d-Math.floor(d))*60;return{year:Math.floor(p),month:Math.floor(u),day:Math.floor(a),hour:Math.floor(g),min:Math.floor(d),sec:Math.floor(h)}}function Y0(t){return Math.floor(t+.5)-.5}function R0(t){return(t-2451545)/36525}function q(t){return t*36525+2451545}function $0(t){return R0(t)/10}function v0(t,e){let n=J(t)?1:2,o=e<32?1:Math.floor(9*(n+e)/275+.98),r=Math.floor(e-Math.floor(275*o/9)+n*Math.floor((o+9)/12)+30),s=24*(e-Math.floor(e)),l=Math.floor(s),i=60*(s-l),a=Math.floor(i),u=I(60*(i-a));return{year:t,month:o,day:r,hour:l,min:a,sec:u}}function W0(t){let e=J(t.year)?366:365,n=v(t)-1+t.hour/24+t.min/1440+t.sec/86400;return t.year+n/e}function v(t){let e=J(t.year)?1:2,n=t.month,o=t.day;return Math.floor(275*n/9)-e*Math.floor((n+9)/12)+o-30}function Q0(t){let e=E0(t);return Math.floor((e+1.5)%7)}function J(t){return t/4!==Math.floor(t/4)?!1:t/100!==Math.floor(t/100)?!0:t/400===Math.floor(t/400)}function W(t){let n=280.46061837+360.98564736629*(q(t)-2451545)+387933e-9*t**2+t**3/3871e4;return m(n)}function C0(t){let e=W(t),n=y(t),r=V(t)*c;return e+n*Math.cos(r)}function K0(t,e){let o=W(t)+e;return m(o)}function F(t,e){return C0(t)+e}function A0(t,e,n){let o=F(t,e);return m(o-n)}function X0(t){let{x:e,y:n,z:o}=t,r=Math.atan2(n,e),s=m(r*M),i=Math.atan(o/Math.sqrt(e**2+n**2))*M,a=Math.sqrt(e**2+n**2+o**2);return{lon:s,lat:i,radiusVector:a}}function S(t){let{lon:e,lat:n,radiusVector:o}=t,r=e*c,s=n*c,l=o*Math.cos(s)*Math.cos(r),i=o*Math.cos(s)*Math.sin(r),a=o*Math.sin(s);return{x:l,y:i,z:a}}function O0(t,e,n){let{rightAscension:o,declination:r,radiusVector:s}=t,{lat:l,lon:i,elevation:a}=e,u=r*c;a=a||0;let p=le(l,a),g=pe(l,a),h=ue(s)*c,E=F(n,i),b=A0(n,i,o)*c,i0=Math.cos(u)*Math.sin(b),a0=Math.cos(u)*Math.cos(b)-g*Math.sin(h),c0=Math.sin(u)-p*Math.sin(h),I0=Math.sqrt(i0*i0+a0*a0+c0*c0),it=Math.atan2(i0,a0)*M,at=Math.asin(c0/I0);return{rightAscension:m(E-it),declination:at*M,radiusVector:I0*s}}function Z0(t,e,n){let{rightAscension:o,declination:r}=t,{lat:s,lon:l}=e,i=O0(t,e,n),a=A0(n,l,o);return se(a,r,s,i.radiusVector)}function se(t,e,n,o=0){let r=t*c,s=e*c,l=n*c,i=Math.atan2(Math.sin(r),Math.cos(r)*Math.sin(l)-Math.tan(s)*Math.cos(l)),a=Math.asin(Math.sin(l)*Math.sin(s)+Math.cos(l)*Math.cos(s)*Math.cos(r));return{azimuth:m(i*M+180),altitude:a*M,radiusVector:o}}function Q(t,e,n=!0){let{lon:o,lat:r,radiusVector:s}=t,i=V(e)*c,a=o*c,u=r*c,p=Math.sin(a)*Math.cos(i)-Math.sin(u)/Math.cos(u)*Math.sin(i),g=Math.cos(a),d=Math.atan2(p,g),h=n?m(d*M):d*M,f=Math.asin(Math.sin(u)*Math.cos(i)+Math.cos(u)*Math.sin(i)*Math.sin(a))*M;return{rightAscension:h,declination:f,radiusVector:s}}function k0(t,e){return{x:t.x+e.x,y:t.y+e.y,z:t.z+e.z}}function x0(t){let{lon:e,lat:n,radiusVector:o}=t;return{lon:m(e+180),lat:-1*n,radiusVector:o}}function ue(t){let e=G(8.794)*c;return Math.asin(Math.sin(e)/t)*M}function le(t,e){let n=t*c,o=Math.atan(H*Math.tan(n));return H*Math.sin(o)+e/6378137*Math.sin(n)}function pe(t,e){let n=t*c,o=Math.atan(H*Math.tan(n));return Math.cos(o)+e/6378137*Math.cos(n)}function U(t,e){return K(t,e)*M}function K(t,e){let n=0;return t.forEach((o,r)=>{n+=me(o,e)*e**r}),n}function me(t,e){let n=0;return t.forEach(o=>{let r=o[0]||0,s=o[1]||0,l=o[2]||0;n+=r*Math.cos(s+l*e)}),n}function X(t,e){let n=y(e);return{lon:t.lon+n,lat:t.lat,radiusVector:t.radiusVector}}function tt(t,e){let n=J0(e),o=B0(e),r=z0(e),s=G(20.49552),l=t.lon*c,i=t.lat*c,a=n*c,u=r*c,p=(-1*s*Math.cos(a-l)+o*s*Math.cos(u-l))/Math.cos(i),g=-1*s*Math.sin(i)*(Math.sin(a-l)-o*Math.sin(u-l));return{lon:t.lon+p,lat:t.lat+g,radiusVector:t.radiusVector}}function et(t){if(t<-5)return t;let e=1.02/Math.tan((t+10.3/(t+5.11))*c);return t+e/60}function nt(t,e=0){let n=t+(e-.5)/12,o,r=0;return t<-500&&(o=(n-1820)/100,r=-20+32*o**2),t>=-500&&t<500&&(o=n/100,r=10583.6-1014.41*o+33.78311*o**2-5.952053*o**3-.1798452*o**4+.022174192*o**5+.0090316521*o**6),t>=500&&t<1600&&(o=(n-1e3)/100,r=1574.2-556.01*o+71.23472*o**2+.319781*o**3-.8503463*o**4-.005050998*o**5+.0083572073*o**6),t>=1600&&t<1700&&(o=n-1600,r=120-.9808*o-.01532*o**2+o**3/7129),t>=1700&&t<1800&&(o=n-1700,r=8.83+.1603*o-.0059285*o**2+13336e-8*o**3-o**4/1174e3),t>=1800&&t<1860&&(o=n-1800,r=13.72-.332447*o+.0068612*o**2+.0041116*o**3-37436e-8*o**4+121272e-10*o**5-1699e-10*o**6+875e-12*o**7),t>=1860&&t<1900&&(o=n-1860,r=7.62+.5737*o-.251754*o**2+.01680668*o**3-.0004473624*o**4+o**5/233174),t>=1900&&t<1920&&(o=n-1900,r=-2.79+1.494119*o-.0598939*o**2+.0061966*o**3-197e-6*o**4),t>=1920&&t<1941&&(o=n-1920,r=21.2+.84493*o-.0761*o**2+.0020936*o**3),t>=1941&&t<1961&&(o=n-1950,r=29.07+.407*o-o**2/233+o**3/2547),t>=1961&&t<1986&&(o=n-1975,r=45.45+1.067*o-o**2/260-o**3/718),t>=1986&&t<2005&&(o=n-2e3,r=63.86+.3345*o-.060374*o**2+.0017275*o**3+651814e-9*o**4+2373599e-11*o**5),t>=2005&&t<2050&&(o=n-2e3,r=62.92+.32217*o+.005589*o**2),t>=2050&&(o=(n-1820)/100,r=-20+32*o**2),r}var D=class t{constructor(e){this.time=e;this.jd=0;this.T=0;this.jd=E0(e),this.T=R0(this.jd)}static fromCurrentTime(){let e=new Date(Date.now());return new t({year:e.getUTCFullYear(),month:e.getUTCMonth()+1,day:e.getUTCDate(),hour:e.getUTCHours(),min:e.getUTCMinutes(),sec:e.getUTCSeconds()})}static fromTime(e,n,o,r=0,s=0,l=0){return new t({year:e,month:n,day:o,hour:r,min:s,sec:l})}static fromDate(e){return new t({year:e.getUTCFullYear(),month:e.getUTCMonth()+1,day:e.getUTCDate(),hour:e.getUTCHours(),min:e.getUTCMinutes(),sec:e.getUTCSeconds()})}static fromYearOfDay(e,n){let o=v0(e,n);return new t(o)}static fromJulianDay(e){let n=S0(e);return new t(n)}static fromJulianCenturiesJ2000(e){let n=q(e),o=S0(n);return new t(o)}getTime(){return this.time}getString(){let{year:e,month:n,day:o,hour:r,min:s,sec:l}=this.time;return`${e}-${O(n,2)}-${O(o,2)} ${O(r,2)}:${O(s,2)}:${O(l,2)}`}getDate(){let{year:e,month:n,day:o,hour:r,min:s,sec:l}=this.time;return new Date(Date.UTC(e,n-1,o,r,s,l))}getDecimalYear(){return W0(this.time)}getDayOfYear(){return v(this.time)}getDayOfWeek(){return Q0(this.time)}isLeapYear(){return J(this.time.year)}getJulianDay(){return this.jd}getJulianDay0(){return Y0(this.jd)}getJulianCenturiesJ2000(){return this.T}getJulianMillenniaJ2000(){return $0(this.jd)}getGreenwichMeanSiderealTime(){return W(this.T)}getGreenwichApparentSiderealTime(){return C0(this.T)}getLocalMeanSiderealTime(e){return K0(this.T,e.lon)}getLocalApparentSiderealTime(e){return F(this.T,e.lon)}getDeltaT(){let{year:e,month:n}=this.time;return nt(e,n)}};var R=class{constructor(e=D.fromCurrentTime(),n="astronomical object"){this.toi=e;this.name=n;this.jd=0;this.jd0=0;this.T=0;this.t=0;this.jd=e.getJulianDay(),this.jd0=e.getJulianDay0(),this.T=e.getJulianCenturiesJ2000(),this.t=e.getJulianMillenniaJ2000()}getTimeOfInterest(){return this.toi}getGeocentricEquatorialSphericalJ2000Coordinates(){let e=this.getGeocentricEclipticSphericalJ2000Coordinates();return Q(e,this.T)}getGeocentricEquatorialSphericalDateCoordinates(){let e=this.getGeocentricEclipticSphericalDateCoordinates();return Q(e,this.T)}getApparentGeocentricEclipticRectangularCoordinates(){let e=this.getApparentGeocentricEclipticSphericalCoordinates();return S(e)}getApparentGeocentricEquatorialSphericalCoordinates(){let e=this.getApparentGeocentricEclipticSphericalCoordinates();return Q(e,this.T)}getTopocentricEquatorialSphericalCoordinates(e){let n=this.getApparentGeocentricEquatorialSphericalCoordinates();return O0(n,e,this.T)}getTopocentricHorizontalCoordinates(e){let n=this.getApparentGeocentricEquatorialSphericalCoordinates();return Z0(n,e,this.T)}getApparentTopocentricHorizontalCoordinates(e){let{azimuth:n,altitude:o,radiusVector:r}=this.getTopocentricHorizontalCoordinates(e);return{azimuth:n,altitude:et(o),radiusVector:r}}getDistanceToEarth(){let e=this.getGeocentricEclipticSphericalDateCoordinates();return x(e.radiusVector)}getApparentDistanceToEarth(){let e=this.getApparentGeocentricEclipticSphericalCoordinates();return x(e.radiusVector)}getTopocentricDistanceToEarth(e){let n=this.getTopocentricEquatorialSphericalCoordinates(e);return x(n.radiusVector)}getLightTime(){let{radiusVector:e}=this.getGeocentricEclipticSphericalDateCoordinates();return x(e)/H0}};var j=class extends R{constructor(n,o,r){super(n,"earth");this.vsop87Date=o;this.vsop87J2000=r}getHeliocentricEclipticRectangularJ2000Coordinates(){return S(this.getHeliocentricEclipticSphericalJ2000Coordinates())}getHeliocentricEclipticRectangularDateCoordinates(){return S(this.getHeliocentricEclipticSphericalDateCoordinates())}getHeliocentricEclipticSphericalJ2000Coordinates(){return{lon:m(U(this.vsop87J2000.VSOP87_X,this.t)),lat:U(this.vsop87J2000.VSOP87_Y,this.t),radiusVector:K(this.vsop87J2000.VSOP87_Z,this.t)}}getHeliocentricEclipticSphericalDateCoordinates(){return{lon:m(U(this.vsop87Date.VSOP87_X,this.t)),lat:U(this.vsop87Date.VSOP87_Y,this.t),radiusVector:K(this.vsop87Date.VSOP87_Z,this.t)}}getGeocentricEclipticRectangularJ2000Coordinates(){return{x:0,y:0,z:0}}getGeocentricEclipticRectangularDateCoordinates(){return{x:0,y:0,z:0}}getGeocentricEclipticSphericalJ2000Coordinates(){return{lon:0,lat:0,radiusVector:0}}getGeocentricEclipticSphericalDateCoordinates(){return{lon:0,lat:0,radiusVector:0}}getApparentGeocentricEclipticSphericalCoordinates(){return{lon:0,lat:0,radiusVector:0}}getNutationInLongitude(){return y(this.T)}getNutationInObliquity(){return f0(this.T)}getMeanObliquityOfEcliptic(){return b0(this.T)}getTrueObliquityOfEcliptic(){return V(this.T)}};var A=class t extends j{constructor(e){super(e,l0,p0)}static create(e){return new t(e)}};function Z(t,e){let n=t.rightAscension*c,o=t.declination*c,r=e.rightAscension*c,s=e.declination*c;return Math.acos(Math.sin(s)*Math.sin(o)+Math.cos(s)*Math.cos(o)*Math.cos(r-n))*M}function y0(t,e){let n=t.radiusVector,o=e.radiusVector,s=Z(t,e)*c;return Math.atan2(o*Math.sin(s),n-o*Math.cos(s))*M}function D0(t){let e=t*c;return(1+Math.cos(e))/2}function T0(t,e){let n=t.rightAscension*c,o=t.declination*c,r=e.rightAscension*c,s=e.declination*c,l=Math.cos(s)*Math.sin(r-n),i=Math.sin(s)*Math.cos(o)-Math.cos(s)*Math.sin(o)*Math.cos(r-n),a=Math.atan2(l,i);return m(a*M)}function _0(t){return t>=180}function P(t,e){return 2*Math.atan2(e,2*t)*M}var w=class extends R{constructor(n,o){super(n,"sun");this.earth=o}getHeliocentricEclipticRectangularJ2000Coordinates(){return{x:0,y:0,z:0}}getHeliocentricEclipticRectangularDateCoordinates(){return{x:0,y:0,z:0}}getHeliocentricEclipticSphericalJ2000Coordinates(){return{lon:0,lat:0,radiusVector:0}}getHeliocentricEclipticSphericalDateCoordinates(){return{lon:0,lat:0,radiusVector:0}}getGeocentricEclipticRectangularJ2000Coordinates(){return S(this.getGeocentricEclipticSphericalJ2000Coordinates())}getGeocentricEclipticRectangularDateCoordinates(){return S(this.getGeocentricEclipticSphericalDateCoordinates())}getGeocentricEclipticSphericalJ2000Coordinates(){return x0(this.earth.getHeliocentricEclipticSphericalJ2000Coordinates())}getGeocentricEclipticSphericalDateCoordinates(){return x0(this.earth.getHeliocentricEclipticSphericalDateCoordinates())}getApparentGeocentricEclipticSphericalCoordinates(){let n=this.getGeocentricEclipticSphericalDateCoordinates();return n=tt(n,this.T),n=X(n,this.T),n}getAngularDiameter(){return P(this.getApparentDistanceToEarth(),1392684)}getTopocentricAngularDiameter(n){return P(this.getTopocentricDistanceToEarth(n),1392684)}getApparentMagnitude(){return-26.74}getTopocentricApparentMagnitude(){return-26.74}};var B=class t extends w{constructor(e){super(e,A.create(e))}static create(e){return new t(e)}};function L0(t,e,n,o){let r=o?-1*n:n,s=5*(Math.log10(t)+Math.log10(x(e)/384400));return n>=160&&(s+=-449.88+7.1112*n-.037714*n**2+66667e-9*n**3),n>=40&&n<160&&(s+=-12.07857+.002175199*r+.0002859289*r**2-2495124e-13*r**3-8699235e-15*r**4+7606291e-18*r**5+3403311e-19*r**6),r>=0&&r<40&&(s+=-12.861+.037*n-12e-5*n**2),r>-40&&r<0&&(s+=-12.85-.037*r-235e-6*r**2),s}function z(t,e){let n=I((t-2e3)*12.3685)+e,o=n/1236.85,r=Ee(n,o),s=he(n,o,e),l=be(n,o,e),i=fe(n,o),a=r+s+l+i;return D.fromJulianDay(a)}function he(t,e,n){switch(n){case 0:return de(t,e);case .5:return ge(t,e);case .25:case .75:return Me(t,e);default:throw new Error(`Invalid moon phase: ${n}`)}}function de(t,e){let n=1-.002516*e-74e-7*e**2,o=n0(t,e),r=o0(t,e),s=r0(t,e),l=P0(t,e),i=o*c,a=r*c,u=s*c,p=l*c;return-.4072*Math.sin(a)+.17241*n*Math.sin(i)+.01608*Math.sin(2*a)+.01039*Math.sin(2*u)+.00739*n*Math.sin(a-i)-.00514*n*Math.sin(a+i)+.00208*n*n*Math.sin(2*i)-.00111*Math.sin(a-2*u)-57e-5*Math.sin(a+2*u)+56e-5*n*Math.sin(2*a+i)-42e-5*Math.sin(3*a)+42e-5*n*Math.sin(i+2*u)+38e-5*n*Math.sin(i-2*u)-24e-5*n*Math.sin(2*a-i)-17e-5*Math.sin(p)-7e-5*Math.sin(a+2*i)+4e-5*Math.sin(2*a-2*u)+4e-5*Math.sin(3*i)+3e-5*Math.sin(a+i-2*u)+3e-5*Math.sin(2*a+2*u)-3e-5*Math.sin(a+i+2*u)+3e-5*Math.sin(a-i+2*u)-2e-5*Math.sin(a-i-2*u)-2e-5*Math.sin(3*a+i)+2e-5*Math.sin(4*a)}function ge(t,e){let n=1-.002516*e-74e-7*e**2,o=n0(t,e),r=o0(t,e),s=r0(t,e),l=P0(t,e),i=o*c,a=r*c,u=s*c,p=l*c;return-.40614*Math.sin(a)+.17302*n*Math.sin(i)+.01614*Math.sin(2*a)+.01043*Math.sin(2*u)+.00734*n*Math.sin(a-i)-.00515*n*Math.sin(a+i)+.00209*n*n*Math.sin(2*i)-.00111*Math.sin(a-2*u)-57e-5*Math.sin(a+2*u)+56e-5*n*Math.sin(2*a+i)-42e-5*Math.sin(3*a)+42e-5*n*Math.sin(i+2*u)+38e-5*n*Math.sin(i-2*u)-24e-5*n*Math.sin(2*a-i)-17e-5*Math.sin(p)-7e-5*Math.sin(a+2*i)+4e-5*Math.sin(2*a-2*u)+4e-5*Math.sin(3*i)+3e-5*Math.sin(a+i-2*u)+3e-5*Math.sin(2*a+2*u)-3e-5*Math.sin(a+i+2*u)+3e-5*Math.sin(a-i+2*u)-2e-5*Math.sin(a-i-2*u)-2e-5*Math.sin(3*a+i)+2e-5*Math.sin(4*a)}function Me(t,e){let n=1-.002516*e-74e-7*e**2,o=n0(t,e),r=o0(t,e),s=r0(t,e),l=P0(t,e),i=o*c,a=r*c,u=s*c,p=l*c;return-.62801*Math.sin(a)+.17172*n*Math.sin(i)-.01183*n*Math.sin(a+i)+.00862*Math.sin(2*a)+.00804*Math.sin(2*u)+.00454*n*Math.sin(a-i)+.00204*n*n*Math.sin(2*i)-.0018*Math.sin(a-2*u)-7e-4*Math.sin(a+2*u)-4e-4*Math.sin(3*a)-34e-5*n*Math.sin(2*a-i)+32e-5*n*Math.sin(i+2*u)+32e-5*n*Math.sin(i-2*u)-28e-5*n*n*Math.sin(a+2*i)+27e-5*n*Math.sin(2*a+i)-17e-5*Math.sin(p)-5e-5*Math.sin(a-i-2*u)+4e-5*Math.sin(2*a+2*u)-4e-5*Math.sin(a+i+2*u)+4e-5*Math.sin(a-2*i)+3e-5*Math.sin(a+i-2*u)+3e-5*Math.sin(3*i)+2e-5*Math.sin(2*a-2*u)+2e-5*Math.sin(a-i+2*u)-2e-5*Math.sin(3*a+i)}function be(t,e,n){if(n===.5||n===0)return 0;let o=1-.002516*e-74e-7*e**2,r=n0(t,e),s=o0(t,e),l=r0(t,e),i=r*c,a=s*c,u=l*c,p=.00306-38e-5*o*Math.cos(i)+26e-5*Math.cos(a)-2e-5*Math.cos(a-i)+2e-5*Math.cos(a+i)+2e-5*Math.cos(2*u);return n===.25?p:-1*p}function fe(t,e){let n=(299.77+.107408*t-.009173*e**2)*c,o=(251.88+.016321*t)*c,r=(251.83+26.651776*t)*c,s=(349.42+36.412478*t)*c,l=(84.66+18.206239*t)*c,i=(141.74+53.303771*t)*c,a=(207.84+2.453732*t)*c,u=(154.84+7.30686*t)*c,p=(34.52+27.261239*t)*c,g=(207.19+.121824*t)*c,d=(291.34+1.844379*t)*c,h=(161.72+24.198154*t)*c,E=(239.56+25.513099*t)*c,f=(331.55+3.592518*t)*c;return 325e-6*Math.sin(n)+165e-6*Math.sin(o)+164e-6*Math.sin(r)+126e-6*Math.sin(s)+11e-5*Math.sin(l)+62e-6*Math.sin(i)+6e-5*Math.sin(a)+56e-6*Math.sin(u)+47e-6*Math.sin(p)+42e-6*Math.sin(g)+4e-5*Math.sin(d)+37e-6*Math.sin(h)+35e-6*Math.sin(E)+23e-6*Math.sin(f)}function Ee(t,e){return 245155009766e-5+29.530588861*t+15437e-8*e**2+15e-8*e**3+73e-11*e**4}function n0(t,e){return 2.5534+29.1053567*t-14e-7*e**2-11e-8*e**3}function o0(t,e){return 201.5643+385.81693528*t+.0107582*e**2+1238e-8*e**3+58e-9*e**4}function r0(t,e){return 160.7108+390.67050284*t+.0016118*e**2+227e-8*e**3+11e-9*e**4}function P0(t,e){return 124.7746+390.67050284*t+.0020672*e**2+215e-8*e**3}var Y=class extends R{constructor(n,o,r){super(n,"moon");this.sun=o;this.earth=r}getHeliocentricEclipticRectangularJ2000Coordinates(){return this.getHeliocentricEclipticRectangularDateCoordinates()}getHeliocentricEclipticRectangularDateCoordinates(){let n=this.getGeocentricEclipticRectangularDateCoordinates(),o=this.earth.getHeliocentricEclipticRectangularDateCoordinates();return k0(n,o)}getHeliocentricEclipticSphericalJ2000Coordinates(){return this.getHeliocentricEclipticSphericalDateCoordinates()}getHeliocentricEclipticSphericalDateCoordinates(){let n=this.getHeliocentricEclipticRectangularDateCoordinates();return X0(n)}getGeocentricEclipticRectangularJ2000Coordinates(){return this.getGeocentricEclipticRectangularDateCoordinates()}getGeocentricEclipticRectangularDateCoordinates(){let n=this.getGeocentricEclipticSphericalDateCoordinates();return S(n)}getGeocentricEclipticSphericalJ2000Coordinates(){return this.getGeocentricEclipticSphericalDateCoordinates()}getGeocentricEclipticSphericalDateCoordinates(){let n=F0(this.T),o=U0(this.T),r=j0(this.T);return{lon:n,lat:o,radiusVector:r}}getApparentGeocentricEclipticSphericalCoordinates(){let n=this.getGeocentricEclipticSphericalDateCoordinates();return X(n,this.T)}getAngularDiameter(){let n=this.getApparentDistanceToEarth();return P(n,3474.8)}getTopocentricAngularDiameter(n){let o=this.getTopocentricDistanceToEarth(n);return P(o,3474.8)}getElongation(){let n=this.getApparentGeocentricEquatorialSphericalCoordinates(),o=this.sun.getApparentGeocentricEquatorialSphericalCoordinates();return Z(n,o)}getTopocentricElongation(n){let o=this.getTopocentricEquatorialSphericalCoordinates(n),r=this.sun.getApparentGeocentricEquatorialSphericalCoordinates();return Z(o,r)}getPhaseAngle(){let n=this.getApparentGeocentricEquatorialSphericalCoordinates(),o=this.sun.getApparentGeocentricEquatorialSphericalCoordinates();return y0(n,o)}getTopocentricPhaseAngle(n){let o=this.getTopocentricEquatorialSphericalCoordinates(n),r=this.sun.getApparentGeocentricEquatorialSphericalCoordinates();return y0(o,r)}getIlluminatedFraction(){let n=this.getPhaseAngle();return D0(n)}getTopocentricIlluminatedFraction(n){let o=this.getTopocentricPhaseAngle(n);return D0(o)}getPositionAngleOfBrightLimb(){let n=this.getApparentGeocentricEquatorialSphericalCoordinates(),o=this.sun.getApparentGeocentricEquatorialSphericalCoordinates();return T0(n,o)}getTopocentricPositionAngleOfBrightLimb(n){let o=this.getTopocentricEquatorialSphericalCoordinates(n),r=this.sun.getApparentGeocentricEquatorialSphericalCoordinates();return T0(o,r)}isWaxing(){let n=this.getPositionAngleOfBrightLimb();return _0(n)}isTopocentricWaxing(n){let o=this.getTopocentricPositionAngleOfBrightLimb(n);return _0(o)}getApparentMagnitude(){let n=this.getHeliocentricEclipticSphericalDateCoordinates(),o=this.getGeocentricEclipticSphericalDateCoordinates(),r=this.getPhaseAngle(),s=this.isWaxing();return L0(n.radiusVector,o.radiusVector,r,s)}getTopocentricApparentMagnitude(n){let o=this.getHeliocentricEclipticSphericalDateCoordinates(),r=this.getTopocentricEquatorialSphericalCoordinates(n),s=this.getTopocentricPhaseAngle(n),l=this.isTopocentricWaxing(n);return L0(o.radiusVector,r.radiusVector,s,l)}getUpcomingNewMoon(){let n=this.toi.getDecimalYear();return z(n,0)}getUpcomingFirstQuarter(){let n=this.toi.getDecimalYear();return z(n,.25)}getUpcomingFullMoon(){let n=this.toi.getDecimalYear();return z(n,.5)}getUpcomingLastQuarter(){let n=this.toi.getDecimalYear();return z(n,.75)}};var $=class t extends Y{constructor(e){super(e,new B(e),new A(e))}static create(e){return new t(e)}};0&&(module.exports={Moon});
|
|
1
|
+
"use strict";var i0=Object.defineProperty;var rt=Object.getOwnPropertyDescriptor;var it=Object.getOwnPropertyNames;var at=Object.prototype.hasOwnProperty;var a0=(t,n)=>{for(var e in n)i0(t,e,{get:n[e],enumerable:!0})},ct=(t,n,e,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of it(n))!at.call(t,r)&&r!==e&&i0(t,r,{get:()=>n[r],enumerable:!(o=rt(n,r))||o.enumerable});return t};var st=t=>ct(i0({},"__esModule",{value:!0}),t);var fn={};a0(fn,{Moon:()=>z});module.exports=st(fn);var c0=[[0,0,1,0,6288774,-20905355],[2,0,-1,0,1274027,-3699111],[2,0,0,0,658314,-2955968],[0,0,2,0,213618,-569925],[0,1,0,0,-185116,48888],[0,0,0,2,-114332,-3149],[2,0,-2,0,58793,246158],[2,-1,-1,0,57066,-152138],[2,0,1,0,53322,-170733],[2,-1,0,0,45758,-204586],[0,1,-1,0,-40923,-129620],[1,0,0,0,-34720,108743],[0,1,1,0,-30383,104755],[2,0,0,-2,15327,10321],[0,0,1,2,-12528,0],[0,0,1,-2,10980,79661],[4,0,-1,0,10675,-34782],[0,0,3,0,10034,-23210],[4,0,-2,0,8548,-21636],[2,1,-1,0,-7888,24208],[2,1,0,0,-6766,30824],[1,0,-1,0,-5163,-8379],[1,1,0,0,4987,-16675],[2,-1,1,0,4036,-12831],[2,0,2,0,3994,-10445],[4,0,0,0,3861,-11650],[2,0,-3,0,3665,14403],[0,1,-2,0,-2689,-7003],[2,0,-1,2,-2602,0],[2,-1,-2,0,2390,10056],[1,0,1,0,-2348,6322],[2,-2,0,0,2236,-9884],[0,1,2,0,-2120,5751],[0,2,0,0,-2069,0],[2,-2,-1,0,2048,-4950],[2,0,1,-2,-1773,4130],[2,0,0,2,-1595,0],[4,-1,-1,0,1215,-3958],[0,0,2,2,-1110,0],[3,0,-1,0,-892,3258],[2,1,1,0,-810,2616],[4,-1,-2,0,759,-1897],[0,2,-1,0,-713,-2117],[2,2,-1,0,-700,2354],[2,1,-2,0,691,0],[2,-1,0,-2,596,0],[4,0,1,0,549,-1423],[0,0,4,0,537,-1117],[4,-1,0,0,520,-1571],[1,0,-2,0,-487,-1739],[2,1,0,-2,-399,0],[0,0,2,-2,-381,-4421],[1,1,1,0,351,0],[3,0,-2,0,-340,0],[4,0,-3,0,330,0],[2,-1,2,0,327,0],[0,2,1,0,-323,1165],[1,1,-1,0,299,0],[2,0,3,0,294,0],[2,0,-1,-2,0,8752]],V0=[[0,0,0,1,5128122],[0,0,1,1,280602],[0,0,1,-1,277693],[2,0,0,-1,173237],[2,0,-1,1,55413],[2,0,-1,-1,46271],[2,0,0,1,32573],[0,0,2,1,17198],[2,0,1,-1,9266],[0,0,2,-1,8822],[2,-1,0,-1,8216],[2,0,-2,-1,4324],[2,0,1,1,4200],[2,1,0,-1,-3359],[2,-1,-1,1,2463],[2,-1,0,1,2211],[2,-1,-1,-1,2065],[0,1,-1,-1,-1870],[4,0,-1,-1,1828],[0,1,0,1,-1794],[0,0,0,3,-1749],[0,1,-1,1,-1565],[1,0,0,1,-1491],[0,1,1,1,-1475],[0,1,1,-1,-1410],[0,1,0,-1,-1344],[1,0,0,-1,-1335],[0,0,3,1,1107],[4,0,0,-1,1021],[4,0,-1,1,833],[0,0,1,-3,777],[4,0,-2,1,671],[2,0,0,-3,607],[2,0,2,-1,596],[2,-1,1,-1,491],[2,0,-2,1,-451],[0,0,3,-1,439],[2,0,2,1,422],[2,0,-3,-1,421],[2,1,-1,1,-366],[2,1,0,1,-351],[4,0,0,1,331],[2,-1,1,1,315],[2,-2,0,-1,302],[0,0,1,3,-283],[2,1,1,-1,-229],[1,1,0,-1,223],[1,1,0,1,223],[0,1,-2,-1,-220],[2,1,-1,-1,-220],[1,0,1,1,-185],[2,-1,-2,-1,181],[0,1,2,1,-177],[4,0,-2,-1,176],[4,-1,-1,-1,166],[1,0,1,-1,-164],[4,0,1,-1,132],[1,0,-1,-1,-119],[4,-1,0,-1,115],[2,-2,0,1,107]];var c=Math.PI/180,M=180/Math.PI;function I(t,n=0){let e=10**n;return Math.round(t*e)/e}function A(t,n){let e=t.toString();for(;e.length<n;)e=`0${e}`;return e}function m(t,n=360){let e=t%n;return e<0&&(e=e+n),e}function G(t){return t/3600}var H=.996647189335,ut=1-H,Dn=1.002738*15,s0=[[0,0,0,0,1,-171996,-174.2,92025,8.9],[0,0,2,-2,2,-13187,-1.6,5736,-3.1],[0,0,2,0,2,-2274,-.2,977,-.5],[0,0,0,0,2,2062,.2,-895,.5],[0,1,0,0,0,1426,-3.4,54,-.1],[1,0,0,0,0,712,.1,-7,0],[0,1,2,-2,2,-517,1.2,224,-.6],[0,0,2,0,1,-386,-.4,200,0],[1,0,2,0,2,-301,0,129,-.1],[0,-1,2,-2,2,217,-.5,-95,.3],[1,0,0,-2,0,-158,0,-1,0],[0,0,2,-2,1,129,.1,-70,0],[-1,0,2,0,2,123,0,-53,0],[0,0,0,2,0,63,0,-2,0],[1,0,0,0,1,63,.1,-33,0],[-1,0,2,2,2,-59,0,26,0],[-1,0,0,0,1,-58,-.1,32,0],[1,0,2,0,1,-51,0,27,0],[2,0,0,-2,0,48,0,1,0],[-2,0,2,0,1,46,0,-24,0],[0,0,2,2,2,-38,0,16,0],[2,0,2,0,2,-31,0,13,0],[2,0,0,0,0,29,0,-1,0],[1,0,2,-2,2,29,0,-12,0],[0,0,2,0,0,26,0,-1,0],[0,0,2,-2,0,-22,0,0,0],[-1,0,2,0,1,21,0,-10,0],[0,2,0,0,0,17,-.1,0,0],[0,2,2,-2,2,-16,.1,7,0],[-1,0,0,2,1,16,0,-8,0],[0,1,0,0,1,-15,0,9,0],[1,0,0,-2,1,-13,0,7,0],[0,-1,0,0,1,-12,0,6,0],[2,0,-2,0,0,11,0,0,0],[-1,0,2,2,1,-10,0,5,0],[1,0,2,2,2,-8,0,3,0],[1,1,0,-2,0,-7,0,0,0],[0,1,2,0,2,7,0,-3,0],[0,-1,2,0,2,-7,0,3,0],[0,0,2,2,1,-7,0,3,0],[-2,0,0,2,1,-6,0,3,0],[1,0,0,2,0,6,0,0,0],[2,0,2,-2,2,6,0,-3,0],[0,0,0,2,1,-6,0,3,0],[1,0,2,-2,1,6,0,-3,0],[0,-1,2,-2,1,-5,0,3,0],[0,0,0,-2,1,-5,0,3,0],[1,-1,0,0,0,5,0,0,0],[2,0,2,0,1,-5,0,3,0],[2,0,0,-2,1,4,0,-2,0],[0,1,2,-2,1,4,0,-2,0],[1,0,0,-1,0,-4,0,0,0],[0,1,0,-2,0,-4,0,0,0],[1,0,-2,0,0,4,0,0,0],[0,0,0,1,0,-4,0,0,0],[-2,0,2,0,2,-3,0,1,0],[1,-1,0,-1,0,-3,0,0,0],[1,1,0,0,0,-3,0,0,0],[1,0,2,0,0,3,0,0,0],[1,-1,2,0,2,-3,0,1,0],[-1,-1,2,2,2,-3,0,1,0],[3,0,2,0,2,-3,0,1,0],[0,-1,2,2,2,-3,0,1,0],[0,-2,2,-2,1,-2,0,1,0],[-2,0,0,0,1,-2,0,1,0],[1,1,2,0,2,2,0,-1,0],[-1,0,2,-2,1,-2,0,1,0],[2,0,0,0,1,2,0,-1,0],[1,0,0,0,2,-2,0,1,0],[3,0,0,0,0,2,0,0,0],[0,0,2,1,2,2,0,-1,0],[-1,0,2,4,2,-2,0,1,0],[2,0,-2,0,1,1,0,0,0],[2,1,0,-2,0,1,0,0,0],[0,0,-2,2,1,1,0,0,0],[0,1,-2,2,0,-1,0,0,0],[0,1,0,0,2,1,0,0,0],[-1,0,0,1,1,1,0,0,0],[0,1,2,-2,0,-1,0,0,0],[-1,0,0,0,2,1,0,-1,0],[1,0,0,-4,0,-1,0,0,0],[-2,0,2,2,2,1,0,-1,0],[2,0,0,-4,0,-1,0,0,0],[1,1,2,-2,2,1,0,-1,0],[1,0,2,2,1,-1,0,1,0],[-2,0,2,4,2,-1,0,1,0],[-1,0,4,0,2,1,0,0,0],[1,-1,0,-2,0,1,0,0,0],[2,0,2,-2,1,1,0,-1,0],[2,0,2,2,2,-1,0,0,0],[1,0,0,2,1,-1,0,0,0],[0,0,4,-2,2,1,0,0,0],[3,0,2,-2,2,1,0,0,0],[1,0,2,-2,0,-1,0,0,0],[0,1,2,0,1,1,0,0,0],[-1,-1,0,2,1,1,0,0,0],[0,0,-2,0,1,-1,0,0,0],[0,0,2,-1,2,-1,0,0,0],[0,1,0,2,0,-1,0,0,0],[1,0,-2,-2,0,-1,0,0,0],[0,-1,2,0,1,-1,0,0,0],[1,1,0,-2,1,-1,0,0,0],[1,0,-2,2,0,-1,0,0,0],[2,0,0,2,0,1,0,0,0],[0,0,2,4,2,-1,0,0,0],[0,1,0,1,0,1,0,0,0]];var P0=299792.458;function O(t){return t*(149597870700/1e3)}function G0(t){return t/(149597870700/1e3)}function C(t){let n=357.5291092+35999.0502909*t-1536e-7*t**2+t**3/2449e3;return m(n)}function lt(t){let n=t/10,e=280.4664567+360007.6982779*n+.03042028*n**2+n**3/49931-n**4/15300+n**5/2e6;return m(e)}function H0(t){let n=lt(t),e=pt(t);return n+e}function pt(t){let n=C(t),e=(1.914602-.004817*t-14e-6*t**2)*Math.sin(n*c);return e+=(.019993-101e-6*t)*Math.sin(2*n*c),e+=289e-6*Math.sin(3*n*c),e}function _(t){let n=297.8501921+445267.1114034*t-.0018819*t**2+t**3/545868-t**4/113065e3;return m(n)}function L(t){let n=134.9633964+477198.8675055*t+.0087414*t**2+t**3/69699-t**4/1471200;return m(n)}function T(t){let n=93.272095+483202.0175233*t-.0036539*t**2-t**3/352600+t**4/86331e3;return m(n)}function p0(t){let n=218.3164477+481267.88123421*t-.0015786*t**2+t**3/538841-t**4/65194e3;return m(n)}function N0(t){let n=p0(t),e=gt(t);return n+e/1e6}function q0(t){return dt(t)/1e6}function J0(t){return G0(mt(t))}function mt(t){return 385000.56+ht(t)/1e3}function ht(t){let n=_(t),e=C(t),o=L(t),r=T(t),s=1-.002516*t-74e-7*t**2,l=0;return c0.forEach(i=>{let a=i[0],u=i[1],p=i[2],d=i[3],g=i[5],h=Math.cos((a*n+u*e+p*o+d*r)*c);switch(u){case 1:case-1:h=h*g*s;break;case 2:case-2:h=h*g*s*s;break;default:h=h*g;break}l+=h}),l}function gt(t){let n=p0(t),e=_(t),o=C(t),r=L(t),s=T(t),l=119.75+131.849*t,i=53.09+479264.29*t,a=1-.002516*t-74e-7*t**2,u=3958*Math.sin(l*c)+1962*Math.sin((n-s)*c)+318*Math.sin(i*c);return c0.forEach(p=>{let d=p[0],g=p[1],h=p[2],E=p[3],f=p[4],b=Math.sin((d*e+g*o+h*r+E*s)*c);switch(g){case 1:case-1:b=b*f*a;break;case 2:case-2:b=b*f*a*a;break;default:b=b*f;break}u+=b}),u}function dt(t){let n=p0(t),e=_(t),o=C(t),r=L(t),s=T(t),l=119.75+131.849*t,i=313.45+481266.484*t,a=1-.002516*t-74e-7*t**2,u=-2235*Math.sin(n*c)+382*Math.sin(i*c)+175*Math.sin((l-s)*c)+175*Math.sin((l+s)*c)+127*Math.sin((n-r)*c)-115*Math.sin((n+r)*c);return V0.forEach(p=>{let d=p[0],g=p[1],h=p[2],E=p[3],f=p[4],b=Math.sin((d*e+g*o+h*r+E*s)*c);switch(g){case 1:case-1:b=b*f*a;break;case 2:case-2:b=b*f*a**2;break;default:b=b*f;break}u+=b}),u}function U0(t){return .016708634-42037e-9*t-1267e-10*t**2}function j0(t){return 102.93735+1.71946*t+46e-5*t**2}function m0(t){let n=t/100;return(84381.448-4680.93*n-1.55*n**2+1999.25*n**3-51.38*n**4-249.67*n**5-39.05*n**6+7.12*n**7+27.87*n**8+5.79*n**9+2.45*n**10)/3600}function V(t){let n=m0(t),e=h0(t);return n+e}function D(t){let n=_(t),e=C(t),o=L(t),r=T(t),s=125.04452-1934.136261*t+.0020708*t**2+t**3/45e4,l=0;return s0.forEach(i=>{let a=i[0],u=i[1],p=i[2],d=i[3],g=i[4],h=i[5],E=i[6],f=d*n+u*e+a*o+p*r+g*s;l+=Math.sin(f*c)*(h+E*t)}),l*1e-4/3600}function h0(t){let n=_(t),e=C(t),o=L(t),r=T(t),s=125.04452-1934.136261*t+.0020708*t**2+t**3/45e4,l=0;return s0.forEach(i=>{let a=i[0],u=i[1],p=i[2],d=i[3],g=i[4],h=i[7],E=i[8],f=d*n+u*e+a*o+p*r+g*s;l+=Math.cos(f*c)*(h+E*t)}),l*1e-4/3600}function B(t,n){let e=D(n);return{lon:t.lon+e,lat:t.lat,radiusVector:t.radiusVector}}function w0(t,n){let e=H0(n),o=U0(n),r=j0(n),s=G(20.49552),l=t.lon*c,i=t.lat*c,a=e*c,u=r*c,p=(-1*s*Math.cos(a-l)+o*s*Math.cos(u-l))/Math.cos(i),d=-1*s*Math.sin(i)*(Math.sin(a-l)-o*Math.sin(u-l));return{lon:t.lon+p,lat:t.lat+d,radiusVector:t.radiusVector}}function z0(t){if(t<-5)return t;let n=1.02/Math.tan((t+10.3/(t+5.11))*c);return t+n/60}function g0(t){let n=parseFloat(`${t.year}.${Y(t)}`),e,o;t.month>2?(e=t.year,o=t.month):(e=t.year-1,o=t.month+12);let r=t.day,s=t.hour/24+t.min/1440+t.sec/86400,l,i;if(n>=1582.288)l=Math.floor(e/100),i=2-l+Math.floor(l/4);else if(n<=1582.277)i=0;else throw new Error("Date between 1582-10-04 and 1582-10-15 is not defined.");return Math.floor(365.25*(e+4716))+Math.floor(30.6001*(o+1))+r+s+i-1524.5}function d0(t){t=t+.5;let n=Math.floor(t),e=t-n,o=n;if(n>=2299161){let E=Math.floor((n-186721625e-2)/36524.25);o=n+1+E-Math.floor(E/4)}let r=o+1524,s=Math.floor((r-122.1)/365.25),l=Math.floor(365.25*s),i=Math.floor((r-l)/30.6001),a=r-l-Math.floor(30.6001*i)+e,u=i<14?i-1:i-13,p=u>2?s-4716:s-4715,d=(a-Math.floor(a))*24,g=(d-Math.floor(d))*60,h=(g-Math.floor(g))*60;return{year:Math.floor(p),month:Math.floor(u),day:Math.floor(a),hour:Math.floor(d),min:Math.floor(g),sec:Math.floor(h)}}function B0(t){return Math.floor(t+.5)-.5}function M0(t){return(t-2451545)/36525}function q(t){return t*36525+2451545}function Y0(t){return M0(t)/10}function $0(t,n){let e=J(t)?1:2,o=n<32?1:Math.floor(9*(e+n)/275+.98),r=Math.floor(n-Math.floor(275*o/9)+e*Math.floor((o+9)/12)+30),s=24*(n-Math.floor(n)),l=Math.floor(s),i=60*(s-l),a=Math.floor(i),u=I(60*(i-a));return{year:t,month:o,day:r,hour:l,min:a,sec:u}}function v0(t){let n=J(t.year)?366:365,e=Y(t)-1+t.hour/24+t.min/1440+t.sec/86400;return t.year+e/n}function Y(t){let n=J(t.year)?1:2,e=t.month,o=t.day;return Math.floor(275*e/9)-n*Math.floor((e+9)/12)+o-30}function W0(t){let n=g0(t);return Math.floor((n+1.5)%7)}function J(t){return t/4!==Math.floor(t/4)?!1:t/100!==Math.floor(t/100)?!0:t/400===Math.floor(t/400)}function $(t){let e=280.46061837+360.98564736629*(q(t)-2451545)+387933e-9*t**2+t**3/3871e4;return m(e)}function b0(t){let n=$(t),e=D(t),r=V(t)*c;return n+e*Math.cos(r)}function Q0(t,n){let o=$(t)+n;return m(o)}function F(t,n){return b0(t)+n}function f0(t,n,e){let o=F(t,n);return m(o-e)}function K0(t){let{x:n,y:e,z:o}=t,r=Math.atan2(e,n),s=m(r*M),i=Math.atan(o/Math.sqrt(n**2+e**2))*M,a=Math.sqrt(n**2+e**2+o**2);return{lon:s,lat:i,radiusVector:a}}function S(t){let{lon:n,lat:e,radiusVector:o}=t,r=n*c,s=e*c,l=o*Math.cos(s)*Math.cos(r),i=o*Math.cos(s)*Math.sin(r),a=o*Math.sin(s);return{x:l,y:i,z:a}}function E0(t,n,e){let{rightAscension:o,declination:r,radiusVector:s}=t,{lat:l,lon:i,elevation:a}=n,u=r*c;a=a||0;let p=Et(l,a),d=St(l,a),h=ft(s)*c,E=F(e,i),b=f0(e,i,o)*c,e0=Math.cos(u)*Math.sin(b),o0=Math.cos(u)*Math.cos(b)-d*Math.sin(h),r0=Math.sin(u)-p*Math.sin(h),T0=Math.sqrt(e0*e0+o0*o0+r0*r0),et=Math.atan2(e0,o0)*M,ot=Math.asin(r0/T0);return{rightAscension:m(E-et),declination:ot*M,radiusVector:T0*s}}function X0(t,n,e){let{rightAscension:o,declination:r}=t,{lat:s,lon:l}=n,i=E0(t,n,e),a=f0(e,l,o);return bt(a,r,s,i.radiusVector)}function bt(t,n,e,o=0){let r=t*c,s=n*c,l=e*c,i=Math.atan2(Math.sin(r),Math.cos(r)*Math.sin(l)-Math.tan(s)*Math.cos(l)),a=Math.asin(Math.sin(l)*Math.sin(s)+Math.cos(l)*Math.cos(s)*Math.cos(r));return{azimuth:m(i*M+180),altitude:a*M,radiusVector:o}}function v(t,n,e=!0){let{lon:o,lat:r,radiusVector:s}=t,i=V(n)*c,a=o*c,u=r*c,p=Math.sin(a)*Math.cos(i)-Math.sin(u)/Math.cos(u)*Math.sin(i),d=Math.cos(a),g=Math.atan2(p,d),h=e?m(g*M):g*M,f=Math.asin(Math.sin(u)*Math.cos(i)+Math.cos(u)*Math.sin(i)*Math.sin(a))*M;return{rightAscension:h,declination:f,radiusVector:s}}function Z0(t,n){return{x:t.x+n.x,y:t.y+n.y,z:t.z+n.z}}function S0(t){let{lon:n,lat:e,radiusVector:o}=t;return{lon:m(n+180),lat:-1*e,radiusVector:o}}function ft(t){let n=G(8.794)*c;return Math.asin(Math.sin(n)/t)*M}function Et(t,n){let e=t*c,o=Math.atan(H*Math.tan(e));return H*Math.sin(o)+n/6378137*Math.sin(e)}function St(t,n){let e=t*c,o=Math.atan(H*Math.tan(e));return Math.cos(o)+n/6378137*Math.cos(e)}function W(t,n){let e=t.rightAscension*c,o=t.declination*c,r=n.rightAscension*c,s=n.declination*c;return Math.acos(Math.sin(s)*Math.sin(o)+Math.cos(s)*Math.cos(o)*Math.cos(r-e))*M}function R0(t,n){let e=t.radiusVector,o=n.radiusVector,s=W(t,n)*c;return Math.atan2(o*Math.sin(s),e-o*Math.cos(s))*M}function C0(t){let n=t*c;return(1+Math.cos(n))/2}function A0(t,n){let e=t.rightAscension*c,o=t.declination*c,r=n.rightAscension*c,s=n.declination*c,l=Math.cos(s)*Math.sin(r-e),i=Math.sin(s)*Math.cos(o)-Math.cos(s)*Math.sin(o)*Math.cos(r-e),a=Math.atan2(l,i);return m(a*M)}function O0(t){return t>=180}function P(t,n){return 2*Math.atan2(n,2*t)*M}function k0(t,n=0){let e=t+(n-.5)/12,o,r=0;return t<-500&&(o=(e-1820)/100,r=-20+32*o**2),t>=-500&&t<500&&(o=e/100,r=10583.6-1014.41*o+33.78311*o**2-5.952053*o**3-.1798452*o**4+.022174192*o**5+.0090316521*o**6),t>=500&&t<1600&&(o=(e-1e3)/100,r=1574.2-556.01*o+71.23472*o**2+.319781*o**3-.8503463*o**4-.005050998*o**5+.0083572073*o**6),t>=1600&&t<1700&&(o=e-1600,r=120-.9808*o-.01532*o**2+o**3/7129),t>=1700&&t<1800&&(o=e-1700,r=8.83+.1603*o-.0059285*o**2+13336e-8*o**3-o**4/1174e3),t>=1800&&t<1860&&(o=e-1800,r=13.72-.332447*o+.0068612*o**2+.0041116*o**3-37436e-8*o**4+121272e-10*o**5-1699e-10*o**6+875e-12*o**7),t>=1860&&t<1900&&(o=e-1860,r=7.62+.5737*o-.251754*o**2+.01680668*o**3-.0004473624*o**4+o**5/233174),t>=1900&&t<1920&&(o=e-1900,r=-2.79+1.494119*o-.0598939*o**2+.0061966*o**3-197e-6*o**4),t>=1920&&t<1941&&(o=e-1920,r=21.2+.84493*o-.0761*o**2+.0020936*o**3),t>=1941&&t<1961&&(o=e-1950,r=29.07+.407*o-o**2/233+o**3/2547),t>=1961&&t<1986&&(o=e-1975,r=45.45+1.067*o-o**2/260-o**3/718),t>=1986&&t<2005&&(o=e-2e3,r=63.86+.3345*o-.060374*o**2+.0017275*o**3+651814e-9*o**4+2373599e-11*o**5),t>=2005&&t<2050&&(o=e-2e3,r=62.92+.32217*o+.005589*o**2),t>=2050&&(o=(e-1820)/100,r=-20+32*o**2),r}var x=class t{constructor(n){this.time=n;this.jd=0;this.T=0;this.jd=g0(n),this.T=M0(this.jd)}static fromCurrentTime(){let n=new Date(Date.now());return new t({year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),min:n.getUTCMinutes(),sec:n.getUTCSeconds()})}static fromTime(n,e,o,r=0,s=0,l=0){return new t({year:n,month:e,day:o,hour:r,min:s,sec:l})}static fromDate(n){return new t({year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),min:n.getUTCMinutes(),sec:n.getUTCSeconds()})}static fromYearOfDay(n,e){let o=$0(n,e);return new t(o)}static fromJulianDay(n){let e=d0(n);return new t(e)}static fromJulianCenturiesJ2000(n){let e=q(n),o=d0(e);return new t(o)}getTime(){return this.time}getString(){let{year:n,month:e,day:o,hour:r,min:s,sec:l}=this.time;return`${n}-${A(e,2)}-${A(o,2)} ${A(r,2)}:${A(s,2)}:${A(l,2)}`}getDate(){let{year:n,month:e,day:o,hour:r,min:s,sec:l}=this.time;return new Date(Date.UTC(n,e-1,o,r,s,l))}getDecimalYear(){return v0(this.time)}getDayOfYear(){return Y(this.time)}getDayOfWeek(){return W0(this.time)}isLeapYear(){return J(this.time.year)}getJulianDay(){return this.jd}getJulianDay0(){return B0(this.jd)}getJulianCenturiesJ2000(){return this.T}getJulianMillenniaJ2000(){return Y0(this.jd)}getGreenwichMeanSiderealTime(){return $(this.T)}getGreenwichApparentSiderealTime(){return b0(this.T)}getLocalMeanSiderealTime(n){return Q0(this.T,n.lon)}getLocalApparentSiderealTime(n){return F(this.T,n.lon)}getDeltaT(){let{year:n,month:e}=this.time;return k0(n,e)}};var R=class{constructor(n=x.fromCurrentTime(),e="astronomical object"){this.toi=n;this.name=e;this.jd=0;this.jd0=0;this.T=0;this.t=0;this.jd=n.getJulianDay(),this.jd0=n.getJulianDay0(),this.T=n.getJulianCenturiesJ2000(),this.t=n.getJulianMillenniaJ2000()}getTimeOfInterest(){return this.toi}getGeocentricEquatorialSphericalJ2000Coordinates(){let n=this.getGeocentricEclipticSphericalJ2000Coordinates();return v(n,this.T)}getGeocentricEquatorialSphericalDateCoordinates(){let n=this.getGeocentricEclipticSphericalDateCoordinates();return v(n,this.T)}getApparentGeocentricEclipticRectangularCoordinates(){let n=this.getApparentGeocentricEclipticSphericalCoordinates();return S(n)}getApparentGeocentricEquatorialSphericalCoordinates(){let n=this.getApparentGeocentricEclipticSphericalCoordinates();return v(n,this.T)}getTopocentricEquatorialSphericalCoordinates(n){let e=this.getApparentGeocentricEquatorialSphericalCoordinates();return E0(e,n,this.T)}getTopocentricHorizontalCoordinates(n){let e=this.getApparentGeocentricEquatorialSphericalCoordinates();return X0(e,n,this.T)}getApparentTopocentricHorizontalCoordinates(n){let{azimuth:e,altitude:o,radiusVector:r}=this.getTopocentricHorizontalCoordinates(n);return{azimuth:e,altitude:z0(o),radiusVector:r}}getDistanceToEarth(){let n=this.getGeocentricEclipticSphericalDateCoordinates();return O(n.radiusVector)}getApparentDistanceToEarth(){let n=this.getApparentGeocentricEclipticSphericalCoordinates();return O(n.radiusVector)}getTopocentricDistanceToEarth(n){let e=this.getTopocentricEquatorialSphericalCoordinates(n);return O(e.radiusVector)}getLightTime(){let{radiusVector:n}=this.getGeocentricEclipticSphericalDateCoordinates();return O(n)/P0}};var D0={};a0(D0,{VSOP87_X:()=>Ft,VSOP87_Y:()=>Ut,VSOP87_Z:()=>jt});var Rt=[[1.75347045673],[.03341656456,4.66925680417,6283.0758499914],[.00034894275,4.62610241759,12566.1516999828],[3497056e-11,2.74411800971,5753.3848848968],[3417571e-11,2.82886579606,3.523118349],[3135896e-11,3.62767041758,77713.7714681205],[2676218e-11,4.41808351397,7860.4193924392],[2342687e-11,6.13516237631,3930.2096962196],[1324292e-11,.74246356352,11506.7697697936],[1273166e-11,2.03709655772,529.6909650946],[1199167e-11,1.10962944315,1577.3435424478],[99025e-10,5.23268129594,5884.9268465832],[901855e-11,2.04505443513,26.2983197998],[857223e-11,3.50849156957,398.1490034082],[779786e-11,1.17882652114,5223.6939198022],[753141e-11,2.53339053818,5507.5532386674],[505264e-11,4.58292563052,18849.2275499742],[492379e-11,4.20506639861,775.522611324],[356655e-11,2.91954116867,.0673103028],[317087e-11,5.84901952218,11790.6290886588],[284125e-11,1.89869034186,796.2980068164],[271039e-11,.31488607649,10977.078804699],[24281e-10,.34481140906,5486.777843175],[20616e-10,4.80646606059,2544.3144198834],[205385e-11,1.86947813692,5573.1428014331],[202261e-11,2.45767795458,6069.7767545534],[155516e-11,.83306073807,213.299095438],[132212e-11,3.41118275555,2942.4634232916],[126184e-11,1.0830263021,20.7753954924],[115132e-11,.64544911683,.9803210682],[102851e-11,.63599846727,4694.0029547076],[101895e-11,.97569221824,15720.8387848784],[101724e-11,4.26679821365,7.1135470008],[99206e-11,6.20992940258,2146.1654164752],[97607e-11,.6810127227,155.4203994342],[85803e-11,5.98322631256,161000.6857376741],[85128e-11,1.29870743025,6275.9623029906],[84711e-11,3.67080093025,71430.69561812909],[79637e-11,1.807913307,17260.1546546904],[78756e-11,3.03698313141,12036.4607348882],[74651e-11,1.75508916159,5088.6288397668],[73874e-11,3.50319443167,3154.6870848956],[73547e-11,4.67926565481,801.8209311238],[69627e-11,.83297596966,9437.762934887],[62449e-11,3.97763880587,8827.3902698748],[61148e-11,1.81839811024,7084.8967811152],[56963e-11,2.78430398043,6286.5989683404],[56116e-11,4.38694880779,14143.4952424306],[55577e-11,3.47006009062,6279.5527316424],[51992e-11,.18914945834,12139.5535091068],[51605e-11,1.33282746983,1748.016413067],[51145e-11,.28306864501,5856.4776591154],[49e-8,.48735065033,1194.4470102246],[41036e-11,5.36817351402,8429.2412664666],[40938e-11,2.39850881707,19651.048481098],[392e-9,6.16832995016,10447.3878396044],[3677e-10,6.04133859347,10213.285546211],[36596e-11,2.56955238628,1059.3819301892],[35954e-11,1.70876111898,2352.8661537718],[35566e-11,1.77597314691,6812.766815086],[33291e-11,.59309499459,17789.845619785],[30412e-11,.44294464135,83996.84731811189],[30047e-11,2.73975123935,1349.8674096588],[25352e-11,3.16470953405,4690.4798363586]],Ct=[[6283.31966747491],[.00206058863,2.67823455584,6283.0758499914],[430343e-10,2.63512650414,12566.1516999828],[425264e-11,1.59046980729,3.523118349],[119261e-11,5.79557487799,26.2983197998],[108977e-11,2.96618001993,1577.3435424478],[93478e-11,2.59212835365,18849.2275499742],[72122e-11,1.13846158196,529.6909650946],[67768e-11,1.87472304791,398.1490034082],[67327e-11,4.40918235168,5507.5532386674],[59027e-11,2.8879703846,5223.6939198022],[55976e-11,2.17471680261,155.4203994342],[45407e-11,.39803079805,796.2980068164],[36369e-11,.46624739835,775.522611324],[28958e-11,2.64707383882,7.1135470008],[20844e-11,5.34138275149,.9803210682],[19097e-11,1.84628332577,5486.777843175],[18508e-11,4.96855124577,213.299095438],[17293e-11,2.99116864949,6275.9623029906],[16233e-11,.03216483047,2544.3144198834],[15832e-11,1.43049285325,2146.1654164752],[14615e-11,1.20532366323,10977.078804699],[12461e-11,2.83432285512,1748.016413067],[11877e-11,3.25804815607,5088.6288397668],[11808e-11,5.2737979048,1194.4470102246],[11514e-11,2.07502418155,4694.0029547076],[10641e-11,.76614199202,553.5694028424],[9969e-11,1.30262991097,6286.5989683404],[9721e-11,4.23925472239,1349.8674096588],[9452e-11,2.69957062864,242.728603974],[8577e-11,5.64475868067,951.7184062506],[7576e-11,5.30062664886,2352.8661537718],[6385e-11,2.65033984967,9437.762934887],[6101e-11,4.66632584188,4690.4798363586]],At=[[.0005291887],[8719837e-11,1.07209665242,6283.0758499914],[309125e-11,.86728818832,12566.1516999828],[27339e-11,.05297871691,3.523118349],[16334e-11,5.18826691036,26.2983197998],[15752e-11,3.6845788943,155.4203994342],[9541e-11,.75742297675,18849.2275499742],[8937e-11,2.05705419118,77713.7714681205],[6952e-11,.8267330541,775.522611324],[5064e-11,4.66284525271,1577.3435424478],[4061e-11,1.03057162962,7.1135470008],[381e-10,3.4405080349,5573.1428014331],[3463e-11,5.14074632811,796.2980068164],[3169e-11,6.05291851171,5507.5532386674],[302e-10,1.19246506441,242.728603974],[2886e-11,6.11652627155,529.6909650946],[2714e-11,.30637881025,398.1490034082],[2538e-11,2.27992810679,553.5694028424],[2371e-11,4.38118838167,5223.6939198022],[2079e-11,3.75435330484,.9803210682]],Ot=[[289226e-11,5.84384198723,6283.0758499914],[34955e-11],[16819e-11,5.48766912348,12566.1516999828],[2962e-11,5.19577265202,155.4203994342],[1288e-11,4.72200252235,3.523118349],[714e-11,5.30045809128,18849.2275499742],[635e-11,5.96925937141,242.728603974]],Dt=[[7717e-11,4.13446589358,6283.0758499914],[765e-11,3.83803776214,12566.1516999828],[42e-10,.41925861858,155.4203994342]],xt=[[172e-11,2.7657906951,6283.0758499914]],yt=[[27962e-10,3.19870156017,84334.66158130829],[101643e-11,5.42248619256,5507.5532386674],[80445e-11,3.88013204458,5223.6939198022],[43806e-11,3.70444689758,2352.8661537718],[31933e-11,4.00026369781,1577.3435424478]],_t=[[903e-10,3.8972906189,5507.5532386674],[6177e-11,1.73038850355,5223.6939198022]],Lt=[],Tt=[],Vt=[],Pt=[],It=[[1.00013988799],[.01670699626,3.09846350771,6283.0758499914],[.00013956023,3.0552460962,12566.1516999828],[308372e-10,5.19846674381,77713.7714681205],[1628461e-11,1.17387749012,5753.3848848968],[1575568e-11,2.84685245825,7860.4193924392],[924799e-11,5.45292234084,11506.7697697936],[542444e-11,4.56409149777,3930.2096962196],[47211e-10,3.66100022149,5884.9268465832],[345983e-11,.96368617687,5507.5532386674],[32878e-10,5.89983646482,5223.6939198022],[306784e-11,.29867139512,5573.1428014331],[243189e-11,4.27349536153,11790.6290886588],[211829e-11,5.84714540314,1577.3435424478],[185752e-11,5.02194447178,10977.078804699],[174844e-11,3.01193636534,18849.2275499742],[109835e-11,5.05510636285,5486.777843175],[98316e-11,.88681311277,6069.7767545534],[86499e-11,5.68959778254,15720.8387848784],[85825e-11,1.27083733351,161000.6857376741],[64903e-11,.27250613787,17260.1546546904],[62916e-11,.92177108832,529.6909650946],[57056e-11,2.01374292014,83996.84731811189],[55736e-11,5.24159798933,71430.69561812909],[49384e-11,3.24501240359,2544.3144198834],[46963e-11,2.57805070386,775.522611324],[44661e-11,5.53715807302,9437.762934887],[42515e-11,6.01110242003,6275.9623029906],[38968e-11,5.36071738169,4694.0029547076],[38245e-11,2.39255343974,8827.3902698748],[3749e-10,.82952922332,19651.048481098],[36957e-11,4.90107591914,12139.5535091068],[3566e-10,1.67468058995,12036.4607348882],[34537e-11,1.84270693282,2942.4634232916],[33193e-11,.24370300098,7084.8967811152],[31921e-11,.18368229781,5088.6288397668],[31846e-11,1.77775642085,398.1490034082],[28464e-11,1.21344868176,6286.5989683404],[27793e-11,1.89934330904,6279.5527316424],[26275e-11,4.58896850401,10447.3878396044]],Gt=[[.00103018608,1.10748969588,6283.0758499914],[1721238e-11,1.06442301418,12566.1516999828],[32346e-11,1.02169059149,18849.2275499742],[30799e-11,2.84353804832,5507.5532386674],[24971e-11,1.31906709482,5223.6939198022],[18485e-11,1.42429748614,1577.3435424478],[10078e-11,5.91378194648,10977.078804699],[8654e-11,1.42046854427,6275.9623029906],[8634e-11,.27146150602,5486.777843175],[5069e-11,1.68613426734,5088.6288397668]],Ht=[[4359385e-11,5.78455133738,6283.0758499914],[123633e-11,5.57934722157,12566.1516999828],[8792e-11,3.62777733395,77713.7714681205],[5689e-11,1.86958905084,5573.1428014331],[3301e-11,5.47027913302,18849.2275499742],[1471e-11,4.48028885617,5507.5532386674]],Nt=[[144595e-11,4.27319435148,6283.0758499914],[6729e-11,3.91697608662,12566.1516999828]],qt=[[3858e-11,2.56384387339,6283.0758499914]],Jt=[],Ft=[Rt,Ct,At,Ot,Dt,xt],Ut=[yt,_t,Lt,Tt,Vt,Pt],jt=[It,Gt,Ht,Nt,qt,Jt];var x0={};a0(x0,{VSOP87_X:()=>cn,VSOP87_Y:()=>sn,VSOP87_Z:()=>un});var wt=[[1.75347045673],[.03341656453,4.66925680415,6283.0758499914],[.00034894275,4.62610242189,12566.1516999828],[3497056e-11,2.74411783405,5753.3848848968],[3417572e-11,2.82886579754,3.523118349],[3135899e-11,3.62767041756,77713.7714681205],[2676218e-11,4.41808345438,7860.4193924392],[2342691e-11,6.13516214446,3930.2096962196],[1324294e-11,.74246341673,11506.7697697936],[1273165e-11,2.03709657878,529.6909650946],[1199167e-11,1.10962946234,1577.3435424478],[99025e-10,5.23268072088,5884.9268465832],[901854e-11,2.04505446477,26.2983197998],[857223e-11,3.50849152283,398.1490034082],[779786e-11,1.17882681962,5223.6939198022],[753141e-11,2.53339052847,5507.5532386674],[505267e-11,4.58292599973,18849.2275499742],[492392e-11,4.20505711826,775.522611324],[356672e-11,2.91954114478,.0673103028],[317087e-11,5.84901948512,11790.6290886588],[284125e-11,1.89869240932,796.2980068164],[271112e-11,.31486255375,10977.078804699],[242879e-11,.34481445893,5486.777843175],[206217e-11,4.80646631478,2544.3144198834],[205478e-11,1.86953770281,5573.1428014331],[202318e-11,2.45767790232,6069.7767545534],[155516e-11,.83306084617,213.299095438],[132212e-11,3.41118292683,2942.4634232916],[126225e-11,1.08295459501,20.7753954924],[115132e-11,.64544911683,.9803210682],[102851e-11,.63599845579,4694.0029547076],[101895e-11,.97569280312,15720.8387848784],[101724e-11,4.2667980198,7.1135470008],[99206e-11,6.20992926918,2146.1654164752],[97607e-11,.68101342359,155.4203994342],[85803e-11,5.9832263126,161000.6857376741],[85128e-11,1.29870764804,6275.9623029906],[84711e-11,3.67080093031,71430.69561812909],[79637e-11,1.80791287082,17260.1546546904],[78757e-11,3.03697458703,12036.4607348882],[74651e-11,1.755089133,5088.6288397668],[73874e-11,3.50319414955,3154.6870848956],[73547e-11,4.67926633877,801.8209311238],[69627e-11,.83297621398,9437.762934887],[62449e-11,3.97763912806,8827.3902698748],[61148e-11,1.81839892984,7084.8967811152],[56963e-11,2.78430458592,6286.5989683404],[56116e-11,4.38694865354,14143.4952424306],[55577e-11,3.47006059924,6279.5527316424],[51992e-11,.18914947184,12139.5535091068],[51605e-11,1.33282739866,1748.016413067],[51145e-11,.28306832879,5856.4776591154],[49e-8,.48735014197,1194.4470102246],[41036e-11,5.36817592855,8429.2412664666],[40938e-11,2.39850938714,19651.048481098],[392e-9,6.16833020996,10447.3878396044],[3677e-10,6.04133863162,10213.285546211],[36596e-11,2.56957481827,1059.3819301892],[35954e-11,1.70875808777,2352.8661537718],[3557e-10,1.775968892,6812.766815086],[33296e-11,.59310278598,17789.845619785],[30412e-11,.44294464169,83996.84731811189],[30047e-11,2.73975124088,1349.8674096588],[25352e-11,3.16470891653,4690.4798363586]],zt=[[6283.0758499914],[.00206058863,2.67823455808,6283.0758499914],[4303419e-11,2.63512233481,12566.1516999828],[425264e-11,1.59046982018,3.523118349],[119305e-11,5.79555765566,26.2983197998],[109017e-11,2.96631010675,1577.3435424478],[93479e-11,2.59211109542,18849.2275499742],[72121e-11,1.13840581212,529.6909650946],[67784e-11,1.87453300345,398.1490034082],[6735e-10,4.40932832004,5507.5532386674],[59045e-11,2.88815790631,5223.6939198022],[55976e-11,2.17471740035,155.4203994342],[45411e-11,.39799502896,796.2980068164],[36298e-11,.46875437227,775.522611324],[28962e-11,2.64732254645,7.1135470008],[20844e-11,5.34138275149,.9803210682],[19097e-11,1.84628376049,5486.777843175],[18508e-11,4.96855179468,213.299095438],[17293e-11,2.9911676063,6275.9623029906],[16233e-11,.03216587315,2544.3144198834],[15832e-11,1.43049301283,2146.1654164752],[14608e-11,1.2046979369,10977.078804699],[12461e-11,2.83432282119,1748.016413067],[11877e-11,3.25805082007,5088.6288397668],[11808e-11,5.27379760438,1194.4470102246],[11514e-11,2.07502080082,4694.0029547076],[10641e-11,.76614722966,553.5694028424],[9969e-11,1.30263423409,6286.5989683404],[9721e-11,4.2392586526,1349.8674096588],[9452e-11,2.69956827011,242.728603974],[8577e-11,5.6447608598,951.7184062506],[7576e-11,5.30056172859,2352.8661537718],[6385e-11,2.65034514038,9437.762934887],[6101e-11,4.66633726278,4690.4798363586]],Bt=[[8721859e-11,1.07253635559,6283.0758499914],[294833e-11,.43717350256,12566.1516999828],[27338e-11,.05295636147,3.523118349],[16333e-11,5.18820215724,26.2983197998],[15745e-11,3.68504712183,155.4203994342],[9425e-11,.29667114694,18849.2275499742],[8938e-11,2.05706319592,77713.7714681205],[694e-10,.82691541038,775.522611324],[5061e-11,4.6624323168,1577.3435424478],[406e-10,1.03067032318,7.1135470008],[3809e-11,3.44043369494,5573.1428014331],[3464e-11,5.14021224609,796.2980068164],[3172e-11,6.05479318507,5507.5532386674],[302e-10,1.19240008524,242.728603974],[2885e-11,6.11705865396,529.6909650946],[2719e-11,.30363248164,398.1490034082],[2538e-11,2.27966434314,553.5694028424],[2365e-11,4.37666117992,5223.6939198022],[2078e-11,3.75435095487,.9803210682],[1675e-11,.90149951436,951.7184062506]],Yt=[[289058e-11,5.84173149732,6283.0758499914],[20712e-11,6.0498393902,12566.1516999828],[2962e-11,5.1956057957,155.4203994342],[1288e-11,4.7219761197,3.523118349],[635e-11,5.96904899168,242.728603974],[57e-10,5.54182903238,18849.2275499742],[402e-11,3.78606612895,553.5694028424]],$t=[[7714e-11,4.14117321449,6283.0758499914],[1016e-11,3.27573644241,12566.1516999828],[42e-10,.41892851415,155.4203994342]],vt=[[172e-11,2.74854172392,6283.0758499914]],Wt=[[27962e-10,3.19870156017,84334.66158130829],[101643e-11,5.42248619256,5507.5532386674],[80445e-11,3.88013204458,5223.6939198022],[43806e-11,3.70444689759,2352.8661537718],[31933e-11,4.00026369781,1577.3435424478]],Qt=[[.00227777722,3.4137662053,6283.0758499914],[3805678e-11,3.37063423795,12566.1516999828]],Kt=[],Xt=[],Zt=[],kt=[],tn=[[1.00013988784],[.01670699632,3.09846350258,6283.0758499914],[.00013956024,3.05524609456,12566.1516999828],[308372e-10,5.19846674381,77713.7714681205],[1628463e-11,1.17387558054,5753.3848848968],[1575572e-11,2.84685214877,7860.4193924392],[924799e-11,5.45292236722,11506.7697697936],[542439e-11,4.56409151453,3930.2096962196],[47211e-10,3.66100022149,5884.9268465832],[345969e-11,.96368627272,5507.5532386674],[32878e-10,5.89983686142,5223.6939198022],[306784e-11,.29867139512,5573.1428014331],[243181e-11,4.2734953079,11790.6290886588],[211836e-11,5.84714461348,1577.3435424478],[18574e-10,5.02199710705,10977.078804699],[174844e-11,3.01193636733,18849.2275499742],[109835e-11,5.0551063586,5486.777843175],[98316e-11,.88681311278,6069.7767545534],[865e-9,5.68956418946,15720.8387848784],[85831e-11,1.27079125277,161000.6857376741],[64908e-11,.27251341435,17260.1546546904],[62917e-11,.92177053978,529.6909650946],[57056e-11,2.01374292245,83996.84731811189],[55736e-11,5.2415979917,71430.69561812909],[49384e-11,3.24501240359,2544.3144198834],[46966e-11,2.57799853213,775.522611324],[44666e-11,5.53715663816,9437.762934887],[4252e-10,6.01110257982,6275.9623029906],[38963e-11,5.36063832897,4694.0029547076],[38245e-11,2.39255343973,8827.3902698748],[37486e-11,.82961281844,19651.048481098],[36957e-11,4.90107587287,12139.5535091068],[35661e-11,1.67447135798,12036.4607348882],[34537e-11,1.84270693281,2942.4634232916],[33193e-11,.24370221704,7084.8967811152],[31922e-11,.18368299942,5088.6288397668],[31846e-11,1.77775642078,398.1490034082],[28468e-11,1.21344887533,6286.5989683404],[27795e-11,1.89934427832,6279.5527316424],[26275e-11,4.58896863104,10447.3878396044]],nn=[[.00103018607,1.10748968172,6283.0758499914],[1721238e-11,1.06442300386,12566.1516999828],[32345e-11,1.02168583254,18849.2275499742],[30801e-11,2.84358443952,5507.5532386674],[24978e-11,1.31906570344,5223.6939198022],[18487e-11,1.42428709076,1577.3435424478],[10077e-11,5.91385248388,10977.078804699],[8654e-11,1.42046854427,6275.9623029906],[8635e-11,.27158192945,5486.777843175],[5069e-11,1.68613408916,5088.6288397668]],en=[[4359385e-11,5.78455133808,6283.0758499914],[123633e-11,5.57935427994,12566.1516999828],[8792e-11,3.62777893099,77713.7714681205],[5689e-11,1.86958905084,5573.1428014331],[3302e-11,5.47034879713,18849.2275499742],[1471e-11,4.47964125007,5507.5532386674]],on=[[144595e-11,4.27319433901,6283.0758499914],[6729e-11,3.91706261708,12566.1516999828]],rn=[[3858e-11,2.56389016346,6283.0758499914]],an=[],cn=[wt,zt,Bt,Yt,$t,vt],sn=[Wt,Qt,Kt,Xt,Zt,kt],un=[tn,nn,en,on,rn,an];function U(t,n){return Q(t,n)*M}function Q(t,n){let e=0;return t.forEach((o,r)=>{e+=ln(o,n)*n**r}),e}function ln(t,n){let e=0;return t.forEach(o=>{let r=o[0]||0,s=o[1]||0,l=o[2]||0;e+=r*Math.cos(s+l*n)}),e}var y=class t extends R{constructor(e,o=D0,r=x0){super(e,"earth");this.vsop87Date=o;this.vsop87J2000=r}static create(e){return new t(e)}getHeliocentricEclipticRectangularJ2000Coordinates(){return S(this.getHeliocentricEclipticSphericalJ2000Coordinates())}getHeliocentricEclipticRectangularDateCoordinates(){return S(this.getHeliocentricEclipticSphericalDateCoordinates())}getHeliocentricEclipticSphericalJ2000Coordinates(){return{lon:m(U(this.vsop87J2000.VSOP87_X,this.t)),lat:U(this.vsop87J2000.VSOP87_Y,this.t),radiusVector:Q(this.vsop87J2000.VSOP87_Z,this.t)}}getHeliocentricEclipticSphericalDateCoordinates(){return{lon:m(U(this.vsop87Date.VSOP87_X,this.t)),lat:U(this.vsop87Date.VSOP87_Y,this.t),radiusVector:Q(this.vsop87Date.VSOP87_Z,this.t)}}getGeocentricEclipticRectangularJ2000Coordinates(){return{x:0,y:0,z:0}}getGeocentricEclipticRectangularDateCoordinates(){return{x:0,y:0,z:0}}getGeocentricEclipticSphericalJ2000Coordinates(){return{lon:0,lat:0,radiusVector:0}}getGeocentricEclipticSphericalDateCoordinates(){return{lon:0,lat:0,radiusVector:0}}getApparentGeocentricEclipticSphericalCoordinates(){return{lon:0,lat:0,radiusVector:0}}getNutationInLongitude(){return D(this.T)}getNutationInObliquity(){return h0(this.T)}getMeanObliquityOfEcliptic(){return m0(this.T)}getTrueObliquityOfEcliptic(){return V(this.T)}};function y0(t,n,e,o){let r=o?-1*e:e,s=5*(Math.log10(t)+Math.log10(O(n)/384400));return e>=160&&(s+=-449.88+7.1112*e-.037714*e**2+66667e-9*e**3),e>=40&&e<160&&(s+=-12.07857+.002175199*r+.0002859289*r**2-2495124e-13*r**3-8699235e-15*r**4+7606291e-18*r**5+3403311e-19*r**6),r>=0&&r<40&&(s+=-12.861+.037*e-12e-5*e**2),r>-40&&r<0&&(s+=-12.85-.037*r-235e-6*r**2),s}function j(t,n){let e=I((t-2e3)*12.3685)+n,o=e/1236.85,r=bn(e,o),s=pn(e,o,n),l=dn(e,o,n),i=Mn(e,o),a=r+s+l+i;return x.fromJulianDay(a)}function pn(t,n,e){switch(e){case 0:return mn(t,n);case .5:return hn(t,n);case .25:case .75:return gn(t,n);default:throw new Error(`Invalid moon phase: ${e}`)}}function mn(t,n){let e=1-.002516*n-74e-7*n**2,o=k(t,n),r=t0(t,n),s=n0(t,n),l=L0(t,n),i=o*c,a=r*c,u=s*c,p=l*c;return-.4072*Math.sin(a)+.17241*e*Math.sin(i)+.01608*Math.sin(2*a)+.01039*Math.sin(2*u)+.00739*e*Math.sin(a-i)-.00514*e*Math.sin(a+i)+.00208*e*e*Math.sin(2*i)-.00111*Math.sin(a-2*u)-57e-5*Math.sin(a+2*u)+56e-5*e*Math.sin(2*a+i)-42e-5*Math.sin(3*a)+42e-5*e*Math.sin(i+2*u)+38e-5*e*Math.sin(i-2*u)-24e-5*e*Math.sin(2*a-i)-17e-5*Math.sin(p)-7e-5*Math.sin(a+2*i)+4e-5*Math.sin(2*a-2*u)+4e-5*Math.sin(3*i)+3e-5*Math.sin(a+i-2*u)+3e-5*Math.sin(2*a+2*u)-3e-5*Math.sin(a+i+2*u)+3e-5*Math.sin(a-i+2*u)-2e-5*Math.sin(a-i-2*u)-2e-5*Math.sin(3*a+i)+2e-5*Math.sin(4*a)}function hn(t,n){let e=1-.002516*n-74e-7*n**2,o=k(t,n),r=t0(t,n),s=n0(t,n),l=L0(t,n),i=o*c,a=r*c,u=s*c,p=l*c;return-.40614*Math.sin(a)+.17302*e*Math.sin(i)+.01614*Math.sin(2*a)+.01043*Math.sin(2*u)+.00734*e*Math.sin(a-i)-.00515*e*Math.sin(a+i)+.00209*e*e*Math.sin(2*i)-.00111*Math.sin(a-2*u)-57e-5*Math.sin(a+2*u)+56e-5*e*Math.sin(2*a+i)-42e-5*Math.sin(3*a)+42e-5*e*Math.sin(i+2*u)+38e-5*e*Math.sin(i-2*u)-24e-5*e*Math.sin(2*a-i)-17e-5*Math.sin(p)-7e-5*Math.sin(a+2*i)+4e-5*Math.sin(2*a-2*u)+4e-5*Math.sin(3*i)+3e-5*Math.sin(a+i-2*u)+3e-5*Math.sin(2*a+2*u)-3e-5*Math.sin(a+i+2*u)+3e-5*Math.sin(a-i+2*u)-2e-5*Math.sin(a-i-2*u)-2e-5*Math.sin(3*a+i)+2e-5*Math.sin(4*a)}function gn(t,n){let e=1-.002516*n-74e-7*n**2,o=k(t,n),r=t0(t,n),s=n0(t,n),l=L0(t,n),i=o*c,a=r*c,u=s*c,p=l*c;return-.62801*Math.sin(a)+.17172*e*Math.sin(i)-.01183*e*Math.sin(a+i)+.00862*Math.sin(2*a)+.00804*Math.sin(2*u)+.00454*e*Math.sin(a-i)+.00204*e*e*Math.sin(2*i)-.0018*Math.sin(a-2*u)-7e-4*Math.sin(a+2*u)-4e-4*Math.sin(3*a)-34e-5*e*Math.sin(2*a-i)+32e-5*e*Math.sin(i+2*u)+32e-5*e*Math.sin(i-2*u)-28e-5*e*e*Math.sin(a+2*i)+27e-5*e*Math.sin(2*a+i)-17e-5*Math.sin(p)-5e-5*Math.sin(a-i-2*u)+4e-5*Math.sin(2*a+2*u)-4e-5*Math.sin(a+i+2*u)+4e-5*Math.sin(a-2*i)+3e-5*Math.sin(a+i-2*u)+3e-5*Math.sin(3*i)+2e-5*Math.sin(2*a-2*u)+2e-5*Math.sin(a-i+2*u)-2e-5*Math.sin(3*a+i)}function dn(t,n,e){if(e===.5||e===0)return 0;let o=1-.002516*n-74e-7*n**2,r=k(t,n),s=t0(t,n),l=n0(t,n),i=r*c,a=s*c,u=l*c,p=.00306-38e-5*o*Math.cos(i)+26e-5*Math.cos(a)-2e-5*Math.cos(a-i)+2e-5*Math.cos(a+i)+2e-5*Math.cos(2*u);return e===.25?p:-1*p}function Mn(t,n){let e=(299.77+.107408*t-.009173*n**2)*c,o=(251.88+.016321*t)*c,r=(251.83+26.651776*t)*c,s=(349.42+36.412478*t)*c,l=(84.66+18.206239*t)*c,i=(141.74+53.303771*t)*c,a=(207.84+2.453732*t)*c,u=(154.84+7.30686*t)*c,p=(34.52+27.261239*t)*c,d=(207.19+.121824*t)*c,g=(291.34+1.844379*t)*c,h=(161.72+24.198154*t)*c,E=(239.56+25.513099*t)*c,f=(331.55+3.592518*t)*c;return 325e-6*Math.sin(e)+165e-6*Math.sin(o)+164e-6*Math.sin(r)+126e-6*Math.sin(s)+11e-5*Math.sin(l)+62e-6*Math.sin(i)+6e-5*Math.sin(a)+56e-6*Math.sin(u)+47e-6*Math.sin(p)+42e-6*Math.sin(d)+4e-5*Math.sin(g)+37e-6*Math.sin(h)+35e-6*Math.sin(E)+23e-6*Math.sin(f)}function bn(t,n){return 245155009766e-5+29.530588861*t+15437e-8*n**2+15e-8*n**3+73e-11*n**4}function k(t,n){return 2.5534+29.1053567*t-14e-7*n**2-11e-8*n**3}function t0(t,n){return 201.5643+385.81693528*t+.0107582*n**2+1238e-8*n**3+58e-9*n**4}function n0(t,n){return 160.7108+390.67050284*t+.0016118*n**2+227e-8*n**3+11e-9*n**4}function L0(t,n){return 124.7746+390.67050284*t+.0020672*n**2+215e-8*n**3}var w=class t extends R{constructor(e,o=y.create(e)){super(e,"sun");this.earth=o}static create(e){return new t(e)}getHeliocentricEclipticRectangularJ2000Coordinates(){return{x:0,y:0,z:0}}getHeliocentricEclipticRectangularDateCoordinates(){return{x:0,y:0,z:0}}getHeliocentricEclipticSphericalJ2000Coordinates(){return{lon:0,lat:0,radiusVector:0}}getHeliocentricEclipticSphericalDateCoordinates(){return{lon:0,lat:0,radiusVector:0}}getGeocentricEclipticRectangularJ2000Coordinates(){return S(this.getGeocentricEclipticSphericalJ2000Coordinates())}getGeocentricEclipticRectangularDateCoordinates(){return S(this.getGeocentricEclipticSphericalDateCoordinates())}getGeocentricEclipticSphericalJ2000Coordinates(){return S0(this.earth.getHeliocentricEclipticSphericalJ2000Coordinates())}getGeocentricEclipticSphericalDateCoordinates(){return S0(this.earth.getHeliocentricEclipticSphericalDateCoordinates())}getApparentGeocentricEclipticSphericalCoordinates(){let e=this.getGeocentricEclipticSphericalDateCoordinates();return e=w0(e,this.T),e=B(e,this.T),e}getAngularDiameter(){return P(this.getApparentDistanceToEarth(),1392684)}getTopocentricAngularDiameter(e){return P(this.getTopocentricDistanceToEarth(e),1392684)}getApparentMagnitude(){return-26.74}getTopocentricApparentMagnitude(){return-26.74}};var z=class t extends R{constructor(e,o=new w(e),r=new y(e)){super(e,"moon");this.sun=o;this.earth=r}static create(e){return new t(e)}getHeliocentricEclipticRectangularJ2000Coordinates(){return this.getHeliocentricEclipticRectangularDateCoordinates()}getHeliocentricEclipticRectangularDateCoordinates(){let e=this.getGeocentricEclipticRectangularDateCoordinates(),o=this.earth.getHeliocentricEclipticRectangularDateCoordinates();return Z0(e,o)}getHeliocentricEclipticSphericalJ2000Coordinates(){return this.getHeliocentricEclipticSphericalDateCoordinates()}getHeliocentricEclipticSphericalDateCoordinates(){let e=this.getHeliocentricEclipticRectangularDateCoordinates();return K0(e)}getGeocentricEclipticRectangularJ2000Coordinates(){return this.getGeocentricEclipticRectangularDateCoordinates()}getGeocentricEclipticRectangularDateCoordinates(){let e=this.getGeocentricEclipticSphericalDateCoordinates();return S(e)}getGeocentricEclipticSphericalJ2000Coordinates(){return this.getGeocentricEclipticSphericalDateCoordinates()}getGeocentricEclipticSphericalDateCoordinates(){let e=N0(this.T),o=q0(this.T),r=J0(this.T);return{lon:e,lat:o,radiusVector:r}}getApparentGeocentricEclipticSphericalCoordinates(){let e=this.getGeocentricEclipticSphericalDateCoordinates();return B(e,this.T)}getAngularDiameter(){let e=this.getApparentDistanceToEarth();return P(e,3474.8)}getTopocentricAngularDiameter(e){let o=this.getTopocentricDistanceToEarth(e);return P(o,3474.8)}getElongation(){let e=this.getApparentGeocentricEquatorialSphericalCoordinates(),o=this.sun.getApparentGeocentricEquatorialSphericalCoordinates();return W(e,o)}getTopocentricElongation(e){let o=this.getTopocentricEquatorialSphericalCoordinates(e),r=this.sun.getApparentGeocentricEquatorialSphericalCoordinates();return W(o,r)}getPhaseAngle(){let e=this.getApparentGeocentricEquatorialSphericalCoordinates(),o=this.sun.getApparentGeocentricEquatorialSphericalCoordinates();return R0(e,o)}getTopocentricPhaseAngle(e){let o=this.getTopocentricEquatorialSphericalCoordinates(e),r=this.sun.getApparentGeocentricEquatorialSphericalCoordinates();return R0(o,r)}getIlluminatedFraction(){let e=this.getPhaseAngle();return C0(e)}getTopocentricIlluminatedFraction(e){let o=this.getTopocentricPhaseAngle(e);return C0(o)}getPositionAngleOfBrightLimb(){let e=this.getApparentGeocentricEquatorialSphericalCoordinates(),o=this.sun.getApparentGeocentricEquatorialSphericalCoordinates();return A0(e,o)}getTopocentricPositionAngleOfBrightLimb(e){let o=this.getTopocentricEquatorialSphericalCoordinates(e),r=this.sun.getApparentGeocentricEquatorialSphericalCoordinates();return A0(o,r)}isWaxing(){let e=this.getPositionAngleOfBrightLimb();return O0(e)}isTopocentricWaxing(e){let o=this.getTopocentricPositionAngleOfBrightLimb(e);return O0(o)}getApparentMagnitude(){let e=this.getHeliocentricEclipticSphericalDateCoordinates(),o=this.getGeocentricEclipticSphericalDateCoordinates(),r=this.getPhaseAngle(),s=this.isWaxing();return y0(e.radiusVector,o.radiusVector,r,s)}getTopocentricApparentMagnitude(e){let o=this.getHeliocentricEclipticSphericalDateCoordinates(),r=this.getTopocentricEquatorialSphericalCoordinates(e),s=this.getTopocentricPhaseAngle(e),l=this.isTopocentricWaxing(e);return y0(o.radiusVector,r.radiusVector,s,l)}getUpcomingNewMoon(){let e=this.toi.getDecimalYear();return j(e,0)}getUpcomingFirstQuarter(){let e=this.toi.getDecimalYear();return j(e,.25)}getUpcomingFullMoon(){let e=this.toi.getDecimalYear();return j(e,.5)}getUpcomingLastQuarter(){let e=this.toi.getDecimalYear();return j(e,.75)}};0&&(module.exports={Moon});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|