@zodiacs/engine 1.1.0 → 2.0.0-rc.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +224 -0
  2. package/LICENSING.md +4 -0
  3. package/README.md +71 -30
  4. package/dist/{api-ChL1N2Sr.d.ts → api-C_SVd9BJ.d.ts} +7 -2
  5. package/dist/{ayanamsa-ClFzkKmV.d.ts → ayanamsa-Clgkekhh.d.ts} +1 -1
  6. package/dist/calc.d.ts +3 -2
  7. package/dist/calc.js +18 -10
  8. package/dist/{chunk-Y4E3WJU5.js → chunk-CV53HA7R.js} +1 -1
  9. package/dist/{chunk-2PZYJQV5.js → chunk-EEW7746S.js} +1 -1
  10. package/dist/{chunk-WBTWY2OB.js → chunk-FVGA776A.js} +2 -2
  11. package/dist/{chunk-YPU3MDNI.js → chunk-HNVGWN3S.js} +1 -1
  12. package/dist/{chunk-TZVPZHZM.js → chunk-IXFUYEUF.js} +28 -11
  13. package/dist/{chunk-4XOYTBLS.js → chunk-LWZS7HI3.js} +1 -1
  14. package/dist/{chunk-LNGURVNH.js → chunk-N4UQLCBN.js} +1 -1
  15. package/dist/{chunk-7Y2F2IWN.js → chunk-NX4PHQBL.js} +16 -6
  16. package/dist/{chunk-QLIEEICB.js → chunk-PNXIA7MI.js} +24 -10
  17. package/dist/{chunk-NNOSOOWS.js → chunk-SCRO6HWB.js} +4 -2
  18. package/dist/{chunk-B4M2Y7FT.js → chunk-T6F4FYYS.js} +1 -1
  19. package/dist/{chunk-767FTO7O.js → chunk-UXY4RU57.js} +1 -1
  20. package/dist/{chunk-BMDASNPB.js → chunk-WONTOC5W.js} +2 -1
  21. package/dist/crossings.d.ts +1 -1
  22. package/dist/de440-pack.d.ts +1 -1
  23. package/dist/de440-pack.js +4 -4
  24. package/dist/de440.d.ts +1 -1
  25. package/dist/de440.js +3 -3
  26. package/dist/{ephemeris-exTSqBgb.d.ts → ephemeris-D1lM832F.d.ts} +5 -1
  27. package/dist/geo.d.ts +14 -5
  28. package/dist/geo.js +2 -2
  29. package/dist/houses-extra.d.ts +2 -2
  30. package/dist/{houses-Bh7GCnPi.d.ts → houses-icK01yXi.d.ts} +1 -1
  31. package/dist/index.d.ts +7 -7
  32. package/dist/index.js +10 -10
  33. package/dist/{internal-math-CxenuGfm.d.ts → internal-math-BGX23p4h.d.ts} +2 -2
  34. package/dist/internal-math.d.ts +3 -3
  35. package/dist/internal-math.js +2 -2
  36. package/dist/internal.d.ts +3 -3
  37. package/dist/internal.js +7 -7
  38. package/dist/receipt.d.ts +2 -2
  39. package/dist/receipt.js +15 -4
  40. package/dist/{rulers-CSSWtiWF.d.ts → rulers-CpS9qkvu.d.ts} +1 -1
  41. package/dist/sky.d.ts +3 -3
  42. package/dist/sky.js +8 -8
  43. package/dist/techniques.d.ts +2 -2
  44. package/dist/techniques.js +10 -10
  45. package/dist/time.js +3 -3
  46. package/dist/timing.d.ts +4 -4
  47. package/dist/timing.js +10 -10
  48. package/dist/{types-DpPdtXgO.d.ts → types-BCnyWBQZ.d.ts} +21 -4
  49. package/dist/vedic.d.ts +3 -3
  50. package/dist/vedic.js +10 -10
  51. package/dist/window.d.ts +1 -1
  52. package/dist/window.js +8 -8
  53. package/dist/{zone-history-BxmDCcTK.d.ts → zone-history-0XzMGx9V.d.ts} +1 -1
  54. package/package.json +1 -1
