chrono-node 2.5.0 → 2.5.1
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/.idea/workspace.xml +45 -62
- package/README.md +3 -1
- package/dist/calculation/mergingCalculation.js +4 -2
- package/dist/calculation/mergingCalculation.js.map +1 -1
- package/dist/esm/calculation/mergingCalculation.d.ts +3 -0
- package/dist/esm/calculation/mergingCalculation.js +69 -0
- package/dist/esm/calculation/mergingCalculation.js.map +1 -0
- package/dist/esm/calculation/years.d.ts +2 -0
- package/dist/esm/calculation/years.js +29 -0
- package/dist/esm/calculation/years.js.map +1 -0
- package/dist/esm/chrono.d.ts +41 -0
- package/dist/esm/chrono.js +99 -0
- package/dist/esm/chrono.js.map +1 -0
- package/dist/esm/common/abstractRefiners.d.ts +11 -0
- package/dist/esm/common/abstractRefiners.js +37 -0
- package/dist/esm/common/abstractRefiners.js.map +1 -0
- package/dist/esm/common/calculation/weekdays.d.ts +7 -0
- package/dist/esm/common/calculation/weekdays.js +60 -0
- package/dist/esm/common/calculation/weekdays.js.map +1 -0
- package/dist/esm/common/casualReferences.d.ts +15 -0
- package/dist/esm/common/casualReferences.js +111 -0
- package/dist/esm/common/casualReferences.js.map +1 -0
- package/dist/esm/common/parsers/AbstractParserWithWordBoundary.d.ts +25 -0
- package/dist/esm/common/parsers/AbstractParserWithWordBoundary.js +28 -0
- package/dist/esm/common/parsers/AbstractParserWithWordBoundary.js.map +1 -0
- package/dist/esm/common/parsers/AbstractTimeExpressionParser.d.ts +26 -0
- package/dist/esm/common/parsers/AbstractTimeExpressionParser.js +322 -0
- package/dist/esm/common/parsers/AbstractTimeExpressionParser.js.map +1 -0
- package/dist/esm/common/parsers/ISOFormatParser.d.ts +17 -0
- package/dist/esm/common/parsers/ISOFormatParser.js +62 -0
- package/dist/esm/common/parsers/ISOFormatParser.js.map +1 -0
- package/dist/esm/common/parsers/SlashDateFormatParser.d.ts +9 -0
- package/dist/esm/common/parsers/SlashDateFormatParser.js +64 -0
- package/dist/esm/common/parsers/SlashDateFormatParser.js.map +1 -0
- package/dist/esm/common/refiners/AbstractMergeDateRangeRefiner.d.ts +7 -0
- package/dist/esm/common/refiners/AbstractMergeDateRangeRefiner.js +51 -0
- package/dist/esm/common/refiners/AbstractMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/common/refiners/AbstractMergeDateTimeRefiner.d.ts +7 -0
- package/dist/esm/common/refiners/AbstractMergeDateTimeRefiner.js +18 -0
- package/dist/esm/common/refiners/AbstractMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/common/refiners/ExtractTimezoneAbbrRefiner.d.ts +9 -0
- package/dist/esm/common/refiners/ExtractTimezoneAbbrRefiner.js +240 -0
- package/dist/esm/common/refiners/ExtractTimezoneAbbrRefiner.js.map +1 -0
- package/dist/esm/common/refiners/ExtractTimezoneOffsetRefiner.d.ts +5 -0
- package/dist/esm/common/refiners/ExtractTimezoneOffsetRefiner.js +37 -0
- package/dist/esm/common/refiners/ExtractTimezoneOffsetRefiner.js.map +1 -0
- package/dist/esm/common/refiners/ForwardDateRefiner.d.ts +5 -0
- package/dist/esm/common/refiners/ForwardDateRefiner.js +67 -0
- package/dist/esm/common/refiners/ForwardDateRefiner.js.map +1 -0
- package/dist/esm/common/refiners/MergeWeekdayComponentRefiner.d.ts +6 -0
- package/dist/esm/common/refiners/MergeWeekdayComponentRefiner.js +20 -0
- package/dist/esm/common/refiners/MergeWeekdayComponentRefiner.js.map +1 -0
- package/dist/esm/common/refiners/OverlapRemovalRefiner.d.ts +5 -0
- package/dist/esm/common/refiners/OverlapRemovalRefiner.js +26 -0
- package/dist/esm/common/refiners/OverlapRemovalRefiner.js.map +1 -0
- package/dist/esm/common/refiners/UnlikelyFormatFilter.d.ts +8 -0
- package/dist/esm/common/refiners/UnlikelyFormatFilter.js +47 -0
- package/dist/esm/common/refiners/UnlikelyFormatFilter.js.map +1 -0
- package/dist/esm/configurations.d.ts +2 -0
- package/dist/esm/configurations.js +19 -0
- package/dist/esm/configurations.js.map +1 -0
- package/dist/esm/debugging.d.ts +11 -0
- package/dist/esm/debugging.js +14 -0
- package/dist/esm/debugging.js.map +1 -0
- package/dist/esm/index.d.ts +53 -0
- package/dist/esm/index.js +36 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/locales/de/constants.d.ts +20 -0
- package/dist/esm/locales/de/constants.js +171 -0
- package/dist/esm/locales/de/constants.js.map +1 -0
- package/dist/esm/locales/de/index.d.ts +8 -0
- package/dist/esm/locales/de/index.js +44 -0
- package/dist/esm/locales/de/index.js.map +1 -0
- package/dist/esm/locales/de/parsers/DECasualDateParser.d.ts +7 -0
- package/dist/esm/locales/de/parsers/DECasualDateParser.js +61 -0
- package/dist/esm/locales/de/parsers/DECasualDateParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DECasualTimeParser.d.ts +8 -0
- package/dist/esm/locales/de/parsers/DECasualTimeParser.js +69 -0
- package/dist/esm/locales/de/parsers/DECasualTimeParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DEMonthNameLittleEndianParser.d.ts +7 -0
- package/dist/esm/locales/de/parsers/DEMonthNameLittleEndianParser.js +47 -0
- package/dist/esm/locales/de/parsers/DEMonthNameLittleEndianParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DESpecificTimeExpressionParser.d.ts +7 -0
- package/dist/esm/locales/de/parsers/DESpecificTimeExpressionParser.js +112 -0
- package/dist/esm/locales/de/parsers/DESpecificTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DETimeExpressionParser.d.ts +8 -0
- package/dist/esm/locales/de/parsers/DETimeExpressionParser.js +16 -0
- package/dist/esm/locales/de/parsers/DETimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DETimeUnitRelativeFormatParser.d.ts +8 -0
- package/dist/esm/locales/de/parsers/DETimeUnitRelativeFormatParser.js +32 -0
- package/dist/esm/locales/de/parsers/DETimeUnitRelativeFormatParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DETimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/esm/locales/de/parsers/DETimeUnitWithinFormatParser.js +13 -0
- package/dist/esm/locales/de/parsers/DETimeUnitWithinFormatParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DEWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/de/parsers/DEWeekdayParser.js +40 -0
- package/dist/esm/locales/de/parsers/DEWeekdayParser.js.map +1 -0
- package/dist/esm/locales/de/refiners/DEMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/de/refiners/DEMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/de/refiners/DEMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/de/refiners/DEMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/de/refiners/DEMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/de/refiners/DEMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/en/constants.d.ts +29 -0
- package/dist/esm/locales/en/constants.js +229 -0
- package/dist/esm/locales/en/constants.js.map +1 -0
- package/dist/esm/locales/en/index.d.ts +9 -0
- package/dist/esm/locales/en/index.js +56 -0
- package/dist/esm/locales/en/index.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENCasualDateParser.js +40 -0
- package/dist/esm/locales/en/parsers/ENCasualDateParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENCasualTimeParser.d.ts +6 -0
- package/dist/esm/locales/en/parsers/ENCasualTimeParser.js +26 -0
- package/dist/esm/locales/en/parsers/ENCasualTimeParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENCasualYearMonthDayParser.d.ts +10 -0
- package/dist/esm/locales/en/parsers/ENCasualYearMonthDayParser.js +32 -0
- package/dist/esm/locales/en/parsers/ENCasualYearMonthDayParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENMonthNameLittleEndianParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENMonthNameLittleEndianParser.js +54 -0
- package/dist/esm/locales/en/parsers/ENMonthNameLittleEndianParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENMonthNameMiddleEndianParser.d.ts +6 -0
- package/dist/esm/locales/en/parsers/ENMonthNameMiddleEndianParser.js +56 -0
- package/dist/esm/locales/en/parsers/ENMonthNameMiddleEndianParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENMonthNameParser.d.ts +6 -0
- package/dist/esm/locales/en/parsers/ENMonthNameParser.js +40 -0
- package/dist/esm/locales/en/parsers/ENMonthNameParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENRelativeDateFormatParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENRelativeDateFormatParser.js +51 -0
- package/dist/esm/locales/en/parsers/ENRelativeDateFormatParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENSlashMonthFormatParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENSlashMonthFormatParser.js +15 -0
- package/dist/esm/locales/en/parsers/ENSlashMonthFormatParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENTimeExpressionParser.d.ts +10 -0
- package/dist/esm/locales/en/parsers/ENTimeExpressionParser.js +47 -0
- package/dist/esm/locales/en/parsers/ENTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitAgoFormatParser.d.ts +9 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitAgoFormatParser.js +21 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitAgoFormatParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.js +23 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitLaterFormatParser.d.ts +9 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitLaterFormatParser.js +20 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitLaterFormatParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitWithinFormatParser.js +16 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitWithinFormatParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENWeekdayParser.js +40 -0
- package/dist/esm/locales/en/parsers/ENWeekdayParser.js.map +1 -0
- package/dist/esm/locales/en/refiners/ENMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/en/refiners/ENMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/en/refiners/ENMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/en/refiners/ENMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/en/refiners/ENMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/en/refiners/ENMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/en/refiners/ENMergeRelativeDateRefiner.d.ts +7 -0
- package/dist/esm/locales/en/refiners/ENMergeRelativeDateRefiner.js +33 -0
- package/dist/esm/locales/en/refiners/ENMergeRelativeDateRefiner.js.map +1 -0
- package/dist/esm/locales/es/constants.d.ts +21 -0
- package/dist/esm/locales/es/constants.js +159 -0
- package/dist/esm/locales/es/constants.js.map +1 -0
- package/dist/esm/locales/es/index.d.ts +8 -0
- package/dist/esm/locales/es/index.js +38 -0
- package/dist/esm/locales/es/index.js.map +1 -0
- package/dist/esm/locales/es/parsers/ESCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/es/parsers/ESCasualDateParser.js +23 -0
- package/dist/esm/locales/es/parsers/ESCasualDateParser.js.map +1 -0
- package/dist/esm/locales/es/parsers/ESCasualTimeParser.d.ts +6 -0
- package/dist/esm/locales/es/parsers/ESCasualTimeParser.js +40 -0
- package/dist/esm/locales/es/parsers/ESCasualTimeParser.js.map +1 -0
- package/dist/esm/locales/es/parsers/ESMonthNameLittleEndianParser.d.ts +7 -0
- package/dist/esm/locales/es/parsers/ESMonthNameLittleEndianParser.js +46 -0
- package/dist/esm/locales/es/parsers/ESMonthNameLittleEndianParser.js.map +1 -0
- package/dist/esm/locales/es/parsers/ESTimeExpressionParser.d.ts +5 -0
- package/dist/esm/locales/es/parsers/ESTimeExpressionParser.js +10 -0
- package/dist/esm/locales/es/parsers/ESTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/es/parsers/ESTimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/esm/locales/es/parsers/ESTimeUnitWithinFormatParser.js +13 -0
- package/dist/esm/locales/es/parsers/ESTimeUnitWithinFormatParser.js.map +1 -0
- package/dist/esm/locales/es/parsers/ESWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/es/parsers/ESWeekdayParser.js +41 -0
- package/dist/esm/locales/es/parsers/ESWeekdayParser.js.map +1 -0
- package/dist/esm/locales/es/refiners/ESMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/es/refiners/ESMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/es/refiners/ESMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/es/refiners/ESMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/es/refiners/ESMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/es/refiners/ESMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/fr/constants.d.ts +23 -0
- package/dist/esm/locales/fr/constants.js +161 -0
- package/dist/esm/locales/fr/constants.js.map +1 -0
- package/dist/esm/locales/fr/index.d.ts +8 -0
- package/dist/esm/locales/fr/index.js +44 -0
- package/dist/esm/locales/fr/index.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/fr/parsers/FRCasualDateParser.js +38 -0
- package/dist/esm/locales/fr/parsers/FRCasualDateParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRCasualTimeParser.d.ts +7 -0
- package/dist/esm/locales/fr/parsers/FRCasualTimeParser.js +40 -0
- package/dist/esm/locales/fr/parsers/FRCasualTimeParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRMonthNameLittleEndianParser.d.ts +7 -0
- package/dist/esm/locales/fr/parsers/FRMonthNameLittleEndianParser.js +48 -0
- package/dist/esm/locales/fr/parsers/FRMonthNameLittleEndianParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRSpecificTimeExpressionParser.d.ts +7 -0
- package/dist/esm/locales/fr/parsers/FRSpecificTimeExpressionParser.js +97 -0
- package/dist/esm/locales/fr/parsers/FRSpecificTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRTimeExpressionParser.d.ts +8 -0
- package/dist/esm/locales/fr/parsers/FRTimeExpressionParser.js +16 -0
- package/dist/esm/locales/fr/parsers/FRTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitAgoFormatParser.d.ts +8 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitAgoFormatParser.js +18 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitAgoFormatParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitRelativeFormatParser.d.ts +8 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitRelativeFormatParser.js +33 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitRelativeFormatParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitWithinFormatParser.js +13 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitWithinFormatParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/fr/parsers/FRWeekdayParser.js +36 -0
- package/dist/esm/locales/fr/parsers/FRWeekdayParser.js.map +1 -0
- package/dist/esm/locales/fr/refiners/FRMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/fr/refiners/FRMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/fr/refiners/FRMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/fr/refiners/FRMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/fr/refiners/FRMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/fr/refiners/FRMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/ja/constants.d.ts +1 -0
- package/dist/esm/locales/ja/constants.js +12 -0
- package/dist/esm/locales/ja/constants.js.map +1 -0
- package/dist/esm/locales/ja/index.d.ts +8 -0
- package/dist/esm/locales/ja/index.js +24 -0
- package/dist/esm/locales/ja/index.js.map +1 -0
- package/dist/esm/locales/ja/parsers/JPCasualDateParser.d.ts +5 -0
- package/dist/esm/locales/ja/parsers/JPCasualDateParser.js +36 -0
- package/dist/esm/locales/ja/parsers/JPCasualDateParser.js.map +1 -0
- package/dist/esm/locales/ja/parsers/JPStandardParser.d.ts +5 -0
- package/dist/esm/locales/ja/parsers/JPStandardParser.js +47 -0
- package/dist/esm/locales/ja/parsers/JPStandardParser.js.map +1 -0
- package/dist/esm/locales/ja/refiners/JPMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/ja/refiners/JPMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/ja/refiners/JPMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/nl/constants.d.ts +25 -0
- package/dist/esm/locales/nl/constants.js +204 -0
- package/dist/esm/locales/nl/constants.js.map +1 -0
- package/dist/esm/locales/nl/index.d.ts +8 -0
- package/dist/esm/locales/nl/index.js +55 -0
- package/dist/esm/locales/nl/index.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLCasualDateParser.js +24 -0
- package/dist/esm/locales/nl/parsers/NLCasualDateParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLCasualDateTimeParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLCasualDateTimeParser.js +48 -0
- package/dist/esm/locales/nl/parsers/NLCasualDateTimeParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLCasualTimeParser.d.ts +6 -0
- package/dist/esm/locales/nl/parsers/NLCasualTimeParser.js +50 -0
- package/dist/esm/locales/nl/parsers/NLCasualTimeParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLCasualYearMonthDayParser.d.ts +10 -0
- package/dist/esm/locales/nl/parsers/NLCasualYearMonthDayParser.js +32 -0
- package/dist/esm/locales/nl/parsers/NLCasualYearMonthDayParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLMonthNameMiddleEndianParser.d.ts +6 -0
- package/dist/esm/locales/nl/parsers/NLMonthNameMiddleEndianParser.js +60 -0
- package/dist/esm/locales/nl/parsers/NLMonthNameMiddleEndianParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLMonthNameParser.d.ts +6 -0
- package/dist/esm/locales/nl/parsers/NLMonthNameParser.js +35 -0
- package/dist/esm/locales/nl/parsers/NLMonthNameParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLRelativeDateFormatParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLRelativeDateFormatParser.js +52 -0
- package/dist/esm/locales/nl/parsers/NLRelativeDateFormatParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLSlashMonthFormatParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLSlashMonthFormatParser.js +15 -0
- package/dist/esm/locales/nl/parsers/NLSlashMonthFormatParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLTimeExpressionParser.d.ts +9 -0
- package/dist/esm/locales/nl/parsers/NLTimeExpressionParser.js +19 -0
- package/dist/esm/locales/nl/parsers/NLTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitAgoFormatParser.d.ts +9 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitAgoFormatParser.js +21 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitAgoFormatParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitCasualRelativeFormatParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitCasualRelativeFormatParser.js +23 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitCasualRelativeFormatParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitLaterFormatParser.d.ts +9 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitLaterFormatParser.js +20 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitLaterFormatParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitWithinFormatParser.js +13 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitWithinFormatParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLWeekdayParser.js +38 -0
- package/dist/esm/locales/nl/parsers/NLWeekdayParser.js.map +1 -0
- package/dist/esm/locales/nl/refiners/NLMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/nl/refiners/NLMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/nl/refiners/NLMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/nl/refiners/NLMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/nl/refiners/NLMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/nl/refiners/NLMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/pt/constants.d.ts +8 -0
- package/dist/esm/locales/pt/constants.js +81 -0
- package/dist/esm/locales/pt/constants.js.map +1 -0
- package/dist/esm/locales/pt/index.d.ts +8 -0
- package/dist/esm/locales/pt/index.js +36 -0
- package/dist/esm/locales/pt/index.js.map +1 -0
- package/dist/esm/locales/pt/parsers/PTCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/pt/parsers/PTCasualDateParser.js +24 -0
- package/dist/esm/locales/pt/parsers/PTCasualDateParser.js.map +1 -0
- package/dist/esm/locales/pt/parsers/PTCasualTimeParser.d.ts +6 -0
- package/dist/esm/locales/pt/parsers/PTCasualTimeParser.js +40 -0
- package/dist/esm/locales/pt/parsers/PTCasualTimeParser.js.map +1 -0
- package/dist/esm/locales/pt/parsers/PTMonthNameLittleEndianParser.d.ts +7 -0
- package/dist/esm/locales/pt/parsers/PTMonthNameLittleEndianParser.js +46 -0
- package/dist/esm/locales/pt/parsers/PTMonthNameLittleEndianParser.js.map +1 -0
- package/dist/esm/locales/pt/parsers/PTTimeExpressionParser.d.ts +5 -0
- package/dist/esm/locales/pt/parsers/PTTimeExpressionParser.js +10 -0
- package/dist/esm/locales/pt/parsers/PTTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/pt/parsers/PTWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/pt/parsers/PTWeekdayParser.js +41 -0
- package/dist/esm/locales/pt/parsers/PTWeekdayParser.js.map +1 -0
- package/dist/esm/locales/pt/refiners/PTMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/pt/refiners/PTMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/pt/refiners/PTMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/pt/refiners/PTMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/pt/refiners/PTMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/pt/refiners/PTMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/ru/constants.d.ts +33 -0
- package/dist/esm/locales/ru/constants.js +314 -0
- package/dist/esm/locales/ru/constants.js.map +1 -0
- package/dist/esm/locales/ru/index.d.ts +8 -0
- package/dist/esm/locales/ru/index.js +46 -0
- package/dist/esm/locales/ru/index.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUCasualDateParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RUCasualDateParser.js +30 -0
- package/dist/esm/locales/ru/parsers/RUCasualDateParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUCasualTimeParser.d.ts +7 -0
- package/dist/esm/locales/ru/parsers/RUCasualTimeParser.js +49 -0
- package/dist/esm/locales/ru/parsers/RUCasualTimeParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUMonthNameLittleEndianParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RUMonthNameLittleEndianParser.js +56 -0
- package/dist/esm/locales/ru/parsers/RUMonthNameLittleEndianParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUMonthNameParser.d.ts +7 -0
- package/dist/esm/locales/ru/parsers/RUMonthNameParser.js +42 -0
- package/dist/esm/locales/ru/parsers/RUMonthNameParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RURelativeDateFormatParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RURelativeDateFormatParser.js +54 -0
- package/dist/esm/locales/ru/parsers/RURelativeDateFormatParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUTimeExpressionParser.d.ts +12 -0
- package/dist/esm/locales/ru/parsers/RUTimeExpressionParser.js +54 -0
- package/dist/esm/locales/ru/parsers/RUTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitAgoFormatParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitAgoFormatParser.js +19 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitAgoFormatParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.js +26 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitWithinFormatParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitWithinFormatParser.js +19 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitWithinFormatParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUWeekdayParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RUWeekdayParser.js +46 -0
- package/dist/esm/locales/ru/parsers/RUWeekdayParser.js.map +1 -0
- package/dist/esm/locales/ru/refiners/RUMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/ru/refiners/RUMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/ru/refiners/RUMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/ru/refiners/RUMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/ru/refiners/RUMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/ru/refiners/RUMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/zh/hans/constants.d.ts +27 -0
- package/dist/esm/locales/zh/hans/constants.js +47 -0
- package/dist/esm/locales/zh/hans/constants.js.map +1 -0
- package/dist/esm/locales/zh/hans/index.d.ts +9 -0
- package/dist/esm/locales/zh/hans/index.js +40 -0
- package/dist/esm/locales/zh/hans/index.js.map +1 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansCasualDateParser.js +133 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansCasualDateParser.js.map +1 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansDateParser.d.ts +6 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansDateParser.js +67 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansDateParser.js.map +1 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansDeadlineFormatParser.d.ts +6 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansDeadlineFormatParser.js +73 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansDeadlineFormatParser.js.map +1 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansRelationWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansRelationWeekdayParser.js +65 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansRelationWeekdayParser.js.map +1 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansTimeExpressionParser.d.ts +6 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansTimeExpressionParser.js +433 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansWeekdayParser.js +41 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansWeekdayParser.js.map +1 -0
- package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/zh/hant/constants.d.ts +28 -0
- package/dist/esm/locales/zh/hant/constants.js +48 -0
- package/dist/esm/locales/zh/hant/constants.js.map +1 -0
- package/dist/esm/locales/zh/hant/index.d.ts +9 -0
- package/dist/esm/locales/zh/hant/index.js +40 -0
- package/dist/esm/locales/zh/hant/index.js.map +1 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantCasualDateParser.js +133 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantCasualDateParser.js.map +1 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantDateParser.d.ts +6 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantDateParser.js +59 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantDateParser.js.map +1 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantDeadlineFormatParser.d.ts +6 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantDeadlineFormatParser.js +73 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantDeadlineFormatParser.js.map +1 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantRelationWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantRelationWeekdayParser.js +65 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantRelationWeekdayParser.js.map +1 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantTimeExpressionParser.d.ts +6 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantTimeExpressionParser.js +433 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantWeekdayParser.js +41 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantWeekdayParser.js.map +1 -0
- package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/zh/index.d.ts +2 -0
- package/dist/esm/locales/zh/index.js +3 -0
- package/dist/esm/locales/zh/index.js.map +1 -0
- package/dist/esm/results.d.ts +48 -0
- package/dist/esm/results.js +201 -0
- package/dist/esm/results.js.map +1 -0
- package/dist/esm/timezone.d.ts +194 -0
- package/dist/esm/timezone.js +203 -0
- package/dist/esm/timezone.js.map +1 -0
- package/dist/esm/utils/dayjs.d.ts +8 -0
- package/dist/esm/utils/dayjs.js +40 -0
- package/dist/esm/utils/dayjs.js.map +1 -0
- package/dist/esm/utils/pattern.d.ts +7 -0
- package/dist/esm/utils/pattern.js +25 -0
- package/dist/esm/utils/pattern.js.map +1 -0
- package/dist/esm/utils/timeunits.d.ts +7 -0
- package/dist/esm/utils/timeunits.js +26 -0
- package/dist/esm/utils/timeunits.js.map +1 -0
- package/dist/locales/de/constants.js +8 -8
- package/dist/locales/de/constants.js.map +1 -1
- package/dist/locales/de/index.js +2 -0
- package/dist/locales/de/index.js.map +1 -1
- package/dist/locales/de/parsers/DETimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/locales/de/parsers/DETimeUnitWithinFormatParser.js +16 -0
- package/dist/locales/de/parsers/DETimeUnitWithinFormatParser.js.map +1 -0
- package/dist/locales/en/constants.js +3 -2
- package/dist/locales/en/constants.js.map +1 -1
- package/dist/locales/en/parsers/ENCasualDateParser.js +7 -1
- package/dist/locales/en/parsers/ENCasualDateParser.js.map +1 -1
- package/dist/locales/en/parsers/ENTimeExpressionParser.js +1 -1
- package/dist/locales/en/parsers/ENTimeExpressionParser.js.map +1 -1
- package/dist/locales/en/refiners/ENMergeDateRangeRefiner.js +1 -1
- package/dist/locales/en/refiners/ENMergeDateRangeRefiner.js.map +1 -1
- package/dist/locales/es/constants.d.ts +13 -0
- package/dist/locales/es/constants.js +82 -1
- package/dist/locales/es/constants.js.map +1 -1
- package/dist/locales/es/index.js +2 -0
- package/dist/locales/es/index.js.map +1 -1
- package/dist/locales/es/parsers/ESTimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/locales/es/parsers/ESTimeUnitWithinFormatParser.js +16 -0
- package/dist/locales/es/parsers/ESTimeUnitWithinFormatParser.js.map +1 -0
- package/dist/locales/nl/constants.js +2 -0
- package/dist/locales/nl/constants.js.map +1 -1
- package/dist/locales/ru/parsers/RUCasualDateParser.js +5 -1
- package/dist/locales/ru/parsers/RUCasualDateParser.js.map +1 -1
- package/package.json +1 -1
- package/src/calculation/mergingCalculation.ts +6 -3
- package/src/locales/de/constants.ts +8 -8
- package/src/locales/de/index.ts +2 -0
- package/src/locales/de/parsers/DETimeUnitWithinFormatParser.ts +15 -0
- package/src/locales/en/constants.ts +3 -2
- package/src/locales/en/parsers/ENCasualDateParser.ts +10 -1
- package/src/locales/en/parsers/ENTimeExpressionParser.ts +1 -1
- package/src/locales/en/refiners/ENMergeDateRangeRefiner.ts +1 -1
- package/src/locales/es/constants.ts +89 -0
- package/src/locales/es/index.ts +3 -1
- package/src/locales/es/parsers/ESTimeUnitWithinFormatParser.ts +15 -0
- package/src/locales/nl/constants.ts +2 -0
- package/src/locales/nl/refiners/NLMergeDateRangeRefiner.ts +2 -2
- package/src/locales/nl/refiners/NLMergeDateTimeRefiner.ts +1 -1
- package/src/locales/ru/parsers/RUCasualDateParser.ts +7 -1
- package/test/de/de_time_units_within.test.ts +119 -0
- package/test/en/en.test.ts +10 -0
- package/test/en/en_time_exp.test.ts +60 -0
- package/test/en/en_time_units_ago.test.ts +36 -0
- package/test/en/en_time_units_casual_relative.test.ts +16 -1
- package/test/en/en_time_units_later.test.ts +46 -0
- package/test/es/es_time_units_within.test.ts +119 -0
- package/test/nl/nl_month.test.ts +25 -0
- package/test/ru/ru_casual.test.ts +12 -0
- package/test/system.test.ts +15 -1
- package/coverage/clover.xml +0 -4771
- package/coverage/coverage-final.json +0 -147
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -686
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/results.ts.html +0 -701
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/src/calculation/index.html +0 -131
- package/coverage/lcov-report/src/calculation/mergingCalculation.ts.html +0 -319
- package/coverage/lcov-report/src/calculation/weeks.ts.html +0 -199
- package/coverage/lcov-report/src/calculation/yearCalculation.ts.html +0 -194
- package/coverage/lcov-report/src/calculation/years.ts.html +0 -199
- package/coverage/lcov-report/src/chrono.js.html +0 -368
- package/coverage/lcov-report/src/chrono.ts.html +0 -649
- package/coverage/lcov-report/src/common/abstractRefiners.ts.html +0 -286
- package/coverage/lcov-report/src/common/calculation/index.html +0 -116
- package/coverage/lcov-report/src/common/calculation/weekdays.ts.html +0 -352
- package/coverage/lcov-report/src/common/casualReferences.ts.html +0 -499
- package/coverage/lcov-report/src/common/index.html +0 -131
- package/coverage/lcov-report/src/common/parsers/AbstractParserWithWordBoundary.ts.html +0 -214
- package/coverage/lcov-report/src/common/parsers/AbstractTimeExpressionParser.ts.html +0 -1384
- package/coverage/lcov-report/src/common/parsers/ISOFormatParser.ts.html +0 -340
- package/coverage/lcov-report/src/common/parsers/SlashDateFormatParser.ts.html +0 -385
- package/coverage/lcov-report/src/common/parsers/index.html +0 -161
- package/coverage/lcov-report/src/common/refiners/AbstractMergeDateRangeRefiner.ts.html +0 -268
- package/coverage/lcov-report/src/common/refiners/AbstractMergeDateTimeRefiner.ts.html +0 -172
- package/coverage/lcov-report/src/common/refiners/ExtractTimezoneAbbrRefiner.ts.html +0 -883
- package/coverage/lcov-report/src/common/refiners/ExtractTimezoneOffsetRefiner.ts.html +0 -226
- package/coverage/lcov-report/src/common/refiners/ForwardDateRefiner.ts.html +0 -334
- package/coverage/lcov-report/src/common/refiners/MergeWeekdayComponentRefiner.ts.html +0 -187
- package/coverage/lcov-report/src/common/refiners/OverlapRemovalRefiner.ts.html +0 -199
- package/coverage/lcov-report/src/common/refiners/UnlikelyFormatFilter.ts.html +0 -265
- package/coverage/lcov-report/src/common/refiners/index.html +0 -221
- package/coverage/lcov-report/src/configurations.ts.html +0 -154
- package/coverage/lcov-report/src/debugging.ts.html +0 -154
- package/coverage/lcov-report/src/index.html +0 -191
- package/coverage/lcov-report/src/index.ts.html +0 -520
- package/coverage/lcov-report/src/locales/de/constants.ts.html +0 -664
- package/coverage/lcov-report/src/locales/de/index.html +0 -131
- package/coverage/lcov-report/src/locales/de/index.ts.html +0 -238
- package/coverage/lcov-report/src/locales/de/parsers/DECasualDateParser.ts.html +0 -325
- package/coverage/lcov-report/src/locales/de/parsers/DECasualTimeParser.ts.html +0 -325
- package/coverage/lcov-report/src/locales/de/parsers/DEMonthNameLittleEndianParser.ts.html +0 -268
- package/coverage/lcov-report/src/locales/de/parsers/DESpecificTimeExpressionParser.ts.html +0 -535
- package/coverage/lcov-report/src/locales/de/parsers/DETimeExpressionParser.ts.html +0 -151
- package/coverage/lcov-report/src/locales/de/parsers/DETimeUnitRelativeFormatParser.ts.html +0 -211
- package/coverage/lcov-report/src/locales/de/parsers/DEWeekdayParser.ts.html +0 -232
- package/coverage/lcov-report/src/locales/de/parsers/index.html +0 -206
- package/coverage/lcov-report/src/locales/de/refiners/DEMergeDateRangeRefiner.ts.html +0 -130
- package/coverage/lcov-report/src/locales/de/refiners/DEMergeDateTimeRefiner.ts.html +0 -115
- package/coverage/lcov-report/src/locales/de/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/en/constants.ts.html +0 -859
- package/coverage/lcov-report/src/locales/en/index.html +0 -131
- package/coverage/lcov-report/src/locales/en/index.ts.html +0 -382
- package/coverage/lcov-report/src/locales/en/parsers/ENCasualDateParser.ts.html +0 -244
- package/coverage/lcov-report/src/locales/en/parsers/ENCasualTimeParser.ts.html +0 -169
- package/coverage/lcov-report/src/locales/en/parsers/ENCasualYearMonthDayParser.ts.html +0 -232
- package/coverage/lcov-report/src/locales/en/parsers/ENDeadlineFormatParser.ts.html +0 -311
- package/coverage/lcov-report/src/locales/en/parsers/ENISOFormatParser.ts.html +0 -317
- package/coverage/lcov-report/src/locales/en/parsers/ENMonthNameLittleEndianParser.ts.html +0 -292
- package/coverage/lcov-report/src/locales/en/parsers/ENMonthNameMiddleEndianParser.ts.html +0 -319
- package/coverage/lcov-report/src/locales/en/parsers/ENMonthNameParser.ts.html +0 -271
- package/coverage/lcov-report/src/locales/en/parsers/ENRelativeDateFormatParser.ts.html +0 -292
- package/coverage/lcov-report/src/locales/en/parsers/ENSlashDateFormatParser.ts.html +0 -443
- package/coverage/lcov-report/src/locales/en/parsers/ENSlashDateFormatStartWithYearParser.ts.html +0 -221
- package/coverage/lcov-report/src/locales/en/parsers/ENSlashMonthFormatParser.ts.html +0 -163
- package/coverage/lcov-report/src/locales/en/parsers/ENTimeExpressionParser.ts.html +0 -250
- package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitAgoFormatParser.ts.html +0 -160
- package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.ts.html +0 -166
- package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitDeadlineFormatParser.ts.html +0 -149
- package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitLaterFormatParser.ts.html +0 -166
- package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitWithinFormatParser.ts.html +0 -163
- package/coverage/lcov-report/src/locales/en/parsers/ENWeekdayParser.ts.html +0 -229
- package/coverage/lcov-report/src/locales/en/parsers/index.html +0 -311
- package/coverage/lcov-report/src/locales/en/refiners/ENMergeDateRangeRefiner.ts.html +0 -136
- package/coverage/lcov-report/src/locales/en/refiners/ENMergeDateTimeRefiner.ts.html +0 -124
- package/coverage/lcov-report/src/locales/en/refiners/ENMergeRelativeDateRefiner.ts.html +0 -259
- package/coverage/lcov-report/src/locales/en/refiners/index.html +0 -146
- package/coverage/lcov-report/src/locales/es/constants.ts.html +0 -340
- package/coverage/lcov-report/src/locales/es/index.html +0 -131
- package/coverage/lcov-report/src/locales/es/index.ts.html +0 -256
- package/coverage/lcov-report/src/locales/es/parsers/ESCasualDateParser.ts.html +0 -178
- package/coverage/lcov-report/src/locales/es/parsers/ESCasualTimeParser.ts.html +0 -226
- package/coverage/lcov-report/src/locales/es/parsers/ESMonthNameLittleEndianParser.ts.html +0 -265
- package/coverage/lcov-report/src/locales/es/parsers/ESTimeExpressionParser.ts.html +0 -145
- package/coverage/lcov-report/src/locales/es/parsers/ESWeekdayParser.ts.html +0 -235
- package/coverage/lcov-report/src/locales/es/parsers/index.html +0 -176
- package/coverage/lcov-report/src/locales/es/refiners/ESMergeDateRangeRefiner.ts.html +0 -130
- package/coverage/lcov-report/src/locales/es/refiners/ESMergeDateTimeRefiner.ts.html +0 -115
- package/coverage/lcov-report/src/locales/es/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/fr/constants.ts.html +0 -637
- package/coverage/lcov-report/src/locales/fr/index.html +0 -131
- package/coverage/lcov-report/src/locales/fr/index.ts.html +0 -280
- package/coverage/lcov-report/src/locales/fr/parsers/FRCasualDateParser.ts.html +0 -223
- package/coverage/lcov-report/src/locales/fr/parsers/FRCasualTimeParser.ts.html +0 -232
- package/coverage/lcov-report/src/locales/fr/parsers/FRMonthNameLittleEndianParser.ts.html +0 -277
- package/coverage/lcov-report/src/locales/fr/parsers/FRSpecificTimeExpressionParser.ts.html +0 -484
- package/coverage/lcov-report/src/locales/fr/parsers/FRTimeExpressionParser.ts.html +0 -151
- package/coverage/lcov-report/src/locales/fr/parsers/FRTimeUnitAgoFormatParser.ts.html +0 -151
- package/coverage/lcov-report/src/locales/fr/parsers/FRTimeUnitRelativeFormatParser.ts.html +0 -214
- package/coverage/lcov-report/src/locales/fr/parsers/FRTimeUnitWithinFormatParser.ts.html +0 -130
- package/coverage/lcov-report/src/locales/fr/parsers/FRWeekdayParser.ts.html +0 -223
- package/coverage/lcov-report/src/locales/fr/parsers/index.html +0 -236
- package/coverage/lcov-report/src/locales/fr/refiners/FRMergeDateRangeRefiner.ts.html +0 -130
- package/coverage/lcov-report/src/locales/fr/refiners/FRMergeDateTimeRefiner.ts.html +0 -115
- package/coverage/lcov-report/src/locales/fr/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/ja/constants.ts.html +0 -157
- package/coverage/lcov-report/src/locales/ja/index.html +0 -131
- package/coverage/lcov-report/src/locales/ja/index.ts.html +0 -214
- package/coverage/lcov-report/src/locales/ja/parsers/JPCasualDateParser.ts.html +0 -217
- package/coverage/lcov-report/src/locales/ja/parsers/JPStandardParser.ts.html +0 -247
- package/coverage/lcov-report/src/locales/ja/parsers/index.html +0 -131
- package/coverage/lcov-report/src/locales/ja/refiners/JPMergeDateRangeRefiner.ts.html +0 -124
- package/coverage/lcov-report/src/locales/ja/refiners/index.html +0 -116
- package/coverage/lcov-report/src/locales/nl/constants.ts.html +0 -796
- package/coverage/lcov-report/src/locales/nl/index.html +0 -131
- package/coverage/lcov-report/src/locales/nl/index.ts.html +0 -304
- package/coverage/lcov-report/src/locales/nl/parsers/NLCasualDateParser.ts.html +0 -181
- package/coverage/lcov-report/src/locales/nl/parsers/NLCasualDateTimeParser.ts.html +0 -310
- package/coverage/lcov-report/src/locales/nl/parsers/NLCasualTimeParser.ts.html +0 -265
- package/coverage/lcov-report/src/locales/nl/parsers/NLCasualYearMonthDayParser.ts.html +0 -232
- package/coverage/lcov-report/src/locales/nl/parsers/NLMonthNameMiddleEndianParser.ts.html +0 -349
- package/coverage/lcov-report/src/locales/nl/parsers/NLMonthNameParser.ts.html +0 -235
- package/coverage/lcov-report/src/locales/nl/parsers/NLRelativeDateFormatParser.ts.html +0 -295
- package/coverage/lcov-report/src/locales/nl/parsers/NLSlashMonthFormatParser.ts.html +0 -163
- package/coverage/lcov-report/src/locales/nl/parsers/NLTimeExpressionParser.ts.html +0 -163
- package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitAgoFormatParser.ts.html +0 -163
- package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitCasualRelativeFormatParser.ts.html +0 -166
- package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitLaterFormatParser.ts.html +0 -166
- package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitWithinFormatParser.ts.html +0 -130
- package/coverage/lcov-report/src/locales/nl/parsers/NLWeekdayParser.ts.html +0 -223
- package/coverage/lcov-report/src/locales/nl/parsers/index.html +0 -311
- package/coverage/lcov-report/src/locales/nl/refiners/NLMergeDateRangeRefiner.ts.html +0 -136
- package/coverage/lcov-report/src/locales/nl/refiners/NLMergeDateTimeRefiner.ts.html +0 -124
- package/coverage/lcov-report/src/locales/nl/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/pt/constants.ts.html +0 -343
- package/coverage/lcov-report/src/locales/pt/index.html +0 -131
- package/coverage/lcov-report/src/locales/pt/index.ts.html +0 -256
- package/coverage/lcov-report/src/locales/pt/parsers/PTCasualDateParser.ts.html +0 -181
- package/coverage/lcov-report/src/locales/pt/parsers/PTCasualTimeParser.ts.html +0 -226
- package/coverage/lcov-report/src/locales/pt/parsers/PTMonthNameLittleEndianParser.ts.html +0 -265
- package/coverage/lcov-report/src/locales/pt/parsers/PTTimeExpressionParser.ts.html +0 -145
- package/coverage/lcov-report/src/locales/pt/parsers/PTWeekdayParser.ts.html +0 -235
- package/coverage/lcov-report/src/locales/pt/parsers/index.html +0 -176
- package/coverage/lcov-report/src/locales/pt/refiners/PTMergeDateRangeRefiner.ts.html +0 -130
- package/coverage/lcov-report/src/locales/pt/refiners/PTMergeDateTimeRefiner.ts.html +0 -115
- package/coverage/lcov-report/src/locales/pt/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/ru/constants.ts.html +0 -1111
- package/coverage/lcov-report/src/locales/ru/index.html +0 -131
- package/coverage/lcov-report/src/locales/ru/index.ts.html +0 -337
- package/coverage/lcov-report/src/locales/ru/parsers/RUCasualDateParser.ts.html +0 -217
- package/coverage/lcov-report/src/locales/ru/parsers/RUCasualTimeParser.ts.html +0 -253
- package/coverage/lcov-report/src/locales/ru/parsers/RUMonthNameLittleEndianParser.ts.html +0 -301
- package/coverage/lcov-report/src/locales/ru/parsers/RUMonthNameParser.ts.html +0 -268
- package/coverage/lcov-report/src/locales/ru/parsers/RURelativeDateFormatParser.ts.html +0 -310
- package/coverage/lcov-report/src/locales/ru/parsers/RUTimeExpressionParser.ts.html +0 -277
- package/coverage/lcov-report/src/locales/ru/parsers/RUTimeUnitAgoFormatParser.ts.html +0 -157
- package/coverage/lcov-report/src/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.ts.html +0 -187
- package/coverage/lcov-report/src/locales/ru/parsers/RUTimeUnitWithinFormatParser.ts.html +0 -157
- package/coverage/lcov-report/src/locales/ru/parsers/RUWeekdayParser.ts.html +0 -256
- package/coverage/lcov-report/src/locales/ru/parsers/index.html +0 -251
- package/coverage/lcov-report/src/locales/ru/refiners/RUMergeDateRangeRefiner.ts.html +0 -124
- package/coverage/lcov-report/src/locales/ru/refiners/RUMergeDateTimeRefiner.ts.html +0 -124
- package/coverage/lcov-report/src/locales/ru/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/zh/hans/constants.ts.html +0 -241
- package/coverage/lcov-report/src/locales/zh/hans/index.html +0 -131
- package/coverage/lcov-report/src/locales/zh/hans/index.ts.html +0 -271
- package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansCasualDateParser.ts.html +0 -469
- package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansDateParser.ts.html +0 -310
- package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansDeadlineFormatParser.ts.html +0 -328
- package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansRelationWeekdayParser.ts.html +0 -292
- package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansTimeExpressionParser.ts.html +0 -1357
- package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansWeekdayParser.ts.html +0 -223
- package/coverage/lcov-report/src/locales/zh/hans/parsers/index.html +0 -191
- package/coverage/lcov-report/src/locales/zh/hans/refiners/ZHHansMergeDateRangeRefiner.ts.html +0 -106
- package/coverage/lcov-report/src/locales/zh/hans/refiners/ZHHansMergeDateTimeRefiner.ts.html +0 -106
- package/coverage/lcov-report/src/locales/zh/hans/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/zh/hant/constants.ts.html +0 -244
- package/coverage/lcov-report/src/locales/zh/hant/index.html +0 -131
- package/coverage/lcov-report/src/locales/zh/hant/index.ts.html +0 -274
- package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantCasualDateParser.ts.html +0 -469
- package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantDateParser.ts.html +0 -289
- package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantDeadlineFormatParser.ts.html +0 -328
- package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantRelationWeekdayParser.ts.html +0 -292
- package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantTimeExpressionParser.ts.html +0 -1357
- package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantWeekdayParser.ts.html +0 -223
- package/coverage/lcov-report/src/locales/zh/hant/parsers/index.html +0 -191
- package/coverage/lcov-report/src/locales/zh/hant/refiners/ZHHantMergeDateRangeRefiner.ts.html +0 -106
- package/coverage/lcov-report/src/locales/zh/hant/refiners/ZHHantMergeDateTimeRefiner.ts.html +0 -106
- package/coverage/lcov-report/src/locales/zh/hant/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/zh/index.html +0 -116
- package/coverage/lcov-report/src/locales/zh/index.ts.html +0 -91
- package/coverage/lcov-report/src/options.js.html +0 -1085
- package/coverage/lcov-report/src/parsers/de/DECasualDateParser.js.html +0 -368
- package/coverage/lcov-report/src/parsers/de/DEDeadlineFormatParser.js.html +0 -374
- package/coverage/lcov-report/src/parsers/de/DEMonthNameLittleEndianParser.js.html +0 -347
- package/coverage/lcov-report/src/parsers/de/DEMonthNameParser.js.html +0 -329
- package/coverage/lcov-report/src/parsers/de/DESlashDateFormatParser.js.html +0 -398
- package/coverage/lcov-report/src/parsers/de/DETimeAgoFormatParser.js.html +0 -401
- package/coverage/lcov-report/src/parsers/de/DETimeExpressionParser.js.html +0 -836
- package/coverage/lcov-report/src/parsers/de/DEWeekdayParser.js.html +0 -338
- package/coverage/lcov-report/src/parsers/de/index.html +0 -216
- package/coverage/lcov-report/src/parsers/en/ENCasualDateParser.js.html +0 -275
- package/coverage/lcov-report/src/parsers/en/ENCasualTimeParser.js.html +0 -242
- package/coverage/lcov-report/src/parsers/en/ENDeadlineFormatParser.js.html +0 -359
- package/coverage/lcov-report/src/parsers/en/ENISOFormatParser.js.html +0 -389
- package/coverage/lcov-report/src/parsers/en/ENMonthNameLittleEndianParser.js.html +0 -416
- package/coverage/lcov-report/src/parsers/en/ENMonthNameMiddleEndianParser.js.html +0 -437
- package/coverage/lcov-report/src/parsers/en/ENMonthNameParser.js.html +0 -320
- package/coverage/lcov-report/src/parsers/en/ENRelativeDateFormatParser.js.html +0 -518
- package/coverage/lcov-report/src/parsers/en/ENSlashDateFormatParser.js.html +0 -479
- package/coverage/lcov-report/src/parsers/en/ENSlashDateFormatStartWithYearParser.js.html +0 -245
- package/coverage/lcov-report/src/parsers/en/ENSlashMonthFormatParser.js.html +0 -221
- package/coverage/lcov-report/src/parsers/en/ENTimeAgoFormatParser.js.html +0 -287
- package/coverage/lcov-report/src/parsers/en/ENTimeExpressionParser.js.html +0 -869
- package/coverage/lcov-report/src/parsers/en/ENTimeLaterFormatParser.js.html +0 -305
- package/coverage/lcov-report/src/parsers/en/ENWeekdayParser.js.html +0 -356
- package/coverage/lcov-report/src/parsers/en/index.html +0 -321
- package/coverage/lcov-report/src/parsers/es/ESCasualDateParser.js.html +0 -452
- package/coverage/lcov-report/src/parsers/es/ESDeadlineFormatParser.js.html +0 -260
- package/coverage/lcov-report/src/parsers/es/ESMonthNameLittleEndianParser.js.html +0 -338
- package/coverage/lcov-report/src/parsers/es/ESSlashDateFormatParser.js.html +0 -419
- package/coverage/lcov-report/src/parsers/es/ESTimeAgoFormatParser.js.html +0 -341
- package/coverage/lcov-report/src/parsers/es/ESTimeExpressionParser.js.html +0 -782
- package/coverage/lcov-report/src/parsers/es/ESWeekdayParser.js.html +0 -260
- package/coverage/lcov-report/src/parsers/es/index.html +0 -201
- package/coverage/lcov-report/src/parsers/fr/FRCasualDateParser.js.html +0 -311
- package/coverage/lcov-report/src/parsers/fr/FRDeadlineFormatParser.js.html +0 -359
- package/coverage/lcov-report/src/parsers/fr/FRMonthNameLittleEndianParser.js.html +0 -338
- package/coverage/lcov-report/src/parsers/fr/FRRelativeDateFormatParser.js.html +0 -545
- package/coverage/lcov-report/src/parsers/fr/FRSlashDateFormatParser.js.html +0 -437
- package/coverage/lcov-report/src/parsers/fr/FRTimeAgoFormatParser.js.html +0 -341
- package/coverage/lcov-report/src/parsers/fr/FRTimeExpressionParser.js.html +0 -803
- package/coverage/lcov-report/src/parsers/fr/FRWeekdayParser.js.html +0 -257
- package/coverage/lcov-report/src/parsers/fr/index.html +0 -216
- package/coverage/lcov-report/src/parsers/index.html +0 -111
- package/coverage/lcov-report/src/parsers/ja/JPCasualDateParser.js.html +0 -245
- package/coverage/lcov-report/src/parsers/ja/JPStandardParser.js.html +0 -293
- package/coverage/lcov-report/src/parsers/ja/index.html +0 -126
- package/coverage/lcov-report/src/parsers/nl/NLCasualDateParser.js.html +0 -395
- package/coverage/lcov-report/src/parsers/nl/NLCasualTimeParser.js.html +0 -278
- package/coverage/lcov-report/src/parsers/nl/NLMonthNameLittleEndianParser.js.html +0 -383
- package/coverage/lcov-report/src/parsers/nl/NLMonthNameParser.js.html +0 -320
- package/coverage/lcov-report/src/parsers/nl/NLSlashDateFormatParser.js.html +0 -389
- package/coverage/lcov-report/src/parsers/nl/NLTimeExpressionParser.js.html +0 -836
- package/coverage/lcov-report/src/parsers/nl/NLWeekdayParser.js.html +0 -377
- package/coverage/lcov-report/src/parsers/nl/index.html +0 -201
- package/coverage/lcov-report/src/parsers/parser.js.html +0 -500
- package/coverage/lcov-report/src/parsers/pt/PTCasualDateParser.js.html +0 -449
- package/coverage/lcov-report/src/parsers/pt/PTDeadlineFormatParser.js.html +0 -263
- package/coverage/lcov-report/src/parsers/pt/PTMonthNameLittleEndianParser.js.html +0 -338
- package/coverage/lcov-report/src/parsers/pt/PTSlashDateFormatParser.js.html +0 -419
- package/coverage/lcov-report/src/parsers/pt/PTTimeAgoFormatParser.js.html +0 -341
- package/coverage/lcov-report/src/parsers/pt/PTTimeExpressionParser.js.html +0 -782
- package/coverage/lcov-report/src/parsers/pt/PTWeekdayParser.js.html +0 -260
- package/coverage/lcov-report/src/parsers/pt/index.html +0 -201
- package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantCasualDateParser.js.html +0 -494
- package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantDateParser.js.html +0 -281
- package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantDeadlineFormatParser.js.html +0 -353
- package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantTimeExpressionParser.js.html +0 -1346
- package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantWeekdayParser.js.html +0 -239
- package/coverage/lcov-report/src/parsers/zh-Hant/index.html +0 -171
- package/coverage/lcov-report/src/refiners/ExtractTimezoneAbbrRefiner.js.html +0 -245
- package/coverage/lcov-report/src/refiners/ExtractTimezoneOffsetRefiner.js.html +0 -218
- package/coverage/lcov-report/src/refiners/ForwardDateRefiner.js.html +0 -239
- package/coverage/lcov-report/src/refiners/OverlapRemovalRefiner.js.html +0 -200
- package/coverage/lcov-report/src/refiners/UnlikelyFormatFilter.js.html +0 -131
- package/coverage/lcov-report/src/refiners/de/DEMergeDateRangeRefiner.js.html +0 -116
- package/coverage/lcov-report/src/refiners/de/DEMergeDateTimeRefiner.js.html +0 -377
- package/coverage/lcov-report/src/refiners/de/index.html +0 -126
- package/coverage/lcov-report/src/refiners/en/ENMergeDateRangeRefiner.js.html +0 -416
- package/coverage/lcov-report/src/refiners/en/ENMergeDateTimeRefiner.js.html +0 -533
- package/coverage/lcov-report/src/refiners/en/ENPrioritizeSpecificDateRefiner.js.html +0 -422
- package/coverage/lcov-report/src/refiners/en/index.html +0 -141
- package/coverage/lcov-report/src/refiners/fr/FRMergeDateRangeRefiner.js.html +0 -374
- package/coverage/lcov-report/src/refiners/fr/FRMergeDateTimeRefiner.js.html +0 -395
- package/coverage/lcov-report/src/refiners/fr/index.html +0 -126
- package/coverage/lcov-report/src/refiners/index.html +0 -186
- package/coverage/lcov-report/src/refiners/ja/JPMergeDateRangeRefiner.js.html +0 -113
- package/coverage/lcov-report/src/refiners/ja/index.html +0 -111
- package/coverage/lcov-report/src/refiners/nl/NLMergeDateRangeRefiner.js.html +0 -116
- package/coverage/lcov-report/src/refiners/nl/NLMergeDateTimeRefiner.js.html +0 -362
- package/coverage/lcov-report/src/refiners/nl/index.html +0 -126
- package/coverage/lcov-report/src/refiners/refiner.js.html +0 -239
- package/coverage/lcov-report/src/result.js.html +0 -545
- package/coverage/lcov-report/src/results.ts.html +0 -916
- package/coverage/lcov-report/src/timezone.ts.html +0 -700
- package/coverage/lcov-report/src/utils/DE.js.html +0 -308
- package/coverage/lcov-report/src/utils/EN.js.html +0 -596
- package/coverage/lcov-report/src/utils/ES.js.html +0 -254
- package/coverage/lcov-report/src/utils/FR.js.html +0 -302
- package/coverage/lcov-report/src/utils/JP.js.html +0 -215
- package/coverage/lcov-report/src/utils/NL.js.html +0 -620
- package/coverage/lcov-report/src/utils/PT.js.html +0 -263
- package/coverage/lcov-report/src/utils/ParserWithWordEndingDetection.ts.html +0 -176
- package/coverage/lcov-report/src/utils/ZH-Hant.js.html +0 -236
- package/coverage/lcov-report/src/utils/dayjs.ts.html +0 -223
- package/coverage/lcov-report/src/utils/index.html +0 -146
- package/coverage/lcov-report/src/utils/pattern.ts.html +0 -175
- package/coverage/lcov-report/src/utils/timeunits.ts.html +0 -199
- package/coverage/lcov-report/test/index.html +0 -116
- package/coverage/lcov-report/test/test_util.js.html +0 -299
- package/coverage/lcov-report/test/test_util.ts.html +0 -490
- package/coverage/lcov.info +0 -8049
- package/dist/bundle.js +0 -5047
- package/dist/calculation/weeks.d.ts +0 -3
- package/dist/calculation/weeks.js +0 -42
- package/dist/calculation/weeks.js.map +0 -1
- package/dist/main.js +0 -1078
- package/docs/assets/css/main.css +0 -2660
- package/docs/assets/images/icons.png +0 -0
- package/docs/assets/images/icons@2x.png +0 -0
- package/docs/assets/images/widgets.png +0 -0
- package/docs/assets/images/widgets@2x.png +0 -0
- package/docs/assets/js/main.js +0 -248
- package/docs/assets/js/search.js +0 -1
- package/docs/classes/chrono.html +0 -377
- package/docs/enums/meridiem.html +0 -191
- package/docs/index.html +0 -329
- package/docs/interfaces/parsedcomponents.html +0 -270
- package/docs/interfaces/parsedresult.html +0 -283
- package/docs/interfaces/parser.html +0 -240
- package/docs/interfaces/parsingoption.html +0 -218
- package/docs/interfaces/refiner.html +0 -218
- package/docs/modules/de.html +0 -298
- package/docs/modules/en.html +0 -361
- package/docs/modules/fr.html +0 -248
- package/docs/modules/ja.html +0 -248
- package/docs/modules/nl.html +0 -275
- package/docs/modules/pt.html +0 -248
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ENMonthNameParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENMonthNameParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAEhH,MAAM,OAAO,GAAG,IAAI,MAAM,CACtB,eAAe;IACX,IAAI,eAAe,CAAC,gBAAgB,CAAC,GAAG;IACxC,MAAM;IACN,KAAK;IACL,aAAa,YAAY,IAAI;IAC7B,IAAI;IACJ,kCAAkC,EACtC,GAAG,CACN,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,CAAC;AACvB,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,UAAU,GAAG,CAAC,CAAC;AASrB,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,sCAAsC;IACjF,YAAY;QACR,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,SAAS,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC,WAAW,EAAE,CAAC;QAGxD,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,0BAA0B,CAAC,SAAS,CAAC,EAAE;YAChE,OAAO,IAAI,CAAC;SACf;QAED,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CACtC,KAAK,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAChD,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAChC,CAAC;QACF,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAE7B,MAAM,KAAK,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;QAC1C,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QAEpC,IAAI,KAAK,CAAC,UAAU,CAAC,EAAE;YACnB,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;YAC1C,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;SACrC;aAAM;YACH,MAAM,IAAI,GAAG,oBAAoB,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;YAC7D,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;SACpC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ParsingContext } from "../../../chrono";
|
|
2
|
+
import { ParsingComponents } from "../../../results";
|
|
3
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
4
|
+
export default class ENRelativeDateFormatParser extends AbstractParserWithWordBoundaryChecking {
|
|
5
|
+
innerPattern(): RegExp;
|
|
6
|
+
innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingComponents;
|
|
7
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { TIME_UNIT_DICTIONARY } from "../constants";
|
|
2
|
+
import { ParsingComponents } from "../../../results";
|
|
3
|
+
import dayjs from "dayjs";
|
|
4
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
5
|
+
import { matchAnyPattern } from "../../../utils/pattern";
|
|
6
|
+
const PATTERN = new RegExp(`(this|last|past|next|after\\s*this)\\s*(${matchAnyPattern(TIME_UNIT_DICTIONARY)})(?=\\s*)` + "(?=\\W|$)", "i");
|
|
7
|
+
const MODIFIER_WORD_GROUP = 1;
|
|
8
|
+
const RELATIVE_WORD_GROUP = 2;
|
|
9
|
+
export default class ENRelativeDateFormatParser extends AbstractParserWithWordBoundaryChecking {
|
|
10
|
+
innerPattern() {
|
|
11
|
+
return PATTERN;
|
|
12
|
+
}
|
|
13
|
+
innerExtract(context, match) {
|
|
14
|
+
const modifier = match[MODIFIER_WORD_GROUP].toLowerCase();
|
|
15
|
+
const unitWord = match[RELATIVE_WORD_GROUP].toLowerCase();
|
|
16
|
+
const timeunit = TIME_UNIT_DICTIONARY[unitWord];
|
|
17
|
+
if (modifier == "next" || modifier.startsWith("after")) {
|
|
18
|
+
const timeUnits = {};
|
|
19
|
+
timeUnits[timeunit] = 1;
|
|
20
|
+
return ParsingComponents.createRelativeFromReference(context.reference, timeUnits);
|
|
21
|
+
}
|
|
22
|
+
if (modifier == "last" || modifier == "past") {
|
|
23
|
+
const timeUnits = {};
|
|
24
|
+
timeUnits[timeunit] = -1;
|
|
25
|
+
return ParsingComponents.createRelativeFromReference(context.reference, timeUnits);
|
|
26
|
+
}
|
|
27
|
+
const components = context.createParsingComponents();
|
|
28
|
+
let date = dayjs(context.reference.instant);
|
|
29
|
+
if (unitWord.match(/week/i)) {
|
|
30
|
+
date = date.add(-date.get("d"), "d");
|
|
31
|
+
components.imply("day", date.date());
|
|
32
|
+
components.imply("month", date.month() + 1);
|
|
33
|
+
components.imply("year", date.year());
|
|
34
|
+
}
|
|
35
|
+
else if (unitWord.match(/month/i)) {
|
|
36
|
+
date = date.add(-date.date() + 1, "d");
|
|
37
|
+
components.imply("day", date.date());
|
|
38
|
+
components.assign("year", date.year());
|
|
39
|
+
components.assign("month", date.month() + 1);
|
|
40
|
+
}
|
|
41
|
+
else if (unitWord.match(/year/i)) {
|
|
42
|
+
date = date.add(-date.date() + 1, "d");
|
|
43
|
+
date = date.add(-date.month(), "month");
|
|
44
|
+
components.imply("day", date.date());
|
|
45
|
+
components.imply("month", date.month() + 1);
|
|
46
|
+
components.assign("year", date.year());
|
|
47
|
+
}
|
|
48
|
+
return components;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=ENRelativeDateFormatParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ENRelativeDateFormatParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENRelativeDateFormatParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAChH,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,OAAO,GAAG,IAAI,MAAM,CACtB,2CAA2C,eAAe,CAAC,oBAAoB,CAAC,WAAW,GAAG,WAAW,EACzG,GAAG,CACN,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAC9B,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,sCAAsC;IAC1F,YAAY;QACR,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,QAAQ,GAAG,KAAK,CAAC,mBAAmB,CAAC,CAAC,WAAW,EAAE,CAAC;QAC1D,MAAM,QAAQ,GAAG,KAAK,CAAC,mBAAmB,CAAC,CAAC,WAAW,EAAE,CAAC;QAC1D,MAAM,QAAQ,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC;QAEhD,IAAI,QAAQ,IAAI,MAAM,IAAI,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;YACpD,MAAM,SAAS,GAAG,EAAE,CAAC;YACrB,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;YACxB,OAAO,iBAAiB,CAAC,2BAA2B,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;SACtF;QAED,IAAI,QAAQ,IAAI,MAAM,IAAI,QAAQ,IAAI,MAAM,EAAE;YAC1C,MAAM,SAAS,GAAG,EAAE,CAAC;YACrB,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;YACzB,OAAO,iBAAiB,CAAC,2BAA2B,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;SACtF;QAED,MAAM,UAAU,GAAG,OAAO,CAAC,uBAAuB,EAAE,CAAC;QACrD,IAAI,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAG5C,IAAI,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE;YACzB,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;YACrC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YACrC,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;YAC5C,UAAU,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;SACzC;aAGI,IAAI,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE;YAC/B,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;YACvC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YACrC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YACvC,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;SAChD;aAGI,IAAI,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE;YAC9B,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;YACvC,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;YAExC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YACrC,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;YAC5C,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;SAC1C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ParsingContext } from "../../../chrono";
|
|
2
|
+
import { ParsingComponents } from "../../../results";
|
|
3
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
4
|
+
export default class ENSlashMonthFormatParser extends AbstractParserWithWordBoundaryChecking {
|
|
5
|
+
innerPattern(): RegExp;
|
|
6
|
+
innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingComponents;
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
2
|
+
const PATTERN = new RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})" + "", "i");
|
|
3
|
+
const MONTH_GROUP = 1;
|
|
4
|
+
const YEAR_GROUP = 2;
|
|
5
|
+
export default class ENSlashMonthFormatParser extends AbstractParserWithWordBoundaryChecking {
|
|
6
|
+
innerPattern() {
|
|
7
|
+
return PATTERN;
|
|
8
|
+
}
|
|
9
|
+
innerExtract(context, match) {
|
|
10
|
+
const year = parseInt(match[YEAR_GROUP]);
|
|
11
|
+
const month = parseInt(match[MONTH_GROUP]);
|
|
12
|
+
return context.createParsingComponents().imply("day", 1).assign("month", month).assign("year", year);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=ENSlashMonthFormatParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ENSlashMonthFormatParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENSlashMonthFormatParser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAEhH,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,kCAAkC,GAAG,EAAE,EAAE,GAAG,CAAC,CAAC;AAEzE,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,UAAU,GAAG,CAAC,CAAC;AAOrB,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,sCAAsC;IACxF,YAAY;QACR,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;QACzC,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;QAE3C,OAAO,OAAO,CAAC,uBAAuB,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACzG,CAAC;CACJ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ParsingContext } from "../../../chrono";
|
|
2
|
+
import { ParsingComponents } from "../../../results";
|
|
3
|
+
import { AbstractTimeExpressionParser } from "../../../common/parsers/AbstractTimeExpressionParser";
|
|
4
|
+
export default class ENTimeExpressionParser extends AbstractTimeExpressionParser {
|
|
5
|
+
constructor(strictMode: any);
|
|
6
|
+
followingPhase(): string;
|
|
7
|
+
primaryPrefix(): string;
|
|
8
|
+
primarySuffix(): string;
|
|
9
|
+
extractPrimaryTimeComponents(context: ParsingContext, match: RegExpMatchArray): null | ParsingComponents;
|
|
10
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Meridiem } from "../../../index";
|
|
2
|
+
import { AbstractTimeExpressionParser } from "../../../common/parsers/AbstractTimeExpressionParser";
|
|
3
|
+
export default class ENTimeExpressionParser extends AbstractTimeExpressionParser {
|
|
4
|
+
constructor(strictMode) {
|
|
5
|
+
super(strictMode);
|
|
6
|
+
}
|
|
7
|
+
followingPhase() {
|
|
8
|
+
return "\\s*(?:\\-|\\–|\\~|\\〜|to|until|through|till|\\?)\\s*";
|
|
9
|
+
}
|
|
10
|
+
primaryPrefix() {
|
|
11
|
+
return "(?:(?:at|from)\\s*)??";
|
|
12
|
+
}
|
|
13
|
+
primarySuffix() {
|
|
14
|
+
return "(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)";
|
|
15
|
+
}
|
|
16
|
+
extractPrimaryTimeComponents(context, match) {
|
|
17
|
+
const components = super.extractPrimaryTimeComponents(context, match);
|
|
18
|
+
if (components) {
|
|
19
|
+
if (match[0].endsWith("night")) {
|
|
20
|
+
const hour = components.get("hour");
|
|
21
|
+
if (hour >= 6 && hour < 12) {
|
|
22
|
+
components.assign("hour", components.get("hour") + 12);
|
|
23
|
+
components.assign("meridiem", Meridiem.PM);
|
|
24
|
+
}
|
|
25
|
+
else if (hour < 6) {
|
|
26
|
+
components.assign("meridiem", Meridiem.AM);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
if (match[0].endsWith("afternoon")) {
|
|
30
|
+
components.assign("meridiem", Meridiem.PM);
|
|
31
|
+
const hour = components.get("hour");
|
|
32
|
+
if (hour >= 0 && hour <= 6) {
|
|
33
|
+
components.assign("hour", components.get("hour") + 12);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
if (match[0].endsWith("morning")) {
|
|
37
|
+
components.assign("meridiem", Meridiem.AM);
|
|
38
|
+
const hour = components.get("hour");
|
|
39
|
+
if (hour < 12) {
|
|
40
|
+
components.assign("hour", components.get("hour"));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return components;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=ENTimeExpressionParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ENTimeExpressionParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENTimeExpressionParser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AAEpG,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,4BAA4B;IAC5E,YAAY,UAAU;QAClB,KAAK,CAAC,UAAU,CAAC,CAAC;IACtB,CAAC;IAED,cAAc;QACV,OAAO,uDAAuD,CAAC;IACnE,CAAC;IAED,aAAa;QACT,OAAO,uBAAuB,CAAC;IACnC,CAAC;IAED,aAAa;QACT,OAAO,sFAAsF,CAAC;IAClG,CAAC;IAED,4BAA4B,CAAC,OAAuB,EAAE,KAAuB;QACzE,MAAM,UAAU,GAAG,KAAK,CAAC,4BAA4B,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACtE,IAAI,UAAU,EAAE;YACZ,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;gBAC5B,MAAM,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;gBACpC,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,GAAG,EAAE,EAAE;oBACxB,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC;oBACvD,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;iBAC9C;qBAAM,IAAI,IAAI,GAAG,CAAC,EAAE;oBACjB,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;iBAC9C;aACJ;YAED,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE;gBAChC,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;gBAC3C,MAAM,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;gBACpC,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE;oBACxB,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC;iBAC1D;aACJ;YAED,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;gBAC9B,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;gBAC3C,MAAM,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;gBACpC,IAAI,IAAI,GAAG,EAAE,EAAE;oBACX,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;iBACrD;aACJ;SACJ;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ParsingContext } from "../../../chrono";
|
|
2
|
+
import { ParsingComponents } from "../../../results";
|
|
3
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
4
|
+
export default class ENTimeUnitAgoFormatParser extends AbstractParserWithWordBoundaryChecking {
|
|
5
|
+
private strictMode;
|
|
6
|
+
constructor(strictMode: boolean);
|
|
7
|
+
innerPattern(): RegExp;
|
|
8
|
+
innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingComponents;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { parseTimeUnits, TIME_UNITS_PATTERN } from "../constants";
|
|
2
|
+
import { ParsingComponents } from "../../../results";
|
|
3
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
4
|
+
import { reverseTimeUnits } from "../../../utils/timeunits";
|
|
5
|
+
const PATTERN = new RegExp(`(${TIME_UNITS_PATTERN})\\s{0,5}(?:ago|before|earlier)(?=(?:\\W|$))`, "i");
|
|
6
|
+
const STRICT_PATTERN = new RegExp(`(${TIME_UNITS_PATTERN})\\s{0,5}ago(?=(?:\\W|$))`, "i");
|
|
7
|
+
export default class ENTimeUnitAgoFormatParser extends AbstractParserWithWordBoundaryChecking {
|
|
8
|
+
constructor(strictMode) {
|
|
9
|
+
super();
|
|
10
|
+
this.strictMode = strictMode;
|
|
11
|
+
}
|
|
12
|
+
innerPattern() {
|
|
13
|
+
return this.strictMode ? STRICT_PATTERN : PATTERN;
|
|
14
|
+
}
|
|
15
|
+
innerExtract(context, match) {
|
|
16
|
+
const timeUnits = parseTimeUnits(match[1]);
|
|
17
|
+
const outputTimeUnits = reverseTimeUnits(timeUnits);
|
|
18
|
+
return ParsingComponents.createRelativeFromReference(context.reference, outputTimeUnits);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=ENTimeUnitAgoFormatParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ENTimeUnitAgoFormatParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENTimeUnitAgoFormatParser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAChH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,IAAI,kBAAkB,8CAA8C,EAAE,GAAG,CAAC,CAAC;AACtG,MAAM,cAAc,GAAG,IAAI,MAAM,CAAC,IAAI,kBAAkB,2BAA2B,EAAE,GAAG,CAAC,CAAC;AAE1F,MAAM,CAAC,OAAO,OAAO,yBAA0B,SAAQ,sCAAsC;IACzF,YAAoB,UAAmB;QACnC,KAAK,EAAE,CAAC;QADQ,eAAU,GAAV,UAAU,CAAS;IAEvC,CAAC;IAED,YAAY;QACR,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC;IACtD,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3C,MAAM,eAAe,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;QAEpD,OAAO,iBAAiB,CAAC,2BAA2B,CAAC,OAAO,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;IAC7F,CAAC;CACJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ParsingContext } from "../../../chrono";
|
|
2
|
+
import { ParsingComponents } from "../../../results";
|
|
3
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
4
|
+
export default class ENTimeUnitCasualRelativeFormatParser extends AbstractParserWithWordBoundaryChecking {
|
|
5
|
+
innerPattern(): RegExp;
|
|
6
|
+
innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingComponents;
|
|
7
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TIME_UNITS_PATTERN, parseTimeUnits } from "../constants";
|
|
2
|
+
import { ParsingComponents } from "../../../results";
|
|
3
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
4
|
+
import { reverseTimeUnits } from "../../../utils/timeunits";
|
|
5
|
+
const PATTERN = new RegExp(`(this|last|past|next|after|\\+|-)\\s*(${TIME_UNITS_PATTERN})(?=\\W|$)`, "i");
|
|
6
|
+
export default class ENTimeUnitCasualRelativeFormatParser extends AbstractParserWithWordBoundaryChecking {
|
|
7
|
+
innerPattern() {
|
|
8
|
+
return PATTERN;
|
|
9
|
+
}
|
|
10
|
+
innerExtract(context, match) {
|
|
11
|
+
const prefix = match[1].toLowerCase();
|
|
12
|
+
let timeUnits = parseTimeUnits(match[2]);
|
|
13
|
+
switch (prefix) {
|
|
14
|
+
case "last":
|
|
15
|
+
case "past":
|
|
16
|
+
case "-":
|
|
17
|
+
timeUnits = reverseTimeUnits(timeUnits);
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
return ParsingComponents.createRelativeFromReference(context.reference, timeUnits);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=ENTimeUnitCasualRelativeFormatParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ENTimeUnitCasualRelativeFormatParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAChH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,yCAAyC,kBAAkB,YAAY,EAAE,GAAG,CAAC,CAAC;AAEzG,MAAM,CAAC,OAAO,OAAO,oCAAqC,SAAQ,sCAAsC;IACpG,YAAY;QACR,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QACtC,IAAI,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACzC,QAAQ,MAAM,EAAE;YACZ,KAAK,MAAM,CAAC;YACZ,KAAK,MAAM,CAAC;YACZ,KAAK,GAAG;gBACJ,SAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;gBACxC,MAAM;SACb;QAED,OAAO,iBAAiB,CAAC,2BAA2B,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACvF,CAAC;CACJ"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ParsingContext } from "../../../chrono";
|
|
2
|
+
import { ParsingComponents } from "../../../results";
|
|
3
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
4
|
+
export default class ENTimeUnitLaterFormatParser extends AbstractParserWithWordBoundaryChecking {
|
|
5
|
+
private strictMode;
|
|
6
|
+
constructor(strictMode: boolean);
|
|
7
|
+
innerPattern(): RegExp;
|
|
8
|
+
innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingComponents;
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { parseTimeUnits, TIME_UNITS_PATTERN } from "../constants";
|
|
2
|
+
import { ParsingComponents } from "../../../results";
|
|
3
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
4
|
+
const PATTERN = new RegExp(`(${TIME_UNITS_PATTERN})\\s{0,5}(?:later|after|from now|henceforth|forward|out)` + "(?=(?:\\W|$))", "i");
|
|
5
|
+
const STRICT_PATTERN = new RegExp("" + "(" + TIME_UNITS_PATTERN + ")" + "(later|from now)" + "(?=(?:\\W|$))", "i");
|
|
6
|
+
const GROUP_NUM_TIMEUNITS = 1;
|
|
7
|
+
export default class ENTimeUnitLaterFormatParser extends AbstractParserWithWordBoundaryChecking {
|
|
8
|
+
constructor(strictMode) {
|
|
9
|
+
super();
|
|
10
|
+
this.strictMode = strictMode;
|
|
11
|
+
}
|
|
12
|
+
innerPattern() {
|
|
13
|
+
return this.strictMode ? STRICT_PATTERN : PATTERN;
|
|
14
|
+
}
|
|
15
|
+
innerExtract(context, match) {
|
|
16
|
+
const fragments = parseTimeUnits(match[GROUP_NUM_TIMEUNITS]);
|
|
17
|
+
return ParsingComponents.createRelativeFromReference(context.reference, fragments);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=ENTimeUnitLaterFormatParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ENTimeUnitLaterFormatParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENTimeUnitLaterFormatParser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAEhH,MAAM,OAAO,GAAG,IAAI,MAAM,CACtB,IAAI,kBAAkB,0DAA0D,GAAG,eAAe,EAClG,GAAG,CACN,CAAC;AAEF,MAAM,cAAc,GAAG,IAAI,MAAM,CAAC,EAAE,GAAG,GAAG,GAAG,kBAAkB,GAAG,GAAG,GAAG,kBAAkB,GAAG,eAAe,EAAE,GAAG,CAAC,CAAC;AACnH,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,2BAA4B,SAAQ,sCAAsC;IAC3F,YAAoB,UAAmB;QACnC,KAAK,EAAE,CAAC;QADQ,eAAU,GAAV,UAAU,CAAS;IAEvC,CAAC;IAED,YAAY;QACR,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC;IACtD,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC;QAC7D,OAAO,iBAAiB,CAAC,2BAA2B,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACvF,CAAC;CACJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ParsingContext } from "../../../chrono";
|
|
2
|
+
import { ParsingComponents } from "../../../results";
|
|
3
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
4
|
+
export default class ENTimeUnitWithinFormatParser extends AbstractParserWithWordBoundaryChecking {
|
|
5
|
+
innerPattern(context: ParsingContext): RegExp;
|
|
6
|
+
innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingComponents;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TIME_UNITS_PATTERN, parseTimeUnits } from "../constants";
|
|
2
|
+
import { ParsingComponents } from "../../../results";
|
|
3
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
4
|
+
const PATTERN_WITH_PREFIX = new RegExp(`(?:within|in|for)\\s*` +
|
|
5
|
+
`(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${TIME_UNITS_PATTERN})(?=\\W|$)`, "i");
|
|
6
|
+
const PATTERN_WITHOUT_PREFIX = new RegExp(`(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${TIME_UNITS_PATTERN})(?=\\W|$)`, "i");
|
|
7
|
+
export default class ENTimeUnitWithinFormatParser extends AbstractParserWithWordBoundaryChecking {
|
|
8
|
+
innerPattern(context) {
|
|
9
|
+
return context.option.forwardDate ? PATTERN_WITHOUT_PREFIX : PATTERN_WITH_PREFIX;
|
|
10
|
+
}
|
|
11
|
+
innerExtract(context, match) {
|
|
12
|
+
const timeUnits = parseTimeUnits(match[1]);
|
|
13
|
+
return ParsingComponents.createRelativeFromReference(context.reference, timeUnits);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=ENTimeUnitWithinFormatParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ENTimeUnitWithinFormatParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENTimeUnitWithinFormatParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAEhH,MAAM,mBAAmB,GAAG,IAAI,MAAM,CAClC,uBAAuB;IACnB,kEAAkE,kBAAkB,YAAY,EACpG,GAAG,CACN,CAAC;AAEF,MAAM,sBAAsB,GAAG,IAAI,MAAM,CACrC,kEAAkE,kBAAkB,YAAY,EAChG,GAAG,CACN,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,4BAA6B,SAAQ,sCAAsC;IAC5F,YAAY,CAAC,OAAuB;QAChC,OAAO,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,mBAAmB,CAAC;IACrF,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3C,OAAO,iBAAiB,CAAC,2BAA2B,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACvF,CAAC;CACJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ParsingContext } from "../../../chrono";
|
|
2
|
+
import { ParsingComponents } from "../../../results";
|
|
3
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
4
|
+
export default class ENWeekdayParser extends AbstractParserWithWordBoundaryChecking {
|
|
5
|
+
innerPattern(): RegExp;
|
|
6
|
+
innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingComponents;
|
|
7
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { WEEKDAY_DICTIONARY } from "../constants";
|
|
2
|
+
import { matchAnyPattern } from "../../../utils/pattern";
|
|
3
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
4
|
+
import { createParsingComponentsAtWeekday } from "../../../common/calculation/weekdays";
|
|
5
|
+
const PATTERN = new RegExp("(?:(?:\\,|\\(|\\()\\s*)?" +
|
|
6
|
+
"(?:on\\s*?)?" +
|
|
7
|
+
"(?:(this|last|past|next)\\s*)?" +
|
|
8
|
+
`(${matchAnyPattern(WEEKDAY_DICTIONARY)})` +
|
|
9
|
+
"(?:\\s*(?:\\,|\\)|\\)))?" +
|
|
10
|
+
"(?:\\s*(this|last|past|next)\\s*week)?" +
|
|
11
|
+
"(?=\\W|$)", "i");
|
|
12
|
+
const PREFIX_GROUP = 1;
|
|
13
|
+
const WEEKDAY_GROUP = 2;
|
|
14
|
+
const POSTFIX_GROUP = 3;
|
|
15
|
+
export default class ENWeekdayParser extends AbstractParserWithWordBoundaryChecking {
|
|
16
|
+
innerPattern() {
|
|
17
|
+
return PATTERN;
|
|
18
|
+
}
|
|
19
|
+
innerExtract(context, match) {
|
|
20
|
+
const dayOfWeek = match[WEEKDAY_GROUP].toLowerCase();
|
|
21
|
+
const weekday = WEEKDAY_DICTIONARY[dayOfWeek];
|
|
22
|
+
const prefix = match[PREFIX_GROUP];
|
|
23
|
+
const postfix = match[POSTFIX_GROUP];
|
|
24
|
+
let modifierWord = prefix || postfix;
|
|
25
|
+
modifierWord = modifierWord || "";
|
|
26
|
+
modifierWord = modifierWord.toLowerCase();
|
|
27
|
+
let modifier = null;
|
|
28
|
+
if (modifierWord == "last" || modifierWord == "past") {
|
|
29
|
+
modifier = "last";
|
|
30
|
+
}
|
|
31
|
+
else if (modifierWord == "next") {
|
|
32
|
+
modifier = "next";
|
|
33
|
+
}
|
|
34
|
+
else if (modifierWord == "this") {
|
|
35
|
+
modifier = "this";
|
|
36
|
+
}
|
|
37
|
+
return createParsingComponentsAtWeekday(context.reference, weekday, modifier);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=ENWeekdayParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ENWeekdayParser.js","sourceRoot":"","sources":["../../../../../src/locales/en/parsers/ENWeekdayParser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAChH,OAAO,EAAE,gCAAgC,EAAE,MAAM,sCAAsC,CAAC;AAExF,MAAM,OAAO,GAAG,IAAI,MAAM,CACtB,0BAA0B;IACtB,cAAc;IACd,gCAAgC;IAChC,IAAI,eAAe,CAAC,kBAAkB,CAAC,GAAG;IAC1C,0BAA0B;IAC1B,wCAAwC;IACxC,WAAW,EACf,GAAG,CACN,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,CAAC;AACvB,MAAM,aAAa,GAAG,CAAC,CAAC;AACxB,MAAM,aAAa,GAAG,CAAC,CAAC;AAExB,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,sCAAsC;IAC/E,YAAY;QACR,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,WAAW,EAAE,CAAC;QACrD,MAAM,OAAO,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC;QAC9C,MAAM,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC;QACnC,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;QACrC,IAAI,YAAY,GAAG,MAAM,IAAI,OAAO,CAAC;QACrC,YAAY,GAAG,YAAY,IAAI,EAAE,CAAC;QAClC,YAAY,GAAG,YAAY,CAAC,WAAW,EAAE,CAAC;QAE1C,IAAI,QAAQ,GAAG,IAAI,CAAC;QACpB,IAAI,YAAY,IAAI,MAAM,IAAI,YAAY,IAAI,MAAM,EAAE;YAClD,QAAQ,GAAG,MAAM,CAAC;SACrB;aAAM,IAAI,YAAY,IAAI,MAAM,EAAE;YAC/B,QAAQ,GAAG,MAAM,CAAC;SACrB;aAAM,IAAI,YAAY,IAAI,MAAM,EAAE;YAC/B,QAAQ,GAAG,MAAM,CAAC;SACrB;QAED,OAAO,gCAAgC,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;IAClF,CAAC;CACJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import AbstractMergeDateRangeRefiner from "../../../common/refiners/AbstractMergeDateRangeRefiner";
|
|
2
|
+
export default class ENMergeDateRangeRefiner extends AbstractMergeDateRangeRefiner {
|
|
3
|
+
patternBetween() {
|
|
4
|
+
return /^\s*(to|-|–|until|through|till)\s*$/i;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=ENMergeDateRangeRefiner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ENMergeDateRangeRefiner.js","sourceRoot":"","sources":["../../../../../src/locales/en/refiners/ENMergeDateRangeRefiner.ts"],"names":[],"mappings":"AAIA,OAAO,6BAA6B,MAAM,wDAAwD,CAAC;AAQnG,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,6BAA6B;IAC9E,cAAc;QACV,OAAO,sCAAsC,CAAC;IAClD,CAAC;CACJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import AbstractMergeDateTimeRefiner from "../../../common/refiners/AbstractMergeDateTimeRefiner";
|
|
2
|
+
export default class ENMergeDateTimeRefiner extends AbstractMergeDateTimeRefiner {
|
|
3
|
+
patternBetween() {
|
|
4
|
+
return new RegExp("^\\s*(T|at|after|before|on|of|,|-)?\\s*$");
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=ENMergeDateTimeRefiner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ENMergeDateTimeRefiner.js","sourceRoot":"","sources":["../../../../../src/locales/en/refiners/ENMergeDateTimeRefiner.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,MAAM,uDAAuD,CAAC;AAQjG,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,4BAA4B;IAC5E,cAAc;QACV,OAAO,IAAI,MAAM,CAAC,0CAA0C,CAAC,CAAC;IAClE,CAAC;CACJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MergingRefiner } from "../../../common/abstractRefiners";
|
|
2
|
+
import { ParsingResult } from "../../../results";
|
|
3
|
+
export default class ENMergeRelativeDateRefiner extends MergingRefiner {
|
|
4
|
+
patternBetween(): RegExp;
|
|
5
|
+
shouldMergeResults(textBetween: string, currentResult: ParsingResult, nextResult: ParsingResult): boolean;
|
|
6
|
+
mergeResults(textBetween: string, currentResult: ParsingResult, nextResult: ParsingResult): ParsingResult;
|
|
7
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { MergingRefiner } from "../../../common/abstractRefiners";
|
|
2
|
+
import { ParsingComponents, ParsingResult, ReferenceWithTimezone } from "../../../results";
|
|
3
|
+
import { parseTimeUnits } from "../constants";
|
|
4
|
+
import { reverseTimeUnits } from "../../../utils/timeunits";
|
|
5
|
+
function hasImpliedEarlierReferenceDate(result) {
|
|
6
|
+
return result.text.match(/\s+(before|from)$/i) != null;
|
|
7
|
+
}
|
|
8
|
+
function hasImpliedLaterReferenceDate(result) {
|
|
9
|
+
return result.text.match(/\s+(after|since)$/i) != null;
|
|
10
|
+
}
|
|
11
|
+
export default class ENMergeRelativeDateRefiner extends MergingRefiner {
|
|
12
|
+
patternBetween() {
|
|
13
|
+
return /^\s*$/i;
|
|
14
|
+
}
|
|
15
|
+
shouldMergeResults(textBetween, currentResult, nextResult) {
|
|
16
|
+
if (!textBetween.match(this.patternBetween())) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
if (!hasImpliedEarlierReferenceDate(currentResult) && !hasImpliedLaterReferenceDate(currentResult)) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
return !!nextResult.start.get("day") && !!nextResult.start.get("month") && !!nextResult.start.get("year");
|
|
23
|
+
}
|
|
24
|
+
mergeResults(textBetween, currentResult, nextResult) {
|
|
25
|
+
let timeUnits = parseTimeUnits(currentResult.text);
|
|
26
|
+
if (hasImpliedEarlierReferenceDate(currentResult)) {
|
|
27
|
+
timeUnits = reverseTimeUnits(timeUnits);
|
|
28
|
+
}
|
|
29
|
+
const components = ParsingComponents.createRelativeFromReference(new ReferenceWithTimezone(nextResult.start.date()), timeUnits);
|
|
30
|
+
return new ParsingResult(nextResult.reference, currentResult.index, `${currentResult.text}${textBetween}${nextResult.text}`, components);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=ENMergeRelativeDateRefiner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ENMergeRelativeDateRefiner.js","sourceRoot":"","sources":["../../../../../src/locales/en/refiners/ENMergeRelativeDateRefiner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,SAAS,8BAA8B,CAAC,MAAqB;IACzD,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,IAAI,IAAI,CAAC;AAC3D,CAAC;AAED,SAAS,4BAA4B,CAAC,MAAqB;IACvD,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,IAAI,IAAI,CAAC;AAC3D,CAAC;AAOD,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,cAAc;IAClE,cAAc;QACV,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,kBAAkB,CAAC,WAAmB,EAAE,aAA4B,EAAE,UAAyB;QAE3F,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,EAAE;YAC3C,OAAO,KAAK,CAAC;SAChB;QAID,IAAI,CAAC,8BAA8B,CAAC,aAAa,CAAC,IAAI,CAAC,4BAA4B,CAAC,aAAa,CAAC,EAAE;YAChG,OAAO,KAAK,CAAC;SAChB;QAGD,OAAO,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9G,CAAC;IAED,YAAY,CAAC,WAAmB,EAAE,aAA4B,EAAE,UAAyB;QACrF,IAAI,SAAS,GAAG,cAAc,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,8BAA8B,CAAC,aAAa,CAAC,EAAE;YAC/C,SAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;SAC3C;QAED,MAAM,UAAU,GAAG,iBAAiB,CAAC,2BAA2B,CAC5D,IAAI,qBAAqB,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,EAClD,SAAS,CACZ,CAAC;QAEF,OAAO,IAAI,aAAa,CACpB,UAAU,CAAC,SAAS,EACpB,aAAa,CAAC,KAAK,EACnB,GAAG,aAAa,CAAC,IAAI,GAAG,WAAW,GAAG,UAAU,CAAC,IAAI,EAAE,EACvD,UAAU,CACb,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OpUnitType, QUnitType } from "dayjs";
|
|
2
|
+
export declare const WEEKDAY_DICTIONARY: {
|
|
3
|
+
[word: string]: number;
|
|
4
|
+
};
|
|
5
|
+
export declare const MONTH_DICTIONARY: {
|
|
6
|
+
[word: string]: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const INTEGER_WORD_DICTIONARY: {
|
|
9
|
+
[word: string]: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const TIME_UNIT_DICTIONARY: {
|
|
12
|
+
[word: string]: OpUnitType | QUnitType;
|
|
13
|
+
};
|
|
14
|
+
export declare const NUMBER_PATTERN: string;
|
|
15
|
+
export declare function parseNumberPattern(match: string): number;
|
|
16
|
+
export declare const YEAR_PATTERN = "[0-9]{1,4}(?![^\\s]\\d)(?:\\s*[a|d]\\.?\\s*c\\.?|\\s*a\\.?\\s*d\\.?)?";
|
|
17
|
+
export declare function parseYear(match: string): number;
|
|
18
|
+
export declare const TIME_UNITS_PATTERN: string;
|
|
19
|
+
export declare function parseTimeUnits(timeunitText: any): {
|
|
20
|
+
[c in OpUnitType | QUnitType]?: number;
|
|
21
|
+
};
|