kaabalah 6.14.0 → 6.16.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.
Files changed (117) hide show
  1. package/README.md +15 -0
  2. package/dist/astrology/index.d.mts +39 -1
  3. package/dist/astrology/index.d.ts +39 -1
  4. package/dist/astrology/index.js +75 -53
  5. package/dist/astrology/index.mjs +3 -1
  6. package/dist/chunk-2IC6H3FI.js +1600 -0
  7. package/dist/chunk-2IC6H3FI.js.map +1 -0
  8. package/dist/{chunk-RAQDVWNK.mjs → chunk-3JMY4U4S.mjs} +546 -3
  9. package/dist/chunk-3JMY4U4S.mjs.map +1 -0
  10. package/dist/chunk-3QN5V3DP.js +4737 -0
  11. package/dist/chunk-3QN5V3DP.js.map +1 -0
  12. package/dist/{chunk-UNXDDLZS.js → chunk-6LZOAU6E.js} +548 -3
  13. package/dist/chunk-6LZOAU6E.js.map +1 -0
  14. package/dist/{chunk-LXJ3THNW.mjs → chunk-7JWBIAUF.mjs} +12 -9
  15. package/dist/chunk-7JWBIAUF.mjs.map +1 -0
  16. package/dist/{chunk-Q7YAKPBH.js → chunk-7OWGGDRF.js} +80 -1015
  17. package/dist/chunk-7OWGGDRF.js.map +1 -0
  18. package/dist/{chunk-2WCC2KCJ.js → chunk-BALOSCWQ.mjs} +22 -3
  19. package/dist/chunk-BALOSCWQ.mjs.map +1 -0
  20. package/dist/{chunk-4PVIDUPI.js → chunk-BKFHIKFY.js} +647 -187
  21. package/dist/chunk-BKFHIKFY.js.map +1 -0
  22. package/dist/{chunk-7C7VO76O.js → chunk-CMXTZKWW.js} +574 -147
  23. package/dist/chunk-CMXTZKWW.js.map +1 -0
  24. package/dist/{chunk-6GDEXIDI.js → chunk-HEZCZXQC.js} +25 -22
  25. package/dist/chunk-HEZCZXQC.js.map +1 -0
  26. package/dist/chunk-ICUDGCYX.js +15 -0
  27. package/dist/chunk-ICUDGCYX.js.map +1 -0
  28. package/dist/chunk-IT7GZ337.mjs +4679 -0
  29. package/dist/chunk-IT7GZ337.mjs.map +1 -0
  30. package/dist/{chunk-NOZKIUGP.mjs → chunk-J5Y325TG.mjs} +80 -1015
  31. package/dist/chunk-J5Y325TG.mjs.map +1 -0
  32. package/dist/chunk-JY4QC6FR.js +2214 -0
  33. package/dist/chunk-JY4QC6FR.js.map +1 -0
  34. package/dist/{chunk-URDMOQRN.mjs → chunk-L5EYUE4B.js} +27 -2
  35. package/dist/chunk-L5EYUE4B.js.map +1 -0
  36. package/dist/{chunk-QQN54SLY.mjs → chunk-LQVHJ3VY.mjs} +454 -32
  37. package/dist/chunk-LQVHJ3VY.mjs.map +1 -0
  38. package/dist/{chunk-WA52P72D.mjs → chunk-MWLSSRHL.mjs} +628 -168
  39. package/dist/chunk-MWLSSRHL.mjs.map +1 -0
  40. package/dist/{chunk-CW6QDSMF.js → chunk-PBBF5DKC.js} +88 -21
  41. package/dist/chunk-PBBF5DKC.js.map +1 -0
  42. package/dist/chunk-RUE6NTVT.mjs +2211 -0
  43. package/dist/chunk-RUE6NTVT.mjs.map +1 -0
  44. package/dist/{chunk-X5HGLMEF.mjs → chunk-UO2RQQZO.mjs} +770 -3
  45. package/dist/chunk-UO2RQQZO.mjs.map +1 -0
  46. package/dist/chunk-W2N7STO3.mjs +13 -0
  47. package/dist/chunk-W2N7STO3.mjs.map +1 -0
  48. package/dist/chunk-WP5MRAYG.mjs +6289 -0
  49. package/dist/chunk-WP5MRAYG.mjs.map +1 -0
  50. package/dist/chunk-WRF3EORB.js +6333 -0
  51. package/dist/chunk-WRF3EORB.js.map +1 -0
  52. package/dist/{chunk-OSMB2MJR.mjs → chunk-Z3JZ5DZN.mjs} +68 -3
  53. package/dist/chunk-Z3JZ5DZN.mjs.map +1 -0
  54. package/dist/cli.js +39837 -28550
  55. package/dist/cli.js.map +1 -1
  56. package/dist/core/index.d.mts +24 -1
  57. package/dist/core/index.d.ts +24 -1
  58. package/dist/core/index.js +67 -53
  59. package/dist/core/index.mjs +4 -2
  60. package/dist/{data-BRi5-xg_.d.ts → data-Dle4z75J.d.ts} +1 -1
  61. package/dist/{data-BoQrkrWX.d.mts → data-DvKCOgjb.d.mts} +1 -1
  62. package/dist/gematria/index.d.mts +153 -1
  63. package/dist/gematria/index.d.ts +153 -1
  64. package/dist/gematria/index.js +15 -5
  65. package/dist/gematria/index.mjs +4 -2
  66. package/dist/iching/index.d.mts +802 -30
  67. package/dist/iching/index.d.ts +802 -30
  68. package/dist/iching/index.js +72 -38
  69. package/dist/iching/index.mjs +5 -3
  70. package/dist/ifa/index.d.mts +44 -1
  71. package/dist/ifa/index.d.ts +44 -1
  72. package/dist/ifa/index.js +11 -2
  73. package/dist/ifa/index.mjs +2 -1
  74. package/dist/index.d.mts +8 -8
  75. package/dist/index.d.ts +8 -8
  76. package/dist/index.js +375 -265
  77. package/dist/index.mjs +12 -10
  78. package/dist/numerology/index.d.mts +872 -1
  79. package/dist/numerology/index.d.ts +872 -1
  80. package/dist/numerology/index.js +28 -18
  81. package/dist/numerology/index.mjs +5 -3
  82. package/dist/semantic/index.d.mts +94 -17
  83. package/dist/semantic/index.d.ts +94 -17
  84. package/dist/semantic/index.js +57 -35
  85. package/dist/semantic/index.mjs +9 -7
  86. package/dist/tarot/index.d.mts +15 -10
  87. package/dist/tarot/index.d.ts +15 -10
  88. package/dist/tarot/index.js +32 -30
  89. package/dist/tarot/index.mjs +5 -3
  90. package/dist/visual/index.js +48 -46
  91. package/dist/visual/index.mjs +5 -3
  92. package/package.json +7 -3
  93. package/dist/chunk-2WCC2KCJ.js.map +0 -1
  94. package/dist/chunk-47BAJUYW.js +0 -830
  95. package/dist/chunk-47BAJUYW.js.map +0 -1
  96. package/dist/chunk-4PVIDUPI.js.map +0 -1
  97. package/dist/chunk-6GDEXIDI.js.map +0 -1
  98. package/dist/chunk-7C7VO76O.js.map +0 -1
  99. package/dist/chunk-CW6QDSMF.js.map +0 -1
  100. package/dist/chunk-LXJ3THNW.mjs.map +0 -1
  101. package/dist/chunk-NOZKIUGP.mjs.map +0 -1
  102. package/dist/chunk-OSMB2MJR.mjs.map +0 -1
  103. package/dist/chunk-OZUEDZ4U.mjs +0 -3699
  104. package/dist/chunk-OZUEDZ4U.mjs.map +0 -1
  105. package/dist/chunk-PEHDLSUH.mjs +0 -2227
  106. package/dist/chunk-PEHDLSUH.mjs.map +0 -1
  107. package/dist/chunk-Q7YAKPBH.js.map +0 -1
  108. package/dist/chunk-QQN54SLY.mjs.map +0 -1
  109. package/dist/chunk-RAQDVWNK.mjs.map +0 -1
  110. package/dist/chunk-SWWLTDR6.js +0 -2280
  111. package/dist/chunk-SWWLTDR6.js.map +0 -1
  112. package/dist/chunk-UNXDDLZS.js.map +0 -1
  113. package/dist/chunk-URDMOQRN.mjs.map +0 -1
  114. package/dist/chunk-WA52P72D.mjs.map +0 -1
  115. package/dist/chunk-X5HGLMEF.mjs.map +0 -1
  116. package/dist/chunk-XWVT3SI7.js +0 -3735
  117. package/dist/chunk-XWVT3SI7.js.map +0 -1