@@ -44,12 +44,13 @@ function validateBirthSettings(birth) {
44
44
  var DERIVED_FLAGS = [
45
45
  "no-time",
46
46
  "polar-fallback",
47
+ "polar-angles",
47
48
  "outside-reference-span",
48
49
  "delta-t-extrapolated",
49
50
  "de440-unavailable",
50
51
  "outside-de440-span"
51
52
  ];
52
- var FLAGS = ["dst-gap", "dst-fold", "lmt", ...DERIVED_FLAGS];
53
+ var FLAGS = ["dst-gap", "dst-fold", "lmt", "calendar-unknown", ...DERIVED_FLAGS];
53
54
  function snapshotFlags(value) {
54
55
  const length = Array.isArray(value) ? Object.getOwnPropertyDescriptor(value, "length")?.value : void 0;
55
56
  if (typeof length !== "number" || !Number.isInteger(length) || length < 0 || length > 64) {
@@ -1,4 +1,4 @@
1
- import { B as BodyName } from './types-DpPdtXgO.js';
1
+ import { B as BodyName } from './types-BCnyWBQZ.js';
2
2
  import './deltat.js';
3
3
  import './time-scale-DIFNa0gz.js';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { De440Source } from './de440.js';
2
- import './types-DpPdtXgO.js';
2
+ import './types-BCnyWBQZ.js';
3
3
  import './deltat.js';
4
4
  import './time-scale-DIFNa0gz.js';
5
5
 
@@ -3,10 +3,10 @@ import {
3
3
  de440PackBytes,
4
4
  openShippedDe440Pack,
5
5
  shippedDe440Source
6
- } from "./chunk-767FTO7O.js";
7
- import "./chunk-YPU3MDNI.js";
8
- import "./chunk-Y4E3WJU5.js";
9
- import "./chunk-NNOSOOWS.js";
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,4 +1,4 @@
1
- import { P as PositionSource } from './types-DpPdtXgO.js';
1
+ import { P as PositionSource } from './types-BCnyWBQZ.js';
2
2
  import './deltat.js';
3
3
  import './time-scale-DIFNa0gz.js';
4
4
 
package/dist/de440.js CHANGED
@@ -5,9 +5,9 @@ import {
5
5
  REDUCED_BODIES,
6
6
  openDe440Pack,
7
7
  openDe440PackSync
8
- } from "./chunk-YPU3MDNI.js";
9
- import "./chunk-Y4E3WJU5.js";
10
- import "./chunk-NNOSOOWS.js";
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-DpPdtXgO.js';
1
+ import { P as PositionSource, B as BodyName, c as BodyPosition, C as ChartInput, d as Chart } from './types-BCnyWBQZ.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,5 +1,5 @@
1
- import { H as HouseSystem, h as BirthInput } from './types-DpPdtXgO.js';
2
- import { T as TransitionCause, N as NatalLocalResolution } from './zone-history-BxmDCcTK.js';
1
+ import { H as HouseSystem, h as BirthInput } from './types-BCnyWBQZ.js';
2
+ import { T as TransitionCause, N as NatalLocalResolution } from './zone-history-0XzMGx9V.js';
3
3
  import './deltat.js';
4
4
  import './time-scale-DIFNa0gz.js';
5
5
 
@@ -97,7 +97,11 @@ interface LocalTimeOptions {
97
97
  longitude?: number | undefined;
98
98
  /** The calendar `date` is written in; "gregorian" by default. */
99
99
  calendar?: CalendarName | undefined;
100
- /** ISO 3166-1 alpha-2 code, or the country's name in tzdata's iso3166.tab, for `calendarNote`. */
100
+ /**
101
+ * ISO 3166-1 alpha-2 code, or the country's name in tzdata's iso3166.tab, for `calendarNote`. Without a country
102
+ * the table dates, a date that one of the adoption table's changeovers skipped, and the zone does not rule out,
103
+ * is flagged "calendar-unknown" (docs/time.md).
104
+ */
101
105
  country?: string | undefined;
102
106
  /**
103
107
  * Which instant a wall time the clock showed twice takes: "earlier" (the
@@ -121,8 +125,13 @@ interface LocalTimeResolution {
121
125
  utc: Date;
122
126
  /** Minutes east at the resolved instant; may be fractional. */
123
127
  offsetMinutes: number;
124
- /** A gap or fold of any cause ("dst-" names kept for compatibility; see `jump`), and a local mean time clock. */
125
- flags: ("dst-gap" | "dst-fold" | "lmt")[];
128
+ /**
129
+ * A gap or fold of any cause ("dst-" names kept for compatibility; see `jump`), a local mean time clock, and
130
+ * "calendar-unknown": no `country` the table dates, and a date that one of the adoption table's changeovers
131
+ * skipped and the zone does not rule out, so whether it was in civil use where it was written is not known
132
+ * (docs/time.md).
133
+ */
134
+ flags: ("dst-gap" | "dst-fold" | "lmt" | "calendar-unknown")[];
126
135
  /** The proleptic Gregorian date resolved. */
127
136
  date: string;
128
137
  writtenDate: string;
package/dist/geo.js CHANGED
@@ -11,12 +11,12 @@ import {
11
11
  resolveLocalBirth,
12
12
  resolveLocalToUtc,
13
13
  zoneOffsetAt
14
- } from "./chunk-7Y2F2IWN.js";
14
+ } from "./chunk-NX4PHQBL.js";
15
15
  import {
16
16
  gregorianToJulian,
17
17
  julianToGregorian
18
18
  } from "./chunk-KFTJMMG7.js";
19
- import "./chunk-BMDASNPB.js";
19
+ import "./chunk-WONTOC5W.js";
20
20
 
21
21
  // src/geo/geonames.ts
22
22
  var fold = (value) => value.normalize("NFD").replace(/[\u0300-\u036f]/gu, "").toLowerCase();
@@ -1,5 +1,5 @@
1
- import { A as AngleInput } from './houses-Bh7GCnPi.js';
2
- import { H as HouseSystem, A as Angles } from './types-DpPdtXgO.js';
1
+ import { A as AngleInput } from './houses-icK01yXi.js';
2
+ import { H as HouseSystem, A as Angles } from './types-BCnyWBQZ.js';
3
3
  import './deltat.js';
4
4
  import './time-scale-DIFNa0gz.js';
5
5
 
@@ -1,4 +1,4 @@
1
- import { A as Angles, H as HouseSystem, a as Houses, b as HouseNumber } from './types-DpPdtXgO.js';
1
+ import { A as Angles, H as HouseSystem, a as Houses, b as HouseNumber } from './types-BCnyWBQZ.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/index.d.ts CHANGED
@@ -1,10 +1,10 @@
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-ChL1N2Sr.js';
2
- export { D as DefaultEphemeris, d as DefaultEphemerisName, e as defaultEphemeris, s as setDefaultEphemeris, w as withEphemeris } from './ephemeris-exTSqBgb.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-DpPdtXgO.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, M as MoonPhase, r as MoonPhaseName, s as PointName, t as PointPosition, u as Polarity, P as PositionSource, v as SignDefinition, w as SourceBody, S as SynastryResult, T as TransitResult, Z as ZodiacSign } from './types-DpPdtXgO.js';
5
- import { A as AspectMotion } from './internal-math-CxenuGfm.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-CxenuGfm.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-Bh7GCnPi.js';
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-C_SVd9BJ.js';
2
+ export { D as DefaultEphemeris, d as DefaultEphemerisName, e as defaultEphemeris, s as setDefaultEphemeris, w as withEphemeris } from './ephemeris-D1lM832F.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-BCnyWBQZ.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-BCnyWBQZ.js';
5
+ import { A as AspectMotion } from './internal-math-BGX23p4h.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-BGX23p4h.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-icK01yXi.js';
8
8
  export { DELTA_T_MODEL, DELTA_T_TABLE, DeltaT, DeltaTSegment, DeltaTTable, deltaT, deltaTAt } from './deltat.js';
9
9
  export { D as DELTA_T_IERS_MODEL, L as LeapSeconds, T as TimeScale, a as TimeScaleName, U as Ut1MinusUtc } from './time-scale-DIFNa0gz.js';
10
10
  export { E as EPHEMERIS_SPAN, R as REFERENCE_SPAN, o as outsideReferenceSpan } from './reference-span-CILpclrz.js';
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-LNGURVNH.js";
5
+ } from "./chunk-N4UQLCBN.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-TZVPZHZM.js";
22
+ } from "./chunk-IXFUYEUF.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-QLIEEICB.js";
54
+ } from "./chunk-PNXIA7MI.js";
55
55
  import "./chunk-CPALRSPC.js";
