@treeviz/gedcom-parser 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classes/index.d.ts +2 -28
- package/dist/classes/index.js +6713 -21
- package/dist/classes/index.js.map +1 -0
- package/dist/cli/index.d.ts +0 -2
- package/dist/cli/index.js +7826 -24
- package/dist/cli/index.js.map +1 -0
- package/dist/constants/index.d.ts +49 -4
- package/dist/constants/index.js +5797 -4
- package/dist/constants/index.js.map +1 -0
- package/dist/factories/index.d.ts +202 -13
- package/dist/factories/index.js +5782 -8
- package/dist/factories/index.js.map +1 -0
- package/dist/index-BvW-KWJP.d.ts +1654 -0
- package/dist/index.d.ts +9 -28
- package/dist/index.js +7380 -35
- package/dist/index.js.map +1 -0
- package/dist/interfaces/index.d.ts +2 -12
- package/dist/interfaces/index.js +3 -1
- package/dist/interfaces/index.js.map +1 -0
- package/dist/kinship-translator/index.d.ts +146 -11
- package/dist/kinship-translator/index.js +5727 -9
- package/dist/kinship-translator/index.js.map +1 -0
- package/dist/place-parser-RlXCXZ8F.d.ts +37 -0
- package/dist/structures/index.d.ts +25 -27
- package/dist/structures/index.js +3 -1
- package/dist/structures/index.js.map +1 -0
- package/dist/types/index.d.ts +69 -8
- package/dist/types/index.js +31 -6
- package/dist/types/index.js.map +1 -0
- package/dist/utils/index.d.ts +91 -18
- package/dist/utils/index.js +6953 -17
- package/dist/utils/index.js.map +1 -0
- package/package.json +4 -3
- package/dist/classes/common.d.ts +0 -91
- package/dist/classes/common.d.ts.map +0 -1
- package/dist/classes/common.js +0 -488
- package/dist/classes/date.d.ts +0 -27
- package/dist/classes/date.d.ts.map +0 -1
- package/dist/classes/date.js +0 -178
- package/dist/classes/fam.d.ts +0 -19
- package/dist/classes/fam.d.ts.map +0 -1
- package/dist/classes/fam.js +0 -38
- package/dist/classes/fams.d.ts +0 -16
- package/dist/classes/fams.d.ts.map +0 -1
- package/dist/classes/fams.js +0 -41
- package/dist/classes/gedcom.d.ts +0 -139
- package/dist/classes/gedcom.d.ts.map +0 -1
- package/dist/classes/gedcom.js +0 -910
- package/dist/classes/index.d.ts.map +0 -1
- package/dist/classes/indi.d.ts +0 -323
- package/dist/classes/indi.d.ts.map +0 -1
- package/dist/classes/indi.js +0 -2131
- package/dist/classes/indis.d.ts +0 -55
- package/dist/classes/indis.d.ts.map +0 -1
- package/dist/classes/indis.js +0 -457
- package/dist/classes/list.d.ts +0 -55
- package/dist/classes/list.d.ts.map +0 -1
- package/dist/classes/list.js +0 -440
- package/dist/classes/name.d.ts +0 -20
- package/dist/classes/name.d.ts.map +0 -1
- package/dist/classes/name.js +0 -48
- package/dist/classes/note.d.ts +0 -12
- package/dist/classes/note.d.ts.map +0 -1
- package/dist/classes/note.js +0 -46
- package/dist/classes/obje.d.ts +0 -12
- package/dist/classes/obje.d.ts.map +0 -1
- package/dist/classes/obje.js +0 -81
- package/dist/classes/objes.d.ts +0 -8
- package/dist/classes/objes.d.ts.map +0 -1
- package/dist/classes/objes.js +0 -13
- package/dist/classes/repo.d.ts +0 -11
- package/dist/classes/repo.d.ts.map +0 -1
- package/dist/classes/repo.js +0 -6
- package/dist/classes/repos.d.ts +0 -8
- package/dist/classes/repos.d.ts.map +0 -1
- package/dist/classes/repos.js +0 -13
- package/dist/classes/sour.d.ts +0 -11
- package/dist/classes/sour.d.ts.map +0 -1
- package/dist/classes/sour.js +0 -6
- package/dist/classes/sours.d.ts +0 -8
- package/dist/classes/sours.d.ts.map +0 -1
- package/dist/classes/sours.js +0 -13
- package/dist/classes/subm.d.ts +0 -10
- package/dist/classes/subm.d.ts.map +0 -1
- package/dist/classes/subm.js +0 -6
- package/dist/classes/subms.d.ts +0 -8
- package/dist/classes/subms.d.ts.map +0 -1
- package/dist/classes/subms.js +0 -13
- package/dist/cli/commands/convert.d.ts +0 -3
- package/dist/cli/commands/convert.d.ts.map +0 -1
- package/dist/cli/commands/convert.js +0 -83
- package/dist/cli/commands/extract.d.ts +0 -3
- package/dist/cli/commands/extract.d.ts.map +0 -1
- package/dist/cli/commands/extract.js +0 -85
- package/dist/cli/commands/find.d.ts +0 -3
- package/dist/cli/commands/find.d.ts.map +0 -1
- package/dist/cli/commands/find.js +0 -97
- package/dist/cli/commands/info.d.ts +0 -3
- package/dist/cli/commands/info.d.ts.map +0 -1
- package/dist/cli/commands/info.js +0 -80
- package/dist/cli/commands/merge.d.ts +0 -3
- package/dist/cli/commands/merge.d.ts.map +0 -1
- package/dist/cli/commands/merge.js +0 -61
- package/dist/cli/commands/relatives.d.ts +0 -3
- package/dist/cli/commands/relatives.d.ts.map +0 -1
- package/dist/cli/commands/relatives.js +0 -107
- package/dist/cli/commands/show.d.ts +0 -3
- package/dist/cli/commands/show.d.ts.map +0 -1
- package/dist/cli/commands/show.js +0 -176
- package/dist/cli/commands/stats.d.ts +0 -3
- package/dist/cli/commands/stats.d.ts.map +0 -1
- package/dist/cli/commands/stats.js +0 -59
- package/dist/cli/commands/validate.d.ts +0 -3
- package/dist/cli/commands/validate.d.ts.map +0 -1
- package/dist/cli/commands/validate.js +0 -148
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/utils/formatters.d.ts +0 -69
- package/dist/cli/utils/formatters.d.ts.map +0 -1
- package/dist/cli/utils/formatters.js +0 -125
- package/dist/cli/utils/helpers.d.ts +0 -21
- package/dist/cli/utils/helpers.d.ts.map +0 -1
- package/dist/cli/utils/helpers.js +0 -58
- package/dist/constants/constants.d.ts +0 -14
- package/dist/constants/constants.d.ts.map +0 -1
- package/dist/constants/constants.js +0 -13
- package/dist/constants/filters.d.ts +0 -18
- package/dist/constants/filters.d.ts.map +0 -1
- package/dist/constants/filters.js +0 -44
- package/dist/constants/index.d.ts.map +0 -1
- package/dist/constants/orders.d.ts +0 -17
- package/dist/constants/orders.d.ts.map +0 -1
- package/dist/constants/orders.js +0 -240
- package/dist/factories/cache-factory.d.ts +0 -30
- package/dist/factories/cache-factory.d.ts.map +0 -1
- package/dist/factories/cache-factory.js +0 -43
- package/dist/factories/date-locale-factory.d.ts +0 -30
- package/dist/factories/date-locale-factory.d.ts.map +0 -1
- package/dist/factories/date-locale-factory.js +0 -34
- package/dist/factories/i18n-factory.d.ts +0 -40
- package/dist/factories/i18n-factory.d.ts.map +0 -1
- package/dist/factories/i18n-factory.js +0 -44
- package/dist/factories/index.d.ts.map +0 -1
- package/dist/factories/kinship-factory.d.ts +0 -38
- package/dist/factories/kinship-factory.d.ts.map +0 -1
- package/dist/factories/kinship-factory.js +0 -35
- package/dist/factories/place-parser-provider.d.ts +0 -32
- package/dist/factories/place-parser-provider.d.ts.map +0 -1
- package/dist/factories/place-parser-provider.js +0 -35
- package/dist/factories/place-translator-provider.d.ts +0 -32
- package/dist/factories/place-translator-provider.d.ts.map +0 -1
- package/dist/factories/place-translator-provider.js +0 -35
- package/dist/index.d.ts.map +0 -1
- package/dist/interfaces/common.d.ts +0 -43
- package/dist/interfaces/common.d.ts.map +0 -1
- package/dist/interfaces/common.js +0 -1
- package/dist/interfaces/fam.d.ts +0 -11
- package/dist/interfaces/fam.d.ts.map +0 -1
- package/dist/interfaces/fam.js +0 -1
- package/dist/interfaces/fams.d.ts +0 -9
- package/dist/interfaces/fams.d.ts.map +0 -1
- package/dist/interfaces/fams.js +0 -1
- package/dist/interfaces/gedcom.d.ts +0 -30
- package/dist/interfaces/gedcom.d.ts.map +0 -1
- package/dist/interfaces/gedcom.js +0 -1
- package/dist/interfaces/index.d.ts.map +0 -1
- package/dist/interfaces/indi.d.ts +0 -113
- package/dist/interfaces/indi.d.ts.map +0 -1
- package/dist/interfaces/indi.js +0 -1
- package/dist/interfaces/indis.d.ts +0 -31
- package/dist/interfaces/indis.d.ts.map +0 -1
- package/dist/interfaces/indis.js +0 -1
- package/dist/interfaces/list.d.ts +0 -52
- package/dist/interfaces/list.d.ts.map +0 -1
- package/dist/interfaces/list.js +0 -1
- package/dist/interfaces/obje.d.ts +0 -7
- package/dist/interfaces/obje.d.ts.map +0 -1
- package/dist/interfaces/obje.js +0 -1
- package/dist/interfaces/repo.d.ts +0 -7
- package/dist/interfaces/repo.d.ts.map +0 -1
- package/dist/interfaces/repo.js +0 -1
- package/dist/interfaces/sour.d.ts +0 -7
- package/dist/interfaces/sour.d.ts.map +0 -1
- package/dist/interfaces/sour.js +0 -1
- package/dist/interfaces/subm.d.ts +0 -6
- package/dist/interfaces/subm.d.ts.map +0 -1
- package/dist/interfaces/subm.js +0 -1
- package/dist/kinship-translator/index.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.basic.d.ts +0 -30
- package/dist/kinship-translator/kinship-translator.basic.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.basic.js +0 -74
- package/dist/kinship-translator/kinship-translator.d.ts +0 -26
- package/dist/kinship-translator/kinship-translator.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.de.d.ts +0 -18
- package/dist/kinship-translator/kinship-translator.de.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.de.js +0 -180
- package/dist/kinship-translator/kinship-translator.en.d.ts +0 -18
- package/dist/kinship-translator/kinship-translator.en.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.en.js +0 -182
- package/dist/kinship-translator/kinship-translator.es.d.ts +0 -18
- package/dist/kinship-translator/kinship-translator.es.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.es.js +0 -181
- package/dist/kinship-translator/kinship-translator.fr.d.ts +0 -18
- package/dist/kinship-translator/kinship-translator.fr.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.fr.js +0 -181
- package/dist/kinship-translator/kinship-translator.hu.d.ts +0 -19
- package/dist/kinship-translator/kinship-translator.hu.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.hu.js +0 -226
- package/dist/kinship-translator/kinship-translator.interface.d.ts +0 -19
- package/dist/kinship-translator/kinship-translator.interface.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.interface.js +0 -1
- package/dist/kinship-translator/kinship-translator.js +0 -103
- package/dist/kinship-translator/patterns.de.d.ts +0 -2
- package/dist/kinship-translator/patterns.de.d.ts.map +0 -1
- package/dist/kinship-translator/patterns.de.js +0 -14
- package/dist/kinship-translator/patterns.en.d.ts +0 -2
- package/dist/kinship-translator/patterns.en.d.ts.map +0 -1
- package/dist/kinship-translator/patterns.en.js +0 -14
- package/dist/kinship-translator/patterns.es.d.ts +0 -2
- package/dist/kinship-translator/patterns.es.d.ts.map +0 -1
- package/dist/kinship-translator/patterns.es.js +0 -14
- package/dist/kinship-translator/patterns.fr.d.ts +0 -2
- package/dist/kinship-translator/patterns.fr.d.ts.map +0 -1
- package/dist/kinship-translator/patterns.fr.js +0 -14
- package/dist/kinship-translator/patterns.hu.d.ts +0 -6
- package/dist/kinship-translator/patterns.hu.d.ts.map +0 -1
- package/dist/kinship-translator/patterns.hu.js +0 -97
- package/dist/kinship-translator/translators.d.ts +0 -6
- package/dist/kinship-translator/translators.d.ts.map +0 -1
- package/dist/kinship-translator/translators.js +0 -5
- package/dist/kinship-translator/types.d.ts +0 -9
- package/dist/kinship-translator/types.d.ts.map +0 -1
- package/dist/kinship-translator/types.js +0 -1
- package/dist/structures/address.d.ts +0 -14
- package/dist/structures/address.d.ts.map +0 -1
- package/dist/structures/address.js +0 -1
- package/dist/structures/association.d.ts +0 -13
- package/dist/structures/association.d.ts.map +0 -1
- package/dist/structures/association.js +0 -1
- package/dist/structures/change-date.d.ts +0 -8
- package/dist/structures/change-date.d.ts.map +0 -1
- package/dist/structures/change-date.js +0 -1
- package/dist/structures/creation-date.d.ts +0 -7
- package/dist/structures/creation-date.d.ts.map +0 -1
- package/dist/structures/creation-date.js +0 -1
- package/dist/structures/date.d.ts +0 -9
- package/dist/structures/date.d.ts.map +0 -1
- package/dist/structures/date.js +0 -1
- package/dist/structures/event-detail-structure.d.ts +0 -25
- package/dist/structures/event-detail-structure.d.ts.map +0 -1
- package/dist/structures/event-detail-structure.js +0 -1
- package/dist/structures/family.d.ts +0 -34
- package/dist/structures/family.d.ts.map +0 -1
- package/dist/structures/family.js +0 -1
- package/dist/structures/gedcom.d.ts +0 -59
- package/dist/structures/gedcom.d.ts.map +0 -1
- package/dist/structures/gedcom.js +0 -1
- package/dist/structures/index.d.ts.map +0 -1
- package/dist/structures/individual-event-detail-structure.d.ts +0 -9
- package/dist/structures/individual-event-detail-structure.d.ts.map +0 -1
- package/dist/structures/individual-event-detail-structure.js +0 -1
- package/dist/structures/individual-event-structure.d.ts +0 -83
- package/dist/structures/individual-event-structure.d.ts.map +0 -1
- package/dist/structures/individual-event-structure.js +0 -1
- package/dist/structures/individual.d.ts +0 -40
- package/dist/structures/individual.d.ts.map +0 -1
- package/dist/structures/individual.js +0 -1
- package/dist/structures/lds-ordinance-detail.d.ts +0 -17
- package/dist/structures/lds-ordinance-detail.d.ts.map +0 -1
- package/dist/structures/lds-ordinance-detail.js +0 -1
- package/dist/structures/lds-spouse-sealing.d.ts +0 -7
- package/dist/structures/lds-spouse-sealing.d.ts.map +0 -1
- package/dist/structures/lds-spouse-sealing.js +0 -1
- package/dist/structures/marriage-date.d.ts +0 -11
- package/dist/structures/marriage-date.d.ts.map +0 -1
- package/dist/structures/marriage-date.js +0 -1
- package/dist/structures/multimedia-link.d.ts +0 -16
- package/dist/structures/multimedia-link.d.ts.map +0 -1
- package/dist/structures/multimedia-link.js +0 -1
- package/dist/structures/non-event.d.ts +0 -12
- package/dist/structures/non-event.d.ts.map +0 -1
- package/dist/structures/non-event.js +0 -1
- package/dist/structures/note.d.ts +0 -16
- package/dist/structures/note.d.ts.map +0 -1
- package/dist/structures/note.js +0 -1
- package/dist/structures/personal-name-pieces.d.ts +0 -11
- package/dist/structures/personal-name-pieces.d.ts.map +0 -1
- package/dist/structures/personal-name-pieces.js +0 -1
- package/dist/structures/personal-name.d.ts +0 -16
- package/dist/structures/personal-name.d.ts.map +0 -1
- package/dist/structures/personal-name.js +0 -1
- package/dist/structures/place.d.ts +0 -20
- package/dist/structures/place.d.ts.map +0 -1
- package/dist/structures/place.js +0 -1
- package/dist/structures/repository.d.ts +0 -6
- package/dist/structures/repository.d.ts.map +0 -1
- package/dist/structures/repository.js +0 -1
- package/dist/structures/source-citation.d.ts +0 -27
- package/dist/structures/source-citation.d.ts.map +0 -1
- package/dist/structures/source-citation.js +0 -1
- package/dist/structures/source-repository-citation.d.ts +0 -13
- package/dist/structures/source-repository-citation.d.ts.map +0 -1
- package/dist/structures/source-repository-citation.js +0 -1
- package/dist/structures/source.d.ts +0 -28
- package/dist/structures/source.d.ts.map +0 -1
- package/dist/structures/source.js +0 -1
- package/dist/types/ancestry-media.d.ts +0 -65
- package/dist/types/ancestry-media.d.ts.map +0 -1
- package/dist/types/ancestry-media.js +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/settings.d.ts +0 -12
- package/dist/types/settings.d.ts.map +0 -1
- package/dist/types/settings.js +0 -1
- package/dist/types/types.d.ts +0 -225
- package/dist/types/types.d.ts.map +0 -1
- package/dist/types/types.js +0 -26
- package/dist/utils/cache.d.ts +0 -22
- package/dist/utils/cache.d.ts.map +0 -1
- package/dist/utils/cache.js +0 -57
- package/dist/utils/common-creator.d.ts +0 -13
- package/dist/utils/common-creator.d.ts.map +0 -1
- package/dist/utils/common-creator.js +0 -72
- package/dist/utils/date-formatter.d.ts +0 -35
- package/dist/utils/date-formatter.d.ts.map +0 -1
- package/dist/utils/date-formatter.js +0 -207
- package/dist/utils/get-all-prop.d.ts +0 -4
- package/dist/utils/get-all-prop.d.ts.map +0 -1
- package/dist/utils/get-all-prop.js +0 -5
- package/dist/utils/get-family-with.d.ts +0 -5
- package/dist/utils/get-family-with.d.ts.map +0 -1
- package/dist/utils/get-family-with.js +0 -11
- package/dist/utils/get-places.d.ts +0 -21
- package/dist/utils/get-places.d.ts.map +0 -1
- package/dist/utils/get-places.js +0 -77
- package/dist/utils/get-product-details.d.ts +0 -4
- package/dist/utils/get-product-details.d.ts.map +0 -1
- package/dist/utils/get-product-details.js +0 -6
- package/dist/utils/get-raw-size.d.ts +0 -2
- package/dist/utils/get-raw-size.d.ts.map +0 -1
- package/dist/utils/get-raw-size.js +0 -3
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/logger.d.ts +0 -3
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -11
- package/dist/utils/name-formatter.d.ts +0 -10
- package/dist/utils/name-formatter.d.ts.map +0 -1
- package/dist/utils/name-formatter.js +0 -45
- package/dist/utils/nested-group.d.ts +0 -4
- package/dist/utils/nested-group.d.ts.map +0 -1
- package/dist/utils/nested-group.js +0 -34
- package/dist/utils/ordinalize.d.ts +0 -3
- package/dist/utils/ordinalize.d.ts.map +0 -1
- package/dist/utils/ordinalize.js +0 -104
- package/dist/utils/parser.d.ts +0 -17
- package/dist/utils/parser.d.ts.map +0 -1
- package/dist/utils/parser.js +0 -321
- package/dist/utils/place-parser.d.ts +0 -16
- package/dist/utils/place-parser.d.ts.map +0 -1
- package/dist/utils/place-parser.js +0 -46
- package/dist/utils/place-translator.d.ts +0 -6
- package/dist/utils/place-translator.d.ts.map +0 -1
- package/dist/utils/place-translator.js +0 -8
- package/dist/utils/place-types.d.ts +0 -27
- package/dist/utils/place-types.d.ts.map +0 -1
- package/dist/utils/place-types.js +0 -14
- package/dist/utils/range.d.ts +0 -19
- package/dist/utils/range.d.ts.map +0 -1
- package/dist/utils/range.js +0 -265
package/dist/utils/parser.js
DELETED
|
@@ -1,321 +0,0 @@
|
|
|
1
|
-
import { Common, getListTag, isId } from "../classes/common.js";
|
|
2
|
-
import { Families } from "../classes/fams.js";
|
|
3
|
-
import { createGedCom } from "../classes/gedcom.js";
|
|
4
|
-
import { Indi } from "../classes/indi.js";
|
|
5
|
-
import { Individuals } from "../classes/indis.js";
|
|
6
|
-
import { List } from "../classes/list.js";
|
|
7
|
-
import { Objects } from "../classes/objes.js";
|
|
8
|
-
import { Repositories } from "../classes/repos.js";
|
|
9
|
-
import { Sources } from "../classes/sours.js";
|
|
10
|
-
import { Submitters } from "../classes/subms.js";
|
|
11
|
-
import { LINE_REG, MAX_FILE_SIZE_TO_SYNC, REF_LINE_REG, } from "../constants/constants.js";
|
|
12
|
-
import { create } from "./common-creator.js";
|
|
13
|
-
import { isDevelopment } from "./get-product-details.js";
|
|
14
|
-
import { getRawSize } from "./get-raw-size.js";
|
|
15
|
-
const isDev = isDevelopment();
|
|
16
|
-
// let lastTime: number | undefined;
|
|
17
|
-
// interface Props {
|
|
18
|
-
// index:
|
|
19
|
-
// | number
|
|
20
|
-
// | `${number}.${number}`
|
|
21
|
-
// | `${number}.${number}.${number}`
|
|
22
|
-
// | `${number}.${number}.${number}.${number}`;
|
|
23
|
-
// label?: string;
|
|
24
|
-
// lastTime?: number;
|
|
25
|
-
// }
|
|
26
|
-
// const printTime = (
|
|
27
|
-
// {
|
|
28
|
-
// index,
|
|
29
|
-
// label = "RunTimeTest",
|
|
30
|
-
// lastTime: lastTimeProp,
|
|
31
|
-
// // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
32
|
-
// }: Props,
|
|
33
|
-
// ...args: any[]
|
|
34
|
-
// ) => {
|
|
35
|
-
// // if (!isDev) {
|
|
36
|
-
// // return;
|
|
37
|
-
// // }
|
|
38
|
-
// if (lastTimeProp !== undefined) {
|
|
39
|
-
// lastTime = lastTimeProp;
|
|
40
|
-
// }
|
|
41
|
-
// const date = Date.now();
|
|
42
|
-
// const diff = lastTime === undefined ? "Not provided" : date - lastTime;
|
|
43
|
-
// const func = (
|
|
44
|
-
// diff === "Not provided" || diff <= 150
|
|
45
|
-
// ? console.log
|
|
46
|
-
// : diff > 500
|
|
47
|
-
// ? console.error
|
|
48
|
-
// : console.warn
|
|
49
|
-
// ).bind(console);
|
|
50
|
-
// func(
|
|
51
|
-
// label,
|
|
52
|
-
// {
|
|
53
|
-
// index,
|
|
54
|
-
// date,
|
|
55
|
-
// diff,
|
|
56
|
-
// },
|
|
57
|
-
// ...args
|
|
58
|
-
// );
|
|
59
|
-
// lastTime = date;
|
|
60
|
-
// };
|
|
61
|
-
const GedcomTree = {
|
|
62
|
-
parse: function (content, options) {
|
|
63
|
-
return this.parseHierarchy(content, options);
|
|
64
|
-
},
|
|
65
|
-
parseHierarchy: function (content, options) {
|
|
66
|
-
// printTime{ index: 0, label: "[Debug]", lastTime: Date.now() });
|
|
67
|
-
const { settings } = options ?? {};
|
|
68
|
-
const { linkedPersons = "skip", linkingKey } = settings ?? {};
|
|
69
|
-
const gedcom = createGedCom();
|
|
70
|
-
gedcom.removeValue();
|
|
71
|
-
const reg = LINE_REG;
|
|
72
|
-
let key;
|
|
73
|
-
let type;
|
|
74
|
-
let idCheck;
|
|
75
|
-
let value;
|
|
76
|
-
let indent = 0;
|
|
77
|
-
let prevIndent = 0;
|
|
78
|
-
let curNode = gedcom;
|
|
79
|
-
let prevNode;
|
|
80
|
-
let mainNode;
|
|
81
|
-
const curPar = [];
|
|
82
|
-
// printTime{ index: 1, label: "[Debug]" });
|
|
83
|
-
let prevLineIndent = 0;
|
|
84
|
-
let prevRefLines;
|
|
85
|
-
let prevLines;
|
|
86
|
-
const refMatch = content.match(REF_LINE_REG);
|
|
87
|
-
// printTime{ index: 2, label: "[Debug]" });
|
|
88
|
-
const refs = refMatch && Array.isArray(refMatch)
|
|
89
|
-
? refMatch.reduce((acc, curr) => {
|
|
90
|
-
const [_refIndent, refId, refType] = curr.split(" ");
|
|
91
|
-
if (refId && refType) {
|
|
92
|
-
acc[refId] = refType.toUpperCase();
|
|
93
|
-
}
|
|
94
|
-
return acc;
|
|
95
|
-
}, {})
|
|
96
|
-
: {};
|
|
97
|
-
const links = new Individuals();
|
|
98
|
-
const tags = [];
|
|
99
|
-
// printTime{ index: 3, label: "[Debug]" });
|
|
100
|
-
let lines = `${content.replace(/\n0 TRLR(\r?\n)*$/, "")}\n0 TRLR\n`
|
|
101
|
-
.split(/\r?\n/)
|
|
102
|
-
.reduce((acc, line) => {
|
|
103
|
-
const lineMatch = line.match(LINE_REG);
|
|
104
|
-
if (lineMatch) {
|
|
105
|
-
const lineIndent = Number(lineMatch?.groups?.indent ?? 0);
|
|
106
|
-
const lineValue = lineMatch?.groups?.value ?? "";
|
|
107
|
-
if (lineIndent > 0 &&
|
|
108
|
-
lineIndent > prevLineIndent &&
|
|
109
|
-
lineValue &&
|
|
110
|
-
isId(lineValue)) {
|
|
111
|
-
const refLines = lineValue
|
|
112
|
-
.split(/,\s*/)
|
|
113
|
-
.map((id) => line.replace(lineValue, id));
|
|
114
|
-
if (refLines.length > 1) {
|
|
115
|
-
prevLineIndent = lineIndent;
|
|
116
|
-
prevRefLines = refLines;
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
acc.push(line);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
if (prevRefLines) {
|
|
124
|
-
if (lineIndent > prevLineIndent) {
|
|
125
|
-
if (!prevLines) {
|
|
126
|
-
prevLines = [];
|
|
127
|
-
}
|
|
128
|
-
prevLines.push(line);
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
prevRefLines.forEach((prevRefLine) => {
|
|
132
|
-
acc.push(prevRefLine, ...(prevLines ?? []));
|
|
133
|
-
});
|
|
134
|
-
prevLineIndent = 0;
|
|
135
|
-
prevRefLines = undefined;
|
|
136
|
-
prevLines = undefined;
|
|
137
|
-
acc.push(line);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
acc.push(line);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
if (acc[acc.length - 1] !== undefined) {
|
|
147
|
-
acc[acc.length - 1] = `${acc[acc.length - 1]}${line}`;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
return acc;
|
|
151
|
-
}, []);
|
|
152
|
-
let linesJoined = lines.join("\n");
|
|
153
|
-
// printTime{ index: 4, label: "[Debug]" }, { lines: lines.join("\n") });
|
|
154
|
-
if (!linesJoined.includes("1 _IS_PURGED true") &&
|
|
155
|
-
getRawSize(linesJoined) > MAX_FILE_SIZE_TO_SYNC) {
|
|
156
|
-
linesJoined = linesJoined
|
|
157
|
-
.replace(/1\s(NOTE|OBJE|SOUR)([^\n]*\n)([23456789]\s.+\n)*/gm, "")
|
|
158
|
-
.replace(/0\s(@[^@]+@)(\sSOUR[^\n]*\n)([123456789]\s.+\n)*/, "")
|
|
159
|
-
.replace(/0 HEAD(.*)\n/, "0 HEAD$1\n1 _IS_PURGED true\n");
|
|
160
|
-
lines = linesJoined.split("\n");
|
|
161
|
-
// printTime{ index: 6, label: "[Debug]" }, { lines: lines.join("\n") });
|
|
162
|
-
}
|
|
163
|
-
lines.forEach((line, index) => {
|
|
164
|
-
if (line.length === 0) {
|
|
165
|
-
return; // skip empty
|
|
166
|
-
}
|
|
167
|
-
const match = reg.exec(line);
|
|
168
|
-
if (match?.[1] === undefined) {
|
|
169
|
-
throw new Error(`Can't parse line #${index}: ${line}`);
|
|
170
|
-
}
|
|
171
|
-
try {
|
|
172
|
-
indent = Number(match[1]);
|
|
173
|
-
if (indent > prevIndent + 1) {
|
|
174
|
-
indent = prevIndent + 1;
|
|
175
|
-
}
|
|
176
|
-
if (match?.[2] !== undefined) {
|
|
177
|
-
key = match?.[3] + match?.[2];
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
key = match?.[3];
|
|
181
|
-
}
|
|
182
|
-
value = match?.[4];
|
|
183
|
-
[type, idCheck] = (key?.split("@") ?? []);
|
|
184
|
-
type = type?.toUpperCase();
|
|
185
|
-
const id = idCheck ? `@${idCheck}@` : undefined;
|
|
186
|
-
if (indent > prevIndent) {
|
|
187
|
-
curPar.push(curNode);
|
|
188
|
-
curNode = prevNode;
|
|
189
|
-
}
|
|
190
|
-
else if (indent < prevIndent) {
|
|
191
|
-
for (let i = 0; i < prevIndent - indent; ++i) {
|
|
192
|
-
curNode = curPar.pop();
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
const newCommon = create(gedcom, type, id, {
|
|
196
|
-
mainNode,
|
|
197
|
-
curNode,
|
|
198
|
-
prevNode,
|
|
199
|
-
});
|
|
200
|
-
prevNode = newCommon.prevNode;
|
|
201
|
-
mainNode = newCommon.mainNode;
|
|
202
|
-
if (prevNode instanceof Common) {
|
|
203
|
-
if (mainNode instanceof Indi && type === "_MTTAG") {
|
|
204
|
-
tags.push(prevNode);
|
|
205
|
-
}
|
|
206
|
-
if (value) {
|
|
207
|
-
prevNode.value = value;
|
|
208
|
-
if (isId(value) && refs[value]) {
|
|
209
|
-
prevNode.refType = refs[value];
|
|
210
|
-
mainNode?.addRef(prevNode);
|
|
211
|
-
if (linkingKey &&
|
|
212
|
-
linkingKey === type &&
|
|
213
|
-
curNode instanceof Indi &&
|
|
214
|
-
curNode?.id) {
|
|
215
|
-
links.item(curNode.id, curNode);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
else {
|
|
220
|
-
prevNode.removeValue();
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
if (type && type !== "value") {
|
|
224
|
-
const curCommon = curNode;
|
|
225
|
-
if (id) {
|
|
226
|
-
this.addToList(id, type, curCommon, prevNode);
|
|
227
|
-
}
|
|
228
|
-
else {
|
|
229
|
-
curCommon.assign(type, prevNode);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
prevIndent = indent;
|
|
233
|
-
}
|
|
234
|
-
catch (err) {
|
|
235
|
-
throw new Error(`Can't parse line #${index}: ${line}`, {
|
|
236
|
-
cause: err,
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
if (tags.length) {
|
|
241
|
-
gedcom.tagMembers = tags.reduce((acc, tag) => {
|
|
242
|
-
const tagName = tag?.get("NAME")?.toValue();
|
|
243
|
-
if (!tagName ||
|
|
244
|
-
!tag?.ref ||
|
|
245
|
-
!tag?.main ||
|
|
246
|
-
!(tag.main instanceof Indi)) {
|
|
247
|
-
return acc;
|
|
248
|
-
}
|
|
249
|
-
if (!acc[tagName]) {
|
|
250
|
-
acc[tagName] = {
|
|
251
|
-
tag: tag.ref,
|
|
252
|
-
indis: new Individuals(),
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
|
-
acc[tagName].indis.append(tag.main);
|
|
256
|
-
return acc;
|
|
257
|
-
}, {});
|
|
258
|
-
}
|
|
259
|
-
try {
|
|
260
|
-
if ("@@INDI" in gedcom) {
|
|
261
|
-
gedcom["@@INDI"] = gedcom["@@INDI"]?.filter((item) => {
|
|
262
|
-
return !item.isIgnoredMember();
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
catch (err) {
|
|
267
|
-
throw new Error(`Malformed GEDCOM`, {
|
|
268
|
-
cause: err,
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
if (linkingKey) {
|
|
272
|
-
links.forEach((linkingIndi, _linkingId) => {
|
|
273
|
-
const linking = linkingIndi;
|
|
274
|
-
const linked = linking?.get(linkingKey)
|
|
275
|
-
?.ref;
|
|
276
|
-
if (!linking) {
|
|
277
|
-
return;
|
|
278
|
-
}
|
|
279
|
-
if (linkedPersons === "merge") {
|
|
280
|
-
gedcom.mergeIndis(linked, linking);
|
|
281
|
-
}
|
|
282
|
-
else if (linkedPersons === "clone") {
|
|
283
|
-
gedcom.cloneIndis(linked, linking, ["FAMS"]);
|
|
284
|
-
}
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
return { gedcom, raw: linesJoined };
|
|
288
|
-
},
|
|
289
|
-
addToList: function (id, type, common, prev) {
|
|
290
|
-
const listTag = getListTag(type);
|
|
291
|
-
let curValue = common.get(listTag);
|
|
292
|
-
if (type === "INDI" || type === "_INDI") {
|
|
293
|
-
curValue = curValue || new Individuals();
|
|
294
|
-
}
|
|
295
|
-
else if (type === "FAM") {
|
|
296
|
-
curValue = curValue || new Families();
|
|
297
|
-
}
|
|
298
|
-
else if (type === "OBJE") {
|
|
299
|
-
curValue = curValue || new Objects();
|
|
300
|
-
}
|
|
301
|
-
else if (type === "REPO") {
|
|
302
|
-
curValue = curValue || new Repositories();
|
|
303
|
-
}
|
|
304
|
-
else if (type === "SUBM") {
|
|
305
|
-
curValue = curValue || new Submitters();
|
|
306
|
-
}
|
|
307
|
-
else if (type === "SOUR") {
|
|
308
|
-
curValue = curValue || new Sources();
|
|
309
|
-
}
|
|
310
|
-
else {
|
|
311
|
-
curValue = curValue || new List();
|
|
312
|
-
}
|
|
313
|
-
common.set(listTag, curValue);
|
|
314
|
-
curValue.item(id, prev);
|
|
315
|
-
},
|
|
316
|
-
};
|
|
317
|
-
if (isDev) {
|
|
318
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
319
|
-
globalThis.GedcomTree = GedcomTree;
|
|
320
|
-
}
|
|
321
|
-
export default GedcomTree;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Minimal place parsing stub for gedcom-parser
|
|
3
|
-
* This is a simplified version - consumer apps can implement full place parsing if needed
|
|
4
|
-
*/
|
|
5
|
-
export interface PlaceParts {
|
|
6
|
-
leftParts?: string[];
|
|
7
|
-
town?: string;
|
|
8
|
-
county?: string;
|
|
9
|
-
country?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Simple place parser - splits by commas
|
|
13
|
-
* Consumer apps can implement more sophisticated parsing if needed
|
|
14
|
-
*/
|
|
15
|
-
export declare const getPlaceParts: (place?: string | (string | undefined)[]) => PlaceParts[];
|
|
16
|
-
//# sourceMappingURL=place-parser.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"place-parser.d.ts","sourceRoot":"","sources":["../../src/utils/place-parser.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,UAAU;IAC1B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,GACzB,QAAO,MAAM,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,EAAO,KACzC,UAAU,EAwCZ,CAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Minimal place parsing stub for gedcom-parser
|
|
3
|
-
* This is a simplified version - consumer apps can implement full place parsing if needed
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Simple place parser - splits by commas
|
|
7
|
-
* Consumer apps can implement more sophisticated parsing if needed
|
|
8
|
-
*/
|
|
9
|
-
export const getPlaceParts = (place = []) => {
|
|
10
|
-
const partsString = Array.isArray(place)
|
|
11
|
-
? place.filter(Boolean).join(", ")
|
|
12
|
-
: place;
|
|
13
|
-
if (!partsString) {
|
|
14
|
-
return [{}];
|
|
15
|
-
}
|
|
16
|
-
// Simple split by comma
|
|
17
|
-
const parts = partsString
|
|
18
|
-
.split(/,\s*/)
|
|
19
|
-
.map((p) => p.trim())
|
|
20
|
-
.filter(Boolean);
|
|
21
|
-
if (parts.length === 0) {
|
|
22
|
-
return [{}];
|
|
23
|
-
}
|
|
24
|
-
// Simple heuristic: last part is country, second-to-last is county, rest is town/city
|
|
25
|
-
const result = {};
|
|
26
|
-
if (parts.length === 1) {
|
|
27
|
-
result.town = parts[0];
|
|
28
|
-
}
|
|
29
|
-
else if (parts.length === 2) {
|
|
30
|
-
result.town = parts[0];
|
|
31
|
-
result.country = parts[1];
|
|
32
|
-
}
|
|
33
|
-
else if (parts.length === 3) {
|
|
34
|
-
result.town = parts[0];
|
|
35
|
-
result.county = parts[1];
|
|
36
|
-
result.country = parts[2];
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
// More than 3 parts - put extras in leftParts
|
|
40
|
-
result.leftParts = parts.slice(0, parts.length - 3);
|
|
41
|
-
result.town = parts[parts.length - 3];
|
|
42
|
-
result.county = parts[parts.length - 2];
|
|
43
|
-
result.country = parts[parts.length - 1];
|
|
44
|
-
}
|
|
45
|
-
return [result];
|
|
46
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Place translator stub for gedcom-parser
|
|
3
|
-
* This is a minimal no-op implementation - consumer apps can implement translation if needed
|
|
4
|
-
*/
|
|
5
|
-
export declare const placeTranslator: (place: string | string[]) => string;
|
|
6
|
-
//# sourceMappingURL=place-translator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"place-translator.d.ts","sourceRoot":"","sources":["../../src/utils/place-translator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,GAAG,MAAM,EAAE,KAAG,MAG1D,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Place translator stub for gedcom-parser
|
|
3
|
-
* This is a minimal no-op implementation - consumer apps can implement translation if needed
|
|
4
|
-
*/
|
|
5
|
-
export const placeTranslator = (place) => {
|
|
6
|
-
// No-op stub - return place as-is (join if array)
|
|
7
|
-
return Array.isArray(place) ? place.join(", ") : place;
|
|
8
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Place-related types for GEDCOM parser
|
|
3
|
-
* These are simple types used by the Indi class for place filtering
|
|
4
|
-
*/
|
|
5
|
-
import type { Common } from "../classes/common";
|
|
6
|
-
export interface Place {
|
|
7
|
-
type: PlaceType;
|
|
8
|
-
raw: string;
|
|
9
|
-
parts: string[];
|
|
10
|
-
level?: number;
|
|
11
|
-
source?: string;
|
|
12
|
-
key?: string;
|
|
13
|
-
index?: number;
|
|
14
|
-
obj?: Common;
|
|
15
|
-
ref?: Common;
|
|
16
|
-
place?: string;
|
|
17
|
-
}
|
|
18
|
-
export declare enum PlaceType {
|
|
19
|
-
All = "ALL",
|
|
20
|
-
Birth = "BIRT",
|
|
21
|
-
Marriage = "MARR",
|
|
22
|
-
Death = "DEAT",
|
|
23
|
-
Events = "EVEN",
|
|
24
|
-
Military = "_MILT",
|
|
25
|
-
MilitaryId = "_MILTID"
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=place-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"place-types.d.ts","sourceRoot":"","sources":["../../src/utils/place-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,WAAW,KAAK;IACrB,IAAI,EAAE,SAAS,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,SAAS;IACpB,GAAG,QAAQ;IACX,KAAK,SAAS;IACd,QAAQ,SAAS;IACjB,KAAK,SAAS;IACd,MAAM,SAAS;IACf,QAAQ,UAAU;IAClB,UAAU,YAAY;CACtB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Place-related types for GEDCOM parser
|
|
3
|
-
* These are simple types used by the Indi class for place filtering
|
|
4
|
-
*/
|
|
5
|
-
export var PlaceType;
|
|
6
|
-
(function (PlaceType) {
|
|
7
|
-
PlaceType["All"] = "ALL";
|
|
8
|
-
PlaceType["Birth"] = "BIRT";
|
|
9
|
-
PlaceType["Marriage"] = "MARR";
|
|
10
|
-
PlaceType["Death"] = "DEAT";
|
|
11
|
-
PlaceType["Events"] = "EVEN";
|
|
12
|
-
PlaceType["Military"] = "_MILT";
|
|
13
|
-
PlaceType["MilitaryId"] = "_MILTID";
|
|
14
|
-
})(PlaceType || (PlaceType = {}));
|
package/dist/utils/range.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export type PrimitiveRange = "" | "-" | `-${number}` | `${number}-` | `${number}-${number}`;
|
|
2
|
-
export type Range = PrimitiveRange | [(string | number)?, (string | number)?] | [string | number, (string | number)?];
|
|
3
|
-
export interface SplitResult {
|
|
4
|
-
range: PrimitiveRange;
|
|
5
|
-
to?: boolean;
|
|
6
|
-
by?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const fromTuple: (s?: number, e?: number) => PrimitiveRange;
|
|
9
|
-
export declare const inRange: (year: string | number | undefined, range: Range, trueIfNoYear?: boolean) => boolean;
|
|
10
|
-
export declare const isIntersectedRange: (range1: Range, range2: Range) => boolean;
|
|
11
|
-
export declare const splitRange: (to: Range, by: Range) => SplitResult[];
|
|
12
|
-
export declare function parseRangeBounds(rangeKey: PrimitiveRange): [number | undefined, number | undefined];
|
|
13
|
-
export declare function isRangeContained(containedRange: PrimitiveRange, containerRange: PrimitiveRange): boolean;
|
|
14
|
-
export declare function extractSplitPoints(ranges: PrimitiveRange[]): number[];
|
|
15
|
-
export declare function generateSplitRanges(splitPoints: number[]): PrimitiveRange[];
|
|
16
|
-
export declare function splitOverlappingRanges<T>(rangesToValues: Array<[PrimitiveRange, T]>): Array<[PrimitiveRange, T[]]>;
|
|
17
|
-
export declare function findMatchingRangeForSplitRange<T>(splitRange: PrimitiveRange, rangesToValues: Array<[PrimitiveRange, T]>): T[];
|
|
18
|
-
export declare function extractSeparationYears(childName: string, ranges: Record<string, unknown[]>, parentName: string, ensureArray: (x: unknown) => unknown[]): number[];
|
|
19
|
-
//# sourceMappingURL=range.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../src/utils/range.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GACvB,EAAE,GACF,GAAG,GACH,IAAI,MAAM,EAAE,GACZ,GAAG,MAAM,GAAG,GACZ,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;AACzB,MAAM,MAAM,KAAK,GACd,cAAc,GACd,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,GACxC,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACzC,MAAM,WAAW,WAAW;IAC3B,KAAK,EAAE,cAAc,CAAC;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC;CACb;AAeD,eAAO,MAAM,SAAS,GAAI,IAAI,MAAM,EAAE,IAAI,MAAM,KAAG,cAKlD,CAAC;AAsBF,eAAO,MAAM,OAAO,GACnB,MAAM,MAAM,GAAG,MAAM,GAAG,SAAS,EACjC,OAAO,KAAK,EACZ,sBAAoB,YAyBpB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,QAAQ,KAAK,EAAE,QAAQ,KAAK,YAqD9D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,IAAI,KAAK,EAAE,IAAI,KAAK,KAAG,WAAW,EA+C5D,CAAC;AAIF,wBAAgB,gBAAgB,CAC/B,QAAQ,EAAE,cAAc,GACtB,CAAC,MAAM,GAAG,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC,CAK1C;AAED,wBAAgB,gBAAgB,CAC/B,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,GAC5B,OAAO,CAaT;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,EAAE,CAUrE;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,cAAc,EAAE,CAU3E;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EACvC,cAAc,EAAE,KAAK,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,GACxC,KAAK,CAAC,CAAC,cAAc,EAAE,CAAC,EAAE,CAAC,CAAC,CAuD9B;AAED,wBAAgB,8BAA8B,CAAC,CAAC,EAC/C,UAAU,EAAE,cAAc,EAC1B,cAAc,EAAE,KAAK,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,GACxC,CAAC,EAAE,CAUL;AAED,wBAAgB,sBAAsB,CACrC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EACjC,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,OAAO,EAAE,GACpC,MAAM,EAAE,CA2CV"}
|