@@ -1,9 +1,288 @@
1
- import { getTarotCorrespondenceProfile, getTarotArchetype, ARKANNUS } from './chunk-WA52P72D.mjs';
2
- import { calculateKaabalisticLifePath, calculateStraightAcrossReductionLifePath } from './chunk-RAQDVWNK.mjs';
3
- import { PLANET_AND_NODE_NAMES, getDomicileRuler, computeAspects, DEFAULT_ASPECT_SPECS } from './chunk-PEHDLSUH.mjs';
4
- import { calculateGematria } from './chunk-OSMB2MJR.mjs';
5
- import { getCanonicalTree } from './chunk-X5HGLMEF.mjs';
6
- import { SPHERES, id, WESTERN_ZODIAC_SIGNS, PLANETS, WESTERN_HOUSES, parseId, WESTERN_ASPECTS } from './chunk-NOZKIUGP.mjs';
1
+ import { getTarotCorrespondenceProfile, getTarotArchetype, ARKANNUS } from './chunk-MWLSSRHL.mjs';
2
+ import { calculateKaabalisticLifePath, calculateStraightAcrossReductionLifePath } from './chunk-3JMY4U4S.mjs';
3
+ import { PLANET_AND_NODE_NAMES, getDomicileRuler, computeAspects, DEFAULT_ASPECT_SPECS } from './chunk-IT7GZ337.mjs';
4
+ import { calculateGematria } from './chunk-Z3JZ5DZN.mjs';
5
+ import { getCanonicalTree } from './chunk-UO2RQQZO.mjs';
6
+ import { SPHERES, id, WESTERN_ZODIAC_SIGNS, PLANETS, WESTERN_HOUSES, parseId, WESTERN_ASPECTS } from './chunk-J5Y325TG.mjs';
7
+ import { freezeTextData } from './chunk-W2N7STO3.mjs';
8
+
9
+ // src/semantic/labels.json
10
+ var labels_default = {
11
+ Aries: {
12
+ en: "Aries",
13
+ pt: "\xC1ries"
14
+ },
15
+ Taurus: {
16
+ en: "Taurus",
17
+ pt: "Touro"
18
+ },
19
+ Gemini: {
20
+ en: "Gemini",
21
+ pt: "G\xEAmeos"
22
+ },
23
+ Cancer: {
24
+ en: "Cancer",
25
+ pt: "C\xE2ncer"
26
+ },
27
+ Leo: {
28
+ en: "Leo",
29
+ pt: "Le\xE3o"
30
+ },
31
+ Virgo: {
32
+ en: "Virgo",
33
+ pt: "Virgem"
34
+ },
35
+ Libra: {
36
+ en: "Libra",
37
+ pt: "Libra"
38
+ },
39
+ Scorpio: {
40
+ en: "Scorpio",
41
+ pt: "Escorpi\xE3o"
42
+ },
43
+ Sagittarius: {
44
+ en: "Sagittarius",
45
+ pt: "Sagit\xE1rio"
46
+ },
47
+ Capricorn: {
48
+ en: "Capricorn",
49
+ pt: "Capric\xF3rnio"
50
+ },
51
+ Aquarius: {
52
+ en: "Aquarius",
53
+ pt: "Aqu\xE1rio"
54
+ },
55
+ Pisces: {
56
+ en: "Pisces",
57
+ pt: "Peixes"
58
+ },
59
+ Sun: {
60
+ en: "Sun",
61
+ pt: "Sol"
62
+ },
63
+ Moon: {
64
+ en: "Moon",
65
+ pt: "Lua"
66
+ },
67
+ Mercury: {
68
+ en: "Mercury",
69
+ pt: "Merc\xFArio"
70
+ },
71
+ Venus: {
72
+ en: "Venus",
73
+ pt: "V\xEAnus"
74
+ },
75
+ Mars: {
76
+ en: "Mars",
77
+ pt: "Marte"
78
+ },
79
+ Jupiter: {
80
+ en: "Jupiter",
81
+ pt: "J\xFApiter"
82
+ },
83
+ Saturn: {
84
+ en: "Saturn",
85
+ pt: "Saturno"
86
+ },
87
+ Uranus: {
88
+ en: "Uranus",
89
+ pt: "Urano"
90
+ },
91
+ Neptune: {
92
+ en: "Neptune",
93
+ pt: "Netuno"
94
+ },
95
+ Pluto: {
96
+ en: "Pluto",
97
+ pt: "Plut\xE3o"
98
+ },
99
+ Earth: {
100
+ en: "Earth",
101
+ pt: "Terra"
102
+ },
103
+ Chiron: {
104
+ en: "Chiron",
105
+ pt: "Qu\xEDron"
106
+ },
107
+ ASC: {
108
+ en: "ASC",
109
+ pt: "ASC"
110
+ },
111
+ MC: {
112
+ en: "MC",
113
+ pt: "MC"
114
+ },
115
+ DC: {
116
+ en: "DC",
117
+ pt: "DC"
118
+ },
119
+ IC: {
120
+ en: "IC",
121
+ pt: "IC"
122
+ },
123
+ Vertex: {
124
+ en: "Vertex",
125
+ pt: "V\xE9rtice"
126
+ },
127
+ "Wheel of Fortune": {
128
+ en: "Wheel of Fortune",
129
+ pt: "Roda da Fortuna"
130
+ },
131
+ "Mean Node": {
132
+ en: "Mean Node",
133
+ pt: "Nodo m\xE9dio"
134
+ },
135
+ "True Node": {
136
+ en: "True Node",
137
+ pt: "Nodo verdadeiro"
138
+ },
139
+ "Lilith Mean": {
140
+ en: "Lilith Mean",
141
+ pt: "Lilith m\xE9dia"
142
+ },
143
+ "Lilith True": {
144
+ en: "Lilith True",
145
+ pt: "Lilith verdadeira"
146
+ },
147
+ "Day Energy": {
148
+ en: "Day Energy",
149
+ pt: "Energia do dia"
150
+ },
151
+ "Month Energy": {
152
+ en: "Month Energy",
153
+ pt: "Energia do m\xEAs"
154
+ },
155
+ "Year Energy": {
156
+ en: "Year Energy",
157
+ pt: "Energia do ano"
158
+ },
159
+ "Life Path (Kaabalistic)": {
160
+ en: "Life Path (Kaabalistic)",
161
+ pt: "Caminho de vida pela Kaabalah"
162
+ },
163
+ "Life Path (Straight)": {
164
+ en: "Life Path (Straight)",
165
+ pt: "Caminho de vida pela soma direta"
166
+ },
167
+ Vowels: {
168
+ en: "Vowels",
169
+ pt: "Vogais"
170
+ },
171
+ Consonants: {
172
+ en: "Consonants",
173
+ pt: "Consoantes"
174
+ },
175
+ Synthesis: {
176
+ en: "Synthesis",
177
+ pt: "S\xEDntese"
178
+ },
179
+ "Included Letters": {
180
+ en: "Included Letters",
181
+ pt: "Letras inclu\xEDdas"
182
+ },
183
+ Path: {
184
+ en: "Path",
185
+ pt: "Caminho"
186
+ },
187
+ House: {
188
+ en: "House",
189
+ pt: "Casa"
190
+ },
191
+ Aspects: {
192
+ en: "Aspects",
193
+ pt: "Aspectos"
194
+ },
195
+ Conjunction: {
196
+ en: "Conjunction",
197
+ pt: "Conjun\xE7\xE3o"
198
+ },
199
+ Opposition: {
200
+ en: "Opposition",
201
+ pt: "Oposi\xE7\xE3o"
202
+ },
203
+ Trine: {
204
+ en: "Trine",
205
+ pt: "Tr\xEDgono"
206
+ },
207
+ Square: {
208
+ en: "Square",
209
+ pt: "Quadratura"
210
+ },
211
+ Sextile: {
212
+ en: "Sextile",
213
+ pt: "Sextil"
214
+ },
215
+ Quincunx: {
216
+ en: "Quincunx",
217
+ pt: "Quinc\xFAncio"
218
+ },
219
+ Semisextile: {
220
+ en: "Semisextile",
221
+ pt: "Semissextil"
222
+ },
223
+ Semisquare: {
224
+ en: "Semisquare",
225
+ pt: "Semiquadratura"
226
+ },
227
+ Sesquiquadrate: {
228
+ en: "Sesquiquadrate",
229
+ pt: "Sesquiquadratura"
230
+ },
231
+ Quintile: {
232
+ en: "Quintile",
233
+ pt: "Quintil"
234
+ },
235
+ Biquintile: {
236
+ en: "Biquintile",
237
+ pt: "Biquintil"
238
+ },
239
+ "{source} in {sign}": {
240
+ en: "{source} in {sign}",
241
+ pt: "{source} em {sign}"
242
+ },
243
+ "{source} \u2022 House {house}": {
244
+ en: "{source} \u2022 House {house}",
245
+ pt: "{source} \u2022 Casa {house}"
246
+ },
247
+ Duodecile: {
248
+ en: "Duodecile",
249
+ pt: "Semissextil"
250
+ },
251
+ Octile: {
252
+ en: "Octile",
253
+ pt: "Semiquadratura"
254
+ },
255
+ Trioctile: {
256
+ en: "Trioctile",
257
+ pt: "Sesquiquadratura"
258
+ }
259
+ };
260
+
261
+ // src/semantic/labels.ts
262
+ var KAABALISTIC_LABELS = freezeTextData(labels_default);
263
+ function getKaabalisticLabel(english, language) {
264
+ if (!language?.startsWith("pt"))
265
+ return english;
266
+ const row = KAABALISTIC_LABELS[english];
267
+ if (row)
268
+ return row.pt;
269
+ const path = /^Path (\d+)$/.exec(english);
270
+ if (path)
271
+ return `${KAABALISTIC_LABELS.Path.pt} ${path[1]}`;
272
+ const life = /^(Life Path \((?:Kaabalistic|Straight)\)) (\d+)$/.exec(english);
273
+ if (life)
274
+ return `${KAABALISTIC_LABELS[life[1]].pt} ${life[2]}`;
275
+ const sign = /^(.*) in (.*)$/.exec(english);
276
+ if (sign)
277
+ return KAABALISTIC_LABELS["{source} in {sign}"].pt.replace("{source}", getKaabalisticLabel(sign[1], language)).replace("{sign}", getKaabalisticLabel(sign[2], language));
278
+ const house = /^(.*) • House (\d+)$/.exec(english);
279
+ if (house)
280
+ return KAABALISTIC_LABELS["{source} \u2022 House {house}"].pt.replace("{source}", getKaabalisticLabel(house[1], language)).replace("{house}", house[2]);
281
+ const aspect = /^Aspects \u2014 (.*)$/.exec(english);
282
+ if (aspect)
283
+ return `${KAABALISTIC_LABELS.Aspects.pt}: ${getKaabalisticLabel(aspect[1], language)}`;
284
+ return english;
285
+ }
7
286
 