56
56
  import {
57
57
  ASPECTS,
@@ -64,8 +64,8 @@ import {
64
64
  findAspects,
65
65
  matchAspect,
66
66
  separation
67
- } from "./chunk-B4M2Y7FT.js";
68
- import "./chunk-2PZYJQV5.js";
67
+ } from "./chunk-T6F4FYYS.js";
68
+ import "./chunk-EEW7746S.js";
69
69
  import {
70
70
  DELTA_T_IERS_MODEL,
71
71
  EPHEMERIS_SPAN,
@@ -76,9 +76,9 @@ import {
76
76
  findLongitudeCrossingsWith,
77
77
  searchLongitudeCrossingsWith
78
78
  } from "./chunk-TSS2SZWQ.js";
79
- import "./chunk-767FTO7O.js";
80
- import "./chunk-YPU3MDNI.js";
81
- import "./chunk-Y4E3WJU5.js";
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-NNOSOOWS.js";
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-BMDASNPB.js";
126
+ import "./chunk-WONTOC5W.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, v as SignDefinition } from './types-DpPdtXgO.js';
2
- import './houses-Bh7GCnPi.js';
1
+ import { f as AspectType, c as BodyPosition, o as Aspect, Z as ZodiacSign, w as SignDefinition } from './types-BCnyWBQZ.js';
2
+ import './houses-icK01yXi.js';
3
3
 
4
4
  interface AspectDefinition {
5
5
  readonly type: AspectType;
@@ -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-CxenuGfm.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-Bh7GCnPi.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-DpPdtXgO.js';
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-BGX23p4h.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-icK01yXi.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-BCnyWBQZ.js';
4
4
  import './deltat.js';
5
5
  import './time-scale-DIFNa0gz.js';
@@ -8,7 +8,7 @@ import {
8
8
  findAspects,
9
9
  matchAspect,
10
10
  separation
11
- } from "./chunk-B4M2Y7FT.js";
11
+ } from "./chunk-T6F4FYYS.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-NNOSOOWS.js";
38
+ } from "./chunk-SCRO6HWB.js";
39
39
  import {
40
40
  normalizeLongitude
41
41
  } from "./chunk-RMBWKZI2.js";
