western-signs 1.4.1 → 1.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 +16 -2
- package/dist/index.d.ts +375 -0
- package/dist/index.js +1 -1
- package/package.json +13 -11
package/README.md
CHANGED
|
@@ -4,6 +4,9 @@ Simple interface for [western astrological](https://en.wikipedia.org/wiki/Wester
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/western-signs)
|
|
6
6
|
[](LICENSE)
|
|
7
|
+
[](https://github.com/marcmarine/western-signs/releases)
|
|
8
|
+
[](https://marcmarine.github.io/western-signs)
|
|
9
|
+

|
|
7
10
|
|
|
8
11
|
The **Western Signs** library provides detailed information about each astrological sign, including its `name`, `element`, `modality`, `rulingPlanet` and `glyph`, among other things. Additionally, you can specify the language for translations.
|
|
9
12
|
|
|
@@ -53,12 +56,23 @@ It should returns an object with the following properties:
|
|
|
53
56
|
season: 'Spring',
|
|
54
57
|
startDate: 2020-04-20T22:00:00.000Z
|
|
55
58
|
}
|
|
56
|
-
|
|
57
59
|
```
|
|
58
60
|
|
|
59
61
|
## API Reference
|
|
60
62
|
|
|
61
|
-
|
|
63
|
+
### Functions
|
|
64
|
+
|
|
65
|
+
- [getHouses](https://marcmarine.github.io/western-signs/functions/getHouses)
|
|
66
|
+
- [getSignByDate](https://marcmarine.github.io/western-signs/functions/getSignByDate)
|
|
67
|
+
- [getSignByName](https://marcmarine.github.io/western-signs/functions/getSignByName)
|
|
68
|
+
- [getSigns](https://marcmarine.github.io/western-signs/functions/getSigns)
|
|
69
|
+
|
|
70
|
+
### Interfaces
|
|
71
|
+
|
|
72
|
+
- [House](https://marcmarine.github.io/western-signs/interfaces/House)
|
|
73
|
+
- [Sign](https://marcmarine.github.io/western-signs/interfaces/Sign)
|
|
74
|
+
|
|
75
|
+
For more detailed API information, please check out the [documentation](https://marcmarine.github.io/western-signs).
|
|
62
76
|
|
|
63
77
|
## License
|
|
64
78
|
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v9.5.1
|
|
2
|
+
|
|
3
|
+
export declare const SIGNS: {
|
|
4
|
+
readonly ARIES: "aries";
|
|
5
|
+
readonly TAURUS: "taurus";
|
|
6
|
+
readonly GEMINI: "gemini";
|
|
7
|
+
readonly CANCER: "cancer";
|
|
8
|
+
readonly LEO: "leo";
|
|
9
|
+
readonly VIRGO: "virgo";
|
|
10
|
+
readonly LIBRA: "libra";
|
|
11
|
+
readonly SCORPIO: "scorpio";
|
|
12
|
+
readonly SAGITTARIUS: "sagittarius";
|
|
13
|
+
readonly CAPRICORN: "capricorn";
|
|
14
|
+
readonly AQUARIUS: "aquarius";
|
|
15
|
+
readonly PISCES: "pisces";
|
|
16
|
+
};
|
|
17
|
+
export declare const PLANETS: {
|
|
18
|
+
readonly MARS: "mars";
|
|
19
|
+
readonly VENUS: "venus";
|
|
20
|
+
readonly MERCURY: "mercury";
|
|
21
|
+
readonly MOON: "moon";
|
|
22
|
+
readonly SUN: "sun";
|
|
23
|
+
readonly PLUTO: "pluto";
|
|
24
|
+
readonly JUPITER: "jupiter";
|
|
25
|
+
readonly SATURN: "saturn";
|
|
26
|
+
readonly URANUS: "uranus";
|
|
27
|
+
readonly NEPTUNE: "neptune";
|
|
28
|
+
};
|
|
29
|
+
export declare const MODALITIES: {
|
|
30
|
+
readonly CARDINAL: "cardinal";
|
|
31
|
+
readonly FIXED: "fixed";
|
|
32
|
+
readonly MUTABLE: "mutable";
|
|
33
|
+
};
|
|
34
|
+
export declare const ELEMENTS: {
|
|
35
|
+
readonly FIRE: "fire";
|
|
36
|
+
readonly EARTH: "earth";
|
|
37
|
+
readonly AIR: "air";
|
|
38
|
+
readonly WATER: "water";
|
|
39
|
+
};
|
|
40
|
+
declare const POLARITIES: {
|
|
41
|
+
readonly POSITIVE: "positive";
|
|
42
|
+
readonly NEGATIVE: "negative";
|
|
43
|
+
};
|
|
44
|
+
declare const BODY_PARTS: {
|
|
45
|
+
readonly HEAD: "head";
|
|
46
|
+
readonly THROAT: "throat";
|
|
47
|
+
readonly LUNGS: "lungs";
|
|
48
|
+
readonly STOMACH: "stomach";
|
|
49
|
+
readonly HEART: "heart";
|
|
50
|
+
readonly BOWELS: "bowels";
|
|
51
|
+
readonly REINS: "reins";
|
|
52
|
+
readonly SECRETS: "secrets";
|
|
53
|
+
readonly THIGHS: "thighs";
|
|
54
|
+
readonly KNEES: "knees";
|
|
55
|
+
readonly ANKLES: "ankles";
|
|
56
|
+
readonly FEET: "feet";
|
|
57
|
+
};
|
|
58
|
+
declare const CHARACTERS: {
|
|
59
|
+
readonly RAM: "ram";
|
|
60
|
+
readonly BULL: "bull";
|
|
61
|
+
readonly TWINS: "twins";
|
|
62
|
+
readonly CRAB: "crab";
|
|
63
|
+
readonly LION: "lion";
|
|
64
|
+
readonly VIRGIN: "virgin";
|
|
65
|
+
readonly BALANCE: "balance";
|
|
66
|
+
readonly SCORPION: "scorpion";
|
|
67
|
+
readonly ARCHER: "archer";
|
|
68
|
+
readonly GOAT: "goat";
|
|
69
|
+
readonly THE_MAN: "the-man";
|
|
70
|
+
readonly THE_FISHES: "the-fishes";
|
|
71
|
+
};
|
|
72
|
+
declare const SEASONS: {
|
|
73
|
+
readonly SPRING: "spring";
|
|
74
|
+
readonly SUMMER: "summer";
|
|
75
|
+
readonly AUTUMN: "autumn";
|
|
76
|
+
readonly WINTER: "winter";
|
|
77
|
+
};
|
|
78
|
+
export declare const HEMISPHERES: {
|
|
79
|
+
readonly LOWER: "lower";
|
|
80
|
+
readonly UPPER: "upper";
|
|
81
|
+
};
|
|
82
|
+
export declare const HOUSE_MODALITIES: {
|
|
83
|
+
readonly ANGULAR: "angular";
|
|
84
|
+
readonly SUCCEDENT: "succedent";
|
|
85
|
+
readonly CADENT: "cadent";
|
|
86
|
+
};
|
|
87
|
+
declare const dictionaries: {
|
|
88
|
+
en: Dictionary;
|
|
89
|
+
es: Dictionary;
|
|
90
|
+
ca: Dictionary;
|
|
91
|
+
};
|
|
92
|
+
export type Language = keyof typeof dictionaries;
|
|
93
|
+
export type ObjectValues<T> = T[keyof T];
|
|
94
|
+
export type Signs = ObjectValues<typeof SIGNS>;
|
|
95
|
+
export type Element = ObjectValues<typeof ELEMENTS>;
|
|
96
|
+
export type Modalities = ObjectValues<typeof MODALITIES>;
|
|
97
|
+
export type Planets = ObjectValues<typeof PLANETS>;
|
|
98
|
+
export type Polarities = ObjectValues<typeof POLARITIES>;
|
|
99
|
+
export type BodyParts = ObjectValues<typeof BODY_PARTS>;
|
|
100
|
+
export type Characters = ObjectValues<typeof CHARACTERS>;
|
|
101
|
+
export type Seasons = ObjectValues<typeof SEASONS>;
|
|
102
|
+
export type Hemispheres = ObjectValues<typeof HEMISPHERES>;
|
|
103
|
+
export type HouseModalities = ObjectValues<typeof HOUSE_MODALITIES>;
|
|
104
|
+
export interface Sign {
|
|
105
|
+
/**
|
|
106
|
+
* The body part associated with the zodiac sign.
|
|
107
|
+
* Indicates the areas of the body influenced by the sign.
|
|
108
|
+
* Examples: "Head" for Aries, "Throat" for Taurus.
|
|
109
|
+
*/
|
|
110
|
+
bodyPart: string;
|
|
111
|
+
/**
|
|
112
|
+
* The character associated with the zodiac sign.
|
|
113
|
+
* A visual representation or icon associated with the sign.
|
|
114
|
+
* Examples: "The Ram" for Aries, "The Bull" for Taurus.
|
|
115
|
+
*/
|
|
116
|
+
character: string;
|
|
117
|
+
/**
|
|
118
|
+
* The element associated with the zodiac sign.
|
|
119
|
+
* Represents one of the four classical elements: Fire, Earth, Air, Water.
|
|
120
|
+
* Also known as triplicities in astrology.
|
|
121
|
+
* Examples: "Fire" for Aries, "Earth" for Taurus.
|
|
122
|
+
*/
|
|
123
|
+
element: Element;
|
|
124
|
+
/**
|
|
125
|
+
* The end date of the zodiac sign period.
|
|
126
|
+
* This date marks the end of the zodiac sign's influence for the given year.
|
|
127
|
+
* Examples: new Date(2020, 3, 20) for Aries (April 20, 2020), new Date(2020, 4, 21) for Taurus (May 21, 2020).
|
|
128
|
+
*/
|
|
129
|
+
endDate: Date;
|
|
130
|
+
/**
|
|
131
|
+
* The glyph representing the zodiac sign.
|
|
132
|
+
* A symbolic character or drawing associated with the sign.
|
|
133
|
+
* Examples: "♈" for Aries, "♉" for Taurus.
|
|
134
|
+
*/
|
|
135
|
+
glyph: string;
|
|
136
|
+
/**
|
|
137
|
+
* The modality of the sign.
|
|
138
|
+
* Indicates its mode of operation: Cardinal, Fixed, or Mutable.
|
|
139
|
+
* Examples: "Cardinal" for Aries, "Fixed" for Taurus.
|
|
140
|
+
*/
|
|
141
|
+
modality: string;
|
|
142
|
+
/**
|
|
143
|
+
* The name of the zodiac sign.
|
|
144
|
+
* Examples: "Aries", "Taurus".
|
|
145
|
+
*/
|
|
146
|
+
name: string;
|
|
147
|
+
/**
|
|
148
|
+
* The number associated with the zodiac sign.
|
|
149
|
+
* Reflects its order in the zodiac cycle.
|
|
150
|
+
* Examples: 1 for Aries (the first sign), 2 for Taurus (the second sign).
|
|
151
|
+
*/
|
|
152
|
+
number: number;
|
|
153
|
+
/**
|
|
154
|
+
* The polarity of the sign.
|
|
155
|
+
* Indicates its active (Positive) or passive (Negative) nature.
|
|
156
|
+
* Examples: "Positive" for Aries, "Negative" for Taurus.
|
|
157
|
+
*/
|
|
158
|
+
pole: string;
|
|
159
|
+
/**
|
|
160
|
+
* The ruling planet of the zodiac sign.
|
|
161
|
+
* Represents the guiding celestial body influencing the sign.
|
|
162
|
+
* Examples: "Mars" for Aries, "Venus" for Taurus.
|
|
163
|
+
*/
|
|
164
|
+
rulingPlanet: string;
|
|
165
|
+
/**
|
|
166
|
+
* The season in which the zodiac sign occurs.
|
|
167
|
+
* Indicates the time of year the sign predominates.
|
|
168
|
+
* Examples: "Spring" for Aries, "Spring" for Taurus.
|
|
169
|
+
*/
|
|
170
|
+
season: string;
|
|
171
|
+
/**
|
|
172
|
+
* The start date of the zodiac sign period.
|
|
173
|
+
* This date marks the beginning of the zodiac sign's influence for the given year.
|
|
174
|
+
* Examples: new Date(2020, 2, 20) for Aries (March 20, 2020), new Date(2020, 3, 21) for Taurus (April 21, 2020).
|
|
175
|
+
*/
|
|
176
|
+
startDate: Date;
|
|
177
|
+
}
|
|
178
|
+
export interface House {
|
|
179
|
+
/**
|
|
180
|
+
* Element associated with the house’s natural zodiac sign.
|
|
181
|
+
*
|
|
182
|
+
* Represents one of the four classical elements — Fire, Earth, Air, or Water — reflecting the essential nature and mode of expression of the house.
|
|
183
|
+
*
|
|
184
|
+
* Example: "Fire" for House 1 (Aries), "Earth" for House 2 (Taurus)
|
|
185
|
+
*/
|
|
186
|
+
element: Element;
|
|
187
|
+
/**
|
|
188
|
+
* Hemisphere division based on the horizon line.
|
|
189
|
+
*
|
|
190
|
+
* - **Lower/Northern Hemisphere (Houses 1–6):** Known as the *Personal Houses*, these focus on individual development, personal identity, and foundational life needs.
|
|
191
|
+
* - **Upper/Southern Hemisphere (Houses 7–12):** Known as the *Collective Houses*, these reflect relationships with others, society, and broader humanity.
|
|
192
|
+
*/
|
|
193
|
+
hemisphere: Hemispheres;
|
|
194
|
+
/**
|
|
195
|
+
* Key themes and associated concepts.
|
|
196
|
+
*
|
|
197
|
+
* Represents the core ideas or psychological themes governed by the house.
|
|
198
|
+
* Example: ['Self-image', 'Identity', 'Impressions on others', 'Personality']
|
|
199
|
+
*/
|
|
200
|
+
keywords: string[] | string;
|
|
201
|
+
/**
|
|
202
|
+
* Number of the astrological house (1–12).
|
|
203
|
+
*
|
|
204
|
+
* Each house corresponds to a specific domain of life experience.
|
|
205
|
+
* Example: 1 = Self and identity, 7 = Partnerships and relating.
|
|
206
|
+
*/
|
|
207
|
+
number: number;
|
|
208
|
+
/**
|
|
209
|
+
* Developmental phase grouping.
|
|
210
|
+
*
|
|
211
|
+
* - **Phase I (Houses 1–4):** Focus on self-awareness and personal foundation — the “me-in-here”.
|
|
212
|
+
* - **Phase II (Houses 5–8):** Development of the autonomous self in relationship — the “me” meets the “you”.
|
|
213
|
+
* - **Phase III (Houses 9–12):** Expansion of self toward collective consciousness and universal understanding.
|
|
214
|
+
*/
|
|
215
|
+
phase: 1 | 2 | 3;
|
|
216
|
+
/**
|
|
217
|
+
* Quadrant of the chart based on the intersection of horizon and meridian axes.
|
|
218
|
+
*
|
|
219
|
+
* - **Quadrant I (Houses 1–3):** Formation of personal identity through the body, possessions, and environment.
|
|
220
|
+
* - **Quadrant II (Houses 4–6):** Further development of self via family, creativity, and refinement of skills.
|
|
221
|
+
* - **Quadrant III (Houses 7–9):** Expansion through relationships, transformation, and new vision of self.
|
|
222
|
+
* - **Quadrant IV (Houses 10–12):** Integration into society and pursuit of collective and spiritual purpose.
|
|
223
|
+
*/
|
|
224
|
+
quadrant: 1 | 2 | 3 | 4;
|
|
225
|
+
/**
|
|
226
|
+
* Ruling planet of the house.
|
|
227
|
+
*
|
|
228
|
+
* Indicates the primary planetary influence over the house’s themes.
|
|
229
|
+
* Example: "Mars", "Venus"
|
|
230
|
+
*/
|
|
231
|
+
rulingPlanet: string;
|
|
232
|
+
/**
|
|
233
|
+
* Zodiac sign associated with the house.
|
|
234
|
+
*
|
|
235
|
+
* Reflects the natural energy or archetype that aligns with the house.
|
|
236
|
+
* Example: "Aries", "Taurus"
|
|
237
|
+
*/
|
|
238
|
+
sign: string;
|
|
239
|
+
/**
|
|
240
|
+
* Title or name of the house.
|
|
241
|
+
*
|
|
242
|
+
* A formal or descriptive label that captures the house’s core function or domain.
|
|
243
|
+
* Example: "The Individual Personality", "Values and Possessions"
|
|
244
|
+
*/
|
|
245
|
+
title: string;
|
|
246
|
+
/**
|
|
247
|
+
* Modalities of the houses (Angular, Succedent, Cadent).
|
|
248
|
+
*
|
|
249
|
+
* Traditional classification describing the house’s dynamic strength and function:
|
|
250
|
+
* - **Angular (Houses 1, 4, 7, 10):** Active, initiating, most powerful.
|
|
251
|
+
* - **Succedent (Houses 2, 5, 8, 11):** Stabilizing, sustaining what was initiated.
|
|
252
|
+
* - **Cadent (Houses 3, 6, 9, 12):** Transitional, preparatory, often more internal or mental.
|
|
253
|
+
*/
|
|
254
|
+
modality: HouseModalities;
|
|
255
|
+
}
|
|
256
|
+
export type Dictionary = {
|
|
257
|
+
[key in Signs | Element | Modalities | Planets | Polarities | BodyParts | Characters | Seasons | Hemispheres | HouseModalities]: string;
|
|
258
|
+
} & {
|
|
259
|
+
houseTitles: string[];
|
|
260
|
+
houseKeywords: string[][];
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* Get all astrological houses with their translations for a specified language.
|
|
264
|
+
*
|
|
265
|
+
* @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to 'en'.
|
|
266
|
+
* @returns {House[]} An array of House objects with translated values based on the specified language.
|
|
267
|
+
*
|
|
268
|
+
* @example
|
|
269
|
+
* import { getHouses } from 'western-houses';
|
|
270
|
+
*
|
|
271
|
+
* // Retrieve information about all houses in English
|
|
272
|
+
* const data = getHouses();
|
|
273
|
+
* console.log(data);
|
|
274
|
+
* // Output:
|
|
275
|
+
* // [
|
|
276
|
+
* // {
|
|
277
|
+
* // number: 1,
|
|
278
|
+
* // title: 'The individual personality',
|
|
279
|
+
* // sign: 'Aries',
|
|
280
|
+
* // rulingPlanet: 'Mars',
|
|
281
|
+
* // keywords: [
|
|
282
|
+
* // 'Self-image',
|
|
283
|
+
* // 'Identity',
|
|
284
|
+
* // 'Impressions on others',
|
|
285
|
+
* // 'Personality'
|
|
286
|
+
* // ]
|
|
287
|
+
* // },
|
|
288
|
+
* // ...
|
|
289
|
+
* // ]
|
|
290
|
+
*/
|
|
291
|
+
export declare function getHouses(lang?: Language): House[];
|
|
292
|
+
/**
|
|
293
|
+
* Retrieve the astrological sign corresponding to a given date, with optional translations for the specified language.
|
|
294
|
+
*
|
|
295
|
+
* @param {Date} date - The date for which the corresponding astrological sign is to be retrieved.
|
|
296
|
+
* @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to 'en'.
|
|
297
|
+
* @throws {Error} Will throw an error if the provided date is invalid.
|
|
298
|
+
* @returns {Sign | null} An object representing the astrological sign with translated values or null if the sign is not found.
|
|
299
|
+
*
|
|
300
|
+
* @example
|
|
301
|
+
* import { getSignByDate } from 'western-signs';
|
|
302
|
+
*
|
|
303
|
+
* // Retrieve the sign for May 15 in English
|
|
304
|
+
* const signData = getSignByDate(new Date(1813, 4, 5));
|
|
305
|
+
* console.log(signData);
|
|
306
|
+
* // Output:
|
|
307
|
+
* // {
|
|
308
|
+
* // name: 'Taurus',
|
|
309
|
+
* // element: 'Earth',
|
|
310
|
+
* // modality: 'Fixed',
|
|
311
|
+
* // rulingPlanet: 'Venus',
|
|
312
|
+
* // symbol: '♉',
|
|
313
|
+
* // [...]
|
|
314
|
+
* // }
|
|
315
|
+
*/
|
|
316
|
+
export declare function getSignByDate(date: Date, lang?: Language): Sign | null;
|
|
317
|
+
/**
|
|
318
|
+
* Get the astrological sign by its name with translations for the specified language.
|
|
319
|
+
*
|
|
320
|
+
* @param {Signs} sign - The name of the astrological sign to retrieve.
|
|
321
|
+
* @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to 'en'.
|
|
322
|
+
* @returns {Sign | null} An object representing the sign with translated values or null if the sign or dictionary is not found.
|
|
323
|
+
*
|
|
324
|
+
* @example
|
|
325
|
+
* import { getSignByName, SIGNS } from 'western-signs';
|
|
326
|
+
*
|
|
327
|
+
* // Retrieve information about Taurus in English
|
|
328
|
+
* const taurusData = getSignByName(SIGNS.TAURUS);
|
|
329
|
+
* console.log(taurusData);
|
|
330
|
+
* // Output:
|
|
331
|
+
* // {
|
|
332
|
+
* // name: 'Taurus',
|
|
333
|
+
* // element: 'Earth',
|
|
334
|
+
* // modality: 'Fixed',
|
|
335
|
+
* // rulingPlanet: 'Venus',
|
|
336
|
+
* // symbol: '♉'
|
|
337
|
+
* // [...]
|
|
338
|
+
* // }
|
|
339
|
+
*/
|
|
340
|
+
export declare function getSignByName(sign: Signs, lang?: Language): Sign | null;
|
|
341
|
+
/**
|
|
342
|
+
|
|
343
|
+
* Get all astrological signs with their translations for a specified language.
|
|
344
|
+
*
|
|
345
|
+
* @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to 'en'.
|
|
346
|
+
* @returns {Sign[]} An array of Sign objects with translated values based on the specified language.
|
|
347
|
+
*
|
|
348
|
+
* @example
|
|
349
|
+
* import { getSigns } from 'western-signs';
|
|
350
|
+
*
|
|
351
|
+
* // Retrieve information about all signs in English
|
|
352
|
+
* const data = getSigns();
|
|
353
|
+
* console.log(data);
|
|
354
|
+
* // Output:
|
|
355
|
+
* // [
|
|
356
|
+
* // {
|
|
357
|
+
* // name: 'Aries',
|
|
358
|
+
* // element: 'Air',
|
|
359
|
+
* // modality: 'Cardinal',
|
|
360
|
+
* // rulingPlanet: 'Mars',
|
|
361
|
+
* // symbol: '♈'
|
|
362
|
+
* // },
|
|
363
|
+
* // {
|
|
364
|
+
* // name: 'Taurus',
|
|
365
|
+
* // element: 'Earth',
|
|
366
|
+
* // modality: 'Fixed',
|
|
367
|
+
* // rulingPlanet: 'Venus',
|
|
368
|
+
* // symbol: '♉'
|
|
369
|
+
* // },
|
|
370
|
+
* // ...
|
|
371
|
+
* // ]
|
|
372
|
+
*/
|
|
373
|
+
export declare function getSigns(lang?: Language): Sign[];
|
|
374
|
+
|
|
375
|
+
export {};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var V=Object.create;var{getPrototypeOf:F,defineProperty:R,getOwnPropertyNames:x}=Object;var j=Object.prototype.hasOwnProperty;var W=(e,a,n)=>{n=e!=null?V(F(e)):{};let m=a||!e||!e.__esModule?R(n,"default",{value:e,enumerable:!0}):n;for(let o of x(e))if(!j.call(m,o))R(m,o,{get:()=>e[o],enumerable:!0});return m};var p=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var g=p((te,P)=>{var q={aa:{name:"Afar",nativeName:"Afaraf"},ab:{name:"Abkhaz",nativeName:"аҧсуа бызшәа"},ae:{name:"Avestan",nativeName:"avesta"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},am:{name:"Amharic",nativeName:"አማርኛ"},an:{name:"Aragonese",nativeName:"aragonés"},ar:{name:"Arabic",nativeName:"اَلْعَرَبِيَّةُ"},as:{name:"Assamese",nativeName:"অসমীয়া"},av:{name:"Avaric",nativeName:"авар мацӀ"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"azərbaycan dili"},ba:{name:"Bashkir",nativeName:"башҡорт теле"},be:{name:"Belarusian",nativeName:"беларуская мова"},bg:{name:"Bulgarian",nativeName:"български език"},bi:{name:"Bislama",nativeName:"Bislama"},bm:{name:"Bambara",nativeName:"bamanankan"},bn:{name:"Bengali",nativeName:"বাংলা"},bo:{name:"Tibetan",nativeName:"བོད་ཡིག"},br:{name:"Breton",nativeName:"brezhoneg"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},ca:{name:"Catalan",nativeName:"Català"},ce:{name:"Chechen",nativeName:"нохчийн мотт"},ch:{name:"Chamorro",nativeName:"Chamoru"},co:{name:"Corsican",nativeName:"corsu"},cr:{name:"Cree",nativeName:"ᓀᐦᐃᔭᐍᐏᐣ"},cs:{name:"Czech",nativeName:"čeština"},cu:{name:"Old Church Slavonic",nativeName:"ѩзыкъ словѣньскъ"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},cy:{name:"Welsh",nativeName:"Cymraeg"},da:{name:"Danish",nativeName:"Dansk"},de:{name:"German",nativeName:"Deutsch"},dv:{name:"Divehi",nativeName:"ދިވެހި"},dz:{name:"Dzongkha",nativeName:"རྫོང་ཁ"},ee:{name:"Ewe",nativeName:"Eʋegbe"},el:{name:"Greek",nativeName:"Ελληνικά"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},es:{name:"Spanish",nativeName:"Español"},et:{name:"Estonian",nativeName:"eesti"},eu:{name:"Basque",nativeName:"euskara"},fa:{name:"Persian",nativeName:"فارسی"},ff:{name:"Fula",nativeName:"Fulfulde"},fi:{name:"Finnish",nativeName:"suomi"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fo:{name:"Faroese",nativeName:"Føroyskt"},fr:{name:"French",nativeName:"Français"},fy:{name:"Western Frisian",nativeName:"Frysk"},ga:{name:"Irish",nativeName:"Gaeilge"},gd:{name:"Scottish Gaelic",nativeName:"Gàidhlig"},gl:{name:"Galician",nativeName:"galego"},gn:{name:"Guaraní",nativeName:"Avañe'ẽ"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},gv:{name:"Manx",nativeName:"Gaelg"},ha:{name:"Hausa",nativeName:"هَوُسَ"},he:{name:"Hebrew",nativeName:"עברית"},hi:{name:"Hindi",nativeName:"हिन्दी"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hr:{name:"Croatian",nativeName:"Hrvatski"},ht:{name:"Haitian",nativeName:"Kreyòl ayisyen"},hu:{name:"Hungarian",nativeName:"magyar"},hy:{name:"Armenian",nativeName:"Հայերեն"},hz:{name:"Herero",nativeName:"Otjiherero"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Interlingue"},ig:{name:"Igbo",nativeName:"Asụsụ Igbo"},ii:{name:"Nuosu",nativeName:"ꆈꌠ꒿ Nuosuhxop"},ik:{name:"Inupiaq",nativeName:"Iñupiaq"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"Íslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"ᐃᓄᒃᑎᑐᑦ"},ja:{name:"Japanese",nativeName:"日本語"},jv:{name:"Javanese",nativeName:"basa Jawa"},ka:{name:"Georgian",nativeName:"ქართული"},kg:{name:"Kongo",nativeName:"Kikongo"},ki:{name:"Kikuyu",nativeName:"Gĩkũyũ"},kj:{name:"Kwanyama",nativeName:"Kuanyama"},kk:{name:"Kazakh",nativeName:"қазақ тілі"},kl:{name:"Kalaallisut",nativeName:"kalaallisut"},km:{name:"Khmer",nativeName:"ខេមរភាសា"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},ko:{name:"Korean",nativeName:"한국어"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"कश्मीरी"},ku:{name:"Kurdish",nativeName:"Kurdî"},kv:{name:"Komi",nativeName:"коми кыв"},kw:{name:"Cornish",nativeName:"Kernewek"},ky:{name:"Kyrgyz",nativeName:"Кыргызча"},la:{name:"Latin",nativeName:"latine"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Ganda",nativeName:"Luganda"},li:{name:"Limburgish",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ພາສາລາວ"},lt:{name:"Lithuanian",nativeName:"lietuvių kalba"},lu:{name:"Luba-Katanga",nativeName:"Kiluba"},lv:{name:"Latvian",nativeName:"latviešu valoda"},mg:{name:"Malagasy",nativeName:"fiteny malagasy"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mi:{name:"Māori",nativeName:"te reo Māori"},mk:{name:"Macedonian",nativeName:"македонски јазик"},ml:{name:"Malayalam",nativeName:"മലയാളം"},mn:{name:"Mongolian",nativeName:"Монгол хэл"},mr:{name:"Marathi",nativeName:"मराठी"},ms:{name:"Malay",nativeName:"Bahasa Melayu"},mt:{name:"Maltese",nativeName:"Malti"},my:{name:"Burmese",nativeName:"ဗမာစာ"},na:{name:"Nauru",nativeName:"Dorerin Naoero"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"Northern Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},ng:{name:"Ndonga",nativeName:"Owambo"},nl:{name:"Dutch",nativeName:"Nederlands"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},nr:{name:"Southern Ndebele",nativeName:"isiNdebele"},nv:{name:"Navajo",nativeName:"Diné bizaad"},ny:{name:"Chichewa",nativeName:"chiCheŵa"},oc:{name:"Occitan",nativeName:"occitan"},oj:{name:"Ojibwe",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"ирон æвзаг"},pa:{name:"Panjabi",nativeName:"ਪੰਜਾਬੀ"},pi:{name:"Pāli",nativeName:"पाऴि"},pl:{name:"Polish",nativeName:"Polski"},ps:{name:"Pashto",nativeName:"پښتو"},pt:{name:"Portuguese",nativeName:"Português"},qu:{name:"Quechua",nativeName:"Runa Simi"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"Ikirundi"},ro:{name:"Romanian",nativeName:"Română"},ru:{name:"Russian",nativeName:"Русский"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},sa:{name:"Sanskrit",nativeName:"संस्कृतम्"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"सिन्धी"},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},sg:{name:"Sango",nativeName:"yângâ tî sängö"},si:{name:"Sinhala",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"slovenčina"},sl:{name:"Slovenian",nativeName:"slovenščina"},sm:{name:"Samoan",nativeName:"gagana fa'a Samoa"},sn:{name:"Shona",nativeName:"chiShona"},so:{name:"Somali",nativeName:"Soomaaliga"},sq:{name:"Albanian",nativeName:"Shqip"},sr:{name:"Serbian",nativeName:"српски језик"},ss:{name:"Swati",nativeName:"SiSwati"},st:{name:"Southern Sotho",nativeName:"Sesotho"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sv:{name:"Swedish",nativeName:"Svenska"},sw:{name:"Swahili",nativeName:"Kiswahili"},ta:{name:"Tamil",nativeName:"தமிழ்"},te:{name:"Telugu",nativeName:"తెలుగు"},tg:{name:"Tajik",nativeName:"тоҷикӣ"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},tk:{name:"Turkmen",nativeName:"Türkmençe"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"Türkçe"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"татар теле"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uyghur",nativeName:"ئۇيغۇرچە"},uk:{name:"Ukrainian",nativeName:"Українська"},ur:{name:"Urdu",nativeName:"اردو"},uz:{name:"Uzbek",nativeName:"Ўзбек"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},vo:{name:"Volapük",nativeName:"Volapük"},wa:{name:"Walloon",nativeName:"walon"},wo:{name:"Wolof",nativeName:"Wollof"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"ייִדיש"},yo:{name:"Yoruba",nativeName:"Yorùbá"},za:{name:"Zhuang",nativeName:"Saɯ cueŋƅ"},zh:{name:"Chinese",nativeName:"中文"},zu:{name:"Zulu",nativeName:"isiZulu"}};P.exports=q});var U=p((me,w)=>{var h=g(),b={},d={},C=[],k=[],L=[];for(let e in h){let{name:a,nativeName:n}=h[e];b[e]=d[a.toLowerCase()]=d[n.toLowerCase()]={code:e,name:a,nativeName:n},C.push(e),k.push(a),L.push(n)}w.exports=class e{static getLanguages(a=[]){return a.map((n)=>e.validate(n)?Object.assign({},b[n]):{code:n,name:"",nativeName:""})}static getName(a){return e.validate(a)?h[a].name:""}static getAllNames(){return k.slice()}static getNativeName(a){return e.validate(a)?h[a].nativeName:""}static getAllNativeNames(){return L.slice()}static getCode(a){return a=a.toLowerCase(),d.hasOwnProperty(a)?d[a].code:""}static getAllCodes(){return C.slice()}static validate(a){return h.hasOwnProperty(a)}}});var i={ARIES:"aries",TAURUS:"taurus",GEMINI:"gemini",CANCER:"cancer",LEO:"leo",VIRGO:"virgo",LIBRA:"libra",SCORPIO:"scorpio",SAGITTARIUS:"sagittarius",CAPRICORN:"capricorn",AQUARIUS:"aquarius",PISCES:"pisces"},t={MARS:"mars",VENUS:"venus",MERCURY:"mercury",MOON:"moon",SUN:"sun",PLUTO:"pluto",JUPITER:"jupiter",SATURN:"saturn",URANUS:"uranus",NEPTUNE:"neptune"},r={CARDINAL:"cardinal",FIXED:"fixed",MUTABLE:"mutable"},s={FIRE:"fire",EARTH:"earth",AIR:"air",WATER:"water"},N={POSITIVE:"positive",NEGATIVE:"negative"},l={HEAD:"head",THROAT:"throat",LUNGS:"lungs",STOMACH:"stomach",HEART:"heart",BOWELS:"bowels",REINS:"reins",SECRETS:"secrets",THIGHS:"thighs",KNEES:"knees",ANKLES:"ankles",FEET:"feet"},u={RAM:"ram",BULL:"bull",TWINS:"twins",CRAB:"crab",LION:"lion",VIRGIN:"virgin",BALANCE:"balance",SCORPION:"scorpion",ARCHER:"archer",GOAT:"goat",THE_MAN:"the-man",THE_FISHES:"the-fishes"},v={SPRING:"spring",SUMMER:"summer",AUTUMN:"autumn",WINTER:"winter"},c=["houseTitles-1","houseTitles-2","houseTitles-3","houseTitles-4","houseTitles-5","houseTitles-6","houseTitles-7","houseTitles-8","houseTitles-9","houseTitles-10","houseTitles-11","houseTitles-12"],S=["houseKeywords-1","houseKeywords-2","houseKeywords-3","houseKeywords-4","houseKeywords-5","houseKeywords-6","houseKeywords-7","houseKeywords-8","housKeywordss-9","houseKeywords-10","houseKeywords-11","houseKeywords-12"];var z={aries:{bodyPart:l.HEAD,character:u.RAM,element:s.FIRE,endDate:new Date(2020,3,20),glyph:"♈",modality:r.CARDINAL,name:i.ARIES,number:1,pole:N.POSITIVE,rulingPlanet:t.MARS,season:v.SPRING,startDate:new Date(2020,2,20)},taurus:{bodyPart:l.THROAT,character:u.BULL,element:s.EARTH,endDate:new Date(2020,4,21),glyph:"♉",modality:r.FIXED,name:i.TAURUS,number:2,pole:N.NEGATIVE,rulingPlanet:t.VENUS,season:v.SPRING,startDate:new Date(2020,3,21)},gemini:{bodyPart:l.LUNGS,character:u.TWINS,element:s.AIR,endDate:new Date(2020,5,22),glyph:"♊",modality:r.MUTABLE,name:i.GEMINI,number:3,pole:N.POSITIVE,rulingPlanet:t.MERCURY,season:v.SPRING,startDate:new Date(2020,4,22)},cancer:{bodyPart:l.STOMACH,character:u.CRAB,element:s.WATER,endDate:new Date(2020,6,22),glyph:"♋",modality:r.CARDINAL,name:i.CANCER,number:4,pole:N.NEGATIVE,rulingPlanet:t.MOON,season:v.SUMMER,startDate:new Date(2020,5,23)},leo:{bodyPart:l.HEART,character:u.LION,element:s.FIRE,endDate:new Date(2020,7,22),glyph:"♌",modality:r.FIXED,name:i.LEO,number:5,pole:N.POSITIVE,rulingPlanet:t.SUN,season:v.SUMMER,startDate:new Date(2020,6,23)},virgo:{bodyPart:l.BOWELS,character:u.VIRGIN,element:s.EARTH,endDate:new Date(2020,8,22),glyph:"♍",modality:r.MUTABLE,name:i.VIRGO,number:6,pole:N.NEGATIVE,rulingPlanet:t.MERCURY,season:v.SUMMER,startDate:new Date(2020,7,23)},libra:{bodyPart:l.REINS,character:u.BALANCE,element:s.AIR,endDate:new Date(2020,9,22),glyph:"♎",modality:r.CARDINAL,name:i.LIBRA,number:7,pole:N.POSITIVE,rulingPlanet:t.VENUS,season:v.AUTUMN,startDate:new Date(2020,8,23)},scorpio:{bodyPart:l.SECRETS,character:u.SCORPION,element:s.WATER,endDate:new Date(2020,10,22),glyph:"♏",modality:r.FIXED,name:i.SCORPIO,number:8,pole:N.NEGATIVE,rulingPlanet:t.PLUTO,season:v.AUTUMN,startDate:new Date(2020,9,23)},sagittarius:{bodyPart:l.THIGHS,character:u.ARCHER,element:s.FIRE,endDate:new Date(2020,11,22),glyph:"♐",modality:r.MUTABLE,name:i.SAGITTARIUS,number:9,pole:N.POSITIVE,rulingPlanet:t.JUPITER,season:v.AUTUMN,startDate:new Date(2020,10,23)},capricorn:{bodyPart:l.KNEES,character:u.GOAT,element:s.EARTH,endDate:new Date(2021,0,21),glyph:"♑",modality:r.CARDINAL,name:i.CAPRICORN,number:10,pole:N.NEGATIVE,rulingPlanet:t.SATURN,season:v.WINTER,startDate:new Date(2020,11,23)},aquarius:{bodyPart:l.ANKLES,character:u.THE_MAN,element:s.AIR,endDate:new Date(2020,1,20),glyph:"♒",modality:r.FIXED,name:i.AQUARIUS,number:11,pole:N.POSITIVE,rulingPlanet:t.URANUS,season:v.WINTER,startDate:new Date(2020,0,22)},pisces:{bodyPart:l.FEET,character:u.THE_FISHES,element:s.WATER,endDate:new Date(2020,2,19),glyph:"♓",modality:r.MUTABLE,name:i.PISCES,number:12,pole:N.NEGATIVE,rulingPlanet:t.NEPTUNE,season:v.WINTER,startDate:new Date(2020,1,21)}},E=z;var D=W(U(),1);var Y={aries:"Aries",taurus:"Taurus",gemini:"Gemini",cancer:"Cancer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Scorpio",sagittarius:"Sagittarius",capricorn:"Capricorn",aquarius:"Aquarius",pisces:"Pisces",fire:"Fire",earth:"Earth",air:"Air",water:"Water",cardinal:"Cardinal",fixed:"Fixed",mutable:"Mutable",mars:"Mars",venus:"Venus",mercury:"Mercury",moon:"Moon",sun:"Sun",pluto:"Pluto",jupiter:"Jupiter",saturn:"Saturn",uranus:"Uranus",neptune:"Neptune",positive:"Positive",negative:"Negative",head:"Head",throat:"Throat",lungs:"Lungs",stomach:"Stomach",heart:"Heart",bowels:"Bowels",reins:"Reins",secrets:"Secrets",thighs:"Thighs",knees:"Knees",ankles:"Ankles",feet:"Feet",ram:"Ram",bull:"Bull",twins:"Twins",crab:"Crab",lion:"Lion",virgin:"Virgin",balance:"Balance",scorpion:"Scorpion",archer:"Archer",goat:"Goat","the-man":"The Man","the-fishes":"The Fishes",spring:"Spring",summer:"Summer",autumn:"Autumn",winter:"Winter",houseTitles:["The individual personality","Values and Possessions","Communication","Roots and Origins","Pleasure and Creativity","Work and Routine","Relating","Loss and Common Property","Philosophies and Far Countries","Occupation and Calling","Friends and Acquaintances","Beyond the Personal"],houseKeywords:[["Self-image","Identity","Impressions on others","Personality"],["Personal resources","Values","Security","Possessions"],["Surroundings","Siblings","Communication","Knowledge"],["Home","Family","The Past","Roots"],["Children","Creativity","Expression","Pleasure"],["Routines","Service","Health","Productivity"],["Partnerships","Relationships","Balance","Collaboration"],["Transformations","Crises","Beginnings","Rebirth"],["Philosophy","Travel","Openness","Wisdom"],["Public","Legacy","Career","Ambition"],["Friends","Community","Dreams","Aspirations"],["Unconscious","Fantasies","Connections","Healing"]]},O=Y;var _={aries:"Aries",taurus:"Tauro",gemini:"Géminis",cancer:"Cáncer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Escorpio",sagittarius:"Sagitario",capricorn:"Capricornio",aquarius:"Acuario",pisces:"Piscis",fire:"Fuego",earth:"Tierra",air:"Aire",water:"Agua",cardinal:"Cardinal",fixed:"Fijo",mutable:"Mutable",mars:"Marte",venus:"Venus",mercury:"Mercurio",moon:"Luna",sun:"Sol",pluto:"Plutón",jupiter:"Júpiter",saturn:"Saturno",uranus:"Urano",neptune:"Neptuno",positive:"Positivo",negative:"Negativo",head:"Cabeza",throat:"Garganta",lungs:"Pulmones",stomach:"Estómago",heart:"Corazón",bowels:"Intestinos",reins:"Riñones",secrets:"Genitales",thighs:"Muslos",knees:"Rodillas",ankles:"Tobillos",feet:"Pies",ram:"Carnero",bull:"Toro",twins:"Gemelos",crab:"Cangrejo",lion:"León",virgin:"Virgen",balance:"Balanza",scorpion:"Escorpión",archer:"Arquero",goat:"Cabra","the-man":"El Hombre","the-fishes":"Los Peces",spring:"Primavera",summer:"Verano",autumn:"Otoño",winter:"Invierno",houseTitles:["La personalidad individual","Valores y Posesiones","Comunicación","Raíces y Orígenes","Placer y Creatividad","Trabajo y Rutina","Relacionarse","Pérdida y Propiedad Común","Filosofías y Países Lejanos","Ocupación y Vocación","Amigos y Conocidos","Más Allá de lo Personal"],houseKeywords:[["Autoimagen","Identidad","Impresiones en los demás","Personalidad"],["Recursos personales","Valores","Seguridad","Posesiones"],["Entorno","Hermanos","Comunicación","Conocimiento"],["Hogar","Familia","El pasado","Raíces"],["Niños","Creatividad","Expresión","Placer"],["Rutinas","Servicio","Salud","Productividad"],["Asociaciones","Relaciones","Equilibrio","Colaboración"],["Transformaciones","Crisis","Inicios","Renacimiento"],["Filosofía","Viajes","Apertura","Sabiduría"],["Público","Legado","Carrera","Ambición"],["Amigos","Comunidad","Sueños","Aspiraciones"],["Inconsciente","Fantasías","Conexiones","Sanación"]]},M=_;var T={en:O,es:M};var ce=D.default.getName;function y(e,a){let n=T[a];return{bodyPart:n[e.bodyPart],character:n[e.character],element:n[e.element],endDate:e.endDate,glyph:e.glyph,modality:n[e.modality],name:n[e.name],number:e.number,pole:n[e.pole],rulingPlanet:n[e.rulingPlanet],season:n[e.season],startDate:e.startDate}}function G(e,a,n){let m=n.getMonth()+1,o=n.getDate(),A=e.getMonth()+1,f=e.getDate(),I=a.getMonth()+1,B=a.getDate();return m===A&&o>=f||m===I&&o<=B||A>I&&(m>A||m<I)}function H(e,a){let n=T[a],[,m]=e.title.split("-"),[,o]=e.keywords.split("-");return{number:e.number,title:n.houseTitles[Number(m)-1],sign:n[e.sign],rulingPlanet:n[e.rulingPlanet],keywords:n.houseKeywords[Number(o)-1]}}function J(e,a="en"){let n=E[e];if(!n)return null;return y(n,a)}function X(e,a="en"){if(!(e instanceof Date))throw new Error("Invalid date");for(let n of Object.keys(E)){let m=E[n],{startDate:o,endDate:A}=m;if(G(o,A,e))return y(m,a)}return null}function Q(e="en"){return Object.keys(E).map((a)=>{let n={};return Object.entries(E[a]).forEach(([m,o])=>{let A=T[e][o];n[m]=A??o}),n})}var Z=[{number:1,sign:i.ARIES,rulingPlanet:t.MARS,title:c[0],keywords:S[0]},{number:2,sign:i.TAURUS,rulingPlanet:t.VENUS,title:c[1],keywords:S[1]},{number:3,sign:i.GEMINI,rulingPlanet:t.MERCURY,title:c[2],keywords:S[2]},{number:4,sign:i.CANCER,rulingPlanet:t.MOON,title:c[3],keywords:S[3]},{number:5,sign:i.LEO,rulingPlanet:t.SUN,title:c[4],keywords:S[4]},{number:6,sign:i.VIRGO,rulingPlanet:t.MERCURY,title:c[5],keywords:S[5]},{number:7,sign:i.LIBRA,rulingPlanet:t.VENUS,title:c[6],keywords:S[6]},{number:8,sign:i.SCORPIO,rulingPlanet:t.PLUTO,title:c[7],keywords:S[7]},{number:9,sign:i.SAGITTARIUS,rulingPlanet:t.JUPITER,title:c[8],keywords:S[8]},{number:10,sign:i.CAPRICORN,rulingPlanet:t.SATURN,title:c[9],keywords:S[9]},{number:11,sign:i.AQUARIUS,rulingPlanet:t.URANUS,title:c[10],keywords:S[10]},{number:12,sign:i.PISCES,rulingPlanet:t.NEPTUNE,title:c[11],keywords:S[11]}],K=Z;function $(e="en"){return K.map((a)=>{return H(a,e)})}export{Q as getSigns,J as getSignByName,X as getSignByDate,$ as getHouses,i as SIGNS,t as PLANETS,r as MODALITIES,s as ELEMENTS};
|
|
1
|
+
var a={ARIES:"aries",TAURUS:"taurus",GEMINI:"gemini",CANCER:"cancer",LEO:"leo",VIRGO:"virgo",LIBRA:"libra",SCORPIO:"scorpio",SAGITTARIUS:"sagittarius",CAPRICORN:"capricorn",AQUARIUS:"aquarius",PISCES:"pisces"},s={MARS:"mars",VENUS:"venus",MERCURY:"mercury",MOON:"moon",SUN:"sun",PLUTO:"pluto",JUPITER:"jupiter",SATURN:"saturn",URANUS:"uranus",NEPTUNE:"neptune"},o={CARDINAL:"cardinal",FIXED:"fixed",MUTABLE:"mutable"},n={FIRE:"fire",EARTH:"earth",AIR:"air",WATER:"water"},c={POSITIVE:"positive",NEGATIVE:"negative"},u={HEAD:"head",THROAT:"throat",LUNGS:"lungs",STOMACH:"stomach",HEART:"heart",BOWELS:"bowels",REINS:"reins",SECRETS:"secrets",THIGHS:"thighs",KNEES:"knees",ANKLES:"ankles",FEET:"feet"},m={RAM:"ram",BULL:"bull",TWINS:"twins",CRAB:"crab",LION:"lion",VIRGIN:"virgin",BALANCE:"balance",SCORPION:"scorpion",ARCHER:"archer",GOAT:"goat",THE_MAN:"the-man",THE_FISHES:"the-fishes"},E={SPRING:"spring",SUMMER:"summer",AUTUMN:"autumn",WINTER:"winter"},p=["houseTitles-1","houseTitles-2","houseTitles-3","houseTitles-4","houseTitles-5","houseTitles-6","houseTitles-7","houseTitles-8","houseTitles-9","houseTitles-10","houseTitles-11","houseTitles-12"],S=["houseKeywords-1","houseKeywords-2","houseKeywords-3","houseKeywords-4","houseKeywords-5","houseKeywords-6","houseKeywords-7","houseKeywords-8","housKeywordss-9","houseKeywords-10","houseKeywords-11","houseKeywords-12"],i={LOWER:"lower",UPPER:"upper"},l={ANGULAR:"angular",SUCCEDENT:"succedent",CADENT:"cadent"};var g=[{element:n.FIRE,hemisphere:i.LOWER,keywords:S[0],number:1,phase:1,quadrant:1,rulingPlanet:s.MARS,sign:a.ARIES,title:p[0],modality:l.ANGULAR},{element:n.EARTH,hemisphere:i.LOWER,keywords:S[1],modality:l.SUCCEDENT,number:2,phase:1,quadrant:1,rulingPlanet:s.VENUS,sign:a.TAURUS,title:p[1]},{element:n.AIR,hemisphere:i.LOWER,keywords:S[2],modality:l.CADENT,number:3,phase:1,quadrant:1,rulingPlanet:s.MERCURY,sign:a.GEMINI,title:p[2]},{element:n.WATER,hemisphere:i.LOWER,keywords:S[3],modality:l.ANGULAR,number:4,phase:1,quadrant:2,rulingPlanet:s.MOON,sign:a.CANCER,title:p[3]},{element:n.FIRE,hemisphere:i.LOWER,keywords:S[4],modality:l.SUCCEDENT,number:5,phase:2,quadrant:2,rulingPlanet:s.SUN,sign:a.LEO,title:p[4]},{element:n.EARTH,hemisphere:i.LOWER,keywords:S[5],modality:l.CADENT,number:6,phase:2,quadrant:2,rulingPlanet:s.MERCURY,sign:a.VIRGO,title:p[5]},{element:n.AIR,hemisphere:i.UPPER,keywords:S[6],modality:l.ANGULAR,number:7,phase:2,quadrant:3,rulingPlanet:s.VENUS,sign:a.LIBRA,title:p[6]},{element:n.WATER,hemisphere:i.UPPER,keywords:S[7],modality:l.SUCCEDENT,number:8,phase:2,quadrant:3,rulingPlanet:s.PLUTO,sign:a.SCORPIO,title:p[7]},{element:n.FIRE,hemisphere:i.UPPER,keywords:S[8],modality:l.CADENT,number:9,phase:3,quadrant:3,rulingPlanet:s.JUPITER,sign:a.SAGITTARIUS,title:p[8]},{element:n.EARTH,hemisphere:i.UPPER,keywords:S[9],modality:l.ANGULAR,number:10,phase:3,quadrant:4,rulingPlanet:s.SATURN,sign:a.CAPRICORN,title:p[9]},{element:n.AIR,hemisphere:i.UPPER,keywords:S[10],modality:l.SUCCEDENT,number:11,phase:3,quadrant:4,rulingPlanet:s.URANUS,sign:a.AQUARIUS,title:p[10]},{element:n.WATER,hemisphere:i.UPPER,keywords:S[11],modality:l.CADENT,number:12,phase:3,quadrant:4,rulingPlanet:s.NEPTUNE,sign:a.PISCES,title:p[11]}],h=g;import V from"iso-639-1";var H={aries:"Aries",taurus:"Taurus",gemini:"Gemini",cancer:"Cancer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Scorpio",sagittarius:"Sagittarius",capricorn:"Capricorn",aquarius:"Aquarius",pisces:"Pisces",fire:"Fire",earth:"Earth",air:"Air",water:"Water",cardinal:"Cardinal",fixed:"Fixed",mutable:"Mutable",mars:"Mars",venus:"Venus",mercury:"Mercury",moon:"Moon",sun:"Sun",pluto:"Pluto",jupiter:"Jupiter",saturn:"Saturn",uranus:"Uranus",neptune:"Neptune",positive:"Positive",negative:"Negative",head:"Head",throat:"Throat",lungs:"Lungs",stomach:"Stomach",heart:"Heart",bowels:"Bowels",reins:"Reins",secrets:"Secrets",thighs:"Thighs",knees:"Knees",ankles:"Ankles",feet:"Feet",ram:"Ram",bull:"Bull",twins:"Twins",crab:"Crab",lion:"Lion",virgin:"Virgin",balance:"Balance",scorpion:"Scorpion",archer:"Archer",goat:"Goat","the-man":"The Man","the-fishes":"The Fishes",spring:"Spring",summer:"Summer",autumn:"Autumn",winter:"Winter",houseTitles:["The individual personality","Values and Possessions","Communication","Roots and Origins","Pleasure and Creativity","Work and Routine","Relating","Loss and Common Property","Philosophies and Far Countries","Occupation and Calling","Friends and Acquaintances","Beyond the Personal"],houseKeywords:[["Self-image","Identity","Impressions on others","Personality"],["Personal resources","Values","Security","Possessions"],["Surroundings","Siblings","Communication","Knowledge"],["Home","Family","The Past","Roots"],["Children","Creativity","Expression","Pleasure"],["Routines","Service","Health","Productivity"],["Partnerships","Relationships","Balance","Collaboration"],["Transformations","Crises","Beginnings","Rebirth"],["Philosophy","Travel","Openness","Wisdom"],["Public","Legacy","Career","Ambition"],["Friends","Community","Dreams","Aspirations"],["Unconscious","Fantasies","Connections","Healing"]],lower:"Lower",upper:"Upper",angular:"Angular",succedent:"Succedent",cadent:"Cadent"},C=H;var D={aries:"Aries",taurus:"Tauro",gemini:"Géminis",cancer:"Cáncer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Escorpio",sagittarius:"Sagitario",capricorn:"Capricornio",aquarius:"Acuario",pisces:"Piscis",fire:"Fuego",earth:"Tierra",air:"Aire",water:"Agua",cardinal:"Cardinal",fixed:"Fijo",mutable:"Mutable",mars:"Marte",venus:"Venus",mercury:"Mercurio",moon:"Luna",sun:"Sol",pluto:"Plutón",jupiter:"Júpiter",saturn:"Saturno",uranus:"Urano",neptune:"Neptuno",positive:"Positivo",negative:"Negativo",head:"Cabeza",throat:"Garganta",lungs:"Pulmones",stomach:"Estómago",heart:"Corazón",bowels:"Intestinos",reins:"Riñones",secrets:"Genitales",thighs:"Muslos",knees:"Rodillas",ankles:"Tobillos",feet:"Pies",ram:"Carnero",bull:"Toro",twins:"Gemelos",crab:"Cangrejo",lion:"León",virgin:"Virgen",balance:"Balanza",scorpion:"Escorpión",archer:"Arquero",goat:"Cabra","the-man":"El Hombre","the-fishes":"Los Peces",spring:"Primavera",summer:"Verano",autumn:"Otoño",winter:"Invierno",houseTitles:["La personalidad individual","Valores y Posesiones","Comunicación","Raíces y Orígenes","Placer y Creatividad","Trabajo y Rutina","Relacionarse","Pérdida y Propiedad Común","Filosofías y Países Lejanos","Ocupación y Vocación","Amigos y Conocidos","Más Allá de lo Personal"],houseKeywords:[["Autoimagen","Identidad","Impresiones en los demás","Personalidad"],["Recursos personales","Valores","Seguridad","Posesiones"],["Entorno","Hermanos","Comunicación","Conocimiento"],["Hogar","Familia","El pasado","Raíces"],["Niños","Creatividad","Expresión","Placer"],["Rutinas","Servicio","Salud","Productividad"],["Asociaciones","Relaciones","Equilibrio","Colaboración"],["Transformaciones","Crisis","Inicios","Renacimiento"],["Filosofía","Viajes","Apertura","Sabiduría"],["Público","Legado","Carrera","Ambición"],["Amigos","Comunidad","Sueños","Aspiraciones"],["Inconsciente","Fantasías","Conexiones","Sanación"]],lower:"Inferior",upper:"Superior",angular:"Angular",succedent:"Sucedente",cadent:"Cadente"},N=D;var w={aries:"Àries",taurus:"Taure",gemini:"Bessons",cancer:"Cranc",leo:"Lleó",virgo:"Verge",libra:"Balança",scorpio:"Escorpió",sagittarius:"Sagitari",capricorn:"Capricorn",aquarius:"Aquari",pisces:"Peixos",fire:"Foc",earth:"Terra",air:"Aire",water:"Aigua",cardinal:"Cardinal",fixed:"Fix",mutable:"Mutable",mars:"Mart",venus:"Venus",mercury:"Mercuri",moon:"Lluna",sun:"Sol",pluto:"Plutó",jupiter:"Júpiter",saturn:"Saturn",uranus:"Urà",neptune:"Neptú",positive:"Positiu",negative:"Negatiu",head:"Cap",throat:"Gola",lungs:"Pulmons",stomach:"Estómac",heart:"Cor",bowels:"Intestins",reins:"Ronyons",secrets:"Genitals",thighs:"Cuixes",knees:"Genolls",ankles:"Turmells",feet:"Peus",ram:"Carner",bull:"Bou",twins:"Bessons",crab:"Cranc",lion:"Lleó",virgin:"Verge",balance:"Balança",scorpion:"Escorpí",archer:"Arquer",goat:"Cabra","the-man":"L'Home","the-fishes":"Els Peixos",spring:"Primavera",summer:"Estiu",autumn:"Tardor",winter:"Hivern",houseTitles:["La personalitat individual","Valors i possessions","Comunicació","Arrels i orígens","Plaer i creativitat","Feina i rutina","Relacionar-se","Pèrdua i propietat comuna","Filosofia i països llunyans","Ocupació i vocació","Amics i coneguts","Més enllà del personal"],houseKeywords:[["Autoimatge","Identitat","Impressions als altres","Personalitat"],["Recursos personals","Valors","Seguretat","Possessions"],["Entorn","Germans","Comunicació","Coneixement"],["Llar","Família","El passat","Arrels"],["Infants","Creativitat","Expressió","Plaer"],["Rutines","Servei","Salut","Productivitat"],["Associacions","Relacions","Equilibri","Col·laboració"],["Transformacions","Crisi","Inicis","Renaixement"],["Filosofia","Viatges","Obertura","Saviesa"],["Públic","Llegat","Carrera","Ambició"],["Amics","Comunitat","Somnis","Aspiracions"],["Inconscient","Fantasies","Connexions","Sanació"]],lower:"Inferior",upper:"Superior",angular:"Angular",succedent:"Successiva",cadent:"Cadent"},U=w;var T={en:C,es:N,ca:U};var G={aries:{bodyPart:u.HEAD,character:m.RAM,element:n.FIRE,endDate:new Date(2020,3,20),glyph:"♈",modality:o.CARDINAL,name:a.ARIES,number:1,pole:c.POSITIVE,rulingPlanet:s.MARS,season:E.SPRING,startDate:new Date(2020,2,20)},taurus:{bodyPart:u.THROAT,character:m.BULL,element:n.EARTH,endDate:new Date(2020,4,21),glyph:"♉",modality:o.FIXED,name:a.TAURUS,number:2,pole:c.NEGATIVE,rulingPlanet:s.VENUS,season:E.SPRING,startDate:new Date(2020,3,21)},gemini:{bodyPart:u.LUNGS,character:m.TWINS,element:n.AIR,endDate:new Date(2020,5,22),glyph:"♊",modality:o.MUTABLE,name:a.GEMINI,number:3,pole:c.POSITIVE,rulingPlanet:s.MERCURY,season:E.SPRING,startDate:new Date(2020,4,22)},cancer:{bodyPart:u.STOMACH,character:m.CRAB,element:n.WATER,endDate:new Date(2020,6,22),glyph:"♋",modality:o.CARDINAL,name:a.CANCER,number:4,pole:c.NEGATIVE,rulingPlanet:s.MOON,season:E.SUMMER,startDate:new Date(2020,5,23)},leo:{bodyPart:u.HEART,character:m.LION,element:n.FIRE,endDate:new Date(2020,7,22),glyph:"♌",modality:o.FIXED,name:a.LEO,number:5,pole:c.POSITIVE,rulingPlanet:s.SUN,season:E.SUMMER,startDate:new Date(2020,6,23)},virgo:{bodyPart:u.BOWELS,character:m.VIRGIN,element:n.EARTH,endDate:new Date(2020,8,22),glyph:"♍",modality:o.MUTABLE,name:a.VIRGO,number:6,pole:c.NEGATIVE,rulingPlanet:s.MERCURY,season:E.SUMMER,startDate:new Date(2020,7,23)},libra:{bodyPart:u.REINS,character:m.BALANCE,element:n.AIR,endDate:new Date(2020,9,22),glyph:"♎",modality:o.CARDINAL,name:a.LIBRA,number:7,pole:c.POSITIVE,rulingPlanet:s.VENUS,season:E.AUTUMN,startDate:new Date(2020,8,23)},scorpio:{bodyPart:u.SECRETS,character:m.SCORPION,element:n.WATER,endDate:new Date(2020,10,22),glyph:"♏",modality:o.FIXED,name:a.SCORPIO,number:8,pole:c.NEGATIVE,rulingPlanet:s.PLUTO,season:E.AUTUMN,startDate:new Date(2020,9,23)},sagittarius:{bodyPart:u.THIGHS,character:m.ARCHER,element:n.FIRE,endDate:new Date(2020,11,22),glyph:"♐",modality:o.MUTABLE,name:a.SAGITTARIUS,number:9,pole:c.POSITIVE,rulingPlanet:s.JUPITER,season:E.AUTUMN,startDate:new Date(2020,10,23)},capricorn:{bodyPart:u.KNEES,character:m.GOAT,element:n.EARTH,endDate:new Date(2021,0,21),glyph:"♑",modality:o.CARDINAL,name:a.CAPRICORN,number:10,pole:c.NEGATIVE,rulingPlanet:s.SATURN,season:E.WINTER,startDate:new Date(2020,11,23)},aquarius:{bodyPart:u.ANKLES,character:m.THE_MAN,element:n.AIR,endDate:new Date(2020,1,20),glyph:"♒",modality:o.FIXED,name:a.AQUARIUS,number:11,pole:c.POSITIVE,rulingPlanet:s.URANUS,season:E.WINTER,startDate:new Date(2020,0,22)},pisces:{bodyPart:u.FEET,character:m.THE_FISHES,element:n.WATER,endDate:new Date(2020,2,19),glyph:"♓",modality:o.MUTABLE,name:a.PISCES,number:12,pole:c.NEGATIVE,rulingPlanet:s.NEPTUNE,season:E.WINTER,startDate:new Date(2020,1,21)}},d=G;var re=V.getName;function I(e,t){let r=T[t];return{bodyPart:r[e.bodyPart],character:r[e.character],element:r[e.element],endDate:e.endDate,glyph:e.glyph,modality:r[e.modality],name:r[e.name],number:e.number,pole:r[e.pole],rulingPlanet:r[e.rulingPlanet],season:r[e.season],startDate:e.startDate}}function L(e,t,r){let A=r.getMonth()+1,R=r.getDate(),P=e.getMonth()+1,O=e.getDate(),y=t.getMonth()+1,M=t.getDate();return A===P&&R>=O||A===y&&R<=M||P>y&&(A>P||A<y)}function b(e,t){let r=T[t],[,A]=e.title.split("-"),[,R]=e.keywords.split("-");return{number:e.number,title:r.houseTitles[Number(A)-1],sign:r[e.sign],rulingPlanet:r[e.rulingPlanet],keywords:r.houseKeywords[Number(R)-1],element:r[e.element],hemisphere:r[e.hemisphere],phase:e.phase,quadrant:e.quadrant,modality:r[e.modality]}}function x(e="en"){return h.map((t)=>{return b(t,e)})}function F(e,t="en"){if(!(e instanceof Date))throw new Error("Invalid date");for(let r of Object.keys(d)){let A=d[r],{startDate:R,endDate:P}=A;if(L(R,P,e))return I(A,t)}return null}function f(e,t="en"){let r=d[e];if(!r)return null;return I(r,t)}function B(e="en"){return Object.keys(d).map((t)=>{let r={};return Object.entries(d[t]).forEach(([A,R])=>{let P=T[e][R];r[A]=P||R}),r})}export{B as getSigns,f as getSignByName,F as getSignByDate,x as getHouses,a as SIGNS,s as PLANETS,o as MODALITIES,l as HOUSE_MODALITIES,i as HEMISPHERES,n as ELEMENTS};
|
package/package.json
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "western-signs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"author": "Marc Mariné <shenobi@gmail.com>",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/marcmarine/western-signs.git"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
+
"@biomejs/biome": "2.0.6",
|
|
10
11
|
"@semantic-release/changelog": "^6.0.3",
|
|
11
12
|
"@semantic-release/git": "^10.0.1",
|
|
12
13
|
"@types/bun": "latest",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
14
|
+
"bun-plugin-dts": "^0.3.0",
|
|
15
|
+
"iso-639-1": "^3.1.5",
|
|
16
|
+
"semantic-release": "^24.2.5",
|
|
17
|
+
"typedoc": "^0.28.5",
|
|
18
|
+
"upgradeps": "^2.0.8",
|
|
19
|
+
"varvara-typedoc-theme": "^0.3.6"
|
|
18
20
|
},
|
|
19
21
|
"peerDependencies": {
|
|
20
|
-
"typescript": "^5.
|
|
22
|
+
"typescript": "^5.8.3"
|
|
21
23
|
},
|
|
22
24
|
"exports": {
|
|
23
25
|
".": "./dist/index.js"
|
|
24
26
|
},
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
25
28
|
"bugs": "https://github.com/marcmarine/western-signs/issues/new",
|
|
26
29
|
"description": "Simple interface for western astrological signs.",
|
|
27
30
|
"files": [
|
|
@@ -35,11 +38,10 @@
|
|
|
35
38
|
"western-signs"
|
|
36
39
|
],
|
|
37
40
|
"license": "MIT",
|
|
38
|
-
"publishConfig": {
|
|
39
|
-
"access": "public"
|
|
40
|
-
},
|
|
41
41
|
"scripts": {
|
|
42
|
-
"build": "bun build.ts"
|
|
42
|
+
"build": "bun build.ts",
|
|
43
|
+
"build:docs": "bunx typedoc",
|
|
44
|
+
"format": "biome check --write"
|
|
43
45
|
},
|
|
44
46
|
"type": "module"
|
|
45
47
|
}
|