8
287
  // src/semantic/kaabalistic.ts
9
288
  var canonicalTreeInstance;
@@ -267,32 +546,32 @@ function normalizeAngleName(angle) {
267
546
  const metadata = symbolRegistry.byKey.get(normalizeLookupKey(rawAngle));
268
547
  return metadata?.kind === "angle" ? metadata.label : rawAngle;
269
548
  }
270
- function listPlanetSymbolMetadata() {
271
- return symbolRegistry.planets;
549
+ function listPlanetSymbolMetadata(language) {
550
+ return language?.startsWith("pt") ? symbolRegistry.planets.map((row) => localizeSymbol(row, language)) : symbolRegistry.planets;
272
551
  }
273
- function listZodiacSignSymbolMetadata() {
274
- return symbolRegistry.signs;
552
+ function listZodiacSignSymbolMetadata(language) {
553
+ return language?.startsWith("pt") ? symbolRegistry.signs.map((row) => localizeSymbol(row, language)) : symbolRegistry.signs;
275
554
  }
276
- function listAngleSymbolMetadata() {
277
- return symbolRegistry.angles;
555
+ function listAngleSymbolMetadata(language) {
556
+ return language?.startsWith("pt") ? symbolRegistry.angles.map((row) => localizeSymbol(row, language)) : symbolRegistry.angles;
278
557
  }
279
- function listNodeSymbolMetadata() {
280
- return symbolRegistry.nodes;
558
+ function listNodeSymbolMetadata(language) {
559
+ return language?.startsWith("pt") ? symbolRegistry.nodes.map((row) => localizeSymbol(row, language)) : symbolRegistry.nodes;
281
560
  }
282
- function getPlanetSymbolMetadata(lookup) {
283
- return lookupPlanetSymbolMetadata(lookup);
561
+ function getPlanetSymbolMetadata(lookup, language) {
562
+ return localizeSymbol(lookupPlanetSymbolMetadata(lookup), language);
284
563
  }
285
- function getZodiacSignSymbolMetadata(lookup) {
286
- return lookupSignSymbolMetadata(lookup);
564
+ function getZodiacSignSymbolMetadata(lookup, language) {
565
+ return localizeSymbol(lookupSignSymbolMetadata(lookup), language);
287
566
  }
288
- function getAngleSymbolMetadata(lookup) {
567
+ function getAngleSymbolMetadata(lookup, language) {
289
568
  const rawLookup = lookup.startsWith(`${"house" /* HOUSE */}:`) ? parseId(lookup) : lookup;
290
569
  const metadata = symbolRegistry.byKey.get(normalizeLookupKey(rawLookup));
291
- return metadata?.kind === "angle" ? metadata : void 0;
570
+ return localizeSymbol(metadata?.kind === "angle" ? metadata : void 0, language);
292
571
  }
293
- function getNodeSymbolMetadata(lookup) {
572
+ function getNodeSymbolMetadata(lookup, language) {
294
573
  const metadata = symbolRegistry.byKey.get(normalizeLookupKey(lookup));
295
- return metadata?.kind === "node" ? metadata : void 0;
574
+ return localizeSymbol(metadata?.kind === "node" ? metadata : void 0, language);
296
575
  }
297
576
  function normalizeChartInput(input) {
298
577
  const planets = Array.isArray(input.planets) ? [...input.planets] : Object.values(input.planets);
@@ -495,7 +774,7 @@ function createCorrespondenceSource(lookup, sign, element) {
495
774
  hebrewLetterId: lookup.hebrewLetterId
496
775
  };
497
776
  }
498
- function getKaabalisticCorrespondenceTargets(lookup) {
777
+ function englishGetKaabalisticCorrespondenceTargets(lookup) {
499
778
  if (lookup.kind === "number") {
500
779
  const source = createCorrespondenceSource(lookup);
501
780
  const numberId = id("number" /* NUMBER */, lookup.number);
@@ -616,7 +895,7 @@ function dedupeMarkers(markers) {
616
895
  return true;
617
896
  });
618
897
  }
619
- function getAstrologyTreeMarkers(input) {
898
+ function englishGetAstrologyTreeMarkers(input) {
620
899
  const chart = normalizeChartInput(input);
621
900
  const markers = [];
622
901
  for (const planet of chart.planets) {
@@ -715,7 +994,7 @@ function buildNumberMarkers(sourceName, numbers, kind) {
715
994
  }
716
995
  return markers;
717
996
  }
718
- function getNumerologyTreeMarkers(input) {
997
+ function englishGetNumerologyTreeMarkers(input) {
719
998
  const { kaabalisticLifePath, straightAcrossReductionLifePath } = resolveNumerologyInput(input);
720
999
  const markers = [];
721
1000
  const sources = [
@@ -757,7 +1036,7 @@ function resolveGematriaInput(input) {
757
1036
  }
758
1037
  return void 0;
759
1038
  }
760
- function getGematriaTreeMarkers(input) {
1039
+ function englishGetGematriaTreeMarkers(input) {
761
1040
  const result = resolveGematriaInput(input);
762
1041
  if (!result) {
763
1042
  return [];
@@ -936,7 +1215,7 @@ function buildSourceSummary(markers, bucket, countsById) {
936
1215
  function capitalizeWords(value) {
937
1216
  return value.split(/\s+/).filter(Boolean).map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join(" ");
938
1217
  }
939
- function buildKaabalisticMapData(input) {
1218
+ function englishBuildKaabalisticMapData(input) {
940
1219
  const countsById = {};
941
1220
  const allMarkers = [];
942
1221
  const astrologyMarkers = input.astrology ? getAstrologyTreeMarkers(input.astrology) : [];
@@ -960,6 +1239,57 @@ function buildKaabalisticMapData(input) {
960
1239
  itemConnections
961
1240
  };
962
1241
  }
1242
+ function localizeSymbol(row, language) {
1243
+ if (!row || !language?.startsWith("pt"))
1244
+ return row;
1245
+ return Object.freeze({ ...row, label: getKaabalisticLabel(row.label, language), shortLabel: getKaabalisticLabel(row.shortLabel, language) });
1246
+ }
1247
+ function getKaabalisticCorrespondenceTargets(lookup, language) {
1248
+ const result = englishGetKaabalisticCorrespondenceTargets(lookup);
1249
+ if (!result || !language?.startsWith("pt"))
1250
+ return result;
1251
+ return {
1252
+ ...result,
1253
+ source: { ...result.source, label: getKaabalisticLabel(result.source.label, language), shortLabel: getKaabalisticLabel(result.source.shortLabel, language) },
1254
+ targets: result.targets.map((target) => ({ ...target, targetName: getKaabalisticLabel(target.targetName, language) }))
1255
+ };
1256
+ }
1257
+ function localizeMarkers(markers, language) {
1258
+ if (!language?.startsWith("pt"))
1259
+ return markers;
1260
+ return markers.map((marker) => ({ ...marker, sourceName: getKaabalisticLabel(marker.sourceName, language), label: getKaabalisticLabel(marker.label, language) }));
1261
+ }
1262
+ function getAstrologyTreeMarkers(input, language) {
1263
+ return localizeMarkers(englishGetAstrologyTreeMarkers(input), language);
1264
+ }
1265
+ function getNumerologyTreeMarkers(input, language) {
1266
+ return localizeMarkers(englishGetNumerologyTreeMarkers(input), language);
1267
+ }
1268
+ function getGematriaTreeMarkers(input, language) {
1269
+ return localizeMarkers(englishGetGematriaTreeMarkers(input), language);
1270
+ }
1271
+ function buildKaabalisticMapData(input, language) {
1272
+ const result = englishBuildKaabalisticMapData(input);
1273
+ if (!language?.startsWith("pt"))
1274
+ return result;
1275
+ const markers = localizeMarkers([...result.markers], language);
1276
+ const connections = (rows) => rows.map((row) => ({
1277
+ ...row,
1278
+ itemLabel: getKaabalisticLabel(row.itemLabel, language),
1279
+ targets: row.targets.map((target) => ({ ...target, name: getKaabalisticLabel(target.name, language) }))
1280
+ }));
1281
+ return {
1282
+ ...result,
1283
+ markers,
1284
+ sphereMarkers: groupMarkersByTarget(markers, "sphere"),
1285
+ pathMarkers: groupMarkersByTarget(markers, "path"),
1286
+ itemConnections: {
1287
+ astrology: connections(result.itemConnections.astrology),
1288
+ numerology: connections(result.itemConnections.numerology),
1289
+ gematria: connections(result.itemConnections.gematria)
1290
+ }
1291
+ };
1292
+ }
963
1293
 
964
1294
  // src/semantic/reading.ts
965
1295
  var TREE_ORDER = [
@@ -976,6 +1306,7 @@ var TREE_ORDER = [
976
1306
  id("sphere" /* SPHERE */, "Malkuth")
977
1307
  ];
978
1308
  var DAATH = id("sphere" /* SPHERE */, "Daath");
1309
+ var DAATH_SIGN = "Scorpio";
979
1310
  var RUNGS = TREE_ORDER.filter((id2) => id2 !== DAATH);
980
1311
  var SUIT_ELEMENT = { wands: "Fire", cups: "Water", swords: "Air", pentacles: "Earth" };
981
1312
  var SIGN_ELEMENT = {
@@ -1066,14 +1397,16 @@ var planetKey = (label) => label.toLowerCase();
1066
1397
  function buildReadingWeights({ cards, iching, natal }) {
1067
1398
  const spheres = /* @__PURE__ */ new Map();
1068
1399
  const paths = /* @__PURE__ */ new Map();
1069
- const hit = (sphere, entry) => {
1070
- if (sphere === DAATH)
1071
- return;
1400
+ const add = (sphere, entry) => {
1072
1401
  const current = spheres.get(sphere) ?? { count: 0, hits: [] };
1073
1402
  current.count += 1;
1074
1403
  current.hits.push(entry);
1075
1404
  spheres.set(sphere, current);
1076
1405
  };
1406
+ const hit = (sphere, entry) => {
1407
+ if (sphere !== DAATH)
1408
+ add(sphere, entry);
1409
+ };
1077
1410
  const walk = (path) => paths.set(id("path" /* PATH */, path), (paths.get(id("path" /* PATH */, path)) ?? 0) + 1);
1078
1411
  for (const card of cards) {
1079
1412
  if (card.kind === "major" && card.path) {
@@ -1104,6 +1437,22 @@ function buildReadingWeights({ cards, iching, natal }) {
1104
1437
  hit(subconscious.sphere, { system: "chart", key: "pipPlanet", planet: key, sign, same, house: natal.houses?.[key] });
1105
1438
  }
1106
1439
  }
1440
+ for (const card of cards) {
1441
+ const sign = card.kind === "major" ? card.tag?.type === "sign" ? card.tag.value : null : card.kind === "court" ? card.sign : null;
1442
+ if (sign !== DAATH_SIGN)
1443
+ continue;
1444
+ const planets = natal ? PLANET_KEYS.filter((key) => natal.planets[key] === sign) : [];
1445
+ if (card.kind === "major") {
1446
+ add(DAATH, { system: "cards", key: "majorSign", card, path: card.path?.number, letter: card.path?.letter, sign });
1447
+ if (planets.length > 0)
1448
+ add(DAATH, { system: "chart", key: "natalInSign", sign, planets });
1449
+ } else {
1450
+ add(DAATH, { system: "cards", key: "courtSign", card, sign, element: card.element });
1451
+ const ascendant = natal?.ascendant === sign;
1452
+ if (planets.length > 0 || ascendant)
1453
+ add(DAATH, { system: "chart", key: "natalHas", sign, planets, ascendant });
1454
+ }
1455
+ }
1107
1456
  let top = null;
1108
1457
  let max = 0;
1109
1458
  for (const id2 of TREE_ORDER) {
@@ -1340,6 +1689,32 @@ var readingReference_default = {
1340
1689
  "8": "time for the agreement, the contract",
1341
1690
  "9": "the hour of yes or no",
1342
1691
  "10": "it is already in matter"
1692
+ },
1693
+ step: {
1694
+ Kether: "the idea still without form",
1695
+ Chokhmah: "you already see the idea",
1696
+ Binah: "you already speak of it inside",
1697
+ Daath: "time to take a pencil and paper",
1698
+ Chesed: "time to plan it on paper",
1699
+ Geburah: "time to look at the stumbles",
1700
+ Tiphareth: "bring it in line with what you believe",
1701
+ Netzach: "close to becoming real: keep the plan to yourself",
1702
+ Hod: "time for the agreement, the contract",
1703
+ Yesod: "the hour of yes or no",
1704
+ Malkuth: "it is already in matter"
1705
+ },
1706
+ descent: {
1707
+ Kether: "The insight. You had an idea, but you cannot hold it yet, because it has no atoms; it is not material.",
1708
+ Chokhmah: "The visualization. You see the wish in many dimensions inside your head and can turn it left, right, up and down.",
1709
+ Binah: "The intelligence of sound. You put the wish into words, talking to yourself inside.",
1710
+ Daath: "The white portal of the highest vibratory consciousness. A link: here touch, sight, speech and hearing are all used. You will need a pencil, any pencil, and paper, any paper. Why the pencil? Because a pencil is a rough diamond, only a little away from freeing the diamond. You will write with a diamond on a tree.",
1711
+ Chesed: "The planning. With the pencil and paper, and the insight you had, saw and heard, plan how it will happen. And a tip almost nobody teaches: feelings matter enormously. Do it with joy, dedication, love and care.",
1712
+ Geburah: 'One more layer of atoms. Impulsive will says "I will do it now!". Here, instead, you look at the possible stumbles: "if I do it this way, it could go wrong here". List them once, on paper, and move on.',
1713
+ Tiphareth: "The beauty of the thing. You bring the insight in line with your moral and ethical standards and contemplate the atoms already added.",
1714
+ Netzach: "The victory. The wish is very close to becoming matter, and what is asked here is secrecy: tell no one the plans made in the spheres above. The secret is about the plan. With people you keep talking as usual.",
1715
+ Hod: "The link between two points, the materialization and the insight. It asks for a little more reasoning: it may take a contract, a sponsor, someone to fund your insight.",
1716
+ Yesod: 'As if all of this were a company, this is where it is decided: "they gave us the go-ahead, shall we give up?" And the answer: "yes, I want it. This product is ready to be packaged and become matter."',
1717
+ Malkuth: "The pot of gold at the end of the rainbow. If the answer was yes, it has arrived: the wish has become matter."
1343
1718
  }
1344
1719
  },
1345
1720
  "pt-BR": {
@@ -1367,14 +1742,61 @@ var readingReference_default = {
1367
1742
  "8": "hora do acordo, do contrato",
1368
1743
  "9": "a hora do sim ou n\xE3o",
1369
1744
  "10": "j\xE1 est\xE1 na mat\xE9ria"
1745
+ },
1746
+ step: {
1747
+ Kether: "a ideia ainda sem forma",
1748
+ Chokhmah: "voc\xEA j\xE1 enxerga a ideia",
1749
+ Binah: "voc\xEA j\xE1 fala dela por dentro",
1750
+ Daath: "hora de pegar um l\xE1pis e um papel",
1751
+ Chesed: "hora de planejar no papel",
1752
+ Geburah: "hora de olhar os trope\xE7os",
1753
+ Tiphareth: "harmonizar com o que voc\xEA acredita",
1754
+ Netzach: "perto de virar realidade: guarde o plano em segredo",
1755
+ Hod: "hora do acordo, do contrato",
1756
+ Yesod: "a hora do sim ou n\xE3o",
1757
+ Malkuth: "j\xE1 est\xE1 na mat\xE9ria"
1758
+ },
1759
+ descent: {
1760
+ Kether: "O insight. Voc\xEA teve uma ideia, mas ainda n\xE3o consegue peg\xE1-la, porque ela n\xE3o tem \xE1tomos, n\xE3o \xE9 material.",
1761
+ Chokhmah: "A visualiza\xE7\xE3o. Voc\xEA v\xEA o desejo em multidimens\xF5es dentro da cabe\xE7a e pode gir\xE1-lo pra esquerda, pra direita, pra cima, pra baixo.",
1762
+ Binah: "A intelig\xEAncia do som. Voc\xEA verbaliza o desejo, fala consigo mesmo por dentro.",
1763
+ Daath: "O portal branco da consci\xEAncia vibrat\xF3ria mais elevada. Um elo de liga\xE7\xE3o: aqui se usam o tato, a vis\xE3o, a fala e o ouvido. Voc\xEA vai precisar de um l\xE1pis, qualquer l\xE1pis, e um papel, qualquer papel. Por que o l\xE1pis? Porque o l\xE1pis \xE9 um diamante bruto, falta s\xF3 um pouquinho pra liberar o diamante. Voc\xEA vai escrever com um diamante sobre uma \xE1rvore.",
1764
+ Chesed: "O planejamento. Com o l\xE1pis e o papel, com o insight que voc\xEA teve, viu e ouviu, planeje como isso vai acontecer. E uma dica que quase ningu\xE9m ensina: os sentimentos s\xE3o important\xEDssimos. Faz com alegria, dedica\xE7\xE3o, amor e carinho.",
1765
+ Geburah: 'Mais uma camada de \xE1tomos. A vontade impulsiva diz "vou fazer j\xE1!". Aqui, em vez disso, voc\xEA olha os poss\xEDveis trope\xE7os: "se eu fizer assim, pode dar errado aqui". Lista uma vez, no papel, e segue.',
1766
+ Tiphareth: "A beleza da coisa. Voc\xEA harmoniza o insight com os seus padr\xF5es morais e \xE9ticos e contempla os \xE1tomos que j\xE1 foram acrescentados.",
1767
+ Netzach: "A vit\xF3ria. O desejo est\xE1 muito perto de se materializar, e o que se exige aqui \xE9 guardar segredo: n\xE3o contar a ningu\xE9m os planos feitos nas esferas de cima. O segredo \xE9 sobre o plano. Com as pessoas voc\xEA continua falando normalmente.",
1768
+ Hod: "A liga\xE7\xE3o entre dois pontos, a materializa\xE7\xE3o e o insight. Pede um pouco mais de racionaliza\xE7\xE3o: pode exigir um contrato, um patrocinador, algu\xE9m que financie o seu insight.",
1769
+ Yesod: 'Como se tudo isso fosse uma empresa, \xE9 aqui que se decide: "me deram o aval, vamos desistir?" E a resposta: "eu quero, sim. Este produto est\xE1 pronto pra ir pra embalagem e se materializar."',
1770
+ Malkuth: "O pote de ouro no fim do arco-\xEDris. Se a resposta foi sim, chegou: o desejo se materializou."
1370
1771
  }
1371
1772
  }
1372
1773
  };
1373
1774
 
1374
1775
  // src/semantic/reference.ts
1776
+ var DESCENT_ORDER = [
1777
+ "Kether",
1778
+ "Chokhmah",
1779
+ "Binah",
1780
+ "Daath",
1781
+ "Chesed",
1782
+ "Geburah",
1783
+ "Tiphareth",
1784
+ "Netzach",
1785
+ "Hod",
1786
+ "Yesod",
1787
+ "Malkuth"
1788
+ ];
1789
+ var DESCENT_STEPS = DESCENT_ORDER.length;
1790
+ function getDescentStep(sphere) {
1791
+ const name = sphere.includes(":") ? sphere.split(":")[1] : sphere;
1792
+ const index = DESCENT_ORDER.indexOf(name);
1793
+ return index === -1 ? null : index + 1;
1794
+ }
1375
1795
  for (const vocabulary of Object.values(readingReference_default)) {
1376
1796
  Object.freeze(vocabulary.gloss);
1377
1797
  Object.freeze(vocabulary.rung);
1798
+ Object.freeze(vocabulary.step);
1799
+ Object.freeze(vocabulary.descent);
1378
1800
  Object.freeze(vocabulary);
1379
1801
  }
1380
1802
  Object.freeze(readingReference_default);
@@ -2222,6 +2644,6 @@ function getTarotThemeProfile(lookup) {
2222
2644
  return cache.byPathSlug.get(normalizeThemeText(lookup.pathSlug));
2223
2645
  }
2224
2646
 
2225
- export { OCCULT_THEME_STOPWORDS, PLANET_KEYS, TREE_ORDER, buildKaabalisticMapData, buildReadingWeights, buildThreads, collapseHits, getAngleSymbolMetadata, getAstrologyTreeMarkers, getGematriaTreeMarkers, getHouseThemeProfile, getKaabalisticCorrespondenceTargets, getNodeSymbolMetadata, getNumerologyTreeMarkers, getPlanetSymbolMetadata, getReadingReference, getTarotThemeProfile, getZodiacSignSymbolMetadata, listAngleSymbolMetadata, listHouseThemeProfiles, listNodeSymbolMetadata, listPlanetSymbolMetadata, listTarotThemeProfiles, listZodiacSignSymbolMetadata, projectChart, rankedSpheres, resolveCard, tokenizeOccultThemeText };
2647
+ export { DESCENT_ORDER, DESCENT_STEPS, KAABALISTIC_LABELS, OCCULT_THEME_STOPWORDS, PLANET_KEYS, TREE_ORDER, buildKaabalisticMapData, buildReadingWeights, buildThreads, collapseHits, getAngleSymbolMetadata, getAstrologyTreeMarkers, getDescentStep, getGematriaTreeMarkers, getHouseThemeProfile, getKaabalisticCorrespondenceTargets, getKaabalisticLabel, getNodeSymbolMetadata, getNumerologyTreeMarkers, getPlanetSymbolMetadata, getReadingReference, getTarotThemeProfile, getZodiacSignSymbolMetadata, listAngleSymbolMetadata, listHouseThemeProfiles, listNodeSymbolMetadata, listPlanetSymbolMetadata, listTarotThemeProfiles, listZodiacSignSymbolMetadata, projectChart, rankedSpheres, resolveCard, tokenizeOccultThemeText };
2226
2648
  //# sourceMappingURL=out.js.map
2227
- //# sourceMappingURL=chunk-QQN54SLY.mjs.map
2649
+ //# sourceMappingURL=chunk-LQVHJ3VY.mjs.map