@@ -1,6 +1,6 @@
1
- import { B as BodyName, D as DetailedResult } from './types-DpPdtXgO.js';
2
- export { E as EphemerisFallback } from './types-DpPdtXgO.js';
3
- export { b as bodyLongitude, c as computeBodies, a as computeChart, l as longitudeSpeed } from './ephemeris-exTSqBgb.js';
1
+ import { B as BodyName, D as DetailedResult } from './types-BCnyWBQZ.js';
2
+ export { E as EphemerisFallback } from './types-BCnyWBQZ.js';
3
+ export { b as bodyLongitude, c as computeBodies, a as computeChart, l as longitudeSpeed } from './ephemeris-D1lM832F.js';
4
4
  import './deltat.js';
5
5
  import './time-scale-DIFNa0gz.js';
6
6
 
package/dist/internal.js CHANGED
@@ -5,14 +5,14 @@ import {
5
5
  ephemerisOver,
6
6
  fallbacksAt,
7
7
  longitudeSpeed
8
- } from "./chunk-QLIEEICB.js";
9
- import "./chunk-B4M2Y7FT.js";
10
- import "./chunk-2PZYJQV5.js";
8
+ } from "./chunk-PNXIA7MI.js";
9
+ import "./chunk-T6F4FYYS.js";
10
+ import "./chunk-EEW7746S.js";
11
11
  import "./chunk-B5LKF437.js";
