impact-ui 5.0.0 → 5.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index16.js +2 -2
- package/dist/_virtual/index2.js +2 -2
- package/dist/_virtual/index3.js +4 -2
- package/dist/_virtual/index4.js +3 -3
- package/dist/_virtual/index5.js +2 -4
- package/dist/assets/halloween_candle_light.html.js +2320 -0
- package/dist/assets/halloween_night.html.js +2307 -0
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/AccordionModern/SortableAccordionComp.d.ts +2 -2
- package/dist/components/AccordionModern/SortableAccordionComp.d.ts.map +1 -1
- package/dist/components/AccordionModern/SortableAccordionComp.js +2 -2
- package/dist/components/AccordionModern/index.d.ts +1 -1
- package/dist/components/AccordionModern/index.d.ts.map +1 -1
- package/dist/components/AccordionModern/index.js +34 -41
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Badge/filled/filledIconLabelBadges/index.d.ts +1 -1
- package/dist/components/Badge/filled/filledIconLabelBadges/index.d.ts.map +1 -1
- package/dist/components/Badge/filled/filledIconLabelBadges/index.js +1 -1
- package/dist/components/Badge/filled/filledOnlyIconBadges/index.d.ts +1 -1
- package/dist/components/Badge/filled/filledOnlyIconBadges/index.d.ts.map +1 -1
- package/dist/components/Badge/filled/filledOnlyIconBadges/index.js +1 -1
- package/dist/components/Badge/filled/filledOnlyLabelBadges/index.d.ts +1 -1
- package/dist/components/Badge/filled/filledOnlyLabelBadges/index.d.ts.map +1 -1
- package/dist/components/Badge/filled/filledOnlyLabelBadges/index.js +1 -1
- package/dist/components/Badge/filled/index.d.ts +1 -1
- package/dist/components/Badge/filled/index.d.ts.map +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Badge/stroke/index.d.ts +1 -1
- package/dist/components/Badge/stroke/index.d.ts.map +1 -1
- package/dist/components/Badge/stroke/strokeIconLabelBadges/index.d.ts +1 -1
- package/dist/components/Badge/stroke/strokeIconLabelBadges/index.d.ts.map +1 -1
- package/dist/components/Badge/stroke/strokeIconLabelBadges/index.js +1 -1
- package/dist/components/Badge/stroke/strokeOnlyIconBadges/index.d.ts +1 -1
- package/dist/components/Badge/stroke/strokeOnlyIconBadges/index.d.ts.map +1 -1
- package/dist/components/Badge/stroke/strokeOnlyIconBadges/index.js +1 -1
- package/dist/components/Badge/stroke/strokeOnlyLabelBadges/index.d.ts +1 -1
- package/dist/components/Badge/stroke/strokeOnlyLabelBadges/index.d.ts.map +1 -1
- package/dist/components/Badge/stroke/strokeOnlyLabelBadges/index.js +1 -1
- package/dist/components/Badge/subtle/index.d.ts +1 -1
- package/dist/components/Badge/subtle/index.d.ts.map +1 -1
- package/dist/components/Badge/subtle/subtleIOnlyIconBadges/index.d.ts +1 -1
- package/dist/components/Badge/subtle/subtleIOnlyIconBadges/index.d.ts.map +1 -1
- package/dist/components/Badge/subtle/subtleIOnlyIconBadges/index.js +1 -1
- package/dist/components/Badge/subtle/subtleIconLabelBadges/index.d.ts +1 -1
- package/dist/components/Badge/subtle/subtleIconLabelBadges/index.d.ts.map +1 -1
- package/dist/components/Badge/subtle/subtleIconLabelBadges/index.js +1 -1
- package/dist/components/Badge/subtle/subtleOnlyLabelBadges/index.d.ts +1 -1
- package/dist/components/Badge/subtle/subtleOnlyLabelBadges/index.d.ts.map +1 -1
- package/dist/components/Badge/subtle/subtleOnlyLabelBadges/index.js +1 -1
- package/dist/components/BottomSheet/index.d.ts +1 -1
- package/dist/components/BottomSheet/index.d.ts.map +1 -1
- package/dist/components/BottomSheet/index.js +1 -1
- package/dist/components/Breadcrumbs/HomeIcon.d.ts +1 -1
- package/dist/components/Breadcrumbs/HomeIcon.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/HomeIcon.js +1 -1
- package/dist/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/index.js +8 -2
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +5 -1
- package/dist/components/ButtonGroup/index.d.ts +1 -1
- package/dist/components/ButtonGroup/index.d.ts.map +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Card/index.js +1 -1
- package/dist/components/Chart/ChartSkeleton.d.ts +1 -1
- package/dist/components/Chart/ChartSkeleton.d.ts.map +1 -1
- package/dist/components/Chart/ChartSkeleton.js +24 -17
- package/dist/components/Chart/index.d.ts +2 -1
- package/dist/components/Chart/index.d.ts.map +1 -1
- package/dist/components/Chart/index.js +84 -28
- package/dist/components/Chatbot/Chatbot.types.d.ts +2 -0
- package/dist/components/Chatbot/Chatbot.types.d.ts.map +1 -1
- package/dist/components/Chatbot/bookMarkPanel.d.ts +1 -1
- package/dist/components/Chatbot/bookMarkPanel.d.ts.map +1 -1
- package/dist/components/Chatbot/bookMarkPanel.js +12 -5
- package/dist/components/Chatbot/chatBotFooter.d.ts +1 -1
- package/dist/components/Chatbot/chatBotFooter.d.ts.map +1 -1
- package/dist/components/Chatbot/chatBotLandingScreen.d.ts +1 -1
- package/dist/components/Chatbot/chatBotLandingScreen.d.ts.map +1 -1
- package/dist/components/Chatbot/chatInput.d.ts +1 -1
- package/dist/components/Chatbot/chatInput.d.ts.map +1 -1
- package/dist/components/Chatbot/chatInput.js +7 -9
- package/dist/components/Chatbot/chatbotModuleMenu.d.ts +1 -1
- package/dist/components/Chatbot/chatbotModuleMenu.d.ts.map +1 -1
- package/dist/components/Chatbot/chatbotModuleMenu.js +10 -15
- package/dist/components/Chatbot/constant.d.ts.map +1 -1
- package/dist/components/Chatbot/constant.js +12 -12
- package/dist/components/Chatbot/conversationScreen.d.ts +1 -1
- package/dist/components/Chatbot/conversationScreen.d.ts.map +1 -1
- package/dist/components/Chatbot/customScreen.d.ts +1 -1
- package/dist/components/Chatbot/customScreen.d.ts.map +1 -1
- package/dist/components/Chatbot/historyPanel.d.ts +1 -1
- package/dist/components/Chatbot/historyPanel.d.ts.map +1 -1
- package/dist/components/Chatbot/historyPanel.js +157 -93
- package/dist/components/Chatbot/index.d.ts +1 -1
- package/dist/components/Chatbot/index.d.ts.map +1 -1
- package/dist/components/Chatbot/index.js +7 -4
- package/dist/components/Chatbot/newChatComponent.d.ts +1 -1
- package/dist/components/Chatbot/newChatComponent.d.ts.map +1 -1
- package/dist/components/Checkbox/WithDropDown.d.ts +1 -1
- package/dist/components/Checkbox/WithDropDown.d.ts.map +1 -1
- package/dist/components/Checkbox/WithoutFormLabel.d.ts +1 -1
- package/dist/components/Checkbox/WithoutFormLabel.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Chips/chipLeadingIcon.d.ts +6 -0
- package/dist/components/Chips/chipLeadingIcon.d.ts.map +1 -0
- package/dist/components/Chips/chipLeadingIcon.js +46 -0
- package/dist/components/Chips/index.d.ts.map +1 -1
- package/dist/components/Chips/index.js +7 -2
- package/dist/components/CommentsPanel/CommentsContext.d.ts +1 -1
- package/dist/components/CommentsPanel/CommentsContext.d.ts.map +1 -1
- package/dist/components/CommentsPanel/CommentsContext.js +5 -4
- package/dist/components/CommentsPanel/CommentsPanel.impl.d.ts +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.impl.d.ts.map +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.impl.js +11 -8
- package/dist/components/CommentsPanel/CommentsPanel.types.d.ts +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.types.d.ts.map +1 -1
- package/dist/components/CreateItemFlow/index.js +1 -1
- package/dist/components/DatePicker/datePickerDropdown.d.ts +1 -1
- package/dist/components/DatePicker/datePickerDropdown.d.ts.map +1 -1
- package/dist/components/DatePicker/datePickerFooter.d.ts +1 -1
- package/dist/components/DatePicker/datePickerFooter.d.ts.map +1 -1
- package/dist/components/DatePicker/datePickerInput.d.ts.map +1 -1
- package/dist/components/DatePicker/datePickerInput.js +5 -2
- package/dist/components/DatePicker/index.js +2 -2
- package/dist/components/DatePicker/showMonthYearSelect.d.ts +1 -1
- package/dist/components/DatePicker/showMonthYearSelect.d.ts.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.types.d.ts +21 -1
- package/dist/components/DateRangePicker/DateRangePicker.types.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerCustom.d.ts +1 -1
- package/dist/components/DateRangePicker/dateRangePickerCustom.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts +3 -1
- package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerDropdown.js +129 -68
- package/dist/components/DateRangePicker/dateRangePickerFooter.d.ts +1 -1
- package/dist/components/DateRangePicker/dateRangePickerFooter.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerInput.d.ts +1 -1
- package/dist/components/DateRangePicker/dateRangePickerInput.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerInput.js +6 -7
- package/dist/components/DateRangePicker/index.d.ts +1 -1
- package/dist/components/DateRangePicker/index.d.ts.map +1 -1
- package/dist/components/DateRangePicker/index.js +4 -2
- package/dist/components/DateRangePicker/showMonthYearSelect.d.ts +1 -1
- package/dist/components/DateRangePicker/showMonthYearSelect.d.ts.map +1 -1
- package/dist/components/DateRangePicker/utils.d.ts +21 -0
- package/dist/components/DateRangePicker/utils.d.ts.map +1 -1
- package/dist/components/DateRangePicker/utils.js +97 -0
- package/dist/components/DynamicLayout/index.d.ts +2 -1
- package/dist/components/DynamicLayout/index.d.ts.map +1 -1
- package/dist/components/DynamicLayout/index.js +1 -1
- package/dist/components/EmptyState/EmptyStateImage.d.ts +2 -2
- package/dist/components/EmptyState/EmptyStateImage.d.ts.map +1 -1
- package/dist/components/EmptyState/EmptyStateImage.js +26 -13
- package/dist/components/EmptyState/index.d.ts +1 -1
- package/dist/components/EmptyState/index.d.ts.map +1 -1
- package/dist/components/EmptyState/index.js +29 -1
- package/dist/components/FileUpload/TemplatePreview.d.ts +1 -1
- package/dist/components/FileUpload/TemplatePreview.d.ts.map +1 -1
- package/dist/components/FileUpload/index.d.ts +1 -1
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/FileUpload/index.js +11 -4
- package/dist/components/FilterPanel/FilterPanelHeader.d.ts +1 -1
- package/dist/components/FilterPanel/FilterPanelHeader.d.ts.map +1 -1
- package/dist/components/FilterPanel/PanelFooter.d.ts +1 -1
- package/dist/components/FilterPanel/PanelFooter.d.ts.map +1 -1
- package/dist/components/FilterPanel/PanelSidebar.d.ts +1 -1
- package/dist/components/FilterPanel/PanelSidebar.d.ts.map +1 -1
- package/dist/components/FilterPanel/index.d.ts +1 -1
- package/dist/components/FilterPanel/index.d.ts.map +1 -1
- package/dist/components/FilterPanel/index.js +67 -43
- package/dist/components/FiltersStrip/AppliedFilters.d.ts +1 -1
- package/dist/components/FiltersStrip/AppliedFilters.d.ts.map +1 -1
- package/dist/components/FiltersStrip/FilterDropDown.d.ts +1 -1
- package/dist/components/FiltersStrip/FilterDropDown.d.ts.map +1 -1
- package/dist/components/FiltersStrip/FilterSlider.d.ts +1 -1
- package/dist/components/FiltersStrip/FilterSlider.d.ts.map +1 -1
- package/dist/components/FiltersStrip/FilterSlider.js +1 -1
- package/dist/components/FiltersStrip/FilterSliderPortal.d.ts +1 -1
- package/dist/components/FiltersStrip/FilterSliderPortal.d.ts.map +1 -1
- package/dist/components/FiltersStrip/index.d.ts +1 -1
- package/dist/components/FiltersStrip/index.d.ts.map +1 -1
- package/dist/components/FiltersStrip/index.js +1 -1
- package/dist/components/HalloweenStyleIntro/HalloweenStyleIntroProvider.d.ts +14 -0
- package/dist/components/HalloweenStyleIntro/HalloweenStyleIntroProvider.d.ts.map +1 -0
- package/dist/components/HalloweenStyleIntro/HalloweenStyleIntroProvider.js +112 -0
- package/dist/components/HalloweenStyleIntro/halloweenIntro.constants.d.ts +8 -0
- package/dist/components/HalloweenStyleIntro/halloweenIntro.constants.d.ts.map +1 -0
- package/dist/components/HalloweenStyleIntro/halloweenIntro.constants.js +4 -0
- package/dist/components/HalloweenStyleIntro/halloweenIntroHtml.d.ts +8 -0
- package/dist/components/HalloweenStyleIntro/halloweenIntroHtml.d.ts.map +1 -0
- package/dist/components/HalloweenStyleIntro/halloweenIntroHtml.js +21 -0
- package/dist/components/HalloweenStyleIntro/index.d.ts +4 -0
- package/dist/components/HalloweenStyleIntro/index.d.ts.map +1 -0
- package/dist/components/Header/Header.types.d.ts +22 -4
- package/dist/components/Header/Header.types.d.ts.map +1 -1
- package/dist/components/Header/index.d.ts +1 -1
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +89 -48
- package/dist/components/HomePage/HomePage.types.d.ts +3 -2
- package/dist/components/HomePage/HomePage.types.d.ts.map +1 -1
- package/dist/components/HomePage/constants.d.ts.map +1 -1
- package/dist/components/HomePage/constants.js +23 -44
- package/dist/components/HomePage/index.d.ts +1 -1
- package/dist/components/HomePage/index.d.ts.map +1 -1
- package/dist/components/HomePage/index.js +28 -23
- package/dist/components/ImpactIcon/index.d.ts +19 -0
- package/dist/components/ImpactIcon/index.d.ts.map +1 -0
- package/dist/components/ImpactIcon/index.js +52 -0
- package/dist/components/Input/HelperText.d.ts +1 -1
- package/dist/components/Input/HelperText.d.ts.map +1 -1
- package/dist/components/Input/HelperText.js +3 -1
- package/dist/components/Input/InputWithIcon.d.ts +1 -1
- package/dist/components/Input/InputWithIcon.d.ts.map +1 -1
- package/dist/components/Input/InputWithIcon.js +1 -1
- package/dist/components/Input/VanillaInput.d.ts +1 -1
- package/dist/components/Input/VanillaInput.d.ts.map +1 -1
- package/dist/components/Input/VanillaInput.js +1 -1
- package/dist/components/Input/index.js +3 -3
- package/dist/components/KeyboardShortCuts/Keycombo.d.ts +2 -2
- package/dist/components/KeyboardShortCuts/Keycombo.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.d.ts +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.js +5 -4
- package/dist/components/KeyboardShortCuts/ShortcutModal.d.ts +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutModal.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutModal.js +2 -2
- package/dist/components/KeyboardShortCuts/StarOutlineIcon.d.ts +1 -1
- package/dist/components/KeyboardShortCuts/StarOutlineIcon.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/allSetBox.d.ts +1 -1
- package/dist/components/KeyboardShortCuts/allSetBox.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/allSetBox.js +2 -2
- package/dist/components/KeyboardShortCuts/index.d.ts +1 -1
- package/dist/components/KeyboardShortCuts/index.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/index.js +1 -1
- package/dist/components/KeyboardShortCuts/screen2.d.ts +1 -1
- package/dist/components/KeyboardShortCuts/screen2.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/screen3.d.ts +1 -1
- package/dist/components/KeyboardShortCuts/screen3.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/tutorial.d.ts +2 -1
- package/dist/components/KeyboardShortCuts/tutorial.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/tutorial.js +3 -2
- package/dist/components/Loader/HalloweenLoaderSlides.d.ts +13 -0
- package/dist/components/Loader/HalloweenLoaderSlides.d.ts.map +1 -0
- package/dist/components/Loader/HalloweenLoaderSlides.js +109 -0
- package/dist/components/Loader/index.d.ts +1 -1
- package/dist/components/Loader/index.d.ts.map +1 -1
- package/dist/components/Loader/index.js +3 -1
- package/dist/components/Menu/IconMenuItem.js +1 -1
- package/dist/components/Menu/MenuHeaderInfo.d.ts +2 -2
- package/dist/components/Menu/MenuHeaderInfo.d.ts.map +1 -1
- package/dist/components/Menu/MenuHeaderInfo.js +10 -2
- package/dist/components/Menu/NestedMenuItem.js +1 -1
- package/dist/components/Menu/index.js +5 -14
- package/dist/components/Menu/nestedMenuItemsFromObject.js +1 -1
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/MonthPicker/index.d.ts +1 -1
- package/dist/components/MonthPicker/index.d.ts.map +1 -1
- package/dist/components/MonthPicker/index.js +10 -4
- package/dist/components/MonthRangePicker/constants.d.ts +4 -0
- package/dist/components/MonthRangePicker/constants.d.ts.map +1 -1
- package/dist/components/MonthRangePicker/constants.js +15 -1
- package/dist/components/MonthRangePicker/index.d.ts +1 -1
- package/dist/components/MonthRangePicker/index.d.ts.map +1 -1
- package/dist/components/MonthRangePicker/index.js +32 -28
- package/dist/components/NewCreateItemFlow/index.d.ts +1 -1
- package/dist/components/NewCreateItemFlow/index.d.ts.map +1 -1
- package/dist/components/NewCreateItemFlow/index.js +1 -1
- package/dist/components/NewDynamicLayout/index.d.ts +1 -1
- package/dist/components/NewDynamicLayout/index.d.ts.map +1 -1
- package/dist/components/NewDynamicLayout/index.js +13 -15
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.d.ts +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.d.ts +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.js +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.js +12 -16
- package/dist/components/Notification/NotificationBody/NotificationPanelContent.d.ts +1 -1
- package/dist/components/Notification/NotificationBody/NotificationPanelContent.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationTaskList.d.ts +1 -1
- package/dist/components/Notification/NotificationBody/NotificationTaskList.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/index.d.ts +1 -1
- package/dist/components/Notification/NotificationBody/index.d.ts.map +1 -1
- package/dist/components/Notification/NotificationHeader.d.ts.map +1 -1
- package/dist/components/Notification/NotificationHeader.js +13 -3
- package/dist/components/Notification/index.d.ts +1 -1
- package/dist/components/Notification/index.d.ts.map +1 -1
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/OnboardingTour/index.d.ts +1 -1
- package/dist/components/OnboardingTour/index.d.ts.map +1 -1
- package/dist/components/OnboardingTour/index.js +10 -4
- package/dist/components/OnboardingTour/productTourList.d.ts +1 -1
- package/dist/components/OnboardingTour/productTourList.d.ts.map +1 -1
- package/dist/components/OnboardingTour/productTourList.js +4 -4
- package/dist/components/OnboardingTour/tooltipCard.d.ts +1 -1
- package/dist/components/OnboardingTour/tooltipCard.d.ts.map +1 -1
- package/dist/components/OnboardingTour/tooltipCard.js +2 -2
- package/dist/components/Panel/index.d.ts +1 -1
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +13 -7
- package/dist/components/Popover/Popover.types.d.ts +5 -0
- package/dist/components/Popover/Popover.types.d.ts.map +1 -1
- package/dist/components/Popover/index.d.ts +1 -1
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +12 -4
- package/dist/components/ProfileMenu/ProfileMenu.types.d.ts +50 -0
- package/dist/components/ProfileMenu/ProfileMenu.types.d.ts.map +1 -0
- package/dist/components/ProfileMenu/ProfileMenuListItem.d.ts +12 -0
- package/dist/components/ProfileMenu/ProfileMenuListItem.d.ts.map +1 -0
- package/dist/components/ProfileMenu/ProfileMenuListItem.js +42 -0
- package/dist/components/ProfileMenu/index.d.ts +11 -0
- package/dist/components/ProfileMenu/index.d.ts.map +1 -0
- package/dist/components/ProfileMenu/index.js +160 -0
- package/dist/components/ProgressBar/index.d.ts +1 -1
- package/dist/components/ProgressBar/index.d.ts.map +1 -1
- package/dist/components/ProgressBar/index.js +1 -1
- package/dist/components/Prompt/index.d.ts +1 -1
- package/dist/components/Prompt/index.d.ts.map +1 -1
- package/dist/components/Prompt/index.js +10 -2
- package/dist/components/RadioButtonGroup/index.d.ts +1 -1
- package/dist/components/RadioButtonGroup/index.d.ts.map +1 -1
- package/dist/components/RadioButtonGroup/index.js +1 -1
- package/dist/components/Select/customGroupHeading.d.ts +1 -1
- package/dist/components/Select/customGroupHeading.d.ts.map +1 -1
- package/dist/components/Select/dropdown.d.ts +1 -1
- package/dist/components/Select/dropdown.d.ts.map +1 -1
- package/dist/components/Select/index.js +2 -2
- package/dist/components/Select/menuList.d.ts +2 -1
- package/dist/components/Select/menuList.d.ts.map +1 -1
- package/dist/components/Select/menuList.js +2 -1
- package/dist/components/Select/optionList.d.ts +2 -1
- package/dist/components/Select/optionList.d.ts.map +1 -1
- package/dist/components/Select/selected-option-tags.d.ts +1 -1
- package/dist/components/Select/selected-option-tags.d.ts.map +1 -1
- package/dist/components/Shortcuts/ShortcutHint.d.ts +1 -1
- package/dist/components/Shortcuts/ShortcutHint.d.ts.map +1 -1
- package/dist/components/Shortcuts/ShortcutHint.js +4 -18
- package/dist/components/Shortcuts/ShortcutScope.d.ts +1 -1
- package/dist/components/Shortcuts/ShortcutScope.d.ts.map +1 -1
- package/dist/components/Shortcuts/ShortcutsProvider.d.ts +1 -1
- package/dist/components/Shortcuts/ShortcutsProvider.d.ts.map +1 -1
- package/dist/components/Sidebar/ChildMenu.d.ts +1 -1
- package/dist/components/Sidebar/ChildMenu.d.ts.map +1 -1
- package/dist/components/Sidebar/ParentMenu.d.ts +1 -1
- package/dist/components/Sidebar/ParentMenu.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarActions.d.ts +1 -1
- package/dist/components/Sidebar/SidebarActions.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarActions.js +3 -3
- package/dist/components/Sidebar/SidebarMenus.d.ts +1 -1
- package/dist/components/Sidebar/SidebarMenus.d.ts.map +1 -1
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/Skeleton/index.d.ts.map +1 -1
- package/dist/components/Skeleton/index.js +1 -1
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +8 -6
- package/dist/components/Slider/sliderValueLabel.d.ts +7 -0
- package/dist/components/Slider/sliderValueLabel.d.ts.map +1 -0
- package/dist/components/Slider/sliderValueLabel.js +31 -0
- package/dist/components/Stepper/index.d.ts +1 -1
- package/dist/components/Stepper/index.d.ts.map +1 -1
- package/dist/components/Stepper/index.js +2 -2
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.js +11 -10
- package/dist/components/TableChat/EmptyContainer.d.ts +2 -1
- package/dist/components/TableChat/EmptyContainer.d.ts.map +1 -1
- package/dist/components/TableChat/EmptyContainer.js +1 -1
- package/dist/components/TableChat/TableChatSidePanel.d.ts +1 -1
- package/dist/components/TableChat/TableChatSidePanel.d.ts.map +1 -1
- package/dist/components/TableChat/TableChatSidePanel.js +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatFooterSkeleton.d.ts +2 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatFooterSkeleton.d.ts.map +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatFooterSkeleton.js +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatHeaderSkeleton.d.ts +2 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatHeaderSkeleton.d.ts.map +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatHeaderSkeleton.js +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatMessageListSkeleton.d.ts +2 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatMessageListSkeleton.d.ts.map +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatMessageListSkeleton.js +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatSkeleton.d.ts +2 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatSkeleton.d.ts.map +1 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatSkeleton.js +1 -1
- package/dist/components/TableChat/components/SkeletonList.d.ts +1 -1
- package/dist/components/TableChat/components/SkeletonList.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChannelCheckbox/ChannelCheckbox.d.ts +3 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChannelCheckbox/ChannelCheckbox.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.js +6 -5
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderButton/ChatHeaderButton.d.ts +2 -2
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderButton/ChatHeaderButton.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.js +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatIconButton/ChatIconButton.d.ts +3 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatIconButton/ChatIconButton.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/UnreadBadge/UnreadBadge.d.ts +3 -1
- package/dist/components/TableChat/components/TableChatLeftSection/UnreadBadge/UnreadBadge.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +19 -37
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +13 -21
- package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.js +24 -13
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +4 -4
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.js +23 -11
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +21 -24
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessageActions/ChatMessageActions.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessageActions/ChatMessageActions.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessageAvatar/ChatMessageAvatar.d.ts +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessageAvatar/ChatMessageAvatar.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +5 -6
- package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/EmojiPicker/EmojiPicker.d.ts +3 -1
- package/dist/components/TableChat/components/TableChatRightSection/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/FileUploader/FileUploader.d.ts +3 -1
- package/dist/components/TableChat/components/TableChatRightSection/FileUploader/FileUploader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/FileUploader/FileUploader.js +6 -6
- package/dist/components/TableChat/components/TableChatRightSection/ImageUploader/ImageUploader.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ImageUploader/ImageUploader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ImageUploader/ImageUploader.js +5 -5
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +12 -5
- package/dist/components/TableChat/components/TextEditor/EditorToolbar.js +1 -1
- package/dist/components/TableChat/components/TextEditor/Mention.d.ts.map +1 -1
- package/dist/components/TableChat/components/TextEditor/Mention.js +2 -7
- package/dist/components/TableChat/components/TextEditor/MentionList.js +1 -1
- package/dist/components/TableV36/AdvanceSearchModalItem.d.ts +3 -1
- package/dist/components/TableV36/AdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/TableV36/AdvanceSortModal.d.ts +3 -1
- package/dist/components/TableV36/AdvanceSortModal.d.ts.map +1 -1
- package/dist/components/TableV36/AdvanceSortModal.js +42 -42
- package/dist/components/TableV36/AgGridHeader.d.ts +1 -1
- package/dist/components/TableV36/AgGridHeader.d.ts.map +1 -1
- package/dist/components/TableV36/AgGridHeader.js +21 -11
- package/dist/components/TableV36/CellTooltip.d.ts +1 -1
- package/dist/components/TableV36/CellTooltip.d.ts.map +1 -1
- package/dist/components/TableV36/CommentsPortal.d.ts.map +1 -1
- package/dist/components/TableV36/CommentsPortal.js +7 -4
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts +3 -1
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +1 -1
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts +3 -1
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +5 -0
- package/dist/components/TableV36/NoComments.d.ts +3 -1
- package/dist/components/TableV36/NoComments.d.ts.map +1 -1
- package/dist/components/TableV36/NoComments.js +1 -1
- package/dist/components/TableV36/Table.types.d.ts +2 -2
- package/dist/components/TableV36/Table.types.d.ts.map +1 -1
- package/dist/components/TableV36/TableSkeletonCell.d.ts +1 -1
- package/dist/components/TableV36/TableSkeletonCell.d.ts.map +1 -1
- package/dist/components/TableV36/TableSkeletonCell.js +3 -15
- package/dist/components/TableV36/actionBar.d.ts +3 -1
- package/dist/components/TableV36/actionBar.d.ts.map +1 -1
- package/dist/components/TableV36/advanceSearchModal.d.ts +3 -1
- package/dist/components/TableV36/advanceSearchModal.d.ts.map +1 -1
- package/dist/components/TableV36/index.d.ts.map +1 -1
- package/dist/components/TableV36/index.js +21 -11
- package/dist/components/TableV36/tableFunctions.d.ts.map +1 -1
- package/dist/components/TableV36/tableFunctions.js +37 -23
- package/dist/components/TableV36/tableHeader.d.ts +1 -1
- package/dist/components/TableV36/tableHeader.d.ts.map +1 -1
- package/dist/components/TableV36/tableHeader.js +5 -4
- package/dist/components/TableV36/tableIcons.d.ts +4 -2
- package/dist/components/TableV36/tableIcons.d.ts.map +1 -1
- package/dist/components/TableV36/tableMoreOptions.d.ts +3 -1
- package/dist/components/TableV36/tableMoreOptions.d.ts.map +1 -1
- package/dist/components/TableV36/tableMoreOptions.js +36 -18
- package/dist/components/TableV36/tablePagination.d.ts +3 -1
- package/dist/components/TableV36/tablePagination.d.ts.map +1 -1
- package/dist/components/TableV36/tablePagination.js +1 -1
- package/dist/components/TableV36/tableSettings.d.ts +3 -1
- package/dist/components/TableV36/tableSettings.d.ts.map +1 -1
- package/dist/components/TableV36/tableSettings.js +8 -9
- package/dist/components/TableV36/withCommentIcon.d.ts.map +1 -1
- package/dist/components/TableV36/withCommentIcon.js +13 -5
- package/dist/components/Tabs/TabPanel.d.ts +1 -1
- package/dist/components/Tabs/TabPanel.d.ts.map +1 -1
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Tag/filled.d.ts +1 -1
- package/dist/components/Tag/filled.d.ts.map +1 -1
- package/dist/components/Tag/index.js +1 -1
- package/dist/components/Tag/solid.d.ts +1 -1
- package/dist/components/Tag/solid.d.ts.map +1 -1
- package/dist/components/Tag/stroke.d.ts +1 -1
- package/dist/components/Tag/stroke.d.ts.map +1 -1
- package/dist/components/TagGroup/index.d.ts +1 -1
- package/dist/components/TagGroup/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.d.ts +1 -1
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.js +3 -3
- package/dist/components/ThemingPanel/AccentColorSection.d.ts +11 -0
- package/dist/components/ThemingPanel/AccentColorSection.d.ts.map +1 -0
- package/dist/components/ThemingPanel/AccentColorSection.js +43 -0
- package/dist/components/ThemingPanel/EnhanceContrastSection.d.ts +11 -0
- package/dist/components/ThemingPanel/EnhanceContrastSection.d.ts.map +1 -0
- package/dist/components/ThemingPanel/EnhanceContrastSection.js +42 -0
- package/dist/components/ThemingPanel/InterfaceThemeSection.d.ts +13 -0
- package/dist/components/ThemingPanel/InterfaceThemeSection.d.ts.map +1 -0
- package/dist/components/ThemingPanel/InterfaceThemeSection.js +118 -0
- package/dist/components/ThemingPanel/StylesSection.d.ts +11 -0
- package/dist/components/ThemingPanel/StylesSection.d.ts.map +1 -0
- package/dist/components/ThemingPanel/StylesSection.js +43 -0
- package/dist/components/ThemingPanel/ThemesTab.d.ts +23 -0
- package/dist/components/ThemingPanel/ThemesTab.d.ts.map +1 -0
- package/dist/components/ThemingPanel/ThemesTab.js +49 -0
- package/dist/components/ThemingPanel/ThemingPanel.d.ts +10 -0
- package/dist/components/ThemingPanel/ThemingPanel.d.ts.map +1 -0
- package/dist/components/ThemingPanel/ThemingPanel.js +198 -0
- package/dist/components/ThemingPanel/ThemingPanel.types.d.ts +31 -0
- package/dist/components/ThemingPanel/ThemingPanel.types.d.ts.map +1 -0
- package/dist/components/ThemingPanel/ThemingPanel.types.js +8 -0
- package/dist/components/ThemingPanel/index.d.ts +10 -0
- package/dist/components/ThemingPanel/index.d.ts.map +1 -0
- package/dist/components/ThemingPanel/themingPanel.constants.d.ts +23 -0
- package/dist/components/ThemingPanel/themingPanel.constants.d.ts.map +1 -0
- package/dist/components/ThemingPanel/themingPanel.constants.js +42 -0
- package/dist/components/Toast/index.d.ts +1 -1
- package/dist/components/Toast/index.d.ts.map +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/common/HelperText/index.d.ts +1 -1
- package/dist/components/common/HelperText/index.d.ts.map +1 -1
- package/dist/components/common/HelperText/index.js +1 -1
- package/dist/components/common/MentionEditor/MentionList/index.js +1 -1
- package/dist/components/common/MentionEditor/index.js +1 -1
- package/dist/components/index.d.ts +10 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +48 -0
- package/dist/components/shared/tableColumnSettings/columnsSettingsVirtualList.d.ts +1 -1
- package/dist/components/shared/tableColumnSettings/columnsSettingsVirtualList.d.ts.map +1 -1
- package/dist/components/shared/tableColumnSettings/columnsTabV36.d.ts.map +1 -1
- package/dist/components/shared/tableColumnSettings/tableSettingsV36.d.ts +3 -1
- package/dist/components/shared/tableColumnSettings/tableSettingsV36.d.ts.map +1 -1
- package/dist/i18n/I18nContext.d.ts +1 -1
- package/dist/i18n/I18nContext.d.ts.map +1 -1
- package/dist/locales/de-DE.json.d.ts +42 -0
- package/dist/locales/de-DE.json.js +42 -0
- package/dist/locales/en-US.json.d.ts +42 -0
- package/dist/locales/en-US.json.js +42 -0
- package/dist/locales/es-ES.json.d.ts +42 -0
- package/dist/locales/es-ES.json.js +42 -0
- package/dist/mcp-component-registry.json +180 -80
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +4 -4
- package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +637 -363
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon.js +3 -3
- package/dist/node_modules/@mui/material/styles/ThemeProvider.js +43 -0
- package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +59 -0
- package/dist/node_modules/@mui/private-theming/ThemeProvider/nested.js +5 -0
- package/dist/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/exactProp/exactProp.js +19 -0
- package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext.js +8 -0
- package/dist/node_modules/@mui/private-theming/useTheme/useTheme.js +12 -0
- package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
- package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +12 -2
- package/dist/node_modules/@mui/system/esm/RtlProvider/index.js +14 -4
- package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +86 -0
- package/dist/node_modules/@mui/system/esm/ThemeProvider/useLayerOrder.js +50 -0
- package/dist/node_modules/@mui/system/esm/createStyled.js +1 -1
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/exactProp/exactProp.js +19 -0
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +5 -0
- package/dist/node_modules/@mui/system/node_modules/@mui/utils/esm/useId/useId.js +24 -0
- package/dist/node_modules/call-bind/index.js +3 -3
- package/dist/node_modules/es-abstract/2025/ToString.js +21 -0
- package/dist/node_modules/es-abstract-get/GetMethod.js +33 -0
- package/dist/node_modules/es-abstract-get/GetV.js +25 -0
- package/dist/node_modules/es-abstract-get/isPropertyKey.js +13 -0
- package/dist/node_modules/es-to-primitive/es2015.js +28 -28
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/is-symbol/index.js +1 -1
- package/dist/node_modules/moment/dist/locale/de.js +21 -1
- package/dist/node_modules/moment/dist/moment.js +792 -624
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/node_modules/react-dates/lib/theme/DefaultTheme.js +4 -4
- package/dist/node_modules/react-dates/lib/utils/registerCSSInterfaceWithDefaultTheme.js +3 -3
- package/dist/node_modules/react-dates/lib/utils/registerInterfaceWithDefaultTheme.js +3 -3
- package/dist/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/node_modules/react-is/cjs/react-is.production.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-with-styles/lib/ThemedStyleSheet.js +6 -6
- package/dist/node_modules/react-with-styles-interface-css/dist/index.js +5 -5
- package/dist/node_modules/react-with-styles-interface-css/dist/utils/getClassName.js +3 -3
- package/dist/node_modules/react-with-styles-interface-css/dist/utils/separateStyles.js +4 -4
- package/dist/node_modules/string.prototype.trim/implementation.js +12 -4
- package/dist/node_modules/stylis/src/Parser.js +1 -1
- package/dist/node_modules/stylis/src/Tokenizer.js +1 -1
- package/dist/stories/LocaleDictionaryCollapse.d.ts +1 -1
- package/dist/stories/LocaleDictionaryCollapse.d.ts.map +1 -1
- package/dist/stories/designTokensStoryHelpers.d.ts +2 -0
- package/dist/stories/designTokensStoryHelpers.d.ts.map +1 -0
- package/dist/stories/i18nDemo.d.ts +1 -1
- package/dist/stories/i18nDemo.d.ts.map +1 -1
- package/dist/stories/tableV36ChatApiMock.d.ts +10 -29
- package/dist/stories/tableV36ChatApiMock.d.ts.map +1 -1
- package/dist/styles/style.css +1 -1
- package/dist/styles/tokens/effects.generated.d.ts +60 -0
- package/dist/styles/tokens/effects.generated.d.ts.map +1 -0
- package/dist/styles/tokens/effects.generated.js +80 -0
- package/dist/styles/tokens/tokens.generated.d.ts +428 -0
- package/dist/styles/tokens/tokens.generated.d.ts.map +1 -0
- package/dist/styles/tokens/tokens.generated.js +421 -0
- package/dist/tokens/ImpactUiAppProviders.d.ts +18 -0
- package/dist/tokens/ImpactUiAppProviders.d.ts.map +1 -0
- package/dist/tokens/ImpactUiAppProviders.js +23 -0
- package/dist/tokens/ImpactUiThemeProvider.d.ts +17 -0
- package/dist/tokens/ImpactUiThemeProvider.d.ts.map +1 -0
- package/dist/tokens/ImpactUiThemeProvider.js +82 -0
- package/dist/tokens/createImpactUiMuiTheme.d.ts +13 -0
- package/dist/tokens/createImpactUiMuiTheme.d.ts.map +1 -0
- package/dist/tokens/createImpactUiMuiTheme.js +112 -0
- package/dist/tokens/index.d.ts +18 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/interfaceStyleDom.d.ts +21 -0
- package/dist/tokens/interfaceStyleDom.d.ts.map +1 -0
- package/dist/tokens/interfaceStyleDom.js +64 -0
- package/dist/tokens/theme.types.d.ts +19 -0
- package/dist/tokens/theme.types.d.ts.map +1 -0
- package/dist/tokens/themeDom.d.ts +31 -0
- package/dist/tokens/themeDom.d.ts.map +1 -0
- package/dist/tokens/themeDom.js +103 -0
- package/dist/tokens/useImpactUiInterfaceStyle.d.ts +7 -0
- package/dist/tokens/useImpactUiInterfaceStyle.d.ts.map +1 -0
- package/dist/tokens/useImpactUiInterfaceStyle.js +19 -0
- package/dist/tokens/useImpactUiTheme.d.ts +9 -0
- package/dist/tokens/useImpactUiTheme.d.ts.map +1 -0
- package/dist/tokens/useImpactUiTheme.js +46 -0
- package/package.json +11 -3
- /package/dist/_virtual/{react-is.development2.js → react-is2.development.js} +0 -0
- /package/dist/_virtual/{react-is.production.min2.js → react-is2.production.min.js} +0 -0
- /package/dist/_virtual/{react-is.development3.js → react-is3.development.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//! moment.js
|
|
2
|
-
//! version : 2.
|
|
2
|
+
//! version : 2.31.0
|
|
3
3
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
4
|
//! license : MIT
|
|
5
5
|
//! momentjs.com
|
|
@@ -75,6 +75,7 @@ function defaultParsingFlags() {
|
|
|
75
75
|
nullInput: false,
|
|
76
76
|
invalidEra: null,
|
|
77
77
|
invalidMonth: null,
|
|
78
|
+
invalidOffset: null,
|
|
78
79
|
invalidFormat: false,
|
|
79
80
|
userInvalidated: false,
|
|
80
81
|
iso: false,
|
|
@@ -105,14 +106,14 @@ if (Array.prototype.some) {
|
|
|
105
106
|
return false;
|
|
106
107
|
};
|
|
107
108
|
}
|
|
108
|
-
function isValid(m) {
|
|
109
|
+
function isValid$2(m) {
|
|
109
110
|
var flags = null, parsedParts = false, isNowValid = m._d && !isNaN(m._d.getTime());
|
|
110
111
|
if (isNowValid) {
|
|
111
112
|
flags = getParsingFlags(m);
|
|
112
113
|
parsedParts = some.call(flags.parsedDateParts, function(i) {
|
|
113
114
|
return i != null;
|
|
114
115
|
});
|
|
115
|
-
isNowValid = flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts);
|
|
116
|
+
isNowValid = flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidOffset && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts);
|
|
116
117
|
if (m._strict) {
|
|
117
118
|
isNowValid = isNowValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === void 0;
|
|
118
119
|
}
|
|
@@ -124,7 +125,7 @@ function isValid(m) {
|
|
|
124
125
|
}
|
|
125
126
|
return m._isValid;
|
|
126
127
|
}
|
|
127
|
-
function createInvalid(flags) {
|
|
128
|
+
function createInvalid$1(flags) {
|
|
128
129
|
var m = createUTC(NaN);
|
|
129
130
|
if (flags != null) {
|
|
130
131
|
extend(getParsingFlags(m), flags);
|
|
@@ -234,7 +235,7 @@ function deprecateSimple(name, msg) {
|
|
|
234
235
|
hooks.deprecationHandler(name, msg);
|
|
235
236
|
}
|
|
236
237
|
if (!deprecations[name]) {
|
|
237
|
-
warn(msg);
|
|
238
|
+
warn(msg + "\n" + new Error().stack);
|
|
238
239
|
deprecations[name] = true;
|
|
239
240
|
}
|
|
240
241
|
}
|
|
@@ -243,207 +244,6 @@ hooks.deprecationHandler = null;
|
|
|
243
244
|
function isFunction(input) {
|
|
244
245
|
return typeof Function !== "undefined" && input instanceof Function || Object.prototype.toString.call(input) === "[object Function]";
|
|
245
246
|
}
|
|
246
|
-
function set(config) {
|
|
247
|
-
var prop, i;
|
|
248
|
-
for (i in config) {
|
|
249
|
-
if (hasOwnProp(config, i)) {
|
|
250
|
-
prop = config[i];
|
|
251
|
-
if (isFunction(prop)) {
|
|
252
|
-
this[i] = prop;
|
|
253
|
-
} else {
|
|
254
|
-
this["_" + i] = prop;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
this._config = config;
|
|
259
|
-
this._dayOfMonthOrdinalParseLenient = new RegExp(
|
|
260
|
-
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
|
|
261
|
-
);
|
|
262
|
-
}
|
|
263
|
-
function mergeConfigs(parentConfig, childConfig) {
|
|
264
|
-
var res = extend({}, parentConfig), prop;
|
|
265
|
-
for (prop in childConfig) {
|
|
266
|
-
if (hasOwnProp(childConfig, prop)) {
|
|
267
|
-
if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
|
|
268
|
-
res[prop] = {};
|
|
269
|
-
extend(res[prop], parentConfig[prop]);
|
|
270
|
-
extend(res[prop], childConfig[prop]);
|
|
271
|
-
} else if (childConfig[prop] != null) {
|
|
272
|
-
res[prop] = childConfig[prop];
|
|
273
|
-
} else {
|
|
274
|
-
delete res[prop];
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
for (prop in parentConfig) {
|
|
279
|
-
if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop])) {
|
|
280
|
-
res[prop] = extend({}, res[prop]);
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
return res;
|
|
284
|
-
}
|
|
285
|
-
function Locale(config) {
|
|
286
|
-
if (config != null) {
|
|
287
|
-
this.set(config);
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
var keys;
|
|
291
|
-
if (Object.keys) {
|
|
292
|
-
keys = Object.keys;
|
|
293
|
-
} else {
|
|
294
|
-
keys = function(obj) {
|
|
295
|
-
var i, res = [];
|
|
296
|
-
for (i in obj) {
|
|
297
|
-
if (hasOwnProp(obj, i)) {
|
|
298
|
-
res.push(i);
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
return res;
|
|
302
|
-
};
|
|
303
|
-
}
|
|
304
|
-
var defaultCalendar = {
|
|
305
|
-
sameDay: "[Today at] LT",
|
|
306
|
-
nextDay: "[Tomorrow at] LT",
|
|
307
|
-
nextWeek: "dddd [at] LT",
|
|
308
|
-
lastDay: "[Yesterday at] LT",
|
|
309
|
-
lastWeek: "[Last] dddd [at] LT",
|
|
310
|
-
sameElse: "L"
|
|
311
|
-
};
|
|
312
|
-
function calendar(key, mom, now2) {
|
|
313
|
-
var output = this._calendar[key] || this._calendar["sameElse"];
|
|
314
|
-
return isFunction(output) ? output.call(mom, now2) : output;
|
|
315
|
-
}
|
|
316
|
-
function zeroFill(number, targetLength, forceSign) {
|
|
317
|
-
var absNumber = "" + Math.abs(number), zerosToFill = targetLength - absNumber.length, sign2 = number >= 0;
|
|
318
|
-
return (sign2 ? forceSign ? "+" : "" : "-") + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
|
|
319
|
-
}
|
|
320
|
-
var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, formatFunctions = {}, formatTokenFunctions = {};
|
|
321
|
-
function addFormatToken(token2, padded, ordinal2, callback) {
|
|
322
|
-
var func = callback;
|
|
323
|
-
if (typeof callback === "string") {
|
|
324
|
-
func = function() {
|
|
325
|
-
return this[callback]();
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
if (token2) {
|
|
329
|
-
formatTokenFunctions[token2] = func;
|
|
330
|
-
}
|
|
331
|
-
if (padded) {
|
|
332
|
-
formatTokenFunctions[padded[0]] = function() {
|
|
333
|
-
return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
|
|
334
|
-
};
|
|
335
|
-
}
|
|
336
|
-
if (ordinal2) {
|
|
337
|
-
formatTokenFunctions[ordinal2] = function() {
|
|
338
|
-
return this.localeData().ordinal(
|
|
339
|
-
func.apply(this, arguments),
|
|
340
|
-
token2
|
|
341
|
-
);
|
|
342
|
-
};
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
function removeFormattingTokens(input) {
|
|
346
|
-
if (input.match(/\[[\s\S]/)) {
|
|
347
|
-
return input.replace(/^\[|\]$/g, "");
|
|
348
|
-
}
|
|
349
|
-
return input.replace(/\\/g, "");
|
|
350
|
-
}
|
|
351
|
-
function makeFormatFunction(format2) {
|
|
352
|
-
var array = format2.match(formattingTokens), i, length;
|
|
353
|
-
for (i = 0, length = array.length; i < length; i++) {
|
|
354
|
-
if (formatTokenFunctions[array[i]]) {
|
|
355
|
-
array[i] = formatTokenFunctions[array[i]];
|
|
356
|
-
} else {
|
|
357
|
-
array[i] = removeFormattingTokens(array[i]);
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
return function(mom) {
|
|
361
|
-
var output = "", i2;
|
|
362
|
-
for (i2 = 0; i2 < length; i2++) {
|
|
363
|
-
output += isFunction(array[i2]) ? array[i2].call(mom, format2) : array[i2];
|
|
364
|
-
}
|
|
365
|
-
return output;
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
function formatMoment(m, format2) {
|
|
369
|
-
if (!m.isValid()) {
|
|
370
|
-
return m.localeData().invalidDate();
|
|
371
|
-
}
|
|
372
|
-
format2 = expandFormat(format2, m.localeData());
|
|
373
|
-
formatFunctions[format2] = formatFunctions[format2] || makeFormatFunction(format2);
|
|
374
|
-
return formatFunctions[format2](m);
|
|
375
|
-
}
|
|
376
|
-
function expandFormat(format2, locale2) {
|
|
377
|
-
var i = 5;
|
|
378
|
-
function replaceLongDateFormatTokens(input) {
|
|
379
|
-
return locale2.longDateFormat(input) || input;
|
|
380
|
-
}
|
|
381
|
-
localFormattingTokens.lastIndex = 0;
|
|
382
|
-
while (i >= 0 && localFormattingTokens.test(format2)) {
|
|
383
|
-
format2 = format2.replace(
|
|
384
|
-
localFormattingTokens,
|
|
385
|
-
replaceLongDateFormatTokens
|
|
386
|
-
);
|
|
387
|
-
localFormattingTokens.lastIndex = 0;
|
|
388
|
-
i -= 1;
|
|
389
|
-
}
|
|
390
|
-
return format2;
|
|
391
|
-
}
|
|
392
|
-
var defaultLongDateFormat = {
|
|
393
|
-
LTS: "h:mm:ss A",
|
|
394
|
-
LT: "h:mm A",
|
|
395
|
-
L: "MM/DD/YYYY",
|
|
396
|
-
LL: "MMMM D, YYYY",
|
|
397
|
-
LLL: "MMMM D, YYYY h:mm A",
|
|
398
|
-
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
399
|
-
};
|
|
400
|
-
function longDateFormat(key) {
|
|
401
|
-
var format2 = this._longDateFormat[key], formatUpper = this._longDateFormat[key.toUpperCase()];
|
|
402
|
-
if (format2 || !formatUpper) {
|
|
403
|
-
return format2;
|
|
404
|
-
}
|
|
405
|
-
this._longDateFormat[key] = formatUpper.match(formattingTokens).map(function(tok) {
|
|
406
|
-
if (tok === "MMMM" || tok === "MM" || tok === "DD" || tok === "dddd") {
|
|
407
|
-
return tok.slice(1);
|
|
408
|
-
}
|
|
409
|
-
return tok;
|
|
410
|
-
}).join("");
|
|
411
|
-
return this._longDateFormat[key];
|
|
412
|
-
}
|
|
413
|
-
var defaultInvalidDate = "Invalid date";
|
|
414
|
-
function invalidDate() {
|
|
415
|
-
return this._invalidDate;
|
|
416
|
-
}
|
|
417
|
-
var defaultOrdinal = "%d", defaultDayOfMonthOrdinalParse = /\d{1,2}/;
|
|
418
|
-
function ordinal(number) {
|
|
419
|
-
return this._ordinal.replace("%d", number);
|
|
420
|
-
}
|
|
421
|
-
var defaultRelativeTime = {
|
|
422
|
-
future: "in %s",
|
|
423
|
-
past: "%s ago",
|
|
424
|
-
s: "a few seconds",
|
|
425
|
-
ss: "%d seconds",
|
|
426
|
-
m: "a minute",
|
|
427
|
-
mm: "%d minutes",
|
|
428
|
-
h: "an hour",
|
|
429
|
-
hh: "%d hours",
|
|
430
|
-
d: "a day",
|
|
431
|
-
dd: "%d days",
|
|
432
|
-
w: "a week",
|
|
433
|
-
ww: "%d weeks",
|
|
434
|
-
M: "a month",
|
|
435
|
-
MM: "%d months",
|
|
436
|
-
y: "a year",
|
|
437
|
-
yy: "%d years"
|
|
438
|
-
};
|
|
439
|
-
function relativeTime(number, withoutSuffix, string, isFuture) {
|
|
440
|
-
var output = this._relativeTime[string];
|
|
441
|
-
return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
|
|
442
|
-
}
|
|
443
|
-
function pastFuture(diff2, output) {
|
|
444
|
-
var format2 = this._relativeTime[diff2 > 0 ? "future" : "past"];
|
|
445
|
-
return isFunction(format2) ? format2(output) : format2.replace(/%s/i, output);
|
|
446
|
-
}
|
|
447
247
|
var aliases = {
|
|
448
248
|
D: "date",
|
|
449
249
|
dates: "date",
|
|
@@ -539,6 +339,85 @@ function getPrioritizedUnits(unitsObj) {
|
|
|
539
339
|
});
|
|
540
340
|
return units;
|
|
541
341
|
}
|
|
342
|
+
function zeroFill(number, targetLength, forceSign) {
|
|
343
|
+
var absNumber = "" + Math.abs(number), zerosToFill = targetLength - absNumber.length, sign2 = number >= 0;
|
|
344
|
+
return (sign2 ? forceSign ? "+" : "" : "-") + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
|
|
345
|
+
}
|
|
346
|
+
var formattingTokens = /(\[[^\[]*\])|(\\e)|(\\)?(eHHmm|[Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, formatFunctions = {}, formatTokenFunctions = {};
|
|
347
|
+
function addFormatToken(token2, padded, ordinal2, callback) {
|
|
348
|
+
var func = callback;
|
|
349
|
+
if (typeof callback === "string") {
|
|
350
|
+
func = function() {
|
|
351
|
+
return this[callback]();
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
if (token2) {
|
|
355
|
+
formatTokenFunctions[token2] = func;
|
|
356
|
+
}
|
|
357
|
+
if (padded) {
|
|
358
|
+
formatTokenFunctions[padded[0]] = function() {
|
|
359
|
+
return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
if (ordinal2) {
|
|
363
|
+
formatTokenFunctions[ordinal2] = function() {
|
|
364
|
+
return this.localeData().ordinal(
|
|
365
|
+
func.apply(this, arguments),
|
|
366
|
+
token2
|
|
367
|
+
);
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
function removeFormattingTokens(input) {
|
|
372
|
+
if (input.match(/\[[\s\S]/)) {
|
|
373
|
+
return input.replace(/^\[|\]$/g, "");
|
|
374
|
+
}
|
|
375
|
+
return input.replace(/\\/g, "");
|
|
376
|
+
}
|
|
377
|
+
function makeFormatFunction(format2) {
|
|
378
|
+
var array = format2.match(formattingTokens), i, length;
|
|
379
|
+
for (i = 0, length = array.length; i < length; i++) {
|
|
380
|
+
if (formatTokenFunctions[array[i]]) {
|
|
381
|
+
array[i] = formatTokenFunctions[array[i]];
|
|
382
|
+
} else {
|
|
383
|
+
array[i] = removeFormattingTokens(array[i]);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
return function(mom) {
|
|
387
|
+
var output = "", i2;
|
|
388
|
+
for (i2 = 0; i2 < length; i2++) {
|
|
389
|
+
output += isFunction(array[i2]) ? array[i2].call(mom, format2) : array[i2];
|
|
390
|
+
}
|
|
391
|
+
return output;
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
function formatMoment(m, format2) {
|
|
395
|
+
if (!m.isValid()) {
|
|
396
|
+
return m.localeData().invalidDate();
|
|
397
|
+
}
|
|
398
|
+
format2 = expandFormat(format2, m.localeData());
|
|
399
|
+
var cacheKey = "$" + format2;
|
|
400
|
+
if (!hasOwnProp(formatFunctions, cacheKey)) {
|
|
401
|
+
formatFunctions[cacheKey] = makeFormatFunction(format2);
|
|
402
|
+
}
|
|
403
|
+
return formatFunctions[cacheKey](m);
|
|
404
|
+
}
|
|
405
|
+
function expandFormat(format2, locale2) {
|
|
406
|
+
var i = 5;
|
|
407
|
+
function replaceLongDateFormatTokens(input) {
|
|
408
|
+
return locale2.longDateFormat(input) || input;
|
|
409
|
+
}
|
|
410
|
+
localFormattingTokens.lastIndex = 0;
|
|
411
|
+
while (i >= 0 && localFormattingTokens.test(format2)) {
|
|
412
|
+
format2 = format2.replace(
|
|
413
|
+
localFormattingTokens,
|
|
414
|
+
replaceLongDateFormatTokens
|
|
415
|
+
);
|
|
416
|
+
localFormattingTokens.lastIndex = 0;
|
|
417
|
+
i -= 1;
|
|
418
|
+
}
|
|
419
|
+
return format2;
|
|
420
|
+
}
|
|
542
421
|
var match1 = /\d/, match2 = /\d\d/, match3 = /\d{3}/, match4 = /\d{4}/, match6 = /[+-]?\d{6}/, match1to2 = /\d\d?/, match3to4 = /\d\d\d\d?/, match5to6 = /\d\d\d\d\d\d?/, match1to3 = /\d{1,3}/, match1to4 = /\d{1,4}/, match1to6 = /[+-]?\d{1,6}/, matchUnsigned = /\d+/, matchSigned = /[+-]?\d+/, matchOffset = /Z|[+-]\d\d:?\d\d/gi, matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, match1to2NoLeadingZero = /^[1-9]\d?/, match1to2HasZero = /^([1-9]\d|\d)/, regexes;
|
|
543
422
|
regexes = {};
|
|
544
423
|
function addRegexToken(token2, regex, strictRegex) {
|
|
@@ -652,11 +531,11 @@ function makeGetSet(unit, keepTime) {
|
|
|
652
531
|
hooks.updateOffset(this, keepTime);
|
|
653
532
|
return this;
|
|
654
533
|
} else {
|
|
655
|
-
return get(this, unit);
|
|
534
|
+
return get$2(this, unit);
|
|
656
535
|
}
|
|
657
536
|
};
|
|
658
537
|
}
|
|
659
|
-
function get(mom, unit) {
|
|
538
|
+
function get$2(mom, unit) {
|
|
660
539
|
if (!mom.isValid()) {
|
|
661
540
|
return NaN;
|
|
662
541
|
}
|
|
@@ -733,7 +612,7 @@ function stringSet(units, value) {
|
|
|
733
612
|
}
|
|
734
613
|
return this;
|
|
735
614
|
}
|
|
736
|
-
function mod(n, x) {
|
|
615
|
+
function mod$1(n, x) {
|
|
737
616
|
return (n % x + x) % x;
|
|
738
617
|
}
|
|
739
618
|
var indexOf;
|
|
@@ -754,7 +633,7 @@ function daysInMonth(year, month) {
|
|
|
754
633
|
if (isNaN(year) || isNaN(month)) {
|
|
755
634
|
return NaN;
|
|
756
635
|
}
|
|
757
|
-
var modMonth = mod(month, 12);
|
|
636
|
+
var modMonth = mod$1(month, 12);
|
|
758
637
|
year += (month - modMonth) / 12;
|
|
759
638
|
return modMonth === 1 ? isLeapYear(year) ? 29 : 28 : 31 - modMonth % 7 % 2;
|
|
760
639
|
}
|
|
@@ -788,7 +667,24 @@ addParseToken(["MMM", "MMMM"], function(input, array, config, token2) {
|
|
|
788
667
|
});
|
|
789
668
|
var defaultLocaleMonths = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
790
669
|
"_"
|
|
791
|
-
), defaultLocaleMonthsShort = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, defaultMonthsShortRegex = matchWord, defaultMonthsRegex = matchWord
|
|
670
|
+
), defaultLocaleMonthsShort = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, defaultMonthsShortRegex = matchWord, defaultMonthsRegex = matchWord, monthsParseProperties = [
|
|
671
|
+
"monthsParse",
|
|
672
|
+
"longMonthsParse",
|
|
673
|
+
"shortMonthsParse",
|
|
674
|
+
"monthsRegex",
|
|
675
|
+
"monthsShortRegex",
|
|
676
|
+
"monthsStrictRegex",
|
|
677
|
+
"monthsShortStrictRegex"
|
|
678
|
+
];
|
|
679
|
+
function clearMonthsParseCache(locale2, config) {
|
|
680
|
+
var i, prop;
|
|
681
|
+
for (i = 0; i < monthsParseProperties.length; i++) {
|
|
682
|
+
prop = monthsParseProperties[i];
|
|
683
|
+
if (!hasOwnProp(config, prop)) {
|
|
684
|
+
delete locale2["_" + prop];
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}
|
|
792
688
|
function localeMonths(m, format2) {
|
|
793
689
|
if (!m) {
|
|
794
690
|
return isArray(this._months) ? this._months : this._months["standalone"];
|
|
@@ -801,7 +697,7 @@ function localeMonthsShort(m, format2) {
|
|
|
801
697
|
}
|
|
802
698
|
return isArray(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format2) ? "format" : "standalone"][m.month()];
|
|
803
699
|
}
|
|
804
|
-
function handleStrictParse(monthName, format2, strict) {
|
|
700
|
+
function handleStrictParse$1(monthName, format2, strict) {
|
|
805
701
|
var i, ii, mom, llc = monthName.toLocaleLowerCase();
|
|
806
702
|
if (!this._monthsParse) {
|
|
807
703
|
this._monthsParse = [];
|
|
@@ -845,7 +741,7 @@ function handleStrictParse(monthName, format2, strict) {
|
|
|
845
741
|
function localeMonthsParse(monthName, format2, strict) {
|
|
846
742
|
var i, mom, regex;
|
|
847
743
|
if (this._monthsParseExact) {
|
|
848
|
-
return handleStrictParse.call(this, monthName, format2, strict);
|
|
744
|
+
return handleStrictParse$1.call(this, monthName, format2, strict);
|
|
849
745
|
}
|
|
850
746
|
if (!this._monthsParse) {
|
|
851
747
|
this._monthsParse = [];
|
|
@@ -902,7 +798,7 @@ function getSetMonth(value) {
|
|
|
902
798
|
hooks.updateOffset(this, true);
|
|
903
799
|
return this;
|
|
904
800
|
} else {
|
|
905
|
-
return get(this, "Month");
|
|
801
|
+
return get$2(this, "Month");
|
|
906
802
|
}
|
|
907
803
|
}
|
|
908
804
|
function getDaysInMonth() {
|
|
@@ -957,121 +853,18 @@ function computeMonthsParse() {
|
|
|
957
853
|
mixedPieces.push(shortP);
|
|
958
854
|
}
|
|
959
855
|
shortPieces.sort(cmpLenRev);
|
|
960
|
-
longPieces.sort(cmpLenRev);
|
|
961
|
-
mixedPieces.sort(cmpLenRev);
|
|
962
|
-
this._monthsRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
|
|
963
|
-
this._monthsShortRegex = this._monthsRegex;
|
|
964
|
-
this._monthsStrictRegex = new RegExp(
|
|
965
|
-
"^(" + longPieces.join("|") + ")",
|
|
966
|
-
"i"
|
|
967
|
-
);
|
|
968
|
-
this._monthsShortStrictRegex = new RegExp(
|
|
969
|
-
"^(" + shortPieces.join("|") + ")",
|
|
970
|
-
"i"
|
|
971
|
-
);
|
|
972
|
-
}
|
|
973
|
-
function createDate(y, m, d, h, M, s, ms) {
|
|
974
|
-
var date;
|
|
975
|
-
if (y < 100 && y >= 0) {
|
|
976
|
-
date = new Date(y + 400, m, d, h, M, s, ms);
|
|
977
|
-
if (isFinite(date.getFullYear())) {
|
|
978
|
-
date.setFullYear(y);
|
|
979
|
-
}
|
|
980
|
-
} else {
|
|
981
|
-
date = new Date(y, m, d, h, M, s, ms);
|
|
982
|
-
}
|
|
983
|
-
return date;
|
|
984
|
-
}
|
|
985
|
-
function createUTCDate(y) {
|
|
986
|
-
var date, args;
|
|
987
|
-
if (y < 100 && y >= 0) {
|
|
988
|
-
args = Array.prototype.slice.call(arguments);
|
|
989
|
-
args[0] = y + 400;
|
|
990
|
-
date = new Date(Date.UTC.apply(null, args));
|
|
991
|
-
if (isFinite(date.getUTCFullYear())) {
|
|
992
|
-
date.setUTCFullYear(y);
|
|
993
|
-
}
|
|
994
|
-
} else {
|
|
995
|
-
date = new Date(Date.UTC.apply(null, arguments));
|
|
996
|
-
}
|
|
997
|
-
return date;
|
|
998
|
-
}
|
|
999
|
-
function firstWeekOffset(year, dow, doy) {
|
|
1000
|
-
var fwd = 7 + dow - doy, fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
|
|
1001
|
-
return -fwdlw + fwd - 1;
|
|
1002
|
-
}
|
|
1003
|
-
function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
|
|
1004
|
-
var localWeekday = (7 + weekday - dow) % 7, weekOffset = firstWeekOffset(year, dow, doy), dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, resYear, resDayOfYear;
|
|
1005
|
-
if (dayOfYear <= 0) {
|
|
1006
|
-
resYear = year - 1;
|
|
1007
|
-
resDayOfYear = daysInYear(resYear) + dayOfYear;
|
|
1008
|
-
} else if (dayOfYear > daysInYear(year)) {
|
|
1009
|
-
resYear = year + 1;
|
|
1010
|
-
resDayOfYear = dayOfYear - daysInYear(year);
|
|
1011
|
-
} else {
|
|
1012
|
-
resYear = year;
|
|
1013
|
-
resDayOfYear = dayOfYear;
|
|
1014
|
-
}
|
|
1015
|
-
return {
|
|
1016
|
-
year: resYear,
|
|
1017
|
-
dayOfYear: resDayOfYear
|
|
1018
|
-
};
|
|
1019
|
-
}
|
|
1020
|
-
function weekOfYear(mom, dow, doy) {
|
|
1021
|
-
var weekOffset = firstWeekOffset(mom.year(), dow, doy), week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, resWeek, resYear;
|
|
1022
|
-
if (week < 1) {
|
|
1023
|
-
resYear = mom.year() - 1;
|
|
1024
|
-
resWeek = week + weeksInYear(resYear, dow, doy);
|
|
1025
|
-
} else if (week > weeksInYear(mom.year(), dow, doy)) {
|
|
1026
|
-
resWeek = week - weeksInYear(mom.year(), dow, doy);
|
|
1027
|
-
resYear = mom.year() + 1;
|
|
1028
|
-
} else {
|
|
1029
|
-
resYear = mom.year();
|
|
1030
|
-
resWeek = week;
|
|
1031
|
-
}
|
|
1032
|
-
return {
|
|
1033
|
-
week: resWeek,
|
|
1034
|
-
year: resYear
|
|
1035
|
-
};
|
|
1036
|
-
}
|
|
1037
|
-
function weeksInYear(year, dow, doy) {
|
|
1038
|
-
var weekOffset = firstWeekOffset(year, dow, doy), weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
|
|
1039
|
-
return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
|
|
1040
|
-
}
|
|
1041
|
-
addFormatToken("w", ["ww", 2], "wo", "week");
|
|
1042
|
-
addFormatToken("W", ["WW", 2], "Wo", "isoWeek");
|
|
1043
|
-
addRegexToken("w", match1to2, match1to2NoLeadingZero);
|
|
1044
|
-
addRegexToken("ww", match1to2, match2);
|
|
1045
|
-
addRegexToken("W", match1to2, match1to2NoLeadingZero);
|
|
1046
|
-
addRegexToken("WW", match1to2, match2);
|
|
1047
|
-
addWeekParseToken(
|
|
1048
|
-
["w", "ww", "W", "WW"],
|
|
1049
|
-
function(input, week, config, token2) {
|
|
1050
|
-
week[token2.substr(0, 1)] = toInt(input);
|
|
1051
|
-
}
|
|
1052
|
-
);
|
|
1053
|
-
function localeWeek(mom) {
|
|
1054
|
-
return weekOfYear(mom, this._week.dow, this._week.doy).week;
|
|
1055
|
-
}
|
|
1056
|
-
var defaultLocaleWeek = {
|
|
1057
|
-
dow: 0,
|
|
1058
|
-
// Sunday is the first day of the week.
|
|
1059
|
-
doy: 6
|
|
1060
|
-
// The week that contains Jan 6th is the first week of the year.
|
|
1061
|
-
};
|
|
1062
|
-
function localeFirstDayOfWeek() {
|
|
1063
|
-
return this._week.dow;
|
|
1064
|
-
}
|
|
1065
|
-
function localeFirstDayOfYear() {
|
|
1066
|
-
return this._week.doy;
|
|
1067
|
-
}
|
|
1068
|
-
function getSetWeek(input) {
|
|
1069
|
-
var week = this.localeData().week(this);
|
|
1070
|
-
return input == null ? week : this.add((input - week) * 7, "d");
|
|
1071
|
-
}
|
|
1072
|
-
function getSetISOWeek(input) {
|
|
1073
|
-
var week = weekOfYear(this, 1, 4).week;
|
|
1074
|
-
return input == null ? week : this.add((input - week) * 7, "d");
|
|
856
|
+
longPieces.sort(cmpLenRev);
|
|
857
|
+
mixedPieces.sort(cmpLenRev);
|
|
858
|
+
this._monthsRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
|
|
859
|
+
this._monthsShortRegex = this._monthsRegex;
|
|
860
|
+
this._monthsStrictRegex = new RegExp(
|
|
861
|
+
"^(" + longPieces.join("|") + ")",
|
|
862
|
+
"i"
|
|
863
|
+
);
|
|
864
|
+
this._monthsShortStrictRegex = new RegExp(
|
|
865
|
+
"^(" + shortPieces.join("|") + ")",
|
|
866
|
+
"i"
|
|
867
|
+
);
|
|
1075
868
|
}
|
|
1076
869
|
addFormatToken("d", 0, "do", "day");
|
|
1077
870
|
addFormatToken("dd", 0, 0, function(format2) {
|
|
@@ -1085,9 +878,13 @@ addFormatToken("dddd", 0, 0, function(format2) {
|
|
|
1085
878
|
});
|
|
1086
879
|
addFormatToken("e", 0, 0, "weekday");
|
|
1087
880
|
addFormatToken("E", 0, 0, "isoWeekday");
|
|
881
|
+
addFormatToken("eHHmm", 0, 0, function() {
|
|
882
|
+
return "" + this.weekday() + zeroFill(this.hours(), 2) + zeroFill(this.minutes(), 2);
|
|
883
|
+
});
|
|
1088
884
|
addRegexToken("d", match1to2);
|
|
1089
885
|
addRegexToken("e", match1to2);
|
|
1090
886
|
addRegexToken("E", match1to2);
|
|
887
|
+
addRegexToken("eHHmm", match5to6);
|
|
1091
888
|
addRegexToken("dd", function(isStrict, locale2) {
|
|
1092
889
|
return locale2.weekdaysMinRegex(isStrict);
|
|
1093
890
|
});
|
|
@@ -1108,6 +905,12 @@ addWeekParseToken(["dd", "ddd", "dddd"], function(input, week, config, token2) {
|
|
|
1108
905
|
addWeekParseToken(["d", "e", "E"], function(input, week, config, token2) {
|
|
1109
906
|
week[token2] = toInt(input);
|
|
1110
907
|
});
|
|
908
|
+
addWeekParseToken("eHHmm", function(input, week, config) {
|
|
909
|
+
var weekdayEnd = input.length - 4;
|
|
910
|
+
week.e = toInt(input.substr(0, weekdayEnd));
|
|
911
|
+
config._a[HOUR] = toInt(input.substr(weekdayEnd, 2));
|
|
912
|
+
config._a[MINUTE] = toInt(input.substr(weekdayEnd + 2));
|
|
913
|
+
});
|
|
1111
914
|
function parseWeekday(input, locale2) {
|
|
1112
915
|
if (typeof input !== "string") {
|
|
1113
916
|
return input;
|
|
@@ -1130,7 +933,27 @@ function parseIsoWeekday(input, locale2) {
|
|
|
1130
933
|
function shiftWeekdays(ws, n) {
|
|
1131
934
|
return ws.slice(n, 7).concat(ws.slice(0, n));
|
|
1132
935
|
}
|
|
1133
|
-
var defaultLocaleWeekdays = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), defaultLocaleWeekdaysShort = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), defaultLocaleWeekdaysMin = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), defaultWeekdaysRegex = matchWord, defaultWeekdaysShortRegex = matchWord, defaultWeekdaysMinRegex = matchWord
|
|
936
|
+
var defaultLocaleWeekdays = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), defaultLocaleWeekdaysShort = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), defaultLocaleWeekdaysMin = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), defaultWeekdaysRegex = matchWord, defaultWeekdaysShortRegex = matchWord, defaultWeekdaysMinRegex = matchWord, weekdaysParseProperties = [
|
|
937
|
+
"weekdaysParse",
|
|
938
|
+
"fullWeekdaysParse",
|
|
939
|
+
"shortWeekdaysParse",
|
|
940
|
+
"minWeekdaysParse",
|
|
941
|
+
"weekdaysRegex",
|
|
942
|
+
"weekdaysShortRegex",
|
|
943
|
+
"weekdaysMinRegex",
|
|
944
|
+
"weekdaysStrictRegex",
|
|
945
|
+
"weekdaysShortStrictRegex",
|
|
946
|
+
"weekdaysMinStrictRegex"
|
|
947
|
+
];
|
|
948
|
+
function clearWeekdaysParseCache(locale2, config) {
|
|
949
|
+
var i, prop;
|
|
950
|
+
for (i = 0; i < weekdaysParseProperties.length; i++) {
|
|
951
|
+
prop = weekdaysParseProperties[i];
|
|
952
|
+
if (!hasOwnProp(config, prop)) {
|
|
953
|
+
delete locale2["_" + prop];
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
}
|
|
1134
957
|
function localeWeekdays(m, format2) {
|
|
1135
958
|
var weekdays = isArray(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format2) ? "format" : "standalone"];
|
|
1136
959
|
return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays;
|
|
@@ -1141,7 +964,7 @@ function localeWeekdaysShort(m) {
|
|
|
1141
964
|
function localeWeekdaysMin(m) {
|
|
1142
965
|
return m === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m ? this._weekdaysMin[m.day()] : this._weekdaysMin;
|
|
1143
966
|
}
|
|
1144
|
-
function handleStrictParse
|
|
967
|
+
function handleStrictParse(weekdayName, format2, strict) {
|
|
1145
968
|
var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
|
|
1146
969
|
if (!this._weekdaysParse) {
|
|
1147
970
|
this._weekdaysParse = [];
|
|
@@ -1211,7 +1034,7 @@ function handleStrictParse$1(weekdayName, format2, strict) {
|
|
|
1211
1034
|
function localeWeekdaysParse(weekdayName, format2, strict) {
|
|
1212
1035
|
var i, mom, regex;
|
|
1213
1036
|
if (this._weekdaysParseExact) {
|
|
1214
|
-
return handleStrictParse
|
|
1037
|
+
return handleStrictParse.call(this, weekdayName, format2, strict);
|
|
1215
1038
|
}
|
|
1216
1039
|
if (!this._weekdaysParse) {
|
|
1217
1040
|
this._weekdaysParse = [];
|
|
@@ -1250,123 +1073,388 @@ function localeWeekdaysParse(weekdayName, format2, strict) {
|
|
|
1250
1073
|
}
|
|
1251
1074
|
}
|
|
1252
1075
|
}
|
|
1253
|
-
function getSetDayOfWeek(input) {
|
|
1254
|
-
if (!this.isValid()) {
|
|
1255
|
-
return input != null ? this : NaN;
|
|
1256
|
-
}
|
|
1257
|
-
var day = get(this, "Day");
|
|
1258
|
-
if (input != null) {
|
|
1259
|
-
input = parseWeekday(input, this.localeData());
|
|
1260
|
-
return this.add(input - day, "d");
|
|
1261
|
-
} else {
|
|
1262
|
-
return day;
|
|
1263
|
-
}
|
|
1076
|
+
function getSetDayOfWeek(input) {
|
|
1077
|
+
if (!this.isValid()) {
|
|
1078
|
+
return input != null ? this : NaN;
|
|
1079
|
+
}
|
|
1080
|
+
var day = get$2(this, "Day");
|
|
1081
|
+
if (input != null) {
|
|
1082
|
+
input = parseWeekday(input, this.localeData());
|
|
1083
|
+
return this.add(input - day, "d");
|
|
1084
|
+
} else {
|
|
1085
|
+
return day;
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
function getSetLocaleDayOfWeek(input) {
|
|
1089
|
+
if (!this.isValid()) {
|
|
1090
|
+
return input != null ? this : NaN;
|
|
1091
|
+
}
|
|
1092
|
+
var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
|
|
1093
|
+
return input == null ? weekday : this.add(input - weekday, "d");
|
|
1094
|
+
}
|
|
1095
|
+
function getSetISODayOfWeek(input) {
|
|
1096
|
+
if (!this.isValid()) {
|
|
1097
|
+
return input != null ? this : NaN;
|
|
1098
|
+
}
|
|
1099
|
+
if (input != null) {
|
|
1100
|
+
var weekday = parseIsoWeekday(input, this.localeData());
|
|
1101
|
+
return this.day(this.day() % 7 ? weekday : weekday - 7);
|
|
1102
|
+
} else {
|
|
1103
|
+
return this.day() || 7;
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
function weekdaysRegex(isStrict) {
|
|
1107
|
+
if (this._weekdaysParseExact) {
|
|
1108
|
+
if (!hasOwnProp(this, "_weekdaysRegex")) {
|
|
1109
|
+
computeWeekdaysParse.call(this);
|
|
1110
|
+
}
|
|
1111
|
+
if (isStrict) {
|
|
1112
|
+
return this._weekdaysStrictRegex;
|
|
1113
|
+
} else {
|
|
1114
|
+
return this._weekdaysRegex;
|
|
1115
|
+
}
|
|
1116
|
+
} else {
|
|
1117
|
+
if (!hasOwnProp(this, "_weekdaysRegex")) {
|
|
1118
|
+
this._weekdaysRegex = defaultWeekdaysRegex;
|
|
1119
|
+
}
|
|
1120
|
+
return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
function weekdaysShortRegex(isStrict) {
|
|
1124
|
+
if (this._weekdaysParseExact) {
|
|
1125
|
+
if (!hasOwnProp(this, "_weekdaysRegex")) {
|
|
1126
|
+
computeWeekdaysParse.call(this);
|
|
1127
|
+
}
|
|
1128
|
+
if (isStrict) {
|
|
1129
|
+
return this._weekdaysShortStrictRegex;
|
|
1130
|
+
} else {
|
|
1131
|
+
return this._weekdaysShortRegex;
|
|
1132
|
+
}
|
|
1133
|
+
} else {
|
|
1134
|
+
if (!hasOwnProp(this, "_weekdaysShortRegex")) {
|
|
1135
|
+
this._weekdaysShortRegex = defaultWeekdaysShortRegex;
|
|
1136
|
+
}
|
|
1137
|
+
return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
function weekdaysMinRegex(isStrict) {
|
|
1141
|
+
if (this._weekdaysParseExact) {
|
|
1142
|
+
if (!hasOwnProp(this, "_weekdaysRegex")) {
|
|
1143
|
+
computeWeekdaysParse.call(this);
|
|
1144
|
+
}
|
|
1145
|
+
if (isStrict) {
|
|
1146
|
+
return this._weekdaysMinStrictRegex;
|
|
1147
|
+
} else {
|
|
1148
|
+
return this._weekdaysMinRegex;
|
|
1149
|
+
}
|
|
1150
|
+
} else {
|
|
1151
|
+
if (!hasOwnProp(this, "_weekdaysMinRegex")) {
|
|
1152
|
+
this._weekdaysMinRegex = defaultWeekdaysMinRegex;
|
|
1153
|
+
}
|
|
1154
|
+
return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
function computeWeekdaysParse() {
|
|
1158
|
+
function cmpLenRev(a, b) {
|
|
1159
|
+
return b.length - a.length;
|
|
1160
|
+
}
|
|
1161
|
+
var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [], i, mom, minp, shortp, longp;
|
|
1162
|
+
for (i = 0; i < 7; i++) {
|
|
1163
|
+
mom = createUTC([2e3, 1]).day(i);
|
|
1164
|
+
minp = regexEscape(this.weekdaysMin(mom, ""));
|
|
1165
|
+
shortp = regexEscape(this.weekdaysShort(mom, ""));
|
|
1166
|
+
longp = regexEscape(this.weekdays(mom, ""));
|
|
1167
|
+
minPieces.push(minp);
|
|
1168
|
+
shortPieces.push(shortp);
|
|
1169
|
+
longPieces.push(longp);
|
|
1170
|
+
mixedPieces.push(minp);
|
|
1171
|
+
mixedPieces.push(shortp);
|
|
1172
|
+
mixedPieces.push(longp);
|
|
1173
|
+
}
|
|
1174
|
+
minPieces.sort(cmpLenRev);
|
|
1175
|
+
shortPieces.sort(cmpLenRev);
|
|
1176
|
+
longPieces.sort(cmpLenRev);
|
|
1177
|
+
mixedPieces.sort(cmpLenRev);
|
|
1178
|
+
this._weekdaysRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
|
|
1179
|
+
this._weekdaysShortRegex = this._weekdaysRegex;
|
|
1180
|
+
this._weekdaysMinRegex = this._weekdaysRegex;
|
|
1181
|
+
this._weekdaysStrictRegex = new RegExp(
|
|
1182
|
+
"^(" + longPieces.join("|") + ")",
|
|
1183
|
+
"i"
|
|
1184
|
+
);
|
|
1185
|
+
this._weekdaysShortStrictRegex = new RegExp(
|
|
1186
|
+
"^(" + shortPieces.join("|") + ")",
|
|
1187
|
+
"i"
|
|
1188
|
+
);
|
|
1189
|
+
this._weekdaysMinStrictRegex = new RegExp(
|
|
1190
|
+
"^(" + minPieces.join("|") + ")",
|
|
1191
|
+
"i"
|
|
1192
|
+
);
|
|
1193
|
+
}
|
|
1194
|
+
function set(config) {
|
|
1195
|
+
var prop, i;
|
|
1196
|
+
clearMonthsParseCache(this, config);
|
|
1197
|
+
clearWeekdaysParseCache(this, config);
|
|
1198
|
+
for (i in config) {
|
|
1199
|
+
if (hasOwnProp(config, i)) {
|
|
1200
|
+
prop = config[i];
|
|
1201
|
+
if (isFunction(prop)) {
|
|
1202
|
+
this[i] = prop;
|
|
1203
|
+
} else {
|
|
1204
|
+
this["_" + i] = prop;
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
this._config = config;
|
|
1209
|
+
this._dayOfMonthOrdinalParseLenient = new RegExp(
|
|
1210
|
+
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
|
|
1211
|
+
);
|
|
1212
|
+
}
|
|
1213
|
+
function mergeConfigs(parentConfig, childConfig) {
|
|
1214
|
+
var res = extend({}, parentConfig), prop;
|
|
1215
|
+
for (prop in childConfig) {
|
|
1216
|
+
if (hasOwnProp(childConfig, prop)) {
|
|
1217
|
+
if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
|
|
1218
|
+
res[prop] = {};
|
|
1219
|
+
extend(res[prop], parentConfig[prop]);
|
|
1220
|
+
extend(res[prop], childConfig[prop]);
|
|
1221
|
+
} else if (childConfig[prop] != null) {
|
|
1222
|
+
res[prop] = childConfig[prop];
|
|
1223
|
+
} else {
|
|
1224
|
+
delete res[prop];
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
for (prop in parentConfig) {
|
|
1229
|
+
if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop])) {
|
|
1230
|
+
res[prop] = extend({}, res[prop]);
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
return res;
|
|
1234
|
+
}
|
|
1235
|
+
function Locale(config) {
|
|
1236
|
+
if (config != null) {
|
|
1237
|
+
this.set(config);
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
var keys;
|
|
1241
|
+
if (Object.keys) {
|
|
1242
|
+
keys = Object.keys;
|
|
1243
|
+
} else {
|
|
1244
|
+
keys = function(obj) {
|
|
1245
|
+
var i, res = [];
|
|
1246
|
+
for (i in obj) {
|
|
1247
|
+
if (hasOwnProp(obj, i)) {
|
|
1248
|
+
res.push(i);
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
return res;
|
|
1252
|
+
};
|
|
1253
|
+
}
|
|
1254
|
+
var defaultCalendar = {
|
|
1255
|
+
sameDay: "[Today at] LT",
|
|
1256
|
+
nextDay: "[Tomorrow at] LT",
|
|
1257
|
+
nextWeek: "dddd [at] LT",
|
|
1258
|
+
lastDay: "[Yesterday at] LT",
|
|
1259
|
+
lastWeek: "[Last] dddd [at] LT",
|
|
1260
|
+
sameElse: "L"
|
|
1261
|
+
};
|
|
1262
|
+
function calendar$1(key, mom, now2) {
|
|
1263
|
+
var output = this._calendar[key] || this._calendar["sameElse"];
|
|
1264
|
+
return isFunction(output) ? output.call(mom, now2) : output;
|
|
1265
|
+
}
|
|
1266
|
+
var defaultLongDateFormat = {
|
|
1267
|
+
LTS: "h:mm:ss A",
|
|
1268
|
+
LT: "h:mm A",
|
|
1269
|
+
L: "MM/DD/YYYY",
|
|
1270
|
+
LL: "MMMM D, YYYY",
|
|
1271
|
+
LLL: "MMMM D, YYYY h:mm A",
|
|
1272
|
+
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
1273
|
+
};
|
|
1274
|
+
function longDateFormat(key) {
|
|
1275
|
+
var format2 = this._longDateFormat[key], formatUpper = this._longDateFormat[key.toUpperCase()], formatCache = this._longDateFormatCache;
|
|
1276
|
+
if (format2 || !formatUpper) {
|
|
1277
|
+
return format2;
|
|
1278
|
+
}
|
|
1279
|
+
if (formatCache && formatCache[key] && formatCache[key].formatUpper === formatUpper) {
|
|
1280
|
+
return formatCache[key].format;
|
|
1281
|
+
}
|
|
1282
|
+
format2 = formatUpper.match(formattingTokens).map(function(tok) {
|
|
1283
|
+
if (tok === "MMMM" || tok === "MM" || tok === "DD" || tok === "dddd") {
|
|
1284
|
+
return tok.slice(1);
|
|
1285
|
+
}
|
|
1286
|
+
return tok;
|
|
1287
|
+
}).join("");
|
|
1288
|
+
if (!formatCache) {
|
|
1289
|
+
formatCache = this._longDateFormatCache = {};
|
|
1290
|
+
}
|
|
1291
|
+
formatCache[key] = {
|
|
1292
|
+
formatUpper,
|
|
1293
|
+
format: format2
|
|
1294
|
+
};
|
|
1295
|
+
return format2;
|
|
1296
|
+
}
|
|
1297
|
+
var defaultInvalidDate = "Invalid date";
|
|
1298
|
+
function invalidDate() {
|
|
1299
|
+
return this._invalidDate;
|
|
1300
|
+
}
|
|
1301
|
+
var defaultOrdinal = "%d", defaultDayOfMonthOrdinalParse = /\d{1,2}/;
|
|
1302
|
+
function ordinal(number) {
|
|
1303
|
+
return this._ordinal.replace("%d", number);
|
|
1304
|
+
}
|
|
1305
|
+
var defaultRelativeTime = {
|
|
1306
|
+
future: "in %s",
|
|
1307
|
+
past: "%s ago",
|
|
1308
|
+
s: "a few seconds",
|
|
1309
|
+
ss: "%d seconds",
|
|
1310
|
+
m: "a minute",
|
|
1311
|
+
mm: "%d minutes",
|
|
1312
|
+
h: "an hour",
|
|
1313
|
+
hh: "%d hours",
|
|
1314
|
+
d: "a day",
|
|
1315
|
+
dd: "%d days",
|
|
1316
|
+
w: "a week",
|
|
1317
|
+
ww: "%d weeks",
|
|
1318
|
+
M: "a month",
|
|
1319
|
+
MM: "%d months",
|
|
1320
|
+
y: "a year",
|
|
1321
|
+
yy: "%d years"
|
|
1322
|
+
};
|
|
1323
|
+
function relativeTimeWithoutPostformat(number, withoutSuffix, string, isFuture) {
|
|
1324
|
+
var output = this._relativeTime[string];
|
|
1325
|
+
return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
|
|
1326
|
+
}
|
|
1327
|
+
function relativeTime$1(number, withoutSuffix, string, isFuture) {
|
|
1328
|
+
return this.postformat(
|
|
1329
|
+
relativeTimeWithoutPostformat.call(
|
|
1330
|
+
this,
|
|
1331
|
+
number,
|
|
1332
|
+
withoutSuffix,
|
|
1333
|
+
string,
|
|
1334
|
+
isFuture
|
|
1335
|
+
)
|
|
1336
|
+
);
|
|
1337
|
+
}
|
|
1338
|
+
function pastFutureWithoutPostformat(diff2, output) {
|
|
1339
|
+
var format2 = this._relativeTime[diff2 > 0 ? "future" : "past"];
|
|
1340
|
+
return isFunction(format2) ? format2(output) : format2.replace(/%s/i, output);
|
|
1264
1341
|
}
|
|
1265
|
-
function
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
|
|
1270
|
-
return input == null ? weekday : this.add(input - weekday, "d");
|
|
1342
|
+
function pastFuture(diff2, output) {
|
|
1343
|
+
return this.postformat(
|
|
1344
|
+
pastFutureWithoutPostformat.call(this, diff2, output)
|
|
1345
|
+
);
|
|
1271
1346
|
}
|
|
1272
|
-
function
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1347
|
+
function createDate(y, m, d, h, M, s, ms) {
|
|
1348
|
+
var date;
|
|
1349
|
+
if (y < 100 && y >= 0) {
|
|
1350
|
+
date = new Date(y + 400, m, d, h, M, s, ms);
|
|
1351
|
+
if (isFinite(date.getFullYear())) {
|
|
1352
|
+
date.setFullYear(y);
|
|
1353
|
+
}
|
|
1279
1354
|
} else {
|
|
1280
|
-
|
|
1355
|
+
date = new Date(y, m, d, h, M, s, ms);
|
|
1281
1356
|
}
|
|
1357
|
+
return date;
|
|
1282
1358
|
}
|
|
1283
|
-
function
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
return this._weekdaysRegex;
|
|
1359
|
+
function createUTCDate(y) {
|
|
1360
|
+
var date, args;
|
|
1361
|
+
if (y < 100 && y >= 0) {
|
|
1362
|
+
args = Array.prototype.slice.call(arguments);
|
|
1363
|
+
args[0] = y + 400;
|
|
1364
|
+
date = new Date(Date.UTC.apply(null, args));
|
|
1365
|
+
if (isFinite(date.getUTCFullYear())) {
|
|
1366
|
+
date.setUTCFullYear(y);
|
|
1292
1367
|
}
|
|
1293
1368
|
} else {
|
|
1294
|
-
|
|
1295
|
-
this._weekdaysRegex = defaultWeekdaysRegex;
|
|
1296
|
-
}
|
|
1297
|
-
return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex;
|
|
1369
|
+
date = new Date(Date.UTC.apply(null, arguments));
|
|
1298
1370
|
}
|
|
1371
|
+
return date;
|
|
1299
1372
|
}
|
|
1300
|
-
function
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1373
|
+
function firstWeekOffset(year, dow, doy) {
|
|
1374
|
+
var fwd = 7 + dow - doy, fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
|
|
1375
|
+
return -fwdlw + fwd - 1;
|
|
1376
|
+
}
|
|
1377
|
+
function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
|
|
1378
|
+
var localWeekday = (7 + weekday - dow) % 7, weekOffset = firstWeekOffset(year, dow, doy), dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, resYear, resDayOfYear;
|
|
1379
|
+
if (dayOfYear <= 0) {
|
|
1380
|
+
resYear = year - 1;
|
|
1381
|
+
resDayOfYear = daysInYear(resYear) + dayOfYear;
|
|
1382
|
+
} else if (dayOfYear > daysInYear(year)) {
|
|
1383
|
+
resYear = year + 1;
|
|
1384
|
+
resDayOfYear = dayOfYear - daysInYear(year);
|
|
1310
1385
|
} else {
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
}
|
|
1314
|
-
return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
|
|
1386
|
+
resYear = year;
|
|
1387
|
+
resDayOfYear = dayOfYear;
|
|
1315
1388
|
}
|
|
1389
|
+
return {
|
|
1390
|
+
year: resYear,
|
|
1391
|
+
dayOfYear: resDayOfYear
|
|
1392
|
+
};
|
|
1316
1393
|
}
|
|
1317
|
-
function
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
return this._weekdaysMinRegex;
|
|
1326
|
-
}
|
|
1394
|
+
function weekOfYearFromDayOfYear(year, dayOfYear, dow, doy) {
|
|
1395
|
+
var weekOffset = firstWeekOffset(year, dow, doy), week = Math.floor((dayOfYear - weekOffset - 1) / 7) + 1, resWeek, resYear;
|
|
1396
|
+
if (week < 1) {
|
|
1397
|
+
resYear = year - 1;
|
|
1398
|
+
resWeek = week + weeksInYear(resYear, dow, doy);
|
|
1399
|
+
} else if (week > weeksInYear(year, dow, doy)) {
|
|
1400
|
+
resWeek = week - weeksInYear(year, dow, doy);
|
|
1401
|
+
resYear = year + 1;
|
|
1327
1402
|
} else {
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
}
|
|
1331
|
-
return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
|
|
1403
|
+
resYear = year;
|
|
1404
|
+
resWeek = week;
|
|
1332
1405
|
}
|
|
1406
|
+
return {
|
|
1407
|
+
week: resWeek,
|
|
1408
|
+
year: resYear
|
|
1409
|
+
};
|
|
1333
1410
|
}
|
|
1334
|
-
function
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
var
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1411
|
+
function weekOfYear(mom, dow, doy) {
|
|
1412
|
+
return weekOfYearFromDayOfYear(mom.year(), mom.dayOfYear(), dow, doy);
|
|
1413
|
+
}
|
|
1414
|
+
function weekOfYearFromDate(year, month, date, dow, doy) {
|
|
1415
|
+
var dayOfYear = Math.round(
|
|
1416
|
+
(createUTCDate(year, month, date) - createUTCDate(year, 0, 1)) / 864e5
|
|
1417
|
+
) + 1;
|
|
1418
|
+
return weekOfYearFromDayOfYear(year, dayOfYear, dow, doy);
|
|
1419
|
+
}
|
|
1420
|
+
function weeksInYear(year, dow, doy) {
|
|
1421
|
+
var weekOffset = firstWeekOffset(year, dow, doy), weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
|
|
1422
|
+
return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
|
|
1423
|
+
}
|
|
1424
|
+
addFormatToken("w", ["ww", 2], "wo", "week");
|
|
1425
|
+
addFormatToken("W", ["WW", 2], "Wo", "isoWeek");
|
|
1426
|
+
addRegexToken("w", match1to2, match1to2NoLeadingZero);
|
|
1427
|
+
addRegexToken("ww", match1to2, match2);
|
|
1428
|
+
addRegexToken("W", match1to2, match1to2NoLeadingZero);
|
|
1429
|
+
addRegexToken("WW", match1to2, match2);
|
|
1430
|
+
addWeekParseToken(
|
|
1431
|
+
["w", "ww", "W", "WW"],
|
|
1432
|
+
function(input, week, config, token2) {
|
|
1433
|
+
week[token2.substr(0, 1)] = toInt(input);
|
|
1350
1434
|
}
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
this.
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
);
|
|
1435
|
+
);
|
|
1436
|
+
function localeWeek(mom) {
|
|
1437
|
+
return weekOfYear(mom, this._week.dow, this._week.doy).week;
|
|
1438
|
+
}
|
|
1439
|
+
var defaultLocaleWeek = {
|
|
1440
|
+
dow: 0,
|
|
1441
|
+
// Sunday is the first day of the week.
|
|
1442
|
+
doy: 6
|
|
1443
|
+
// The week that contains Jan 6th is the first week of the year.
|
|
1444
|
+
};
|
|
1445
|
+
function localeFirstDayOfWeek() {
|
|
1446
|
+
return this._week.dow;
|
|
1447
|
+
}
|
|
1448
|
+
function localeFirstDayOfYear() {
|
|
1449
|
+
return this._week.doy;
|
|
1450
|
+
}
|
|
1451
|
+
function getSetWeek(input) {
|
|
1452
|
+
var week = this.localeData().week(this);
|
|
1453
|
+
return input == null ? week : this.add((input - week) * 7, "d");
|
|
1454
|
+
}
|
|
1455
|
+
function getSetISOWeek(input) {
|
|
1456
|
+
var week = weekOfYear(this, 1, 4).week;
|
|
1457
|
+
return input == null ? week : this.add((input - week) * 7, "d");
|
|
1370
1458
|
}
|
|
1371
1459
|
function hFormat() {
|
|
1372
1460
|
return this.hours() % 12 || 12;
|
|
@@ -1513,21 +1601,30 @@ function chooseLocale(names) {
|
|
|
1513
1601
|
return globalLocale;
|
|
1514
1602
|
}
|
|
1515
1603
|
function isLocaleNameSane(name) {
|
|
1516
|
-
return
|
|
1604
|
+
return typeof name === "string" && /^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(name);
|
|
1517
1605
|
}
|
|
1518
1606
|
function loadLocale(name) {
|
|
1519
|
-
var oldLocale = null, aliasedRequire;
|
|
1520
|
-
if (locales
|
|
1607
|
+
var oldLocale = null, aliasedRequire, normalizedName;
|
|
1608
|
+
if (hasOwnProp(locales, name)) {
|
|
1609
|
+
return locales[name];
|
|
1610
|
+
}
|
|
1611
|
+
normalizedName = normalizeLocale(name);
|
|
1612
|
+
if (hasOwnProp(locales, normalizedName)) {
|
|
1613
|
+
return locales[normalizedName];
|
|
1614
|
+
}
|
|
1615
|
+
if (typeof module !== "undefined" && module && module.exports && isLocaleNameSane(normalizedName)) {
|
|
1521
1616
|
try {
|
|
1522
1617
|
oldLocale = globalLocale._abbr;
|
|
1523
1618
|
aliasedRequire = require;
|
|
1524
|
-
aliasedRequire("./locale/" +
|
|
1619
|
+
aliasedRequire("./locale/" + normalizedName);
|
|
1525
1620
|
getSetGlobalLocale(oldLocale);
|
|
1526
1621
|
} catch (e) {
|
|
1527
|
-
locales[
|
|
1622
|
+
locales[normalizedName] = null;
|
|
1528
1623
|
}
|
|
1529
1624
|
}
|
|
1530
|
-
|
|
1625
|
+
if (hasOwnProp(locales, normalizedName)) {
|
|
1626
|
+
return locales[normalizedName];
|
|
1627
|
+
}
|
|
1531
1628
|
}
|
|
1532
1629
|
function getSetGlobalLocale(key, values) {
|
|
1533
1630
|
var data;
|
|
@@ -1592,12 +1689,14 @@ function defineLocale(name, config) {
|
|
|
1592
1689
|
}
|
|
1593
1690
|
}
|
|
1594
1691
|
function updateLocale(name, config) {
|
|
1692
|
+
var locale2, tmpLocale = loadLocale(name), parentConfig = baseConfig;
|
|
1693
|
+
if (tmpLocale != null) {
|
|
1694
|
+
name = tmpLocale._abbr;
|
|
1695
|
+
}
|
|
1595
1696
|
if (config != null) {
|
|
1596
|
-
var locale2, tmpLocale, parentConfig = baseConfig;
|
|
1597
1697
|
if (locales[name] != null && locales[name].parentLocale != null) {
|
|
1598
1698
|
locales[name].set(mergeConfigs(locales[name]._config, config));
|
|
1599
1699
|
} else {
|
|
1600
|
-
tmpLocale = loadLocale(name);
|
|
1601
1700
|
if (tmpLocale != null) {
|
|
1602
1701
|
parentConfig = tmpLocale._config;
|
|
1603
1702
|
}
|
|
@@ -1854,8 +1953,38 @@ function defaults(a, b, c) {
|
|
|
1854
1953
|
}
|
|
1855
1954
|
return c;
|
|
1856
1955
|
}
|
|
1857
|
-
function currentDateArray(config) {
|
|
1858
|
-
var
|
|
1956
|
+
function currentDateArray(config, now2, forWeek) {
|
|
1957
|
+
var hadWeekContext = Object.prototype.hasOwnProperty.call(
|
|
1958
|
+
config,
|
|
1959
|
+
"_isDefaultDatePartsForWeek"
|
|
1960
|
+
), weekContext = config._isDefaultDatePartsForWeek;
|
|
1961
|
+
config._isDefaultDatePartsForWeek = !!forWeek;
|
|
1962
|
+
try {
|
|
1963
|
+
return hooks._getDefaultDateParts(config, now2, forWeek);
|
|
1964
|
+
} finally {
|
|
1965
|
+
if (hadWeekContext) {
|
|
1966
|
+
config._isDefaultDatePartsForWeek = weekContext;
|
|
1967
|
+
} else {
|
|
1968
|
+
delete config._isDefaultDatePartsForWeek;
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
function currentDateNow(config) {
|
|
1973
|
+
var now2 = config._defaultDatePartsNow;
|
|
1974
|
+
if (!now2) {
|
|
1975
|
+
return hooks.now();
|
|
1976
|
+
}
|
|
1977
|
+
if (!now2.hasValue) {
|
|
1978
|
+
now2.value = hooks.now();
|
|
1979
|
+
now2.hasValue = true;
|
|
1980
|
+
}
|
|
1981
|
+
return now2.value;
|
|
1982
|
+
}
|
|
1983
|
+
function getDefaultDateParts(config, now2, forWeek) {
|
|
1984
|
+
var useWeekDefaults = forWeek || config._isDefaultDatePartsForWeek, nowValue = useWeekDefaults ? createLocal(now2) : new Date(now2);
|
|
1985
|
+
if (useWeekDefaults) {
|
|
1986
|
+
return [nowValue.year(), nowValue.month(), nowValue.date()];
|
|
1987
|
+
}
|
|
1859
1988
|
if (config._useUTC) {
|
|
1860
1989
|
return [
|
|
1861
1990
|
nowValue.getUTCFullYear(),
|
|
@@ -1865,17 +1994,21 @@ function currentDateArray(config) {
|
|
|
1865
1994
|
}
|
|
1866
1995
|
return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
|
|
1867
1996
|
}
|
|
1997
|
+
hooks._getDefaultDateParts = getDefaultDateParts;
|
|
1868
1998
|
function configFromArray(config) {
|
|
1869
|
-
var i, date, input = [], currentDate, expectedWeekday, yearToUse;
|
|
1999
|
+
var i, date, input = [], now2, currentDate, expectedWeekday, yearToUse, dateIsDefaulted;
|
|
1870
2000
|
if (config._d) {
|
|
1871
2001
|
return;
|
|
1872
2002
|
}
|
|
1873
|
-
|
|
2003
|
+
if (config._a[YEAR] == null || config._a[MONTH] == null || config._a[DATE] == null) {
|
|
2004
|
+
now2 = currentDateNow(config);
|
|
2005
|
+
currentDate = currentDateArray(config, now2);
|
|
2006
|
+
}
|
|
1874
2007
|
if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
|
|
1875
|
-
dayOfYearFromWeekInfo(config);
|
|
2008
|
+
dayOfYearFromWeekInfo(config, currentDateArray(config, now2, true));
|
|
1876
2009
|
}
|
|
1877
2010
|
if (config._dayOfYear != null) {
|
|
1878
|
-
yearToUse =
|
|
2011
|
+
yearToUse = config._a[YEAR] != null ? config._a[YEAR] : currentDate[YEAR];
|
|
1879
2012
|
if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
|
|
1880
2013
|
getParsingFlags(config)._overflowDayOfYear = true;
|
|
1881
2014
|
}
|
|
@@ -1883,6 +2016,7 @@ function configFromArray(config) {
|
|
|
1883
2016
|
config._a[MONTH] = date.getUTCMonth();
|
|
1884
2017
|
config._a[DATE] = date.getUTCDate();
|
|
1885
2018
|
}
|
|
2019
|
+
dateIsDefaulted = config._a[YEAR] == null || config._a[MONTH] == null || config._a[DATE] == null;
|
|
1886
2020
|
for (i = 0; i < 3 && config._a[i] == null; ++i) {
|
|
1887
2021
|
config._a[i] = input[i] = currentDate[i];
|
|
1888
2022
|
}
|
|
@@ -1904,11 +2038,11 @@ function configFromArray(config) {
|
|
|
1904
2038
|
if (config._nextDay) {
|
|
1905
2039
|
config._a[HOUR] = 24;
|
|
1906
2040
|
}
|
|
1907
|
-
if (config._w && typeof config._w.d !== "undefined" && config._w.d !== expectedWeekday) {
|
|
2041
|
+
if (config._w && typeof config._w.d !== "undefined" && !dateIsDefaulted && config._w.d !== expectedWeekday) {
|
|
1908
2042
|
getParsingFlags(config).weekdayMismatch = true;
|
|
1909
2043
|
}
|
|
1910
2044
|
}
|
|
1911
|
-
function dayOfYearFromWeekInfo(config) {
|
|
2045
|
+
function dayOfYearFromWeekInfo(config, currentDate) {
|
|
1912
2046
|
var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
|
|
1913
2047
|
w = config._w;
|
|
1914
2048
|
if (w.GG != null || w.W != null || w.E != null) {
|
|
@@ -1917,7 +2051,13 @@ function dayOfYearFromWeekInfo(config) {
|
|
|
1917
2051
|
weekYear = defaults(
|
|
1918
2052
|
w.GG,
|
|
1919
2053
|
config._a[YEAR],
|
|
1920
|
-
|
|
2054
|
+
weekOfYearFromDate(
|
|
2055
|
+
currentDate[YEAR],
|
|
2056
|
+
currentDate[MONTH],
|
|
2057
|
+
currentDate[DATE],
|
|
2058
|
+
1,
|
|
2059
|
+
4
|
|
2060
|
+
).year
|
|
1921
2061
|
);
|
|
1922
2062
|
week = defaults(w.W, 1);
|
|
1923
2063
|
weekday = defaults(w.E, 1);
|
|
@@ -1927,7 +2067,13 @@ function dayOfYearFromWeekInfo(config) {
|
|
|
1927
2067
|
} else {
|
|
1928
2068
|
dow = config._locale._week.dow;
|
|
1929
2069
|
doy = config._locale._week.doy;
|
|
1930
|
-
curWeek =
|
|
2070
|
+
curWeek = weekOfYearFromDate(
|
|
2071
|
+
currentDate[YEAR],
|
|
2072
|
+
currentDate[MONTH],
|
|
2073
|
+
currentDate[DATE],
|
|
2074
|
+
dow,
|
|
2075
|
+
doy
|
|
2076
|
+
);
|
|
1931
2077
|
weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
|
|
1932
2078
|
week = defaults(w.w, curWeek.week);
|
|
1933
2079
|
if (w.d != null) {
|
|
@@ -2038,7 +2184,7 @@ function meridiemFixWrap(locale2, hour, meridiem2) {
|
|
|
2038
2184
|
}
|
|
2039
2185
|
}
|
|
2040
2186
|
function configFromStringAndArray(config) {
|
|
2041
|
-
var tempConfig, bestMoment, scoreToBeat, i, currentScore, validFormatFound, bestFormatIsValid = false, configfLen = config._f.length;
|
|
2187
|
+
var tempConfig, bestMoment, scoreToBeat, i, currentScore, validFormatFound, bestFormatIsValid = false, defaultDatePartsNow = {}, configfLen = config._f.length;
|
|
2042
2188
|
if (configfLen === 0) {
|
|
2043
2189
|
getParsingFlags(config).invalidFormat = true;
|
|
2044
2190
|
config._d = /* @__PURE__ */ new Date(NaN);
|
|
@@ -2051,9 +2197,10 @@ function configFromStringAndArray(config) {
|
|
|
2051
2197
|
if (config._useUTC != null) {
|
|
2052
2198
|
tempConfig._useUTC = config._useUTC;
|
|
2053
2199
|
}
|
|
2200
|
+
tempConfig._defaultDatePartsNow = defaultDatePartsNow;
|
|
2054
2201
|
tempConfig._f = config._f[i];
|
|
2055
2202
|
configFromStringAndFormat(tempConfig);
|
|
2056
|
-
if (isValid(tempConfig)) {
|
|
2203
|
+
if (isValid$2(tempConfig)) {
|
|
2057
2204
|
validFormatFound = true;
|
|
2058
2205
|
}
|
|
2059
2206
|
currentScore += getParsingFlags(tempConfig).charsLeftOver;
|
|
@@ -2101,7 +2248,7 @@ function prepareConfig(config) {
|
|
|
2101
2248
|
var input = config._i, format2 = config._f;
|
|
2102
2249
|
config._locale = config._locale || getLocale(config._l);
|
|
2103
2250
|
if (input === null || format2 === void 0 && input === "") {
|
|
2104
|
-
return createInvalid({ nullInput: true });
|
|
2251
|
+
return createInvalid$1({ nullInput: true });
|
|
2105
2252
|
}
|
|
2106
2253
|
if (typeof input === "string") {
|
|
2107
2254
|
config._i = input = config._locale.preparse(input);
|
|
@@ -2117,7 +2264,7 @@ function prepareConfig(config) {
|
|
|
2117
2264
|
} else {
|
|
2118
2265
|
configFromInput(config);
|
|
2119
2266
|
}
|
|
2120
|
-
if (!isValid(config)) {
|
|
2267
|
+
if (!isValid$2(config)) {
|
|
2121
2268
|
config._d = null;
|
|
2122
2269
|
}
|
|
2123
2270
|
return config;
|
|
@@ -2174,7 +2321,7 @@ var prototypeMin = deprecate(
|
|
|
2174
2321
|
if (this.isValid() && other.isValid()) {
|
|
2175
2322
|
return other < this ? this : other;
|
|
2176
2323
|
} else {
|
|
2177
|
-
return createInvalid();
|
|
2324
|
+
return createInvalid$1();
|
|
2178
2325
|
}
|
|
2179
2326
|
}
|
|
2180
2327
|
), prototypeMax = deprecate(
|
|
@@ -2184,7 +2331,7 @@ var prototypeMin = deprecate(
|
|
|
2184
2331
|
if (this.isValid() && other.isValid()) {
|
|
2185
2332
|
return other > this ? this : other;
|
|
2186
2333
|
} else {
|
|
2187
|
-
return createInvalid();
|
|
2334
|
+
return createInvalid$1();
|
|
2188
2335
|
}
|
|
2189
2336
|
}
|
|
2190
2337
|
);
|
|
@@ -2196,9 +2343,17 @@ function pickBy(fn, moments) {
|
|
|
2196
2343
|
if (!moments.length) {
|
|
2197
2344
|
return createLocal();
|
|
2198
2345
|
}
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2346
|
+
for (i = 0; i < moments.length; ++i) {
|
|
2347
|
+
if (isMoment(moments[i])) {
|
|
2348
|
+
res = moments[i];
|
|
2349
|
+
break;
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
if (!res) {
|
|
2353
|
+
return createInvalid$1();
|
|
2354
|
+
}
|
|
2355
|
+
for (++i; i < moments.length; ++i) {
|
|
2356
|
+
if (isMoment(moments[i]) && (!moments[i].isValid() || moments[i][fn](res))) {
|
|
2202
2357
|
res = moments[i];
|
|
2203
2358
|
}
|
|
2204
2359
|
}
|
|
@@ -2248,7 +2403,7 @@ function isDurationValid(m) {
|
|
|
2248
2403
|
function isValid$1() {
|
|
2249
2404
|
return this._isValid;
|
|
2250
2405
|
}
|
|
2251
|
-
function createInvalid
|
|
2406
|
+
function createInvalid() {
|
|
2252
2407
|
return createDuration(NaN);
|
|
2253
2408
|
}
|
|
2254
2409
|
function Duration(duration) {
|
|
@@ -2297,8 +2452,12 @@ offset("ZZ", "");
|
|
|
2297
2452
|
addRegexToken("Z", matchShortOffset);
|
|
2298
2453
|
addRegexToken("ZZ", matchShortOffset);
|
|
2299
2454
|
addParseToken(["Z", "ZZ"], function(input, array, config) {
|
|
2455
|
+
var offset2 = offsetFromString(matchShortOffset, input);
|
|
2300
2456
|
config._useUTC = true;
|
|
2301
|
-
config._tzm =
|
|
2457
|
+
config._tzm = offset2;
|
|
2458
|
+
if (offset2 === null) {
|
|
2459
|
+
getParsingFlags(config).invalidOffset = input;
|
|
2460
|
+
}
|
|
2302
2461
|
});
|
|
2303
2462
|
var chunkOffset = /([\+\-]|\d\d)/gi;
|
|
2304
2463
|
function offsetFromString(matcher, string) {
|
|
@@ -2309,6 +2468,9 @@ function offsetFromString(matcher, string) {
|
|
|
2309
2468
|
chunk = matches[matches.length - 1] || [];
|
|
2310
2469
|
parts = (chunk + "").match(chunkOffset) || ["-", 0, 0];
|
|
2311
2470
|
minutes2 = +(parts[1] * 60) + toInt(parts[2]);
|
|
2471
|
+
if (toInt(parts[2]) > 59 || (parts[0] === "+" ? minutes2 > 14 * 60 : minutes2 > 12 * 60)) {
|
|
2472
|
+
return null;
|
|
2473
|
+
}
|
|
2312
2474
|
return minutes2 === 0 ? 0 : parts[0] === "+" ? minutes2 : -minutes2;
|
|
2313
2475
|
}
|
|
2314
2476
|
function cloneWithOffset(input, model) {
|
|
@@ -2352,7 +2514,7 @@ function getSetOffset(input, keepLocalTime, keepMinutes) {
|
|
|
2352
2514
|
}
|
|
2353
2515
|
if (offset2 !== input) {
|
|
2354
2516
|
if (!keepLocalTime || this._changeInProgress) {
|
|
2355
|
-
addSubtract(
|
|
2517
|
+
addSubtract$1(
|
|
2356
2518
|
this,
|
|
2357
2519
|
createDuration(input - offset2, "m"),
|
|
2358
2520
|
1,
|
|
@@ -2499,7 +2661,7 @@ function createDuration(input, key) {
|
|
|
2499
2661
|
return ret;
|
|
2500
2662
|
}
|
|
2501
2663
|
createDuration.fn = Duration.prototype;
|
|
2502
|
-
createDuration.invalid = createInvalid
|
|
2664
|
+
createDuration.invalid = createInvalid;
|
|
2503
2665
|
function parseIso(inp, sign2) {
|
|
2504
2666
|
var res = inp && parseFloat(inp.replace(",", "."));
|
|
2505
2667
|
return (isNaN(res) ? 0 : res) * sign2;
|
|
@@ -2541,21 +2703,21 @@ function createAdder(direction, name) {
|
|
|
2541
2703
|
period = tmp;
|
|
2542
2704
|
}
|
|
2543
2705
|
dur = createDuration(val, period);
|
|
2544
|
-
addSubtract(this, dur, direction);
|
|
2706
|
+
addSubtract$1(this, dur, direction);
|
|
2545
2707
|
return this;
|
|
2546
2708
|
};
|
|
2547
2709
|
}
|
|
2548
|
-
function addSubtract(mom, duration, isAdding, updateOffset) {
|
|
2710
|
+
function addSubtract$1(mom, duration, isAdding, updateOffset) {
|
|
2549
2711
|
var milliseconds2 = duration._milliseconds, days2 = absRound(duration._days), months2 = absRound(duration._months);
|
|
2550
2712
|
if (!mom.isValid()) {
|
|
2551
2713
|
return;
|
|
2552
2714
|
}
|
|
2553
2715
|
updateOffset = updateOffset == null ? true : updateOffset;
|
|
2554
2716
|
if (months2) {
|
|
2555
|
-
setMonth(mom, get(mom, "Month") + months2 * isAdding);
|
|
2717
|
+
setMonth(mom, get$2(mom, "Month") + months2 * isAdding);
|
|
2556
2718
|
}
|
|
2557
2719
|
if (days2) {
|
|
2558
|
-
set$1(mom, "Date", get(mom, "Date") + days2 * isAdding);
|
|
2720
|
+
set$1(mom, "Date", get$2(mom, "Date") + days2 * isAdding);
|
|
2559
2721
|
}
|
|
2560
2722
|
if (milliseconds2) {
|
|
2561
2723
|
mom._d.setTime(mom._d.valueOf() + milliseconds2 * isAdding);
|
|
@@ -2564,7 +2726,7 @@ function addSubtract(mom, duration, isAdding, updateOffset) {
|
|
|
2564
2726
|
hooks.updateOffset(mom, days2 || months2);
|
|
2565
2727
|
}
|
|
2566
2728
|
}
|
|
2567
|
-
var add = createAdder(1, "add"), subtract = createAdder(-1, "subtract");
|
|
2729
|
+
var add$1 = createAdder(1, "add"), subtract$1 = createAdder(-1, "subtract");
|
|
2568
2730
|
function isString(input) {
|
|
2569
2731
|
return typeof input === "string" || input instanceof String;
|
|
2570
2732
|
}
|
|
@@ -2632,7 +2794,7 @@ function getCalendarFormat(myMoment, now2) {
|
|
|
2632
2794
|
var diff2 = myMoment.diff(now2, "days", true);
|
|
2633
2795
|
return diff2 < -6 ? "sameElse" : diff2 < -1 ? "lastWeek" : diff2 < 0 ? "lastDay" : diff2 < 1 ? "sameDay" : diff2 < 2 ? "nextDay" : diff2 < 7 ? "nextWeek" : "sameElse";
|
|
2634
2796
|
}
|
|
2635
|
-
function calendar
|
|
2797
|
+
function calendar(time, formats) {
|
|
2636
2798
|
if (arguments.length === 1) {
|
|
2637
2799
|
if (!arguments[0]) {
|
|
2638
2800
|
time = void 0;
|
|
@@ -2650,7 +2812,7 @@ function calendar$1(time, formats) {
|
|
|
2650
2812
|
output || this.localeData().calendar(format2, this, createLocal(now2))
|
|
2651
2813
|
);
|
|
2652
2814
|
}
|
|
2653
|
-
function clone() {
|
|
2815
|
+
function clone$1() {
|
|
2654
2816
|
return new Moment(this);
|
|
2655
2817
|
}
|
|
2656
2818
|
function isAfter(input, units) {
|
|
@@ -2764,7 +2926,7 @@ hooks.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
|
2764
2926
|
function toString() {
|
|
2765
2927
|
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
|
2766
2928
|
}
|
|
2767
|
-
function toISOString(keepOffset) {
|
|
2929
|
+
function toISOString$1(keepOffset) {
|
|
2768
2930
|
if (!this.isValid()) {
|
|
2769
2931
|
return null;
|
|
2770
2932
|
}
|
|
@@ -2855,7 +3017,7 @@ function localeData() {
|
|
|
2855
3017
|
return this._locale;
|
|
2856
3018
|
}
|
|
2857
3019
|
var MS_PER_SECOND = 1e3, MS_PER_MINUTE = 60 * MS_PER_SECOND, MS_PER_HOUR = 60 * MS_PER_MINUTE, MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
|
|
2858
|
-
function mod
|
|
3020
|
+
function mod(dividend, divisor) {
|
|
2859
3021
|
return (dividend % divisor + divisor) % divisor;
|
|
2860
3022
|
}
|
|
2861
3023
|
function localStartOfDate(y, m, d) {
|
|
@@ -2913,18 +3075,18 @@ function startOf(units) {
|
|
|
2913
3075
|
break;
|
|
2914
3076
|
case "hour":
|
|
2915
3077
|
time = this._d.valueOf();
|
|
2916
|
-
time -= mod
|
|
3078
|
+
time -= mod(
|
|
2917
3079
|
time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
|
|
2918
3080
|
MS_PER_HOUR
|
|
2919
3081
|
);
|
|
2920
3082
|
break;
|
|
2921
3083
|
case "minute":
|
|
2922
3084
|
time = this._d.valueOf();
|
|
2923
|
-
time -= mod
|
|
3085
|
+
time -= mod(time, MS_PER_MINUTE);
|
|
2924
3086
|
break;
|
|
2925
3087
|
case "second":
|
|
2926
3088
|
time = this._d.valueOf();
|
|
2927
|
-
time -= mod
|
|
3089
|
+
time -= mod(time, MS_PER_SECOND);
|
|
2928
3090
|
break;
|
|
2929
3091
|
}
|
|
2930
3092
|
this._d.setTime(time);
|
|
@@ -2972,25 +3134,25 @@ function endOf(units) {
|
|
|
2972
3134
|
break;
|
|
2973
3135
|
case "hour":
|
|
2974
3136
|
time = this._d.valueOf();
|
|
2975
|
-
time += MS_PER_HOUR - mod
|
|
3137
|
+
time += MS_PER_HOUR - mod(
|
|
2976
3138
|
time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
|
|
2977
3139
|
MS_PER_HOUR
|
|
2978
3140
|
) - 1;
|
|
2979
3141
|
break;
|
|
2980
3142
|
case "minute":
|
|
2981
3143
|
time = this._d.valueOf();
|
|
2982
|
-
time += MS_PER_MINUTE - mod
|
|
3144
|
+
time += MS_PER_MINUTE - mod(time, MS_PER_MINUTE) - 1;
|
|
2983
3145
|
break;
|
|
2984
3146
|
case "second":
|
|
2985
3147
|
time = this._d.valueOf();
|
|
2986
|
-
time += MS_PER_SECOND - mod
|
|
3148
|
+
time += MS_PER_SECOND - mod(time, MS_PER_SECOND) - 1;
|
|
2987
3149
|
break;
|
|
2988
3150
|
}
|
|
2989
3151
|
this._d.setTime(time);
|
|
2990
3152
|
hooks.updateOffset(this, true);
|
|
2991
3153
|
return this;
|
|
2992
3154
|
}
|
|
2993
|
-
function valueOf() {
|
|
3155
|
+
function valueOf$1() {
|
|
2994
3156
|
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
2995
3157
|
}
|
|
2996
3158
|
function unix() {
|
|
@@ -3026,8 +3188,8 @@ function toObject() {
|
|
|
3026
3188
|
function toJSON() {
|
|
3027
3189
|
return this.isValid() ? this.toISOString() : null;
|
|
3028
3190
|
}
|
|
3029
|
-
function isValid
|
|
3030
|
-
return isValid(this);
|
|
3191
|
+
function isValid() {
|
|
3192
|
+
return isValid$2(this);
|
|
3031
3193
|
}
|
|
3032
3194
|
function parsingFlags() {
|
|
3033
3195
|
return extend({}, getParsingFlags(this));
|
|
@@ -3419,105 +3581,105 @@ function getZoneAbbr() {
|
|
|
3419
3581
|
function getZoneName() {
|
|
3420
3582
|
return this._isUTC ? "Coordinated Universal Time" : "";
|
|
3421
3583
|
}
|
|
3422
|
-
var proto = Moment.prototype;
|
|
3423
|
-
proto.add = add;
|
|
3424
|
-
proto.calendar = calendar
|
|
3425
|
-
proto.clone = clone;
|
|
3426
|
-
proto.diff = diff;
|
|
3427
|
-
proto.endOf = endOf;
|
|
3428
|
-
proto.format = format;
|
|
3429
|
-
proto.from = from;
|
|
3430
|
-
proto.fromNow = fromNow;
|
|
3431
|
-
proto.to = to;
|
|
3432
|
-
proto.toNow = toNow;
|
|
3433
|
-
proto.get = stringGet;
|
|
3434
|
-
proto.invalidAt = invalidAt;
|
|
3435
|
-
proto.isAfter = isAfter;
|
|
3436
|
-
proto.isBefore = isBefore;
|
|
3437
|
-
proto.isBetween = isBetween;
|
|
3438
|
-
proto.isSame = isSame;
|
|
3439
|
-
proto.isSameOrAfter = isSameOrAfter;
|
|
3440
|
-
proto.isSameOrBefore = isSameOrBefore;
|
|
3441
|
-
proto.isValid = isValid
|
|
3442
|
-
proto.lang = lang;
|
|
3443
|
-
proto.locale = locale;
|
|
3444
|
-
proto.localeData = localeData;
|
|
3445
|
-
proto.max = prototypeMax;
|
|
3446
|
-
proto.min = prototypeMin;
|
|
3447
|
-
proto.parsingFlags = parsingFlags;
|
|
3448
|
-
proto.set = stringSet;
|
|
3449
|
-
proto.startOf = startOf;
|
|
3450
|
-
proto.subtract = subtract;
|
|
3451
|
-
proto.toArray = toArray;
|
|
3452
|
-
proto.toObject = toObject;
|
|
3453
|
-
proto.toDate = toDate;
|
|
3454
|
-
proto.toISOString = toISOString;
|
|
3455
|
-
proto.inspect = inspect;
|
|
3584
|
+
var proto$2 = Moment.prototype;
|
|
3585
|
+
proto$2.add = add$1;
|
|
3586
|
+
proto$2.calendar = calendar;
|
|
3587
|
+
proto$2.clone = clone$1;
|
|
3588
|
+
proto$2.diff = diff;
|
|
3589
|
+
proto$2.endOf = endOf;
|
|
3590
|
+
proto$2.format = format;
|
|
3591
|
+
proto$2.from = from;
|
|
3592
|
+
proto$2.fromNow = fromNow;
|
|
3593
|
+
proto$2.to = to;
|
|
3594
|
+
proto$2.toNow = toNow;
|
|
3595
|
+
proto$2.get = stringGet;
|
|
3596
|
+
proto$2.invalidAt = invalidAt;
|
|
3597
|
+
proto$2.isAfter = isAfter;
|
|
3598
|
+
proto$2.isBefore = isBefore;
|
|
3599
|
+
proto$2.isBetween = isBetween;
|
|
3600
|
+
proto$2.isSame = isSame;
|
|
3601
|
+
proto$2.isSameOrAfter = isSameOrAfter;
|
|
3602
|
+
proto$2.isSameOrBefore = isSameOrBefore;
|
|
3603
|
+
proto$2.isValid = isValid;
|
|
3604
|
+
proto$2.lang = lang;
|
|
3605
|
+
proto$2.locale = locale;
|
|
3606
|
+
proto$2.localeData = localeData;
|
|
3607
|
+
proto$2.max = prototypeMax;
|
|
3608
|
+
proto$2.min = prototypeMin;
|
|
3609
|
+
proto$2.parsingFlags = parsingFlags;
|
|
3610
|
+
proto$2.set = stringSet;
|
|
3611
|
+
proto$2.startOf = startOf;
|
|
3612
|
+
proto$2.subtract = subtract$1;
|
|
3613
|
+
proto$2.toArray = toArray;
|
|
3614
|
+
proto$2.toObject = toObject;
|
|
3615
|
+
proto$2.toDate = toDate;
|
|
3616
|
+
proto$2.toISOString = toISOString$1;
|
|
3617
|
+
proto$2.inspect = inspect;
|
|
3456
3618
|
if (typeof Symbol !== "undefined" && Symbol.for != null) {
|
|
3457
|
-
proto[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
3619
|
+
proto$2[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
3458
3620
|
return "Moment<" + this.format() + ">";
|
|
3459
3621
|
};
|
|
3460
3622
|
}
|
|
3461
|
-
proto.toJSON = toJSON;
|
|
3462
|
-
proto.toString = toString;
|
|
3463
|
-
proto.unix = unix;
|
|
3464
|
-
proto.valueOf = valueOf;
|
|
3465
|
-
proto.creationData = creationData;
|
|
3466
|
-
proto.eraName = getEraName;
|
|
3467
|
-
proto.eraNarrow = getEraNarrow;
|
|
3468
|
-
proto.eraAbbr = getEraAbbr;
|
|
3469
|
-
proto.eraYear = getEraYear;
|
|
3470
|
-
proto.year = getSetYear;
|
|
3471
|
-
proto.isLeapYear = getIsLeapYear;
|
|
3472
|
-
proto.weekYear = getSetWeekYear;
|
|
3473
|
-
proto.isoWeekYear = getSetISOWeekYear;
|
|
3474
|
-
proto.quarter = proto.quarters = getSetQuarter;
|
|
3475
|
-
proto.month = getSetMonth;
|
|
3476
|
-
proto.daysInMonth = getDaysInMonth;
|
|
3477
|
-
proto.week = proto.weeks = getSetWeek;
|
|
3478
|
-
proto.isoWeek = proto.isoWeeks = getSetISOWeek;
|
|
3479
|
-
proto.weeksInYear = getWeeksInYear;
|
|
3480
|
-
proto.weeksInWeekYear = getWeeksInWeekYear;
|
|
3481
|
-
proto.isoWeeksInYear = getISOWeeksInYear;
|
|
3482
|
-
proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
|
|
3483
|
-
proto.date = getSetDayOfMonth;
|
|
3484
|
-
proto.day = proto.days = getSetDayOfWeek;
|
|
3485
|
-
proto.weekday = getSetLocaleDayOfWeek;
|
|
3486
|
-
proto.isoWeekday = getSetISODayOfWeek;
|
|
3487
|
-
proto.dayOfYear = getSetDayOfYear;
|
|
3488
|
-
proto.hour = proto.hours = getSetHour;
|
|
3489
|
-
proto.minute = proto.minutes = getSetMinute;
|
|
3490
|
-
proto.second = proto.seconds = getSetSecond;
|
|
3491
|
-
proto.millisecond = proto.milliseconds = getSetMillisecond;
|
|
3492
|
-
proto.utcOffset = getSetOffset;
|
|
3493
|
-
proto.utc = setOffsetToUTC;
|
|
3494
|
-
proto.local = setOffsetToLocal;
|
|
3495
|
-
proto.parseZone = setOffsetToParsedOffset;
|
|
3496
|
-
proto.hasAlignedHourOffset = hasAlignedHourOffset;
|
|
3497
|
-
proto.isDST = isDaylightSavingTime;
|
|
3498
|
-
proto.isLocal = isLocal;
|
|
3499
|
-
proto.isUtcOffset = isUtcOffset;
|
|
3500
|
-
proto.isUtc = isUtc;
|
|
3501
|
-
proto.isUTC = isUtc;
|
|
3502
|
-
proto.zoneAbbr = getZoneAbbr;
|
|
3503
|
-
proto.zoneName = getZoneName;
|
|
3504
|
-
proto.dates = deprecate(
|
|
3623
|
+
proto$2.toJSON = toJSON;
|
|
3624
|
+
proto$2.toString = toString;
|
|
3625
|
+
proto$2.unix = unix;
|
|
3626
|
+
proto$2.valueOf = valueOf$1;
|
|
3627
|
+
proto$2.creationData = creationData;
|
|
3628
|
+
proto$2.eraName = getEraName;
|
|
3629
|
+
proto$2.eraNarrow = getEraNarrow;
|
|
3630
|
+
proto$2.eraAbbr = getEraAbbr;
|
|
3631
|
+
proto$2.eraYear = getEraYear;
|
|
3632
|
+
proto$2.year = getSetYear;
|
|
3633
|
+
proto$2.isLeapYear = getIsLeapYear;
|
|
3634
|
+
proto$2.weekYear = getSetWeekYear;
|
|
3635
|
+
proto$2.isoWeekYear = getSetISOWeekYear;
|
|
3636
|
+
proto$2.quarter = proto$2.quarters = getSetQuarter;
|
|
3637
|
+
proto$2.month = getSetMonth;
|
|
3638
|
+
proto$2.daysInMonth = getDaysInMonth;
|
|
3639
|
+
proto$2.week = proto$2.weeks = getSetWeek;
|
|
3640
|
+
proto$2.isoWeek = proto$2.isoWeeks = getSetISOWeek;
|
|
3641
|
+
proto$2.weeksInYear = getWeeksInYear;
|
|
3642
|
+
proto$2.weeksInWeekYear = getWeeksInWeekYear;
|
|
3643
|
+
proto$2.isoWeeksInYear = getISOWeeksInYear;
|
|
3644
|
+
proto$2.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
|
|
3645
|
+
proto$2.date = getSetDayOfMonth;
|
|
3646
|
+
proto$2.day = proto$2.days = getSetDayOfWeek;
|
|
3647
|
+
proto$2.weekday = getSetLocaleDayOfWeek;
|
|
3648
|
+
proto$2.isoWeekday = getSetISODayOfWeek;
|
|
3649
|
+
proto$2.dayOfYear = getSetDayOfYear;
|
|
3650
|
+
proto$2.hour = proto$2.hours = getSetHour;
|
|
3651
|
+
proto$2.minute = proto$2.minutes = getSetMinute;
|
|
3652
|
+
proto$2.second = proto$2.seconds = getSetSecond;
|
|
3653
|
+
proto$2.millisecond = proto$2.milliseconds = getSetMillisecond;
|
|
3654
|
+
proto$2.utcOffset = getSetOffset;
|
|
3655
|
+
proto$2.utc = setOffsetToUTC;
|
|
3656
|
+
proto$2.local = setOffsetToLocal;
|
|
3657
|
+
proto$2.parseZone = setOffsetToParsedOffset;
|
|
3658
|
+
proto$2.hasAlignedHourOffset = hasAlignedHourOffset;
|
|
3659
|
+
proto$2.isDST = isDaylightSavingTime;
|
|
3660
|
+
proto$2.isLocal = isLocal;
|
|
3661
|
+
proto$2.isUtcOffset = isUtcOffset;
|
|
3662
|
+
proto$2.isUtc = isUtc;
|
|
3663
|
+
proto$2.isUTC = isUtc;
|
|
3664
|
+
proto$2.zoneAbbr = getZoneAbbr;
|
|
3665
|
+
proto$2.zoneName = getZoneName;
|
|
3666
|
+
proto$2.dates = deprecate(
|
|
3505
3667
|
"dates accessor is deprecated. Use date instead.",
|
|
3506
3668
|
getSetDayOfMonth
|
|
3507
3669
|
);
|
|
3508
|
-
proto.months = deprecate(
|
|
3670
|
+
proto$2.months = deprecate(
|
|
3509
3671
|
"months accessor is deprecated. Use month instead",
|
|
3510
3672
|
getSetMonth
|
|
3511
3673
|
);
|
|
3512
|
-
proto.years = deprecate(
|
|
3674
|
+
proto$2.years = deprecate(
|
|
3513
3675
|
"years accessor is deprecated. Use year instead",
|
|
3514
3676
|
getSetYear
|
|
3515
3677
|
);
|
|
3516
|
-
proto.zone = deprecate(
|
|
3678
|
+
proto$2.zone = deprecate(
|
|
3517
3679
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
|
3518
3680
|
getSetZone
|
|
3519
3681
|
);
|
|
3520
|
-
proto.isDSTShifted = deprecate(
|
|
3682
|
+
proto$2.isDSTShifted = deprecate(
|
|
3521
3683
|
"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
|
|
3522
3684
|
isDaylightSavingTimeShifted
|
|
3523
3685
|
);
|
|
@@ -3531,13 +3693,13 @@ function preParsePostFormat(string) {
|
|
|
3531
3693
|
return string;
|
|
3532
3694
|
}
|
|
3533
3695
|
var proto$1 = Locale.prototype;
|
|
3534
|
-
proto$1.calendar = calendar;
|
|
3696
|
+
proto$1.calendar = calendar$1;
|
|
3535
3697
|
proto$1.longDateFormat = longDateFormat;
|
|
3536
3698
|
proto$1.invalidDate = invalidDate;
|
|
3537
3699
|
proto$1.ordinal = ordinal;
|
|
3538
3700
|
proto$1.preparse = preParsePostFormat;
|
|
3539
3701
|
proto$1.postformat = preParsePostFormat;
|
|
3540
|
-
proto$1.relativeTime = relativeTime;
|
|
3702
|
+
proto$1.relativeTime = relativeTime$1;
|
|
3541
3703
|
proto$1.pastFuture = pastFuture;
|
|
3542
3704
|
proto$1.set = set;
|
|
3543
3705
|
proto$1.eras = localeEras;
|
|
@@ -3657,7 +3819,7 @@ hooks.langData = deprecate(
|
|
|
3657
3819
|
getLocale
|
|
3658
3820
|
);
|
|
3659
3821
|
var mathAbs = Math.abs;
|
|
3660
|
-
function abs() {
|
|
3822
|
+
function abs$1() {
|
|
3661
3823
|
var data = this._data;
|
|
3662
3824
|
this._milliseconds = mathAbs(this._milliseconds);
|
|
3663
3825
|
this._days = mathAbs(this._days);
|
|
@@ -3670,18 +3832,18 @@ function abs() {
|
|
|
3670
3832
|
data.years = mathAbs(data.years);
|
|
3671
3833
|
return this;
|
|
3672
3834
|
}
|
|
3673
|
-
function addSubtract
|
|
3835
|
+
function addSubtract(duration, input, value, direction) {
|
|
3674
3836
|
var other = createDuration(input, value);
|
|
3675
3837
|
duration._milliseconds += direction * other._milliseconds;
|
|
3676
3838
|
duration._days += direction * other._days;
|
|
3677
3839
|
duration._months += direction * other._months;
|
|
3678
3840
|
return duration._bubble();
|
|
3679
3841
|
}
|
|
3680
|
-
function add
|
|
3681
|
-
return addSubtract
|
|
3842
|
+
function add(input, value) {
|
|
3843
|
+
return addSubtract(this, input, value, 1);
|
|
3682
3844
|
}
|
|
3683
|
-
function subtract
|
|
3684
|
-
return addSubtract
|
|
3845
|
+
function subtract(input, value) {
|
|
3846
|
+
return addSubtract(this, input, value, -1);
|
|
3685
3847
|
}
|
|
3686
3848
|
function absCeil(number) {
|
|
3687
3849
|
if (number < 0) {
|
|
@@ -3763,11 +3925,11 @@ function makeAs(alias) {
|
|
|
3763
3925
|
return this.as(alias);
|
|
3764
3926
|
};
|
|
3765
3927
|
}
|
|
3766
|
-
var asMilliseconds = makeAs("ms"), asSeconds = makeAs("s"), asMinutes = makeAs("m"), asHours = makeAs("h"), asDays = makeAs("d"), asWeeks = makeAs("w"), asMonths = makeAs("M"), asQuarters = makeAs("Q"), asYears = makeAs("y"), valueOf
|
|
3767
|
-
function clone
|
|
3928
|
+
var asMilliseconds = makeAs("ms"), asSeconds = makeAs("s"), asMinutes = makeAs("m"), asHours = makeAs("h"), asDays = makeAs("d"), asWeeks = makeAs("w"), asMonths = makeAs("M"), asQuarters = makeAs("Q"), asYears = makeAs("y"), valueOf = asMilliseconds;
|
|
3929
|
+
function clone() {
|
|
3768
3930
|
return createDuration(this);
|
|
3769
3931
|
}
|
|
3770
|
-
function get
|
|
3932
|
+
function get(units) {
|
|
3771
3933
|
units = normalizeUnits(units);
|
|
3772
3934
|
return this.isValid() ? this[units + "s"]() : NaN;
|
|
3773
3935
|
}
|
|
@@ -3797,9 +3959,15 @@ var round = Math.round, thresholds = {
|
|
|
3797
3959
|
// months to year
|
|
3798
3960
|
};
|
|
3799
3961
|
function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale2) {
|
|
3800
|
-
return
|
|
3962
|
+
return relativeTimeWithoutPostformat.call(
|
|
3963
|
+
locale2,
|
|
3964
|
+
number || 1,
|
|
3965
|
+
!!withoutSuffix,
|
|
3966
|
+
string,
|
|
3967
|
+
isFuture
|
|
3968
|
+
);
|
|
3801
3969
|
}
|
|
3802
|
-
function relativeTime
|
|
3970
|
+
function relativeTime(posNegDuration, withoutSuffix, thresholds2, locale2) {
|
|
3803
3971
|
var duration = createDuration(posNegDuration).abs(), seconds2 = round(duration.as("s")), minutes2 = round(duration.as("m")), hours2 = round(duration.as("h")), days2 = round(duration.as("d")), months2 = round(duration.as("M")), weeks2 = round(duration.as("w")), years2 = round(duration.as("y")), a = seconds2 <= thresholds2.ss && ["s", seconds2] || seconds2 < thresholds2.s && ["ss", seconds2] || minutes2 <= 1 && ["m"] || minutes2 < thresholds2.m && ["mm", minutes2] || hours2 <= 1 && ["h"] || hours2 < thresholds2.h && ["hh", hours2] || days2 <= 1 && ["d"] || days2 < thresholds2.d && ["dd", days2];
|
|
3804
3972
|
if (thresholds2.w != null) {
|
|
3805
3973
|
a = a || weeks2 <= 1 && ["w"] || weeks2 < thresholds2.w && ["ww", weeks2];
|
|
@@ -3846,27 +4014,27 @@ function humanize(argWithSuffix, argThresholds) {
|
|
|
3846
4014
|
withSuffix = argWithSuffix;
|
|
3847
4015
|
}
|
|
3848
4016
|
if (typeof argThresholds === "object") {
|
|
3849
|
-
th =
|
|
4017
|
+
th = extend(extend({}, thresholds), argThresholds || {});
|
|
3850
4018
|
if (argThresholds.s != null && argThresholds.ss == null) {
|
|
3851
4019
|
th.ss = argThresholds.s - 1;
|
|
3852
4020
|
}
|
|
3853
4021
|
}
|
|
3854
4022
|
locale2 = this.localeData();
|
|
3855
|
-
output = relativeTime
|
|
4023
|
+
output = relativeTime(this, !withSuffix, th, locale2);
|
|
3856
4024
|
if (withSuffix) {
|
|
3857
|
-
output =
|
|
4025
|
+
output = pastFutureWithoutPostformat.call(locale2, +this, output);
|
|
3858
4026
|
}
|
|
3859
4027
|
return locale2.postformat(output);
|
|
3860
4028
|
}
|
|
3861
|
-
var abs
|
|
4029
|
+
var abs = Math.abs;
|
|
3862
4030
|
function sign(x) {
|
|
3863
4031
|
return (x > 0) - (x < 0) || +x;
|
|
3864
4032
|
}
|
|
3865
|
-
function toISOString
|
|
4033
|
+
function toISOString() {
|
|
3866
4034
|
if (!this.isValid()) {
|
|
3867
4035
|
return this.localeData().invalidDate();
|
|
3868
4036
|
}
|
|
3869
|
-
var seconds2 = abs
|
|
4037
|
+
var seconds2 = abs(this._milliseconds) / 1e3, days2 = abs(this._days), months2 = abs(this._months), minutes2, hours2, years2, s, total = this.asSeconds(), totalSign, ymSign, daysSign, hmsSign;
|
|
3870
4038
|
if (!total) {
|
|
3871
4039
|
return "P0D";
|
|
3872
4040
|
}
|
|
@@ -3883,44 +4051,44 @@ function toISOString$1() {
|
|
|
3883
4051
|
hmsSign = sign(this._milliseconds) !== sign(total) ? "-" : "";
|
|
3884
4052
|
return totalSign + "P" + (years2 ? ymSign + years2 + "Y" : "") + (months2 ? ymSign + months2 + "M" : "") + (days2 ? daysSign + days2 + "D" : "") + (hours2 || minutes2 || seconds2 ? "T" : "") + (hours2 ? hmsSign + hours2 + "H" : "") + (minutes2 ? hmsSign + minutes2 + "M" : "") + (seconds2 ? hmsSign + s + "S" : "");
|
|
3885
4053
|
}
|
|
3886
|
-
var proto
|
|
3887
|
-
proto
|
|
3888
|
-
proto
|
|
3889
|
-
proto
|
|
3890
|
-
proto
|
|
3891
|
-
proto
|
|
3892
|
-
proto
|
|
3893
|
-
proto
|
|
3894
|
-
proto
|
|
3895
|
-
proto
|
|
3896
|
-
proto
|
|
3897
|
-
proto
|
|
3898
|
-
proto
|
|
3899
|
-
proto
|
|
3900
|
-
proto
|
|
3901
|
-
proto
|
|
3902
|
-
proto
|
|
3903
|
-
proto
|
|
3904
|
-
proto
|
|
3905
|
-
proto
|
|
3906
|
-
proto
|
|
3907
|
-
proto
|
|
3908
|
-
proto
|
|
3909
|
-
proto
|
|
3910
|
-
proto
|
|
3911
|
-
proto
|
|
3912
|
-
proto
|
|
3913
|
-
proto
|
|
3914
|
-
proto
|
|
3915
|
-
proto
|
|
3916
|
-
proto
|
|
3917
|
-
proto
|
|
3918
|
-
proto
|
|
3919
|
-
proto
|
|
4054
|
+
var proto = Duration.prototype;
|
|
4055
|
+
proto.isValid = isValid$1;
|
|
4056
|
+
proto.abs = abs$1;
|
|
4057
|
+
proto.add = add;
|
|
4058
|
+
proto.subtract = subtract;
|
|
4059
|
+
proto.as = as;
|
|
4060
|
+
proto.asMilliseconds = asMilliseconds;
|
|
4061
|
+
proto.asSeconds = asSeconds;
|
|
4062
|
+
proto.asMinutes = asMinutes;
|
|
4063
|
+
proto.asHours = asHours;
|
|
4064
|
+
proto.asDays = asDays;
|
|
4065
|
+
proto.asWeeks = asWeeks;
|
|
4066
|
+
proto.asMonths = asMonths;
|
|
4067
|
+
proto.asQuarters = asQuarters;
|
|
4068
|
+
proto.asYears = asYears;
|
|
4069
|
+
proto.valueOf = valueOf;
|
|
4070
|
+
proto._bubble = bubble;
|
|
4071
|
+
proto.clone = clone;
|
|
4072
|
+
proto.get = get;
|
|
4073
|
+
proto.milliseconds = milliseconds;
|
|
4074
|
+
proto.seconds = seconds;
|
|
4075
|
+
proto.minutes = minutes;
|
|
4076
|
+
proto.hours = hours;
|
|
4077
|
+
proto.days = days;
|
|
4078
|
+
proto.weeks = weeks;
|
|
4079
|
+
proto.months = months;
|
|
4080
|
+
proto.years = years;
|
|
4081
|
+
proto.humanize = humanize;
|
|
4082
|
+
proto.toISOString = toISOString;
|
|
4083
|
+
proto.toString = toISOString;
|
|
4084
|
+
proto.toJSON = toISOString;
|
|
4085
|
+
proto.locale = locale;
|
|
4086
|
+
proto.localeData = localeData;
|
|
4087
|
+
proto.toIsoString = deprecate(
|
|
3920
4088
|
"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
|
|
3921
|
-
toISOString
|
|
4089
|
+
toISOString
|
|
3922
4090
|
);
|
|
3923
|
-
proto
|
|
4091
|
+
proto.lang = lang;
|
|
3924
4092
|
addFormatToken("X", 0, 0, "unix");
|
|
3925
4093
|
addFormatToken("x", 0, 0, "valueOf");
|
|
3926
4094
|
addRegexToken("x", matchSigned);
|
|
@@ -3932,9 +4100,9 @@ addParseToken("x", function(input, array, config) {
|
|
|
3932
4100
|
config._d = new Date(toInt(input));
|
|
3933
4101
|
});
|
|
3934
4102
|
//! moment.js
|
|
3935
|
-
hooks.version = "2.
|
|
4103
|
+
hooks.version = "2.31.0";
|
|
3936
4104
|
setHookCallback(createLocal);
|
|
3937
|
-
hooks.fn = proto;
|
|
4105
|
+
hooks.fn = proto$2;
|
|
3938
4106
|
hooks.min = min;
|
|
3939
4107
|
hooks.max = max;
|
|
3940
4108
|
hooks.now = now;
|
|
@@ -3943,7 +4111,7 @@ hooks.unix = createUnix;
|
|
|
3943
4111
|
hooks.months = listMonths;
|
|
3944
4112
|
hooks.isDate = isDate;
|
|
3945
4113
|
hooks.locale = getSetGlobalLocale;
|
|
3946
|
-
hooks.invalid = createInvalid;
|
|
4114
|
+
hooks.invalid = createInvalid$1;
|
|
3947
4115
|
hooks.duration = createDuration;
|
|
3948
4116
|
hooks.isMoment = isMoment;
|
|
3949
4117
|
hooks.weekdays = listWeekdays;
|
|
@@ -3960,7 +4128,7 @@ hooks.normalizeUnits = normalizeUnits;
|
|
|
3960
4128
|
hooks.relativeTimeRounding = getSetRelativeTimeRounding;
|
|
3961
4129
|
hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
|
|
3962
4130
|
hooks.calendarFormat = getCalendarFormat;
|
|
3963
|
-
hooks.prototype = proto;
|
|
4131
|
+
hooks.prototype = proto$2;
|
|
3964
4132
|
hooks.HTML5_FMT = {
|
|
3965
4133
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
3966
4134
|
// <input type="datetime-local" />
|