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,201 @@
|
|
|
1
|
+
import quarterOfYear from "dayjs/plugin/quarterOfYear";
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
|
+
import { assignSimilarDate, assignSimilarTime, implySimilarTime } from "./utils/dayjs";
|
|
4
|
+
import { toTimezoneOffset } from "./timezone";
|
|
5
|
+
dayjs.extend(quarterOfYear);
|
|
6
|
+
export class ReferenceWithTimezone {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
input = input ?? new Date();
|
|
9
|
+
if (input instanceof Date) {
|
|
10
|
+
this.instant = input;
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
this.instant = input.instant ?? new Date();
|
|
14
|
+
this.timezoneOffset = toTimezoneOffset(input.timezone);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
getDateWithAdjustedTimezone() {
|
|
18
|
+
return new Date(this.instant.getTime() + this.getSystemTimezoneAdjustmentMinute(this.instant) * 60000);
|
|
19
|
+
}
|
|
20
|
+
getSystemTimezoneAdjustmentMinute(date, overrideTimezoneOffset) {
|
|
21
|
+
if (!date || date.getTime() < 0) {
|
|
22
|
+
date = new Date();
|
|
23
|
+
}
|
|
24
|
+
const currentTimezoneOffset = -date.getTimezoneOffset();
|
|
25
|
+
const targetTimezoneOffset = overrideTimezoneOffset ?? this.timezoneOffset ?? currentTimezoneOffset;
|
|
26
|
+
return currentTimezoneOffset - targetTimezoneOffset;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export class ParsingComponents {
|
|
30
|
+
constructor(reference, knownComponents) {
|
|
31
|
+
this.reference = reference;
|
|
32
|
+
this.knownValues = {};
|
|
33
|
+
this.impliedValues = {};
|
|
34
|
+
if (knownComponents) {
|
|
35
|
+
for (const key in knownComponents) {
|
|
36
|
+
this.knownValues[key] = knownComponents[key];
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
const refDayJs = dayjs(reference.instant);
|
|
40
|
+
this.imply("day", refDayJs.date());
|
|
41
|
+
this.imply("month", refDayJs.month() + 1);
|
|
42
|
+
this.imply("year", refDayJs.year());
|
|
43
|
+
this.imply("hour", 12);
|
|
44
|
+
this.imply("minute", 0);
|
|
45
|
+
this.imply("second", 0);
|
|
46
|
+
this.imply("millisecond", 0);
|
|
47
|
+
}
|
|
48
|
+
get(component) {
|
|
49
|
+
if (component in this.knownValues) {
|
|
50
|
+
return this.knownValues[component];
|
|
51
|
+
}
|
|
52
|
+
if (component in this.impliedValues) {
|
|
53
|
+
return this.impliedValues[component];
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
isCertain(component) {
|
|
58
|
+
return component in this.knownValues;
|
|
59
|
+
}
|
|
60
|
+
getCertainComponents() {
|
|
61
|
+
return Object.keys(this.knownValues);
|
|
62
|
+
}
|
|
63
|
+
imply(component, value) {
|
|
64
|
+
if (component in this.knownValues) {
|
|
65
|
+
return this;
|
|
66
|
+
}
|
|
67
|
+
this.impliedValues[component] = value;
|
|
68
|
+
return this;
|
|
69
|
+
}
|
|
70
|
+
assign(component, value) {
|
|
71
|
+
this.knownValues[component] = value;
|
|
72
|
+
delete this.impliedValues[component];
|
|
73
|
+
return this;
|
|
74
|
+
}
|
|
75
|
+
delete(component) {
|
|
76
|
+
delete this.knownValues[component];
|
|
77
|
+
delete this.impliedValues[component];
|
|
78
|
+
}
|
|
79
|
+
clone() {
|
|
80
|
+
const component = new ParsingComponents(this.reference);
|
|
81
|
+
component.knownValues = {};
|
|
82
|
+
component.impliedValues = {};
|
|
83
|
+
for (const key in this.knownValues) {
|
|
84
|
+
component.knownValues[key] = this.knownValues[key];
|
|
85
|
+
}
|
|
86
|
+
for (const key in this.impliedValues) {
|
|
87
|
+
component.impliedValues[key] = this.impliedValues[key];
|
|
88
|
+
}
|
|
89
|
+
return component;
|
|
90
|
+
}
|
|
91
|
+
isOnlyDate() {
|
|
92
|
+
return !this.isCertain("hour") && !this.isCertain("minute") && !this.isCertain("second");
|
|
93
|
+
}
|
|
94
|
+
isOnlyTime() {
|
|
95
|
+
return !this.isCertain("weekday") && !this.isCertain("day") && !this.isCertain("month");
|
|
96
|
+
}
|
|
97
|
+
isOnlyWeekdayComponent() {
|
|
98
|
+
return this.isCertain("weekday") && !this.isCertain("day") && !this.isCertain("month");
|
|
99
|
+
}
|
|
100
|
+
isOnlyDayMonthComponent() {
|
|
101
|
+
return this.isCertain("day") && this.isCertain("month") && !this.isCertain("year");
|
|
102
|
+
}
|
|
103
|
+
isValidDate() {
|
|
104
|
+
const date = this.dateWithoutTimezoneAdjustment();
|
|
105
|
+
if (date.getFullYear() !== this.get("year"))
|
|
106
|
+
return false;
|
|
107
|
+
if (date.getMonth() !== this.get("month") - 1)
|
|
108
|
+
return false;
|
|
109
|
+
if (date.getDate() !== this.get("day"))
|
|
110
|
+
return false;
|
|
111
|
+
if (this.get("hour") != null && date.getHours() != this.get("hour"))
|
|
112
|
+
return false;
|
|
113
|
+
if (this.get("minute") != null && date.getMinutes() != this.get("minute"))
|
|
114
|
+
return false;
|
|
115
|
+
return true;
|
|
116
|
+
}
|
|
117
|
+
toString() {
|
|
118
|
+
return `[ParsingComponents {knownValues: ${JSON.stringify(this.knownValues)}, impliedValues: ${JSON.stringify(this.impliedValues)}}, reference: ${JSON.stringify(this.reference)}]`;
|
|
119
|
+
}
|
|
120
|
+
dayjs() {
|
|
121
|
+
return dayjs(this.date());
|
|
122
|
+
}
|
|
123
|
+
date() {
|
|
124
|
+
const date = this.dateWithoutTimezoneAdjustment();
|
|
125
|
+
const timezoneAdjustment = this.reference.getSystemTimezoneAdjustmentMinute(date, this.get("timezoneOffset"));
|
|
126
|
+
return new Date(date.getTime() + timezoneAdjustment * 60000);
|
|
127
|
+
}
|
|
128
|
+
dateWithoutTimezoneAdjustment() {
|
|
129
|
+
const date = new Date(this.get("year"), this.get("month") - 1, this.get("day"), this.get("hour"), this.get("minute"), this.get("second"), this.get("millisecond"));
|
|
130
|
+
date.setFullYear(this.get("year"));
|
|
131
|
+
return date;
|
|
132
|
+
}
|
|
133
|
+
static createRelativeFromReference(reference, fragments) {
|
|
134
|
+
let date = dayjs(reference.instant);
|
|
135
|
+
for (const key in fragments) {
|
|
136
|
+
date = date.add(fragments[key], key);
|
|
137
|
+
}
|
|
138
|
+
const components = new ParsingComponents(reference);
|
|
139
|
+
if (fragments["hour"] || fragments["minute"] || fragments["second"]) {
|
|
140
|
+
assignSimilarTime(components, date);
|
|
141
|
+
assignSimilarDate(components, date);
|
|
142
|
+
if (reference.timezoneOffset !== null) {
|
|
143
|
+
components.assign("timezoneOffset", -reference.instant.getTimezoneOffset());
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
implySimilarTime(components, date);
|
|
148
|
+
if (reference.timezoneOffset !== null) {
|
|
149
|
+
components.imply("timezoneOffset", -reference.instant.getTimezoneOffset());
|
|
150
|
+
}
|
|
151
|
+
if (fragments["d"]) {
|
|
152
|
+
components.assign("day", date.date());
|
|
153
|
+
components.assign("month", date.month() + 1);
|
|
154
|
+
components.assign("year", date.year());
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
if (fragments["week"]) {
|
|
158
|
+
components.imply("weekday", date.day());
|
|
159
|
+
}
|
|
160
|
+
components.imply("day", date.date());
|
|
161
|
+
if (fragments["month"]) {
|
|
162
|
+
components.assign("month", date.month() + 1);
|
|
163
|
+
components.assign("year", date.year());
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
components.imply("month", date.month() + 1);
|
|
167
|
+
if (fragments["year"]) {
|
|
168
|
+
components.assign("year", date.year());
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
components.imply("year", date.year());
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return components;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
export class ParsingResult {
|
|
180
|
+
constructor(reference, index, text, start, end) {
|
|
181
|
+
this.reference = reference;
|
|
182
|
+
this.refDate = reference.instant;
|
|
183
|
+
this.index = index;
|
|
184
|
+
this.text = text;
|
|
185
|
+
this.start = start || new ParsingComponents(reference);
|
|
186
|
+
this.end = end;
|
|
187
|
+
}
|
|
188
|
+
clone() {
|
|
189
|
+
const result = new ParsingResult(this.reference, this.index, this.text);
|
|
190
|
+
result.start = this.start ? this.start.clone() : null;
|
|
191
|
+
result.end = this.end ? this.end.clone() : null;
|
|
192
|
+
return result;
|
|
193
|
+
}
|
|
194
|
+
date() {
|
|
195
|
+
return this.start.date();
|
|
196
|
+
}
|
|
197
|
+
toString() {
|
|
198
|
+
return `[ParsingResult {index: ${this.index}, text: '${this.text}', ...}]`;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
//# sourceMappingURL=results.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"results.js","sourceRoot":"","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AI,aAAa,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACxE,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;QACtD,MAAM,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;QAChD,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,IAAI;QACA,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,CAAC;IAED,QAAQ;QACJ,OAAO,0BAA0B,IAAI,CAAC,KAAK,YAAY,IAAI,CAAC,IAAI,UAAU,CAAC;IAC/E,CAAC;CACJ"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
export declare const TIMEZONE_ABBR_MAP: {
|
|
2
|
+
ACDT: number;
|
|
3
|
+
ACST: number;
|
|
4
|
+
ADT: number;
|
|
5
|
+
AEDT: number;
|
|
6
|
+
AEST: number;
|
|
7
|
+
AFT: number;
|
|
8
|
+
AKDT: number;
|
|
9
|
+
AKST: number;
|
|
10
|
+
ALMT: number;
|
|
11
|
+
AMST: number;
|
|
12
|
+
AMT: number;
|
|
13
|
+
ANAST: number;
|
|
14
|
+
ANAT: number;
|
|
15
|
+
AQTT: number;
|
|
16
|
+
ART: number;
|
|
17
|
+
AST: number;
|
|
18
|
+
AWDT: number;
|
|
19
|
+
AWST: number;
|
|
20
|
+
AZOST: number;
|
|
21
|
+
AZOT: number;
|
|
22
|
+
AZST: number;
|
|
23
|
+
AZT: number;
|
|
24
|
+
BNT: number;
|
|
25
|
+
BOT: number;
|
|
26
|
+
BRST: number;
|
|
27
|
+
BRT: number;
|
|
28
|
+
BST: number;
|
|
29
|
+
BTT: number;
|
|
30
|
+
CAST: number;
|
|
31
|
+
CAT: number;
|
|
32
|
+
CCT: number;
|
|
33
|
+
CDT: number;
|
|
34
|
+
CEST: number;
|
|
35
|
+
CET: number;
|
|
36
|
+
CHADT: number;
|
|
37
|
+
CHAST: number;
|
|
38
|
+
CKT: number;
|
|
39
|
+
CLST: number;
|
|
40
|
+
CLT: number;
|
|
41
|
+
COT: number;
|
|
42
|
+
CST: number;
|
|
43
|
+
CVT: number;
|
|
44
|
+
CXT: number;
|
|
45
|
+
ChST: number;
|
|
46
|
+
DAVT: number;
|
|
47
|
+
EASST: number;
|
|
48
|
+
EAST: number;
|
|
49
|
+
EAT: number;
|
|
50
|
+
ECT: number;
|
|
51
|
+
EDT: number;
|
|
52
|
+
EEST: number;
|
|
53
|
+
EET: number;
|
|
54
|
+
EGST: number;
|
|
55
|
+
EGT: number;
|
|
56
|
+
EST: number;
|
|
57
|
+
ET: number;
|
|
58
|
+
FJST: number;
|
|
59
|
+
FJT: number;
|
|
60
|
+
FKST: number;
|
|
61
|
+
FKT: number;
|
|
62
|
+
FNT: number;
|
|
63
|
+
GALT: number;
|
|
64
|
+
GAMT: number;
|
|
65
|
+
GET: number;
|
|
66
|
+
GFT: number;
|
|
67
|
+
GILT: number;
|
|
68
|
+
GMT: number;
|
|
69
|
+
GST: number;
|
|
70
|
+
GYT: number;
|
|
71
|
+
HAA: number;
|
|
72
|
+
HAC: number;
|
|
73
|
+
HADT: number;
|
|
74
|
+
HAE: number;
|
|
75
|
+
HAP: number;
|
|
76
|
+
HAR: number;
|
|
77
|
+
HAST: number;
|
|
78
|
+
HAT: number;
|
|
79
|
+
HAY: number;
|
|
80
|
+
HKT: number;
|
|
81
|
+
HLV: number;
|
|
82
|
+
HNA: number;
|
|
83
|
+
HNC: number;
|
|
84
|
+
HNE: number;
|
|
85
|
+
HNP: number;
|
|
86
|
+
HNR: number;
|
|
87
|
+
HNT: number;
|
|
88
|
+
HNY: number;
|
|
89
|
+
HOVT: number;
|
|
90
|
+
ICT: number;
|
|
91
|
+
IDT: number;
|
|
92
|
+
IOT: number;
|
|
93
|
+
IRDT: number;
|
|
94
|
+
IRKST: number;
|
|
95
|
+
IRKT: number;
|
|
96
|
+
IRST: number;
|
|
97
|
+
IST: number;
|
|
98
|
+
JST: number;
|
|
99
|
+
KGT: number;
|
|
100
|
+
KRAST: number;
|
|
101
|
+
KRAT: number;
|
|
102
|
+
KST: number;
|
|
103
|
+
KUYT: number;
|
|
104
|
+
LHDT: number;
|
|
105
|
+
LHST: number;
|
|
106
|
+
LINT: number;
|
|
107
|
+
MAGST: number;
|
|
108
|
+
MAGT: number;
|
|
109
|
+
MART: number;
|
|
110
|
+
MAWT: number;
|
|
111
|
+
MDT: number;
|
|
112
|
+
MESZ: number;
|
|
113
|
+
MEZ: number;
|
|
114
|
+
MHT: number;
|
|
115
|
+
MMT: number;
|
|
116
|
+
MSD: number;
|
|
117
|
+
MSK: number;
|
|
118
|
+
MST: number;
|
|
119
|
+
MUT: number;
|
|
120
|
+
MVT: number;
|
|
121
|
+
MYT: number;
|
|
122
|
+
NCT: number;
|
|
123
|
+
NDT: number;
|
|
124
|
+
NFT: number;
|
|
125
|
+
NOVST: number;
|
|
126
|
+
NOVT: number;
|
|
127
|
+
NPT: number;
|
|
128
|
+
NST: number;
|
|
129
|
+
NUT: number;
|
|
130
|
+
NZDT: number;
|
|
131
|
+
NZST: number;
|
|
132
|
+
OMSST: number;
|
|
133
|
+
OMST: number;
|
|
134
|
+
PDT: number;
|
|
135
|
+
PET: number;
|
|
136
|
+
PETST: number;
|
|
137
|
+
PETT: number;
|
|
138
|
+
PGT: number;
|
|
139
|
+
PHOT: number;
|
|
140
|
+
PHT: number;
|
|
141
|
+
PKT: number;
|
|
142
|
+
PMDT: number;
|
|
143
|
+
PMST: number;
|
|
144
|
+
PONT: number;
|
|
145
|
+
PST: number;
|
|
146
|
+
PT: number;
|
|
147
|
+
PWT: number;
|
|
148
|
+
PYST: number;
|
|
149
|
+
PYT: number;
|
|
150
|
+
RET: number;
|
|
151
|
+
SAMT: number;
|
|
152
|
+
SAST: number;
|
|
153
|
+
SBT: number;
|
|
154
|
+
SCT: number;
|
|
155
|
+
SGT: number;
|
|
156
|
+
SRT: number;
|
|
157
|
+
SST: number;
|
|
158
|
+
TAHT: number;
|
|
159
|
+
TFT: number;
|
|
160
|
+
TJT: number;
|
|
161
|
+
TKT: number;
|
|
162
|
+
TLT: number;
|
|
163
|
+
TMT: number;
|
|
164
|
+
TVT: number;
|
|
165
|
+
ULAT: number;
|
|
166
|
+
UTC: number;
|
|
167
|
+
UYST: number;
|
|
168
|
+
UYT: number;
|
|
169
|
+
UZT: number;
|
|
170
|
+
VET: number;
|
|
171
|
+
VLAST: number;
|
|
172
|
+
VLAT: number;
|
|
173
|
+
VUT: number;
|
|
174
|
+
WAST: number;
|
|
175
|
+
WAT: number;
|
|
176
|
+
WEST: number;
|
|
177
|
+
WESZ: number;
|
|
178
|
+
WET: number;
|
|
179
|
+
WEZ: number;
|
|
180
|
+
WFT: number;
|
|
181
|
+
WGST: number;
|
|
182
|
+
WGT: number;
|
|
183
|
+
WIB: number;
|
|
184
|
+
WIT: number;
|
|
185
|
+
WITA: number;
|
|
186
|
+
WST: number;
|
|
187
|
+
WT: number;
|
|
188
|
+
YAKST: number;
|
|
189
|
+
YAKT: number;
|
|
190
|
+
YAPT: number;
|
|
191
|
+
YEKST: number;
|
|
192
|
+
YEKT: number;
|
|
193
|
+
};
|
|
194
|
+
export declare function toTimezoneOffset(timezoneInput?: string | number): number | null;
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
export const TIMEZONE_ABBR_MAP = {
|
|
2
|
+
ACDT: 630,
|
|
3
|
+
ACST: 570,
|
|
4
|
+
ADT: -180,
|
|
5
|
+
AEDT: 660,
|
|
6
|
+
AEST: 600,
|
|
7
|
+
AFT: 270,
|
|
8
|
+
AKDT: -480,
|
|
9
|
+
AKST: -540,
|
|
10
|
+
ALMT: 360,
|
|
11
|
+
AMST: -180,
|
|
12
|
+
AMT: -240,
|
|
13
|
+
ANAST: 720,
|
|
14
|
+
ANAT: 720,
|
|
15
|
+
AQTT: 300,
|
|
16
|
+
ART: -180,
|
|
17
|
+
AST: -240,
|
|
18
|
+
AWDT: 540,
|
|
19
|
+
AWST: 480,
|
|
20
|
+
AZOST: 0,
|
|
21
|
+
AZOT: -60,
|
|
22
|
+
AZST: 300,
|
|
23
|
+
AZT: 240,
|
|
24
|
+
BNT: 480,
|
|
25
|
+
BOT: -240,
|
|
26
|
+
BRST: -120,
|
|
27
|
+
BRT: -180,
|
|
28
|
+
BST: 60,
|
|
29
|
+
BTT: 360,
|
|
30
|
+
CAST: 480,
|
|
31
|
+
CAT: 120,
|
|
32
|
+
CCT: 390,
|
|
33
|
+
CDT: -300,
|
|
34
|
+
CEST: 120,
|
|
35
|
+
CET: 60,
|
|
36
|
+
CHADT: 825,
|
|
37
|
+
CHAST: 765,
|
|
38
|
+
CKT: -600,
|
|
39
|
+
CLST: -180,
|
|
40
|
+
CLT: -240,
|
|
41
|
+
COT: -300,
|
|
42
|
+
CST: -360,
|
|
43
|
+
CVT: -60,
|
|
44
|
+
CXT: 420,
|
|
45
|
+
ChST: 600,
|
|
46
|
+
DAVT: 420,
|
|
47
|
+
EASST: -300,
|
|
48
|
+
EAST: -360,
|
|
49
|
+
EAT: 180,
|
|
50
|
+
ECT: -300,
|
|
51
|
+
EDT: -240,
|
|
52
|
+
EEST: 180,
|
|
53
|
+
EET: 120,
|
|
54
|
+
EGST: 0,
|
|
55
|
+
EGT: -60,
|
|
56
|
+
EST: -300,
|
|
57
|
+
ET: -300,
|
|
58
|
+
FJST: 780,
|
|
59
|
+
FJT: 720,
|
|
60
|
+
FKST: -180,
|
|
61
|
+
FKT: -240,
|
|
62
|
+
FNT: -120,
|
|
63
|
+
GALT: -360,
|
|
64
|
+
GAMT: -540,
|
|
65
|
+
GET: 240,
|
|
66
|
+
GFT: -180,
|
|
67
|
+
GILT: 720,
|
|
68
|
+
GMT: 0,
|
|
69
|
+
GST: 240,
|
|
70
|
+
GYT: -240,
|
|
71
|
+
HAA: -180,
|
|
72
|
+
HAC: -300,
|
|
73
|
+
HADT: -540,
|
|
74
|
+
HAE: -240,
|
|
75
|
+
HAP: -420,
|
|
76
|
+
HAR: -360,
|
|
77
|
+
HAST: -600,
|
|
78
|
+
HAT: -90,
|
|
79
|
+
HAY: -480,
|
|
80
|
+
HKT: 480,
|
|
81
|
+
HLV: -210,
|
|
82
|
+
HNA: -240,
|
|
83
|
+
HNC: -360,
|
|
84
|
+
HNE: -300,
|
|
85
|
+
HNP: -480,
|
|
86
|
+
HNR: -420,
|
|
87
|
+
HNT: -150,
|
|
88
|
+
HNY: -540,
|
|
89
|
+
HOVT: 420,
|
|
90
|
+
ICT: 420,
|
|
91
|
+
IDT: 180,
|
|
92
|
+
IOT: 360,
|
|
93
|
+
IRDT: 270,
|
|
94
|
+
IRKST: 540,
|
|
95
|
+
IRKT: 540,
|
|
96
|
+
IRST: 210,
|
|
97
|
+
IST: 330,
|
|
98
|
+
JST: 540,
|
|
99
|
+
KGT: 360,
|
|
100
|
+
KRAST: 480,
|
|
101
|
+
KRAT: 480,
|
|
102
|
+
KST: 540,
|
|
103
|
+
KUYT: 240,
|
|
104
|
+
LHDT: 660,
|
|
105
|
+
LHST: 630,
|
|
106
|
+
LINT: 840,
|
|
107
|
+
MAGST: 720,
|
|
108
|
+
MAGT: 720,
|
|
109
|
+
MART: -510,
|
|
110
|
+
MAWT: 300,
|
|
111
|
+
MDT: -360,
|
|
112
|
+
MESZ: 120,
|
|
113
|
+
MEZ: 60,
|
|
114
|
+
MHT: 720,
|
|
115
|
+
MMT: 390,
|
|
116
|
+
MSD: 240,
|
|
117
|
+
MSK: 180,
|
|
118
|
+
MST: -420,
|
|
119
|
+
MUT: 240,
|
|
120
|
+
MVT: 300,
|
|
121
|
+
MYT: 480,
|
|
122
|
+
NCT: 660,
|
|
123
|
+
NDT: -90,
|
|
124
|
+
NFT: 690,
|
|
125
|
+
NOVST: 420,
|
|
126
|
+
NOVT: 360,
|
|
127
|
+
NPT: 345,
|
|
128
|
+
NST: -150,
|
|
129
|
+
NUT: -660,
|
|
130
|
+
NZDT: 780,
|
|
131
|
+
NZST: 720,
|
|
132
|
+
OMSST: 420,
|
|
133
|
+
OMST: 420,
|
|
134
|
+
PDT: -420,
|
|
135
|
+
PET: -300,
|
|
136
|
+
PETST: 720,
|
|
137
|
+
PETT: 720,
|
|
138
|
+
PGT: 600,
|
|
139
|
+
PHOT: 780,
|
|
140
|
+
PHT: 480,
|
|
141
|
+
PKT: 300,
|
|
142
|
+
PMDT: -120,
|
|
143
|
+
PMST: -180,
|
|
144
|
+
PONT: 660,
|
|
145
|
+
PST: -480,
|
|
146
|
+
PT: -480,
|
|
147
|
+
PWT: 540,
|
|
148
|
+
PYST: -180,
|
|
149
|
+
PYT: -240,
|
|
150
|
+
RET: 240,
|
|
151
|
+
SAMT: 240,
|
|
152
|
+
SAST: 120,
|
|
153
|
+
SBT: 660,
|
|
154
|
+
SCT: 240,
|
|
155
|
+
SGT: 480,
|
|
156
|
+
SRT: -180,
|
|
157
|
+
SST: -660,
|
|
158
|
+
TAHT: -600,
|
|
159
|
+
TFT: 300,
|
|
160
|
+
TJT: 300,
|
|
161
|
+
TKT: 780,
|
|
162
|
+
TLT: 540,
|
|
163
|
+
TMT: 300,
|
|
164
|
+
TVT: 720,
|
|
165
|
+
ULAT: 480,
|
|
166
|
+
UTC: 0,
|
|
167
|
+
UYST: -120,
|
|
168
|
+
UYT: -180,
|
|
169
|
+
UZT: 300,
|
|
170
|
+
VET: -210,
|
|
171
|
+
VLAST: 660,
|
|
172
|
+
VLAT: 660,
|
|
173
|
+
VUT: 660,
|
|
174
|
+
WAST: 120,
|
|
175
|
+
WAT: 60,
|
|
176
|
+
WEST: 60,
|
|
177
|
+
WESZ: 60,
|
|
178
|
+
WET: 0,
|
|
179
|
+
WEZ: 0,
|
|
180
|
+
WFT: 720,
|
|
181
|
+
WGST: -120,
|
|
182
|
+
WGT: -180,
|
|
183
|
+
WIB: 420,
|
|
184
|
+
WIT: 540,
|
|
185
|
+
WITA: 480,
|
|
186
|
+
WST: 780,
|
|
187
|
+
WT: 0,
|
|
188
|
+
YAKST: 600,
|
|
189
|
+
YAKT: 600,
|
|
190
|
+
YAPT: 600,
|
|
191
|
+
YEKST: 360,
|
|
192
|
+
YEKT: 360,
|
|
193
|
+
};
|
|
194
|
+
export function toTimezoneOffset(timezoneInput) {
|
|
195
|
+
if (timezoneInput === null || timezoneInput === undefined) {
|
|
196
|
+
return null;
|
|
197
|
+
}
|
|
198
|
+
if (typeof timezoneInput === "number") {
|
|
199
|
+
return timezoneInput;
|
|
200
|
+
}
|
|
201
|
+
return TIMEZONE_ABBR_MAP[timezoneInput] ?? null;
|
|
202
|
+
}
|
|
203
|
+
//# sourceMappingURL=timezone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timezone.js","sourceRoot":"","sources":["../../src/timezone.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,GAAG;IACT,GAAG,EAAE,CAAC,GAAG;IACT,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,GAAG;IACT,GAAG,EAAE,GAAG;IACR,IAAI,EAAE,CAAC,GAAG;IACV,IAAI,EAAE,CAAC,GAAG;IACV,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,CAAC,GAAG;IACV,GAAG,EAAE,CAAC,GAAG;IACT,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,GAAG;IACT,GAAG,EAAE,CAAC,GAAG;IACT,GAAG,EAAE,CAAC,GAAG;IACT,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,GAAG;IACT,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC,EAAE;IACT,IAAI,EAAE,GAAG;IACT,GAAG,EAAE,GAAG;IACR,GAAG,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G,EAAE,CAAC,GAAG;IACT,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,GAAG;IACT,GAAG,EAAE,GAAG;IACR,IAAI,EAAE,GAAG;IACT,GAAG,EAAE,EAAE;IACP,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;IACR,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,GAAG;IACR,IAAI,EAAE,CAAC,GAAG;IACV,GAAG,EAAE,CAAC,GAAG;IACT,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,IAAI,EAAE,GAAG;IACT,GAAG,EAAE,GAAG;IACR,EAAE,EAAE,CAAC;IACL,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,GAAG;IACT,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,UAAU,gBAAgB,CAAC,aAA+B;IAC5D,IAAI,aAAa,KAAK,IAAI,IAAI,aAAa,KAAK,SAAS,EAAE;QACvD,OAAO,IAAI,CAAC;KACf;IAED,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;QACnC,OAAO,aAAa,CAAC;KACxB;IAED,OAAO,iBAAiB,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC;AACpD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ParsingComponents } from "../results";
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
|
+
export declare function assignTheNextDay(component: ParsingComponents, targetDayJs: dayjs.Dayjs): void;
|
|
4
|
+
export declare function implyTheNextDay(component: ParsingComponents, targetDayJs: dayjs.Dayjs): void;
|
|
5
|
+
export declare function assignSimilarDate(component: ParsingComponents, targetDayJs: dayjs.Dayjs): void;
|
|
6
|
+
export declare function assignSimilarTime(component: ParsingComponents, targetDayJs: dayjs.Dayjs): void;
|
|
7
|
+
export declare function implySimilarDate(component: ParsingComponents, targetDayJs: dayjs.Dayjs): void;
|
|
8
|
+
export declare function implySimilarTime(component: ParsingComponents, targetDayJs: dayjs.Dayjs): void;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Meridiem } from "../index";
|
|
2
|
+
export function assignTheNextDay(component, targetDayJs) {
|
|
3
|
+
targetDayJs = targetDayJs.add(1, "day");
|
|
4
|
+
assignSimilarDate(component, targetDayJs);
|
|
5
|
+
implySimilarTime(component, targetDayJs);
|
|
6
|
+
}
|
|
7
|
+
export function implyTheNextDay(component, targetDayJs) {
|
|
8
|
+
targetDayJs = targetDayJs.add(1, "day");
|
|
9
|
+
implySimilarDate(component, targetDayJs);
|
|
10
|
+
implySimilarTime(component, targetDayJs);
|
|
11
|
+
}
|
|
12
|
+
export function assignSimilarDate(component, targetDayJs) {
|
|
13
|
+
component.assign("day", targetDayJs.date());
|
|
14
|
+
component.assign("month", targetDayJs.month() + 1);
|
|
15
|
+
component.assign("year", targetDayJs.year());
|
|
16
|
+
}
|
|
17
|
+
export function assignSimilarTime(component, targetDayJs) {
|
|
18
|
+
component.assign("hour", targetDayJs.hour());
|
|
19
|
+
component.assign("minute", targetDayJs.minute());
|
|
20
|
+
component.assign("second", targetDayJs.second());
|
|
21
|
+
component.assign("millisecond", targetDayJs.millisecond());
|
|
22
|
+
if (component.get("hour") < 12) {
|
|
23
|
+
component.assign("meridiem", Meridiem.AM);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
component.assign("meridiem", Meridiem.PM);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export function implySimilarDate(component, targetDayJs) {
|
|
30
|
+
component.imply("day", targetDayJs.date());
|
|
31
|
+
component.imply("month", targetDayJs.month() + 1);
|
|
32
|
+
component.imply("year", targetDayJs.year());
|
|
33
|
+
}
|
|
34
|
+
export function implySimilarTime(component, targetDayJs) {
|
|
35
|
+
component.imply("hour", targetDayJs.hour());
|
|
36
|
+
component.imply("minute", targetDayJs.minute());
|
|
37
|
+
component.imply("second", targetDayJs.second());
|
|
38
|
+
component.imply("millisecond", targetDayJs.millisecond());
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=dayjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dayjs.js","sourceRoot":"","sources":["../../../src/utils/dayjs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,UAAU,gBAAgB,CAAC,SAA4B,EAAE,WAAwB;IACnF,WAAW,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACxC,iBAAiB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IAC1C,gBAAgB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,SAA4B,EAAE,WAAwB;IAClF,WAAW,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACxC,gBAAgB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IACzC,gBAAgB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,SAA4B,EAAE,WAAwB;IACpF,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;IAC5C,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;IACnD,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,SAA4B,EAAE,WAAwB;IACpF,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7C,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC,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function repeatedTimeunitPattern(prefix: string, singleTimeunitPattern: string): string;
|
|
5
|
+
export declare function extractTerms(dictionary: DictionaryLike): string[];
|
|
6
|
+
export declare function matchAnyPattern(dictionary: DictionaryLike): string;
|
|
7
|
+
export {};
|