12
- import "./chunk-767FTO7O.js";
13
- import "./chunk-YPU3MDNI.js";
14
- import "./chunk-Y4E3WJU5.js";
15
- import "./chunk-NNOSOOWS.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
1
  import './time-scale-DIFNa0gz.js';
2
- import './types-DpPdtXgO.js';
2
+ import './types-BCnyWBQZ.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-BxmDCcTK.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-0XzMGx9V.js';
package/dist/receipt.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  ASPECT_TYPES,
8
8
  EPHEMERIS,
9
9
  aspectMotion
10
- } from "./chunk-B4M2Y7FT.js";
10
+ } from "./chunk-T6F4FYYS.js";
11
11
  import {
12
12
  DELTA_T_IERS_MODEL,
13
13
  TIME_SCALE_NAMES,
@@ -275,9 +275,12 @@ var BODIES = [
275
275
  ];
276
276
  var FLAGS_RC7 = ["dst-gap", "dst-fold", "lmt", "no-time", "polar-fallback"];
277
277
  var FLAGS = [...FLAGS_RC7, "outside-reference-span"];
278
- var FLAGS_TIME_BASIS = [...FLAGS, "delta-t-extrapolated", "de440-unavailable", "outside-de440-span"];
278
+ var FLAGS_TIME_BASIS = [...FLAGS, "delta-t-extrapolated", "de440-unavailable", "outside-de440-span", "calendar-unknown", "polar-angles"];
279
279
  var FALLBACK_FLAGS = ["de440-unavailable", "outside-de440-span"];
280
280
  var TIME_FLAGS = ["dst-gap", "dst-fold", "lmt"];
281
+ var TIME_FLAGS_TIME_BASIS = [...TIME_FLAGS, "calendar-unknown"];
282
+ var CALENDAR_UNKNOWN_DATES = { from: "1582-10-05", to: "1918-02-26" };
283
+ var CALENDAR_UNKNOWN_INSTANTS = { from: "1582-10-04", to: "1918-02-28" };
281
284
  var HOUSE_SYSTEMS = [
282
285
  "whole",
283
286
  "placidus",
@@ -484,6 +487,7 @@ var DELTA_T_SEGMENTS = [
484
487
  "extrapolated"
485
488
  ];
486
489
  var J2000_MS = Date.UTC(2e3, 0, 1, 12);
490
+ var meanObliquity = (t) => (84381.406 - 46.836769 * t - 1831e-7 * t * t + 20034e-7 * t ** 3 - 576e-9 * t ** 4 - 434e-10 * t ** 5) / 3600;
487
491
  var IERS_SEGMENTS = ["observed", "predicted", "fallback"];
488
492
  function validateDeltaT(value, instant, timeBasis2) {
489
493
  const deltaT = record(value);
@@ -727,7 +731,7 @@ function validateLocalRecord(local, receipt, date, offset, shift, later) {
727
731
  const fold = flags.includes("dst-fold");
728
732
  if (
729
733
  // A local time resolves to UTC.
730
- receipt.timeScale !== "utc" || written !== null && (!parseCalendarDate(written, calendar) || (calendar === "gregorian" ? written : julianToGregorian(written)) !== date) || form !== void 0 && form !== "host" && version2 === null || flags.includes("lmt") !== lmt || local.transition === null && (gap || fold)
734
+ receipt.timeScale !== "utc" || written !== null && (!parseCalendarDate(written, calendar) || (calendar === "gregorian" ? written : julianToGregorian(written)) !== date) || form !== void 0 && form !== "host" && version2 === null || flags.includes("lmt") !== lmt || flags.includes("calendar-unknown") && !(date >= CALENDAR_UNKNOWN_DATES.from && date <= CALENDAR_UNKNOWN_DATES.to) || local.transition === null && (gap || fold)
731
735
  )
732
736
  fail("invalid_context");
733
737
  let before2 = null;
@@ -892,7 +896,10 @@ function validateEnvelope(input) {
892
896
  fail("inconsistent_result");
893
897
  if (result.houses && result.angles && TURNING_WITH_ASCENDANT.includes(result.houses.system) && !angularClose(result.houses.cusps[9], result.angles.mc) && Math.abs(receipt.coordinates.latitude) < 65)
894
898
  fail("inconsistent_result");
895
- const inputFlags = flagList(receipt.inputFlags, TIME_FLAGS);
899
+ const inputFlags = flagList(receipt.inputFlags, timeBasis2 ? TIME_FLAGS_TIME_BASIS : TIME_FLAGS);
900
+ const instant = receipt.instant;
901
+ if (inputFlags.includes("calendar-unknown") && !(instant >= CALENDAR_UNKNOWN_INSTANTS.from && instant < CALENDAR_UNKNOWN_INSTANTS.to))
902
+ fail("inconsistent_result");
896
903
  const resultFlags = flagList(receipt.resultFlags, timeBasis2 ? FLAGS_TIME_BASIS : current ? FLAGS : FLAGS_RC7);
897
904
  const expected = [...inputFlags];
898
905
  if (!timeKnown) expected.push("no-time");
@@ -906,6 +913,10 @@ function validateEnvelope(input) {
906
913
  const engineVersion = version(engine.version);
907
914
  if (timeBasis2 && (scale !== "tt" || result.houses) && result.timeScale?.basis === "delta-t" && result.deltaT?.segment === "extrapolated" && (resultFlags.includes("delta-t-extrapolated") || compareVersions(engineVersion, "1.1.0-rc.9") > 0))
908
915
  expected.push("delta-t-extrapolated");
916
+ if (resultFlags.includes("polar-angles") && result.angles && Math.abs(receipt.coordinates.latitude) >= 90 - meanObliquity(
917
+ (Date.parse(receipt.instant) + (scale === "tt" ? 0 : (result.deltaT?.seconds ?? 0) * 1e3) - J2000_MS) / 315576e7
918
+ ) - 3e-3)
919
+ expected.push("polar-angles");
909
920
  if (!de440) {
910
921
  for (const reason2 of FALLBACK_FLAGS) if (resultFlags.includes(reason2)) expected.push(reason2);
911
922
  }
@@ -1,4 +1,4 @@
1
- import { Z as ZodiacSign } from './types-DpPdtXgO.js';
1
+ import { Z as ZodiacSign } from './types-BCnyWBQZ.js';
2
2
 
3
3
  /** The seven visible planets of the traditional rulership scheme. */
4
4
  type TraditionalPlanet = "Sun" | "Moon" | "Mercury" | "Venus" | "Mars" | "Jupiter" | "Saturn";
package/dist/sky.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { B as BodyName, e as DateInput } from './types-DpPdtXgO.js';
2
- import { T as TraditionalPlanet } from './rulers-CSSWtiWF.js';
3
- export { C as CHALDEAN_ORDER } from './rulers-CSSWtiWF.js';
1
+ import { B as BodyName, e as DateInput } from './types-BCnyWBQZ.js';
2
+ import { T as TraditionalPlanet } from './rulers-CpS9qkvu.js';
3
+ export { C as CHALDEAN_ORDER } from './rulers-CpS9qkvu.js';
4
4
  import './deltat.js';
5
5
  import './time-scale-DIFNa0gz.js';
6
6
 
package/dist/sky.js CHANGED
@@ -4,27 +4,27 @@ import {
4
4
  import {
5
5
  equatorRows,
6
6
  turn
7
- } from "./chunk-4XOYTBLS.js";
7
+ } from "./chunk-LWZS7HI3.js";
8
8
  import {
9
9
  gastHours,
10
10
  onChartClock,
11
11
  refuseUnderSource
12
- } from "./chunk-QLIEEICB.js";
12
+ } from "./chunk-PNXIA7MI.js";
13
13
  import {
14
14
  dateFrom
15
15
  } from "./chunk-CPALRSPC.js";
16
- import "./chunk-B4M2Y7FT.js";
17
- import "./chunk-2PZYJQV5.js";
16
+ import "./chunk-T6F4FYYS.js";
17
+ import "./chunk-EEW7746S.js";
18
18
  import {
19
19
  outsideReferenceSpan
20
20
  } from "./chunk-B5LKF437.js";
21
21
  import {
22
22
  searchLongitudeCrossingsWith
23
23
  } from "./chunk-TSS2SZWQ.js";
24
- import "./chunk-767FTO7O.js";
25
- import "./chunk-YPU3MDNI.js";
26
- import "./chunk-Y4E3WJU5.js";
27
- import "./chunk-NNOSOOWS.js";
24
+ import "./chunk-UXY4RU57.js";
25
+ import "./chunk-HNVGWN3S.js";
26
+ import "./chunk-CV53HA7R.js";
27
+ import "./chunk-SCRO6HWB.js";
28
28
  import "./chunk-RMBWKZI2.js";
29
29
  import "./chunk-BHJXUY67.js";
30
30
 
@@ -1,5 +1,5 @@
1
- import { E as EphemerisFallback, d as Chart, H as HouseSystem, e as DateInput, D as DetailedResult, B as BodyName, f as AspectType, Z as ZodiacSign, l as Element, j as Sect } from './types-DpPdtXgO.js';
2
- import { N as NatalSource } from './api-ChL1N2Sr.js';
1
+ import { E as EphemerisFallback, d as Chart, H as HouseSystem, e as DateInput, D as DetailedResult, B as BodyName, f as AspectType, Z as ZodiacSign, l as Element, j as Sect } from './types-BCnyWBQZ.js';
2
+ import { N as NatalSource } from './api-C_SVd9BJ.js';
3
3
  import './deltat.js';
4
4
  import './time-scale-DIFNa0gz.js';
5
5
  import './crossings.js';
@@ -2,7 +2,7 @@ import {
2
2
  natalChart,
3
3
  resolvedChart,
4
4
  utcOf
5
- } from "./chunk-TZVPZHZM.js";
5
+ } from "./chunk-IXFUYEUF.js";
6
6
  import {
7
7
  readOptions
8
8
  } from "./chunk-47ERTK5X.js";
@@ -11,7 +11,7 @@ import {
11
11
  ephemerisOver,
12
12
  fallbacksAt,
13
13
  midpoint
14
- } from "./chunk-QLIEEICB.js";
14
+ } from "./chunk-PNXIA7MI.js";
15
15
  import {
16
16
  dateFrom
17
17
  } from "./chunk-CPALRSPC.js";
@@ -19,20 +19,20 @@ import {
19
19
  ASPECTS,
20
20
  ASPECT_BODY_SET,
21
21
  matchAspect
22
- } from "./chunk-B4M2Y7FT.js";
23
- import "./chunk-2PZYJQV5.js";
22
+ } from "./chunk-T6F4FYYS.js";
23
+ import "./chunk-EEW7746S.js";
24
24
  import {
25
25
  outsideReferenceSpan
26
26
  } from "./chunk-B5LKF437.js";
27
27
  import {
28
28
  findLongitudeCrossingsWith
29
29
  } from "./chunk-TSS2SZWQ.js";
30
- import "./chunk-767FTO7O.js";
31
- import "./chunk-YPU3MDNI.js";
32
- import "./chunk-Y4E3WJU5.js";
30
+ import "./chunk-UXY4RU57.js";
31
+ import "./chunk-HNVGWN3S.js";
32
+ import "./chunk-CV53HA7R.js";
33
33
  import {
34
34
  HOUSE_SYSTEMS
35
- } from "./chunk-NNOSOOWS.js";
35
+ } from "./chunk-SCRO6HWB.js";
36
36
  import {
37
37
  SIGNS,
38
38
  SIGN_SLUGS,
@@ -42,9 +42,9 @@ import {
42
42
  import "./chunk-BHJXUY67.js";
43
43
  import {
44
44
  resolveLocalToUtc
45
- } from "./chunk-7Y2F2IWN.js";
45
+ } from "./chunk-NX4PHQBL.js";
46
46
  import "./chunk-KFTJMMG7.js";
47
- import "./chunk-BMDASNPB.js";
47
+ import "./chunk-WONTOC5W.js";
48
48
 
49
49
  // src/techniques/names.ts
50
50
  var BODY_NAMES = [
package/dist/time.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  eclipticFrame,
6
6
  eclipticOfDate,
7
7
  meanEcliptic
8
- } from "./chunk-2PZYJQV5.js";
8
+ } from "./chunk-EEW7746S.js";
9
9
  import {
10
10
  DELTA_T_IERS_MODEL,
11
11
  EPHEMERIS_SPAN,
@@ -15,8 +15,8 @@ import {
15
15
  } from "./chunk-B5LKF437.js";
16
16
  import {
17
17
  tilt
18
- } from "./chunk-Y4E3WJU5.js";
19
- import "./chunk-NNOSOOWS.js";
18
+ } from "./chunk-CV53HA7R.js";
19
+ import "./chunk-SCRO6HWB.js";
20
20
  import "./chunk-RMBWKZI2.js";
21
21
  import "./chunk-BHJXUY67.js";
22
22
 
package/dist/timing.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { T as TraditionalPlanet } from './rulers-CSSWtiWF.js';
2
- export { C as CHALDEAN_ORDER, a as TRADITIONAL_RULERS } from './rulers-CSSWtiWF.js';
3
- import { B as BodyName, s as PointName, Z as ZodiacSign, E as EphemerisFallback, b as HouseNumber, e as DateInput, j as Sect } from './types-DpPdtXgO.js';
4
- import { N as NatalSource } from './api-ChL1N2Sr.js';
1
+ import { T as TraditionalPlanet } from './rulers-CpS9qkvu.js';
2
+ export { C as CHALDEAN_ORDER, a as TRADITIONAL_RULERS } from './rulers-CpS9qkvu.js';
3
+ import { B as BodyName, t as PointName, Z as ZodiacSign, E as EphemerisFallback, b as HouseNumber, e as DateInput, j as Sect } from './types-BCnyWBQZ.js';
4
+ import { N as NatalSource } from './api-C_SVd9BJ.js';
5
5
  import './deltat.js';
6
6
  import './time-scale-DIFNa0gz.js';
7
7
  import './crossings.js';
package/dist/timing.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  PROGRESSION_DAYS_PER_YEAR,
3
3
  progressedBodies,
4
4
  progressedInstant
5
- } from "./chunk-LNGURVNH.js";
5
+ } from "./chunk-N4UQLCBN.js";
6
6
  import {
7
7
  CHALDEAN_ORDER,
8
8
  TRADITIONAL_RULERS
@@ -14,27 +14,27 @@ import {
14
14
  resolvedChart,
15
15
  searchLongitudeCrossings,
16
16
  utcOf
17
- } from "./chunk-TZVPZHZM.js";
17
+ } from "./chunk-IXFUYEUF.js";
18
18
  import {
19
19
  readOptions
20
20
  } from "./chunk-47ERTK5X.js";
