kaabalah 5.5.1 → 5.6.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 +25 -0
- package/dist/{chunk-BJUCABP4.js → chunk-3HYK4Q4B.js} +123 -10
- package/dist/chunk-3HYK4Q4B.js.map +1 -0
- package/dist/{chunk-27IU6FA2.mjs → chunk-3SFBJHP2.mjs} +3 -3
- package/dist/{chunk-27IU6FA2.mjs.map → chunk-3SFBJHP2.mjs.map} +1 -1
- package/dist/chunk-4NMXTZX4.mjs +525 -0
- package/dist/chunk-4NMXTZX4.mjs.map +1 -0
- package/dist/{chunk-PEAOQ7YH.js → chunk-EVQ432JA.js} +23 -23
- package/dist/{chunk-PEAOQ7YH.js.map → chunk-EVQ432JA.js.map} +1 -1
- package/dist/{chunk-PPSRTX52.mjs → chunk-IHQPXEB7.mjs} +123 -11
- package/dist/chunk-IHQPXEB7.mjs.map +1 -0
- package/dist/{chunk-3IPH7UTM.mjs → chunk-OGWTKRJK.js} +196 -3
- package/dist/chunk-OGWTKRJK.js.map +1 -0
- package/dist/{chunk-W5UTGQI2.mjs → chunk-S6BFRUJQ.mjs} +3 -3
- package/dist/{chunk-W5UTGQI2.mjs.map → chunk-S6BFRUJQ.mjs.map} +1 -1
- package/dist/{chunk-FYR5Z7M2.js → chunk-U3JFWP24.mjs} +185 -6
- package/dist/chunk-U3JFWP24.mjs.map +1 -0
- package/dist/chunk-XB6PXEKO.js +529 -0
- package/dist/chunk-XB6PXEKO.js.map +1 -0
- package/dist/{chunk-ZQ2ZZPOW.js → chunk-XTVGQXCL.js} +4 -4
- package/dist/{chunk-ZQ2ZZPOW.js.map → chunk-XTVGQXCL.js.map} +1 -1
- package/dist/cli.js +881 -46
- package/dist/cli.js.map +1 -1
- package/dist/{registry-DOiHyH-r.d.mts → constants-DbFwuCjR.d.mts} +1 -177
- package/dist/{registry-DOiHyH-r.d.ts → constants-DbFwuCjR.d.ts} +1 -177
- package/dist/core/index.d.mts +66 -3
- package/dist/core/index.d.ts +66 -3
- package/dist/core/index.js +55 -39
- package/dist/core/index.mjs +2 -2
- package/dist/correspondence-model-D8c42J4c.d.mts +281 -0
- package/dist/correspondence-model-DhmBYoMf.d.ts +281 -0
- package/dist/gematria/index.d.mts +2 -1
- package/dist/gematria/index.d.ts +2 -1
- package/dist/gematria/index.js +5 -5
- package/dist/gematria/index.mjs +2 -2
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +109 -69
- package/dist/index.mjs +5 -5
- package/dist/numerology/index.js +18 -18
- package/dist/numerology/index.mjs +3 -3
- package/dist/tarot/index.d.mts +64 -2
- package/dist/tarot/index.d.ts +64 -2
- package/dist/tarot/index.js +30 -4
- package/dist/tarot/index.mjs +3 -1
- package/package.json +1 -1
- package/dist/chunk-3IPH7UTM.mjs.map +0 -1
- package/dist/chunk-AD7T42HJ.js +0 -4
- package/dist/chunk-AD7T42HJ.js.map +0 -1
- package/dist/chunk-BJUCABP4.js.map +0 -1
- package/dist/chunk-FYR5Z7M2.js.map +0 -1
- package/dist/chunk-PPSRTX52.mjs.map +0 -1
- package/dist/chunk-RFSO3JRG.mjs +0 -3
- package/dist/chunk-RFSO3JRG.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3HYK4Q4B_js = require('./chunk-3HYK4Q4B.js');
|
|
4
4
|
var chunkFM7WUVZV_js = require('./chunk-FM7WUVZV.js');
|
|
5
5
|
|
|
6
6
|
// src/gematria/data.ts
|
|
@@ -15,13 +15,13 @@ chunkFM7WUVZV_js.__export(data_exports, {
|
|
|
15
15
|
});
|
|
16
16
|
var EXTENDED_MASTER_NUMBERS = [11, 22, 33, 44, 55, 66, 77, 88, 99];
|
|
17
17
|
var DIGRAPHS = /* @__PURE__ */ new Set([
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
chunk3HYK4Q4B_js.LATIN_LETTERS.PH,
|
|
19
|
+
chunk3HYK4Q4B_js.LATIN_LETTERS.TS,
|
|
20
|
+
chunk3HYK4Q4B_js.LATIN_LETTERS.TZ,
|
|
21
|
+
chunk3HYK4Q4B_js.LATIN_LETTERS.SH,
|
|
22
|
+
chunk3HYK4Q4B_js.LATIN_LETTERS.CH,
|
|
23
|
+
chunk3HYK4Q4B_js.LATIN_LETTERS.TH,
|
|
24
|
+
chunk3HYK4Q4B_js.LATIN_LETTERS.KH
|
|
25
25
|
]);
|
|
26
26
|
var GematriaNumbersWithMeaning = /* @__PURE__ */ ((GematriaNumbersWithMeaning2) => {
|
|
27
27
|
GematriaNumbersWithMeaning2[GematriaNumbersWithMeaning2["One"] = 1] = "One";
|
|
@@ -139,8 +139,8 @@ function getLetterMapping({
|
|
|
139
139
|
letterId,
|
|
140
140
|
isStarting
|
|
141
141
|
}) {
|
|
142
|
-
if (isStarting &&
|
|
143
|
-
return tree.getNode(
|
|
142
|
+
if (isStarting && chunk3HYK4Q4B_js.parseId(letterId) === "O") {
|
|
143
|
+
return tree.getNode(chunk3HYK4Q4B_js.id("hebrewLetter" /* HEBREW_LETTER */, chunk3HYK4Q4B_js.HEBREW_LETTERS.AYIN));
|
|
144
144
|
}
|
|
145
145
|
return tree.walk(letterId, 2, "hebrewLetter" /* HEBREW_LETTER */).at(0);
|
|
146
146
|
}
|
|
@@ -150,7 +150,7 @@ function processLetter(tree, letters, i) {
|
|
|
150
150
|
const combinedLetter = letter + nextLetter;
|
|
151
151
|
if (DIGRAPHS.has(combinedLetter)) {
|
|
152
152
|
const isEnding2 = i > 0 && i === letters.length - 2;
|
|
153
|
-
const latinLetterId2 =
|
|
153
|
+
const latinLetterId2 = chunk3HYK4Q4B_js.id("latinLetter" /* LATIN_LETTER */, combinedLetter);
|
|
154
154
|
const mapping2 = getLetterMapping({
|
|
155
155
|
tree,
|
|
156
156
|
letterId: latinLetterId2,
|
|
@@ -172,7 +172,7 @@ function processLetter(tree, letters, i) {
|
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
const isStarting = i === 0;
|
|
175
|
-
const latinLetterId =
|
|
175
|
+
const latinLetterId = chunk3HYK4Q4B_js.id("latinLetter" /* LATIN_LETTER */, letter);
|
|
176
176
|
const mapping = getLetterMapping({
|
|
177
177
|
tree,
|
|
178
178
|
letterId: latinLetterId,
|
|
@@ -229,7 +229,7 @@ function calculateLetterPercentages(word, tree, prev) {
|
|
|
229
229
|
const newLetters = { ...prev.letters };
|
|
230
230
|
for (const letter of new Set(letters)) {
|
|
231
231
|
const occurrences = letters.filter((l) => l === letter).length;
|
|
232
|
-
const latinLetter = tree.getNode(
|
|
232
|
+
const latinLetter = tree.getNode(chunk3HYK4Q4B_js.id("latinLetter" /* LATIN_LETTER */, letter));
|
|
233
233
|
newLetters[letter] = occurrences / letterCount * 100;
|
|
234
234
|
if (latinLetter?.data?.isVowel) {
|
|
235
235
|
vowelsCount += occurrences;
|
|
@@ -245,8 +245,8 @@ function calculateLetterPercentages(word, tree, prev) {
|
|
|
245
245
|
}
|
|
246
246
|
function getMissingGematriaValues(tree, includedGematriaValues) {
|
|
247
247
|
const missingGematriaValues = [];
|
|
248
|
-
for (const hebrewLetter of Object.values(
|
|
249
|
-
const hebrewLetterId =
|
|
248
|
+
for (const hebrewLetter of Object.values(chunk3HYK4Q4B_js.HEBREW_LETTERS)) {
|
|
249
|
+
const hebrewLetterId = chunk3HYK4Q4B_js.id("hebrewLetter" /* HEBREW_LETTER */, hebrewLetter);
|
|
250
250
|
const hebrewLetterNode = tree.getNode(hebrewLetterId);
|
|
251
251
|
if (!hebrewLetterNode?.data) continue;
|
|
252
252
|
if (!includedGematriaValues.has(hebrewLetterNode.data.gematriaValue)) {
|
|
@@ -268,7 +268,7 @@ function getMissingGematriaValues(tree, includedGematriaValues) {
|
|
|
268
268
|
return missingGematriaValues;
|
|
269
269
|
}
|
|
270
270
|
function buildLetterInfo(tree, letter, isStarting) {
|
|
271
|
-
const latinLetterId =
|
|
271
|
+
const latinLetterId = chunk3HYK4Q4B_js.id("latinLetter" /* LATIN_LETTER */, letter);
|
|
272
272
|
const latinLetterNode = tree.getNode(latinLetterId);
|
|
273
273
|
if (!latinLetterNode?.data) return void 0;
|
|
274
274
|
const mapping = getLetterMapping({ tree, letterId: latinLetterId, isStarting });
|
|
@@ -361,7 +361,7 @@ var reverseGematria = (options, tree) => {
|
|
|
361
361
|
return { results: [], hasMore: false, totalFound: 0 };
|
|
362
362
|
}
|
|
363
363
|
if (!tree) {
|
|
364
|
-
tree =
|
|
364
|
+
tree = chunk3HYK4Q4B_js.createTree({ system: chunk3HYK4Q4B_js.SYSTEM, parts: [] });
|
|
365
365
|
}
|
|
366
366
|
if (suggestionText !== void 0) {
|
|
367
367
|
if (suggestionMode === "subsequence") {
|
|
@@ -417,7 +417,7 @@ var reverseGematria = (options, tree) => {
|
|
|
417
417
|
const isEnding = idx === currentLength - 1 && currentLength > 1;
|
|
418
418
|
const useEndingValue = isEnding && info.endingValue !== void 0;
|
|
419
419
|
return {
|
|
420
|
-
latinLetterId:
|
|
420
|
+
latinLetterId: chunk3HYK4Q4B_js.id("latinLetter" /* LATIN_LETTER */, info.letter),
|
|
421
421
|
value: useEndingValue ? info.endingValue : info.normalValue,
|
|
422
422
|
hebrewLetterId: info.hebrewLetterId,
|
|
423
423
|
hebrewCharacter: useEndingValue && info.hebrewCharacterWhenEnding ? info.hebrewCharacterWhenEnding : info.hebrewCharacter,
|
|
@@ -565,7 +565,7 @@ function reverseGematriaAnagram(options, tree) {
|
|
|
565
565
|
const isEnding = idx === currentInfos.length - 1 && currentInfos.length > 1;
|
|
566
566
|
const useEndingValue = isEnding && info.endingValue !== void 0;
|
|
567
567
|
return {
|
|
568
|
-
latinLetterId:
|
|
568
|
+
latinLetterId: chunk3HYK4Q4B_js.id("latinLetter" /* LATIN_LETTER */, info.letter),
|
|
569
569
|
value: useEndingValue ? info.endingValue : info.normalValue,
|
|
570
570
|
hebrewLetterId: info.hebrewLetterId,
|
|
571
571
|
hebrewCharacter: useEndingValue && info.hebrewCharacterWhenEnding ? info.hebrewCharacterWhenEnding : info.hebrewCharacter,
|
|
@@ -752,7 +752,7 @@ function reverseGematriaFromSubsequence(options, tree) {
|
|
|
752
752
|
const isEnding = idx === currentInfos.length - 1 && currentInfos.length > 1;
|
|
753
753
|
const useEndingValue = isEnding && info.endingValue !== void 0;
|
|
754
754
|
return {
|
|
755
|
-
latinLetterId:
|
|
755
|
+
latinLetterId: chunk3HYK4Q4B_js.id("latinLetter" /* LATIN_LETTER */, info.letter),
|
|
756
756
|
value: useEndingValue ? info.endingValue : info.normalValue,
|
|
757
757
|
hebrewLetterId: info.hebrewLetterId,
|
|
758
758
|
hebrewCharacter: useEndingValue && info.hebrewCharacterWhenEnding ? info.hebrewCharacterWhenEnding : info.hebrewCharacter,
|
|
@@ -877,7 +877,7 @@ var calculateGematria = (phrase, options = {
|
|
|
877
877
|
percentages: false
|
|
878
878
|
}, tree) => {
|
|
879
879
|
if (!tree) {
|
|
880
|
-
tree =
|
|
880
|
+
tree = chunk3HYK4Q4B_js.createTree({ system: chunk3HYK4Q4B_js.SYSTEM, parts: [] });
|
|
881
881
|
}
|
|
882
882
|
const words = phrase.toUpperCase().trim().split(" ");
|
|
883
883
|
const initialState = {
|
|
@@ -941,5 +941,5 @@ var calculateGematria = (phrase, options = {
|
|
|
941
941
|
exports.calculateGematria = calculateGematria;
|
|
942
942
|
exports.data_exports = data_exports;
|
|
943
943
|
exports.reverseGematria = reverseGematria;
|
|
944
|
-
//# sourceMappingURL=chunk-
|
|
945
|
-
//# sourceMappingURL=chunk-
|
|
944
|
+
//# sourceMappingURL=chunk-EVQ432JA.js.map
|
|
945
|
+
//# sourceMappingURL=chunk-EVQ432JA.js.map
|