kaabalah 6.13.0 → 6.15.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/dist/chunk-CFNMEJTR.mjs +3781 -0
- package/dist/chunk-CFNMEJTR.mjs.map +1 -0
- package/dist/{chunk-ZE2KPCHT.mjs → chunk-ICEVPLT4.mjs} +356 -2
- package/dist/chunk-ICEVPLT4.mjs.map +1 -0
- package/dist/{chunk-V5KXYFHZ.mjs → chunk-OTSJWMWK.mjs} +446 -6
- package/dist/chunk-OTSJWMWK.mjs.map +1 -0
- package/dist/chunk-RQLHFFXR.js +3809 -0
- package/dist/chunk-RQLHFFXR.js.map +1 -0
- package/dist/{chunk-MWHMP3LI.js → chunk-SXARKCYN.js} +456 -7
- package/dist/chunk-SXARKCYN.js.map +1 -0
- package/dist/{chunk-5PZ7EB2E.js → chunk-XHITSUSQ.js} +359 -1
- package/dist/chunk-XHITSUSQ.js.map +1 -0
- package/dist/cli.js +2174 -13
- package/dist/cli.js.map +1 -1
- package/dist/{data-BXhkIF1M.d.ts → data-Dle4z75J.d.ts} +9 -1
- package/dist/{data-2Hp_b3BD.d.mts → data-DvKCOgjb.d.mts} +9 -1
- package/dist/iching/index.d.mts +25 -5
- package/dist/iching/index.d.ts +25 -5
- package/dist/iching/index.js +50 -34
- package/dist/iching/index.mjs +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +149 -77
- package/dist/index.mjs +3 -3
- package/dist/semantic/index.d.mts +209 -2
- package/dist/semantic/index.d.ts +209 -2
- package/dist/semantic/index.js +57 -21
- package/dist/semantic/index.mjs +2 -2
- package/dist/tarot/index.d.mts +58 -3
- package/dist/tarot/index.d.ts +58 -3
- package/dist/tarot/index.js +43 -23
- package/dist/tarot/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-5PZ7EB2E.js.map +0 -1
- package/dist/chunk-GET23WEG.js +0 -2678
- package/dist/chunk-GET23WEG.js.map +0 -1
- package/dist/chunk-MWHMP3LI.js.map +0 -1
- package/dist/chunk-V5KXYFHZ.mjs.map +0 -1
- package/dist/chunk-WER5UY5M.mjs +0 -2655
- package/dist/chunk-WER5UY5M.mjs.map +0 -1
- package/dist/chunk-ZE2KPCHT.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRQLHFFXR_js = require('./chunk-RQLHFFXR.js');
|
|
4
4
|
var chunkUNXDDLZS_js = require('./chunk-UNXDDLZS.js');
|
|
5
5
|
var chunkSWWLTDR6_js = require('./chunk-SWWLTDR6.js');
|
|
6
6
|
var chunkCW6QDSMF_js = require('./chunk-CW6QDSMF.js');
|
|
@@ -553,8 +553,8 @@ function getKaabalisticCorrespondenceTargets(lookup) {
|
|
|
553
553
|
}
|
|
554
554
|
if (lookup.kind === "planet") {
|
|
555
555
|
const planet = normalizePlanetName(lookup.planet);
|
|
556
|
-
const
|
|
557
|
-
const planetPathTargets = (classicalPlanetPathIdsByKey().get(
|
|
556
|
+
const planetKey2 = normalizeLookupKey(planet);
|
|
557
|
+
const planetPathTargets = (classicalPlanetPathIdsByKey().get(planetKey2) ?? []).map((pathId) => ({
|
|
558
558
|
targetId: pathId,
|
|
559
559
|
targetType: "path",
|
|
560
560
|
targetName: getTargetName(pathId),
|
|
@@ -963,6 +963,446 @@ function buildKaabalisticMapData(input) {
|
|
|
963
963
|
};
|
|
964
964
|
}
|
|
965
965
|
|
|
966
|
+
// src/semantic/reading.ts
|
|
967
|
+
var TREE_ORDER = [
|
|
968
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Kether"),
|
|
969
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Chokhmah"),
|
|
970
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Binah"),
|
|
971
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Daath"),
|
|
972
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Chesed"),
|
|
973
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Geburah"),
|
|
974
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Tiphareth"),
|
|
975
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Netzach"),
|
|
976
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Hod"),
|
|
977
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Yesod"),
|
|
978
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Malkuth")
|
|
979
|
+
];
|
|
980
|
+
var DAATH = chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Daath");
|
|
981
|
+
var DAATH_SIGN = "Scorpio";
|
|
982
|
+
var RUNGS = TREE_ORDER.filter((id2) => id2 !== DAATH);
|
|
983
|
+
var SUIT_ELEMENT = { wands: "Fire", cups: "Water", swords: "Air", pentacles: "Earth" };
|
|
984
|
+
var SIGN_ELEMENT = {
|
|
985
|
+
Aries: "Fire",
|
|
986
|
+
Leo: "Fire",
|
|
987
|
+
Sagittarius: "Fire",
|
|
988
|
+
Taurus: "Earth",
|
|
989
|
+
Virgo: "Earth",
|
|
990
|
+
Capricorn: "Earth",
|
|
991
|
+
Gemini: "Air",
|
|
992
|
+
Libra: "Air",
|
|
993
|
+
Aquarius: "Air",
|
|
994
|
+
Cancer: "Water",
|
|
995
|
+
Scorpio: "Water",
|
|
996
|
+
Pisces: "Water"
|
|
997
|
+
};
|
|
998
|
+
var PLANET_KEYS = ["sun", "moon", "mercury", "venus", "mars", "jupiter", "saturn", "uranus", "neptune", "pluto"];
|
|
999
|
+
var TAG_TYPE = { westernZodiacSign: "sign", westernElement: "element", planet: "planet" };
|
|
1000
|
+
function resolveCard(cardNumber, slot) {
|
|
1001
|
+
const profile = chunkRQLHFFXR_js.getTarotCorrespondenceProfile({ tarotCardNumber: cardNumber });
|
|
1002
|
+
if (!profile)
|
|
1003
|
+
return null;
|
|
1004
|
+
const correspondences = profile.correspondences;
|
|
1005
|
+
const base = {
|
|
1006
|
+
slot: slot === "conscious" || slot === "unconscious" || slot === "subconscious" ? slot : null,
|
|
1007
|
+
number: cardNumber,
|
|
1008
|
+
name: profile.tarotCardName
|
|
1009
|
+
};
|
|
1010
|
+
if (profile.kind === "major") {
|
|
1011
|
+
const path = correspondences.path;
|
|
1012
|
+
const carried = ["westernZodiacSign", "westernElement", "planet"].map((type) => correspondences.astrology?.find((entry) => entry.type === type)).find(Boolean);
|
|
1013
|
+
return {
|
|
1014
|
+
...base,
|
|
1015
|
+
kind: "major",
|
|
1016
|
+
path: path ? { number: path.pathNumber, letter: path.hebrewLetter.label, from: path.fromSphere.id, to: path.toSphere.id } : void 0,
|
|
1017
|
+
tag: carried ? { type: TAG_TYPE[carried.type], value: carried.label } : void 0
|
|
1018
|
+
};
|
|
1019
|
+
}
|
|
1020
|
+
const suit = "suit" in profile ? profile.suit : void 0;
|
|
1021
|
+
const element = suit ? SUIT_ELEMENT[suit] : void 0;
|
|
1022
|
+
if (profile.kind === "minor") {
|
|
1023
|
+
const sphere = correspondences.sphere?.id;
|
|
1024
|
+
const rank = sphere ? RUNGS.indexOf(sphere) + 1 : 0;
|
|
1025
|
+
return {
|
|
1026
|
+
...base,
|
|
1027
|
+
kind: "minor",
|
|
1028
|
+
suit,
|
|
1029
|
+
sphere,
|
|
1030
|
+
planet: correspondences.planets?.[0]?.label,
|
|
1031
|
+
rank: rank > 0 ? rank : void 0,
|
|
1032
|
+
element
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
const courtRank = "courtRank" in profile ? profile.courtRank : void 0;
|
|
1036
|
+
return { ...base, kind: "court", suit, courtRank, sign: correspondences.sign?.label, element };
|
|
1037
|
+
}
|
|
1038
|
+
var MAJOR_ASPECTS = /* @__PURE__ */ new Set(["conjunction", "opposition", "square", "trine", "sextile"]);
|
|
1039
|
+
function projectChart(chart, options) {
|
|
1040
|
+
const known = new Set(PLANET_KEYS);
|
|
1041
|
+
const planets = {};
|
|
1042
|
+
const houses = {};
|
|
1043
|
+
for (const [name, planet] of Object.entries(chart.planets)) {
|
|
1044
|
+
const key = name.toLowerCase();
|
|
1045
|
+
const position = planet?.zodiacPosition;
|
|
1046
|
+
if (!known.has(key) || !position?.sign)
|
|
1047
|
+
continue;
|
|
1048
|
+
planets[key] = position.sign;
|
|
1049
|
+
if (options.houses && typeof position.house === "number")
|
|
1050
|
+
houses[key] = position.house;
|
|
1051
|
+
}
|
|
1052
|
+
const houseSigns = {};
|
|
1053
|
+
if (options.houses) {
|
|
1054
|
+
for (const [index, cusp] of (chart.houses?.houses ?? []).slice(0, 12).entries()) {
|
|
1055
|
+
if (cusp.sign)
|
|
1056
|
+
houseSigns[index + 1] = cusp.sign;
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
const aspects = (chart.aspects ?? []).map((edge) => ({ a: edge.planetA.toLowerCase(), b: edge.planetB.toLowerCase(), aspect: edge.aspect })).filter((edge) => MAJOR_ASPECTS.has(edge.aspect) && known.has(edge.a) && known.has(edge.b));
|
|
1060
|
+
return {
|
|
1061
|
+
planets,
|
|
1062
|
+
ascendant: options.houses ? chart.houses?.ascendant?.sign ?? null : null,
|
|
1063
|
+
...options.houses ? { houses } : {},
|
|
1064
|
+
...Object.keys(houseSigns).length > 0 ? { houseSigns } : {},
|
|
1065
|
+
aspects
|
|
1066
|
+
};
|
|
1067
|
+
}
|
|
1068
|
+
var planetKey = (label) => label.toLowerCase();
|
|
1069
|
+
function buildReadingWeights({ cards, iching, natal }) {
|
|
1070
|
+
const spheres = /* @__PURE__ */ new Map();
|
|
1071
|
+
const paths = /* @__PURE__ */ new Map();
|
|
1072
|
+
const add = (sphere, entry) => {
|
|
1073
|
+
const current = spheres.get(sphere) ?? { count: 0, hits: [] };
|
|
1074
|
+
current.count += 1;
|
|
1075
|
+
current.hits.push(entry);
|
|
1076
|
+
spheres.set(sphere, current);
|
|
1077
|
+
};
|
|
1078
|
+
const hit = (sphere, entry) => {
|
|
1079
|
+
if (sphere !== DAATH)
|
|
1080
|
+
add(sphere, entry);
|
|
1081
|
+
};
|
|
1082
|
+
const walk = (path) => paths.set(chunkQ7YAKPBH_js.id("path" /* PATH */, path), (paths.get(chunkQ7YAKPBH_js.id("path" /* PATH */, path)) ?? 0) + 1);
|
|
1083
|
+
for (const card of cards) {
|
|
1084
|
+
if (card.kind === "major" && card.path) {
|
|
1085
|
+
walk(card.path.number);
|
|
1086
|
+
hit(card.path.from, { system: "cards", key: "majorFrom", card, path: card.path.number });
|
|
1087
|
+
hit(card.path.to, { system: "cards", key: "majorTo", card, path: card.path.number });
|
|
1088
|
+
} else if (card.kind === "minor" && card.sphere) {
|
|
1089
|
+
hit(card.sphere, { system: "cards", key: "pipHome", card, sphere: card.sphere, element: card.element });
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
if (iching) {
|
|
1093
|
+
const states = [iching.cast, iching.transformed].filter((state) => state !== null);
|
|
1094
|
+
for (const state of states) {
|
|
1095
|
+
for (const gate of [state.kaabalah.gate.upper, state.kaabalah.gate.lower]) {
|
|
1096
|
+
const shared = { system: "iching", trigram: gate.trigram.id, letter: gate.letter.name, path: gate.path.number };
|
|
1097
|
+
walk(gate.path.number);
|
|
1098
|
+
hit(gate.path.from.id, { ...shared, key: "trigramFrom" });
|
|
1099
|
+
hit(gate.path.to.id, { ...shared, key: "trigramTo" });
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
const subconscious = cards.find((card) => card.slot === "subconscious");
|
|
1104
|
+
if (natal && subconscious?.kind === "minor" && subconscious.sphere && subconscious.planet) {
|
|
1105
|
+
const key = planetKey(subconscious.planet);
|
|
1106
|
+
const sign = natal.planets[key];
|
|
1107
|
+
if (sign) {
|
|
1108
|
+
const same = key !== "sun" && sign === natal.planets.sun ? "sun" : key !== "moon" && sign === natal.planets.moon ? "moon" : sign === natal.ascendant ? "ascendant" : null;
|
|
1109
|
+
hit(subconscious.sphere, { system: "chart", key: "pipPlanet", planet: key, sign, same, house: natal.houses?.[key] });
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
for (const card of cards) {
|
|
1113
|
+
const sign = card.kind === "major" ? card.tag?.type === "sign" ? card.tag.value : null : card.kind === "court" ? card.sign : null;
|
|
1114
|
+
if (sign !== DAATH_SIGN)
|
|
1115
|
+
continue;
|
|
1116
|
+
const planets = natal ? PLANET_KEYS.filter((key) => natal.planets[key] === sign) : [];
|
|
1117
|
+
if (card.kind === "major") {
|
|
1118
|
+
add(DAATH, { system: "cards", key: "majorSign", card, path: card.path?.number, letter: card.path?.letter, sign });
|
|
1119
|
+
if (planets.length > 0)
|
|
1120
|
+
add(DAATH, { system: "chart", key: "natalInSign", sign, planets });
|
|
1121
|
+
} else {
|
|
1122
|
+
add(DAATH, { system: "cards", key: "courtSign", card, sign, element: card.element });
|
|
1123
|
+
const ascendant = natal?.ascendant === sign;
|
|
1124
|
+
if (planets.length > 0 || ascendant)
|
|
1125
|
+
add(DAATH, { system: "chart", key: "natalHas", sign, planets, ascendant });
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
let top = null;
|
|
1129
|
+
let max = 0;
|
|
1130
|
+
for (const id2 of TREE_ORDER) {
|
|
1131
|
+
const count = spheres.get(id2)?.count ?? 0;
|
|
1132
|
+
if (count > max) {
|
|
1133
|
+
max = count;
|
|
1134
|
+
top = id2;
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
return { spheres, paths, top };
|
|
1138
|
+
}
|
|
1139
|
+
function rankedSpheres(weights) {
|
|
1140
|
+
return TREE_ORDER.filter((id2) => weights.spheres.has(id2)).map((id2) => ({ id: id2, ...weights.spheres.get(id2) })).sort((left, right) => right.count - left.count);
|
|
1141
|
+
}
|
|
1142
|
+
var hitId = (hit) => [hit.system, hit.key, hit.card?.number, hit.trigram, hit.path, hit.sphere, hit.planet, hit.sign, hit.house, hit.viaSign, hit.rulership].join("|");
|
|
1143
|
+
function collapseHits(hits) {
|
|
1144
|
+
const seen = /* @__PURE__ */ new Map();
|
|
1145
|
+
for (const hit of hits) {
|
|
1146
|
+
const id2 = hitId(hit);
|
|
1147
|
+
const entry = seen.get(id2);
|
|
1148
|
+
if (entry)
|
|
1149
|
+
entry.count += 1;
|
|
1150
|
+
else
|
|
1151
|
+
seen.set(id2, { hit, count: 1 });
|
|
1152
|
+
}
|
|
1153
|
+
return [...seen.values()];
|
|
1154
|
+
}
|
|
1155
|
+
var one = (hit) => ({ hit, count: 1 });
|
|
1156
|
+
function inWindow(month, day, window) {
|
|
1157
|
+
const value = month * 100 + day;
|
|
1158
|
+
const start = window.start.month * 100 + window.start.day;
|
|
1159
|
+
const end = window.end.month * 100 + window.end.day;
|
|
1160
|
+
return start <= end ? value >= start && value <= end : value >= start || value <= end;
|
|
1161
|
+
}
|
|
1162
|
+
function buildThreads(input, weights) {
|
|
1163
|
+
const { cards, iching, natal, sky, birthday } = input;
|
|
1164
|
+
const day = input.day ? { planets: input.day.planets, aspects: input.day.aspects, ascendant: null } : null;
|
|
1165
|
+
const threads = [];
|
|
1166
|
+
if (weights.top) {
|
|
1167
|
+
threads.push({
|
|
1168
|
+
id: "top",
|
|
1169
|
+
title: { kind: "top", sphere: weights.top },
|
|
1170
|
+
rows: collapseHits(weights.spheres.get(weights.top)?.hits ?? [])
|
|
1171
|
+
});
|
|
1172
|
+
}
|
|
1173
|
+
const natalPlanets = natal ? PLANET_KEYS.filter((key) => natal.planets[key]) : [];
|
|
1174
|
+
const conscious = cards.find((card) => card.slot === "conscious");
|
|
1175
|
+
const unconscious = cards.find((card) => card.slot === "unconscious");
|
|
1176
|
+
const subconscious = cards.find((card) => card.slot === "subconscious");
|
|
1177
|
+
const inSign = (chart, system, key, sign) => {
|
|
1178
|
+
if (!chart)
|
|
1179
|
+
return null;
|
|
1180
|
+
const planets = PLANET_KEYS.filter((planet) => chart.planets[planet] === sign);
|
|
1181
|
+
const ascendant = chart.ascendant === sign;
|
|
1182
|
+
return planets.length > 0 || ascendant ? { system, key, sign, planets, ascendant } : null;
|
|
1183
|
+
};
|
|
1184
|
+
const skyIn = (sign) => {
|
|
1185
|
+
const asked = inSign(sky, "sky", "skyIn", sign);
|
|
1186
|
+
const onDay = inSign(day, "day", "dayIn", sign);
|
|
1187
|
+
const same = asked && onDay && asked.planets?.join() === onDay.planets?.join();
|
|
1188
|
+
return [asked, same ? null : onDay].flatMap((hit) => hit ? [one(hit)] : []);
|
|
1189
|
+
};
|
|
1190
|
+
const aspectsOf = (chart, system, planet) => {
|
|
1191
|
+
const aspects = (chart?.aspects ?? []).filter((edge) => edge.a === planet || edge.b === planet).map((edge) => ({ other: edge.a === planet ? edge.b : edge.a, aspect: edge.aspect }));
|
|
1192
|
+
return aspects.length > 0 ? [{ hit: { system, key: "aspects", planet, aspects }, count: 1, detail: true }] : [];
|
|
1193
|
+
};
|
|
1194
|
+
const sameAspects = (left, right) => JSON.stringify(left[0]?.hit.aspects ?? null) === JSON.stringify(right[0]?.hit.aspects ?? null);
|
|
1195
|
+
const natalPlanet = (key) => natal?.planets[key] ? [
|
|
1196
|
+
one({ system: "chart", key: "natalPlanet", planet: key, sign: natal.planets[key], house: natal.houses?.[key] }),
|
|
1197
|
+
...aspectsOf(natal, "chart", key)
|
|
1198
|
+
] : [];
|
|
1199
|
+
const skyPlanet = (key) => {
|
|
1200
|
+
const askedAspects = aspectsOf(sky, "sky", key);
|
|
1201
|
+
const dayAspects = aspectsOf(day, "day", key);
|
|
1202
|
+
return [
|
|
1203
|
+
...sky?.planets[key] ? [one({ system: "sky", key: "skyPlanet", planet: key, sign: sky.planets[key], house: sky.houses?.[key] })] : [],
|
|
1204
|
+
...askedAspects,
|
|
1205
|
+
...day?.planets[key] && day.planets[key] !== sky?.planets[key] ? [one({ system: "day", key: "dayPlanet", planet: key, sign: day.planets[key] })] : [],
|
|
1206
|
+
...sameAspects(askedAspects, dayAspects) ? [] : dayAspects
|
|
1207
|
+
];
|
|
1208
|
+
};
|
|
1209
|
+
let consciousPlanet = null;
|
|
1210
|
+
if (conscious?.kind === "major" && conscious.tag && conscious.path) {
|
|
1211
|
+
const { type, value } = conscious.tag;
|
|
1212
|
+
const shared = { system: "cards", card: conscious, path: conscious.path.number, letter: conscious.path.letter };
|
|
1213
|
+
let title = null;
|
|
1214
|
+
const rows = [];
|
|
1215
|
+
if (type === "sign") {
|
|
1216
|
+
title = { kind: "sign", value };
|
|
1217
|
+
rows.push(one({ ...shared, key: "majorSign", sign: value }));
|
|
1218
|
+
const planets = natal ? natalPlanets.filter((key) => natal.planets[key] === value) : [];
|
|
1219
|
+
if (planets.length > 0)
|
|
1220
|
+
rows.push(one({ system: "chart", key: "natalInSign", sign: value, planets }));
|
|
1221
|
+
rows.push(...skyIn(value));
|
|
1222
|
+
const selected = new Set((input.selectedHouses ?? []).filter((house) => Number.isInteger(house) && house >= 1 && house <= 12));
|
|
1223
|
+
const context = (hit, selectedForQuestion = false) => ({
|
|
1224
|
+
hit,
|
|
1225
|
+
count: 1,
|
|
1226
|
+
detail: true,
|
|
1227
|
+
relevance: { weight: selectedForQuestion ? 2 : 1, selectedForQuestion, requiresHumanReview: true }
|
|
1228
|
+
});
|
|
1229
|
+
const ruler = chunkSWWLTDR6_js.getDomicileRuler(value)?.toLowerCase();
|
|
1230
|
+
const houses = [];
|
|
1231
|
+
for (const [chart, system] of [[natal, "chart"], [sky, "sky"]]) {
|
|
1232
|
+
for (const [number, sign] of Object.entries(chart?.houseSigns ?? {})) {
|
|
1233
|
+
const house = Number(number);
|
|
1234
|
+
if (sign !== value || !Number.isInteger(house) || house < 1 || house > 12)
|
|
1235
|
+
continue;
|
|
1236
|
+
houses.push(context({ system, key: "signHouse", sign: value, house, planet: ruler, rulership: ruler ? "traditional" : void 0 }, selected.has(house)));
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
houses.sort((left, right) => right.relevance.weight - left.relevance.weight);
|
|
1240
|
+
rows.push(...houses);
|
|
1241
|
+
if (ruler) {
|
|
1242
|
+
rows.push(context({ ...shared, key: "signRuler", sign: value, planet: ruler, rulership: "traditional" }));
|
|
1243
|
+
for (const card of cards) {
|
|
1244
|
+
const carriesRuler = card.kind === "minor" ? card.planet?.toLowerCase() === ruler : card.kind === "major" && card.tag?.type === "planet" && card.tag.value.toLowerCase() === ruler;
|
|
1245
|
+
if (carriesRuler)
|
|
1246
|
+
rows.push(context({ system: "cards", key: "rulerCard", card, sphere: card.sphere, sign: value, planet: ruler, rulership: "traditional" }));
|
|
1247
|
+
}
|
|
1248
|
+
for (const [chart, system] of [[natal, "chart"], [sky, "sky"], [day, "day"]]) {
|
|
1249
|
+
const sign = chart?.planets[ruler];
|
|
1250
|
+
if (!sign)
|
|
1251
|
+
continue;
|
|
1252
|
+
rows.push(context({
|
|
1253
|
+
system,
|
|
1254
|
+
key: "rulerPlacement",
|
|
1255
|
+
planet: ruler,
|
|
1256
|
+
sign,
|
|
1257
|
+
viaSign: value,
|
|
1258
|
+
house: chart && "houses" in chart ? chart.houses?.[ruler] : void 0,
|
|
1259
|
+
rulership: "traditional",
|
|
1260
|
+
aspects: (chart?.aspects ?? []).filter((edge) => edge.a === ruler || edge.b === ruler).map((edge) => ({ other: edge.a === ruler ? edge.b : edge.a, aspect: edge.aspect }))
|
|
1261
|
+
}));
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
} else if (type === "element") {
|
|
1265
|
+
title = { kind: "element", value };
|
|
1266
|
+
rows.push(one({ ...shared, key: "majorElement", element: value }));
|
|
1267
|
+
const placements = natal ? natalPlanets.filter((key) => SIGN_ELEMENT[natal.planets[key]] === value).map((key) => ({ planet: key, sign: natal.planets[key] })) : [];
|
|
1268
|
+
if (placements.length > 0)
|
|
1269
|
+
rows.push(one({ system: "chart", key: "natalInElement", element: value, placements }));
|
|
1270
|
+
const inElement = (chart) => chart ? PLANET_KEYS.filter((key) => SIGN_ELEMENT[chart.planets[key]] === value).map((key) => ({ planet: key, sign: chart.planets[key] })) : [];
|
|
1271
|
+
const asked = inElement(sky);
|
|
1272
|
+
const onDay = inElement(day);
|
|
1273
|
+
if (asked.length > 0)
|
|
1274
|
+
rows.push(one({ system: "sky", key: "skyInElement", element: value, placements: asked }));
|
|
1275
|
+
if (onDay.length > 0 && JSON.stringify(asked) !== JSON.stringify(onDay)) {
|
|
1276
|
+
rows.push(one({ system: "day", key: "dayInElement", element: value, placements: onDay }));
|
|
1277
|
+
}
|
|
1278
|
+
} else {
|
|
1279
|
+
const key = planetKey(value);
|
|
1280
|
+
consciousPlanet = key;
|
|
1281
|
+
title = { kind: "planet", value: key };
|
|
1282
|
+
rows.push(one({ ...shared, key: "majorPlanet", planet: key }));
|
|
1283
|
+
if (subconscious?.kind === "minor" && subconscious.planet && planetKey(subconscious.planet) === key) {
|
|
1284
|
+
rows.push(one({ system: "cards", key: "pipAlsoPlanet", card: subconscious, sphere: subconscious.sphere, planet: key }));
|
|
1285
|
+
}
|
|
1286
|
+
rows.push(...natalPlanet(key), ...skyPlanet(key));
|
|
1287
|
+
}
|
|
1288
|
+
if (title && rows.some((row) => row.hit.system !== "cards" || row.relevance?.requiresHumanReview))
|
|
1289
|
+
threads.push({ id: "conscious", title, rows });
|
|
1290
|
+
}
|
|
1291
|
+
if (unconscious?.kind === "court" && unconscious.sign && (natal || sky || day)) {
|
|
1292
|
+
const sign = unconscious.sign;
|
|
1293
|
+
const rows = [one({ system: "cards", key: "courtSign", card: unconscious, sign, element: unconscious.element })];
|
|
1294
|
+
if (natal) {
|
|
1295
|
+
const planets = natalPlanets.filter((key) => natal.planets[key] === sign);
|
|
1296
|
+
const ascendant = natal.ascendant === sign;
|
|
1297
|
+
rows.push(
|
|
1298
|
+
one(
|
|
1299
|
+
planets.length > 0 || ascendant ? { system: "chart", key: "natalHas", sign, planets, ascendant } : { system: "chart", key: "natalNone", sign }
|
|
1300
|
+
)
|
|
1301
|
+
);
|
|
1302
|
+
}
|
|
1303
|
+
rows.push(...skyIn(sign));
|
|
1304
|
+
if (rows.length > 1)
|
|
1305
|
+
threads.push({ id: "unconscious", title: { kind: "sign", value: sign }, rows });
|
|
1306
|
+
}
|
|
1307
|
+
if (subconscious?.kind === "minor" && subconscious.planet && subconscious.sphere) {
|
|
1308
|
+
const key = planetKey(subconscious.planet);
|
|
1309
|
+
const moment = key === consciousPlanet ? [] : [...aspectsOf(natal, "chart", key), ...skyPlanet(key)];
|
|
1310
|
+
if (moment.length > 0) {
|
|
1311
|
+
threads.push({
|
|
1312
|
+
id: "subconscious",
|
|
1313
|
+
title: { kind: "planet", value: key },
|
|
1314
|
+
rows: [one({ system: "cards", key: "pipIsPlanet", card: subconscious, sphere: subconscious.sphere, planet: key }), ...moment]
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
if (iching && birthday) {
|
|
1319
|
+
const states = [iching.cast, iching.transformed].filter((state) => state !== null);
|
|
1320
|
+
for (const state of states) {
|
|
1321
|
+
const window = state.sovereign?.approximateSolarWindow;
|
|
1322
|
+
if (!window || !inWindow(birthday.month, birthday.day, window))
|
|
1323
|
+
continue;
|
|
1324
|
+
threads.push({
|
|
1325
|
+
id: `sovereign-${state.hexagram.number}`,
|
|
1326
|
+
title: { kind: "window", window },
|
|
1327
|
+
rows: [
|
|
1328
|
+
one({ system: "iching", key: "sovereign", hexagram: state.hexagram.number, window }),
|
|
1329
|
+
one({ system: "you", key: "birthday" })
|
|
1330
|
+
]
|
|
1331
|
+
});
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
return threads;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
// src/semantic/readingReference.json
|
|
1338
|
+
var readingReference_default = {
|
|
1339
|
+
en: {
|
|
1340
|
+
gloss: {
|
|
1341
|
+
Kether: "the idea",
|
|
1342
|
+
Chokhmah: "the vision",
|
|
1343
|
+
Binah: "the word",
|
|
1344
|
+
Daath: "the door",
|
|
1345
|
+
Chesed: "the plan",
|
|
1346
|
+
Geburah: "the stumbles",
|
|
1347
|
+
Tiphareth: "the heart",
|
|
1348
|
+
Netzach: "the victory built in silence",
|
|
1349
|
+
Hod: "the agreement",
|
|
1350
|
+
Yesod: "the yes or no",
|
|
1351
|
+
Malkuth: "the pot of gold"
|
|
1352
|
+
},
|
|
1353
|
+
rung: {
|
|
1354
|
+
"1": "the idea still without form",
|
|
1355
|
+
"2": "you already see the idea",
|
|
1356
|
+
"3": "you already speak of it inside",
|
|
1357
|
+
"4": "time to plan it on paper",
|
|
1358
|
+
"5": "time to look at the stumbles",
|
|
1359
|
+
"6": "bring it in line with what you believe",
|
|
1360
|
+
"7": "close to becoming real",
|
|
1361
|
+
"8": "time for the agreement, the contract",
|
|
1362
|
+
"9": "the hour of yes or no",
|
|
1363
|
+
"10": "it is already in matter"
|
|
1364
|
+
}
|
|
1365
|
+
},
|
|
1366
|
+
"pt-BR": {
|
|
1367
|
+
gloss: {
|
|
1368
|
+
Kether: "a ideia",
|
|
1369
|
+
Chokhmah: "a vis\xE3o",
|
|
1370
|
+
Binah: "a palavra",
|
|
1371
|
+
Daath: "a porta",
|
|
1372
|
+
Chesed: "o plano",
|
|
1373
|
+
Geburah: "os trope\xE7os",
|
|
1374
|
+
Tiphareth: "o cora\xE7\xE3o",
|
|
1375
|
+
Netzach: "a vit\xF3ria que se constr\xF3i em sil\xEAncio",
|
|
1376
|
+
Hod: "o acordo",
|
|
1377
|
+
Yesod: "o sim ou n\xE3o",
|
|
1378
|
+
Malkuth: "o pote de ouro"
|
|
1379
|
+
},
|
|
1380
|
+
rung: {
|
|
1381
|
+
"1": "a ideia ainda sem forma",
|
|
1382
|
+
"2": "voc\xEA j\xE1 enxerga a ideia",
|
|
1383
|
+
"3": "voc\xEA j\xE1 fala dela por dentro",
|
|
1384
|
+
"4": "hora de planejar no papel",
|
|
1385
|
+
"5": "hora de olhar os trope\xE7os",
|
|
1386
|
+
"6": "harmonizar com o que voc\xEA acredita",
|
|
1387
|
+
"7": "perto de virar realidade",
|
|
1388
|
+
"8": "hora do acordo, do contrato",
|
|
1389
|
+
"9": "a hora do sim ou n\xE3o",
|
|
1390
|
+
"10": "j\xE1 est\xE1 na mat\xE9ria"
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
};
|
|
1394
|
+
|
|
1395
|
+
// src/semantic/reference.ts
|
|
1396
|
+
for (const vocabulary of Object.values(readingReference_default)) {
|
|
1397
|
+
Object.freeze(vocabulary.gloss);
|
|
1398
|
+
Object.freeze(vocabulary.rung);
|
|
1399
|
+
Object.freeze(vocabulary);
|
|
1400
|
+
}
|
|
1401
|
+
Object.freeze(readingReference_default);
|
|
1402
|
+
function getReadingReference(language) {
|
|
1403
|
+
return readingReference_default[language?.startsWith("pt") ? "pt-BR" : "en"];
|
|
1404
|
+
}
|
|
1405
|
+
|
|
966
1406
|
// src/semantic/index.ts
|
|
967
1407
|
var OCCULT_THEME_STOPWORDS = [
|
|
968
1408
|
"the",
|
|
@@ -1639,7 +2079,7 @@ function buildTarotThemeProfile(card) {
|
|
|
1639
2079
|
if (!cardNode) {
|
|
1640
2080
|
throw new Error(`Missing canonical tarot node for ${cardId}.`);
|
|
1641
2081
|
}
|
|
1642
|
-
const majorArchetypeData = card.type === "major" ?
|
|
2082
|
+
const majorArchetypeData = card.type === "major" ? chunkRQLHFFXR_js.getTarotArchetype({ tarotCardNumber: card.number }) : void 0;
|
|
1643
2083
|
const majorArchetype = majorArchetypeData ? {
|
|
1644
2084
|
pathId: majorArchetypeData.pathId,
|
|
1645
2085
|
pathNumber: majorArchetypeData.pathNumber,
|
|
@@ -1707,7 +2147,7 @@ function getTarotThemeProfileCache() {
|
|
|
1707
2147
|
if (tarotThemeProfilesCache) {
|
|
1708
2148
|
return tarotThemeProfilesCache;
|
|
1709
2149
|
}
|
|
1710
|
-
const profiles = Object.freeze(
|
|
2150
|
+
const profiles = Object.freeze(chunkRQLHFFXR_js.ARKANNUS.map((card) => buildTarotThemeProfile(card)));
|
|
1711
2151
|
tarotThemeProfilesCache = {
|
|
1712
2152
|
profiles,
|
|
1713
2153
|
byId: new Map(profiles.map((profile) => [profile.id, profile])),
|
|
@@ -1778,7 +2218,7 @@ function getTarotThemeProfile(lookup) {
|
|
|
1778
2218
|
return cache.byId.get(lookup);
|
|
1779
2219
|
}
|
|
1780
2220
|
if (lookup.startsWith(`${"path" /* PATH */}:`)) {
|
|
1781
|
-
const archetype =
|
|
2221
|
+
const archetype = chunkRQLHFFXR_js.getTarotArchetype({
|
|
1782
2222
|
pathId: lookup
|
|
1783
2223
|
});
|
|
1784
2224
|
return archetype ? cache.byCardNumber.get(archetype.tarotCardNumber) : void 0;
|
|
@@ -1804,7 +2244,12 @@ function getTarotThemeProfile(lookup) {
|
|
|
1804
2244
|
}
|
|
1805
2245
|
|
|
1806
2246
|
exports.OCCULT_THEME_STOPWORDS = OCCULT_THEME_STOPWORDS;
|
|
2247
|
+
exports.PLANET_KEYS = PLANET_KEYS;
|
|
2248
|
+
exports.TREE_ORDER = TREE_ORDER;
|
|
1807
2249
|
exports.buildKaabalisticMapData = buildKaabalisticMapData;
|
|
2250
|
+
exports.buildReadingWeights = buildReadingWeights;
|
|
2251
|
+
exports.buildThreads = buildThreads;
|
|
2252
|
+
exports.collapseHits = collapseHits;
|
|
1808
2253
|
exports.getAngleSymbolMetadata = getAngleSymbolMetadata;
|
|
1809
2254
|
exports.getAstrologyTreeMarkers = getAstrologyTreeMarkers;
|
|
1810
2255
|
exports.getGematriaTreeMarkers = getGematriaTreeMarkers;
|
|
@@ -1813,6 +2258,7 @@ exports.getKaabalisticCorrespondenceTargets = getKaabalisticCorrespondenceTarget
|
|
|
1813
2258
|
exports.getNodeSymbolMetadata = getNodeSymbolMetadata;
|
|
1814
2259
|
exports.getNumerologyTreeMarkers = getNumerologyTreeMarkers;
|
|
1815
2260
|
exports.getPlanetSymbolMetadata = getPlanetSymbolMetadata;
|
|
2261
|
+
exports.getReadingReference = getReadingReference;
|
|
1816
2262
|
exports.getTarotThemeProfile = getTarotThemeProfile;
|
|
1817
2263
|
exports.getZodiacSignSymbolMetadata = getZodiacSignSymbolMetadata;
|
|
1818
2264
|
exports.listAngleSymbolMetadata = listAngleSymbolMetadata;
|
|
@@ -1821,6 +2267,9 @@ exports.listNodeSymbolMetadata = listNodeSymbolMetadata;
|
|
|
1821
2267
|
exports.listPlanetSymbolMetadata = listPlanetSymbolMetadata;
|
|
1822
2268
|
exports.listTarotThemeProfiles = listTarotThemeProfiles;
|
|
1823
2269
|
exports.listZodiacSignSymbolMetadata = listZodiacSignSymbolMetadata;
|
|
2270
|
+
exports.projectChart = projectChart;
|
|
2271
|
+
exports.rankedSpheres = rankedSpheres;
|
|
2272
|
+
exports.resolveCard = resolveCard;
|
|
1824
2273
|
exports.tokenizeOccultThemeText = tokenizeOccultThemeText;
|
|
1825
2274
|
//# sourceMappingURL=out.js.map
|
|
1826
|
-
//# sourceMappingURL=chunk-
|
|
2275
|
+
//# sourceMappingURL=chunk-SXARKCYN.js.map
|