21
21
  import {
22
22
  bodyLongitude,
23
23
  fallbacksAt
24
- } from "./chunk-QLIEEICB.js";
24
+ } from "./chunk-PNXIA7MI.js";
25
25
  import {
26
26
  dateFrom
27
27
  } from "./chunk-CPALRSPC.js";
28
- import "./chunk-B4M2Y7FT.js";
29
- import "./chunk-2PZYJQV5.js";
28
+ import "./chunk-T6F4FYYS.js";
29
+ import "./chunk-EEW7746S.js";
30
30
  import {
31
31
  outsideReferenceSpan
32
32
  } from "./chunk-B5LKF437.js";
33
33
  import "./chunk-TSS2SZWQ.js";
34
- import "./chunk-767FTO7O.js";
35
- import "./chunk-YPU3MDNI.js";
36
- import "./chunk-Y4E3WJU5.js";
37
- import "./chunk-NNOSOOWS.js";
34
+ import "./chunk-UXY4RU57.js";
35
+ import "./chunk-HNVGWN3S.js";
36
+ import "./chunk-CV53HA7R.js";
37
+ import "./chunk-SCRO6HWB.js";
38
38
  import {
39
39
  SIGN_SLUGS,
40
40
  degreeInSign,
@@ -43,7 +43,7 @@ import {
43
43
  signIndexForLongitude
44
44
  } from "./chunk-RMBWKZI2.js";
45
45
  import "./chunk-BHJXUY67.js";
46
- import "./chunk-BMDASNPB.js";
46
+ import "./chunk-WONTOC5W.js";
47
47
 
48
48
  // src/timing/shared.ts
49
49
  var DAY_MS = 864e5;