hrm_ui_lib 1.6.39 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{Alert-fd6d6af9.js → Alert-CpcLdi-S.js} +16 -15
- package/README.md +76 -0
- package/assets/styles/styles.css +170 -74
- package/assets/styles/styles.scss +1 -1
- package/components/Alert/Alert.js +7 -8
- package/components/Alert/index.js +7 -8
- package/components/Alert/types.d.ts +0 -1
- package/components/Avatar/Avatar.js +7 -8
- package/components/Avatar/AvatarGroup.js +7 -8
- package/components/Avatar/index.js +7 -8
- package/components/Breadcrumb/types.d.ts +0 -1
- package/components/Button/Button.js +7 -8
- package/components/Button/index.js +7 -8
- package/components/CardBody/CardBody.js +7 -8
- package/components/CardBody/index.js +7 -8
- package/components/CardSelect/CardSelect.js +7 -8
- package/components/CardSelect/CardSelectGroup.js +7 -8
- package/components/CardSelect/components/CardChips.js +2 -3
- package/components/CardSelect/components/CardInput.js +7 -8
- package/components/CardSelect/components/index.js +7 -8
- package/components/CardSelect/index.js +7 -8
- package/components/Cards/CardItem.js +1 -1
- package/components/Cards/index.js +1 -1
- package/components/Checkbox/Checkbox.js +7 -8
- package/components/Checkbox/index.js +7 -8
- package/components/Checkbox/types.d.ts +0 -1
- package/components/Chips/Chips.js +2 -3
- package/components/Chips/index.js +2 -3
- package/components/Collapse/CollapseGroup/CollapseGroup.js +4 -5
- package/components/Collapse/CollapseItem/CollapseItem.js +2 -3
- package/components/Collapse/index.js +4 -5
- package/components/Copy/Copy.js +7 -8
- package/components/Copy/index.js +7 -8
- package/components/Counter/Counter.js +8 -11
- package/components/Counter/index.js +7 -8
- package/components/DatePicker/CustomHeader/CustomHeader.js +7 -8
- package/components/DatePicker/RangeDatePicker/RangeDatePicker.js +9 -8
- package/components/DatePicker/RangeDatePicker/RangeDatePickerDesktop.d.ts +1 -1
- package/components/DatePicker/RangeDatePicker/RangeDatePickerDesktop.js +10 -13
- package/components/DatePicker/RangeDatePicker/RangeDatePickerMobile.d.ts +1 -1
- package/components/DatePicker/RangeDatePicker/RangeDatePickerMobile.js +10 -12
- package/components/DatePicker/RangeDatePicker/index.js +9 -8
- package/components/DatePicker/SimpleDatePicker/SimpleDatePicker.js +9 -9
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerDesktop.js +9 -9
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerMobile.js +10 -13
- package/components/DatePicker/SimpleDatePicker/index.js +9 -8
- package/components/DatePicker/TimePicker/MobileModalContent.d.ts +1 -0
- package/components/DatePicker/TimePicker/MobileModalContent.js +45 -76
- package/components/DatePicker/TimePicker/TimePicker.js +10 -10
- package/components/DatePicker/TimePicker/TimePickerDesktop.js +9 -9
- package/components/DatePicker/TimePicker/TimePickerMobile.js +8 -10
- package/components/DatePicker/TimePicker/consts.d.ts +4 -0
- package/components/DatePicker/TimePicker/consts.js +8 -0
- package/components/DatePicker/TimePicker/helpers.d.ts +3 -2
- package/components/DatePicker/TimePicker/helpers.js +19 -6
- package/components/DatePicker/TimePicker/index.js +10 -10
- package/components/DatePicker/hooks.js +1425 -1210
- package/components/DatePicker/index.js +12 -10
- package/components/DatePicker/types.d.ts +4 -6
- package/components/Empty/Empty.js +7 -8
- package/components/Empty/index.js +7 -8
- package/components/FileUpload/DropzoneFileUpload/DropzoneFileUpload.js +7 -8
- package/components/FileUpload/DropzoneFileUpload/ErrorItem.js +7 -8
- package/components/FileUpload/DropzoneFileUpload/FilePreview.js +1 -1
- package/components/FileUpload/DropzoneFileUpload/PreviewItem.js +7 -8
- package/components/FileUpload/DropzoneFileUpload/helpers.d.ts +3 -3
- package/components/FileUpload/DropzoneFileUpload/helpers.js +7 -8
- package/components/FileUpload/DropzoneFileUpload/index.js +7 -8
- package/components/FileUpload/FileUpload.js +7 -8
- package/components/FileUpload/UploadItems.js +7 -8
- package/components/FileUpload/index.js +10 -11
- package/components/FileUpload/types.d.ts +3 -3
- package/components/FormContainer/FormContainer.js +9 -10
- package/components/FormContainer/index.js +7 -8
- package/components/FormField/FormField.js +8 -9
- package/components/FormField/index.js +7 -8
- package/components/FormField/types.d.ts +0 -1
- package/components/Input/Input.js +7 -12
- package/components/Input/index.js +7 -8
- package/components/ItemSelect/ItemSelect.js +7 -8
- package/components/ItemSelect/ItemSelectGroup.js +7 -8
- package/components/ItemSelect/index.js +7 -8
- package/components/Link/types.d.ts +0 -1
- package/components/Menu/Menu.js +7 -8
- package/components/Menu/NestedMenu.js +8 -9
- package/components/Menu/index.js +7 -8
- package/components/Modal/Modal.js +7 -8
- package/components/Modal/ModalConfirmation.js +7 -8
- package/components/Modal/ModalContent.js +7 -8
- package/components/Modal/index.js +7 -8
- package/components/More/More.js +7 -8
- package/components/More/index.js +7 -8
- package/components/Pagination/Pagination.js +2 -3
- package/components/Pagination/index.js +2 -3
- package/components/Popover/Popover.js +7 -8
- package/components/Popover/PopoverDesktop.js +2 -3
- package/components/Popover/PopoverMobile.js +7 -8
- package/components/Popover/index.js +7 -8
- package/components/ProgressStep/ProgressStep.js +1 -2
- package/components/ProgressStep/Step.js +1 -2
- package/components/ProgressStep/index.js +1 -2
- package/components/Radio/Radio.js +0 -1
- package/components/Radio/RadioGroup.js +7 -9
- package/components/Radio/index.js +7 -8
- package/components/SVGIcons/IconAdd.js +1 -2
- package/components/SVGIcons/IconAddCircle.js +1 -2
- package/components/SVGIcons/IconAddCircleFilled.js +1 -2
- package/components/SVGIcons/IconAddFilled.js +1 -2
- package/components/SVGIcons/IconAlert.js +1 -2
- package/components/SVGIcons/IconAlertBadge.js +1 -2
- package/components/SVGIcons/IconAlertBadgeFilled.js +1 -2
- package/components/SVGIcons/IconAlertFilled.js +1 -2
- package/components/SVGIcons/IconAm.js +1 -2
- package/components/SVGIcons/IconAmd.js +1 -2
- package/components/SVGIcons/IconAmdFilled.js +1 -2
- package/components/SVGIcons/IconApple.js +1 -2
- package/components/SVGIcons/IconArrowDown.js +1 -2
- package/components/SVGIcons/IconArrowDownFilled.js +1 -2
- package/components/SVGIcons/IconArrowDownLeft.js +1 -2
- package/components/SVGIcons/IconArrowDownLeftFilled.js +1 -2
- package/components/SVGIcons/IconArrowDownload.js +1 -2
- package/components/SVGIcons/IconArrowDownloadFilled.js +1 -2
- package/components/SVGIcons/IconArrowEnter.js +1 -2
- package/components/SVGIcons/IconArrowEnterFilled.js +1 -2
- package/components/SVGIcons/IconArrowExit.js +1 -2
- package/components/SVGIcons/IconArrowExitFilled.js +1 -2
- package/components/SVGIcons/IconArrowExportLeftToRight.js +1 -2
- package/components/SVGIcons/IconArrowExportLeftToRightFilled.js +1 -2
- package/components/SVGIcons/IconArrowExportRightToLeft.js +1 -2
- package/components/SVGIcons/IconArrowExportRightToLeftFilled.js +1 -2
- package/components/SVGIcons/IconArrowExportUp.js +1 -2
- package/components/SVGIcons/IconArrowExportUpFilled.js +1 -2
- package/components/SVGIcons/IconArrowImport.js +1 -2
- package/components/SVGIcons/IconArrowImportFilled.js +1 -2
- package/components/SVGIcons/IconArrowLeft.js +1 -2
- package/components/SVGIcons/IconArrowLeftFilled.js +1 -2
- package/components/SVGIcons/IconArrowRepeatAll.js +1 -2
- package/components/SVGIcons/IconArrowRepeatAllFilled.js +1 -2
- package/components/SVGIcons/IconArrowReset.js +1 -2
- package/components/SVGIcons/IconArrowResetFilled.js +1 -2
- package/components/SVGIcons/IconArrowRight.js +1 -2
- package/components/SVGIcons/IconArrowRightFilled.js +1 -2
- package/components/SVGIcons/IconArrowSort.js +1 -2
- package/components/SVGIcons/IconArrowSortFilled.js +1 -2
- package/components/SVGIcons/IconArrowSync.js +1 -2
- package/components/SVGIcons/IconArrowSyncFilled.js +1 -2
- package/components/SVGIcons/IconArrowUp.js +1 -2
- package/components/SVGIcons/IconArrowUpFilled.js +1 -2
- package/components/SVGIcons/IconArrowUpLeft.js +1 -2
- package/components/SVGIcons/IconArrowUpLeftFilled.js +1 -2
- package/components/SVGIcons/IconArrowUpRight.js +1 -2
- package/components/SVGIcons/IconArrowUpRightFilled.js +1 -2
- package/components/SVGIcons/IconAttach.js +1 -2
- package/components/SVGIcons/IconAttachFilled.js +1 -2
- package/components/SVGIcons/IconBeach.js +1 -2
- package/components/SVGIcons/IconBeachFilled.js +1 -2
- package/components/SVGIcons/IconBook.js +1 -2
- package/components/SVGIcons/IconBookFilled.js +1 -2
- package/components/SVGIcons/IconBookmark.js +1 -2
- package/components/SVGIcons/IconBookmarkFilled.js +1 -2
- package/components/SVGIcons/IconBriefcase.js +1 -2
- package/components/SVGIcons/IconBriefcaseFilled.js +1 -2
- package/components/SVGIcons/IconBuilding.js +1 -2
- package/components/SVGIcons/IconBuildingBank.js +1 -2
- package/components/SVGIcons/IconBuildingBankFilled.js +1 -2
- package/components/SVGIcons/IconBuildingFilled.js +1 -2
- package/components/SVGIcons/IconBulletListAdd.js +1 -2
- package/components/SVGIcons/IconBulletListAddFilled.js +1 -2
- package/components/SVGIcons/IconCalculator.js +1 -2
- package/components/SVGIcons/IconCalculatorFilled.js +1 -2
- package/components/SVGIcons/IconCalendarClock.js +1 -2
- package/components/SVGIcons/IconCalendarClockFilled.js +1 -2
- package/components/SVGIcons/IconCalendarDay.js +1 -2
- package/components/SVGIcons/IconCalendarDayFilled.js +1 -2
- package/components/SVGIcons/IconCalendarEmpty.js +1 -2
- package/components/SVGIcons/IconCalendarLeft.js +1 -2
- package/components/SVGIcons/IconCalendarLeftFilled.js +1 -2
- package/components/SVGIcons/IconCalendarRight.js +1 -2
- package/components/SVGIcons/IconCalendarRightFilled.js +1 -2
- package/components/SVGIcons/IconCall.js +1 -2
- package/components/SVGIcons/IconCallFilled.js +1 -2
- package/components/SVGIcons/IconCard.js +1 -2
- package/components/SVGIcons/IconCardFilled.js +1 -2
- package/components/SVGIcons/IconCaretDown.js +1 -2
- package/components/SVGIcons/IconCaretDownFilled.js +1 -2
- package/components/SVGIcons/IconCaretDownRight.js +1 -2
- package/components/SVGIcons/IconCaretDownRightFilled.js +1 -2
- package/components/SVGIcons/IconCaretLeft.js +1 -2
- package/components/SVGIcons/IconCaretLeftFilled.js +1 -2
- package/components/SVGIcons/IconCaretRight.js +1 -2
- package/components/SVGIcons/IconCaretRightFilled.js +1 -2
- package/components/SVGIcons/IconCaretUp.js +1 -2
- package/components/SVGIcons/IconCaretUpFilled.js +1 -2
- package/components/SVGIcons/IconChat.js +1 -2
- package/components/SVGIcons/IconChatFilled.js +1 -2
- package/components/SVGIcons/IconChatMultiple.js +1 -2
- package/components/SVGIcons/IconChatMultipleFilled.js +1 -2
- package/components/SVGIcons/IconCheckboxArrowRight.js +1 -2
- package/components/SVGIcons/IconCheckboxArrowRightFilled.js +1 -2
- package/components/SVGIcons/IconCheckmark.js +1 -2
- package/components/SVGIcons/IconCheckmarkCircle.js +1 -2
- package/components/SVGIcons/IconCheckmarkCircleFilled.js +1 -2
- package/components/SVGIcons/IconCheckmarkFilled.js +1 -2
- package/components/SVGIcons/IconChevronDown.js +1 -2
- package/components/SVGIcons/IconChevronDownFilled.js +1 -2
- package/components/SVGIcons/IconChevronLeft.js +1 -2
- package/components/SVGIcons/IconChevronLeftFilled.js +1 -2
- package/components/SVGIcons/IconChevronRight.js +1 -2
- package/components/SVGIcons/IconChevronRightFilled.js +1 -2
- package/components/SVGIcons/IconChevronUp.js +1 -2
- package/components/SVGIcons/IconChevronUpDown.js +1 -2
- package/components/SVGIcons/IconChevronUpDownFilled.js +1 -2
- package/components/SVGIcons/IconChevronUpFilled.js +1 -2
- package/components/SVGIcons/IconClipboardDay.js +1 -2
- package/components/SVGIcons/IconClock.js +1 -2
- package/components/SVGIcons/IconClockDismiss.js +1 -2
- package/components/SVGIcons/IconClockDismissFilled.js +1 -2
- package/components/SVGIcons/IconClockFilled.js +1 -2
- package/components/SVGIcons/IconComment.js +1 -2
- package/components/SVGIcons/IconCommentFilled.js +1 -2
- package/components/SVGIcons/IconContractCard.js +1 -2
- package/components/SVGIcons/IconContractCardFilled.js +1 -2
- package/components/SVGIcons/IconCopy.js +1 -2
- package/components/SVGIcons/IconCopyFilled.js +1 -2
- package/components/SVGIcons/IconCubeTree.js +1 -2
- package/components/SVGIcons/IconCubeTreeFilled.js +1 -2
- package/components/SVGIcons/IconDatabase.js +1 -2
- package/components/SVGIcons/IconDatabaseFilled.js +1 -2
- package/components/SVGIcons/IconDelete.js +1 -2
- package/components/SVGIcons/IconDeleteFilled.js +1 -2
- package/components/SVGIcons/IconDeviceMeetingRoom.js +1 -2
- package/components/SVGIcons/IconDeviceMeetingRoomFilled.js +1 -2
- package/components/SVGIcons/IconDismiss.js +1 -2
- package/components/SVGIcons/IconDismissCircle.js +1 -2
- package/components/SVGIcons/IconDismissCircleFilled.js +1 -2
- package/components/SVGIcons/IconDismissFilled.js +1 -2
- package/components/SVGIcons/IconDocument.js +1 -2
- package/components/SVGIcons/IconDocumentBulletList.js +1 -2
- package/components/SVGIcons/IconDocumentBulletListFilled.js +1 -2
- package/components/SVGIcons/IconDocumentEdit.js +1 -2
- package/components/SVGIcons/IconDocumentEditFilled.js +1 -2
- package/components/SVGIcons/IconDocumentFilled.js +1 -2
- package/components/SVGIcons/IconDocumentPerson.js +1 -2
- package/components/SVGIcons/IconEdit.js +1 -2
- package/components/SVGIcons/IconEditFilled.js +1 -2
- package/components/SVGIcons/IconErrorCircle.js +1 -2
- package/components/SVGIcons/IconErrorCircleFilled.js +1 -2
- package/components/SVGIcons/IconEur.js +1 -2
- package/components/SVGIcons/IconEurFilled.js +1 -2
- package/components/SVGIcons/IconExpandUpLeft.js +1 -2
- package/components/SVGIcons/IconExpandUpLeftFilled.js +1 -2
- package/components/SVGIcons/IconExpandUpRight.js +1 -2
- package/components/SVGIcons/IconExpandUpRightFilled.js +1 -2
- package/components/SVGIcons/IconEyeOff.js +1 -2
- package/components/SVGIcons/IconEyeOffFilled.js +1 -2
- package/components/SVGIcons/IconEyeOn.js +1 -2
- package/components/SVGIcons/IconEyeOnFilled.js +1 -2
- package/components/SVGIcons/IconFacebook.js +1 -2
- package/components/SVGIcons/IconFilter.js +1 -2
- package/components/SVGIcons/IconFilterFilled.js +1 -2
- package/components/SVGIcons/IconFlag.js +1 -2
- package/components/SVGIcons/IconFlagFilled.js +1 -2
- package/components/SVGIcons/IconFolderLink.js +1 -2
- package/components/SVGIcons/IconFolderLinkFilled.js +1 -2
- package/components/SVGIcons/IconGb.js +1 -2
- package/components/SVGIcons/IconGlobe.js +1 -2
- package/components/SVGIcons/IconGlobeFilled.js +1 -2
- package/components/SVGIcons/IconGoogle.js +1 -2
- package/components/SVGIcons/IconHandOpenHeart.js +1 -2
- package/components/SVGIcons/IconHandOpenHeartFilled.js +1 -2
- package/components/SVGIcons/IconHeart.js +1 -2
- package/components/SVGIcons/IconHeartFilled.js +1 -2
- package/components/SVGIcons/IconHistory.js +1 -2
- package/components/SVGIcons/IconHistoryFilled.js +1 -2
- package/components/SVGIcons/IconHome.js +1 -2
- package/components/SVGIcons/IconHomeFilled.js +1 -2
- package/components/SVGIcons/IconImage.js +1 -2
- package/components/SVGIcons/IconImageFilled.js +1 -2
- package/components/SVGIcons/IconInfo.js +1 -2
- package/components/SVGIcons/IconInfoFilled.js +1 -2
- package/components/SVGIcons/IconInstagram.js +1 -2
- package/components/SVGIcons/IconKeyReset.js +1 -2
- package/components/SVGIcons/IconKeyResetFilled.js +1 -2
- package/components/SVGIcons/IconLink.js +1 -2
- package/components/SVGIcons/IconLinkFilled.js +1 -2
- package/components/SVGIcons/IconLinkedin.js +1 -2
- package/components/SVGIcons/IconList.js +1 -2
- package/components/SVGIcons/IconListFilled.js +1 -2
- package/components/SVGIcons/IconLocation.js +1 -2
- package/components/SVGIcons/IconLocationFilled.js +1 -2
- package/components/SVGIcons/IconLockClosed.js +1 -2
- package/components/SVGIcons/IconLockClosedFilled.js +1 -2
- package/components/SVGIcons/IconLockOpen.js +1 -2
- package/components/SVGIcons/IconLockOpenFilled.js +1 -2
- package/components/SVGIcons/IconMail.js +1 -2
- package/components/SVGIcons/IconMailAdd.js +1 -2
- package/components/SVGIcons/IconMailAddFilled.js +1 -2
- package/components/SVGIcons/IconMailArrowForward.js +1 -2
- package/components/SVGIcons/IconMailArrowForwardFilled.js +1 -2
- package/components/SVGIcons/IconMailFilled.js +1 -2
- package/components/SVGIcons/IconMailLink.js +1 -2
- package/components/SVGIcons/IconMailLinkFilled.js +1 -2
- package/components/SVGIcons/IconMedium.js +1 -2
- package/components/SVGIcons/IconMore.js +1 -2
- package/components/SVGIcons/IconMoreFilled.js +1 -2
- package/components/SVGIcons/IconMoreVertical.js +1 -2
- package/components/SVGIcons/IconMoreVerticalFilled.js +1 -2
- package/components/SVGIcons/IconNavigation.js +1 -2
- package/components/SVGIcons/IconNavigationFilled.js +1 -2
- package/components/SVGIcons/IconNotebook.js +1 -2
- package/components/SVGIcons/IconNotebookAdd.js +1 -2
- package/components/SVGIcons/IconNotebookAddFilled.js +1 -2
- package/components/SVGIcons/IconNotebookFilled.js +1 -2
- package/components/SVGIcons/IconOnlyEmployee.js +1 -2
- package/components/SVGIcons/IconOpen.js +1 -2
- package/components/SVGIcons/IconOpenFilled.js +1 -2
- package/components/SVGIcons/IconPatient.js +1 -2
- package/components/SVGIcons/IconPatientFilled.js +1 -2
- package/components/SVGIcons/IconPeople.js +1 -2
- package/components/SVGIcons/IconPeopleAdd.js +1 -2
- package/components/SVGIcons/IconPeopleAddFilled.js +1 -2
- package/components/SVGIcons/IconPeopleFilled.js +1 -2
- package/components/SVGIcons/IconPercent.js +1 -2
- package/components/SVGIcons/IconPerson.js +1 -2
- package/components/SVGIcons/IconPersonAccount.js +1 -2
- package/components/SVGIcons/IconPersonAccountFilled.js +1 -2
- package/components/SVGIcons/IconPersonAdd.js +1 -2
- package/components/SVGIcons/IconPersonAddFilled.js +1 -2
- package/components/SVGIcons/IconPersonArrowLeft.js +1 -2
- package/components/SVGIcons/IconPersonArrowRight.js +1 -2
- package/components/SVGIcons/IconPersonBoard.js +1 -2
- package/components/SVGIcons/IconPersonFilled.js +1 -2
- package/components/SVGIcons/IconPersonStar.js +1 -2
- package/components/SVGIcons/IconPersonStarFilled.js +1 -2
- package/components/SVGIcons/IconPersonSubtract.js +1 -2
- package/components/SVGIcons/IconPersonSubtractFilled.js +1 -2
- package/components/SVGIcons/IconPhone.js +1 -2
- package/components/SVGIcons/IconPhoneFilled.js +1 -2
- package/components/SVGIcons/IconPlugConnected.js +1 -2
- package/components/SVGIcons/IconPos.js +1 -2
- package/components/SVGIcons/IconPosFilled.js +1 -2
- package/components/SVGIcons/IconProhibited.js +1 -2
- package/components/SVGIcons/IconProhibitedFilled.js +1 -2
- package/components/SVGIcons/IconProjectProduct.js +1 -2
- package/components/SVGIcons/IconQuestion.js +1 -2
- package/components/SVGIcons/IconQuestionFilled.js +1 -2
- package/components/SVGIcons/IconRedo.js +1 -2
- package/components/SVGIcons/IconRedoFilled.js +1 -2
- package/components/SVGIcons/IconRu.js +1 -2
- package/components/SVGIcons/IconRub.js +1 -2
- package/components/SVGIcons/IconRubFilled.js +1 -2
- package/components/SVGIcons/IconSave.js +1 -2
- package/components/SVGIcons/IconSaveFilled.js +1 -2
- package/components/SVGIcons/IconSavings.js +1 -2
- package/components/SVGIcons/IconSavingsFilled.js +1 -2
- package/components/SVGIcons/IconSearch.js +1 -2
- package/components/SVGIcons/IconSearchFilled.js +1 -2
- package/components/SVGIcons/IconSelectAllOff.js +1 -2
- package/components/SVGIcons/IconSelectAllOffFilled.js +1 -2
- package/components/SVGIcons/IconSelectAllOn.js +1 -2
- package/components/SVGIcons/IconSelectAllOnFilled.js +1 -2
- package/components/SVGIcons/IconSend.js +1 -2
- package/components/SVGIcons/IconSendFilled.js +1 -2
- package/components/SVGIcons/IconSettings.js +1 -2
- package/components/SVGIcons/IconSettingsFilled.js +1 -2
- package/components/SVGIcons/IconShare.js +1 -2
- package/components/SVGIcons/IconShareAndroid.js +1 -2
- package/components/SVGIcons/IconShareAndroidFilled.js +1 -2
- package/components/SVGIcons/IconShareFilled.js +1 -2
- package/components/SVGIcons/IconSignOut.js +1 -2
- package/components/SVGIcons/IconSignOutFilled.js +1 -2
- package/components/SVGIcons/IconSpinner.js +1 -2
- package/components/SVGIcons/IconSpinnerFilled.js +1 -2
- package/components/SVGIcons/IconStatus.js +1 -2
- package/components/SVGIcons/IconStatusFilled.js +1 -2
- package/components/SVGIcons/IconSubtract.js +1 -2
- package/components/SVGIcons/IconSubtractCircle.js +1 -2
- package/components/SVGIcons/IconSubtractCircleFilled.js +1 -2
- package/components/SVGIcons/IconSubtractFilled.js +1 -2
- package/components/SVGIcons/IconTableCellEdit.js +1 -2
- package/components/SVGIcons/IconTableCellEditFilled.js +1 -2
- package/components/SVGIcons/IconTelegram.js +1 -2
- package/components/SVGIcons/IconTimer.js +1 -2
- package/components/SVGIcons/IconTimerFilled.js +1 -2
- package/components/SVGIcons/IconTwitter.js +1 -2
- package/components/SVGIcons/IconUndo.js +1 -2
- package/components/SVGIcons/IconUndoFilled.js +1 -2
- package/components/SVGIcons/IconUnitsEmployee.js +1 -2
- package/components/SVGIcons/IconUpload.js +1 -2
- package/components/SVGIcons/IconUsd.js +1 -2
- package/components/SVGIcons/IconUsdFilled.js +1 -2
- package/components/SVGIcons/IconUserMinus.js +1 -2
- package/components/SVGIcons/IconVideo.js +1 -2
- package/components/SVGIcons/IconVideoFilled.js +1 -2
- package/components/SVGIcons/IconWallet.js +1 -2
- package/components/SVGIcons/IconWalletFilled.js +1 -2
- package/components/SVGIcons/IconWarning.js +1 -2
- package/components/SVGIcons/IconWarningFilled.js +1 -2
- package/components/SVGIcons/IconYoutube.js +1 -2
- package/components/SVGIcons/index.js +1 -2
- package/components/Select/ButtonSelect/ButtonSelect.js +7 -8
- package/components/Select/FilterSelect/FilterDropdown.js +7 -8
- package/components/Select/FilterSelect/FilterGroupDropdown.js +7 -8
- package/components/Select/FilterSelect/FilterSelect.js +7 -8
- package/components/Select/MultiSelect/DesktopWrapper.js +3 -4
- package/components/Select/MultiSelect/MobileWrapper.js +7 -8
- package/components/Select/MultiSelect/MultiBase/MultiBase.js +20 -21
- package/components/Select/MultiSelect/MultiSelect.js +8 -10
- package/components/Select/MultiSelect/MultiSelectGrouped/MultiSelectGrouped.js +19 -20
- package/components/Select/MultiSelect/MultiSelectWithTabs/MultiSelectWithTabs.js +21 -22
- package/components/Select/MultiSelect/OptionsWrapper.js +8 -11
- package/components/Select/NestedSelect/NestedSelect.js +7 -8
- package/components/Select/ProfileDropdown/index.js +2 -3
- package/components/Select/Select/Select.js +8 -9
- package/components/Select/Select/SelectDesktop/index.js +9 -10
- package/components/Select/Select/SelectMobile/MobileTopContent.js +7 -8
- package/components/Select/Select/SelectMobile/index.js +7 -8
- package/components/Select/SharedComponents/Actions.js +7 -8
- package/components/Select/SharedComponents/ButtonSelectWrapper/Button/Button.js +1 -2
- package/components/Select/SharedComponents/ButtonSelectWrapper/ButtonSelectWrapper.js +7 -8
- package/components/Select/SharedComponents/ContentTop.js +7 -8
- package/components/Select/SharedComponents/Footer.js +8 -9
- package/components/Select/SharedComponents/InputSelectWrapper/InputSelectWrapper.js +7 -8
- package/components/Select/SharedComponents/index.js +7 -8
- package/components/Select/index.js +7 -8
- package/components/SideNavigation/NavigationItem/index.js +2 -3
- package/components/SideNavigation/SideNavigation.js +1 -2
- package/components/SideNavigation/index.js +2 -3
- package/components/SideSheet/Footer/Footer.js +7 -8
- package/components/SideSheet/SideSheet.js +8 -9
- package/components/SideSheet/index.js +7 -8
- package/components/Snackbar/Snackbar.js +9 -10
- package/components/Snackbar/index.js +7 -8
- package/components/Snackbar/types.d.ts +0 -1
- package/components/Status/Status.js +2 -3
- package/components/Status/index.js +2 -3
- package/components/Stepper/Stepper.js +1 -1
- package/components/Stepper/index.js +1 -1
- package/components/Stepper/types.d.ts +0 -1
- package/components/Switcher/Switcher.js +7 -9
- package/components/Switcher/index.js +7 -8
- package/components/Switcher/types.d.ts +0 -1
- package/components/Tab/Tab.js +3 -4
- package/components/Tab/TabItem.js +2 -3
- package/components/Tab/index.js +3 -4
- package/components/Tab/types.d.ts +0 -1
- package/components/Table/Header.js +8 -9
- package/components/Table/IndeterminateCheckbox.js +7 -9
- package/components/Table/Row.js +7 -8
- package/components/Table/Table.js +7 -8
- package/components/Table/index.js +7 -8
- package/components/Table/utils.js +7 -8
- package/components/Textarea/Textarea.js +7 -8
- package/components/Textarea/index.js +7 -8
- package/components/Textarea/types.d.ts +0 -1
- package/components/Tooltip/Tooltip.js +2 -3
- package/components/Tooltip/index.js +2 -3
- package/consts/index.js +1 -2
- package/context/FormContextProvider.d.ts +1 -1
- package/context/types.d.ts +0 -1
- package/helperComponents/ErrorMessage/types.d.ts +0 -1
- package/helperComponents/GoToWebPage/GoToWebPage.js +7 -8
- package/helperComponents/IconDynamicComponent/constants.js +0 -1
- package/helperComponents/OptionItem/OptionItem.js +7 -8
- package/helperComponents/OptionItem/index.js +7 -8
- package/helperComponents/index.js +8 -9
- package/helpers/check-authorization.js +9 -10
- package/helpers/format-date.js +19 -6
- package/helpers/index.js +7 -8
- package/helpers/isDeepEqual.js +1 -1
- package/hooks/index.js +2 -3
- package/hooks/useChangePositionsOnScroll.js +1 -2
- package/hooks/useDispatchEventOnScroll.js +1 -2
- package/hooks/useGetIsMobile.js +2 -3
- package/hooks/useGetTooltipStyles.d.ts +1 -1
- package/hooks/useHideBodyScroll.js +1 -1
- package/hooks/useHideOnScroll.js +1 -2
- package/hooks/useOnOutsideClick.js +0 -1
- package/hooks/useScreenSize.js +2 -3
- package/index.js +30 -28
- package/package.json +13 -13
- package/utils/helpers.d.ts +1 -1
- package/_commonjsHelpers-27689335.js +0 -3
- package/defineProperty-2ff83f38.js +0 -28
- package/extends-3e40af1f.js +0 -11
- package/objectWithoutProperties-0edf05e5.js +0 -23
- package/slicedToArray-2d190e96.js +0 -55
- package/stories/Alert.stories.d.ts +0 -22
- package/stories/Avatar.stories.d.ts +0 -29
- package/stories/Badge.stories.d.ts +0 -22
- package/stories/Breadcrumb.stories.d.ts +0 -8
- package/stories/Button.stories.d.ts +0 -22
- package/stories/CardBody.stories.d.ts +0 -8
- package/stories/CardSelect.stories.d.ts +0 -24
- package/stories/Cards.stories.d.ts +0 -8
- package/stories/Checkbox.stories.d.ts +0 -9
- package/stories/Chips.stories.d.ts +0 -28
- package/stories/Collapse.stories.d.ts +0 -12
- package/stories/Container.stories.d.ts +0 -7
- package/stories/Copy.stories.d.ts +0 -9
- package/stories/Counter.stories.d.ts +0 -8
- package/stories/DatePicker.stories.d.ts +0 -16
- package/stories/Divider.stories.d.ts +0 -4
- package/stories/Empty.stories.d.ts +0 -16
- package/stories/FileUpload.stories.d.ts +0 -9
- package/stories/Form.stories.d.ts +0 -7
- package/stories/Heading.stories.d.ts +0 -36
- package/stories/Image.stories.d.ts +0 -4
- package/stories/Input.stories.d.ts +0 -16
- package/stories/ItemSelect.stories.d.ts +0 -9
- package/stories/Link.stories.d.ts +0 -8
- package/stories/Menu.stories.d.ts +0 -17
- package/stories/Modal.stories.d.ts +0 -17
- package/stories/More.stories.d.ts +0 -7
- package/stories/NavigationItem.stories.d.ts +0 -13
- package/stories/Pagination.stories.d.ts +0 -16
- package/stories/Popover.stories.d.ts +0 -16
- package/stories/Progress.stories.d.ts +0 -22
- package/stories/ProgressStep.stories.d.ts +0 -28
- package/stories/Radio.stories.d.ts +0 -10
- package/stories/SVGIcons.stories.d.ts +0 -29
- package/stories/Select.stories.d.ts +0 -25
- package/stories/SideNavigation.stories.d.ts +0 -13
- package/stories/SideSheet.stories.d.ts +0 -16
- package/stories/Snackbar.stories.d.ts +0 -17
- package/stories/Status.stories.d.ts +0 -22
- package/stories/Stepper.stories.d.ts +0 -7
- package/stories/Switcher.stories.d.ts +0 -16
- package/stories/Tab.stories.d.ts +0 -22
- package/stories/Table.stories.d.ts +0 -8
- package/stories/Text.stories.d.ts +0 -42
- package/stories/Textarea.stories.d.ts +0 -8
- package/stories/Tooltip.stories.d.ts +0 -22
- package/toConsumableArray-f6050ff2.js +0 -19
- package/typeof-de618fd6.js +0 -11
|
@@ -1,626 +1,363 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
2
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
|
+
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
2
4
|
import { useState, useEffect } from 'react';
|
|
3
5
|
import { registerLocale } from 'react-datepicker';
|
|
4
|
-
import dayjs, { locale
|
|
5
|
-
import { _ as _typeof$1 } from '../../typeof-de618fd6.js';
|
|
6
|
-
import { c as commonjsGlobal } from '../../_commonjsHelpers-27689335.js';
|
|
6
|
+
import dayjs, { locale } from 'dayjs';
|
|
7
7
|
import { DayJSLocale } from '../../type/locale.js';
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
try {
|
|
11
|
-
var i = n[a](c),
|
|
12
|
-
u = i.value;
|
|
13
|
-
} catch (n) {
|
|
14
|
-
return void e(n);
|
|
15
|
-
}
|
|
16
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
17
|
-
}
|
|
18
|
-
function _asyncToGenerator(n) {
|
|
19
|
-
return function () {
|
|
20
|
-
var t = this,
|
|
21
|
-
e = arguments;
|
|
22
|
-
return new Promise(function (r, o) {
|
|
23
|
-
var a = n.apply(t, e);
|
|
24
|
-
function _next(n) {
|
|
25
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
26
|
-
}
|
|
27
|
-
function _throw(n) {
|
|
28
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
29
|
-
}
|
|
30
|
-
_next(void 0);
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
var regeneratorRuntime$1 = {exports: {}};
|
|
36
|
-
|
|
37
|
-
var OverloadYield = {exports: {}};
|
|
38
|
-
|
|
39
|
-
(function (module) {
|
|
40
|
-
function _OverloadYield(e, d) {
|
|
41
|
-
this.v = e, this.k = d;
|
|
42
|
-
}
|
|
43
|
-
module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
44
|
-
} (OverloadYield));
|
|
45
|
-
|
|
46
|
-
var regenerator$1 = {exports: {}};
|
|
47
|
-
|
|
48
|
-
var regeneratorDefine = {exports: {}};
|
|
49
|
-
|
|
50
|
-
(function (module) {
|
|
51
|
-
function _regeneratorDefine(e, r, n, t) {
|
|
52
|
-
var i = Object.defineProperty;
|
|
53
|
-
try {
|
|
54
|
-
i({}, "", {});
|
|
55
|
-
} catch (e) {
|
|
56
|
-
i = 0;
|
|
57
|
-
}
|
|
58
|
-
module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) {
|
|
59
|
-
if (r) i ? i(e, r, {
|
|
60
|
-
value: n,
|
|
61
|
-
enumerable: !t,
|
|
62
|
-
configurable: !t,
|
|
63
|
-
writable: !t
|
|
64
|
-
}) : e[r] = n;else {
|
|
65
|
-
var o = function o(r, n) {
|
|
66
|
-
_regeneratorDefine(e, r, function (e) {
|
|
67
|
-
return this._invoke(r, n, e);
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
o("next", 0), o("throw", 1), o("return", 2);
|
|
71
|
-
}
|
|
72
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t);
|
|
73
|
-
}
|
|
74
|
-
module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
75
|
-
} (regeneratorDefine));
|
|
76
|
-
|
|
77
|
-
(function (module) {
|
|
78
|
-
var regeneratorDefine$1 = regeneratorDefine.exports;
|
|
79
|
-
function _regenerator() {
|
|
80
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
81
|
-
var e,
|
|
82
|
-
t,
|
|
83
|
-
r = "function" == typeof Symbol ? Symbol : {},
|
|
84
|
-
n = r.iterator || "@@iterator",
|
|
85
|
-
o = r.toStringTag || "@@toStringTag";
|
|
86
|
-
function i(r, n, o, i) {
|
|
87
|
-
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
88
|
-
u = Object.create(c.prototype);
|
|
89
|
-
return regeneratorDefine$1(u, "_invoke", function (r, n, o) {
|
|
90
|
-
var i,
|
|
91
|
-
c,
|
|
92
|
-
u,
|
|
93
|
-
f = 0,
|
|
94
|
-
p = o || [],
|
|
95
|
-
y = !1,
|
|
96
|
-
G = {
|
|
97
|
-
p: 0,
|
|
98
|
-
n: 0,
|
|
99
|
-
v: e,
|
|
100
|
-
a: d,
|
|
101
|
-
f: d.bind(e, 4),
|
|
102
|
-
d: function d(t, r) {
|
|
103
|
-
return i = t, c = 0, u = e, G.n = r, a;
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
function d(r, n) {
|
|
107
|
-
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
108
|
-
var o,
|
|
109
|
-
i = p[t],
|
|
110
|
-
d = G.p,
|
|
111
|
-
l = i[2];
|
|
112
|
-
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
113
|
-
}
|
|
114
|
-
if (o || r > 1) return a;
|
|
115
|
-
throw y = !0, n;
|
|
116
|
-
}
|
|
117
|
-
return function (o, p, l) {
|
|
118
|
-
if (f > 1) throw TypeError("Generator is already running");
|
|
119
|
-
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
120
|
-
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
121
|
-
try {
|
|
122
|
-
if (f = 2, i) {
|
|
123
|
-
if (c || (o = "next"), t = i[o]) {
|
|
124
|
-
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
125
|
-
if (!t.done) return t;
|
|
126
|
-
u = t.value, c < 2 && (c = 0);
|
|
127
|
-
} else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
128
|
-
i = e;
|
|
129
|
-
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
130
|
-
} catch (t) {
|
|
131
|
-
i = e, c = 1, u = t;
|
|
132
|
-
} finally {
|
|
133
|
-
f = 1;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
return {
|
|
137
|
-
value: t,
|
|
138
|
-
done: y
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
}(r, o, i), !0), u;
|
|
142
|
-
}
|
|
143
|
-
var a = {};
|
|
144
|
-
function Generator() {}
|
|
145
|
-
function GeneratorFunction() {}
|
|
146
|
-
function GeneratorFunctionPrototype() {}
|
|
147
|
-
t = Object.getPrototypeOf;
|
|
148
|
-
var c = [][n] ? t(t([][n]())) : (regeneratorDefine$1(t = {}, n, function () {
|
|
149
|
-
return this;
|
|
150
|
-
}), t),
|
|
151
|
-
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
152
|
-
function f(e) {
|
|
153
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine$1(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
154
|
-
}
|
|
155
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, regeneratorDefine$1(u, "constructor", GeneratorFunctionPrototype), regeneratorDefine$1(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", regeneratorDefine$1(GeneratorFunctionPrototype, o, "GeneratorFunction"), regeneratorDefine$1(u), regeneratorDefine$1(u, o, "Generator"), regeneratorDefine$1(u, n, function () {
|
|
156
|
-
return this;
|
|
157
|
-
}), regeneratorDefine$1(u, "toString", function () {
|
|
158
|
-
return "[object Generator]";
|
|
159
|
-
}), (module.exports = _regenerator = function _regenerator() {
|
|
160
|
-
return {
|
|
161
|
-
w: i,
|
|
162
|
-
m: f
|
|
163
|
-
};
|
|
164
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports)();
|
|
165
|
-
}
|
|
166
|
-
module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
167
|
-
} (regenerator$1));
|
|
168
|
-
|
|
169
|
-
var regeneratorAsync = {exports: {}};
|
|
170
|
-
|
|
171
|
-
var regeneratorAsyncGen = {exports: {}};
|
|
172
|
-
|
|
173
|
-
var regeneratorAsyncIterator = {exports: {}};
|
|
174
|
-
|
|
175
|
-
(function (module) {
|
|
176
|
-
var OverloadYield$1 = OverloadYield.exports;
|
|
177
|
-
var regeneratorDefine$1 = regeneratorDefine.exports;
|
|
178
|
-
function AsyncIterator(t, e) {
|
|
179
|
-
function n(r, o, i, f) {
|
|
180
|
-
try {
|
|
181
|
-
var c = t[r](o),
|
|
182
|
-
u = c.value;
|
|
183
|
-
return u instanceof OverloadYield$1 ? e.resolve(u.v).then(function (t) {
|
|
184
|
-
n("next", t, i, f);
|
|
185
|
-
}, function (t) {
|
|
186
|
-
n("throw", t, i, f);
|
|
187
|
-
}) : e.resolve(u).then(function (t) {
|
|
188
|
-
c.value = t, i(c);
|
|
189
|
-
}, function (t) {
|
|
190
|
-
return n("throw", t, i, f);
|
|
191
|
-
});
|
|
192
|
-
} catch (t) {
|
|
193
|
-
f(t);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
var r;
|
|
197
|
-
this.next || (regeneratorDefine$1(AsyncIterator.prototype), regeneratorDefine$1(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () {
|
|
198
|
-
return this;
|
|
199
|
-
})), regeneratorDefine$1(this, "_invoke", function (t, o, i) {
|
|
200
|
-
function f() {
|
|
201
|
-
return new e(function (e, r) {
|
|
202
|
-
n(t, i, e, r);
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
return r = r ? r.then(f, f) : f();
|
|
206
|
-
}, !0);
|
|
207
|
-
}
|
|
208
|
-
module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
209
|
-
} (regeneratorAsyncIterator));
|
|
210
|
-
|
|
211
|
-
(function (module) {
|
|
212
|
-
var regenerator = regenerator$1.exports;
|
|
213
|
-
var regeneratorAsyncIterator$1 = regeneratorAsyncIterator.exports;
|
|
214
|
-
function _regeneratorAsyncGen(r, e, t, o, n) {
|
|
215
|
-
return new regeneratorAsyncIterator$1(regenerator().w(r, e, t, o), n || Promise);
|
|
216
|
-
}
|
|
217
|
-
module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
218
|
-
} (regeneratorAsyncGen));
|
|
219
|
-
|
|
220
|
-
(function (module) {
|
|
221
|
-
var regeneratorAsyncGen$1 = regeneratorAsyncGen.exports;
|
|
222
|
-
function _regeneratorAsync(n, e, r, t, o) {
|
|
223
|
-
var a = regeneratorAsyncGen$1(n, e, r, t, o);
|
|
224
|
-
return a.next().then(function (n) {
|
|
225
|
-
return n.done ? n.value : a.next();
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
229
|
-
} (regeneratorAsync));
|
|
230
|
-
|
|
231
|
-
var regeneratorKeys = {exports: {}};
|
|
232
|
-
|
|
233
|
-
(function (module) {
|
|
234
|
-
function _regeneratorKeys(e) {
|
|
235
|
-
var n = Object(e),
|
|
236
|
-
r = [];
|
|
237
|
-
for (var t in n) r.unshift(t);
|
|
238
|
-
return function e() {
|
|
239
|
-
for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e;
|
|
240
|
-
return e.done = !0, e;
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
244
|
-
} (regeneratorKeys));
|
|
245
|
-
|
|
246
|
-
var regeneratorValues = {exports: {}};
|
|
247
|
-
|
|
248
|
-
var _typeof = {exports: {}};
|
|
249
|
-
|
|
250
|
-
(function (module) {
|
|
251
|
-
function _typeof(o) {
|
|
252
|
-
"@babel/helpers - typeof";
|
|
253
|
-
|
|
254
|
-
return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
255
|
-
return typeof o;
|
|
256
|
-
} : function (o) {
|
|
257
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
258
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
|
|
259
|
-
}
|
|
260
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
261
|
-
} (_typeof));
|
|
262
|
-
|
|
263
|
-
(function (module) {
|
|
264
|
-
var _typeof$1 = _typeof.exports["default"];
|
|
265
|
-
function _regeneratorValues(e) {
|
|
266
|
-
if (null != e) {
|
|
267
|
-
var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
|
|
268
|
-
r = 0;
|
|
269
|
-
if (t) return t.call(e);
|
|
270
|
-
if ("function" == typeof e.next) return e;
|
|
271
|
-
if (!isNaN(e.length)) return {
|
|
272
|
-
next: function next() {
|
|
273
|
-
return e && r >= e.length && (e = void 0), {
|
|
274
|
-
value: e && e[r++],
|
|
275
|
-
done: !e
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
}
|
|
280
|
-
throw new TypeError(_typeof$1(e) + " is not iterable");
|
|
281
|
-
}
|
|
282
|
-
module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
283
|
-
} (regeneratorValues));
|
|
284
|
-
|
|
285
|
-
(function (module) {
|
|
286
|
-
var OverloadYield$1 = OverloadYield.exports;
|
|
287
|
-
var regenerator = regenerator$1.exports;
|
|
288
|
-
var regeneratorAsync$1 = regeneratorAsync.exports;
|
|
289
|
-
var regeneratorAsyncGen$1 = regeneratorAsyncGen.exports;
|
|
290
|
-
var regeneratorAsyncIterator$1 = regeneratorAsyncIterator.exports;
|
|
291
|
-
var regeneratorKeys$1 = regeneratorKeys.exports;
|
|
292
|
-
var regeneratorValues$1 = regeneratorValues.exports;
|
|
293
|
-
function _regeneratorRuntime() {
|
|
294
|
-
|
|
295
|
-
var r = regenerator(),
|
|
296
|
-
e = r.m(_regeneratorRuntime),
|
|
297
|
-
t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
|
|
298
|
-
function n(r) {
|
|
299
|
-
var e = "function" == typeof r && r.constructor;
|
|
300
|
-
return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name));
|
|
301
|
-
}
|
|
302
|
-
var o = {
|
|
303
|
-
"throw": 1,
|
|
304
|
-
"return": 2,
|
|
305
|
-
"break": 3,
|
|
306
|
-
"continue": 3
|
|
307
|
-
};
|
|
308
|
-
function a(r) {
|
|
309
|
-
var e, t;
|
|
310
|
-
return function (n) {
|
|
311
|
-
e || (e = {
|
|
312
|
-
stop: function stop() {
|
|
313
|
-
return t(n.a, 2);
|
|
314
|
-
},
|
|
315
|
-
"catch": function _catch() {
|
|
316
|
-
return n.v;
|
|
317
|
-
},
|
|
318
|
-
abrupt: function abrupt(r, e) {
|
|
319
|
-
return t(n.a, o[r], e);
|
|
320
|
-
},
|
|
321
|
-
delegateYield: function delegateYield(r, o, a) {
|
|
322
|
-
return e.resultName = o, t(n.d, regeneratorValues$1(r), a);
|
|
323
|
-
},
|
|
324
|
-
finish: function finish(r) {
|
|
325
|
-
return t(n.f, r);
|
|
326
|
-
}
|
|
327
|
-
}, t = function t(r, _t, o) {
|
|
328
|
-
n.p = e.prev, n.n = e.next;
|
|
329
|
-
try {
|
|
330
|
-
return r(_t, o);
|
|
331
|
-
} finally {
|
|
332
|
-
e.next = n.n;
|
|
333
|
-
}
|
|
334
|
-
}), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n;
|
|
335
|
-
try {
|
|
336
|
-
return r.call(this, e);
|
|
337
|
-
} finally {
|
|
338
|
-
n.p = e.prev, n.n = e.next;
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
}
|
|
342
|
-
return (module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
343
|
-
return {
|
|
344
|
-
wrap: function wrap(e, t, n, o) {
|
|
345
|
-
return r.w(a(e), t, n, o && o.reverse());
|
|
346
|
-
},
|
|
347
|
-
isGeneratorFunction: n,
|
|
348
|
-
mark: r.m,
|
|
349
|
-
awrap: function awrap(r, e) {
|
|
350
|
-
return new OverloadYield$1(r, e);
|
|
351
|
-
},
|
|
352
|
-
AsyncIterator: regeneratorAsyncIterator$1,
|
|
353
|
-
async: function async(r, e, t, o, u) {
|
|
354
|
-
return (n(e) ? regeneratorAsyncGen$1 : regeneratorAsync$1)(a(r), e, t, o, u);
|
|
355
|
-
},
|
|
356
|
-
keys: regeneratorKeys$1,
|
|
357
|
-
values: regeneratorValues$1
|
|
358
|
-
};
|
|
359
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports)();
|
|
360
|
-
}
|
|
361
|
-
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
362
|
-
} (regeneratorRuntime$1));
|
|
363
|
-
|
|
364
|
-
// TODO(Babel 8): Remove this file.
|
|
365
|
-
|
|
366
|
-
var runtime = regeneratorRuntime$1.exports();
|
|
367
|
-
var regenerator = runtime;
|
|
368
|
-
|
|
369
|
-
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
370
|
-
try {
|
|
371
|
-
regeneratorRuntime = runtime;
|
|
372
|
-
} catch (accidentalStrictMode) {
|
|
373
|
-
if (typeof globalThis === "object") {
|
|
374
|
-
globalThis.regeneratorRuntime = runtime;
|
|
375
|
-
} else {
|
|
376
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
var formatDistanceLocale$2 = {
|
|
9
|
+
const formatDistanceLocale$2 = {
|
|
381
10
|
lessThanXSeconds: {
|
|
382
|
-
one:
|
|
383
|
-
other:
|
|
11
|
+
one: "ավելի քիչ քան 1 վայրկյան",
|
|
12
|
+
other: "ավելի քիչ քան {{count}} վայրկյան",
|
|
384
13
|
},
|
|
14
|
+
|
|
385
15
|
xSeconds: {
|
|
386
|
-
one:
|
|
387
|
-
other:
|
|
16
|
+
one: "1 վայրկյան",
|
|
17
|
+
other: "{{count}} վայրկյան",
|
|
388
18
|
},
|
|
389
|
-
|
|
19
|
+
|
|
20
|
+
halfAMinute: "կես րոպե",
|
|
21
|
+
|
|
390
22
|
lessThanXMinutes: {
|
|
391
|
-
one:
|
|
392
|
-
other:
|
|
23
|
+
one: "ավելի քիչ քան 1 րոպե",
|
|
24
|
+
other: "ավելի քիչ քան {{count}} րոպե",
|
|
393
25
|
},
|
|
26
|
+
|
|
394
27
|
xMinutes: {
|
|
395
|
-
one:
|
|
396
|
-
other:
|
|
28
|
+
one: "1 րոպե",
|
|
29
|
+
other: "{{count}} րոպե",
|
|
397
30
|
},
|
|
31
|
+
|
|
398
32
|
aboutXHours: {
|
|
399
|
-
one:
|
|
400
|
-
other:
|
|
33
|
+
one: "մոտ 1 ժամ",
|
|
34
|
+
other: "մոտ {{count}} ժամ",
|
|
401
35
|
},
|
|
36
|
+
|
|
402
37
|
xHours: {
|
|
403
|
-
one:
|
|
404
|
-
other:
|
|
38
|
+
one: "1 ժամ",
|
|
39
|
+
other: "{{count}} ժամ",
|
|
405
40
|
},
|
|
41
|
+
|
|
406
42
|
xDays: {
|
|
407
|
-
one:
|
|
408
|
-
other:
|
|
43
|
+
one: "1 օր",
|
|
44
|
+
other: "{{count}} օր",
|
|
409
45
|
},
|
|
46
|
+
|
|
410
47
|
aboutXWeeks: {
|
|
411
|
-
one:
|
|
412
|
-
other:
|
|
48
|
+
one: "մոտ 1 շաբաթ",
|
|
49
|
+
other: "մոտ {{count}} շաբաթ",
|
|
413
50
|
},
|
|
51
|
+
|
|
414
52
|
xWeeks: {
|
|
415
|
-
one:
|
|
416
|
-
other:
|
|
53
|
+
one: "1 շաբաթ",
|
|
54
|
+
other: "{{count}} շաբաթ",
|
|
417
55
|
},
|
|
56
|
+
|
|
418
57
|
aboutXMonths: {
|
|
419
|
-
one:
|
|
420
|
-
other:
|
|
58
|
+
one: "մոտ 1 ամիս",
|
|
59
|
+
other: "մոտ {{count}} ամիս",
|
|
421
60
|
},
|
|
61
|
+
|
|
422
62
|
xMonths: {
|
|
423
|
-
one:
|
|
424
|
-
other:
|
|
63
|
+
one: "1 ամիս",
|
|
64
|
+
other: "{{count}} ամիս",
|
|
425
65
|
},
|
|
66
|
+
|
|
426
67
|
aboutXYears: {
|
|
427
|
-
one:
|
|
428
|
-
other:
|
|
68
|
+
one: "մոտ 1 տարի",
|
|
69
|
+
other: "մոտ {{count}} տարի",
|
|
429
70
|
},
|
|
71
|
+
|
|
430
72
|
xYears: {
|
|
431
|
-
one:
|
|
432
|
-
other:
|
|
73
|
+
one: "1 տարի",
|
|
74
|
+
other: "{{count}} տարի",
|
|
433
75
|
},
|
|
76
|
+
|
|
434
77
|
overXYears: {
|
|
435
|
-
one:
|
|
436
|
-
other:
|
|
78
|
+
one: "ավելի քան 1 տարի",
|
|
79
|
+
other: "ավելի քան {{count}} տարի",
|
|
437
80
|
},
|
|
81
|
+
|
|
438
82
|
almostXYears: {
|
|
439
|
-
one:
|
|
440
|
-
other:
|
|
441
|
-
}
|
|
83
|
+
one: "համարյա 1 տարի",
|
|
84
|
+
other: "համարյա {{count}} տարի",
|
|
85
|
+
},
|
|
442
86
|
};
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
87
|
+
|
|
88
|
+
const formatDistance$2 = (token, count, options) => {
|
|
89
|
+
let result;
|
|
90
|
+
|
|
91
|
+
const tokenValue = formatDistanceLocale$2[token];
|
|
92
|
+
if (typeof tokenValue === "string") {
|
|
447
93
|
result = tokenValue;
|
|
448
94
|
} else if (count === 1) {
|
|
449
95
|
result = tokenValue.one;
|
|
450
96
|
} else {
|
|
451
|
-
result = tokenValue.other.replace(
|
|
97
|
+
result = tokenValue.other.replace("{{count}}", String(count));
|
|
452
98
|
}
|
|
453
|
-
|
|
99
|
+
|
|
100
|
+
if (options?.addSuffix) {
|
|
454
101
|
if (options.comparison && options.comparison > 0) {
|
|
455
|
-
return result +
|
|
102
|
+
return result + " հետո";
|
|
456
103
|
} else {
|
|
457
|
-
return result +
|
|
104
|
+
return result + " առաջ";
|
|
458
105
|
}
|
|
459
106
|
}
|
|
107
|
+
|
|
460
108
|
return result;
|
|
461
109
|
};
|
|
462
110
|
|
|
463
111
|
function buildFormatLongFn(args) {
|
|
464
|
-
return
|
|
465
|
-
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
112
|
+
return (options = {}) => {
|
|
466
113
|
// TODO: Remove String()
|
|
467
|
-
|
|
468
|
-
|
|
114
|
+
const width = options.width ? String(options.width) : args.defaultWidth;
|
|
115
|
+
const format = args.formats[width] || args.formats[args.defaultWidth];
|
|
469
116
|
return format;
|
|
470
117
|
};
|
|
471
118
|
}
|
|
472
119
|
|
|
473
|
-
|
|
474
|
-
full:
|
|
475
|
-
long:
|
|
476
|
-
medium:
|
|
477
|
-
short:
|
|
120
|
+
const dateFormats$2 = {
|
|
121
|
+
full: "d MMMM, y, EEEE",
|
|
122
|
+
long: "d MMMM, y",
|
|
123
|
+
medium: "d MMM, y",
|
|
124
|
+
short: "dd.MM.yyyy",
|
|
478
125
|
};
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
126
|
+
|
|
127
|
+
const timeFormats$2 = {
|
|
128
|
+
full: "HH:mm:ss zzzz",
|
|
129
|
+
long: "HH:mm:ss z",
|
|
130
|
+
medium: "HH:mm:ss",
|
|
131
|
+
short: "HH:mm",
|
|
484
132
|
};
|
|
485
|
-
|
|
133
|
+
|
|
134
|
+
const dateTimeFormats$2 = {
|
|
486
135
|
full: "{{date}} 'ժ․'{{time}}",
|
|
487
136
|
long: "{{date}} 'ժ․'{{time}}",
|
|
488
|
-
medium:
|
|
489
|
-
short:
|
|
137
|
+
medium: "{{date}}, {{time}}",
|
|
138
|
+
short: "{{date}}, {{time}}",
|
|
490
139
|
};
|
|
491
|
-
|
|
140
|
+
|
|
141
|
+
const formatLong$2 = {
|
|
492
142
|
date: buildFormatLongFn({
|
|
493
143
|
formats: dateFormats$2,
|
|
494
|
-
defaultWidth:
|
|
144
|
+
defaultWidth: "full",
|
|
495
145
|
}),
|
|
146
|
+
|
|
496
147
|
time: buildFormatLongFn({
|
|
497
148
|
formats: timeFormats$2,
|
|
498
|
-
defaultWidth:
|
|
149
|
+
defaultWidth: "full",
|
|
499
150
|
}),
|
|
151
|
+
|
|
500
152
|
dateTime: buildFormatLongFn({
|
|
501
153
|
formats: dateTimeFormats$2,
|
|
502
|
-
defaultWidth:
|
|
503
|
-
})
|
|
154
|
+
defaultWidth: "full",
|
|
155
|
+
}),
|
|
504
156
|
};
|
|
505
157
|
|
|
506
|
-
|
|
158
|
+
const formatRelativeLocale$2 = {
|
|
507
159
|
lastWeek: "'նախորդ' eeee p'֊ին'",
|
|
508
160
|
yesterday: "'երեկ' p'֊ին'",
|
|
509
161
|
today: "'այսօր' p'֊ին'",
|
|
510
162
|
tomorrow: "'վաղը' p'֊ին'",
|
|
511
163
|
nextWeek: "'հաջորդ' eeee p'֊ին'",
|
|
512
|
-
other:
|
|
513
|
-
};
|
|
514
|
-
var formatRelative$2 = function formatRelative(token, _date, _baseDate, _options) {
|
|
515
|
-
return formatRelativeLocale$2[token];
|
|
164
|
+
other: "P",
|
|
516
165
|
};
|
|
517
166
|
|
|
167
|
+
const formatRelative$2 = (token, _date, _baseDate, _options) =>
|
|
168
|
+
formatRelativeLocale$2[token];
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* The localize function argument callback which allows to convert raw value to
|
|
172
|
+
* the actual type.
|
|
173
|
+
*
|
|
174
|
+
* @param value - The value to convert
|
|
175
|
+
*
|
|
176
|
+
* @returns The converted value
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* The map of localized values for each width.
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* The index type of the locale unit value. It types conversion of units of
|
|
185
|
+
* values that don't start at 0 (i.e. quarters).
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Converts the unit value to the tuple of values.
|
|
190
|
+
*/
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* The tuple of localized era values. The first element represents BC,
|
|
194
|
+
* the second element represents AD.
|
|
195
|
+
*/
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The tuple of localized quarter values. The first element represents Q1.
|
|
199
|
+
*/
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* The tuple of localized day values. The first element represents Sunday.
|
|
203
|
+
*/
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* The tuple of localized month values. The first element represents January.
|
|
207
|
+
*/
|
|
208
|
+
|
|
518
209
|
function buildLocalizeFn(args) {
|
|
519
|
-
return
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
210
|
+
return (value, options) => {
|
|
211
|
+
const context = options?.context ? String(options.context) : "standalone";
|
|
212
|
+
|
|
213
|
+
let valuesArray;
|
|
214
|
+
if (context === "formatting" && args.formattingValues) {
|
|
215
|
+
const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
|
|
216
|
+
const width = options?.width ? String(options.width) : defaultWidth;
|
|
217
|
+
|
|
218
|
+
valuesArray =
|
|
219
|
+
args.formattingValues[width] || args.formattingValues[defaultWidth];
|
|
526
220
|
} else {
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
221
|
+
const defaultWidth = args.defaultWidth;
|
|
222
|
+
const width = options?.width ? String(options.width) : args.defaultWidth;
|
|
223
|
+
|
|
224
|
+
valuesArray = args.values[width] || args.values[defaultWidth];
|
|
530
225
|
}
|
|
531
|
-
|
|
532
|
-
|
|
226
|
+
const index = args.argumentCallback ? args.argumentCallback(value) : value;
|
|
227
|
+
|
|
228
|
+
// @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
|
|
533
229
|
return valuesArray[index];
|
|
534
230
|
};
|
|
535
231
|
}
|
|
536
232
|
|
|
537
|
-
|
|
538
|
-
narrow: [
|
|
539
|
-
abbreviated: [
|
|
540
|
-
wide: [
|
|
541
|
-
};
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
233
|
+
const eraValues$2 = {
|
|
234
|
+
narrow: ["Ք", "Մ"],
|
|
235
|
+
abbreviated: ["ՔԱ", "ՄԹ"],
|
|
236
|
+
wide: ["Քրիստոսից առաջ", "Մեր թվարկության"],
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
const quarterValues$2 = {
|
|
240
|
+
narrow: ["1", "2", "3", "4"],
|
|
241
|
+
abbreviated: ["Ք1", "Ք2", "Ք3", "Ք4"],
|
|
242
|
+
wide: ["1֊ին քառորդ", "2֊րդ քառորդ", "3֊րդ քառորդ", "4֊րդ քառորդ"],
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
const monthValues$2 = {
|
|
246
|
+
narrow: ["Հ", "Փ", "Մ", "Ա", "Մ", "Հ", "Հ", "Օ", "Ս", "Հ", "Ն", "Դ"],
|
|
247
|
+
abbreviated: [
|
|
248
|
+
"հուն",
|
|
249
|
+
"փետ",
|
|
250
|
+
"մար",
|
|
251
|
+
"ապր",
|
|
252
|
+
"մայ",
|
|
253
|
+
"հուն",
|
|
254
|
+
"հուլ",
|
|
255
|
+
"օգս",
|
|
256
|
+
"սեպ",
|
|
257
|
+
"հոկ",
|
|
258
|
+
"նոյ",
|
|
259
|
+
"դեկ",
|
|
260
|
+
],
|
|
261
|
+
|
|
262
|
+
wide: [
|
|
263
|
+
"հունվար",
|
|
264
|
+
"փետրվար",
|
|
265
|
+
"մարտ",
|
|
266
|
+
"ապրիլ",
|
|
267
|
+
"մայիս",
|
|
268
|
+
"հունիս",
|
|
269
|
+
"հուլիս",
|
|
270
|
+
"օգոստոս",
|
|
271
|
+
"սեպտեմբեր",
|
|
272
|
+
"հոկտեմբեր",
|
|
273
|
+
"նոյեմբեր",
|
|
274
|
+
"դեկտեմբեր",
|
|
275
|
+
],
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
const dayValues$2 = {
|
|
279
|
+
narrow: ["Կ", "Ե", "Ե", "Չ", "Հ", "Ո", "Շ"],
|
|
280
|
+
short: ["կր", "եր", "եք", "չք", "հգ", "ուր", "շբ"],
|
|
281
|
+
abbreviated: ["կիր", "երկ", "երք", "չոր", "հնգ", "ուրբ", "շաբ"],
|
|
282
|
+
wide: [
|
|
283
|
+
"կիրակի",
|
|
284
|
+
"երկուշաբթի",
|
|
285
|
+
"երեքշաբթի",
|
|
286
|
+
"չորեքշաբթի",
|
|
287
|
+
"հինգշաբթի",
|
|
288
|
+
"ուրբաթ",
|
|
289
|
+
"շաբաթ",
|
|
290
|
+
],
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
const dayPeriodValues$2 = {
|
|
559
294
|
narrow: {
|
|
560
|
-
am:
|
|
561
|
-
pm:
|
|
562
|
-
midnight:
|
|
563
|
-
noon:
|
|
564
|
-
morning:
|
|
565
|
-
afternoon:
|
|
566
|
-
evening:
|
|
567
|
-
night:
|
|
295
|
+
am: "a",
|
|
296
|
+
pm: "p",
|
|
297
|
+
midnight: "կեսգշ",
|
|
298
|
+
noon: "կեսօր",
|
|
299
|
+
morning: "առավոտ",
|
|
300
|
+
afternoon: "ցերեկ",
|
|
301
|
+
evening: "երեկո",
|
|
302
|
+
night: "գիշեր",
|
|
568
303
|
},
|
|
569
304
|
abbreviated: {
|
|
570
|
-
am:
|
|
571
|
-
pm:
|
|
572
|
-
midnight:
|
|
573
|
-
noon:
|
|
574
|
-
morning:
|
|
575
|
-
afternoon:
|
|
576
|
-
evening:
|
|
577
|
-
night:
|
|
305
|
+
am: "AM",
|
|
306
|
+
pm: "PM",
|
|
307
|
+
midnight: "կեսգիշեր",
|
|
308
|
+
noon: "կեսօր",
|
|
309
|
+
morning: "առավոտ",
|
|
310
|
+
afternoon: "ցերեկ",
|
|
311
|
+
evening: "երեկո",
|
|
312
|
+
night: "գիշեր",
|
|
578
313
|
},
|
|
579
314
|
wide: {
|
|
580
|
-
am:
|
|
581
|
-
pm:
|
|
582
|
-
midnight:
|
|
583
|
-
noon:
|
|
584
|
-
morning:
|
|
585
|
-
afternoon:
|
|
586
|
-
evening:
|
|
587
|
-
night:
|
|
588
|
-
}
|
|
315
|
+
am: "a.m.",
|
|
316
|
+
pm: "p.m.",
|
|
317
|
+
midnight: "կեսգիշեր",
|
|
318
|
+
noon: "կեսօր",
|
|
319
|
+
morning: "առավոտ",
|
|
320
|
+
afternoon: "ցերեկ",
|
|
321
|
+
evening: "երեկո",
|
|
322
|
+
night: "գիշեր",
|
|
323
|
+
},
|
|
589
324
|
};
|
|
590
|
-
|
|
325
|
+
|
|
326
|
+
const formattingDayPeriodValues$2 = {
|
|
591
327
|
narrow: {
|
|
592
|
-
am:
|
|
593
|
-
pm:
|
|
594
|
-
midnight:
|
|
595
|
-
noon:
|
|
596
|
-
morning:
|
|
597
|
-
afternoon:
|
|
598
|
-
evening:
|
|
599
|
-
night:
|
|
328
|
+
am: "a",
|
|
329
|
+
pm: "p",
|
|
330
|
+
midnight: "կեսգշ",
|
|
331
|
+
noon: "կեսօր",
|
|
332
|
+
morning: "առավոտը",
|
|
333
|
+
afternoon: "ցերեկը",
|
|
334
|
+
evening: "երեկոյան",
|
|
335
|
+
night: "գիշերը",
|
|
600
336
|
},
|
|
601
337
|
abbreviated: {
|
|
602
|
-
am:
|
|
603
|
-
pm:
|
|
604
|
-
midnight:
|
|
605
|
-
noon:
|
|
606
|
-
morning:
|
|
607
|
-
afternoon:
|
|
608
|
-
evening:
|
|
609
|
-
night:
|
|
338
|
+
am: "AM",
|
|
339
|
+
pm: "PM",
|
|
340
|
+
midnight: "կեսգիշերին",
|
|
341
|
+
noon: "կեսօրին",
|
|
342
|
+
morning: "առավոտը",
|
|
343
|
+
afternoon: "ցերեկը",
|
|
344
|
+
evening: "երեկոյան",
|
|
345
|
+
night: "գիշերը",
|
|
610
346
|
},
|
|
611
347
|
wide: {
|
|
612
|
-
am:
|
|
613
|
-
pm:
|
|
614
|
-
midnight:
|
|
615
|
-
noon:
|
|
616
|
-
morning:
|
|
617
|
-
afternoon:
|
|
618
|
-
evening:
|
|
619
|
-
night:
|
|
620
|
-
}
|
|
348
|
+
am: "a.m.",
|
|
349
|
+
pm: "p.m.",
|
|
350
|
+
midnight: "կեսգիշերին",
|
|
351
|
+
noon: "կեսօրին",
|
|
352
|
+
morning: "առավոտը",
|
|
353
|
+
afternoon: "ցերեկը",
|
|
354
|
+
evening: "երեկոյան",
|
|
355
|
+
night: "գիշերը",
|
|
356
|
+
},
|
|
621
357
|
};
|
|
622
|
-
|
|
623
|
-
|
|
358
|
+
|
|
359
|
+
const ordinalNumber$2 = (dirtyNumber, _options) => {
|
|
360
|
+
const number = Number(dirtyNumber);
|
|
624
361
|
|
|
625
362
|
// If ordinal numbers depend on context, for example,
|
|
626
363
|
// if they are different for different grammatical genders,
|
|
@@ -629,79 +366,98 @@ var ordinalNumber$2 = function ordinalNumber(dirtyNumber, _options) {
|
|
|
629
366
|
// `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
|
|
630
367
|
// 'day', 'hour', 'minute', 'second'.
|
|
631
368
|
|
|
632
|
-
|
|
369
|
+
const rem100 = number % 100;
|
|
633
370
|
if (rem100 < 10) {
|
|
634
371
|
if (rem100 % 10 === 1) {
|
|
635
|
-
return number +
|
|
372
|
+
return number + "֊ին";
|
|
636
373
|
}
|
|
637
374
|
}
|
|
638
|
-
return number +
|
|
375
|
+
return number + "֊րդ";
|
|
639
376
|
};
|
|
640
|
-
|
|
377
|
+
|
|
378
|
+
const localize$2 = {
|
|
641
379
|
ordinalNumber: ordinalNumber$2,
|
|
380
|
+
|
|
642
381
|
era: buildLocalizeFn({
|
|
643
382
|
values: eraValues$2,
|
|
644
|
-
defaultWidth:
|
|
383
|
+
defaultWidth: "wide",
|
|
645
384
|
}),
|
|
385
|
+
|
|
646
386
|
quarter: buildLocalizeFn({
|
|
647
387
|
values: quarterValues$2,
|
|
648
|
-
defaultWidth:
|
|
649
|
-
argumentCallback:
|
|
650
|
-
return quarter - 1;
|
|
651
|
-
}
|
|
388
|
+
defaultWidth: "wide",
|
|
389
|
+
argumentCallback: (quarter) => quarter - 1,
|
|
652
390
|
}),
|
|
391
|
+
|
|
653
392
|
month: buildLocalizeFn({
|
|
654
393
|
values: monthValues$2,
|
|
655
|
-
defaultWidth:
|
|
394
|
+
defaultWidth: "wide",
|
|
656
395
|
}),
|
|
396
|
+
|
|
657
397
|
day: buildLocalizeFn({
|
|
658
398
|
values: dayValues$2,
|
|
659
|
-
defaultWidth:
|
|
399
|
+
defaultWidth: "wide",
|
|
660
400
|
}),
|
|
401
|
+
|
|
661
402
|
dayPeriod: buildLocalizeFn({
|
|
662
403
|
values: dayPeriodValues$2,
|
|
663
|
-
defaultWidth:
|
|
404
|
+
defaultWidth: "wide",
|
|
664
405
|
formattingValues: formattingDayPeriodValues$2,
|
|
665
|
-
defaultFormattingWidth:
|
|
666
|
-
})
|
|
406
|
+
defaultFormattingWidth: "wide",
|
|
407
|
+
}),
|
|
667
408
|
};
|
|
668
409
|
|
|
669
410
|
function buildMatchFn(args) {
|
|
670
|
-
return
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
411
|
+
return (string, options = {}) => {
|
|
412
|
+
const width = options.width;
|
|
413
|
+
|
|
414
|
+
const matchPattern =
|
|
415
|
+
(width && args.matchPatterns[width]) ||
|
|
416
|
+
args.matchPatterns[args.defaultMatchWidth];
|
|
417
|
+
const matchResult = string.match(matchPattern);
|
|
418
|
+
|
|
675
419
|
if (!matchResult) {
|
|
676
420
|
return null;
|
|
677
421
|
}
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
422
|
+
const matchedString = matchResult[0];
|
|
423
|
+
|
|
424
|
+
const parsePatterns =
|
|
425
|
+
(width && args.parsePatterns[width]) ||
|
|
426
|
+
args.parsePatterns[args.defaultParseWidth];
|
|
427
|
+
|
|
428
|
+
const key = Array.isArray(parsePatterns)
|
|
429
|
+
? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))
|
|
430
|
+
: // [TODO] -- I challenge you to fix the type
|
|
431
|
+
findKey(parsePatterns, (pattern) => pattern.test(matchedString));
|
|
432
|
+
|
|
433
|
+
let value;
|
|
434
|
+
|
|
686
435
|
value = args.valueCallback ? args.valueCallback(key) : key;
|
|
687
|
-
value = options.valueCallback
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
436
|
+
value = options.valueCallback
|
|
437
|
+
? // [TODO] -- I challenge you to fix the type
|
|
438
|
+
options.valueCallback(value)
|
|
439
|
+
: value;
|
|
440
|
+
|
|
441
|
+
const rest = string.slice(matchedString.length);
|
|
442
|
+
|
|
443
|
+
return { value, rest };
|
|
693
444
|
};
|
|
694
445
|
}
|
|
446
|
+
|
|
695
447
|
function findKey(object, predicate) {
|
|
696
|
-
for (
|
|
697
|
-
if (
|
|
448
|
+
for (const key in object) {
|
|
449
|
+
if (
|
|
450
|
+
Object.prototype.hasOwnProperty.call(object, key) &&
|
|
451
|
+
predicate(object[key])
|
|
452
|
+
) {
|
|
698
453
|
return key;
|
|
699
454
|
}
|
|
700
455
|
}
|
|
701
456
|
return undefined;
|
|
702
457
|
}
|
|
458
|
+
|
|
703
459
|
function findIndex(array, predicate) {
|
|
704
|
-
for (
|
|
460
|
+
for (let key = 0; key < array.length; key++) {
|
|
705
461
|
if (predicate(array[key])) {
|
|
706
462
|
return key;
|
|
707
463
|
}
|
|
@@ -710,67 +466,103 @@ function findIndex(array, predicate) {
|
|
|
710
466
|
}
|
|
711
467
|
|
|
712
468
|
function buildMatchPatternFn(args) {
|
|
713
|
-
return
|
|
714
|
-
|
|
715
|
-
var matchResult = string.match(args.matchPattern);
|
|
469
|
+
return (string, options = {}) => {
|
|
470
|
+
const matchResult = string.match(args.matchPattern);
|
|
716
471
|
if (!matchResult) return null;
|
|
717
|
-
|
|
718
|
-
|
|
472
|
+
const matchedString = matchResult[0];
|
|
473
|
+
|
|
474
|
+
const parseResult = string.match(args.parsePattern);
|
|
719
475
|
if (!parseResult) return null;
|
|
720
|
-
|
|
476
|
+
let value = args.valueCallback
|
|
477
|
+
? args.valueCallback(parseResult[0])
|
|
478
|
+
: parseResult[0];
|
|
479
|
+
|
|
480
|
+
// [TODO] I challenge you to fix the type
|
|
721
481
|
value = options.valueCallback ? options.valueCallback(value) : value;
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
};
|
|
482
|
+
|
|
483
|
+
const rest = string.slice(matchedString.length);
|
|
484
|
+
|
|
485
|
+
return { value, rest };
|
|
727
486
|
};
|
|
728
487
|
}
|
|
729
488
|
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
489
|
+
const matchOrdinalNumberPattern$2 = /^(\d+)((-|֊)?(ին|րդ))?/i;
|
|
490
|
+
const parseOrdinalNumberPattern$2 = /\d+/i;
|
|
491
|
+
|
|
492
|
+
const matchEraPatterns$2 = {
|
|
733
493
|
narrow: /^(Ք|Մ)/i,
|
|
734
494
|
abbreviated: /^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i,
|
|
735
|
-
wide: /^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i
|
|
495
|
+
wide: /^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i,
|
|
736
496
|
};
|
|
737
|
-
|
|
738
|
-
any: [/^ք/i, /^մ/i]
|
|
497
|
+
const parseEraPatterns$2 = {
|
|
498
|
+
any: [/^ք/i, /^մ/i],
|
|
739
499
|
};
|
|
740
|
-
|
|
500
|
+
|
|
501
|
+
const matchQuarterPatterns$2 = {
|
|
741
502
|
narrow: /^[1234]/i,
|
|
742
503
|
abbreviated: /^ք[1234]/i,
|
|
743
|
-
wide: /^[1234]((-|֊)?(ին|րդ)) քառորդ/i
|
|
504
|
+
wide: /^[1234]((-|֊)?(ին|րդ)) քառորդ/i,
|
|
744
505
|
};
|
|
745
|
-
|
|
746
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
506
|
+
const parseQuarterPatterns$2 = {
|
|
507
|
+
any: [/1/i, /2/i, /3/i, /4/i],
|
|
747
508
|
};
|
|
748
|
-
|
|
509
|
+
|
|
510
|
+
const matchMonthPatterns$2 = {
|
|
749
511
|
narrow: /^[հփմաօսնդ]/i,
|
|
750
512
|
abbreviated: /^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i,
|
|
751
|
-
wide: /^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i
|
|
752
|
-
};
|
|
753
|
-
|
|
754
|
-
narrow: [
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
513
|
+
wide: /^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i,
|
|
514
|
+
};
|
|
515
|
+
const parseMonthPatterns$2 = {
|
|
516
|
+
narrow: [
|
|
517
|
+
/^հ/i,
|
|
518
|
+
/^փ/i,
|
|
519
|
+
/^մ/i,
|
|
520
|
+
/^ա/i,
|
|
521
|
+
/^մ/i,
|
|
522
|
+
/^հ/i,
|
|
523
|
+
/^հ/i,
|
|
524
|
+
/^օ/i,
|
|
525
|
+
/^ս/i,
|
|
526
|
+
/^հ/i,
|
|
527
|
+
/^ն/i,
|
|
528
|
+
/^դ/i,
|
|
529
|
+
],
|
|
530
|
+
|
|
531
|
+
any: [
|
|
532
|
+
/^հու/i,
|
|
533
|
+
/^փ/i,
|
|
534
|
+
/^մար/i,
|
|
535
|
+
/^ա/i,
|
|
536
|
+
/^մայ/i,
|
|
537
|
+
/^հուն/i,
|
|
538
|
+
/^հուլ/i,
|
|
539
|
+
/^օ/i,
|
|
540
|
+
/^ս/i,
|
|
541
|
+
/^հոկ/i,
|
|
542
|
+
/^ն/i,
|
|
543
|
+
/^դ/i,
|
|
544
|
+
],
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
const matchDayPatterns$2 = {
|
|
758
548
|
narrow: /^[եչհոշկ]/i,
|
|
759
549
|
short: /^(կր|եր|եք|չք|հգ|ուր|շբ)/i,
|
|
760
550
|
abbreviated: /^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i,
|
|
761
|
-
wide: /^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i
|
|
551
|
+
wide: /^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i,
|
|
762
552
|
};
|
|
763
|
-
|
|
553
|
+
const parseDayPatterns$2 = {
|
|
764
554
|
narrow: [/^կ/i, /^ե/i, /^ե/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i],
|
|
765
555
|
short: [/^կ/i, /^եր/i, /^եք/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i],
|
|
766
556
|
abbreviated: [/^կ/i, /^երկ/i, /^երք/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i],
|
|
767
|
-
|
|
557
|
+
|
|
558
|
+
wide: [/^կ/i, /^երկ/i, /^երե/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i],
|
|
768
559
|
};
|
|
769
|
-
|
|
560
|
+
|
|
561
|
+
const matchDayPeriodPatterns$2 = {
|
|
770
562
|
narrow: /^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i,
|
|
771
|
-
any: /^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i
|
|
563
|
+
any: /^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i,
|
|
772
564
|
};
|
|
773
|
-
|
|
565
|
+
const parseDayPeriodPatterns$2 = {
|
|
774
566
|
any: {
|
|
775
567
|
am: /^a/i,
|
|
776
568
|
pm: /^p/i,
|
|
@@ -779,62 +571,63 @@ var parseDayPeriodPatterns$2 = {
|
|
|
779
571
|
morning: /առավոտ/i,
|
|
780
572
|
afternoon: /ցերեկ/i,
|
|
781
573
|
evening: /երեկո/i,
|
|
782
|
-
night: /գիշեր/i
|
|
783
|
-
}
|
|
574
|
+
night: /գիշեր/i,
|
|
575
|
+
},
|
|
784
576
|
};
|
|
785
|
-
|
|
577
|
+
|
|
578
|
+
const match$2 = {
|
|
786
579
|
ordinalNumber: buildMatchPatternFn({
|
|
787
580
|
matchPattern: matchOrdinalNumberPattern$2,
|
|
788
581
|
parsePattern: parseOrdinalNumberPattern$2,
|
|
789
|
-
valueCallback:
|
|
790
|
-
return parseInt(value, 10);
|
|
791
|
-
}
|
|
582
|
+
valueCallback: (value) => parseInt(value, 10),
|
|
792
583
|
}),
|
|
584
|
+
|
|
793
585
|
era: buildMatchFn({
|
|
794
586
|
matchPatterns: matchEraPatterns$2,
|
|
795
|
-
defaultMatchWidth:
|
|
587
|
+
defaultMatchWidth: "wide",
|
|
796
588
|
parsePatterns: parseEraPatterns$2,
|
|
797
|
-
defaultParseWidth:
|
|
589
|
+
defaultParseWidth: "any",
|
|
798
590
|
}),
|
|
591
|
+
|
|
799
592
|
quarter: buildMatchFn({
|
|
800
593
|
matchPatterns: matchQuarterPatterns$2,
|
|
801
|
-
defaultMatchWidth:
|
|
594
|
+
defaultMatchWidth: "wide",
|
|
802
595
|
parsePatterns: parseQuarterPatterns$2,
|
|
803
|
-
defaultParseWidth:
|
|
804
|
-
valueCallback:
|
|
805
|
-
return index + 1;
|
|
806
|
-
}
|
|
596
|
+
defaultParseWidth: "any",
|
|
597
|
+
valueCallback: (index) => index + 1,
|
|
807
598
|
}),
|
|
599
|
+
|
|
808
600
|
month: buildMatchFn({
|
|
809
601
|
matchPatterns: matchMonthPatterns$2,
|
|
810
|
-
defaultMatchWidth:
|
|
602
|
+
defaultMatchWidth: "wide",
|
|
811
603
|
parsePatterns: parseMonthPatterns$2,
|
|
812
|
-
defaultParseWidth:
|
|
604
|
+
defaultParseWidth: "any",
|
|
813
605
|
}),
|
|
606
|
+
|
|
814
607
|
day: buildMatchFn({
|
|
815
608
|
matchPatterns: matchDayPatterns$2,
|
|
816
|
-
defaultMatchWidth:
|
|
609
|
+
defaultMatchWidth: "wide",
|
|
817
610
|
parsePatterns: parseDayPatterns$2,
|
|
818
|
-
defaultParseWidth:
|
|
611
|
+
defaultParseWidth: "wide",
|
|
819
612
|
}),
|
|
613
|
+
|
|
820
614
|
dayPeriod: buildMatchFn({
|
|
821
615
|
matchPatterns: matchDayPeriodPatterns$2,
|
|
822
|
-
defaultMatchWidth:
|
|
616
|
+
defaultMatchWidth: "any",
|
|
823
617
|
parsePatterns: parseDayPeriodPatterns$2,
|
|
824
|
-
defaultParseWidth:
|
|
825
|
-
})
|
|
618
|
+
defaultParseWidth: "any",
|
|
619
|
+
}),
|
|
826
620
|
};
|
|
827
621
|
|
|
828
622
|
/**
|
|
829
|
-
* @type {Locale}
|
|
830
623
|
* @category Locales
|
|
831
624
|
* @summary Armenian locale
|
|
832
625
|
* @language Armenian
|
|
833
626
|
* @iso-639-2 arm
|
|
834
|
-
* @author Alex Igityan [@alexigityan]
|
|
627
|
+
* @author Alex Igityan [@alexigityan](https://github.com/alexigityan)
|
|
835
628
|
*/
|
|
836
|
-
|
|
837
|
-
code:
|
|
629
|
+
const hy = {
|
|
630
|
+
code: "hy",
|
|
838
631
|
formatDistance: formatDistance$2,
|
|
839
632
|
formatLong: formatLong$2,
|
|
840
633
|
formatRelative: formatRelative$2,
|
|
@@ -842,197 +635,256 @@ var locale$2 = {
|
|
|
842
635
|
match: match$2,
|
|
843
636
|
options: {
|
|
844
637
|
weekStartsOn: 1 /* Monday */,
|
|
845
|
-
firstWeekContainsDate: 1
|
|
846
|
-
}
|
|
638
|
+
firstWeekContainsDate: 1,
|
|
639
|
+
},
|
|
847
640
|
};
|
|
848
641
|
|
|
849
|
-
|
|
642
|
+
const formatDistanceLocale$1 = {
|
|
850
643
|
lessThanXSeconds: {
|
|
851
|
-
one:
|
|
852
|
-
other:
|
|
644
|
+
one: "less than a second",
|
|
645
|
+
other: "less than {{count}} seconds",
|
|
853
646
|
},
|
|
647
|
+
|
|
854
648
|
xSeconds: {
|
|
855
|
-
one:
|
|
856
|
-
other:
|
|
649
|
+
one: "1 second",
|
|
650
|
+
other: "{{count}} seconds",
|
|
857
651
|
},
|
|
858
|
-
|
|
652
|
+
|
|
653
|
+
halfAMinute: "half a minute",
|
|
654
|
+
|
|
859
655
|
lessThanXMinutes: {
|
|
860
|
-
one:
|
|
861
|
-
other:
|
|
656
|
+
one: "less than a minute",
|
|
657
|
+
other: "less than {{count}} minutes",
|
|
862
658
|
},
|
|
659
|
+
|
|
863
660
|
xMinutes: {
|
|
864
|
-
one:
|
|
865
|
-
other:
|
|
661
|
+
one: "1 minute",
|
|
662
|
+
other: "{{count}} minutes",
|
|
866
663
|
},
|
|
664
|
+
|
|
867
665
|
aboutXHours: {
|
|
868
|
-
one:
|
|
869
|
-
other:
|
|
666
|
+
one: "about 1 hour",
|
|
667
|
+
other: "about {{count}} hours",
|
|
870
668
|
},
|
|
669
|
+
|
|
871
670
|
xHours: {
|
|
872
|
-
one:
|
|
873
|
-
other:
|
|
671
|
+
one: "1 hour",
|
|
672
|
+
other: "{{count}} hours",
|
|
874
673
|
},
|
|
674
|
+
|
|
875
675
|
xDays: {
|
|
876
|
-
one:
|
|
877
|
-
other:
|
|
676
|
+
one: "1 day",
|
|
677
|
+
other: "{{count}} days",
|
|
878
678
|
},
|
|
679
|
+
|
|
879
680
|
aboutXWeeks: {
|
|
880
|
-
one:
|
|
881
|
-
other:
|
|
681
|
+
one: "about 1 week",
|
|
682
|
+
other: "about {{count}} weeks",
|
|
882
683
|
},
|
|
684
|
+
|
|
883
685
|
xWeeks: {
|
|
884
|
-
one:
|
|
885
|
-
other:
|
|
686
|
+
one: "1 week",
|
|
687
|
+
other: "{{count}} weeks",
|
|
886
688
|
},
|
|
689
|
+
|
|
887
690
|
aboutXMonths: {
|
|
888
|
-
one:
|
|
889
|
-
other:
|
|
691
|
+
one: "about 1 month",
|
|
692
|
+
other: "about {{count}} months",
|
|
890
693
|
},
|
|
694
|
+
|
|
891
695
|
xMonths: {
|
|
892
|
-
one:
|
|
893
|
-
other:
|
|
696
|
+
one: "1 month",
|
|
697
|
+
other: "{{count}} months",
|
|
894
698
|
},
|
|
699
|
+
|
|
895
700
|
aboutXYears: {
|
|
896
|
-
one:
|
|
897
|
-
other:
|
|
701
|
+
one: "about 1 year",
|
|
702
|
+
other: "about {{count}} years",
|
|
898
703
|
},
|
|
704
|
+
|
|
899
705
|
xYears: {
|
|
900
|
-
one:
|
|
901
|
-
other:
|
|
706
|
+
one: "1 year",
|
|
707
|
+
other: "{{count}} years",
|
|
902
708
|
},
|
|
709
|
+
|
|
903
710
|
overXYears: {
|
|
904
|
-
one:
|
|
905
|
-
other:
|
|
711
|
+
one: "over 1 year",
|
|
712
|
+
other: "over {{count}} years",
|
|
906
713
|
},
|
|
714
|
+
|
|
907
715
|
almostXYears: {
|
|
908
|
-
one:
|
|
909
|
-
other:
|
|
910
|
-
}
|
|
716
|
+
one: "almost 1 year",
|
|
717
|
+
other: "almost {{count}} years",
|
|
718
|
+
},
|
|
911
719
|
};
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
720
|
+
|
|
721
|
+
const formatDistance$1 = (token, count, options) => {
|
|
722
|
+
let result;
|
|
723
|
+
|
|
724
|
+
const tokenValue = formatDistanceLocale$1[token];
|
|
725
|
+
if (typeof tokenValue === "string") {
|
|
916
726
|
result = tokenValue;
|
|
917
727
|
} else if (count === 1) {
|
|
918
728
|
result = tokenValue.one;
|
|
919
729
|
} else {
|
|
920
|
-
result = tokenValue.other.replace(
|
|
730
|
+
result = tokenValue.other.replace("{{count}}", count.toString());
|
|
921
731
|
}
|
|
922
|
-
|
|
732
|
+
|
|
733
|
+
if (options?.addSuffix) {
|
|
923
734
|
if (options.comparison && options.comparison > 0) {
|
|
924
|
-
return
|
|
735
|
+
return "in " + result;
|
|
925
736
|
} else {
|
|
926
|
-
return result +
|
|
737
|
+
return result + " ago";
|
|
927
738
|
}
|
|
928
739
|
}
|
|
740
|
+
|
|
929
741
|
return result;
|
|
930
742
|
};
|
|
931
743
|
|
|
932
|
-
|
|
744
|
+
const formatRelativeLocale$1 = {
|
|
933
745
|
lastWeek: "'last' eeee 'at' p",
|
|
934
746
|
yesterday: "'yesterday at' p",
|
|
935
747
|
today: "'today at' p",
|
|
936
748
|
tomorrow: "'tomorrow at' p",
|
|
937
749
|
nextWeek: "eeee 'at' p",
|
|
938
|
-
other:
|
|
939
|
-
};
|
|
940
|
-
var formatRelative$1 = function formatRelative(token, _date, _baseDate, _options) {
|
|
941
|
-
return formatRelativeLocale$1[token];
|
|
750
|
+
other: "P",
|
|
942
751
|
};
|
|
943
752
|
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
753
|
+
const formatRelative$1 = (token, _date, _baseDate, _options) =>
|
|
754
|
+
formatRelativeLocale$1[token];
|
|
755
|
+
|
|
756
|
+
const eraValues$1 = {
|
|
757
|
+
narrow: ["B", "A"],
|
|
758
|
+
abbreviated: ["BC", "AD"],
|
|
759
|
+
wide: ["Before Christ", "Anno Domini"],
|
|
948
760
|
};
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
761
|
+
|
|
762
|
+
const quarterValues$1 = {
|
|
763
|
+
narrow: ["1", "2", "3", "4"],
|
|
764
|
+
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
765
|
+
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"],
|
|
953
766
|
};
|
|
954
767
|
|
|
955
768
|
// Note: in English, the names of days of the week and months are capitalized.
|
|
956
769
|
// If you are making a new locale based on this one, check if the same is true for the language you're working on.
|
|
957
770
|
// Generally, formatted dates should look like they are in the middle of a sentence,
|
|
958
771
|
// e.g. in Spanish language the weekdays and months should be in the lowercase.
|
|
959
|
-
|
|
960
|
-
narrow: [
|
|
961
|
-
abbreviated: [
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
772
|
+
const monthValues$1 = {
|
|
773
|
+
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
774
|
+
abbreviated: [
|
|
775
|
+
"Jan",
|
|
776
|
+
"Feb",
|
|
777
|
+
"Mar",
|
|
778
|
+
"Apr",
|
|
779
|
+
"May",
|
|
780
|
+
"Jun",
|
|
781
|
+
"Jul",
|
|
782
|
+
"Aug",
|
|
783
|
+
"Sep",
|
|
784
|
+
"Oct",
|
|
785
|
+
"Nov",
|
|
786
|
+
"Dec",
|
|
787
|
+
],
|
|
788
|
+
|
|
789
|
+
wide: [
|
|
790
|
+
"January",
|
|
791
|
+
"February",
|
|
792
|
+
"March",
|
|
793
|
+
"April",
|
|
794
|
+
"May",
|
|
795
|
+
"June",
|
|
796
|
+
"July",
|
|
797
|
+
"August",
|
|
798
|
+
"September",
|
|
799
|
+
"October",
|
|
800
|
+
"November",
|
|
801
|
+
"December",
|
|
802
|
+
],
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
const dayValues$1 = {
|
|
806
|
+
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
807
|
+
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
808
|
+
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
809
|
+
wide: [
|
|
810
|
+
"Sunday",
|
|
811
|
+
"Monday",
|
|
812
|
+
"Tuesday",
|
|
813
|
+
"Wednesday",
|
|
814
|
+
"Thursday",
|
|
815
|
+
"Friday",
|
|
816
|
+
"Saturday",
|
|
817
|
+
],
|
|
818
|
+
};
|
|
819
|
+
|
|
820
|
+
const dayPeriodValues$1 = {
|
|
971
821
|
narrow: {
|
|
972
|
-
am:
|
|
973
|
-
pm:
|
|
974
|
-
midnight:
|
|
975
|
-
noon:
|
|
976
|
-
morning:
|
|
977
|
-
afternoon:
|
|
978
|
-
evening:
|
|
979
|
-
night:
|
|
822
|
+
am: "a",
|
|
823
|
+
pm: "p",
|
|
824
|
+
midnight: "mi",
|
|
825
|
+
noon: "n",
|
|
826
|
+
morning: "morning",
|
|
827
|
+
afternoon: "afternoon",
|
|
828
|
+
evening: "evening",
|
|
829
|
+
night: "night",
|
|
980
830
|
},
|
|
981
831
|
abbreviated: {
|
|
982
|
-
am:
|
|
983
|
-
pm:
|
|
984
|
-
midnight:
|
|
985
|
-
noon:
|
|
986
|
-
morning:
|
|
987
|
-
afternoon:
|
|
988
|
-
evening:
|
|
989
|
-
night:
|
|
832
|
+
am: "AM",
|
|
833
|
+
pm: "PM",
|
|
834
|
+
midnight: "midnight",
|
|
835
|
+
noon: "noon",
|
|
836
|
+
morning: "morning",
|
|
837
|
+
afternoon: "afternoon",
|
|
838
|
+
evening: "evening",
|
|
839
|
+
night: "night",
|
|
990
840
|
},
|
|
991
841
|
wide: {
|
|
992
|
-
am:
|
|
993
|
-
pm:
|
|
994
|
-
midnight:
|
|
995
|
-
noon:
|
|
996
|
-
morning:
|
|
997
|
-
afternoon:
|
|
998
|
-
evening:
|
|
999
|
-
night:
|
|
1000
|
-
}
|
|
842
|
+
am: "a.m.",
|
|
843
|
+
pm: "p.m.",
|
|
844
|
+
midnight: "midnight",
|
|
845
|
+
noon: "noon",
|
|
846
|
+
morning: "morning",
|
|
847
|
+
afternoon: "afternoon",
|
|
848
|
+
evening: "evening",
|
|
849
|
+
night: "night",
|
|
850
|
+
},
|
|
1001
851
|
};
|
|
1002
|
-
|
|
852
|
+
|
|
853
|
+
const formattingDayPeriodValues$1 = {
|
|
1003
854
|
narrow: {
|
|
1004
|
-
am:
|
|
1005
|
-
pm:
|
|
1006
|
-
midnight:
|
|
1007
|
-
noon:
|
|
1008
|
-
morning:
|
|
1009
|
-
afternoon:
|
|
1010
|
-
evening:
|
|
1011
|
-
night:
|
|
855
|
+
am: "a",
|
|
856
|
+
pm: "p",
|
|
857
|
+
midnight: "mi",
|
|
858
|
+
noon: "n",
|
|
859
|
+
morning: "in the morning",
|
|
860
|
+
afternoon: "in the afternoon",
|
|
861
|
+
evening: "in the evening",
|
|
862
|
+
night: "at night",
|
|
1012
863
|
},
|
|
1013
864
|
abbreviated: {
|
|
1014
|
-
am:
|
|
1015
|
-
pm:
|
|
1016
|
-
midnight:
|
|
1017
|
-
noon:
|
|
1018
|
-
morning:
|
|
1019
|
-
afternoon:
|
|
1020
|
-
evening:
|
|
1021
|
-
night:
|
|
865
|
+
am: "AM",
|
|
866
|
+
pm: "PM",
|
|
867
|
+
midnight: "midnight",
|
|
868
|
+
noon: "noon",
|
|
869
|
+
morning: "in the morning",
|
|
870
|
+
afternoon: "in the afternoon",
|
|
871
|
+
evening: "in the evening",
|
|
872
|
+
night: "at night",
|
|
1022
873
|
},
|
|
1023
874
|
wide: {
|
|
1024
|
-
am:
|
|
1025
|
-
pm:
|
|
1026
|
-
midnight:
|
|
1027
|
-
noon:
|
|
1028
|
-
morning:
|
|
1029
|
-
afternoon:
|
|
1030
|
-
evening:
|
|
1031
|
-
night:
|
|
1032
|
-
}
|
|
875
|
+
am: "a.m.",
|
|
876
|
+
pm: "p.m.",
|
|
877
|
+
midnight: "midnight",
|
|
878
|
+
noon: "noon",
|
|
879
|
+
morning: "in the morning",
|
|
880
|
+
afternoon: "in the afternoon",
|
|
881
|
+
evening: "in the evening",
|
|
882
|
+
night: "at night",
|
|
883
|
+
},
|
|
1033
884
|
};
|
|
1034
|
-
|
|
1035
|
-
|
|
885
|
+
|
|
886
|
+
const ordinalNumber$1 = (dirtyNumber, _options) => {
|
|
887
|
+
const number = Number(dirtyNumber);
|
|
1036
888
|
|
|
1037
889
|
// If ordinal numbers depend on context, for example,
|
|
1038
890
|
// if they are different for different grammatical genders,
|
|
@@ -1041,90 +893,126 @@ var ordinalNumber$1 = function ordinalNumber(dirtyNumber, _options) {
|
|
|
1041
893
|
// `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
|
|
1042
894
|
// 'day', 'hour', 'minute', 'second'.
|
|
1043
895
|
|
|
1044
|
-
|
|
896
|
+
const rem100 = number % 100;
|
|
1045
897
|
if (rem100 > 20 || rem100 < 10) {
|
|
1046
898
|
switch (rem100 % 10) {
|
|
1047
899
|
case 1:
|
|
1048
|
-
return number +
|
|
900
|
+
return number + "st";
|
|
1049
901
|
case 2:
|
|
1050
|
-
return number +
|
|
902
|
+
return number + "nd";
|
|
1051
903
|
case 3:
|
|
1052
|
-
return number +
|
|
904
|
+
return number + "rd";
|
|
1053
905
|
}
|
|
1054
906
|
}
|
|
1055
|
-
return number +
|
|
907
|
+
return number + "th";
|
|
1056
908
|
};
|
|
1057
|
-
|
|
909
|
+
|
|
910
|
+
const localize$1 = {
|
|
1058
911
|
ordinalNumber: ordinalNumber$1,
|
|
912
|
+
|
|
1059
913
|
era: buildLocalizeFn({
|
|
1060
914
|
values: eraValues$1,
|
|
1061
|
-
defaultWidth:
|
|
915
|
+
defaultWidth: "wide",
|
|
1062
916
|
}),
|
|
917
|
+
|
|
1063
918
|
quarter: buildLocalizeFn({
|
|
1064
919
|
values: quarterValues$1,
|
|
1065
|
-
defaultWidth:
|
|
1066
|
-
argumentCallback:
|
|
1067
|
-
return quarter - 1;
|
|
1068
|
-
}
|
|
920
|
+
defaultWidth: "wide",
|
|
921
|
+
argumentCallback: (quarter) => quarter - 1,
|
|
1069
922
|
}),
|
|
923
|
+
|
|
1070
924
|
month: buildLocalizeFn({
|
|
1071
925
|
values: monthValues$1,
|
|
1072
|
-
defaultWidth:
|
|
926
|
+
defaultWidth: "wide",
|
|
1073
927
|
}),
|
|
928
|
+
|
|
1074
929
|
day: buildLocalizeFn({
|
|
1075
930
|
values: dayValues$1,
|
|
1076
|
-
defaultWidth:
|
|
931
|
+
defaultWidth: "wide",
|
|
1077
932
|
}),
|
|
933
|
+
|
|
1078
934
|
dayPeriod: buildLocalizeFn({
|
|
1079
935
|
values: dayPeriodValues$1,
|
|
1080
|
-
defaultWidth:
|
|
936
|
+
defaultWidth: "wide",
|
|
1081
937
|
formattingValues: formattingDayPeriodValues$1,
|
|
1082
|
-
defaultFormattingWidth:
|
|
1083
|
-
})
|
|
938
|
+
defaultFormattingWidth: "wide",
|
|
939
|
+
}),
|
|
1084
940
|
};
|
|
1085
941
|
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
942
|
+
const matchOrdinalNumberPattern$1 = /^(\d+)(th|st|nd|rd)?/i;
|
|
943
|
+
const parseOrdinalNumberPattern$1 = /\d+/i;
|
|
944
|
+
|
|
945
|
+
const matchEraPatterns$1 = {
|
|
1089
946
|
narrow: /^(b|a)/i,
|
|
1090
947
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1091
|
-
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
948
|
+
wide: /^(before christ|before common era|anno domini|common era)/i,
|
|
1092
949
|
};
|
|
1093
|
-
|
|
1094
|
-
any: [/^b/i, /^(a|c)/i]
|
|
950
|
+
const parseEraPatterns$1 = {
|
|
951
|
+
any: [/^b/i, /^(a|c)/i],
|
|
1095
952
|
};
|
|
1096
|
-
|
|
953
|
+
|
|
954
|
+
const matchQuarterPatterns$1 = {
|
|
1097
955
|
narrow: /^[1234]/i,
|
|
1098
956
|
abbreviated: /^q[1234]/i,
|
|
1099
|
-
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
957
|
+
wide: /^[1234](th|st|nd|rd)? quarter/i,
|
|
1100
958
|
};
|
|
1101
|
-
|
|
1102
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
959
|
+
const parseQuarterPatterns$1 = {
|
|
960
|
+
any: [/1/i, /2/i, /3/i, /4/i],
|
|
1103
961
|
};
|
|
1104
|
-
|
|
962
|
+
|
|
963
|
+
const matchMonthPatterns$1 = {
|
|
1105
964
|
narrow: /^[jfmasond]/i,
|
|
1106
965
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1107
|
-
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1108
|
-
};
|
|
1109
|
-
|
|
1110
|
-
narrow: [
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
966
|
+
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i,
|
|
967
|
+
};
|
|
968
|
+
const parseMonthPatterns$1 = {
|
|
969
|
+
narrow: [
|
|
970
|
+
/^j/i,
|
|
971
|
+
/^f/i,
|
|
972
|
+
/^m/i,
|
|
973
|
+
/^a/i,
|
|
974
|
+
/^m/i,
|
|
975
|
+
/^j/i,
|
|
976
|
+
/^j/i,
|
|
977
|
+
/^a/i,
|
|
978
|
+
/^s/i,
|
|
979
|
+
/^o/i,
|
|
980
|
+
/^n/i,
|
|
981
|
+
/^d/i,
|
|
982
|
+
],
|
|
983
|
+
|
|
984
|
+
any: [
|
|
985
|
+
/^ja/i,
|
|
986
|
+
/^f/i,
|
|
987
|
+
/^mar/i,
|
|
988
|
+
/^ap/i,
|
|
989
|
+
/^may/i,
|
|
990
|
+
/^jun/i,
|
|
991
|
+
/^jul/i,
|
|
992
|
+
/^au/i,
|
|
993
|
+
/^s/i,
|
|
994
|
+
/^o/i,
|
|
995
|
+
/^n/i,
|
|
996
|
+
/^d/i,
|
|
997
|
+
],
|
|
998
|
+
};
|
|
999
|
+
|
|
1000
|
+
const matchDayPatterns$1 = {
|
|
1114
1001
|
narrow: /^[smtwf]/i,
|
|
1115
1002
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1116
1003
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1117
|
-
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1004
|
+
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i,
|
|
1118
1005
|
};
|
|
1119
|
-
|
|
1006
|
+
const parseDayPatterns$1 = {
|
|
1120
1007
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1121
|
-
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1008
|
+
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],
|
|
1122
1009
|
};
|
|
1123
|
-
|
|
1010
|
+
|
|
1011
|
+
const matchDayPeriodPatterns$1 = {
|
|
1124
1012
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1125
|
-
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1013
|
+
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1126
1014
|
};
|
|
1127
|
-
|
|
1015
|
+
const parseDayPeriodPatterns$1 = {
|
|
1128
1016
|
any: {
|
|
1129
1017
|
am: /^a/i,
|
|
1130
1018
|
pm: /^p/i,
|
|
@@ -1133,95 +1021,101 @@ var parseDayPeriodPatterns$1 = {
|
|
|
1133
1021
|
morning: /morning/i,
|
|
1134
1022
|
afternoon: /afternoon/i,
|
|
1135
1023
|
evening: /evening/i,
|
|
1136
|
-
night: /night/i
|
|
1137
|
-
}
|
|
1024
|
+
night: /night/i,
|
|
1025
|
+
},
|
|
1138
1026
|
};
|
|
1139
|
-
|
|
1027
|
+
|
|
1028
|
+
const match$1 = {
|
|
1140
1029
|
ordinalNumber: buildMatchPatternFn({
|
|
1141
1030
|
matchPattern: matchOrdinalNumberPattern$1,
|
|
1142
1031
|
parsePattern: parseOrdinalNumberPattern$1,
|
|
1143
|
-
valueCallback:
|
|
1144
|
-
return parseInt(value, 10);
|
|
1145
|
-
}
|
|
1032
|
+
valueCallback: (value) => parseInt(value, 10),
|
|
1146
1033
|
}),
|
|
1034
|
+
|
|
1147
1035
|
era: buildMatchFn({
|
|
1148
1036
|
matchPatterns: matchEraPatterns$1,
|
|
1149
|
-
defaultMatchWidth:
|
|
1037
|
+
defaultMatchWidth: "wide",
|
|
1150
1038
|
parsePatterns: parseEraPatterns$1,
|
|
1151
|
-
defaultParseWidth:
|
|
1039
|
+
defaultParseWidth: "any",
|
|
1152
1040
|
}),
|
|
1041
|
+
|
|
1153
1042
|
quarter: buildMatchFn({
|
|
1154
1043
|
matchPatterns: matchQuarterPatterns$1,
|
|
1155
|
-
defaultMatchWidth:
|
|
1044
|
+
defaultMatchWidth: "wide",
|
|
1156
1045
|
parsePatterns: parseQuarterPatterns$1,
|
|
1157
|
-
defaultParseWidth:
|
|
1158
|
-
valueCallback:
|
|
1159
|
-
return index + 1;
|
|
1160
|
-
}
|
|
1046
|
+
defaultParseWidth: "any",
|
|
1047
|
+
valueCallback: (index) => index + 1,
|
|
1161
1048
|
}),
|
|
1049
|
+
|
|
1162
1050
|
month: buildMatchFn({
|
|
1163
1051
|
matchPatterns: matchMonthPatterns$1,
|
|
1164
|
-
defaultMatchWidth:
|
|
1052
|
+
defaultMatchWidth: "wide",
|
|
1165
1053
|
parsePatterns: parseMonthPatterns$1,
|
|
1166
|
-
defaultParseWidth:
|
|
1054
|
+
defaultParseWidth: "any",
|
|
1167
1055
|
}),
|
|
1056
|
+
|
|
1168
1057
|
day: buildMatchFn({
|
|
1169
1058
|
matchPatterns: matchDayPatterns$1,
|
|
1170
|
-
defaultMatchWidth:
|
|
1059
|
+
defaultMatchWidth: "wide",
|
|
1171
1060
|
parsePatterns: parseDayPatterns$1,
|
|
1172
|
-
defaultParseWidth:
|
|
1061
|
+
defaultParseWidth: "any",
|
|
1173
1062
|
}),
|
|
1063
|
+
|
|
1174
1064
|
dayPeriod: buildMatchFn({
|
|
1175
1065
|
matchPatterns: matchDayPeriodPatterns$1,
|
|
1176
|
-
defaultMatchWidth:
|
|
1066
|
+
defaultMatchWidth: "any",
|
|
1177
1067
|
parsePatterns: parseDayPeriodPatterns$1,
|
|
1178
|
-
defaultParseWidth:
|
|
1179
|
-
})
|
|
1068
|
+
defaultParseWidth: "any",
|
|
1069
|
+
}),
|
|
1180
1070
|
};
|
|
1181
1071
|
|
|
1182
|
-
|
|
1183
|
-
full:
|
|
1184
|
-
long:
|
|
1185
|
-
medium:
|
|
1186
|
-
short:
|
|
1072
|
+
const dateFormats$1 = {
|
|
1073
|
+
full: "EEEE, d MMMM yyyy",
|
|
1074
|
+
long: "d MMMM yyyy",
|
|
1075
|
+
medium: "d MMM yyyy",
|
|
1076
|
+
short: "dd/MM/yyyy",
|
|
1187
1077
|
};
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1078
|
+
|
|
1079
|
+
const timeFormats$1 = {
|
|
1080
|
+
full: "HH:mm:ss zzzz",
|
|
1081
|
+
long: "HH:mm:ss z",
|
|
1082
|
+
medium: "HH:mm:ss",
|
|
1083
|
+
short: "HH:mm",
|
|
1193
1084
|
};
|
|
1194
|
-
|
|
1085
|
+
|
|
1086
|
+
const dateTimeFormats$1 = {
|
|
1195
1087
|
full: "{{date}} 'at' {{time}}",
|
|
1196
1088
|
long: "{{date}} 'at' {{time}}",
|
|
1197
|
-
medium:
|
|
1198
|
-
short:
|
|
1089
|
+
medium: "{{date}}, {{time}}",
|
|
1090
|
+
short: "{{date}}, {{time}}",
|
|
1199
1091
|
};
|
|
1200
|
-
|
|
1092
|
+
|
|
1093
|
+
const formatLong$1 = {
|
|
1201
1094
|
date: buildFormatLongFn({
|
|
1202
1095
|
formats: dateFormats$1,
|
|
1203
|
-
defaultWidth:
|
|
1096
|
+
defaultWidth: "full",
|
|
1204
1097
|
}),
|
|
1098
|
+
|
|
1205
1099
|
time: buildFormatLongFn({
|
|
1206
1100
|
formats: timeFormats$1,
|
|
1207
|
-
defaultWidth:
|
|
1101
|
+
defaultWidth: "full",
|
|
1208
1102
|
}),
|
|
1103
|
+
|
|
1209
1104
|
dateTime: buildFormatLongFn({
|
|
1210
1105
|
formats: dateTimeFormats$1,
|
|
1211
|
-
defaultWidth:
|
|
1212
|
-
})
|
|
1106
|
+
defaultWidth: "full",
|
|
1107
|
+
}),
|
|
1213
1108
|
};
|
|
1214
1109
|
|
|
1215
1110
|
/**
|
|
1216
|
-
* @type {Locale}
|
|
1217
1111
|
* @category Locales
|
|
1218
1112
|
* @summary English locale (United Kingdom).
|
|
1219
1113
|
* @language English
|
|
1220
1114
|
* @iso-639-2 eng
|
|
1221
|
-
* @author Alex [@glintik]
|
|
1115
|
+
* @author Alex [@glintik](https://github.com/glintik)
|
|
1222
1116
|
*/
|
|
1223
|
-
|
|
1224
|
-
code:
|
|
1117
|
+
const enGB = {
|
|
1118
|
+
code: "en-GB",
|
|
1225
1119
|
formatDistance: formatDistance$1,
|
|
1226
1120
|
formatLong: formatLong$1,
|
|
1227
1121
|
formatRelative: formatRelative$1,
|
|
@@ -1229,8 +1123,8 @@ var locale$1 = {
|
|
|
1229
1123
|
match: match$1,
|
|
1230
1124
|
options: {
|
|
1231
1125
|
weekStartsOn: 1 /* Monday */,
|
|
1232
|
-
firstWeekContainsDate: 4
|
|
1233
|
-
}
|
|
1126
|
+
firstWeekContainsDate: 4,
|
|
1127
|
+
},
|
|
1234
1128
|
};
|
|
1235
1129
|
|
|
1236
1130
|
function declension(scheme, count) {
|
|
@@ -1238,36 +1132,38 @@ function declension(scheme, count) {
|
|
|
1238
1132
|
if (scheme.one !== undefined && count === 1) {
|
|
1239
1133
|
return scheme.one;
|
|
1240
1134
|
}
|
|
1241
|
-
|
|
1242
|
-
|
|
1135
|
+
|
|
1136
|
+
const rem10 = count % 10;
|
|
1137
|
+
const rem100 = count % 100;
|
|
1243
1138
|
|
|
1244
1139
|
// 1, 21, 31, ...
|
|
1245
1140
|
if (rem10 === 1 && rem100 !== 11) {
|
|
1246
|
-
return scheme.singularNominative.replace(
|
|
1141
|
+
return scheme.singularNominative.replace("{{count}}", String(count));
|
|
1247
1142
|
|
|
1248
1143
|
// 2, 3, 4, 22, 23, 24, 32 ...
|
|
1249
1144
|
} else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) {
|
|
1250
|
-
return scheme.singularGenitive.replace(
|
|
1145
|
+
return scheme.singularGenitive.replace("{{count}}", String(count));
|
|
1251
1146
|
|
|
1252
1147
|
// 5, 6, 7, 8, 9, 10, 11, ...
|
|
1253
1148
|
} else {
|
|
1254
|
-
return scheme.pluralGenitive.replace(
|
|
1149
|
+
return scheme.pluralGenitive.replace("{{count}}", String(count));
|
|
1255
1150
|
}
|
|
1256
1151
|
}
|
|
1152
|
+
|
|
1257
1153
|
function buildLocalizeTokenFn(scheme) {
|
|
1258
|
-
return
|
|
1259
|
-
if (options
|
|
1154
|
+
return (count, options) => {
|
|
1155
|
+
if (options?.addSuffix) {
|
|
1260
1156
|
if (options.comparison && options.comparison > 0) {
|
|
1261
1157
|
if (scheme.future) {
|
|
1262
1158
|
return declension(scheme.future, count);
|
|
1263
1159
|
} else {
|
|
1264
|
-
return
|
|
1160
|
+
return "через " + declension(scheme.regular, count);
|
|
1265
1161
|
}
|
|
1266
1162
|
} else {
|
|
1267
1163
|
if (scheme.past) {
|
|
1268
1164
|
return declension(scheme.past, count);
|
|
1269
1165
|
} else {
|
|
1270
|
-
return declension(scheme.regular, count) +
|
|
1166
|
+
return declension(scheme.regular, count) + " назад";
|
|
1271
1167
|
}
|
|
1272
1168
|
}
|
|
1273
1169
|
} else {
|
|
@@ -1275,225 +1171,333 @@ function buildLocalizeTokenFn(scheme) {
|
|
|
1275
1171
|
}
|
|
1276
1172
|
};
|
|
1277
1173
|
}
|
|
1278
|
-
|
|
1174
|
+
|
|
1175
|
+
const formatDistanceLocale = {
|
|
1279
1176
|
lessThanXSeconds: buildLocalizeTokenFn({
|
|
1280
1177
|
regular: {
|
|
1281
|
-
one:
|
|
1282
|
-
singularNominative:
|
|
1283
|
-
singularGenitive:
|
|
1284
|
-
pluralGenitive:
|
|
1178
|
+
one: "меньше секунды",
|
|
1179
|
+
singularNominative: "меньше {{count}} секунды",
|
|
1180
|
+
singularGenitive: "меньше {{count}} секунд",
|
|
1181
|
+
pluralGenitive: "меньше {{count}} секунд",
|
|
1285
1182
|
},
|
|
1286
1183
|
future: {
|
|
1287
|
-
one:
|
|
1288
|
-
singularNominative:
|
|
1289
|
-
singularGenitive:
|
|
1290
|
-
pluralGenitive:
|
|
1291
|
-
}
|
|
1184
|
+
one: "меньше, чем через секунду",
|
|
1185
|
+
singularNominative: "меньше, чем через {{count}} секунду",
|
|
1186
|
+
singularGenitive: "меньше, чем через {{count}} секунды",
|
|
1187
|
+
pluralGenitive: "меньше, чем через {{count}} секунд",
|
|
1188
|
+
},
|
|
1292
1189
|
}),
|
|
1190
|
+
|
|
1293
1191
|
xSeconds: buildLocalizeTokenFn({
|
|
1294
1192
|
regular: {
|
|
1295
|
-
singularNominative:
|
|
1296
|
-
singularGenitive:
|
|
1297
|
-
pluralGenitive:
|
|
1193
|
+
singularNominative: "{{count}} секунда",
|
|
1194
|
+
singularGenitive: "{{count}} секунды",
|
|
1195
|
+
pluralGenitive: "{{count}} секунд",
|
|
1298
1196
|
},
|
|
1299
1197
|
past: {
|
|
1300
|
-
singularNominative:
|
|
1301
|
-
singularGenitive:
|
|
1302
|
-
pluralGenitive:
|
|
1198
|
+
singularNominative: "{{count}} секунду назад",
|
|
1199
|
+
singularGenitive: "{{count}} секунды назад",
|
|
1200
|
+
pluralGenitive: "{{count}} секунд назад",
|
|
1303
1201
|
},
|
|
1304
1202
|
future: {
|
|
1305
|
-
singularNominative:
|
|
1306
|
-
singularGenitive:
|
|
1307
|
-
pluralGenitive:
|
|
1308
|
-
}
|
|
1203
|
+
singularNominative: "через {{count}} секунду",
|
|
1204
|
+
singularGenitive: "через {{count}} секунды",
|
|
1205
|
+
pluralGenitive: "через {{count}} секунд",
|
|
1206
|
+
},
|
|
1309
1207
|
}),
|
|
1310
|
-
|
|
1311
|
-
|
|
1208
|
+
|
|
1209
|
+
halfAMinute: (_count, options) => {
|
|
1210
|
+
if (options?.addSuffix) {
|
|
1312
1211
|
if (options.comparison && options.comparison > 0) {
|
|
1313
|
-
return
|
|
1212
|
+
return "через полминуты";
|
|
1314
1213
|
} else {
|
|
1315
|
-
return
|
|
1214
|
+
return "полминуты назад";
|
|
1316
1215
|
}
|
|
1317
1216
|
}
|
|
1318
|
-
|
|
1217
|
+
|
|
1218
|
+
return "полминуты";
|
|
1319
1219
|
},
|
|
1220
|
+
|
|
1320
1221
|
lessThanXMinutes: buildLocalizeTokenFn({
|
|
1321
1222
|
regular: {
|
|
1322
|
-
one:
|
|
1323
|
-
singularNominative:
|
|
1324
|
-
singularGenitive:
|
|
1325
|
-
pluralGenitive:
|
|
1223
|
+
one: "меньше минуты",
|
|
1224
|
+
singularNominative: "меньше {{count}} минуты",
|
|
1225
|
+
singularGenitive: "меньше {{count}} минут",
|
|
1226
|
+
pluralGenitive: "меньше {{count}} минут",
|
|
1326
1227
|
},
|
|
1327
1228
|
future: {
|
|
1328
|
-
one:
|
|
1329
|
-
singularNominative:
|
|
1330
|
-
singularGenitive:
|
|
1331
|
-
pluralGenitive:
|
|
1332
|
-
}
|
|
1229
|
+
one: "меньше, чем через минуту",
|
|
1230
|
+
singularNominative: "меньше, чем через {{count}} минуту",
|
|
1231
|
+
singularGenitive: "меньше, чем через {{count}} минуты",
|
|
1232
|
+
pluralGenitive: "меньше, чем через {{count}} минут",
|
|
1233
|
+
},
|
|
1333
1234
|
}),
|
|
1235
|
+
|
|
1334
1236
|
xMinutes: buildLocalizeTokenFn({
|
|
1335
1237
|
regular: {
|
|
1336
|
-
singularNominative:
|
|
1337
|
-
singularGenitive:
|
|
1338
|
-
pluralGenitive:
|
|
1238
|
+
singularNominative: "{{count}} минута",
|
|
1239
|
+
singularGenitive: "{{count}} минуты",
|
|
1240
|
+
pluralGenitive: "{{count}} минут",
|
|
1339
1241
|
},
|
|
1340
1242
|
past: {
|
|
1341
|
-
singularNominative:
|
|
1342
|
-
singularGenitive:
|
|
1343
|
-
pluralGenitive:
|
|
1243
|
+
singularNominative: "{{count}} минуту назад",
|
|
1244
|
+
singularGenitive: "{{count}} минуты назад",
|
|
1245
|
+
pluralGenitive: "{{count}} минут назад",
|
|
1344
1246
|
},
|
|
1345
1247
|
future: {
|
|
1346
|
-
singularNominative:
|
|
1347
|
-
singularGenitive:
|
|
1348
|
-
pluralGenitive:
|
|
1349
|
-
}
|
|
1248
|
+
singularNominative: "через {{count}} минуту",
|
|
1249
|
+
singularGenitive: "через {{count}} минуты",
|
|
1250
|
+
pluralGenitive: "через {{count}} минут",
|
|
1251
|
+
},
|
|
1350
1252
|
}),
|
|
1253
|
+
|
|
1351
1254
|
aboutXHours: buildLocalizeTokenFn({
|
|
1352
1255
|
regular: {
|
|
1353
|
-
singularNominative:
|
|
1354
|
-
singularGenitive:
|
|
1355
|
-
pluralGenitive:
|
|
1256
|
+
singularNominative: "около {{count}} часа",
|
|
1257
|
+
singularGenitive: "около {{count}} часов",
|
|
1258
|
+
pluralGenitive: "около {{count}} часов",
|
|
1356
1259
|
},
|
|
1357
1260
|
future: {
|
|
1358
|
-
singularNominative:
|
|
1359
|
-
singularGenitive:
|
|
1360
|
-
pluralGenitive:
|
|
1361
|
-
}
|
|
1261
|
+
singularNominative: "приблизительно через {{count}} час",
|
|
1262
|
+
singularGenitive: "приблизительно через {{count}} часа",
|
|
1263
|
+
pluralGenitive: "приблизительно через {{count}} часов",
|
|
1264
|
+
},
|
|
1362
1265
|
}),
|
|
1266
|
+
|
|
1363
1267
|
xHours: buildLocalizeTokenFn({
|
|
1364
1268
|
regular: {
|
|
1365
|
-
singularNominative:
|
|
1366
|
-
singularGenitive:
|
|
1367
|
-
pluralGenitive:
|
|
1368
|
-
}
|
|
1269
|
+
singularNominative: "{{count}} час",
|
|
1270
|
+
singularGenitive: "{{count}} часа",
|
|
1271
|
+
pluralGenitive: "{{count}} часов",
|
|
1272
|
+
},
|
|
1369
1273
|
}),
|
|
1274
|
+
|
|
1370
1275
|
xDays: buildLocalizeTokenFn({
|
|
1371
1276
|
regular: {
|
|
1372
|
-
singularNominative:
|
|
1373
|
-
singularGenitive:
|
|
1374
|
-
pluralGenitive:
|
|
1375
|
-
}
|
|
1277
|
+
singularNominative: "{{count}} день",
|
|
1278
|
+
singularGenitive: "{{count}} дня",
|
|
1279
|
+
pluralGenitive: "{{count}} дней",
|
|
1280
|
+
},
|
|
1376
1281
|
}),
|
|
1282
|
+
|
|
1377
1283
|
aboutXWeeks: buildLocalizeTokenFn({
|
|
1378
1284
|
regular: {
|
|
1379
|
-
singularNominative:
|
|
1380
|
-
singularGenitive:
|
|
1381
|
-
pluralGenitive:
|
|
1285
|
+
singularNominative: "около {{count}} недели",
|
|
1286
|
+
singularGenitive: "около {{count}} недель",
|
|
1287
|
+
pluralGenitive: "около {{count}} недель",
|
|
1382
1288
|
},
|
|
1383
1289
|
future: {
|
|
1384
|
-
singularNominative:
|
|
1385
|
-
singularGenitive:
|
|
1386
|
-
pluralGenitive:
|
|
1387
|
-
}
|
|
1290
|
+
singularNominative: "приблизительно через {{count}} неделю",
|
|
1291
|
+
singularGenitive: "приблизительно через {{count}} недели",
|
|
1292
|
+
pluralGenitive: "приблизительно через {{count}} недель",
|
|
1293
|
+
},
|
|
1388
1294
|
}),
|
|
1295
|
+
|
|
1389
1296
|
xWeeks: buildLocalizeTokenFn({
|
|
1390
1297
|
regular: {
|
|
1391
|
-
singularNominative:
|
|
1392
|
-
singularGenitive:
|
|
1393
|
-
pluralGenitive:
|
|
1394
|
-
}
|
|
1298
|
+
singularNominative: "{{count}} неделя",
|
|
1299
|
+
singularGenitive: "{{count}} недели",
|
|
1300
|
+
pluralGenitive: "{{count}} недель",
|
|
1301
|
+
},
|
|
1395
1302
|
}),
|
|
1303
|
+
|
|
1396
1304
|
aboutXMonths: buildLocalizeTokenFn({
|
|
1397
1305
|
regular: {
|
|
1398
|
-
singularNominative:
|
|
1399
|
-
singularGenitive:
|
|
1400
|
-
pluralGenitive:
|
|
1306
|
+
singularNominative: "около {{count}} месяца",
|
|
1307
|
+
singularGenitive: "около {{count}} месяцев",
|
|
1308
|
+
pluralGenitive: "около {{count}} месяцев",
|
|
1401
1309
|
},
|
|
1402
1310
|
future: {
|
|
1403
|
-
singularNominative:
|
|
1404
|
-
singularGenitive:
|
|
1405
|
-
pluralGenitive:
|
|
1406
|
-
}
|
|
1311
|
+
singularNominative: "приблизительно через {{count}} месяц",
|
|
1312
|
+
singularGenitive: "приблизительно через {{count}} месяца",
|
|
1313
|
+
pluralGenitive: "приблизительно через {{count}} месяцев",
|
|
1314
|
+
},
|
|
1407
1315
|
}),
|
|
1316
|
+
|
|
1408
1317
|
xMonths: buildLocalizeTokenFn({
|
|
1409
1318
|
regular: {
|
|
1410
|
-
singularNominative:
|
|
1411
|
-
singularGenitive:
|
|
1412
|
-
pluralGenitive:
|
|
1413
|
-
}
|
|
1319
|
+
singularNominative: "{{count}} месяц",
|
|
1320
|
+
singularGenitive: "{{count}} месяца",
|
|
1321
|
+
pluralGenitive: "{{count}} месяцев",
|
|
1322
|
+
},
|
|
1414
1323
|
}),
|
|
1324
|
+
|
|
1415
1325
|
aboutXYears: buildLocalizeTokenFn({
|
|
1416
1326
|
regular: {
|
|
1417
|
-
singularNominative:
|
|
1418
|
-
singularGenitive:
|
|
1419
|
-
pluralGenitive:
|
|
1327
|
+
singularNominative: "около {{count}} года",
|
|
1328
|
+
singularGenitive: "около {{count}} лет",
|
|
1329
|
+
pluralGenitive: "около {{count}} лет",
|
|
1420
1330
|
},
|
|
1421
1331
|
future: {
|
|
1422
|
-
singularNominative:
|
|
1423
|
-
singularGenitive:
|
|
1424
|
-
pluralGenitive:
|
|
1425
|
-
}
|
|
1332
|
+
singularNominative: "приблизительно через {{count}} год",
|
|
1333
|
+
singularGenitive: "приблизительно через {{count}} года",
|
|
1334
|
+
pluralGenitive: "приблизительно через {{count}} лет",
|
|
1335
|
+
},
|
|
1426
1336
|
}),
|
|
1337
|
+
|
|
1427
1338
|
xYears: buildLocalizeTokenFn({
|
|
1428
1339
|
regular: {
|
|
1429
|
-
singularNominative:
|
|
1430
|
-
singularGenitive:
|
|
1431
|
-
pluralGenitive:
|
|
1432
|
-
}
|
|
1340
|
+
singularNominative: "{{count}} год",
|
|
1341
|
+
singularGenitive: "{{count}} года",
|
|
1342
|
+
pluralGenitive: "{{count}} лет",
|
|
1343
|
+
},
|
|
1433
1344
|
}),
|
|
1345
|
+
|
|
1434
1346
|
overXYears: buildLocalizeTokenFn({
|
|
1435
1347
|
regular: {
|
|
1436
|
-
singularNominative:
|
|
1437
|
-
singularGenitive:
|
|
1438
|
-
pluralGenitive:
|
|
1348
|
+
singularNominative: "больше {{count}} года",
|
|
1349
|
+
singularGenitive: "больше {{count}} лет",
|
|
1350
|
+
pluralGenitive: "больше {{count}} лет",
|
|
1439
1351
|
},
|
|
1440
1352
|
future: {
|
|
1441
|
-
singularNominative:
|
|
1442
|
-
singularGenitive:
|
|
1443
|
-
pluralGenitive:
|
|
1444
|
-
}
|
|
1353
|
+
singularNominative: "больше, чем через {{count}} год",
|
|
1354
|
+
singularGenitive: "больше, чем через {{count}} года",
|
|
1355
|
+
pluralGenitive: "больше, чем через {{count}} лет",
|
|
1356
|
+
},
|
|
1445
1357
|
}),
|
|
1358
|
+
|
|
1446
1359
|
almostXYears: buildLocalizeTokenFn({
|
|
1447
1360
|
regular: {
|
|
1448
|
-
singularNominative:
|
|
1449
|
-
singularGenitive:
|
|
1450
|
-
pluralGenitive:
|
|
1361
|
+
singularNominative: "почти {{count}} год",
|
|
1362
|
+
singularGenitive: "почти {{count}} года",
|
|
1363
|
+
pluralGenitive: "почти {{count}} лет",
|
|
1451
1364
|
},
|
|
1452
1365
|
future: {
|
|
1453
|
-
singularNominative:
|
|
1454
|
-
singularGenitive:
|
|
1455
|
-
pluralGenitive:
|
|
1456
|
-
}
|
|
1457
|
-
})
|
|
1366
|
+
singularNominative: "почти через {{count}} год",
|
|
1367
|
+
singularGenitive: "почти через {{count}} года",
|
|
1368
|
+
pluralGenitive: "почти через {{count}} лет",
|
|
1369
|
+
},
|
|
1370
|
+
}),
|
|
1458
1371
|
};
|
|
1459
|
-
|
|
1372
|
+
|
|
1373
|
+
const formatDistance = (token, count, options) => {
|
|
1460
1374
|
return formatDistanceLocale[token](count, options);
|
|
1461
1375
|
};
|
|
1462
1376
|
|
|
1463
|
-
|
|
1377
|
+
const dateFormats = {
|
|
1464
1378
|
full: "EEEE, d MMMM y 'г.'",
|
|
1465
1379
|
long: "d MMMM y 'г.'",
|
|
1466
1380
|
medium: "d MMM y 'г.'",
|
|
1467
|
-
short:
|
|
1381
|
+
short: "dd.MM.y",
|
|
1468
1382
|
};
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1383
|
+
|
|
1384
|
+
const timeFormats = {
|
|
1385
|
+
full: "H:mm:ss zzzz",
|
|
1386
|
+
long: "H:mm:ss z",
|
|
1387
|
+
medium: "H:mm:ss",
|
|
1388
|
+
short: "H:mm",
|
|
1474
1389
|
};
|
|
1475
|
-
|
|
1476
|
-
|
|
1390
|
+
|
|
1391
|
+
const dateTimeFormats = {
|
|
1392
|
+
any: "{{date}}, {{time}}",
|
|
1477
1393
|
};
|
|
1478
|
-
|
|
1394
|
+
|
|
1395
|
+
const formatLong = {
|
|
1479
1396
|
date: buildFormatLongFn({
|
|
1480
1397
|
formats: dateFormats,
|
|
1481
|
-
defaultWidth:
|
|
1398
|
+
defaultWidth: "full",
|
|
1482
1399
|
}),
|
|
1400
|
+
|
|
1483
1401
|
time: buildFormatLongFn({
|
|
1484
1402
|
formats: timeFormats,
|
|
1485
|
-
defaultWidth:
|
|
1403
|
+
defaultWidth: "full",
|
|
1486
1404
|
}),
|
|
1405
|
+
|
|
1487
1406
|
dateTime: buildFormatLongFn({
|
|
1488
1407
|
formats: dateTimeFormats,
|
|
1489
|
-
defaultWidth:
|
|
1490
|
-
})
|
|
1408
|
+
defaultWidth: "any",
|
|
1409
|
+
}),
|
|
1491
1410
|
};
|
|
1492
1411
|
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1412
|
+
/**
|
|
1413
|
+
* @module constants
|
|
1414
|
+
* @summary Useful constants
|
|
1415
|
+
* @description
|
|
1416
|
+
* Collection of useful date constants.
|
|
1417
|
+
*
|
|
1418
|
+
* The constants could be imported from `date-fns/constants`:
|
|
1419
|
+
*
|
|
1420
|
+
* ```ts
|
|
1421
|
+
* import { maxTime, minTime } from "./constants/date-fns/constants";
|
|
1422
|
+
*
|
|
1423
|
+
* function isAllowedTime(time) {
|
|
1424
|
+
* return time <= maxTime && time >= minTime;
|
|
1425
|
+
* }
|
|
1426
|
+
* ```
|
|
1427
|
+
*/
|
|
1428
|
+
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* @constant
|
|
1432
|
+
* @name constructFromSymbol
|
|
1433
|
+
* @summary Symbol enabling Date extensions to inherit properties from the reference date.
|
|
1434
|
+
*
|
|
1435
|
+
* The symbol is used to enable the `constructFrom` function to construct a date
|
|
1436
|
+
* using a reference date and a value. It allows to transfer extra properties
|
|
1437
|
+
* from the reference date to the new date. It's useful for extensions like
|
|
1438
|
+
* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as
|
|
1439
|
+
* a constructor argument.
|
|
1440
|
+
*/
|
|
1441
|
+
const constructFromSymbol = Symbol.for("constructDateFrom");
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* @name constructFrom
|
|
1445
|
+
* @category Generic Helpers
|
|
1446
|
+
* @summary Constructs a date using the reference date and the value
|
|
1447
|
+
*
|
|
1448
|
+
* @description
|
|
1449
|
+
* The function constructs a new date using the constructor from the reference
|
|
1450
|
+
* date and the given value. It helps to build generic functions that accept
|
|
1451
|
+
* date extensions.
|
|
1452
|
+
*
|
|
1453
|
+
* It defaults to `Date` if the passed reference date is a number or a string.
|
|
1454
|
+
*
|
|
1455
|
+
* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]`
|
|
1456
|
+
* enabling to transfer extra properties from the reference date to the new date.
|
|
1457
|
+
* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)
|
|
1458
|
+
* that accept a time zone as a constructor argument.
|
|
1459
|
+
*
|
|
1460
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
1461
|
+
*
|
|
1462
|
+
* @param date - The reference date to take constructor from
|
|
1463
|
+
* @param value - The value to create the date
|
|
1464
|
+
*
|
|
1465
|
+
* @returns Date initialized using the given date and value
|
|
1466
|
+
*
|
|
1467
|
+
* @example
|
|
1468
|
+
* import { constructFrom } from "./constructFrom/date-fns";
|
|
1469
|
+
*
|
|
1470
|
+
* // A function that clones a date preserving the original type
|
|
1471
|
+
* function cloneDate<DateType extends Date>(date: DateType): DateType {
|
|
1472
|
+
* return constructFrom(
|
|
1473
|
+
* date, // Use constructor from the given date
|
|
1474
|
+
* date.getTime() // Use the date value to create a new date
|
|
1475
|
+
* );
|
|
1476
|
+
* }
|
|
1477
|
+
*/
|
|
1478
|
+
function constructFrom(date, value) {
|
|
1479
|
+
if (typeof date === "function") return date(value);
|
|
1480
|
+
|
|
1481
|
+
if (date && typeof date === "object" && constructFromSymbol in date)
|
|
1482
|
+
return date[constructFromSymbol](value);
|
|
1483
|
+
|
|
1484
|
+
if (date instanceof Date) return new date.constructor(value);
|
|
1485
|
+
|
|
1486
|
+
return new Date(value);
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
function normalizeDates(context, ...dates) {
|
|
1490
|
+
const normalize = constructFrom.bind(
|
|
1491
|
+
null,
|
|
1492
|
+
context || dates.find((date) => typeof date === "object"),
|
|
1493
|
+
);
|
|
1494
|
+
return dates.map(normalize);
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
let defaultOptions = {};
|
|
1498
|
+
|
|
1499
|
+
function getDefaultOptions() {
|
|
1500
|
+
return defaultOptions;
|
|
1497
1501
|
}
|
|
1498
1502
|
|
|
1499
1503
|
/**
|
|
@@ -1510,11 +1514,19 @@ function requiredArgs(required, args) {
|
|
|
1510
1514
|
*
|
|
1511
1515
|
* If the argument is none of the above, the function returns Invalid Date.
|
|
1512
1516
|
*
|
|
1517
|
+
* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]`
|
|
1518
|
+
* enabling to transfer extra properties from the reference date to the new date.
|
|
1519
|
+
* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)
|
|
1520
|
+
* that accept a time zone as a constructor argument.
|
|
1521
|
+
*
|
|
1513
1522
|
* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
|
|
1514
1523
|
*
|
|
1515
|
-
* @
|
|
1516
|
-
* @
|
|
1517
|
-
*
|
|
1524
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
1525
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
1526
|
+
*
|
|
1527
|
+
* @param argument - The value to convert
|
|
1528
|
+
*
|
|
1529
|
+
* @returns The parsed date in the local time zone
|
|
1518
1530
|
*
|
|
1519
1531
|
* @example
|
|
1520
1532
|
* // Clone the date:
|
|
@@ -1526,71 +1538,120 @@ function requiredArgs(required, args) {
|
|
|
1526
1538
|
* const result = toDate(1392098430000)
|
|
1527
1539
|
* //=> Tue Feb 11 2014 11:30:30
|
|
1528
1540
|
*/
|
|
1529
|
-
function toDate(argument) {
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
// Clone the date
|
|
1534
|
-
if (argument instanceof Date || _typeof$1(argument) === 'object' && argStr === '[object Date]') {
|
|
1535
|
-
// Prevent the date to lose the milliseconds when passed to new Date() in IE10
|
|
1536
|
-
return new Date(argument.getTime());
|
|
1537
|
-
} else if (typeof argument === 'number' || argStr === '[object Number]') {
|
|
1538
|
-
return new Date(argument);
|
|
1539
|
-
} else {
|
|
1540
|
-
if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
|
|
1541
|
-
// eslint-disable-next-line no-console
|
|
1542
|
-
console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");
|
|
1543
|
-
// eslint-disable-next-line no-console
|
|
1544
|
-
console.warn(new Error().stack);
|
|
1545
|
-
}
|
|
1546
|
-
return new Date(NaN);
|
|
1547
|
-
}
|
|
1541
|
+
function toDate(argument, context) {
|
|
1542
|
+
// [TODO] Get rid of `toDate` or `constructFrom`?
|
|
1543
|
+
return constructFrom(context || argument, argument);
|
|
1548
1544
|
}
|
|
1549
1545
|
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
}
|
|
1554
|
-
var number = Number(dirtyNumber);
|
|
1555
|
-
if (isNaN(number)) {
|
|
1556
|
-
return number;
|
|
1557
|
-
}
|
|
1558
|
-
return number < 0 ? Math.ceil(number) : Math.floor(number);
|
|
1559
|
-
}
|
|
1546
|
+
/**
|
|
1547
|
+
* The {@link startOfWeek} function options.
|
|
1548
|
+
*/
|
|
1560
1549
|
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1550
|
+
/**
|
|
1551
|
+
* @name startOfWeek
|
|
1552
|
+
* @category Week Helpers
|
|
1553
|
+
* @summary Return the start of a week for the given date.
|
|
1554
|
+
*
|
|
1555
|
+
* @description
|
|
1556
|
+
* Return the start of a week for the given date.
|
|
1557
|
+
* The result will be in the local timezone.
|
|
1558
|
+
*
|
|
1559
|
+
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
1560
|
+
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
1561
|
+
*
|
|
1562
|
+
* @param date - The original date
|
|
1563
|
+
* @param options - An object with options
|
|
1564
|
+
*
|
|
1565
|
+
* @returns The start of a week
|
|
1566
|
+
*
|
|
1567
|
+
* @example
|
|
1568
|
+
* // The start of a week for 2 September 2014 11:55:00:
|
|
1569
|
+
* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
|
|
1570
|
+
* //=> Sun Aug 31 2014 00:00:00
|
|
1571
|
+
*
|
|
1572
|
+
* @example
|
|
1573
|
+
* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
|
|
1574
|
+
* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
|
|
1575
|
+
* //=> Mon Sep 01 2014 00:00:00
|
|
1576
|
+
*/
|
|
1577
|
+
function startOfWeek(date, options) {
|
|
1578
|
+
const defaultOptions = getDefaultOptions();
|
|
1579
|
+
const weekStartsOn =
|
|
1580
|
+
options?.weekStartsOn ??
|
|
1581
|
+
options?.locale?.options?.weekStartsOn ??
|
|
1582
|
+
defaultOptions.weekStartsOn ??
|
|
1583
|
+
defaultOptions.locale?.options?.weekStartsOn ??
|
|
1584
|
+
0;
|
|
1585
|
+
|
|
1586
|
+
const _date = toDate(date, options?.in);
|
|
1587
|
+
const day = _date.getDay();
|
|
1588
|
+
const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
1589
|
+
|
|
1590
|
+
_date.setDate(_date.getDate() - diff);
|
|
1591
|
+
_date.setHours(0, 0, 0, 0);
|
|
1592
|
+
return _date;
|
|
1564
1593
|
}
|
|
1565
1594
|
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
var defaultOptions = getDefaultOptions();
|
|
1570
|
-
var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);
|
|
1595
|
+
/**
|
|
1596
|
+
* The {@link isSameWeek} function options.
|
|
1597
|
+
*/
|
|
1571
1598
|
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1599
|
+
/**
|
|
1600
|
+
* @name isSameWeek
|
|
1601
|
+
* @category Week Helpers
|
|
1602
|
+
* @summary Are the given dates in the same week (and month and year)?
|
|
1603
|
+
*
|
|
1604
|
+
* @description
|
|
1605
|
+
* Are the given dates in the same week (and month and year)?
|
|
1606
|
+
*
|
|
1607
|
+
* @param laterDate - The first date to check
|
|
1608
|
+
* @param earlierDate - The second date to check
|
|
1609
|
+
* @param options - An object with options
|
|
1610
|
+
*
|
|
1611
|
+
* @returns The dates are in the same week (and month and year)
|
|
1612
|
+
*
|
|
1613
|
+
* @example
|
|
1614
|
+
* // Are 31 August 2014 and 4 September 2014 in the same week?
|
|
1615
|
+
* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4))
|
|
1616
|
+
* //=> true
|
|
1617
|
+
*
|
|
1618
|
+
* @example
|
|
1619
|
+
* // If week starts with Monday,
|
|
1620
|
+
* // are 31 August 2014 and 4 September 2014 in the same week?
|
|
1621
|
+
* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), {
|
|
1622
|
+
* weekStartsOn: 1
|
|
1623
|
+
* })
|
|
1624
|
+
* //=> false
|
|
1625
|
+
*
|
|
1626
|
+
* @example
|
|
1627
|
+
* // Are 1 January 2014 and 1 January 2015 in the same week?
|
|
1628
|
+
* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1))
|
|
1629
|
+
* //=> false
|
|
1630
|
+
*/
|
|
1631
|
+
function isSameWeek(laterDate, earlierDate, options) {
|
|
1632
|
+
const [laterDate_, earlierDate_] = normalizeDates(
|
|
1633
|
+
options?.in,
|
|
1634
|
+
laterDate,
|
|
1635
|
+
earlierDate,
|
|
1636
|
+
);
|
|
1637
|
+
return (
|
|
1638
|
+
+startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options)
|
|
1639
|
+
);
|
|
1582
1640
|
}
|
|
1583
1641
|
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1642
|
+
const accusativeWeekdays = [
|
|
1643
|
+
"воскресенье",
|
|
1644
|
+
"понедельник",
|
|
1645
|
+
"вторник",
|
|
1646
|
+
"среду",
|
|
1647
|
+
"четверг",
|
|
1648
|
+
"пятницу",
|
|
1649
|
+
"субботу",
|
|
1650
|
+
];
|
|
1651
|
+
|
|
1652
|
+
function lastWeek(day) {
|
|
1653
|
+
const weekday = accusativeWeekdays[day];
|
|
1590
1654
|
|
|
1591
|
-
var accusativeWeekdays = ['воскресенье', 'понедельник', 'вторник', 'среду', 'четверг', 'пятницу', 'субботу'];
|
|
1592
|
-
function _lastWeek(day) {
|
|
1593
|
-
var weekday = accusativeWeekdays[day];
|
|
1594
1655
|
switch (day) {
|
|
1595
1656
|
case 0:
|
|
1596
1657
|
return "'в прошлое " + weekday + " в' p";
|
|
@@ -1604,16 +1665,20 @@ function _lastWeek(day) {
|
|
|
1604
1665
|
return "'в прошлую " + weekday + " в' p";
|
|
1605
1666
|
}
|
|
1606
1667
|
}
|
|
1668
|
+
|
|
1607
1669
|
function thisWeek(day) {
|
|
1608
|
-
|
|
1670
|
+
const weekday = accusativeWeekdays[day];
|
|
1671
|
+
|
|
1609
1672
|
if (day === 2 /* Tue */) {
|
|
1610
1673
|
return "'во " + weekday + " в' p";
|
|
1611
1674
|
} else {
|
|
1612
1675
|
return "'в " + weekday + " в' p";
|
|
1613
1676
|
}
|
|
1614
1677
|
}
|
|
1615
|
-
|
|
1616
|
-
|
|
1678
|
+
|
|
1679
|
+
function nextWeek(day) {
|
|
1680
|
+
const weekday = accusativeWeekdays[day];
|
|
1681
|
+
|
|
1617
1682
|
switch (day) {
|
|
1618
1683
|
case 0:
|
|
1619
1684
|
return "'в следующее " + weekday + " в' p";
|
|
@@ -1627,213 +1692,329 @@ function _nextWeek(day) {
|
|
|
1627
1692
|
return "'в следующую " + weekday + " в' p";
|
|
1628
1693
|
}
|
|
1629
1694
|
}
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1695
|
+
|
|
1696
|
+
const formatRelativeLocale = {
|
|
1697
|
+
lastWeek: (date, baseDate, options) => {
|
|
1698
|
+
const day = date.getDay();
|
|
1699
|
+
if (isSameWeek(date, baseDate, options)) {
|
|
1634
1700
|
return thisWeek(day);
|
|
1635
1701
|
} else {
|
|
1636
|
-
return
|
|
1702
|
+
return lastWeek(day);
|
|
1637
1703
|
}
|
|
1638
1704
|
},
|
|
1639
1705
|
yesterday: "'вчера в' p",
|
|
1640
1706
|
today: "'сегодня в' p",
|
|
1641
1707
|
tomorrow: "'завтра в' p",
|
|
1642
|
-
nextWeek:
|
|
1643
|
-
|
|
1644
|
-
if (
|
|
1708
|
+
nextWeek: (date, baseDate, options) => {
|
|
1709
|
+
const day = date.getDay();
|
|
1710
|
+
if (isSameWeek(date, baseDate, options)) {
|
|
1645
1711
|
return thisWeek(day);
|
|
1646
1712
|
} else {
|
|
1647
|
-
return
|
|
1713
|
+
return nextWeek(day);
|
|
1648
1714
|
}
|
|
1649
1715
|
},
|
|
1650
|
-
other:
|
|
1716
|
+
other: "P",
|
|
1651
1717
|
};
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1718
|
+
|
|
1719
|
+
const formatRelative = (token, date, baseDate, options) => {
|
|
1720
|
+
const format = formatRelativeLocale[token];
|
|
1721
|
+
|
|
1722
|
+
if (typeof format === "function") {
|
|
1655
1723
|
return format(date, baseDate, options);
|
|
1656
1724
|
}
|
|
1725
|
+
|
|
1657
1726
|
return format;
|
|
1658
1727
|
};
|
|
1659
1728
|
|
|
1660
|
-
|
|
1661
|
-
narrow: [
|
|
1662
|
-
abbreviated: [
|
|
1663
|
-
wide: [
|
|
1664
|
-
};
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1729
|
+
const eraValues = {
|
|
1730
|
+
narrow: ["до н.э.", "н.э."],
|
|
1731
|
+
abbreviated: ["до н. э.", "н. э."],
|
|
1732
|
+
wide: ["до нашей эры", "нашей эры"],
|
|
1733
|
+
};
|
|
1734
|
+
|
|
1735
|
+
const quarterValues = {
|
|
1736
|
+
narrow: ["1", "2", "3", "4"],
|
|
1737
|
+
abbreviated: ["1-й кв.", "2-й кв.", "3-й кв.", "4-й кв."],
|
|
1738
|
+
wide: ["1-й квартал", "2-й квартал", "3-й квартал", "4-й квартал"],
|
|
1739
|
+
};
|
|
1740
|
+
|
|
1741
|
+
const monthValues = {
|
|
1742
|
+
narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"],
|
|
1743
|
+
abbreviated: [
|
|
1744
|
+
"янв.",
|
|
1745
|
+
"фев.",
|
|
1746
|
+
"март",
|
|
1747
|
+
"апр.",
|
|
1748
|
+
"май",
|
|
1749
|
+
"июнь",
|
|
1750
|
+
"июль",
|
|
1751
|
+
"авг.",
|
|
1752
|
+
"сент.",
|
|
1753
|
+
"окт.",
|
|
1754
|
+
"нояб.",
|
|
1755
|
+
"дек.",
|
|
1756
|
+
],
|
|
1757
|
+
|
|
1758
|
+
wide: [
|
|
1759
|
+
"январь",
|
|
1760
|
+
"февраль",
|
|
1761
|
+
"март",
|
|
1762
|
+
"апрель",
|
|
1763
|
+
"май",
|
|
1764
|
+
"июнь",
|
|
1765
|
+
"июль",
|
|
1766
|
+
"август",
|
|
1767
|
+
"сентябрь",
|
|
1768
|
+
"октябрь",
|
|
1769
|
+
"ноябрь",
|
|
1770
|
+
"декабрь",
|
|
1771
|
+
],
|
|
1772
|
+
};
|
|
1773
|
+
|
|
1774
|
+
const formattingMonthValues = {
|
|
1775
|
+
narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"],
|
|
1776
|
+
abbreviated: [
|
|
1777
|
+
"янв.",
|
|
1778
|
+
"фев.",
|
|
1779
|
+
"мар.",
|
|
1780
|
+
"апр.",
|
|
1781
|
+
"мая",
|
|
1782
|
+
"июн.",
|
|
1783
|
+
"июл.",
|
|
1784
|
+
"авг.",
|
|
1785
|
+
"сент.",
|
|
1786
|
+
"окт.",
|
|
1787
|
+
"нояб.",
|
|
1788
|
+
"дек.",
|
|
1789
|
+
],
|
|
1790
|
+
|
|
1791
|
+
wide: [
|
|
1792
|
+
"января",
|
|
1793
|
+
"февраля",
|
|
1794
|
+
"марта",
|
|
1795
|
+
"апреля",
|
|
1796
|
+
"мая",
|
|
1797
|
+
"июня",
|
|
1798
|
+
"июля",
|
|
1799
|
+
"августа",
|
|
1800
|
+
"сентября",
|
|
1801
|
+
"октября",
|
|
1802
|
+
"ноября",
|
|
1803
|
+
"декабря",
|
|
1804
|
+
],
|
|
1805
|
+
};
|
|
1806
|
+
|
|
1807
|
+
const dayValues = {
|
|
1808
|
+
narrow: ["В", "П", "В", "С", "Ч", "П", "С"],
|
|
1809
|
+
short: ["вс", "пн", "вт", "ср", "чт", "пт", "сб"],
|
|
1810
|
+
abbreviated: ["вск", "пнд", "втр", "срд", "чтв", "птн", "суб"],
|
|
1811
|
+
wide: [
|
|
1812
|
+
"воскресенье",
|
|
1813
|
+
"понедельник",
|
|
1814
|
+
"вторник",
|
|
1815
|
+
"среда",
|
|
1816
|
+
"четверг",
|
|
1817
|
+
"пятница",
|
|
1818
|
+
"суббота",
|
|
1819
|
+
],
|
|
1820
|
+
};
|
|
1821
|
+
|
|
1822
|
+
const dayPeriodValues = {
|
|
1687
1823
|
narrow: {
|
|
1688
|
-
am:
|
|
1689
|
-
pm:
|
|
1690
|
-
midnight:
|
|
1691
|
-
noon:
|
|
1692
|
-
morning:
|
|
1693
|
-
afternoon:
|
|
1694
|
-
evening:
|
|
1695
|
-
night:
|
|
1824
|
+
am: "ДП",
|
|
1825
|
+
pm: "ПП",
|
|
1826
|
+
midnight: "полн.",
|
|
1827
|
+
noon: "полд.",
|
|
1828
|
+
morning: "утро",
|
|
1829
|
+
afternoon: "день",
|
|
1830
|
+
evening: "веч.",
|
|
1831
|
+
night: "ночь",
|
|
1696
1832
|
},
|
|
1697
1833
|
abbreviated: {
|
|
1698
|
-
am:
|
|
1699
|
-
pm:
|
|
1700
|
-
midnight:
|
|
1701
|
-
noon:
|
|
1702
|
-
morning:
|
|
1703
|
-
afternoon:
|
|
1704
|
-
evening:
|
|
1705
|
-
night:
|
|
1834
|
+
am: "ДП",
|
|
1835
|
+
pm: "ПП",
|
|
1836
|
+
midnight: "полн.",
|
|
1837
|
+
noon: "полд.",
|
|
1838
|
+
morning: "утро",
|
|
1839
|
+
afternoon: "день",
|
|
1840
|
+
evening: "веч.",
|
|
1841
|
+
night: "ночь",
|
|
1706
1842
|
},
|
|
1707
1843
|
wide: {
|
|
1708
|
-
am:
|
|
1709
|
-
pm:
|
|
1710
|
-
midnight:
|
|
1711
|
-
noon:
|
|
1712
|
-
morning:
|
|
1713
|
-
afternoon:
|
|
1714
|
-
evening:
|
|
1715
|
-
night:
|
|
1716
|
-
}
|
|
1844
|
+
am: "ДП",
|
|
1845
|
+
pm: "ПП",
|
|
1846
|
+
midnight: "полночь",
|
|
1847
|
+
noon: "полдень",
|
|
1848
|
+
morning: "утро",
|
|
1849
|
+
afternoon: "день",
|
|
1850
|
+
evening: "вечер",
|
|
1851
|
+
night: "ночь",
|
|
1852
|
+
},
|
|
1717
1853
|
};
|
|
1718
|
-
|
|
1854
|
+
|
|
1855
|
+
const formattingDayPeriodValues = {
|
|
1719
1856
|
narrow: {
|
|
1720
|
-
am:
|
|
1721
|
-
pm:
|
|
1722
|
-
midnight:
|
|
1723
|
-
noon:
|
|
1724
|
-
morning:
|
|
1725
|
-
afternoon:
|
|
1726
|
-
evening:
|
|
1727
|
-
night:
|
|
1857
|
+
am: "ДП",
|
|
1858
|
+
pm: "ПП",
|
|
1859
|
+
midnight: "полн.",
|
|
1860
|
+
noon: "полд.",
|
|
1861
|
+
morning: "утра",
|
|
1862
|
+
afternoon: "дня",
|
|
1863
|
+
evening: "веч.",
|
|
1864
|
+
night: "ночи",
|
|
1728
1865
|
},
|
|
1729
1866
|
abbreviated: {
|
|
1730
|
-
am:
|
|
1731
|
-
pm:
|
|
1732
|
-
midnight:
|
|
1733
|
-
noon:
|
|
1734
|
-
morning:
|
|
1735
|
-
afternoon:
|
|
1736
|
-
evening:
|
|
1737
|
-
night:
|
|
1867
|
+
am: "ДП",
|
|
1868
|
+
pm: "ПП",
|
|
1869
|
+
midnight: "полн.",
|
|
1870
|
+
noon: "полд.",
|
|
1871
|
+
morning: "утра",
|
|
1872
|
+
afternoon: "дня",
|
|
1873
|
+
evening: "веч.",
|
|
1874
|
+
night: "ночи",
|
|
1738
1875
|
},
|
|
1739
1876
|
wide: {
|
|
1740
|
-
am:
|
|
1741
|
-
pm:
|
|
1742
|
-
midnight:
|
|
1743
|
-
noon:
|
|
1744
|
-
morning:
|
|
1745
|
-
afternoon:
|
|
1746
|
-
evening:
|
|
1747
|
-
night:
|
|
1748
|
-
}
|
|
1877
|
+
am: "ДП",
|
|
1878
|
+
pm: "ПП",
|
|
1879
|
+
midnight: "полночь",
|
|
1880
|
+
noon: "полдень",
|
|
1881
|
+
morning: "утра",
|
|
1882
|
+
afternoon: "дня",
|
|
1883
|
+
evening: "вечера",
|
|
1884
|
+
night: "ночи",
|
|
1885
|
+
},
|
|
1749
1886
|
};
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
suffix =
|
|
1887
|
+
|
|
1888
|
+
const ordinalNumber = (dirtyNumber, options) => {
|
|
1889
|
+
const number = Number(dirtyNumber);
|
|
1890
|
+
const unit = options?.unit;
|
|
1891
|
+
|
|
1892
|
+
let suffix;
|
|
1893
|
+
if (unit === "date") {
|
|
1894
|
+
suffix = "-е";
|
|
1895
|
+
} else if (unit === "week" || unit === "minute" || unit === "second") {
|
|
1896
|
+
suffix = "-я";
|
|
1758
1897
|
} else {
|
|
1759
|
-
suffix =
|
|
1898
|
+
suffix = "-й";
|
|
1760
1899
|
}
|
|
1900
|
+
|
|
1761
1901
|
return number + suffix;
|
|
1762
1902
|
};
|
|
1763
|
-
|
|
1764
|
-
|
|
1903
|
+
|
|
1904
|
+
const localize = {
|
|
1905
|
+
ordinalNumber,
|
|
1906
|
+
|
|
1765
1907
|
era: buildLocalizeFn({
|
|
1766
1908
|
values: eraValues,
|
|
1767
|
-
defaultWidth:
|
|
1909
|
+
defaultWidth: "wide",
|
|
1768
1910
|
}),
|
|
1911
|
+
|
|
1769
1912
|
quarter: buildLocalizeFn({
|
|
1770
1913
|
values: quarterValues,
|
|
1771
|
-
defaultWidth:
|
|
1772
|
-
argumentCallback:
|
|
1773
|
-
return quarter - 1;
|
|
1774
|
-
}
|
|
1914
|
+
defaultWidth: "wide",
|
|
1915
|
+
argumentCallback: (quarter) => quarter - 1,
|
|
1775
1916
|
}),
|
|
1917
|
+
|
|
1776
1918
|
month: buildLocalizeFn({
|
|
1777
1919
|
values: monthValues,
|
|
1778
|
-
defaultWidth:
|
|
1920
|
+
defaultWidth: "wide",
|
|
1779
1921
|
formattingValues: formattingMonthValues,
|
|
1780
|
-
defaultFormattingWidth:
|
|
1922
|
+
defaultFormattingWidth: "wide",
|
|
1781
1923
|
}),
|
|
1924
|
+
|
|
1782
1925
|
day: buildLocalizeFn({
|
|
1783
1926
|
values: dayValues,
|
|
1784
|
-
defaultWidth:
|
|
1927
|
+
defaultWidth: "wide",
|
|
1785
1928
|
}),
|
|
1929
|
+
|
|
1786
1930
|
dayPeriod: buildLocalizeFn({
|
|
1787
1931
|
values: dayPeriodValues,
|
|
1788
|
-
defaultWidth:
|
|
1932
|
+
defaultWidth: "any",
|
|
1789
1933
|
formattingValues: formattingDayPeriodValues,
|
|
1790
|
-
defaultFormattingWidth:
|
|
1791
|
-
})
|
|
1934
|
+
defaultFormattingWidth: "wide",
|
|
1935
|
+
}),
|
|
1792
1936
|
};
|
|
1793
1937
|
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1938
|
+
const matchOrdinalNumberPattern = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i;
|
|
1939
|
+
const parseOrdinalNumberPattern = /\d+/i;
|
|
1940
|
+
|
|
1941
|
+
const matchEraPatterns = {
|
|
1797
1942
|
narrow: /^((до )?н\.?\s?э\.?)/i,
|
|
1798
1943
|
abbreviated: /^((до )?н\.?\s?э\.?)/i,
|
|
1799
|
-
wide: /^(до нашей эры|нашей эры|наша эра)/i
|
|
1944
|
+
wide: /^(до нашей эры|нашей эры|наша эра)/i,
|
|
1800
1945
|
};
|
|
1801
|
-
|
|
1802
|
-
any: [/^д/i, /^н/i]
|
|
1946
|
+
const parseEraPatterns = {
|
|
1947
|
+
any: [/^д/i, /^н/i],
|
|
1803
1948
|
};
|
|
1804
|
-
|
|
1949
|
+
|
|
1950
|
+
const matchQuarterPatterns = {
|
|
1805
1951
|
narrow: /^[1234]/i,
|
|
1806
1952
|
abbreviated: /^[1234](-?[ыои]?й?)? кв.?/i,
|
|
1807
|
-
wide: /^[1234](-?[ыои]?й?)? квартал/i
|
|
1953
|
+
wide: /^[1234](-?[ыои]?й?)? квартал/i,
|
|
1808
1954
|
};
|
|
1809
|
-
|
|
1810
|
-
|
|
1955
|
+
|
|
1956
|
+
const parseQuarterPatterns = {
|
|
1957
|
+
any: [/1/i, /2/i, /3/i, /4/i],
|
|
1811
1958
|
};
|
|
1812
|
-
|
|
1959
|
+
|
|
1960
|
+
const matchMonthPatterns = {
|
|
1813
1961
|
narrow: /^[яфмаисонд]/i,
|
|
1814
|
-
abbreviated:
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1962
|
+
abbreviated:
|
|
1963
|
+
/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,
|
|
1964
|
+
wide: /^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i,
|
|
1965
|
+
};
|
|
1966
|
+
|
|
1967
|
+
const parseMonthPatterns = {
|
|
1968
|
+
narrow: [
|
|
1969
|
+
/^я/i,
|
|
1970
|
+
/^ф/i,
|
|
1971
|
+
/^м/i,
|
|
1972
|
+
/^а/i,
|
|
1973
|
+
/^м/i,
|
|
1974
|
+
/^и/i,
|
|
1975
|
+
/^и/i,
|
|
1976
|
+
/^а/i,
|
|
1977
|
+
/^с/i,
|
|
1978
|
+
/^о/i,
|
|
1979
|
+
/^н/i,
|
|
1980
|
+
/^я/i,
|
|
1981
|
+
],
|
|
1982
|
+
|
|
1983
|
+
any: [
|
|
1984
|
+
/^я/i,
|
|
1985
|
+
/^ф/i,
|
|
1986
|
+
/^мар/i,
|
|
1987
|
+
/^ап/i,
|
|
1988
|
+
/^ма[йя]/i,
|
|
1989
|
+
/^июн/i,
|
|
1990
|
+
/^июл/i,
|
|
1991
|
+
/^ав/i,
|
|
1992
|
+
/^с/i,
|
|
1993
|
+
/^о/i,
|
|
1994
|
+
/^н/i,
|
|
1995
|
+
/^д/i,
|
|
1996
|
+
],
|
|
1997
|
+
};
|
|
1998
|
+
|
|
1999
|
+
const matchDayPatterns = {
|
|
1822
2000
|
narrow: /^[впсч]/i,
|
|
1823
2001
|
short: /^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,
|
|
1824
2002
|
abbreviated: /^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,
|
|
1825
|
-
wide: /^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i
|
|
2003
|
+
wide: /^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i,
|
|
1826
2004
|
};
|
|
1827
|
-
|
|
2005
|
+
|
|
2006
|
+
const parseDayPatterns = {
|
|
1828
2007
|
narrow: [/^в/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i],
|
|
1829
|
-
any: [/^в[ос]/i, /^п[он]/i, /^в/i, /^ср/i, /^ч/i, /^п[ят]/i, /^с[уб]/i]
|
|
2008
|
+
any: [/^в[ос]/i, /^п[он]/i, /^в/i, /^ср/i, /^ч/i, /^п[ят]/i, /^с[уб]/i],
|
|
1830
2009
|
};
|
|
1831
|
-
|
|
2010
|
+
|
|
2011
|
+
const matchDayPeriodPatterns = {
|
|
1832
2012
|
narrow: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,
|
|
1833
2013
|
abbreviated: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,
|
|
1834
|
-
wide: /^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i
|
|
2014
|
+
wide: /^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i,
|
|
1835
2015
|
};
|
|
1836
|
-
|
|
2016
|
+
|
|
2017
|
+
const parseDayPeriodPatterns = {
|
|
1837
2018
|
any: {
|
|
1838
2019
|
am: /^дп/i,
|
|
1839
2020
|
pm: /^пп/i,
|
|
@@ -1842,63 +2023,64 @@ var parseDayPeriodPatterns = {
|
|
|
1842
2023
|
morning: /^у/i,
|
|
1843
2024
|
afternoon: /^д[ен]/i,
|
|
1844
2025
|
evening: /^в/i,
|
|
1845
|
-
night: /^н/i
|
|
1846
|
-
}
|
|
2026
|
+
night: /^н/i,
|
|
2027
|
+
},
|
|
1847
2028
|
};
|
|
1848
|
-
|
|
2029
|
+
|
|
2030
|
+
const match = {
|
|
1849
2031
|
ordinalNumber: buildMatchPatternFn({
|
|
1850
2032
|
matchPattern: matchOrdinalNumberPattern,
|
|
1851
2033
|
parsePattern: parseOrdinalNumberPattern,
|
|
1852
|
-
valueCallback:
|
|
1853
|
-
return parseInt(value, 10);
|
|
1854
|
-
}
|
|
2034
|
+
valueCallback: (value) => parseInt(value, 10),
|
|
1855
2035
|
}),
|
|
2036
|
+
|
|
1856
2037
|
era: buildMatchFn({
|
|
1857
2038
|
matchPatterns: matchEraPatterns,
|
|
1858
|
-
defaultMatchWidth:
|
|
2039
|
+
defaultMatchWidth: "wide",
|
|
1859
2040
|
parsePatterns: parseEraPatterns,
|
|
1860
|
-
defaultParseWidth:
|
|
2041
|
+
defaultParseWidth: "any",
|
|
1861
2042
|
}),
|
|
2043
|
+
|
|
1862
2044
|
quarter: buildMatchFn({
|
|
1863
2045
|
matchPatterns: matchQuarterPatterns,
|
|
1864
|
-
defaultMatchWidth:
|
|
2046
|
+
defaultMatchWidth: "wide",
|
|
1865
2047
|
parsePatterns: parseQuarterPatterns,
|
|
1866
|
-
defaultParseWidth:
|
|
1867
|
-
valueCallback:
|
|
1868
|
-
return index + 1;
|
|
1869
|
-
}
|
|
2048
|
+
defaultParseWidth: "any",
|
|
2049
|
+
valueCallback: (index) => index + 1,
|
|
1870
2050
|
}),
|
|
2051
|
+
|
|
1871
2052
|
month: buildMatchFn({
|
|
1872
2053
|
matchPatterns: matchMonthPatterns,
|
|
1873
|
-
defaultMatchWidth:
|
|
2054
|
+
defaultMatchWidth: "wide",
|
|
1874
2055
|
parsePatterns: parseMonthPatterns,
|
|
1875
|
-
defaultParseWidth:
|
|
2056
|
+
defaultParseWidth: "any",
|
|
1876
2057
|
}),
|
|
2058
|
+
|
|
1877
2059
|
day: buildMatchFn({
|
|
1878
2060
|
matchPatterns: matchDayPatterns,
|
|
1879
|
-
defaultMatchWidth:
|
|
2061
|
+
defaultMatchWidth: "wide",
|
|
1880
2062
|
parsePatterns: parseDayPatterns,
|
|
1881
|
-
defaultParseWidth:
|
|
2063
|
+
defaultParseWidth: "any",
|
|
1882
2064
|
}),
|
|
2065
|
+
|
|
1883
2066
|
dayPeriod: buildMatchFn({
|
|
1884
2067
|
matchPatterns: matchDayPeriodPatterns,
|
|
1885
|
-
defaultMatchWidth:
|
|
2068
|
+
defaultMatchWidth: "wide",
|
|
1886
2069
|
parsePatterns: parseDayPeriodPatterns,
|
|
1887
|
-
defaultParseWidth:
|
|
1888
|
-
})
|
|
2070
|
+
defaultParseWidth: "any",
|
|
2071
|
+
}),
|
|
1889
2072
|
};
|
|
1890
2073
|
|
|
1891
2074
|
/**
|
|
1892
|
-
* @type {Locale}
|
|
1893
2075
|
* @category Locales
|
|
1894
2076
|
* @summary Russian locale.
|
|
1895
2077
|
* @language Russian
|
|
1896
2078
|
* @iso-639-2 rus
|
|
1897
|
-
* @author Sasha Koss [@kossnocorp]
|
|
1898
|
-
* @author Lesha Koss [@leshakoss]
|
|
2079
|
+
* @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)
|
|
2080
|
+
* @author Lesha Koss [@leshakoss](https://github.com/leshakoss)
|
|
1899
2081
|
*/
|
|
1900
|
-
|
|
1901
|
-
code:
|
|
2082
|
+
const ru$2 = {
|
|
2083
|
+
code: "ru",
|
|
1902
2084
|
formatDistance: formatDistance,
|
|
1903
2085
|
formatLong: formatLong,
|
|
1904
2086
|
formatRelative: formatRelative,
|
|
@@ -1906,31 +2088,64 @@ var locale = {
|
|
|
1906
2088
|
match: match,
|
|
1907
2089
|
options: {
|
|
1908
2090
|
weekStartsOn: 1 /* Monday */,
|
|
1909
|
-
firstWeekContainsDate: 1
|
|
1910
|
-
}
|
|
2091
|
+
firstWeekContainsDate: 1,
|
|
2092
|
+
},
|
|
1911
2093
|
};
|
|
1912
2094
|
|
|
1913
|
-
var hyAm = {exports: {}};
|
|
2095
|
+
var hyAm$1 = {exports: {}};
|
|
1914
2096
|
|
|
1915
|
-
|
|
1916
|
-
!function(_,e){module.exports=e(dayjs);}(commonjsGlobal,(function(_){function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"hy-am",weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),months:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),weekStart:1,weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"}};return t.default.locale(d,null,!0),d}));
|
|
1917
|
-
} (hyAm));
|
|
2097
|
+
var hyAm = hyAm$1.exports;
|
|
1918
2098
|
|
|
1919
|
-
var
|
|
2099
|
+
var hasRequiredHyAm;
|
|
1920
2100
|
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
2101
|
+
function requireHyAm () {
|
|
2102
|
+
if (hasRequiredHyAm) return hyAm$1.exports;
|
|
2103
|
+
hasRequiredHyAm = 1;
|
|
2104
|
+
(function (module, exports) {
|
|
2105
|
+
!function(_,e){module.exports=e(dayjs);}(hyAm,(function(_){function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"hy-am",weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),months:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),weekStart:1,weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"}};return t.default.locale(d,null,true),d}));
|
|
2106
|
+
} (hyAm$1));
|
|
2107
|
+
return hyAm$1.exports;
|
|
2108
|
+
}
|
|
1924
2109
|
|
|
1925
|
-
|
|
2110
|
+
requireHyAm();
|
|
2111
|
+
|
|
2112
|
+
var ru$1 = {exports: {}};
|
|
2113
|
+
|
|
2114
|
+
var ru = ru$1.exports;
|
|
2115
|
+
|
|
2116
|
+
var hasRequiredRu;
|
|
2117
|
+
|
|
2118
|
+
function requireRu () {
|
|
2119
|
+
if (hasRequiredRu) return ru$1.exports;
|
|
2120
|
+
hasRequiredRu = 1;
|
|
2121
|
+
(function (module, exports) {
|
|
2122
|
+
!function(_,t){module.exports=t(dayjs);}(ru,(function(_){function t(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var e=t(_),n="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),s="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),r="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),o="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),i=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function d(_,t,e){var n,s;return "m"===e?t?"минута":"минуту":_+" "+(n=+_,s={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[e].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2])}var u=function(_,t){return i.test(t)?n[_.month()]:s[_.month()]};u.s=s,u.f=n;var a=function(_,t){return i.test(t)?r[_.month()]:o[_.month()]};a.s=o,a.f=r;var m={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:u,monthsShort:a,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:d,mm:d,h:"час",hh:d,d:"день",dd:d,M:"месяц",MM:d,y:"год",yy:d},ordinal:function(_){return _},meridiem:function(_){return _<4?"ночи":_<12?"утра":_<17?"дня":"вечера"}};return e.default.locale(m,null,true),m}));
|
|
2123
|
+
} (ru$1));
|
|
2124
|
+
return ru$1.exports;
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
requireRu();
|
|
2128
|
+
|
|
2129
|
+
var en$1 = {exports: {}};
|
|
2130
|
+
|
|
2131
|
+
var en = en$1.exports;
|
|
2132
|
+
|
|
2133
|
+
var hasRequiredEn;
|
|
2134
|
+
|
|
2135
|
+
function requireEn () {
|
|
2136
|
+
if (hasRequiredEn) return en$1.exports;
|
|
2137
|
+
hasRequiredEn = 1;
|
|
2138
|
+
(function (module, exports) {
|
|
2139
|
+
!function(e,n){module.exports=n();}(en,(function(){return {name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var n=["th","st","nd","rd"],t=e%100;return "["+e+(n[(t-20)%10]||n[t]||n[0])+"]"}}}));
|
|
2140
|
+
} (en$1));
|
|
2141
|
+
return en$1.exports;
|
|
2142
|
+
}
|
|
1926
2143
|
|
|
1927
|
-
(
|
|
1928
|
-
!function(e,n){module.exports=n();}(commonjsGlobal,(function(){return {name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var n=["th","st","nd","rd"],t=e%100;return "["+e+(n[(t-20)%10]||n[t]||n[0])+"]"}}}));
|
|
1929
|
-
} (en));
|
|
2144
|
+
requireEn();
|
|
1930
2145
|
|
|
1931
|
-
registerLocale('hy',
|
|
1932
|
-
registerLocale('en',
|
|
1933
|
-
registerLocale('ru',
|
|
2146
|
+
registerLocale('hy', hy);
|
|
2147
|
+
registerLocale('en', enGB);
|
|
2148
|
+
registerLocale('ru', ru$2);
|
|
1934
2149
|
function useImportFilesDynamically(dayjsLocale) {
|
|
1935
2150
|
var _useState = useState(false),
|
|
1936
2151
|
_useState2 = _slicedToArray(_useState, 2);
|
|
@@ -1938,12 +2153,12 @@ function useImportFilesDynamically(dayjsLocale) {
|
|
|
1938
2153
|
var setIsFilesLoaded = _useState2[1];
|
|
1939
2154
|
useEffect(function () {
|
|
1940
2155
|
if (dayjsLocale) {
|
|
1941
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
1942
|
-
return
|
|
2156
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
2157
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
1943
2158
|
while (1) switch (_context.prev = _context.next) {
|
|
1944
2159
|
case 0:
|
|
1945
2160
|
setIsFilesLoaded(false);
|
|
1946
|
-
locale
|
|
2161
|
+
locale(DayJSLocale[dayjsLocale]);
|
|
1947
2162
|
setTimeout(function () {
|
|
1948
2163
|
setIsFilesLoaded(true);
|
|
1949
2164
|
}, 0);
|