@zodiacs/engine 1.1.0 → 2.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +392 -0
- package/LICENSING.md +25 -7
- package/NOTICE +19 -9
- package/README.md +207 -54
- package/dist/{api-ChL1N2Sr.d.ts → api-G8RVGizH.d.ts} +7 -2
- package/dist/{ayanamsa-ClFzkKmV.d.ts → ayanamsa-C4-pYjzm.d.ts} +2 -2
- package/dist/calc.d.ts +5 -4
- package/dist/calc.js +27 -15
- package/dist/{chunk-BMDASNPB.js → chunk-4RCOOAGI.js} +2 -1
- package/dist/{chunk-Y4E3WJU5.js → chunk-CV53HA7R.js} +1 -1
- package/dist/{chunk-TZVPZHZM.js → chunk-EEKVS6W7.js} +42 -12
- package/dist/{chunk-2PZYJQV5.js → chunk-EEW7746S.js} +1 -1
- package/dist/{chunk-LNGURVNH.js → chunk-FXNA2TJM.js} +1 -1
- package/dist/{chunk-YPU3MDNI.js → chunk-HNVGWN3S.js} +1 -1
- package/dist/{chunk-7Y2F2IWN.js → chunk-JY2LU4VC.js} +76 -85
- package/dist/{chunk-4XOYTBLS.js → chunk-LWZS7HI3.js} +1 -1
- package/dist/{chunk-B5LKF437.js → chunk-M65JXRFN.js} +40 -0
- package/dist/{chunk-QLIEEICB.js → chunk-PU4HNPRX.js} +32 -13
- package/dist/{chunk-B4M2Y7FT.js → chunk-QLQRN6RY.js} +1 -1
- package/dist/{chunk-NNOSOOWS.js → chunk-SCRO6HWB.js} +4 -2
- package/dist/{chunk-767FTO7O.js → chunk-UXY4RU57.js} +1 -1
- package/dist/{chunk-WBTWY2OB.js → chunk-XINOD63H.js} +3 -3
- package/dist/{chunk-I3L4POY7.js → chunk-XO7MHH32.js} +2 -1
- package/dist/core.d.ts +21 -0
- package/dist/core.js +2953 -0
- package/dist/crossings.d.ts +2 -2
- package/dist/de440-pack.d.ts +2 -2
- package/dist/de440-pack.js +4 -4
- package/dist/de440.d.ts +2 -2
- package/dist/de440.js +3 -3
- package/dist/{ephemeris-exTSqBgb.d.ts → ephemeris-Bnmowcsk.d.ts} +5 -1
- package/dist/geo.d.ts +84 -17
- package/dist/geo.js +139 -5
- package/dist/{houses-Bh7GCnPi.d.ts → houses-CAiYEICK.d.ts} +1 -1
- package/dist/houses-extra.d.ts +3 -3
- package/dist/index.d.ts +8 -8
- package/dist/index.js +11 -11
- package/dist/{internal-math-CxenuGfm.d.ts → internal-math-rq6do9IR.d.ts} +2 -2
- package/dist/internal-math.d.ts +4 -4
- package/dist/internal-math.js +2 -2
- package/dist/internal.d.ts +4 -4
- package/dist/internal.js +8 -8
- package/dist/receipt.d.ts +3 -3
- package/dist/receipt.js +76 -26
- package/dist/{rulers-CSSWtiWF.d.ts → rulers-CFGiWJza.d.ts} +1 -1
- package/dist/sky.d.ts +4 -4
- package/dist/sky.js +9 -9
- package/dist/techniques.d.ts +4 -4
- package/dist/techniques.js +14 -14
- package/dist/{time-bands-CZA9AlLg.d.ts → time-bands-BCmfa8FR.d.ts} +5 -4
- package/dist/{time-scale-DIFNa0gz.d.ts → time-scale-9vmKQPCn.d.ts} +14 -4
- package/dist/time.d.ts +3 -3
- package/dist/time.js +5 -5
- package/dist/timing.d.ts +5 -5
- package/dist/timing.js +11 -11
- package/dist/{types-DpPdtXgO.d.ts → types-CkuiCcsV.d.ts} +25 -5
- package/dist/{tzdb-2025c-00-6GVG6RYL.js → tzdb-2026f-00-RAB4YONA.js} +4 -4
- package/dist/{tzdb-2025c-01-CEYMG3LE.js → tzdb-2026f-01-SWR7EW5U.js} +4 -4
- package/dist/{tzdb-2025c-02-NWQJCVUU.js → tzdb-2026f-02-SOLHCLDL.js} +3 -3
- package/dist/{tzdb-2025c-03-PLHP6VH4.js → tzdb-2026f-03-LYLMCVL7.js} +3 -3
- package/dist/{tzdb-2025c-04-MEKUJA6M.js → tzdb-2026f-04-XTKMZPKX.js} +4 -4
- package/dist/{tzdb-2025c-05-3K5YKZBL.js → tzdb-2026f-05-EOKCMY5O.js} +4 -4
- package/dist/{tzdb-2025c-06-L2VV5XJV.js → tzdb-2026f-06-O4LQW2N6.js} +4 -4
- package/dist/{tzdb-2025c-07-H3GLGJGY.js → tzdb-2026f-07-2FDJ5OJ7.js} +4 -4
- package/dist/{tzdb-2025c-08-DA7QQIGD.js → tzdb-2026f-08-OKEWSMIX.js} +4 -4
- package/dist/{tzdb-2025c-09-MTXIO3QL.js → tzdb-2026f-09-5GB7FKLF.js} +4 -4
- package/dist/{tzdb-2025c-10-ASL4UW5C.js → tzdb-2026f-10-GXHCIASR.js} +4 -4
- package/dist/{tzdb-2025c-11-EQEOANYB.js → tzdb-2026f-11-66EMKXFG.js} +4 -4
- package/dist/{tzdb-2025c-12-NKCCXJ5G.js → tzdb-2026f-12-YK3CZCIY.js} +3 -3
- package/dist/{tzdb-2025c-13-DYTF3UC7.js → tzdb-2026f-13-UNZD3QIH.js} +4 -4
- package/dist/{tzdb-2025c-14-C25H45R5.js → tzdb-2026f-14-4FQNGNZM.js} +4 -4
- package/dist/{tzdb-2025c-15-7OYYZWRY.js → tzdb-2026f-15-5TA3B2WI.js} +4 -4
- package/dist/vedic.d.ts +4 -4
- package/dist/vedic.js +11 -11
- package/dist/window.d.ts +2 -2
- package/dist/window.js +13 -10
- package/dist/{zone-history-BxmDCcTK.d.ts → zone-history-2UYUKA43.d.ts} +26 -9
- package/package.json +7 -3
package/dist/crossings.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as BodyName } from './types-
|
|
1
|
+
import { B as BodyName } from './types-CkuiCcsV.js';
|
|
2
2
|
import './deltat.js';
|
|
3
|
-
import './time-scale-
|
|
3
|
+
import './time-scale-9vmKQPCn.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The instants a body sits exactly on an ecliptic longitude.
|
package/dist/de440-pack.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { De440Source } from './de440.js';
|
|
2
|
-
import './types-
|
|
2
|
+
import './types-CkuiCcsV.js';
|
|
3
3
|
import './deltat.js';
|
|
4
|
-
import './time-scale-
|
|
4
|
+
import './time-scale-9vmKQPCn.js';
|
|
5
5
|
|
|
6
6
|
/** The pack this entry ships, and the kernel it was refitted from. */
|
|
7
7
|
interface De440PackDescription {
|
package/dist/de440-pack.js
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
de440PackBytes,
|
|
4
4
|
openShippedDe440Pack,
|
|
5
5
|
shippedDe440Source
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-UXY4RU57.js";
|
|
7
|
+
import "./chunk-HNVGWN3S.js";
|
|
8
|
+
import "./chunk-CV53HA7R.js";
|
|
9
|
+
import "./chunk-SCRO6HWB.js";
|
|
10
10
|
import "./chunk-RMBWKZI2.js";
|
|
11
11
|
export {
|
|
12
12
|
DE440_PACK,
|
package/dist/de440.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PositionSource } from './types-
|
|
1
|
+
import { P as PositionSource } from './types-CkuiCcsV.js';
|
|
2
2
|
import './deltat.js';
|
|
3
|
-
import './time-scale-
|
|
3
|
+
import './time-scale-9vmKQPCn.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* A sealed ephemeris pack (`ZODEPH02`): the header, checked before anything
|
package/dist/de440.js
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
REDUCED_BODIES,
|
|
6
6
|
openDe440Pack,
|
|
7
7
|
openDe440PackSync
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-HNVGWN3S.js";
|
|
9
|
+
import "./chunk-CV53HA7R.js";
|
|
10
|
+
import "./chunk-SCRO6HWB.js";
|
|
11
11
|
import "./chunk-RMBWKZI2.js";
|
|
12
12
|
export {
|
|
13
13
|
BARYCENTRE_NOT_CENTRE,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PositionSource, B as BodyName, c as BodyPosition, C as ChartInput, d as Chart } from './types-
|
|
1
|
+
import { P as PositionSource, B as BodyName, c as BodyPosition, C as ChartInput, d as Chart } from './types-CkuiCcsV.js';
|
|
2
2
|
|
|
3
3
|
/** What a call outside `withEphemeris` computes on. */
|
|
4
4
|
type DefaultEphemerisName = "de440" | "astronomy-engine";
|
|
@@ -54,6 +54,10 @@ declare function withEphemeris<T>(positionSource: PositionSource, run: () => T):
|
|
|
54
54
|
/** Apparent longitude at a UTC instant, on the engine's time basis. */
|
|
55
55
|
declare function bodyLongitude(body: BodyName, date: Date): number;
|
|
56
56
|
declare function longitudeSpeed(body: BodyName, date: Date): number;
|
|
57
|
+
/**
|
|
58
|
+
* The positions at a UTC instant, as a chart's bodies; from 2.0.0, each row carries the flags
|
|
59
|
+
* a chart at that instant would (`instantFlags`), where there are any.
|
|
60
|
+
*/
|
|
57
61
|
declare function computeBodies(date: Date): BodyPosition[];
|
|
58
62
|
declare function computeChart(input: ChartInput): Chart;
|
|
59
63
|
|
package/dist/geo.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { H as HouseSystem, h as BirthInput } from './types-
|
|
2
|
-
import { T as TransitionCause, N as NatalLocalResolution } from './zone-history-
|
|
1
|
+
import { H as HouseSystem, h as BirthInput } from './types-CkuiCcsV.js';
|
|
2
|
+
import { T as TransitionCause, N as NatalLocalResolution } from './zone-history-2UYUKA43.js';
|
|
3
3
|
import './deltat.js';
|
|
4
|
-
import './time-scale-
|
|
4
|
+
import './time-scale-9vmKQPCn.js';
|
|
5
5
|
|
|
6
6
|
interface City {
|
|
7
7
|
name: string;
|
|
@@ -80,6 +80,29 @@ interface CalendarNote {
|
|
|
80
80
|
* RangeError.
|
|
81
81
|
*/
|
|
82
82
|
declare function calendarNote(gregorianDate: string, calendar: CalendarName, country: string): CalendarNote | null;
|
|
83
|
+
/**
|
|
84
|
+
* The Julian Day Number of a civil date in `calendar` (default "gregorian"):
|
|
85
|
+
* the integer day that begins at noon UT on that date. Years are astronomical
|
|
86
|
+
* (year 0 exists; -4712 is 4713 BC). Throws a RangeError unless year, month
|
|
87
|
+
* and day are integers, the year is between -100000 and 100000, and the date
|
|
88
|
+
* exists in that calendar.
|
|
89
|
+
*/
|
|
90
|
+
declare function julianDayNumber(date: {
|
|
91
|
+
year: number;
|
|
92
|
+
month: number;
|
|
93
|
+
day: number;
|
|
94
|
+
}, calendar?: CalendarName): number;
|
|
95
|
+
/**
|
|
96
|
+
* The civil date in `calendar` (default "gregorian") of a Julian Day Number,
|
|
97
|
+
* as `{ year, month, day }` with astronomical years. Throws a RangeError
|
|
98
|
+
* unless `jdn` is an integer that falls in the years -100000 to 100000 of
|
|
99
|
+
* that calendar.
|
|
100
|
+
*/
|
|
101
|
+
declare function dateOfJulianDayNumber(jdn: number, calendar?: CalendarName): {
|
|
102
|
+
year: number;
|
|
103
|
+
month: number;
|
|
104
|
+
day: number;
|
|
105
|
+
};
|
|
83
106
|
|
|
84
107
|
/**
|
|
85
108
|
* The pinned tzdb release: its version, archive digest and the form its histories were compiled from. The
|
|
@@ -97,7 +120,11 @@ interface LocalTimeOptions {
|
|
|
97
120
|
longitude?: number | undefined;
|
|
98
121
|
/** The calendar `date` is written in; "gregorian" by default. */
|
|
99
122
|
calendar?: CalendarName | undefined;
|
|
100
|
-
/**
|
|
123
|
+
/**
|
|
124
|
+
* ISO 3166-1 alpha-2 code, or the country's name in tzdata's iso3166.tab, for `calendarNote`. Without a country
|
|
125
|
+
* the table dates, a date that one of the adoption table's changeovers skipped, and the zone does not rule out,
|
|
126
|
+
* is flagged "calendar-unknown" (docs/time.md).
|
|
127
|
+
*/
|
|
101
128
|
country?: string | undefined;
|
|
102
129
|
/**
|
|
103
130
|
* Which instant a wall time the clock showed twice takes: "earlier" (the
|
|
@@ -121,8 +148,15 @@ interface LocalTimeResolution {
|
|
|
121
148
|
utc: Date;
|
|
122
149
|
/** Minutes east at the resolved instant; may be fractional. */
|
|
123
150
|
offsetMinutes: number;
|
|
124
|
-
/**
|
|
125
|
-
|
|
151
|
+
/**
|
|
152
|
+
* A gap or fold of any cause ("dst-" names kept for compatibility; see `jump`), a local mean time clock, and
|
|
153
|
+
* "calendar-unknown": no `country` the table dates, and a date that one of the adoption table's changeovers
|
|
154
|
+
* skipped and the zone does not rule out, so whether it was in civil use where it was written is not known
|
|
155
|
+
* (docs/time.md). "host-zone-data-differs": the host's Intl answered, and at an instant within 36 hours of a
|
|
156
|
+
* span in which the time zone database changed between tzdata 2021a and the release `zone.hostCheck` names, it
|
|
157
|
+
* gave another offset than that release does; the instant returned is still the host's (docs/time.md).
|
|
158
|
+
*/
|
|
159
|
+
flags: ("dst-gap" | "dst-fold" | "lmt" | "calendar-unknown" | "host-zone-data-differs")[];
|
|
126
160
|
/** The proleptic Gregorian date resolved. */
|
|
127
161
|
date: string;
|
|
128
162
|
writtenDate: string;
|
|
@@ -144,6 +178,8 @@ interface LocalTimeResolution {
|
|
|
144
178
|
dataForm: "main+backzone" | "main" | "host";
|
|
145
179
|
abbreviation: string | null;
|
|
146
180
|
dst: boolean | null;
|
|
181
|
+
/** Set where the host's Intl answered: whether its offset matches the pinned tzdb release (docs/time.md). */
|
|
182
|
+
hostCheck?: HostZoneCheck;
|
|
147
183
|
};
|
|
148
184
|
/** The host's offset where the shipped history answered, as a cross-check. */
|
|
149
185
|
intlOffsetMinutes: number | null;
|
|
@@ -151,6 +187,28 @@ interface LocalTimeResolution {
|
|
|
151
187
|
/** For `createNatalEnvelope`'s `localResolution`. */
|
|
152
188
|
localResolution: NatalLocalResolution;
|
|
153
189
|
}
|
|
190
|
+
/**
|
|
191
|
+
* How the host's time zone data compares with the pinned tzdb release near a wall time the host's Intl read.
|
|
192
|
+
* "unchecked": no span in which tzdata 2021a and the pinned release differ lies within 36 hours of the
|
|
193
|
+
* instant (or the instant is before 1970, or the zone is a fixed one). Otherwise the host was asked for its
|
|
194
|
+
* offset at `probe`, an instant inside each such span: "current" when it gave the pinned release's offset at
|
|
195
|
+
* every probe, "differs" when it did not at one (the chart is flagged "host-zone-data-differs"), and "newer"
|
|
196
|
+
* when it did not but the runtime names a tzdb release later than the pinned one (Node does; browsers do not),
|
|
197
|
+
* which may know a rule the pinned release does not, so nothing is flagged.
|
|
198
|
+
*/
|
|
199
|
+
type HostZoneCheck = {
|
|
200
|
+
status: "unchecked";
|
|
201
|
+
} | {
|
|
202
|
+
status: "current" | "differs" | "newer";
|
|
203
|
+
/** UTC, ISO 8601: the instant the host was asked about (the first that disagreed, else the first asked). */
|
|
204
|
+
probe: string;
|
|
205
|
+
/** The host's offset at `probe`, minutes east. */
|
|
206
|
+
hostOffsetMinutes: number;
|
|
207
|
+
/** The pinned release's offset at `probe`, minutes east. */
|
|
208
|
+
tzdbOffsetMinutes: number;
|
|
209
|
+
/** The pinned release, such as "2026f". */
|
|
210
|
+
tzdbVersion: string;
|
|
211
|
+
};
|
|
154
212
|
interface LocalBirthInput {
|
|
155
213
|
/** YYYY-MM-DD, in `calendar`. */
|
|
156
214
|
date: string;
|
|
@@ -171,19 +229,10 @@ interface LocalBirthInput {
|
|
|
171
229
|
* UTC offset for an IANA timezone at a UTC instant, minutes east, from the
|
|
172
230
|
* host's Intl: a cross-check on the host's time-zone data. zoneOffsetAt is the
|
|
173
231
|
* engine's own answer, the one its wall times use; the two agree from 1970
|
|
174
|
-
* where the host has tzdata
|
|
232
|
+
* where the host has tzdata 2026f, and before 1970 they can differ, because
|
|
175
233
|
* Intl does not carry the history this package ships.
|
|
176
234
|
*/
|
|
177
235
|
declare function offsetAt(timeZone: string, utcMilliseconds: number): number;
|
|
178
|
-
/**
|
|
179
|
-
* Resolve a local wall time in an IANA zone to UTC: a repeated one takes the
|
|
180
|
-
* earlier instant, or the later one with `options.fold` "later"; a skipped
|
|
181
|
-
* one moves forward by the jump. Before 1970 the
|
|
182
|
-
* shipped tzdb 2025c history answers, loaded by `prepareLocalTime` (a wall
|
|
183
|
-
* time before 1970-01-02 throws otherwise); from 1970, and in the fixed Etc
|
|
184
|
-
* zones, the host's Intl.
|
|
185
|
-
*/
|
|
186
|
-
declare function resolveLocalToUtc(date: string, time: string, timeZone: string, options?: LocalTimeOptions): LocalTimeResolution;
|
|
187
236
|
/**
|
|
188
237
|
* Load what a wall time on `date` (YYYY-MM-DD) in `timeZone` needs: up to
|
|
189
238
|
* 1970, the zone's shipped history (one of 16 buckets). A failed load rejects
|
|
@@ -206,6 +255,17 @@ declare class ZoneHistoryNotLoadedError extends Error {
|
|
|
206
255
|
readonly name = "ZoneHistoryNotLoadedError";
|
|
207
256
|
constructor();
|
|
208
257
|
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Resolve a local wall time in an IANA zone to UTC: a repeated one takes the
|
|
261
|
+
* earlier instant, or the later one with `options.fold` "later"; a skipped
|
|
262
|
+
* one moves forward by the jump. Before 1970 the
|
|
263
|
+
* shipped tzdb 2026f history answers, loaded by `prepareLocalTime` (a wall
|
|
264
|
+
* time before 1970-01-02 throws otherwise); from 1970, and in the fixed Etc
|
|
265
|
+
* zones, the host's Intl, whose offset near the instant is checked against the
|
|
266
|
+
* pinned tzdb release (`zone.hostCheck`, flag "host-zone-data-differs").
|
|
267
|
+
*/
|
|
268
|
+
declare function resolveLocalToUtc(date: string, time: string, timeZone: string, options?: LocalTimeOptions): LocalTimeResolution;
|
|
209
269
|
/** A local birth resolved, with how its wall time was read and the receipt's `reference`. */
|
|
210
270
|
interface LocalBirthResolution {
|
|
211
271
|
birth: BirthInput;
|
|
@@ -217,4 +277,11 @@ declare function resolveLocalBirth(input: LocalBirthInput): LocalBirthResolution
|
|
|
217
277
|
/** Convert a local birth form into the explicit UTC input accepted by the core. */
|
|
218
278
|
declare function resolveBirth(input: LocalBirthInput): BirthInput;
|
|
219
279
|
|
|
220
|
-
|
|
280
|
+
/**
|
|
281
|
+
* The local mean time offset of a longitude, in seconds east of Greenwich:
|
|
282
|
+
* `longitude × 240`, not rounded. Throws a RangeError unless the longitude is
|
|
283
|
+
* a finite number of degrees between -180 and 180.
|
|
284
|
+
*/
|
|
285
|
+
declare function localMeanTimeOffset(longitude: number): number;
|
|
286
|
+
|
|
287
|
+
export { type CalendarName, type CalendarNote, type City, type FoldChoice, GREGORIAN_ADOPTION, GREGORIAN_ADOPTION_SOURCES, type GeoNamesClient, type GeoNamesClientOptions, type GeoNamesIndexMetadata, type GregorianAdoption, type GregorianAdoptionSource, type HostZoneCheck, type LocalBirthInput, type LocalBirthResolution, type LocalTimeOptions, type LocalTimeResolution, TZDB, TransitionCause, ZoneHistoryNotLoadedError, type ZoneTransition, calendarNote, createGeoNamesClient, dateOfJulianDayNumber, gregorianAdoption, gregorianToJulian, julianDayNumber, julianToGregorian, localMeanTimeOffset, offsetAt, prepareLocalTime, resolveBirth, resolveLocalBirth, resolveLocalToUtc, zoneOffsetAt };
|
package/dist/geo.js
CHANGED
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
+
DAY,
|
|
3
|
+
FIXED_ZONE,
|
|
2
4
|
GREGORIAN_ADOPTION,
|
|
3
5
|
GREGORIAN_ADOPTION_SOURCES,
|
|
6
|
+
PROBE,
|
|
4
7
|
TZDB,
|
|
5
8
|
ZoneHistoryNotLoadedError,
|
|
6
9
|
calendarNote,
|
|
10
|
+
currentHost,
|
|
11
|
+
dateOfJulianDayNumber,
|
|
7
12
|
gregorianAdoption,
|
|
13
|
+
julianDayNumber,
|
|
14
|
+
nameHash,
|
|
8
15
|
offsetAt,
|
|
9
16
|
prepareLocalTime,
|
|
10
|
-
|
|
11
|
-
resolveLocalBirth,
|
|
12
|
-
resolveLocalToUtc,
|
|
17
|
+
readLocalTime,
|
|
13
18
|
zoneOffsetAt
|
|
14
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JY2LU4VC.js";
|
|
15
20
|
import {
|
|
16
21
|
gregorianToJulian,
|
|
17
22
|
julianToGregorian
|
|
18
23
|
} from "./chunk-KFTJMMG7.js";
|
|
19
|
-
import
|
|
24
|
+
import {
|
|
25
|
+
validateBirthSettings
|
|
26
|
+
} from "./chunk-4RCOOAGI.js";
|
|
20
27
|
|
|
21
28
|
// src/geo/geonames.ts
|
|
22
29
|
var fold = (value) => value.normalize("NFD").replace(/[\u0300-\u036f]/gu, "").toLowerCase();
|
|
@@ -157,6 +164,130 @@ function createGeoNamesClient(options) {
|
|
|
157
164
|
}
|
|
158
165
|
};
|
|
159
166
|
}
|
|
167
|
+
|
|
168
|
+
// src/geo/host-probes-data.ts
|
|
169
|
+
var HOST_PROBES_TZDB = "2026f";
|
|
170
|
+
var HOST_PROBES_UNTIL = 18877536e5;
|
|
171
|
+
var HOST_PROBES = "8i4hw:0,7ji4c,bo,0,8fno,0,0,94cvo,bo,0,0,8c;1myovc,9iyn3w:gp2so,5m6c,50,5m9o,5tyc,50,5eho,5tyc,50,5eho,5tyc,50,5m9o,5m6c,50,5m9o,5m6c,50,5m9o,5m6c,50;5w7i17,1g6nwqf:hsov0,43to,-bo,7cec,3w1o,-bo,7cec,3w1o,-bo;9e4lpj:0,23xc0,1o,5m80,7to,1o,5eec,1o,0,13jac,1o,1o,5m6c,1o,0,5m6c,1o,1o,5m6c,1o,0,5m6c,1o,1o,5m6c,1o,0,5m6c,1o,1o,5tyc,1o,0,5m6c,1o,1o,5m6c,1o,0,26uw0,5m80,1o,0,5m80,3c,0,5m80,1o,0,5m80,3c,0,5m80,1o,0,5m80,3c,0,5u00,1o;asrkyp:g159o,69p1,dc,4yqz,69p1,dc,4vjz,0,dc;b5re23,uyfsdo:hsooc,43s0,-6o;ce8zcd,pz5m04,1rhzabd,1ybd2zs:3k8o,5m6c,-bo,5m9o,5tyc,-bo,5m9o,5m6c,-bo,5m9o,5m6c,-bo,25to,92mc,-bo,3o9o,7k6c,-bo;cyn8qr:gjgj0,4r5o,50,6hac,4r5o,50,6hac,4r5o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ec,1o,-8c,b8ec,1o,-8c,b8ec,1o,-8c,b8ec,1o,-8c,bg6c,1o,-8c,b8ec,1o,-8c,b8ec,1o,-8c,b8ec,1o,-8c,b8ec,1o,-8c,bg6c,1o,-8c,b8ec,1o,-8c,6ksec,43to,-8c,7cec,3w1o,-8c,7cec,3w1o,-8c;114oapw:3r0a0,3fc,-a0,9lic,x8o,-a0,cmnx0,6hac,-a0,4yxo,69ic,-a0,4yxo,69ic,-a0,4yxo,69ic,-a0,4yxo,6hac,-a0,4r5o,6hac,-a0,4r5o,0,-a0;119linm:haj90,61to,-50,56mc,61to,-50,5eec,5u1o,-50,5eec,5u1o,-50,5eec,61to,-50;12vs1n5,1ja8aay:g884o,140,3c,4jc0,140,3c,6o00,1o,50,4jac,12zc,3c,5m4o,1o,50,4r2c,nfc,3c,5two,1o,50,4r2c,fnc,3c,61oo,1o,50,4r2c,3c,3c,6h8o,1o,50,4r2c,3c,3c,6p0o,1o,50,4jac,3c,3c,6p0o,1o,50,4jac,3c,3c,6p0o,1o,50;14jvnzr:6f1oo,2t5o,50,b8co,50,50,5m4o,3c,3c,5m30,50,50,5m4o,3c,3c,5m30,50,50,5m4o,3c,3c,5m30,50,50,5m80,1o,50,5m6c,1o,3c,5tyc,1o,50;152flc4,1xhonwb:ghsuo,7s0,-a0;158751h,16xs7vh:hsoro,43to,-8c,7cec,3w1o,-8c,7cec,3w1o,-8c;1719z1x:g8pjc,1y00,k0,9ag0,1y00,k0,9ag0,1y00,k0,9ag0,1y00,k0,9ag0,25s0,k0,92o0,25s0,k0,9ag0,1y00,k0,9ag0,1y00,k0;17r60tt:0,q8ro,-8c,5m6c,5m9o,-8c,5m6c,5m9o,-8c,5m6c,5m9o,-8c,5m6c,5m9o,-8c,5tyc,5eho,-8c,5tyc,5m9o,-8c,5m6c,5m9o,-8c,5m6c,5m80,-8c,0,1o,-8c,0,5m4o,-6o,1o,5m80,-8c,0,1o,-8c,0,5m4o,-6o,1o,5m80,-8c,0,1o,-8c,0,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ap();
|
|
175
|
+
var OPEN_PROBE = 45 * DAY;
|
|
176
|
+
var probeTable = null;
|
|
177
|
+
function probeSpans(timeZone) {
|
|
178
|
+
if (!probeTable) {
|
|
179
|
+
probeTable = /* @__PURE__ */ new Map();
|
|
180
|
+
for (const row of HOST_PROBES.split(";")) {
|
|
181
|
+
const [hashes = "", body = ""] = row.split(":");
|
|
182
|
+
const minutes = body.split(",").map((value) => parseInt(value, 36) * 6e4);
|
|
183
|
+
const spans = [];
|
|
184
|
+
let previous = 0;
|
|
185
|
+
for (let index = 0; index + 2 < minutes.length; index += 3) {
|
|
186
|
+
const from = previous + minutes[index];
|
|
187
|
+
const length = minutes[index + 1];
|
|
188
|
+
spans.push(from, length ? from + length : HOST_PROBES_UNTIL, from + (length ? Math.floor(length / 12e4) * 6e4 : OPEN_PROBE), minutes[index + 2] / 1e3);
|
|
189
|
+
previous = length ? from + length : from;
|
|
190
|
+
}
|
|
191
|
+
for (const hash of hashes.split(",")) probeTable.set(parseInt(hash, 36), spans);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
return probeTable.get(nameHash(timeZone));
|
|
195
|
+
}
|
|
196
|
+
function checkHost(timeZone, utcMs) {
|
|
197
|
+
const spans = utcMs >= 0 && !FIXED_ZONE.test(timeZone) ? probeSpans(timeZone) : void 0;
|
|
198
|
+
const host = currentHost();
|
|
199
|
+
let answers = hostAnswers.get(host);
|
|
200
|
+
if (!answers) hostAnswers.set(host, answers = /* @__PURE__ */ new Map());
|
|
201
|
+
let agreed = null;
|
|
202
|
+
for (let index = 0; spans && index < spans.length; index += 4) {
|
|
203
|
+
if (utcMs < spans[index] - PROBE || utcMs >= spans[index + 1] + PROBE) continue;
|
|
204
|
+
const probe = spans[index + 2];
|
|
205
|
+
const pinned = spans[index + 3];
|
|
206
|
+
const key = `${timeZone.toLowerCase()}
|
|
207
|
+
${probe}`;
|
|
208
|
+
let answer = answers.get(key);
|
|
209
|
+
if (answer === void 0) {
|
|
210
|
+
answer = Math.round(host.offsetAt(timeZone, probe) * 60);
|
|
211
|
+
answers.set(key, answer);
|
|
212
|
+
}
|
|
213
|
+
const version = host.tzdbVersion();
|
|
214
|
+
const status = answer === pinned ? "current" : version !== null && version > HOST_PROBES_TZDB ? "newer" : "differs";
|
|
215
|
+
const check = {
|
|
216
|
+
status,
|
|
217
|
+
probe: new Date(probe).toISOString(),
|
|
218
|
+
hostOffsetMinutes: answer / 60,
|
|
219
|
+
tzdbOffsetMinutes: pinned / 60,
|
|
220
|
+
tzdbVersion: HOST_PROBES_TZDB
|
|
221
|
+
};
|
|
222
|
+
if (status !== "current") return check;
|
|
223
|
+
agreed ??= check;
|
|
224
|
+
}
|
|
225
|
+
return agreed ?? { status: "unchecked" };
|
|
226
|
+
}
|
|
227
|
+
function resolveLocalToUtc(date, time, timeZone, options) {
|
|
228
|
+
const resolution = readLocalTime(date, time, timeZone, options);
|
|
229
|
+
if (resolution.zone.source === "intl") {
|
|
230
|
+
const check = checkHost(timeZone, resolution.utc.getTime());
|
|
231
|
+
resolution.zone.hostCheck = check;
|
|
232
|
+
if (check.status === "differs") resolution.flags.push("host-zone-data-differs");
|
|
233
|
+
}
|
|
234
|
+
return resolution;
|
|
235
|
+
}
|
|
236
|
+
var LOCAL_BIRTH_KEYS = [
|
|
237
|
+
"date",
|
|
238
|
+
"time",
|
|
239
|
+
"timeZone",
|
|
240
|
+
"latitude",
|
|
241
|
+
"longitude",
|
|
242
|
+
"houseSystem",
|
|
243
|
+
"timeKnown",
|
|
244
|
+
"calendar",
|
|
245
|
+
"country",
|
|
246
|
+
"fold"
|
|
247
|
+
];
|
|
248
|
+
function resolveLocalBirth(input) {
|
|
249
|
+
if (!input || typeof input !== "object" || Array.isArray(input)) {
|
|
250
|
+
throw new RangeError("birth must be an object containing a local date and timezone.");
|
|
251
|
+
}
|
|
252
|
+
for (const key of Object.getOwnPropertyNames(input)) {
|
|
253
|
+
if (!LOCAL_BIRTH_KEYS.includes(key)) throw new RangeError(`Unknown local birth field "${key}".`);
|
|
254
|
+
}
|
|
255
|
+
const fields = Object.fromEntries(LOCAL_BIRTH_KEYS.map((key) => [key, input[key]]));
|
|
256
|
+
const settings = validateBirthSettings(fields);
|
|
257
|
+
const { time, calendar, country, fold: fold2 } = fields;
|
|
258
|
+
const timeKnown = settings.timeKnown ?? time !== void 0;
|
|
259
|
+
if (timeKnown && time === void 0) {
|
|
260
|
+
throw new RangeError("time is required when timeKnown is true.");
|
|
261
|
+
}
|
|
262
|
+
const resolution = resolveLocalToUtc(fields.date, time === void 0 ? "12:00" : time, fields.timeZone, {
|
|
263
|
+
longitude: settings.longitude,
|
|
264
|
+
calendar,
|
|
265
|
+
country,
|
|
266
|
+
fold: fold2
|
|
267
|
+
});
|
|
268
|
+
return {
|
|
269
|
+
birth: {
|
|
270
|
+
utc: resolution.utc,
|
|
271
|
+
timeKnown,
|
|
272
|
+
houseSystem: settings.houseSystem ?? "whole",
|
|
273
|
+
flags: resolution.flags,
|
|
274
|
+
...settings.latitude === void 0 ? {} : { latitude: settings.latitude, longitude: settings.longitude }
|
|
275
|
+
},
|
|
276
|
+
resolution,
|
|
277
|
+
reference: time === void 0 ? "local-noon" : "supplied-instant"
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
function resolveBirth(input) {
|
|
281
|
+
return resolveLocalBirth(input).birth;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
// src/geo/mean-time.ts
|
|
285
|
+
function localMeanTimeOffset(longitude) {
|
|
286
|
+
if (typeof longitude !== "number" || !(Math.abs(longitude) <= 180)) {
|
|
287
|
+
throw new RangeError("longitude must be a number of degrees between -180 and 180.");
|
|
288
|
+
}
|
|
289
|
+
return longitude * 240 + 0;
|
|
290
|
+
}
|
|
160
291
|
export {
|
|
161
292
|
GREGORIAN_ADOPTION,
|
|
162
293
|
GREGORIAN_ADOPTION_SOURCES,
|
|
@@ -164,9 +295,12 @@ export {
|
|
|
164
295
|
ZoneHistoryNotLoadedError,
|
|
165
296
|
calendarNote,
|
|
166
297
|
createGeoNamesClient,
|
|
298
|
+
dateOfJulianDayNumber,
|
|
167
299
|
gregorianAdoption,
|
|
168
300
|
gregorianToJulian,
|
|
301
|
+
julianDayNumber,
|
|
169
302
|
julianToGregorian,
|
|
303
|
+
localMeanTimeOffset,
|
|
170
304
|
offsetAt,
|
|
171
305
|
prepareLocalTime,
|
|
172
306
|
resolveBirth,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Angles, H as HouseSystem, a as Houses, b as HouseNumber } from './types-
|
|
1
|
+
import { A as Angles, H as HouseSystem, a as Houses, b as HouseNumber } from './types-CkuiCcsV.js';
|
|
2
2
|
|
|
3
3
|
declare const HOUSE_SYSTEMS: readonly ["whole", "placidus", "porphyry", "equal", "equal-mc", "vehlow", "koch", "regiomontanus", "campanus", "topocentric", "alcabitius", "morinus", "meridian"];
|
|
4
4
|
/**
|
package/dist/houses-extra.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AngleInput } from './houses-
|
|
2
|
-
import { H as HouseSystem, A as Angles } from './types-
|
|
1
|
+
import { A as AngleInput } from './houses-CAiYEICK.js';
|
|
2
|
+
import { H as HouseSystem, A as Angles } from './types-CkuiCcsV.js';
|
|
3
3
|
import './deltat.js';
|
|
4
|
-
import './time-scale-
|
|
4
|
+
import './time-scale-9vmKQPCn.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* `@zodiacs/engine/houses`: the house position of a body with ecliptic
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { C as ChartDeclinations, D as DECLINATION_ORB, a as DECLINATION_ORB_LUMINARY, b as DEFAULT_DECLINATION_ORB_POLICY, c as DeclinationAspect, d as DeclinationAspectType, e as DeclinationBody, f as DeclinationOrbPolicy, g as DeclinationRow, h as Declinations, E as EquatorialCoordinates, N as NatalSource, R as RA_POLE_TOLERANCE, i as ReturnSeason, S as SUN_BOUND_LATITUDE, j as SaturnReturnResult, k as SaturnReturnSource, l as chartDeclinations, m as chartPoints, n as declinationOf, o as declinationOrb, p as declinationsForBodies, q as eclipticToEquatorial, r as findDeclinationAspects, s as findLongitudeCrossings, t as groupIntoSeasons, u as moonPhase, v as natalChart, w as positions, x as saturnReturn, y as searchLongitudeCrossings, z as synastry, A as transits } from './api-
|
|
2
|
-
export { D as DefaultEphemeris, d as DefaultEphemerisName, e as defaultEphemeris, s as setDefaultEphemeris, w as withEphemeris } from './ephemeris-
|
|
3
|
-
import { e as DateInput, c as BodyPosition, j as Sect, k as MinimalBody, l as Element, I as InterAspect, m as Modality, n as PairSummary } from './types-
|
|
4
|
-
export { A as Angles, o as Aspect, f as AspectType, h as BirthInput, B as BodyName, d as Chart, g as ChartFlag, C as ChartInput, i as ChartPoints, p as ENGINE_VERSION, q as EPHEMERIS, E as EphemerisFallback, b as HouseNumber, H as HouseSystem, a as Houses, M as MoonPhase,
|
|
5
|
-
import { A as AspectMotion } from './internal-math-
|
|
6
|
-
export { a as ASPECTS, b as ASPECT_BODIES, c as ASPECT_TYPES, d as AspectDefinition, E as ELEMENTS, M as MODALITIES, S as SIGNS, e as SIGN_NAMES, f as SIGN_SLUGS, g as STATIONARY_RELATIVE_SPEED, h as aspectMotion, i as degreeInSign, j as findAspects, m as matchAspect, n as normalizeLongitude, s as separation, k as signForLongitude, l as signIndexForLongitude } from './internal-math-
|
|
7
|
-
export { A as AngleInput, H as HOUSE_SYSTEMS, P as PLACIDUS_POLAR_FALLBACK, a as POLAR_FALLBACK, b as POLAR_UNDEFINED_HOUSE_SYSTEMS, c as alcabitiusCusps, d as campanusCusps, e as computeAngles, f as computeHouses, g as eastPointOf, h as equalCusps, i as equalMcCusps, j as houseOf, k as isPolarUndefinedHouseSystem, l as kochCusps, m as meanObliquity, n as meridianCusps, o as morinusCusps, p as placidusCusps, q as porphyryCusps, r as ramcOf, s as regiomontanusCusps, t as topocentricCusps, v as vehlowCusps, u as vertexOf, w as wholeSignCusps } from './houses-
|
|
1
|
+
export { C as ChartDeclinations, D as DECLINATION_ORB, a as DECLINATION_ORB_LUMINARY, b as DEFAULT_DECLINATION_ORB_POLICY, c as DeclinationAspect, d as DeclinationAspectType, e as DeclinationBody, f as DeclinationOrbPolicy, g as DeclinationRow, h as Declinations, E as EquatorialCoordinates, N as NatalSource, R as RA_POLE_TOLERANCE, i as ReturnSeason, S as SUN_BOUND_LATITUDE, j as SaturnReturnResult, k as SaturnReturnSource, l as chartDeclinations, m as chartPoints, n as declinationOf, o as declinationOrb, p as declinationsForBodies, q as eclipticToEquatorial, r as findDeclinationAspects, s as findLongitudeCrossings, t as groupIntoSeasons, u as moonPhase, v as natalChart, w as positions, x as saturnReturn, y as searchLongitudeCrossings, z as synastry, A as transits } from './api-G8RVGizH.js';
|
|
2
|
+
export { D as DefaultEphemeris, d as DefaultEphemerisName, e as defaultEphemeris, s as setDefaultEphemeris, w as withEphemeris } from './ephemeris-Bnmowcsk.js';
|
|
3
|
+
import { e as DateInput, c as BodyPosition, j as Sect, k as MinimalBody, l as Element, I as InterAspect, m as Modality, n as PairSummary } from './types-CkuiCcsV.js';
|
|
4
|
+
export { A as Angles, o as Aspect, f as AspectType, h as BirthInput, B as BodyName, d as Chart, g as ChartFlag, C as ChartInput, i as ChartPoints, p as ENGINE_VERSION, q as EPHEMERIS, E as EphemerisFallback, b as HouseNumber, H as HouseSystem, a as Houses, r as InstantFlag, M as MoonPhase, s as MoonPhaseName, t as PointName, u as PointPosition, v as Polarity, P as PositionSource, w as SignDefinition, x as SourceBody, S as SynastryResult, T as TransitResult, Z as ZodiacSign } from './types-CkuiCcsV.js';
|
|
5
|
+
import { A as AspectMotion } from './internal-math-rq6do9IR.js';
|
|
6
|
+
export { a as ASPECTS, b as ASPECT_BODIES, c as ASPECT_TYPES, d as AspectDefinition, E as ELEMENTS, M as MODALITIES, S as SIGNS, e as SIGN_NAMES, f as SIGN_SLUGS, g as STATIONARY_RELATIVE_SPEED, h as aspectMotion, i as degreeInSign, j as findAspects, m as matchAspect, n as normalizeLongitude, s as separation, k as signForLongitude, l as signIndexForLongitude } from './internal-math-rq6do9IR.js';
|
|
7
|
+
export { A as AngleInput, H as HOUSE_SYSTEMS, P as PLACIDUS_POLAR_FALLBACK, a as POLAR_FALLBACK, b as POLAR_UNDEFINED_HOUSE_SYSTEMS, c as alcabitiusCusps, d as campanusCusps, e as computeAngles, f as computeHouses, g as eastPointOf, h as equalCusps, i as equalMcCusps, j as houseOf, k as isPolarUndefinedHouseSystem, l as kochCusps, m as meanObliquity, n as meridianCusps, o as morinusCusps, p as placidusCusps, q as porphyryCusps, r as ramcOf, s as regiomontanusCusps, t as topocentricCusps, v as vehlowCusps, u as vertexOf, w as wholeSignCusps } from './houses-CAiYEICK.js';
|
|
8
8
|
export { DELTA_T_MODEL, DELTA_T_TABLE, DeltaT, DeltaTSegment, DeltaTTable, deltaT, deltaTAt } from './deltat.js';
|
|
9
|
-
export { D as DELTA_T_IERS_MODEL, L as LeapSeconds, T as TimeScale, a as TimeScaleName, U as Ut1MinusUtc } from './time-scale-
|
|
9
|
+
export { D as DELTA_T_IERS_MODEL, L as LeapSeconds, T as TimeScale, a as TimeScaleName, U as Ut1MinusUtc } from './time-scale-9vmKQPCn.js';
|
|
10
10
|
export { E as EPHEMERIS_SPAN, R as REFERENCE_SPAN, o as outsideReferenceSpan } from './reference-span-CILpclrz.js';
|
|
11
11
|
export { BodyLongitudeAt, CrossingSearchOptions, CrossingSearchResult, LongitudeCrossing, findLongitudeCrossingsWith, searchLongitudeCrossingsWith } from './crossings.js';
|
|
12
12
|
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
PROGRESSION_DAYS_PER_YEAR,
|
|
3
3
|
progressedBodies,
|
|
4
4
|
progressedInstant
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FXNA2TJM.js";
|
|
6
6
|
import {
|
|
7
7
|
chartDeclinations,
|
|
8
8
|
chartPoints,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
summarizePair,
|
|
20
20
|
synastry,
|
|
21
21
|
transits
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-EEKVS6W7.js";
|
|
23
23
|
import {
|
|
24
24
|
DECLINATION_ORB,
|
|
25
25
|
DECLINATION_ORB_LUMINARY,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
setDefaultEphemeris,
|
|
52
52
|
signOf,
|
|
53
53
|
withEphemeris
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-PU4HNPRX.js";
|
|
55
55
|
import "./chunk-CPALRSPC.js";
|
|
56
56
|
import {
|
|
57
57
|
ASPECTS,
|
|
@@ -64,21 +64,21 @@ import {
|
|
|
64
64
|
findAspects,
|
|
65
65
|
matchAspect,
|
|
66
66
|
separation
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import "./chunk-
|
|
67
|
+
} from "./chunk-QLQRN6RY.js";
|
|
68
|
+
import "./chunk-EEW7746S.js";
|
|
69
69
|
import {
|
|
70
70
|
DELTA_T_IERS_MODEL,
|
|
71
71
|
EPHEMERIS_SPAN,
|
|
72
72
|
REFERENCE_SPAN,
|
|
73
73
|
outsideReferenceSpan
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-M65JXRFN.js";
|
|
75
75
|
import {
|
|
76
76
|
findLongitudeCrossingsWith,
|
|
77
77
|
searchLongitudeCrossingsWith
|
|
78
78
|
} from "./chunk-TSS2SZWQ.js";
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
79
|
+
import "./chunk-UXY4RU57.js";
|
|
80
|
+
import "./chunk-HNVGWN3S.js";
|
|
81
|
+
import "./chunk-CV53HA7R.js";
|
|
82
82
|
import {
|
|
83
83
|
HOUSE_SYSTEMS,
|
|
84
84
|
PLACIDUS_POLAR_FALLBACK,
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
vehlowCusps,
|
|
106
106
|
vertexOf,
|
|
107
107
|
wholeSignCusps
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-SCRO6HWB.js";
|
|
109
109
|
import {
|
|
110
110
|
ELEMENTS,
|
|
111
111
|
MODALITIES,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
deltaT,
|
|
124
124
|
deltaTAt
|
|
125
125
|
} from "./chunk-BHJXUY67.js";
|
|
126
|
-
import "./chunk-
|
|
126
|
+
import "./chunk-4RCOOAGI.js";
|
|
127
127
|
|
|
128
128
|
// src/configured-aspects.ts
|
|
129
129
|
var ASPECT_POLICY_SCHEMA = "zodiacs.aspect-policy.v1";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as AspectType, c as BodyPosition, o as Aspect, Z as ZodiacSign,
|
|
2
|
-
import './houses-
|
|
1
|
+
import { f as AspectType, c as BodyPosition, o as Aspect, Z as ZodiacSign, w as SignDefinition } from './types-CkuiCcsV.js';
|
|
2
|
+
import './houses-CAiYEICK.js';
|
|
3
3
|
|
|
4
4
|
interface AspectDefinition {
|
|
5
5
|
readonly type: AspectType;
|
package/dist/internal-math.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { a as ASPECTS, b as ASPECT_BODIES, c as ASPECT_TYPES, d as AspectDefinition, A as AspectMotion, g as STATIONARY_RELATIVE_SPEED, h as aspectMotion, j as findAspects, m as matchAspect, n as normalizeLongitude, s as separation } from './internal-math-
|
|
2
|
-
export { A as AngleInput, H as HOUSE_SYSTEMS, P as PLACIDUS_POLAR_FALLBACK, a as POLAR_FALLBACK, b as POLAR_UNDEFINED_HOUSE_SYSTEMS, c as alcabitiusCusps, d as campanusCusps, e as computeAngles, f as computeHouses, g as eastPointOf, h as equalCusps, i as equalMcCusps, j as houseOf, k as isPolarUndefinedHouseSystem, l as kochCusps, m as meanObliquity, n as meridianCusps, o as morinusCusps, p as placidusCusps, q as porphyryCusps, r as ramcOf, s as regiomontanusCusps, t as topocentricCusps, v as vehlowCusps, u as vertexOf, w as wholeSignCusps } from './houses-
|
|
3
|
-
export { A as Angles, o as Aspect, f as AspectType, B as BodyName, c as BodyPosition, d as Chart, g as ChartFlag, C as ChartInput, p as ENGINE_VERSION, b as HouseNumber, H as HouseSystem, a as Houses } from './types-
|
|
1
|
+
export { a as ASPECTS, b as ASPECT_BODIES, c as ASPECT_TYPES, d as AspectDefinition, A as AspectMotion, g as STATIONARY_RELATIVE_SPEED, h as aspectMotion, j as findAspects, m as matchAspect, n as normalizeLongitude, s as separation } from './internal-math-rq6do9IR.js';
|
|
2
|
+
export { A as AngleInput, H as HOUSE_SYSTEMS, P as PLACIDUS_POLAR_FALLBACK, a as POLAR_FALLBACK, b as POLAR_UNDEFINED_HOUSE_SYSTEMS, c as alcabitiusCusps, d as campanusCusps, e as computeAngles, f as computeHouses, g as eastPointOf, h as equalCusps, i as equalMcCusps, j as houseOf, k as isPolarUndefinedHouseSystem, l as kochCusps, m as meanObliquity, n as meridianCusps, o as morinusCusps, p as placidusCusps, q as porphyryCusps, r as ramcOf, s as regiomontanusCusps, t as topocentricCusps, v as vehlowCusps, u as vertexOf, w as wholeSignCusps } from './houses-CAiYEICK.js';
|
|
3
|
+
export { A as Angles, o as Aspect, f as AspectType, B as BodyName, c as BodyPosition, d as Chart, g as ChartFlag, C as ChartInput, p as ENGINE_VERSION, b as HouseNumber, H as HouseSystem, a as Houses } from './types-CkuiCcsV.js';
|
|
4
4
|
import './deltat.js';
|
|
5
|
-
import './time-scale-
|
|
5
|
+
import './time-scale-9vmKQPCn.js';
|
package/dist/internal-math.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
findAspects,
|
|
9
9
|
matchAspect,
|
|
10
10
|
separation
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QLQRN6RY.js";
|
|
12
12
|
import {
|
|
13
13
|
HOUSE_SYSTEMS,
|
|
14
14
|
PLACIDUS_POLAR_FALLBACK,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
vehlowCusps,
|
|
36
36
|
vertexOf,
|
|
37
37
|
wholeSignCusps
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-SCRO6HWB.js";
|
|
39
39
|
import {
|
|
40
40
|
normalizeLongitude
|
|
41
41
|
} from "./chunk-RMBWKZI2.js";
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as BodyName, D as DetailedResult } from './types-
|
|
2
|
-
export { E as EphemerisFallback } from './types-
|
|
3
|
-
export { b as bodyLongitude, c as computeBodies, a as computeChart, l as longitudeSpeed } from './ephemeris-
|
|
1
|
+
import { B as BodyName, D as DetailedResult } from './types-CkuiCcsV.js';
|
|
2
|
+
export { E as EphemerisFallback } from './types-CkuiCcsV.js';
|
|
3
|
+
export { b as bodyLongitude, c as computeBodies, a as computeChart, l as longitudeSpeed } from './ephemeris-Bnmowcsk.js';
|
|
4
4
|
import './deltat.js';
|
|
5
|
-
import './time-scale-
|
|
5
|
+
import './time-scale-9vmKQPCn.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* `bodyLongitude`'s longitude as `value`, with the ephemeris it came from and
|
package/dist/internal.js
CHANGED
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
ephemerisOver,
|
|
6
6
|
fallbacksAt,
|
|
7
7
|
longitudeSpeed
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-PU4HNPRX.js";
|
|
9
|
+
import "./chunk-QLQRN6RY.js";
|
|
10
|
+
import "./chunk-EEW7746S.js";
|
|
11
|
+
import "./chunk-M65JXRFN.js";
|
|
12
|
+
import "./chunk-UXY4RU57.js";
|
|
13
|
+
import "./chunk-HNVGWN3S.js";
|
|
14
|
+
import "./chunk-CV53HA7R.js";
|
|
15
|
+
import "./chunk-SCRO6HWB.js";
|
|
16
16
|
import "./chunk-RMBWKZI2.js";
|
|
17
17
|
import "./chunk-BHJXUY67.js";
|
|
18
18
|
|
package/dist/receipt.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './time-scale-
|
|
2
|
-
import './types-
|
|
1
|
+
import './time-scale-9vmKQPCn.js';
|
|
2
|
+
import './types-CkuiCcsV.js';
|
|
3
3
|
import './deltat.js';
|
|
4
|
-
export { a as NATAL_DIAGNOSTIC_SCHEMA, b as NATAL_ENVELOPE_LIMITS, c as NATAL_ENVELOPE_SCHEMA, d as NATAL_RECEIPT_CONVENTION_SETS, e as NATAL_RECEIPT_SCHEMA, f as NatalAnglesRecord, g as NatalAspectRecord, h as NatalBodyRecord, i as NatalConventionSet, j as NatalCoverage, k as NatalDeltaTRecord, l as NatalDiagnostic, m as NatalEnvelope, n as NatalEnvelopeContext, o as NatalEnvelopeError, p as NatalEnvelopeErrorCode, q as NatalEnvelopeParseResult, r as NatalHousesRecord, s as NatalJsonObject, t as NatalJsonValue, N as NatalLocalResolution, u as NatalProvenanceClaims, v as NatalReceipt, w as NatalRecordedResult, x as NatalReference, y as NatalTimeScaleRecord, z as NatalZoneTransition, A as createNatalEnvelope, B as natalReplayInput, C as parseNatalEnvelope, D as redactNatalEnvelope, E as serializeNatalEnvelope } from './zone-history-
|
|
4
|
+
export { a as NATAL_DIAGNOSTIC_SCHEMA, b as NATAL_ENVELOPE_LIMITS, c as NATAL_ENVELOPE_SCHEMA, d as NATAL_RECEIPT_CONVENTION_SETS, e as NATAL_RECEIPT_SCHEMA, f as NatalAnglesRecord, g as NatalAspectRecord, h as NatalBodyRecord, i as NatalConventionSet, j as NatalCoverage, k as NatalDeltaTRecord, l as NatalDiagnostic, m as NatalEnvelope, n as NatalEnvelopeContext, o as NatalEnvelopeError, p as NatalEnvelopeErrorCode, q as NatalEnvelopeParseResult, r as NatalHousesRecord, s as NatalJsonObject, t as NatalJsonValue, N as NatalLocalResolution, u as NatalProvenanceClaims, v as NatalReceipt, w as NatalRecordedResult, x as NatalReference, y as NatalTimeScaleRecord, z as NatalZoneTransition, A as createNatalEnvelope, B as natalReplayInput, C as parseNatalEnvelope, D as redactNatalEnvelope, E as serializeNatalEnvelope } from './zone-history-2UYUKA43.js';
|