kaabalah 6.16.0 → 6.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -6
- package/dist/astrology/index.d.mts +3423 -148
- package/dist/astrology/index.d.ts +3423 -148
- package/dist/astrology/index.js +849 -59
- package/dist/astrology/index.mjs +4 -2
- package/dist/{chunk-MWLSSRHL.mjs → chunk-4BKDSA7L.mjs} +3 -4
- package/dist/chunk-4BKDSA7L.mjs.map +1 -0
- package/dist/chunk-4WVN4RMM.mjs +1139 -0
- package/dist/chunk-4WVN4RMM.mjs.map +1 -0
- package/dist/{chunk-J5Y325TG.mjs → chunk-4ZFY3GBP.mjs} +2210 -3
- package/dist/chunk-4ZFY3GBP.mjs.map +1 -0
- package/dist/{chunk-LQVHJ3VY.mjs → chunk-54QDLBID.mjs} +41 -41
- package/dist/{chunk-LQVHJ3VY.mjs.map → chunk-54QDLBID.mjs.map} +1 -1
- package/dist/{chunk-PBBF5DKC.js → chunk-6SBCBVTZ.js} +21 -21
- package/dist/{chunk-WP5MRAYG.mjs → chunk-COEM6U4V.mjs} +3 -4
- package/dist/chunk-COEM6U4V.mjs.map +1 -0
- package/dist/{chunk-3JMY4U4S.mjs → chunk-DBRPCQRR.mjs} +245 -211
- package/dist/chunk-DBRPCQRR.mjs.map +1 -0
- package/dist/{chunk-WRF3EORB.js → chunk-DCJYTCJZ.js} +16 -17
- package/dist/chunk-DCJYTCJZ.js.map +1 -0
- package/dist/{chunk-UO2RQQZO.mjs → chunk-DK2VS36Z.mjs} +2 -2
- package/dist/{chunk-HEZCZXQC.js → chunk-E353GPHE.js} +16 -16
- package/dist/{chunk-6LZOAU6E.js → chunk-GDJSVV46.js} +272 -241
- package/dist/chunk-GDJSVV46.js.map +1 -0
- package/dist/{chunk-Z3JZ5DZN.mjs → chunk-IZBM4CPN.mjs} +2 -2
- package/dist/chunk-J3WVI5Y3.mjs +16280 -0
- package/dist/chunk-J3WVI5Y3.mjs.map +1 -0
- package/dist/{chunk-7OWGGDRF.js → chunk-JFRVH3TD.js} +2288 -80
- package/dist/chunk-JFRVH3TD.js.map +1 -0
- package/dist/chunk-MZBY6G5S.js +1182 -0
- package/dist/chunk-MZBY6G5S.js.map +1 -0
- package/dist/{chunk-7JWBIAUF.mjs → chunk-NS5AXNEW.mjs} +3 -3
- package/dist/chunk-QU4RKOBD.js +16536 -0
- package/dist/chunk-QU4RKOBD.js.map +1 -0
- package/dist/{chunk-CMXTZKWW.js → chunk-UCNBHGIY.js} +157 -157
- package/dist/{chunk-CMXTZKWW.js.map → chunk-UCNBHGIY.js.map} +1 -1
- package/dist/{chunk-BKFHIKFY.js → chunk-XRSK74V5.js} +179 -180
- package/dist/chunk-XRSK74V5.js.map +1 -0
- package/dist/{chunk-2IC6H3FI.js → chunk-YVLKVB6W.js} +52 -52
- package/dist/cli.js +27609 -11656
- package/dist/cli.js.map +1 -1
- package/dist/core/index.js +56 -57
- package/dist/core/index.mjs +2 -3
- package/dist/core-B3_-9yli.d.mts +279 -0
- package/dist/core-cWIQtely.d.ts +279 -0
- package/dist/gematria/index.js +7 -8
- package/dist/gematria/index.mjs +2 -3
- package/dist/iching/index.d.mts +37 -37
- package/dist/iching/index.d.ts +37 -37
- package/dist/iching/index.js +46 -47
- package/dist/iching/index.mjs +3 -4
- package/dist/index.d.mts +139 -2
- package/dist/index.d.ts +139 -2
- package/dist/index.js +1422 -301
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +190 -10
- package/dist/index.mjs.map +1 -1
- package/dist/numerology/index.d.mts +437 -252
- package/dist/numerology/index.d.ts +437 -252
- package/dist/numerology/index.js +108 -28
- package/dist/numerology/index.mjs +4 -4
- package/dist/schedule-types-DsR1_guG.d.mts +200 -0
- package/dist/schedule-types-DsR1_guG.d.ts +200 -0
- package/dist/semantic/index.d.mts +10 -9
- package/dist/semantic/index.d.ts +10 -9
- package/dist/semantic/index.js +41 -41
- package/dist/semantic/index.mjs +8 -8
- package/dist/swisseph.node-734BKSOZ.js +10 -0
- package/dist/swisseph.node-734BKSOZ.js.map +1 -0
- package/dist/swisseph.node-TDPYTBSS.mjs +8 -0
- package/dist/swisseph.node-TDPYTBSS.mjs.map +1 -0
- package/dist/tarot/index.js +30 -31
- package/dist/tarot/index.mjs +3 -4
- package/dist/visual/index.d.mts +1 -0
- package/dist/visual/index.d.ts +1 -0
- package/dist/visual/index.js +46 -47
- package/dist/visual/index.mjs +3 -4
- package/dist/wasm/build/swisseph.node-734BKSOZ.js +10 -0
- package/dist/wasm/build/swisseph.node-734BKSOZ.js.map +1 -0
- package/dist/wasm/build/swisseph.node-TDPYTBSS.mjs +8 -0
- package/dist/wasm/build/swisseph.node-TDPYTBSS.mjs.map +1 -0
- package/package.json +4 -2
- package/dist/chunk-3JMY4U4S.mjs.map +0 -1
- package/dist/chunk-3QN5V3DP.js +0 -4737
- package/dist/chunk-3QN5V3DP.js.map +0 -1
- package/dist/chunk-6LZOAU6E.js.map +0 -1
- package/dist/chunk-7OWGGDRF.js.map +0 -1
- package/dist/chunk-BKFHIKFY.js.map +0 -1
- package/dist/chunk-IT7GZ337.mjs +0 -4679
- package/dist/chunk-IT7GZ337.mjs.map +0 -1
- package/dist/chunk-J5Y325TG.mjs.map +0 -1
- package/dist/chunk-JY4QC6FR.js +0 -2214
- package/dist/chunk-JY4QC6FR.js.map +0 -1
- package/dist/chunk-MWLSSRHL.mjs.map +0 -1
- package/dist/chunk-RUE6NTVT.mjs +0 -2211
- package/dist/chunk-RUE6NTVT.mjs.map +0 -1
- package/dist/chunk-WP5MRAYG.mjs.map +0 -1
- package/dist/chunk-WRF3EORB.js.map +0 -1
- package/dist/swisseph.node-53QCJWTI.mjs +0 -3471
- package/dist/swisseph.node-53QCJWTI.mjs.map +0 -1
- package/dist/swisseph.node-CGBZTQ5N.js +0 -3473
- package/dist/swisseph.node-CGBZTQ5N.js.map +0 -1
- package/dist/swisseph.node-GPVFDOB6.wasm +0 -0
- package/dist/wasm/build/swisseph.node-53QCJWTI.mjs +0 -3471
- package/dist/wasm/build/swisseph.node-53QCJWTI.mjs.map +0 -1
- package/dist/wasm/build/swisseph.node-CGBZTQ5N.js +0 -3473
- package/dist/wasm/build/swisseph.node-CGBZTQ5N.js.map +0 -1
- package/dist/wasm/build/swisseph.node-GPVFDOB6.wasm +0 -0
- /package/dist/{chunk-PBBF5DKC.js.map → chunk-6SBCBVTZ.js.map} +0 -0
- /package/dist/{chunk-2IC6H3FI.js.map → chunk-DK2VS36Z.mjs.map} +0 -0
- /package/dist/{chunk-7JWBIAUF.mjs.map → chunk-E353GPHE.js.map} +0 -0
- /package/dist/{chunk-Z3JZ5DZN.mjs.map → chunk-IZBM4CPN.mjs.map} +0 -0
- /package/dist/{chunk-HEZCZXQC.js.map → chunk-NS5AXNEW.mjs.map} +0 -0
- /package/dist/{chunk-UO2RQQZO.mjs.map → chunk-YVLKVB6W.js.map} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMZBY6G5S_js = require('./chunk-MZBY6G5S.js');
|
|
4
|
+
var chunk6SBCBVTZ_js = require('./chunk-6SBCBVTZ.js');
|
|
4
5
|
var chunkICUDGCYX_js = require('./chunk-ICUDGCYX.js');
|
|
5
6
|
var chunk4337NVKS_js = require('./chunk-4337NVKS.js');
|
|
6
7
|
|
|
@@ -926,157 +927,204 @@ function getNumerologyData(language) {
|
|
|
926
927
|
return language?.startsWith("pt") ? NUMEROLOGY_TEXT_DATA.pt : NUMEROLOGY_TEXT_DATA.en;
|
|
927
928
|
}
|
|
928
929
|
|
|
929
|
-
// src/numerology/
|
|
930
|
-
function
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
930
|
+
// src/numerology/partial-date.ts
|
|
931
|
+
function describePartialBirthDate(birth) {
|
|
932
|
+
const n = chunkMZBY6G5S_js.normalizeBirth(birth);
|
|
933
|
+
switch (n.kind) {
|
|
934
|
+
case "full":
|
|
935
|
+
return {
|
|
936
|
+
kind: "full",
|
|
937
|
+
computable: [
|
|
938
|
+
"personalYear",
|
|
939
|
+
"personalMonths",
|
|
940
|
+
"personalPeriods(1,2)",
|
|
941
|
+
"personalPeriods(3: needs first name)",
|
|
942
|
+
"heptads",
|
|
943
|
+
"ageCycles",
|
|
944
|
+
"fibonacci",
|
|
945
|
+
"lifePath",
|
|
946
|
+
"calendarFrame",
|
|
947
|
+
"pinnacles",
|
|
948
|
+
"challenges",
|
|
949
|
+
"lifePeriods"
|
|
950
|
+
],
|
|
951
|
+
unavailable: []
|
|
952
|
+
};
|
|
953
|
+
case "month-day":
|
|
954
|
+
return {
|
|
955
|
+
kind: "month-day",
|
|
956
|
+
computable: ["personalYear", "personalMonths", "personalPeriods(3: needs first name)", "heptads", "calendarFrame"],
|
|
957
|
+
unavailable: [
|
|
958
|
+
"completedAge",
|
|
959
|
+
"personalPeriods(1)",
|
|
960
|
+
"personalPeriods(2)",
|
|
961
|
+
"ageCycles",
|
|
962
|
+
"fibonacci",
|
|
963
|
+
"lifePath",
|
|
964
|
+
"pinnacles",
|
|
965
|
+
"challenges",
|
|
966
|
+
"lifePeriods"
|
|
967
|
+
].map((field) => ({
|
|
968
|
+
field,
|
|
969
|
+
reason: "birth-year-unknown",
|
|
970
|
+
detail: "The birth year is not known; nothing is guessed."
|
|
971
|
+
}))
|
|
972
|
+
};
|
|
973
|
+
case "year-month":
|
|
974
|
+
case "year": {
|
|
975
|
+
const reason = n.kind === "year" && n.approximate ? "birth-year-approximate" : "birth-day-or-month-unknown";
|
|
976
|
+
const detail = n.kind === "year-month" ? "Birth day unknown: use summarizeBirthDateCandidates for invariants and possible values." : n.approximate ? "Approximate year only: no day/month and no exact age." : "Only the birth year is known: use summarizeBirthDateCandidates for invariants and possible values.";
|
|
977
|
+
return {
|
|
978
|
+
kind: n.kind,
|
|
979
|
+
computable: n.kind === "year" && n.approximate ? ["firstNameSoulNumber"] : ["firstNameSoulNumber", "completedAgeRange", "candidateSummary"],
|
|
980
|
+
unavailable: [
|
|
981
|
+
"personalYear",
|
|
982
|
+
"personalMonths",
|
|
983
|
+
"personalPeriods",
|
|
984
|
+
"heptads",
|
|
985
|
+
"ageCycles",
|
|
986
|
+
"fibonacci",
|
|
987
|
+
"lifePath",
|
|
988
|
+
"calendarFrame",
|
|
989
|
+
"pinnacles",
|
|
990
|
+
"challenges",
|
|
991
|
+
"lifePeriods"
|
|
992
|
+
].map((field) => ({ field, reason, detail }))
|
|
993
|
+
};
|
|
994
|
+
}
|
|
995
|
+
default:
|
|
996
|
+
return {
|
|
997
|
+
kind: "unknown",
|
|
998
|
+
computable: ["firstNameSoulNumber"],
|
|
999
|
+
unavailable: [
|
|
1000
|
+
"personalYear",
|
|
1001
|
+
"personalMonths",
|
|
1002
|
+
"personalPeriods",
|
|
1003
|
+
"heptads",
|
|
1004
|
+
"ageCycles",
|
|
1005
|
+
"fibonacci",
|
|
1006
|
+
"lifePath",
|
|
1007
|
+
"calendarFrame",
|
|
1008
|
+
"pinnacles",
|
|
1009
|
+
"challenges",
|
|
1010
|
+
"lifePeriods"
|
|
1011
|
+
].map((field) => ({ field, reason: "birth-date-unknown", detail: "No birth date information." }))
|
|
1012
|
+
};
|
|
939
1013
|
}
|
|
940
|
-
return {
|
|
941
|
-
day: String(date.getDate()).padStart(2, "0"),
|
|
942
|
-
month: String(date.getMonth() + 1).padStart(2, "0"),
|
|
943
|
-
year: String(date.getFullYear()).padStart(4, "0")
|
|
944
|
-
};
|
|
945
1014
|
}
|
|
946
|
-
function
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
1015
|
+
function periodValue(p) {
|
|
1016
|
+
return p && p.value.available ? p.value.value : null;
|
|
1017
|
+
}
|
|
1018
|
+
function fieldsOf(s) {
|
|
1019
|
+
const f = {
|
|
1020
|
+
completedAge: s.completedAge,
|
|
1021
|
+
lastBirthdayYear: s.lastBirthdayYear,
|
|
1022
|
+
personalYear: s.birthdayYear?.personalYear.value ?? null,
|
|
1023
|
+
kaabalisticLifePath: s.fixedNumbers.lifePath.available ? s.fixedNumbers.lifePath.value : null,
|
|
1024
|
+
firstNameSoulNumber: s.fixedNumbers.firstNameSoulNumber.available ? s.fixedNumbers.firstNameSoulNumber.value : null,
|
|
1025
|
+
personalMonthPhase: s.personalMonth?.phase ?? null,
|
|
1026
|
+
personalMonthValue: s.personalMonth?.value.value ?? null,
|
|
1027
|
+
personalPeriodPhase: s.personalPeriod?.phase ?? null,
|
|
1028
|
+
personalPeriodValue: periodValue(s.personalPeriod),
|
|
1029
|
+
heptadPhase: s.heptad?.phase ?? null,
|
|
1030
|
+
dayInHeptad: s.heptad?.dayInHeptad ?? null,
|
|
1031
|
+
ageCycleLabel: s.ageCycle?.label ?? null,
|
|
1032
|
+
ageCycleBlockIndex: s.ageCycle?.absoluteIndex ?? null,
|
|
1033
|
+
yearInSevenYearBlock: s.ageCycle?.yearPosition ?? null,
|
|
1034
|
+
calendarPersonalYear: s.calendar?.personalYear.value ?? null,
|
|
1035
|
+
calendarPersonalMonth: s.calendar?.personalMonth.value ?? null,
|
|
1036
|
+
calendarPersonalDay: s.calendar?.personalDay.value ?? null,
|
|
1037
|
+
mainChallenge: s.lifeStages?.mainChallenge ?? null,
|
|
1038
|
+
pinnacle: s.lifeStages?.pinnacle?.value.value ?? null
|
|
956
1039
|
};
|
|
1040
|
+
for (const c of s.fibonacci?.cycles ?? [])
|
|
1041
|
+
f[`fibonacciCycle${c.phase}`] = c.value;
|
|
1042
|
+
return f;
|
|
957
1043
|
}
|
|
958
|
-
function
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
1044
|
+
function summarizeBirthDateCandidates(input) {
|
|
1045
|
+
const birth = chunkMZBY6G5S_js.normalizeBirth(input.birth);
|
|
1046
|
+
if (birth.kind !== "year-month" && !(birth.kind === "year" && !birth.approximate)) {
|
|
1047
|
+
throw new chunkMZBY6G5S_js.NumerologyScheduleError(
|
|
1048
|
+
"INVALID_ARGUMENT",
|
|
1049
|
+
"Candidate summaries need a year-month or an exact (non-approximate) year"
|
|
1050
|
+
);
|
|
962
1051
|
}
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
}
|
|
969
|
-
function reduceToSingle(n, options = { preserveMasters: false }) {
|
|
970
|
-
if (n === 0) {
|
|
971
|
-
return 0;
|
|
1052
|
+
const asOf = chunkMZBY6G5S_js.resolveCivilDate(input.asOf, "asOf");
|
|
1053
|
+
const dates = [];
|
|
1054
|
+
const months = birth.kind === "year-month" ? [birth.month] : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
1055
|
+
for (const month of months) {
|
|
1056
|
+
for (let day = 1; day <= chunkMZBY6G5S_js.daysInMonth(birth.year, month); day++)
|
|
1057
|
+
dates.push({ year: birth.year, month, day });
|
|
972
1058
|
}
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
if (options?.preserveMasters && isMasterNumber(reduced)) {
|
|
976
|
-
break;
|
|
977
|
-
}
|
|
978
|
-
reduced = digitSum(reduced);
|
|
1059
|
+
if (dates.length > chunkMZBY6G5S_js.MAX_CANDIDATE_DATES || birth.kind === "year" && dates.length !== (chunkMZBY6G5S_js.isLeapYear(birth.year) ? 366 : 365)) {
|
|
1060
|
+
throw new chunkMZBY6G5S_js.NumerologyScheduleError("RANGE_TOO_LARGE", "Too many candidate dates");
|
|
979
1061
|
}
|
|
980
|
-
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
};
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1062
|
+
const { birth: _ignored, asOf: _asOf, ...options } = input;
|
|
1063
|
+
const collected = {};
|
|
1064
|
+
const boundaries = {};
|
|
1065
|
+
let after = 0;
|
|
1066
|
+
const add = (name, value) => (collected[name] ?? (collected[name] = [])).push(value);
|
|
1067
|
+
const addBoundary = (name, iv) => {
|
|
1068
|
+
if (!iv || iv.endExclusive === null)
|
|
1069
|
+
return;
|
|
1070
|
+
const b = boundaries[name] ?? (boundaries[name] = { starts: [], ends: [] });
|
|
1071
|
+
b.starts.push(iv.start);
|
|
1072
|
+
b.ends.push(iv.endExclusive);
|
|
1073
|
+
};
|
|
1074
|
+
for (const date of dates) {
|
|
1075
|
+
const snap = chunkMZBY6G5S_js.getNumerologySnapshot({ ...options, birth: { kind: "full", date }, asOf });
|
|
1076
|
+
if (snap.status === "before-birth") {
|
|
1077
|
+
after++;
|
|
1078
|
+
continue;
|
|
994
1079
|
}
|
|
995
|
-
|
|
996
|
-
|
|
1080
|
+
if (snap.status !== "ok")
|
|
1081
|
+
continue;
|
|
1082
|
+
for (const [k, v] of Object.entries(fieldsOf(snap)))
|
|
1083
|
+
add(k, v);
|
|
1084
|
+
addBoundary("birthdayYear", snap.birthdayYear);
|
|
1085
|
+
addBoundary("personalMonth", snap.personalMonth);
|
|
1086
|
+
addBoundary("personalPeriod", snap.personalPeriod);
|
|
1087
|
+
addBoundary("heptad", snap.heptad);
|
|
1088
|
+
addBoundary("ageCycle", snap.ageCycle);
|
|
997
1089
|
}
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
}
|
|
1003
|
-
function reduceBlock(block) {
|
|
1004
|
-
const n = [...block].reduce(
|
|
1005
|
-
(acc, curr) => acc + (curr.charCodeAt(0) - 48),
|
|
1006
|
-
0
|
|
1007
|
-
);
|
|
1008
|
-
if (n === 0) {
|
|
1009
|
-
return 0;
|
|
1090
|
+
const fields = {};
|
|
1091
|
+
for (const [name, values] of Object.entries(collected)) {
|
|
1092
|
+
const distinct = [...new Set(values)].sort((a, b) => a === null ? 1 : b === null ? -1 : a - b);
|
|
1093
|
+
fields[name] = { invariant: distinct.length === 1, value: distinct.length === 1 ? distinct[0] : null, possibleValues: distinct };
|
|
1010
1094
|
}
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
const reducedYear1 = reduceBlock(year1);
|
|
1020
|
-
const reducedYear2 = reduceBlock(year2);
|
|
1021
|
-
const dayMonthSynthesis = parseInt(`${reducedDay}${reducedMonth}`, 10);
|
|
1022
|
-
const yearSynthesis = parseInt(`${reducedYear1}${reducedYear2}`, 10);
|
|
1023
|
-
const reducedDayMonthSynthesis = reduceToSingle(dayMonthSynthesis);
|
|
1024
|
-
const reducedYearSynthesis = reduceToSingle(yearSynthesis);
|
|
1025
|
-
const finalSynthesis = parseInt(
|
|
1026
|
-
`${reducedDayMonthSynthesis}${reducedYearSynthesis}`,
|
|
1027
|
-
10
|
|
1028
|
-
);
|
|
1029
|
-
const lifePath = reduceToSingleWithSteps(finalSynthesis, { preserveMasters: true });
|
|
1030
|
-
const isMasterLifePath = isMasterNumber(lifePath.reducedValue);
|
|
1031
|
-
const personalMythologyNumbers = [
|
|
1032
|
-
parseInt(`${dayMonthSynthesis}${yearSynthesis}`, 10),
|
|
1033
|
-
finalSynthesis
|
|
1034
|
-
];
|
|
1035
|
-
if (finalSynthesis !== lifePath.reducedValue) {
|
|
1036
|
-
personalMythologyNumbers.push(lifePath.reducedValue);
|
|
1037
|
-
}
|
|
1038
|
-
const reducedLifePath = reduceToSingle(lifePath.reducedValue);
|
|
1039
|
-
if (isMasterLifePath) {
|
|
1040
|
-
personalMythologyNumbers.push(reducedLifePath);
|
|
1095
|
+
const ranges = {};
|
|
1096
|
+
for (const [name, b] of Object.entries(boundaries)) {
|
|
1097
|
+
const s = [...b.starts].sort();
|
|
1098
|
+
const e = [...b.ends].sort();
|
|
1099
|
+
ranges[name] = {
|
|
1100
|
+
start: { min: s[0], max: s[s.length - 1], invariant: s[0] === s[s.length - 1] },
|
|
1101
|
+
endExclusive: { min: e[0], max: e[e.length - 1], invariant: e[0] === e[e.length - 1] }
|
|
1102
|
+
};
|
|
1041
1103
|
}
|
|
1042
1104
|
return {
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
},
|
|
1052
|
-
lifePath,
|
|
1053
|
-
personalMythologyNumbers
|
|
1054
|
-
};
|
|
1055
|
-
}
|
|
1056
|
-
function calculateStraightAcrossReductionLifePath(birthDate) {
|
|
1057
|
-
const { day, month, year } = parseDate(birthDate);
|
|
1058
|
-
const result = reduceToSingleWithSteps(
|
|
1059
|
-
parseInt(`${day}${month}${year}`, 10),
|
|
1060
|
-
{ preserveMasters: true }
|
|
1061
|
-
);
|
|
1062
|
-
return {
|
|
1063
|
-
dayEnergy: reduceToSingleWithSteps(parseInt(day, 10), { preserveMasters: true }),
|
|
1064
|
-
monthEnergy: reduceToSingleWithSteps(parseInt(month, 10), { preserveMasters: true }),
|
|
1065
|
-
yearEnergy: reduceToSingleWithSteps(parseInt(year, 10), { preserveMasters: true }),
|
|
1066
|
-
lifePath: result
|
|
1105
|
+
asOf: chunkMZBY6G5S_js.fmt(asOf),
|
|
1106
|
+
birth: birth.kind === "year-month" ? { kind: "year-month", year: birth.year, month: birth.month } : { kind: "year", year: birth.year },
|
|
1107
|
+
candidateCount: dates.length,
|
|
1108
|
+
candidatesBornAfterAsOf: after,
|
|
1109
|
+
selectedDate: null,
|
|
1110
|
+
fields,
|
|
1111
|
+
intervalBoundaryRanges: ranges,
|
|
1112
|
+
note: "Aggregates over every valid day of the known period. No birth date is selected or implied; the actual day is unknown."
|
|
1067
1113
|
};
|
|
1068
1114
|
}
|
|
1115
|
+
|
|
1116
|
+
// src/numerology/index.ts
|
|
1069
1117
|
function getDateEnergies(birthDate) {
|
|
1070
|
-
const { day, month, year1, year2 } = mapDatePartsToBlocksOfTwo(
|
|
1071
|
-
parseDate(birthDate)
|
|
1118
|
+
const { day, month, year1, year2 } = chunkMZBY6G5S_js.mapDatePartsToBlocksOfTwo(
|
|
1119
|
+
chunkMZBY6G5S_js.parseDate(birthDate)
|
|
1072
1120
|
);
|
|
1073
|
-
const dayEnergy = reduceToSingleWithSteps(parseInt(day, 10), {
|
|
1121
|
+
const dayEnergy = chunkMZBY6G5S_js.reduceToSingleWithSteps(parseInt(day, 10), {
|
|
1074
1122
|
preserveMasters: true
|
|
1075
1123
|
});
|
|
1076
|
-
const monthEnergy = reduceToSingleWithSteps(parseInt(month, 10), {
|
|
1124
|
+
const monthEnergy = chunkMZBY6G5S_js.reduceToSingleWithSteps(parseInt(month, 10), {
|
|
1077
1125
|
preserveMasters: true
|
|
1078
1126
|
});
|
|
1079
|
-
const yearEnergy = reduceToSingleWithSteps(parseInt(year1 + year2, 10), {
|
|
1127
|
+
const yearEnergy = chunkMZBY6G5S_js.reduceToSingleWithSteps(parseInt(year1 + year2, 10), {
|
|
1080
1128
|
preserveMasters: true
|
|
1081
1129
|
});
|
|
1082
1130
|
return {
|
|
@@ -1086,10 +1134,10 @@ function getDateEnergies(birthDate) {
|
|
|
1086
1134
|
};
|
|
1087
1135
|
}
|
|
1088
1136
|
function calculateChallenges(birthDate) {
|
|
1089
|
-
const { day, month, year } = parseDate(birthDate);
|
|
1090
|
-
const reducedDay = reduceToSingle(parseInt(day, 10));
|
|
1091
|
-
const reducedMonth = reduceToSingle(parseInt(month, 10));
|
|
1092
|
-
const reducedYear = reduceToSingle(parseInt(year, 10));
|
|
1137
|
+
const { day, month, year } = chunkMZBY6G5S_js.parseDate(birthDate);
|
|
1138
|
+
const reducedDay = chunkMZBY6G5S_js.reduceToSingle(parseInt(day, 10));
|
|
1139
|
+
const reducedMonth = chunkMZBY6G5S_js.reduceToSingle(parseInt(month, 10));
|
|
1140
|
+
const reducedYear = chunkMZBY6G5S_js.reduceToSingle(parseInt(year, 10));
|
|
1093
1141
|
const subChallenge1 = Math.abs(reducedMonth - reducedDay);
|
|
1094
1142
|
const subChallenge2 = Math.abs(reducedDay - reducedYear);
|
|
1095
1143
|
const mainChallenge = Math.abs(subChallenge1 - subChallenge2);
|
|
@@ -1102,19 +1150,18 @@ function calculateChallenges(birthDate) {
|
|
|
1102
1150
|
subChallenge2
|
|
1103
1151
|
};
|
|
1104
1152
|
}
|
|
1105
|
-
function
|
|
1106
|
-
|
|
1107
|
-
|
|
1153
|
+
function toCivil(date) {
|
|
1154
|
+
chunkMZBY6G5S_js.parseDate(date);
|
|
1155
|
+
return chunkMZBY6G5S_js.civilDateFromLocalDate(date);
|
|
1156
|
+
}
|
|
1157
|
+
function civilToLocalMidnight(date) {
|
|
1158
|
+
const result = chunkMZBY6G5S_js.civilDateToLocalNoon(date);
|
|
1159
|
+
result.setHours(0, 0, 0, 0);
|
|
1108
1160
|
return result;
|
|
1109
1161
|
}
|
|
1110
|
-
function
|
|
1111
|
-
const
|
|
1112
|
-
|
|
1113
|
-
let recentStart = new Date(today.getFullYear(), startMonth, startDay);
|
|
1114
|
-
if (recentStart > today) {
|
|
1115
|
-
recentStart = new Date(today.getFullYear() - 1, startMonth, startDay);
|
|
1116
|
-
}
|
|
1117
|
-
return recentStart;
|
|
1162
|
+
function lastBirthdayCivil(birth, today) {
|
|
1163
|
+
const thisYear = chunkMZBY6G5S_js.anniversaryInYear(birth, today.year);
|
|
1164
|
+
return chunkMZBY6G5S_js.compareCivilDates(thisYear, today) <= 0 ? thisYear : chunkMZBY6G5S_js.anniversaryInYear(birth, today.year - 1);
|
|
1118
1165
|
}
|
|
1119
1166
|
function numberToHeptadCycle(number) {
|
|
1120
1167
|
if (number < 1 || number > 7) {
|
|
@@ -1123,82 +1170,71 @@ function numberToHeptadCycle(number) {
|
|
|
1123
1170
|
return number;
|
|
1124
1171
|
}
|
|
1125
1172
|
function calculateCycles(startDate, today) {
|
|
1126
|
-
const
|
|
1173
|
+
const birth = toCivil(startDate);
|
|
1174
|
+
const now = toCivil(today);
|
|
1175
|
+
const mostRecentStart = lastBirthdayCivil(birth, now);
|
|
1127
1176
|
const cycleLength = 52;
|
|
1128
|
-
const isFutureDate =
|
|
1177
|
+
const isFutureDate = chunkMZBY6G5S_js.compareCivilDates(birth, now) > 0;
|
|
1129
1178
|
let currentYearlyCycle = null;
|
|
1130
1179
|
let currentAgeCycle = null;
|
|
1180
|
+
let currentAgeBlockIndex = null;
|
|
1131
1181
|
const ageCycles = [];
|
|
1132
1182
|
const yearlyCycles = [];
|
|
1133
1183
|
if (!isFutureDate) {
|
|
1134
|
-
const
|
|
1135
|
-
const
|
|
1136
|
-
|
|
1137
|
-
currentAgeCycle =
|
|
1184
|
+
const completedAge = chunkMZBY6G5S_js.completedYears(birth, now);
|
|
1185
|
+
const block = Math.floor(completedAge / 7);
|
|
1186
|
+
currentAgeBlockIndex = block;
|
|
1187
|
+
currentAgeCycle = block % 7 + 1;
|
|
1188
|
+
currentYearlyCycle = completedAge % 7 + 1;
|
|
1189
|
+
const windowFirstBlock = Math.floor(block / 7) * 7;
|
|
1138
1190
|
for (let i = 0; i < 7; i++) {
|
|
1139
|
-
const
|
|
1140
|
-
birthYear + i * 7,
|
|
1141
|
-
startDate.getMonth(),
|
|
1142
|
-
startDate.getDate()
|
|
1143
|
-
);
|
|
1191
|
+
const absoluteIndex = windowFirstBlock + i;
|
|
1144
1192
|
const cycle = i + 1;
|
|
1145
|
-
const isCurrentCycle = cycle === currentAgeCycle;
|
|
1146
|
-
if (isCurrentCycle) {
|
|
1147
|
-
const yearsSinceBirth = ageInYears;
|
|
1148
|
-
const yearWithinAgeCycle = yearsSinceBirth % 7;
|
|
1149
|
-
currentYearlyCycle = yearWithinAgeCycle + 1;
|
|
1150
|
-
for (let j = 0; j < 7; j++) {
|
|
1151
|
-
const ageCycleStartYear = birthYear + Math.floor(ageInYears / 7) * 7;
|
|
1152
|
-
const yearlyCycleStart = new Date(
|
|
1153
|
-
ageCycleStartYear + j,
|
|
1154
|
-
startDate.getMonth(),
|
|
1155
|
-
startDate.getDate()
|
|
1156
|
-
);
|
|
1157
|
-
const yearlyCycle = j + 1;
|
|
1158
|
-
const isCurrentYearlyCycle = yearlyCycle === currentYearlyCycle;
|
|
1159
|
-
yearlyCycles.push({
|
|
1160
|
-
number: yearlyCycle,
|
|
1161
|
-
description: CYCLE_MEANINGS[numberToHeptadCycle(yearlyCycle)],
|
|
1162
|
-
isActive: isCurrentYearlyCycle,
|
|
1163
|
-
cycleStart: yearlyCycleStart
|
|
1164
|
-
});
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
1193
|
ageCycles.push({
|
|
1168
1194
|
number: cycle,
|
|
1169
1195
|
description: CYCLE_MEANINGS[numberToHeptadCycle(cycle)],
|
|
1170
|
-
isActive:
|
|
1171
|
-
cycleStart
|
|
1196
|
+
isActive: cycle === currentAgeCycle,
|
|
1197
|
+
cycleStart: civilToLocalMidnight(
|
|
1198
|
+
chunkMZBY6G5S_js.anniversaryInYear(birth, birth.year + absoluteIndex * 7)
|
|
1199
|
+
),
|
|
1200
|
+
absoluteIndex
|
|
1201
|
+
});
|
|
1202
|
+
}
|
|
1203
|
+
for (let j = 0; j < 7; j++) {
|
|
1204
|
+
const yearlyCycle = j + 1;
|
|
1205
|
+
yearlyCycles.push({
|
|
1206
|
+
number: yearlyCycle,
|
|
1207
|
+
description: CYCLE_MEANINGS[numberToHeptadCycle(yearlyCycle)],
|
|
1208
|
+
isActive: yearlyCycle === currentYearlyCycle,
|
|
1209
|
+
cycleStart: civilToLocalMidnight(
|
|
1210
|
+
chunkMZBY6G5S_js.anniversaryInYear(birth, birth.year + block * 7 + j)
|
|
1211
|
+
)
|
|
1172
1212
|
});
|
|
1173
1213
|
}
|
|
1174
1214
|
}
|
|
1175
1215
|
const monthlyCycles = [];
|
|
1176
1216
|
for (let i = 0; i < 7; i++) {
|
|
1177
|
-
const cycleStart = addDays(mostRecentStart, i * cycleLength);
|
|
1178
1217
|
monthlyCycles.push({
|
|
1179
1218
|
number: i + 1,
|
|
1180
1219
|
description: CYCLE_MEANINGS[numberToHeptadCycle(i + 1)],
|
|
1181
1220
|
isActive: false,
|
|
1182
|
-
cycleStart
|
|
1221
|
+
cycleStart: civilToLocalMidnight(chunkMZBY6G5S_js.addCivilDays(mostRecentStart, i * cycleLength))
|
|
1183
1222
|
});
|
|
1184
1223
|
}
|
|
1224
|
+
const nextAnniversary = chunkMZBY6G5S_js.anniversaryInYear(birth, mostRecentStart.year + 1);
|
|
1225
|
+
const daysSinceStart = chunkMZBY6G5S_js.diffCivilDays(mostRecentStart, now);
|
|
1185
1226
|
let currentMonthlyCycle = null;
|
|
1186
1227
|
let daysInMonthlyCycle = 0;
|
|
1187
1228
|
for (let i = 0; i < 7; i++) {
|
|
1188
|
-
const
|
|
1189
|
-
const
|
|
1190
|
-
if (
|
|
1229
|
+
const startOffset = i * cycleLength;
|
|
1230
|
+
const endOffset = i < 6 ? (i + 1) * cycleLength : chunkMZBY6G5S_js.diffCivilDays(mostRecentStart, nextAnniversary);
|
|
1231
|
+
if (daysSinceStart >= startOffset && daysSinceStart < endOffset) {
|
|
1191
1232
|
currentMonthlyCycle = i + 1;
|
|
1192
|
-
daysInMonthlyCycle =
|
|
1193
|
-
(today.getTime() - cycleStart.getTime()) / (1e3 * 60 * 60 * 24)
|
|
1194
|
-
) + 1;
|
|
1233
|
+
daysInMonthlyCycle = daysSinceStart - startOffset + 1;
|
|
1195
1234
|
monthlyCycles[i].isActive = true;
|
|
1196
1235
|
break;
|
|
1197
1236
|
}
|
|
1198
1237
|
}
|
|
1199
|
-
const totalDays = Math.floor(
|
|
1200
|
-
(today.getTime() - mostRecentStart.getTime()) / (1e3 * 60 * 60 * 24)
|
|
1201
|
-
) + 1;
|
|
1202
1238
|
return {
|
|
1203
1239
|
yearlyCycles,
|
|
1204
1240
|
ageCycles,
|
|
@@ -1207,29 +1243,32 @@ function calculateCycles(startDate, today) {
|
|
|
1207
1243
|
currentAgeCycle,
|
|
1208
1244
|
currentMonthlyCycle,
|
|
1209
1245
|
daysInMonthlyCycle,
|
|
1210
|
-
totalDays
|
|
1246
|
+
totalDays: daysSinceStart + 1,
|
|
1247
|
+
currentAgeBlockIndex
|
|
1211
1248
|
};
|
|
1212
1249
|
}
|
|
1213
1250
|
function calculateAge(birthDate, today = /* @__PURE__ */ new Date()) {
|
|
1214
|
-
return
|
|
1251
|
+
return chunkMZBY6G5S_js.completedYears(toCivil(birthDate), toCivil(today));
|
|
1215
1252
|
}
|
|
1216
1253
|
function calculateFibonacciCycle(birthDate, today) {
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
const
|
|
1254
|
+
return fibonacciFromAge(calculateAge(birthDate, today));
|
|
1255
|
+
}
|
|
1256
|
+
function fibonacciFromAge(currentAge) {
|
|
1257
|
+
const cycle1 = chunkMZBY6G5S_js.reduceToSingleWithSteps(currentAge);
|
|
1258
|
+
const cycle2 = chunkMZBY6G5S_js.reduceToSingleWithSteps(cycle1.reducedValue + 2);
|
|
1259
|
+
const cycle3 = chunkMZBY6G5S_js.reduceToSingleWithSteps(
|
|
1221
1260
|
cycle1.reducedValue + cycle2.reductionSteps[0]
|
|
1222
1261
|
);
|
|
1223
|
-
const cycle4 = reduceToSingleWithSteps(
|
|
1262
|
+
const cycle4 = chunkMZBY6G5S_js.reduceToSingleWithSteps(
|
|
1224
1263
|
cycle2.reductionSteps[0] + cycle3.reductionSteps[0]
|
|
1225
1264
|
);
|
|
1226
|
-
const cycle5 = reduceToSingleWithSteps(
|
|
1265
|
+
const cycle5 = chunkMZBY6G5S_js.reduceToSingleWithSteps(
|
|
1227
1266
|
cycle3.reductionSteps[0] + cycle4.reductionSteps[0]
|
|
1228
1267
|
);
|
|
1229
|
-
const cycle6 = reduceToSingleWithSteps(
|
|
1268
|
+
const cycle6 = chunkMZBY6G5S_js.reduceToSingleWithSteps(
|
|
1230
1269
|
cycle4.reductionSteps[0] + cycle5.reductionSteps[0]
|
|
1231
1270
|
);
|
|
1232
|
-
const cycle7 = reduceToSingleWithSteps(
|
|
1271
|
+
const cycle7 = chunkMZBY6G5S_js.reduceToSingleWithSteps(
|
|
1233
1272
|
cycle5.reductionSteps[0] + cycle6.reductionSteps[0]
|
|
1234
1273
|
);
|
|
1235
1274
|
return {
|
|
@@ -1244,7 +1283,13 @@ function calculateFibonacciCycle(birthDate, today) {
|
|
|
1244
1283
|
};
|
|
1245
1284
|
}
|
|
1246
1285
|
function calculateSoulNumber(firstName) {
|
|
1247
|
-
|
|
1286
|
+
if (typeof firstName !== "string" || firstName.trim() === "") {
|
|
1287
|
+
return chunkMZBY6G5S_js.unavailable("first-name-missing", "No first name supplied; the soul number (personal period 3) is not computed.");
|
|
1288
|
+
}
|
|
1289
|
+
const vowels = chunk6SBCBVTZ_js.calculateGematria(firstName).vowels;
|
|
1290
|
+
if (vowels.originalSum === 0 || vowels.finalValue === 0) {
|
|
1291
|
+
return chunkMZBY6G5S_js.unavailable("first-name-has-no-vowels", "The supplied name has no vowels recognised by the gematria mapping; soul number not computed.");
|
|
1292
|
+
}
|
|
1248
1293
|
return {
|
|
1249
1294
|
reducedValue: vowels.finalValue,
|
|
1250
1295
|
reductionSteps: vowels.reductionSteps
|
|
@@ -1254,55 +1299,46 @@ function wrapMonth(month) {
|
|
|
1254
1299
|
const wrappedMonth = ((month - 1) % 12 + 12) % 12;
|
|
1255
1300
|
return wrappedMonth + 1;
|
|
1256
1301
|
}
|
|
1257
|
-
function getLastBirthdayYear(birthDate, today) {
|
|
1258
|
-
const thisYearsBirthday = new Date(
|
|
1259
|
-
today.getFullYear(),
|
|
1260
|
-
birthDate.getMonth(),
|
|
1261
|
-
birthDate.getDate()
|
|
1262
|
-
);
|
|
1263
|
-
return today >= thisYearsBirthday ? today.getFullYear() : today.getFullYear() - 1;
|
|
1264
|
-
}
|
|
1265
1302
|
function calculatePersonalYear(birthDate, today = /* @__PURE__ */ new Date()) {
|
|
1266
|
-
const { day, month } = parseDate(birthDate);
|
|
1267
|
-
const yearToUse =
|
|
1268
|
-
return reduceToSingleWithSteps(
|
|
1303
|
+
const { day, month } = chunkMZBY6G5S_js.parseDate(birthDate);
|
|
1304
|
+
const yearToUse = lastBirthdayCivil(toCivil(birthDate), toCivil(today)).year;
|
|
1305
|
+
return chunkMZBY6G5S_js.reduceToSingleWithSteps(
|
|
1269
1306
|
parseInt(day, 10) + parseInt(month, 10) + yearToUse,
|
|
1270
1307
|
{ preserveMasters: true }
|
|
1271
1308
|
);
|
|
1272
1309
|
}
|
|
1273
1310
|
function calculatePersonalPeriods(birthDate, yearToUse, lifePath, soulNumber, currentAge) {
|
|
1274
|
-
const { month } = parseDate(birthDate);
|
|
1311
|
+
const { month } = chunkMZBY6G5S_js.parseDate(birthDate);
|
|
1275
1312
|
const birthMonth = parseInt(month, 10);
|
|
1276
1313
|
const periods = [
|
|
1277
1314
|
{
|
|
1278
1315
|
startMonth: wrapMonth(birthMonth + 0),
|
|
1279
1316
|
endMonth: wrapMonth(birthMonth + 3),
|
|
1280
|
-
value: reduceToSingleWithSteps(yearToUse + currentAge, {
|
|
1317
|
+
value: chunkMZBY6G5S_js.reduceToSingleWithSteps(yearToUse + currentAge, {
|
|
1281
1318
|
preserveMasters: true
|
|
1282
1319
|
})
|
|
1283
1320
|
},
|
|
1284
1321
|
{
|
|
1285
1322
|
startMonth: wrapMonth(birthMonth + 4),
|
|
1286
1323
|
endMonth: wrapMonth(birthMonth + 7),
|
|
1287
|
-
value: reduceToSingleWithSteps(yearToUse + lifePath, {
|
|
1324
|
+
value: chunkMZBY6G5S_js.reduceToSingleWithSteps(yearToUse + lifePath, {
|
|
1288
1325
|
preserveMasters: true
|
|
1289
1326
|
})
|
|
1290
1327
|
},
|
|
1291
1328
|
{
|
|
1292
1329
|
startMonth: wrapMonth(birthMonth + 8),
|
|
1293
1330
|
endMonth: wrapMonth(birthMonth + 11),
|
|
1294
|
-
value: reduceToSingleWithSteps(yearToUse + soulNumber, {
|
|
1295
|
-
preserveMasters: true
|
|
1296
|
-
})
|
|
1331
|
+
value: typeof soulNumber === "number" ? chunkMZBY6G5S_js.reduceToSingleWithSteps(yearToUse + soulNumber, { preserveMasters: true }) : soulNumber
|
|
1297
1332
|
}
|
|
1298
1333
|
];
|
|
1299
1334
|
return periods;
|
|
1300
1335
|
}
|
|
1301
1336
|
function diffInPersonalMonths(birthDate, today) {
|
|
1302
|
-
const
|
|
1303
|
-
const
|
|
1304
|
-
|
|
1305
|
-
|
|
1337
|
+
const birth = toCivil(birthDate);
|
|
1338
|
+
const now = toCivil(today);
|
|
1339
|
+
const lastYear = lastBirthdayCivil(birth, now).year;
|
|
1340
|
+
let k = (now.year - lastYear) * 12 + (now.month - birth.month);
|
|
1341
|
+
if (now.day < birth.day) {
|
|
1306
1342
|
k -= 1;
|
|
1307
1343
|
}
|
|
1308
1344
|
if (k < 0)
|
|
@@ -1312,12 +1348,12 @@ function diffInPersonalMonths(birthDate, today) {
|
|
|
1312
1348
|
return k;
|
|
1313
1349
|
}
|
|
1314
1350
|
function calculatePersonalMonths(birthDate, personalYear, today) {
|
|
1315
|
-
const { month } = parseDate(birthDate);
|
|
1351
|
+
const { month } = chunkMZBY6G5S_js.parseDate(birthDate);
|
|
1316
1352
|
const firstPersonalMonth = parseInt(month, 10);
|
|
1317
1353
|
const personalMonths = [];
|
|
1318
1354
|
for (let i = 0; i < 12; i++) {
|
|
1319
1355
|
const m = wrapMonth(firstPersonalMonth + i);
|
|
1320
|
-
const value = reduceToSingleWithSteps(personalYear.reducedValue + m, {
|
|
1356
|
+
const value = chunkMZBY6G5S_js.reduceToSingleWithSteps(personalYear.reducedValue + m, {
|
|
1321
1357
|
preserveMasters: true
|
|
1322
1358
|
});
|
|
1323
1359
|
personalMonths.push({ month: m, value });
|
|
@@ -1329,19 +1365,17 @@ function calculatePersonalMonths(birthDate, personalYear, today) {
|
|
|
1329
1365
|
};
|
|
1330
1366
|
}
|
|
1331
1367
|
function calculatePersonalCycles(birthDate, today = /* @__PURE__ */ new Date(), firstName) {
|
|
1332
|
-
const
|
|
1368
|
+
const birth = toCivil(birthDate);
|
|
1369
|
+
const yearToUse = lastBirthdayCivil(birth, toCivil(today)).year;
|
|
1333
1370
|
const personalYear = calculatePersonalYear(birthDate, today);
|
|
1334
|
-
const currentAge =
|
|
1335
|
-
|
|
1336
|
-
new Date(yearToUse, today.getMonth(), today.getDate())
|
|
1337
|
-
);
|
|
1338
|
-
const { lifePath } = calculateKaabalisticLifePath(birthDate);
|
|
1371
|
+
const currentAge = yearToUse - birth.year;
|
|
1372
|
+
const { lifePath } = chunkMZBY6G5S_js.calculateKaabalisticLifePath(birthDate);
|
|
1339
1373
|
const soulNumber = calculateSoulNumber(firstName);
|
|
1340
1374
|
const personalPeriods = calculatePersonalPeriods(
|
|
1341
1375
|
birthDate,
|
|
1342
1376
|
yearToUse,
|
|
1343
1377
|
lifePath.reducedValue,
|
|
1344
|
-
soulNumber.reducedValue,
|
|
1378
|
+
soulNumber.reducedValue === void 0 ? soulNumber : soulNumber.reducedValue,
|
|
1345
1379
|
currentAge
|
|
1346
1380
|
);
|
|
1347
1381
|
const { personalMonths, currentPersonalMonthIndex: currentPersonalMonth } = calculatePersonalMonths(birthDate, personalYear, today);
|
|
@@ -1361,22 +1395,19 @@ function calculatePersonalCycles(birthDate, today = /* @__PURE__ */ new Date(),
|
|
|
1361
1395
|
};
|
|
1362
1396
|
}
|
|
1363
1397
|
|
|
1364
|
-
exports.MASTER_NUMBERS = MASTER_NUMBERS;
|
|
1365
1398
|
exports.NUMEROLOGY_TEXT_DATA = NUMEROLOGY_TEXT_DATA;
|
|
1366
1399
|
exports.calculateChallenges = calculateChallenges;
|
|
1367
1400
|
exports.calculateCycles = calculateCycles;
|
|
1368
1401
|
exports.calculateFibonacciCycle = calculateFibonacciCycle;
|
|
1369
|
-
exports.calculateKaabalisticLifePath = calculateKaabalisticLifePath;
|
|
1370
1402
|
exports.calculatePersonalCycles = calculatePersonalCycles;
|
|
1371
1403
|
exports.calculatePersonalMonths = calculatePersonalMonths;
|
|
1372
1404
|
exports.calculatePersonalPeriods = calculatePersonalPeriods;
|
|
1373
1405
|
exports.calculatePersonalYear = calculatePersonalYear;
|
|
1374
|
-
exports.calculateStraightAcrossReductionLifePath = calculateStraightAcrossReductionLifePath;
|
|
1375
1406
|
exports.data_exports = data_exports;
|
|
1407
|
+
exports.describePartialBirthDate = describePartialBirthDate;
|
|
1408
|
+
exports.fibonacciFromAge = fibonacciFromAge;
|
|
1376
1409
|
exports.getDateEnergies = getDateEnergies;
|
|
1377
1410
|
exports.getNumerologyData = getNumerologyData;
|
|
1378
|
-
exports.
|
|
1379
|
-
exports.reduceToSingle = reduceToSingle;
|
|
1380
|
-
exports.reduceToSingleWithSteps = reduceToSingleWithSteps;
|
|
1411
|
+
exports.summarizeBirthDateCandidates = summarizeBirthDateCandidates;
|
|
1381
1412
|
//# sourceMappingURL=out.js.map
|
|
1382
|
-
//# sourceMappingURL=chunk-
|
|
1413
|
+
//# sourceMappingURL=chunk-GDJSVV46.js.map
|