{"version":3,"file":"date-libs-ac3d0209.js","sources":["../../node_modules/.pnpm/moment@2.30.1/node_modules/moment/dist/moment.js","../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/isArguments.js","../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/implementation.js","../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/index.js","../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js","../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js","../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js","../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js","../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js","../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js","../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js","../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js","../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.js","../../node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js","../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js","../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js","../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js","../../node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.js","../../node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js","../../node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js","../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js","../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js","../../node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js","../../node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js","../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.js","../../node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/implementation.js","../../node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/polyfill.js","../../node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/shim.js","../../node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/index.js","../../node_modules/.pnpm/enzyme-shallow-equal@1.0.7/node_modules/enzyme-shallow-equal/build/index.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/extends.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/assertThisInitialized.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/setPrototypeOf.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/inheritsLoose.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/typeof.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/toPrimitive.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/toPropertyKey.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/defineProperty.js","../../node_modules/.pnpm/react-moment-proptypes@1.8.1_moment@2.30.1/node_modules/react-moment-proptypes/src/moment-validation-wrapper.js","../../node_modules/.pnpm/react-moment-proptypes@1.8.1_moment@2.30.1/node_modules/react-moment-proptypes/src/core.js","../../node_modules/.pnpm/react-moment-proptypes@1.8.1_moment@2.30.1/node_modules/react-moment-proptypes/src/index.js","../../node_modules/.pnpm/airbnb-prop-types@2.16.0_react@18.3.1/node_modules/airbnb-prop-types/build/mocks/index.js","../../node_modules/.pnpm/airbnb-prop-types@2.16.0_react@18.3.1/node_modules/airbnb-prop-types/index.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/interopRequireWildcard.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/objectWithoutProperties.js","../../node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js","../../node_modules/.pnpm/es-abstract@1.23.3/node_modules/es-abstract/2023/IsCallable.js","../../node_modules/.pnpm/es-abstract@1.23.3/node_modules/es-abstract/2023/IsPropertyKey.js","../../node_modules/.pnpm/es-abstract@1.23.3/node_modules/es-abstract/5/Type.js","../../node_modules/.pnpm/es-abstract@1.23.3/node_modules/es-abstract/2023/Type.js","../../node_modules/.pnpm/es-abstract@1.23.3/node_modules/es-abstract/2023/HasOwnProperty.js","../../node_modules/.pnpm/functions-have-names@1.2.3/node_modules/functions-have-names/index.js","../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.js","../../node_modules/.pnpm/function.prototype.name@1.1.6/node_modules/function.prototype.name/implementation.js","../../node_modules/.pnpm/function.prototype.name@1.1.6/node_modules/function.prototype.name/polyfill.js","../../node_modules/.pnpm/function.prototype.name@1.1.6/node_modules/function.prototype.name/shim.js","../../node_modules/.pnpm/function.prototype.name@1.1.6/node_modules/function.prototype.name/index.js","../../node_modules/.pnpm/airbnb-prop-types@2.16.0_react@18.3.1/node_modules/airbnb-prop-types/build/helpers/getComponentName.js","../../node_modules/.pnpm/isarray@2.0.5/node_modules/isarray/index.js","../../node_modules/.pnpm/prop-types-exact@1.2.5/node_modules/prop-types-exact/build/helpers/isPlainObject.js","../../node_modules/.pnpm/airbnb-prop-types@2.16.0_react@18.3.1/node_modules/airbnb-prop-types/build/helpers/isPlainObject.js","../../node_modules/.pnpm/object.assign@4.1.5/node_modules/object.assign/implementation.js","../../node_modules/.pnpm/object.assign@4.1.5/node_modules/object.assign/polyfill.js","../../node_modules/.pnpm/object.assign@4.1.5/node_modules/object.assign/shim.js","../../node_modules/.pnpm/object.assign@4.1.5/node_modules/object.assign/index.js","../../node_modules/.pnpm/airbnb-prop-types@2.16.0_react@18.3.1/node_modules/airbnb-prop-types/build/helpers/wrapValidator.js","../../node_modules/.pnpm/airbnb-prop-types@2.16.0_react@18.3.1/node_modules/airbnb-prop-types/build/ref.js","../../node_modules/.pnpm/react-with-styles@4.2.0_@babel+runtime@7.24.8_react-with-direction@1.4.0_react-dom@18.3.1_rea_m4rprklkoqjahcyxx7gyqjfx3m/node_modules/react-with-styles/lib/utils/emptyStylesFn.js","../../node_modules/.pnpm/react-with-styles@4.2.0_@babel+runtime@7.24.8_react-with-direction@1.4.0_react-dom@18.3.1_rea_m4rprklkoqjahcyxx7gyqjfx3m/node_modules/react-with-styles/lib/utils/perf.js","../../node_modules/.pnpm/deepmerge@1.5.2/node_modules/deepmerge/dist/cjs.js","../../node_modules/.pnpm/react-with-direction@1.4.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-with-direction/dist/constants.js","../../node_modules/.pnpm/react-with-direction@1.4.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-with-direction/dist/proptypes/brcast.js","../../node_modules/.pnpm/es-object-atoms@1.0.0/node_modules/es-object-atoms/RequireObjectCoercible.js","../../node_modules/.pnpm/object.values@1.2.0/node_modules/object.values/implementation.js","../../node_modules/.pnpm/object.values@1.2.0/node_modules/object.values/polyfill.js","../../node_modules/.pnpm/object.values@1.2.0/node_modules/object.values/shim.js","../../node_modules/.pnpm/object.values@1.2.0/node_modules/object.values/index.js","../../node_modules/.pnpm/react-with-direction@1.4.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-with-direction/dist/proptypes/direction.js","../../node_modules/.pnpm/react-with-direction@1.4.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-with-direction/dist/withDirection.js","../../node_modules/.pnpm/react-with-styles@4.2.0_@babel+runtime@7.24.8_react-with-direction@1.4.0_react-dom@18.3.1_rea_m4rprklkoqjahcyxx7gyqjfx3m/node_modules/react-with-styles/lib/WithStylesContext.js","../../node_modules/.pnpm/react-with-styles@4.2.0_@babel+runtime@7.24.8_react-with-direction@1.4.0_react-dom@18.3.1_rea_m4rprklkoqjahcyxx7gyqjfx3m/node_modules/react-with-styles/lib/ThemedStyleSheet.js","../../node_modules/.pnpm/react-with-styles@4.2.0_@babel+runtime@7.24.8_react-with-direction@1.4.0_react-dom@18.3.1_rea_m4rprklkoqjahcyxx7gyqjfx3m/node_modules/react-with-styles/lib/withStylesPropTypes.js","../../node_modules/.pnpm/react-with-styles@4.2.0_@babel+runtime@7.24.8_react-with-direction@1.4.0_react-dom@18.3.1_rea_m4rprklkoqjahcyxx7gyqjfx3m/node_modules/react-with-styles/lib/withStyles.js","../../node_modules/.pnpm/performance-now@2.1.0/node_modules/performance-now/lib/performance-now.js","../../node_modules/.pnpm/raf@3.4.1/node_modules/raf/index.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/defaultPhrases.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/getPhrasePropTypes.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/getPhrase.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/constants.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/getCalendarDaySettings.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/arrayLikeToArray.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/iterableToArray.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/nonIterableSpread.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/toConsumableArray.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/shapes/ModifiersShape.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/CalendarDay.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/CalendarWeek.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/calculateDimension.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/getCalendarMonthWeeks.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/isSameDay.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/toMomentObject.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/toISODateString.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/shapes/ScrollableOrientationShape.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/shapes/DayOfWeekShape.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/CalendarMonth.js","../../node_modules/.pnpm/consolidated-events@2.0.2/node_modules/consolidated-events/lib/index.esm.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/noflip.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/isTransitionEndSupported.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/getTransformStyles.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/getCalendarMonthWidth.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/toISOMonthString.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/isSameMonth.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/isPrevMonth.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/isNextMonth.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/CalendarMonthGrid.js","../../node_modules/.pnpm/react-portal@4.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-portal/es/utils.js","../../node_modules/.pnpm/react-portal@4.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-portal/es/Portal.js","../../node_modules/.pnpm/react-portal@4.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-portal/es/LegacyPortal.js","../../node_modules/.pnpm/react-portal@4.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-portal/es/PortalCompat.js","../../node_modules/.pnpm/react-portal@4.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-portal/es/PortalWithState.js","../../node_modules/.pnpm/is-touch-device@1.0.1/node_modules/is-touch-device/build/index.js","../../node_modules/.pnpm/document.contains@1.0.2/node_modules/document.contains/implementation.js","../../node_modules/.pnpm/document.contains@1.0.2/node_modules/document.contains/polyfill.js","../../node_modules/.pnpm/document.contains@1.0.2/node_modules/document.contains/shim.js","../../node_modules/.pnpm/document.contains@1.0.2/node_modules/document.contains/index.js","../../node_modules/.pnpm/react-outside-click-handler@1.3.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-outside-click-handler/build/OutsideClickHandler.js","../../node_modules/.pnpm/react-outside-click-handler@1.3.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-outside-click-handler/index.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/shapes/FocusedInputShape.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/shapes/IconPositionShape.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/shapes/OrientationShape.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/shapes/DisabledShape.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/shapes/AnchorDirectionShape.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/shapes/OpenDirectionShape.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/shapes/CalendarInfoPositionShape.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/shapes/NavPositionShape.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/shapes/DateRangePickerShape.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/getResponsiveContainerStyles.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/getDetachedContainerStyles.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/getInputHeight.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/isBeforeDay.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/isInclusivelyAfterDay.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/disableScroll.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/DateInput.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/RightArrow.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/LeftArrow.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/CloseButton.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/CalendarIcon.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/DateRangePickerInput.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/toLocalizedDateString.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/DateRangePickerInputController.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/arrayWithHoles.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/nonIterableRest.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/slicedToArray.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/isNextDay.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/isAfterDay.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/isPreviousDay.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/getVisibleDays.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/isDayVisible.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/getSelectedDateOffset.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/getPreviousMonthMemoLast.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/modifiers.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/ChevronUp.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/ChevronDown.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/DayPickerNavigation.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/KeyboardShortcutRow.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/DayPickerKeyboardShortcuts.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/getNumberOfCalendarMonthWeeks.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/getActiveElement.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/DayPicker.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/getPooledMoment.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/DayPickerRangeController.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/DateRangePicker.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/DayPickerSingleDateController.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/shapes/SingleDatePickerShape.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/SingleDatePickerInput.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/SingleDatePickerInputController.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/components/SingleDatePicker.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/utils/isInclusivelyBeforeDay.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/lib/index.js","../../node_modules/.pnpm/react-dates@21.8.0_@babel+runtime@7.24.8_moment@2.30.1_react-dom@18.3.1_react@18.3.1__react-w_exj7twsra6rqwymbxbev7s44m4/node_modules/react-dates/index.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/esm/classCallCheck.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/esm/createClass.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/esm/inherits.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js","../../node_modules/.pnpm/@babel+runtime@7.24.8/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"],"sourcesContent":["//! moment.js\n//! version : 2.30.1\n//! authors : Tim Wood, Iskren Chernev, Moment.js contributors\n//! license : MIT\n//! momentjs.com\n\nvar hookCallback;\n\nfunction hooks() {\n return hookCallback.apply(null, arguments);\n}\n\n// This is done to register the method called with moment()\n// without creating circular dependencies.\nfunction setHookCallback(callback) {\n hookCallback = callback;\n}\n\nfunction isArray(input) {\n return (\n input instanceof Array ||\n Object.prototype.toString.call(input) === '[object Array]'\n );\n}\n\nfunction isObject(input) {\n // IE8 will treat undefined and null as object if it wasn't for\n // input != null\n return (\n input != null &&\n Object.prototype.toString.call(input) === '[object Object]'\n );\n}\n\nfunction hasOwnProp(a, b) {\n return Object.prototype.hasOwnProperty.call(a, b);\n}\n\nfunction isObjectEmpty(obj) {\n if (Object.getOwnPropertyNames) {\n return Object.getOwnPropertyNames(obj).length === 0;\n } else {\n var k;\n for (k in obj) {\n if (hasOwnProp(obj, k)) {\n return false;\n }\n }\n return true;\n }\n}\n\nfunction isUndefined(input) {\n return input === void 0;\n}\n\nfunction isNumber(input) {\n return (\n typeof input === 'number' ||\n Object.prototype.toString.call(input) === '[object Number]'\n );\n}\n\nfunction isDate(input) {\n return (\n input instanceof Date ||\n Object.prototype.toString.call(input) === '[object Date]'\n );\n}\n\nfunction map(arr, fn) {\n var res = [],\n i,\n arrLen = arr.length;\n for (i = 0; i < arrLen; ++i) {\n res.push(fn(arr[i], i));\n }\n return res;\n}\n\nfunction extend(a, b) {\n for (var i in b) {\n if (hasOwnProp(b, i)) {\n a[i] = b[i];\n }\n }\n\n if (hasOwnProp(b, 'toString')) {\n a.toString = b.toString;\n }\n\n if (hasOwnProp(b, 'valueOf')) {\n a.valueOf = b.valueOf;\n }\n\n return a;\n}\n\nfunction createUTC(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, true).utc();\n}\n\nfunction defaultParsingFlags() {\n // We need to deep clone this object.\n return {\n empty: false,\n unusedTokens: [],\n unusedInput: [],\n overflow: -2,\n charsLeftOver: 0,\n nullInput: false,\n invalidEra: null,\n invalidMonth: null,\n invalidFormat: false,\n userInvalidated: false,\n iso: false,\n parsedDateParts: [],\n era: null,\n meridiem: null,\n rfc2822: false,\n weekdayMismatch: false,\n };\n}\n\nfunction getParsingFlags(m) {\n if (m._pf == null) {\n m._pf = defaultParsingFlags();\n }\n return m._pf;\n}\n\nvar some;\nif (Array.prototype.some) {\n some = Array.prototype.some;\n} else {\n some = function (fun) {\n var t = Object(this),\n len = t.length >>> 0,\n i;\n\n for (i = 0; i < len; i++) {\n if (i in t && fun.call(this, t[i], i, t)) {\n return true;\n }\n }\n\n return false;\n };\n}\n\nfunction isValid(m) {\n var flags = null,\n parsedParts = false,\n isNowValid = m._d && !isNaN(m._d.getTime());\n if (isNowValid) {\n flags = getParsingFlags(m);\n parsedParts = some.call(flags.parsedDateParts, function (i) {\n return i != null;\n });\n isNowValid =\n flags.overflow < 0 &&\n !flags.empty &&\n !flags.invalidEra &&\n !flags.invalidMonth &&\n !flags.invalidWeekday &&\n !flags.weekdayMismatch &&\n !flags.nullInput &&\n !flags.invalidFormat &&\n !flags.userInvalidated &&\n (!flags.meridiem || (flags.meridiem && parsedParts));\n if (m._strict) {\n isNowValid =\n isNowValid &&\n flags.charsLeftOver === 0 &&\n flags.unusedTokens.length === 0 &&\n flags.bigHour === undefined;\n }\n }\n if (Object.isFrozen == null || !Object.isFrozen(m)) {\n m._isValid = isNowValid;\n } else {\n return isNowValid;\n }\n return m._isValid;\n}\n\nfunction createInvalid(flags) {\n var m = createUTC(NaN);\n if (flags != null) {\n extend(getParsingFlags(m), flags);\n } else {\n getParsingFlags(m).userInvalidated = true;\n }\n\n return m;\n}\n\n// Plugins that add properties should also add the key here (null value),\n// so we can properly clone ourselves.\nvar momentProperties = (hooks.momentProperties = []),\n updateInProgress = false;\n\nfunction copyConfig(to, from) {\n var i,\n prop,\n val,\n momentPropertiesLen = momentProperties.length;\n\n if (!isUndefined(from._isAMomentObject)) {\n to._isAMomentObject = from._isAMomentObject;\n }\n if (!isUndefined(from._i)) {\n to._i = from._i;\n }\n if (!isUndefined(from._f)) {\n to._f = from._f;\n }\n if (!isUndefined(from._l)) {\n to._l = from._l;\n }\n if (!isUndefined(from._strict)) {\n to._strict = from._strict;\n }\n if (!isUndefined(from._tzm)) {\n to._tzm = from._tzm;\n }\n if (!isUndefined(from._isUTC)) {\n to._isUTC = from._isUTC;\n }\n if (!isUndefined(from._offset)) {\n to._offset = from._offset;\n }\n if (!isUndefined(from._pf)) {\n to._pf = getParsingFlags(from);\n }\n if (!isUndefined(from._locale)) {\n to._locale = from._locale;\n }\n\n if (momentPropertiesLen > 0) {\n for (i = 0; i < momentPropertiesLen; i++) {\n prop = momentProperties[i];\n val = from[prop];\n if (!isUndefined(val)) {\n to[prop] = val;\n }\n }\n }\n\n return to;\n}\n\n// Moment prototype object\nfunction Moment(config) {\n copyConfig(this, config);\n this._d = new Date(config._d != null ? config._d.getTime() : NaN);\n if (!this.isValid()) {\n this._d = new Date(NaN);\n }\n // Prevent infinite loop in case updateOffset creates new moment\n // objects.\n if (updateInProgress === false) {\n updateInProgress = true;\n hooks.updateOffset(this);\n updateInProgress = false;\n }\n}\n\nfunction isMoment(obj) {\n return (\n obj instanceof Moment || (obj != null && obj._isAMomentObject != null)\n );\n}\n\nfunction warn(msg) {\n if (\n hooks.suppressDeprecationWarnings === false &&\n typeof console !== 'undefined' &&\n console.warn\n ) {\n console.warn('Deprecation warning: ' + msg);\n }\n}\n\nfunction deprecate(msg, fn) {\n var firstTime = true;\n\n return extend(function () {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(null, msg);\n }\n if (firstTime) {\n var args = [],\n arg,\n i,\n key,\n argLen = arguments.length;\n for (i = 0; i < argLen; i++) {\n arg = '';\n if (typeof arguments[i] === 'object') {\n arg += '\\n[' + i + '] ';\n for (key in arguments[0]) {\n if (hasOwnProp(arguments[0], key)) {\n arg += key + ': ' + arguments[0][key] + ', ';\n }\n }\n arg = arg.slice(0, -2); // Remove trailing comma and space\n } else {\n arg = arguments[i];\n }\n args.push(arg);\n }\n warn(\n msg +\n '\\nArguments: ' +\n Array.prototype.slice.call(args).join('') +\n '\\n' +\n new Error().stack\n );\n firstTime = false;\n }\n return fn.apply(this, arguments);\n }, fn);\n}\n\nvar deprecations = {};\n\nfunction deprecateSimple(name, msg) {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(name, msg);\n }\n if (!deprecations[name]) {\n warn(msg);\n deprecations[name] = true;\n }\n}\n\nhooks.suppressDeprecationWarnings = false;\nhooks.deprecationHandler = null;\n\nfunction isFunction(input) {\n return (\n (typeof Function !== 'undefined' && input instanceof Function) ||\n Object.prototype.toString.call(input) === '[object Function]'\n );\n}\n\nfunction set(config) {\n var prop, i;\n for (i in config) {\n if (hasOwnProp(config, i)) {\n prop = config[i];\n if (isFunction(prop)) {\n this[i] = prop;\n } else {\n this['_' + i] = prop;\n }\n }\n }\n this._config = config;\n // Lenient ordinal parsing accepts just a number in addition to\n // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n this._dayOfMonthOrdinalParseLenient = new RegExp(\n (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +\n '|' +\n /\\d{1,2}/.source\n );\n}\n\nfunction mergeConfigs(parentConfig, childConfig) {\n var res = extend({}, parentConfig),\n prop;\n for (prop in childConfig) {\n if (hasOwnProp(childConfig, prop)) {\n if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {\n res[prop] = {};\n extend(res[prop], parentConfig[prop]);\n extend(res[prop], childConfig[prop]);\n } else if (childConfig[prop] != null) {\n res[prop] = childConfig[prop];\n } else {\n delete res[prop];\n }\n }\n }\n for (prop in parentConfig) {\n if (\n hasOwnProp(parentConfig, prop) &&\n !hasOwnProp(childConfig, prop) &&\n isObject(parentConfig[prop])\n ) {\n // make sure changes to properties don't modify parent config\n res[prop] = extend({}, res[prop]);\n }\n }\n return res;\n}\n\nfunction Locale(config) {\n if (config != null) {\n this.set(config);\n }\n}\n\nvar keys;\n\nif (Object.keys) {\n keys = Object.keys;\n} else {\n keys = function (obj) {\n var i,\n res = [];\n for (i in obj) {\n if (hasOwnProp(obj, i)) {\n res.push(i);\n }\n }\n return res;\n };\n}\n\nvar defaultCalendar = {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n};\n\nfunction calendar(key, mom, now) {\n var output = this._calendar[key] || this._calendar['sameElse'];\n return isFunction(output) ? output.call(mom, now) : output;\n}\n\nfunction zeroFill(number, targetLength, forceSign) {\n var absNumber = '' + Math.abs(number),\n zerosToFill = targetLength - absNumber.length,\n sign = number >= 0;\n return (\n (sign ? (forceSign ? '+' : '') : '-') +\n Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +\n absNumber\n );\n}\n\nvar formattingTokens =\n /(\\[[^\\[]*\\])|(\\\\)?([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,\n localFormattingTokens = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,\n formatFunctions = {},\n formatTokenFunctions = {};\n\n// token: 'M'\n// padded: ['MM', 2]\n// ordinal: 'Mo'\n// callback: function () { this.month() + 1 }\nfunction addFormatToken(token, padded, ordinal, callback) {\n var func = callback;\n if (typeof callback === 'string') {\n func = function () {\n return this[callback]();\n };\n }\n if (token) {\n formatTokenFunctions[token] = func;\n }\n if (padded) {\n formatTokenFunctions[padded[0]] = function () {\n return zeroFill(func.apply(this, arguments), padded[1], padded[2]);\n };\n }\n if (ordinal) {\n formatTokenFunctions[ordinal] = function () {\n return this.localeData().ordinal(\n func.apply(this, arguments),\n token\n );\n };\n }\n}\n\nfunction removeFormattingTokens(input) {\n if (input.match(/\\[[\\s\\S]/)) {\n return input.replace(/^\\[|\\]$/g, '');\n }\n return input.replace(/\\\\/g, '');\n}\n\nfunction makeFormatFunction(format) {\n var array = format.match(formattingTokens),\n i,\n length;\n\n for (i = 0, length = array.length; i < length; i++) {\n if (formatTokenFunctions[array[i]]) {\n array[i] = formatTokenFunctions[array[i]];\n } else {\n array[i] = removeFormattingTokens(array[i]);\n }\n }\n\n return function (mom) {\n var output = '',\n i;\n for (i = 0; i < length; i++) {\n output += isFunction(array[i])\n ? array[i].call(mom, format)\n : array[i];\n }\n return output;\n };\n}\n\n// format date using native date object\nfunction formatMoment(m, format) {\n if (!m.isValid()) {\n return m.localeData().invalidDate();\n }\n\n format = expandFormat(format, m.localeData());\n formatFunctions[format] =\n formatFunctions[format] || makeFormatFunction(format);\n\n return formatFunctions[format](m);\n}\n\nfunction expandFormat(format, locale) {\n var i = 5;\n\n function replaceLongDateFormatTokens(input) {\n return locale.longDateFormat(input) || input;\n }\n\n localFormattingTokens.lastIndex = 0;\n while (i >= 0 && localFormattingTokens.test(format)) {\n format = format.replace(\n localFormattingTokens,\n replaceLongDateFormatTokens\n );\n localFormattingTokens.lastIndex = 0;\n i -= 1;\n }\n\n return format;\n}\n\nvar defaultLongDateFormat = {\n LTS: 'h:mm:ss A',\n LT: 'h:mm A',\n L: 'MM/DD/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY h:mm A',\n LLLL: 'dddd, MMMM D, YYYY h:mm A',\n};\n\nfunction longDateFormat(key) {\n var format = this._longDateFormat[key],\n formatUpper = this._longDateFormat[key.toUpperCase()];\n\n if (format || !formatUpper) {\n return format;\n }\n\n this._longDateFormat[key] = formatUpper\n .match(formattingTokens)\n .map(function (tok) {\n if (\n tok === 'MMMM' ||\n tok === 'MM' ||\n tok === 'DD' ||\n tok === 'dddd'\n ) {\n return tok.slice(1);\n }\n return tok;\n })\n .join('');\n\n return this._longDateFormat[key];\n}\n\nvar defaultInvalidDate = 'Invalid date';\n\nfunction invalidDate() {\n return this._invalidDate;\n}\n\nvar defaultOrdinal = '%d',\n defaultDayOfMonthOrdinalParse = /\\d{1,2}/;\n\nfunction ordinal(number) {\n return this._ordinal.replace('%d', number);\n}\n\nvar defaultRelativeTime = {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n w: 'a week',\n ww: '%d weeks',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n};\n\nfunction relativeTime(number, withoutSuffix, string, isFuture) {\n var output = this._relativeTime[string];\n return isFunction(output)\n ? output(number, withoutSuffix, string, isFuture)\n : output.replace(/%d/i, number);\n}\n\nfunction pastFuture(diff, output) {\n var format = this._relativeTime[diff > 0 ? 'future' : 'past'];\n return isFunction(format) ? format(output) : format.replace(/%s/i, output);\n}\n\nvar aliases = {\n D: 'date',\n dates: 'date',\n date: 'date',\n d: 'day',\n days: 'day',\n day: 'day',\n e: 'weekday',\n weekdays: 'weekday',\n weekday: 'weekday',\n E: 'isoWeekday',\n isoweekdays: 'isoWeekday',\n isoweekday: 'isoWeekday',\n DDD: 'dayOfYear',\n dayofyears: 'dayOfYear',\n dayofyear: 'dayOfYear',\n h: 'hour',\n hours: 'hour',\n hour: 'hour',\n ms: 'millisecond',\n milliseconds: 'millisecond',\n millisecond: 'millisecond',\n m: 'minute',\n minutes: 'minute',\n minute: 'minute',\n M: 'month',\n months: 'month',\n month: 'month',\n Q: 'quarter',\n quarters: 'quarter',\n quarter: 'quarter',\n s: 'second',\n seconds: 'second',\n second: 'second',\n gg: 'weekYear',\n weekyears: 'weekYear',\n weekyear: 'weekYear',\n GG: 'isoWeekYear',\n isoweekyears: 'isoWeekYear',\n isoweekyear: 'isoWeekYear',\n w: 'week',\n weeks: 'week',\n week: 'week',\n W: 'isoWeek',\n isoweeks: 'isoWeek',\n isoweek: 'isoWeek',\n y: 'year',\n years: 'year',\n year: 'year',\n};\n\nfunction normalizeUnits(units) {\n return typeof units === 'string'\n ? aliases[units] || aliases[units.toLowerCase()]\n : undefined;\n}\n\nfunction normalizeObjectUnits(inputObject) {\n var normalizedInput = {},\n normalizedProp,\n prop;\n\n for (prop in inputObject) {\n if (hasOwnProp(inputObject, prop)) {\n normalizedProp = normalizeUnits(prop);\n if (normalizedProp) {\n normalizedInput[normalizedProp] = inputObject[prop];\n }\n }\n }\n\n return normalizedInput;\n}\n\nvar priorities = {\n date: 9,\n day: 11,\n weekday: 11,\n isoWeekday: 11,\n dayOfYear: 4,\n hour: 13,\n millisecond: 16,\n minute: 14,\n month: 8,\n quarter: 7,\n second: 15,\n weekYear: 1,\n isoWeekYear: 1,\n week: 5,\n isoWeek: 5,\n year: 1,\n};\n\nfunction getPrioritizedUnits(unitsObj) {\n var units = [],\n u;\n for (u in unitsObj) {\n if (hasOwnProp(unitsObj, u)) {\n units.push({ unit: u, priority: priorities[u] });\n }\n }\n units.sort(function (a, b) {\n return a.priority - b.priority;\n });\n return units;\n}\n\nvar match1 = /\\d/, // 0 - 9\n match2 = /\\d\\d/, // 00 - 99\n match3 = /\\d{3}/, // 000 - 999\n match4 = /\\d{4}/, // 0000 - 9999\n match6 = /[+-]?\\d{6}/, // -999999 - 999999\n match1to2 = /\\d\\d?/, // 0 - 99\n match3to4 = /\\d\\d\\d\\d?/, // 999 - 9999\n match5to6 = /\\d\\d\\d\\d\\d\\d?/, // 99999 - 999999\n match1to3 = /\\d{1,3}/, // 0 - 999\n match1to4 = /\\d{1,4}/, // 0 - 9999\n match1to6 = /[+-]?\\d{1,6}/, // -999999 - 999999\n matchUnsigned = /\\d+/, // 0 - inf\n matchSigned = /[+-]?\\d+/, // -inf - inf\n matchOffset = /Z|[+-]\\d\\d:?\\d\\d/gi, // +00:00 -00:00 +0000 -0000 or Z\n matchShortOffset = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z\n matchTimestamp = /[+-]?\\d+(\\.\\d{1,3})?/, // 123456789 123456789.123\n // any word (or two) characters or numbers including two/three word month in arabic.\n // includes scottish gaelic two word and hyphenated months\n matchWord =\n /[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,\n match1to2NoLeadingZero = /^[1-9]\\d?/, // 1-99\n match1to2HasZero = /^([1-9]\\d|\\d)/, // 0-99\n regexes;\n\nregexes = {};\n\nfunction addRegexToken(token, regex, strictRegex) {\n regexes[token] = isFunction(regex)\n ? regex\n : function (isStrict, localeData) {\n return isStrict && strictRegex ? strictRegex : regex;\n };\n}\n\nfunction getParseRegexForToken(token, config) {\n if (!hasOwnProp(regexes, token)) {\n return new RegExp(unescapeFormat(token));\n }\n\n return regexes[token](config._strict, config._locale);\n}\n\n// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\nfunction unescapeFormat(s) {\n return regexEscape(\n s\n .replace('\\\\', '')\n .replace(\n /\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,\n function (matched, p1, p2, p3, p4) {\n return p1 || p2 || p3 || p4;\n }\n )\n );\n}\n\nfunction regexEscape(s) {\n return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n}\n\nfunction absFloor(number) {\n if (number < 0) {\n // -0 -> 0\n return Math.ceil(number) || 0;\n } else {\n return Math.floor(number);\n }\n}\n\nfunction toInt(argumentForCoercion) {\n var coercedNumber = +argumentForCoercion,\n value = 0;\n\n if (coercedNumber !== 0 && isFinite(coercedNumber)) {\n value = absFloor(coercedNumber);\n }\n\n return value;\n}\n\nvar tokens = {};\n\nfunction addParseToken(token, callback) {\n var i,\n func = callback,\n tokenLen;\n if (typeof token === 'string') {\n token = [token];\n }\n if (isNumber(callback)) {\n func = function (input, array) {\n array[callback] = toInt(input);\n };\n }\n tokenLen = token.length;\n for (i = 0; i < tokenLen; i++) {\n tokens[token[i]] = func;\n }\n}\n\nfunction addWeekParseToken(token, callback) {\n addParseToken(token, function (input, array, config, token) {\n config._w = config._w || {};\n callback(input, config._w, config, token);\n });\n}\n\nfunction addTimeToArrayFromToken(token, input, config) {\n if (input != null && hasOwnProp(tokens, token)) {\n tokens[token](input, config._a, config, token);\n }\n}\n\nfunction isLeapYear(year) {\n return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\n}\n\nvar YEAR = 0,\n MONTH = 1,\n DATE = 2,\n HOUR = 3,\n MINUTE = 4,\n SECOND = 5,\n MILLISECOND = 6,\n WEEK = 7,\n WEEKDAY = 8;\n\n// FORMATTING\n\naddFormatToken('Y', 0, 0, function () {\n var y = this.year();\n return y <= 9999 ? zeroFill(y, 4) : '+' + y;\n});\n\naddFormatToken(0, ['YY', 2], 0, function () {\n return this.year() % 100;\n});\n\naddFormatToken(0, ['YYYY', 4], 0, 'year');\naddFormatToken(0, ['YYYYY', 5], 0, 'year');\naddFormatToken(0, ['YYYYYY', 6, true], 0, 'year');\n\n// PARSING\n\naddRegexToken('Y', matchSigned);\naddRegexToken('YY', match1to2, match2);\naddRegexToken('YYYY', match1to4, match4);\naddRegexToken('YYYYY', match1to6, match6);\naddRegexToken('YYYYYY', match1to6, match6);\n\naddParseToken(['YYYYY', 'YYYYYY'], YEAR);\naddParseToken('YYYY', function (input, array) {\n array[YEAR] =\n input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);\n});\naddParseToken('YY', function (input, array) {\n array[YEAR] = hooks.parseTwoDigitYear(input);\n});\naddParseToken('Y', function (input, array) {\n array[YEAR] = parseInt(input, 10);\n});\n\n// HELPERS\n\nfunction daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n}\n\n// HOOKS\n\nhooks.parseTwoDigitYear = function (input) {\n return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);\n};\n\n// MOMENTS\n\nvar getSetYear = makeGetSet('FullYear', true);\n\nfunction getIsLeapYear() {\n return isLeapYear(this.year());\n}\n\nfunction makeGetSet(unit, keepTime) {\n return function (value) {\n if (value != null) {\n set$1(this, unit, value);\n hooks.updateOffset(this, keepTime);\n return this;\n } else {\n return get(this, unit);\n }\n };\n}\n\nfunction get(mom, unit) {\n if (!mom.isValid()) {\n return NaN;\n }\n\n var d = mom._d,\n isUTC = mom._isUTC;\n\n switch (unit) {\n case 'Milliseconds':\n return isUTC ? d.getUTCMilliseconds() : d.getMilliseconds();\n case 'Seconds':\n return isUTC ? d.getUTCSeconds() : d.getSeconds();\n case 'Minutes':\n return isUTC ? d.getUTCMinutes() : d.getMinutes();\n case 'Hours':\n return isUTC ? d.getUTCHours() : d.getHours();\n case 'Date':\n return isUTC ? d.getUTCDate() : d.getDate();\n case 'Day':\n return isUTC ? d.getUTCDay() : d.getDay();\n case 'Month':\n return isUTC ? d.getUTCMonth() : d.getMonth();\n case 'FullYear':\n return isUTC ? d.getUTCFullYear() : d.getFullYear();\n default:\n return NaN; // Just in case\n }\n}\n\nfunction set$1(mom, unit, value) {\n var d, isUTC, year, month, date;\n\n if (!mom.isValid() || isNaN(value)) {\n return;\n }\n\n d = mom._d;\n isUTC = mom._isUTC;\n\n switch (unit) {\n case 'Milliseconds':\n return void (isUTC\n ? d.setUTCMilliseconds(value)\n : d.setMilliseconds(value));\n case 'Seconds':\n return void (isUTC ? d.setUTCSeconds(value) : d.setSeconds(value));\n case 'Minutes':\n return void (isUTC ? d.setUTCMinutes(value) : d.setMinutes(value));\n case 'Hours':\n return void (isUTC ? d.setUTCHours(value) : d.setHours(value));\n case 'Date':\n return void (isUTC ? d.setUTCDate(value) : d.setDate(value));\n // case 'Day': // Not real\n // return void (isUTC ? d.setUTCDay(value) : d.setDay(value));\n // case 'Month': // Not used because we need to pass two variables\n // return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));\n case 'FullYear':\n break; // See below ...\n default:\n return; // Just in case\n }\n\n year = value;\n month = mom.month();\n date = mom.date();\n date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date;\n void (isUTC\n ? d.setUTCFullYear(year, month, date)\n : d.setFullYear(year, month, date));\n}\n\n// MOMENTS\n\nfunction stringGet(units) {\n units = normalizeUnits(units);\n if (isFunction(this[units])) {\n return this[units]();\n }\n return this;\n}\n\nfunction stringSet(units, value) {\n if (typeof units === 'object') {\n units = normalizeObjectUnits(units);\n var prioritized = getPrioritizedUnits(units),\n i,\n prioritizedLen = prioritized.length;\n for (i = 0; i < prioritizedLen; i++) {\n this[prioritized[i].unit](units[prioritized[i].unit]);\n }\n } else {\n units = normalizeUnits(units);\n if (isFunction(this[units])) {\n return this[units](value);\n }\n }\n return this;\n}\n\nfunction mod(n, x) {\n return ((n % x) + x) % x;\n}\n\nvar indexOf;\n\nif (Array.prototype.indexOf) {\n indexOf = Array.prototype.indexOf;\n} else {\n indexOf = function (o) {\n // I know\n var i;\n for (i = 0; i < this.length; ++i) {\n if (this[i] === o) {\n return i;\n }\n }\n return -1;\n };\n}\n\nfunction daysInMonth(year, month) {\n if (isNaN(year) || isNaN(month)) {\n return NaN;\n }\n var modMonth = mod(month, 12);\n year += (month - modMonth) / 12;\n return modMonth === 1\n ? isLeapYear(year)\n ? 29\n : 28\n : 31 - ((modMonth % 7) % 2);\n}\n\n// FORMATTING\n\naddFormatToken('M', ['MM', 2], 'Mo', function () {\n return this.month() + 1;\n});\n\naddFormatToken('MMM', 0, 0, function (format) {\n return this.localeData().monthsShort(this, format);\n});\n\naddFormatToken('MMMM', 0, 0, function (format) {\n return this.localeData().months(this, format);\n});\n\n// PARSING\n\naddRegexToken('M', match1to2, match1to2NoLeadingZero);\naddRegexToken('MM', match1to2, match2);\naddRegexToken('MMM', function (isStrict, locale) {\n return locale.monthsShortRegex(isStrict);\n});\naddRegexToken('MMMM', function (isStrict, locale) {\n return locale.monthsRegex(isStrict);\n});\n\naddParseToken(['M', 'MM'], function (input, array) {\n array[MONTH] = toInt(input) - 1;\n});\n\naddParseToken(['MMM', 'MMMM'], function (input, array, config, token) {\n var month = config._locale.monthsParse(input, token, config._strict);\n // if we didn't find a month name, mark the date as invalid.\n if (month != null) {\n array[MONTH] = month;\n } else {\n getParsingFlags(config).invalidMonth = input;\n }\n});\n\n// LOCALES\n\nvar defaultLocaleMonths =\n 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n defaultLocaleMonthsShort =\n 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n MONTHS_IN_FORMAT = /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/,\n defaultMonthsShortRegex = matchWord,\n defaultMonthsRegex = matchWord;\n\nfunction localeMonths(m, format) {\n if (!m) {\n return isArray(this._months)\n ? this._months\n : this._months['standalone'];\n }\n return isArray(this._months)\n ? this._months[m.month()]\n : this._months[\n (this._months.isFormat || MONTHS_IN_FORMAT).test(format)\n ? 'format'\n : 'standalone'\n ][m.month()];\n}\n\nfunction localeMonthsShort(m, format) {\n if (!m) {\n return isArray(this._monthsShort)\n ? this._monthsShort\n : this._monthsShort['standalone'];\n }\n return isArray(this._monthsShort)\n ? this._monthsShort[m.month()]\n : this._monthsShort[\n MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'\n ][m.month()];\n}\n\nfunction handleStrictParse(monthName, format, strict) {\n var i,\n ii,\n mom,\n llc = monthName.toLocaleLowerCase();\n if (!this._monthsParse) {\n // this is not used\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n for (i = 0; i < 12; ++i) {\n mom = createUTC([2000, i]);\n this._shortMonthsParse[i] = this.monthsShort(\n mom,\n ''\n ).toLocaleLowerCase();\n this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n}\n\nfunction localeMonthsParse(monthName, format, strict) {\n var i, mom, regex;\n\n if (this._monthsParseExact) {\n return handleStrictParse.call(this, monthName, format, strict);\n }\n\n if (!this._monthsParse) {\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n }\n\n // TODO: add sorting\n // Sorting makes sure if one month (or abbr) is a prefix of another\n // see sorting in computeMonthsParse\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n if (strict && !this._longMonthsParse[i]) {\n this._longMonthsParse[i] = new RegExp(\n '^' + this.months(mom, '').replace('.', '') + '$',\n 'i'\n );\n this._shortMonthsParse[i] = new RegExp(\n '^' + this.monthsShort(mom, '').replace('.', '') + '$',\n 'i'\n );\n }\n if (!strict && !this._monthsParse[i]) {\n regex =\n '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');\n this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');\n }\n // test the regex\n if (\n strict &&\n format === 'MMMM' &&\n this._longMonthsParse[i].test(monthName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'MMM' &&\n this._shortMonthsParse[i].test(monthName)\n ) {\n return i;\n } else if (!strict && this._monthsParse[i].test(monthName)) {\n return i;\n }\n }\n}\n\n// MOMENTS\n\nfunction setMonth(mom, value) {\n if (!mom.isValid()) {\n // No op\n return mom;\n }\n\n if (typeof value === 'string') {\n if (/^\\d+$/.test(value)) {\n value = toInt(value);\n } else {\n value = mom.localeData().monthsParse(value);\n // TODO: Another silent failure?\n if (!isNumber(value)) {\n return mom;\n }\n }\n }\n\n var month = value,\n date = mom.date();\n\n date = date < 29 ? date : Math.min(date, daysInMonth(mom.year(), month));\n void (mom._isUTC\n ? mom._d.setUTCMonth(month, date)\n : mom._d.setMonth(month, date));\n return mom;\n}\n\nfunction getSetMonth(value) {\n if (value != null) {\n setMonth(this, value);\n hooks.updateOffset(this, true);\n return this;\n } else {\n return get(this, 'Month');\n }\n}\n\nfunction getDaysInMonth() {\n return daysInMonth(this.year(), this.month());\n}\n\nfunction monthsShortRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n if (isStrict) {\n return this._monthsShortStrictRegex;\n } else {\n return this._monthsShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsShortRegex')) {\n this._monthsShortRegex = defaultMonthsShortRegex;\n }\n return this._monthsShortStrictRegex && isStrict\n ? this._monthsShortStrictRegex\n : this._monthsShortRegex;\n }\n}\n\nfunction monthsRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n if (isStrict) {\n return this._monthsStrictRegex;\n } else {\n return this._monthsRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsRegex')) {\n this._monthsRegex = defaultMonthsRegex;\n }\n return this._monthsStrictRegex && isStrict\n ? this._monthsStrictRegex\n : this._monthsRegex;\n }\n}\n\nfunction computeMonthsParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var shortPieces = [],\n longPieces = [],\n mixedPieces = [],\n i,\n mom,\n shortP,\n longP;\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n shortP = regexEscape(this.monthsShort(mom, ''));\n longP = regexEscape(this.months(mom, ''));\n shortPieces.push(shortP);\n longPieces.push(longP);\n mixedPieces.push(longP);\n mixedPieces.push(shortP);\n }\n // Sorting makes sure if one month (or abbr) is a prefix of another it\n // will match the longer piece.\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n\n this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._monthsShortRegex = this._monthsRegex;\n this._monthsStrictRegex = new RegExp(\n '^(' + longPieces.join('|') + ')',\n 'i'\n );\n this._monthsShortStrictRegex = new RegExp(\n '^(' + shortPieces.join('|') + ')',\n 'i'\n );\n}\n\nfunction createDate(y, m, d, h, M, s, ms) {\n // can't just apply() to create a date:\n // https://stackoverflow.com/q/181348\n var date;\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n date = new Date(y + 400, m, d, h, M, s, ms);\n if (isFinite(date.getFullYear())) {\n date.setFullYear(y);\n }\n } else {\n date = new Date(y, m, d, h, M, s, ms);\n }\n\n return date;\n}\n\nfunction createUTCDate(y) {\n var date, args;\n // the Date.UTC function remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n args = Array.prototype.slice.call(arguments);\n // preserve leap years using a full 400 year cycle, then reset\n args[0] = y + 400;\n date = new Date(Date.UTC.apply(null, args));\n if (isFinite(date.getUTCFullYear())) {\n date.setUTCFullYear(y);\n }\n } else {\n date = new Date(Date.UTC.apply(null, arguments));\n }\n\n return date;\n}\n\n// start-of-first-week - start-of-year\nfunction firstWeekOffset(year, dow, doy) {\n var // first-week day -- which january is always in the first week (4 for iso, 1 for other)\n fwd = 7 + dow - doy,\n // first-week day local weekday -- which local weekday is fwd\n fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;\n\n return -fwdlw + fwd - 1;\n}\n\n// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday\nfunction dayOfYearFromWeeks(year, week, weekday, dow, doy) {\n var localWeekday = (7 + weekday - dow) % 7,\n weekOffset = firstWeekOffset(year, dow, doy),\n dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,\n resYear,\n resDayOfYear;\n\n if (dayOfYear <= 0) {\n resYear = year - 1;\n resDayOfYear = daysInYear(resYear) + dayOfYear;\n } else if (dayOfYear > daysInYear(year)) {\n resYear = year + 1;\n resDayOfYear = dayOfYear - daysInYear(year);\n } else {\n resYear = year;\n resDayOfYear = dayOfYear;\n }\n\n return {\n year: resYear,\n dayOfYear: resDayOfYear,\n };\n}\n\nfunction weekOfYear(mom, dow, doy) {\n var weekOffset = firstWeekOffset(mom.year(), dow, doy),\n week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,\n resWeek,\n resYear;\n\n if (week < 1) {\n resYear = mom.year() - 1;\n resWeek = week + weeksInYear(resYear, dow, doy);\n } else if (week > weeksInYear(mom.year(), dow, doy)) {\n resWeek = week - weeksInYear(mom.year(), dow, doy);\n resYear = mom.year() + 1;\n } else {\n resYear = mom.year();\n resWeek = week;\n }\n\n return {\n week: resWeek,\n year: resYear,\n };\n}\n\nfunction weeksInYear(year, dow, doy) {\n var weekOffset = firstWeekOffset(year, dow, doy),\n weekOffsetNext = firstWeekOffset(year + 1, dow, doy);\n return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;\n}\n\n// FORMATTING\n\naddFormatToken('w', ['ww', 2], 'wo', 'week');\naddFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');\n\n// PARSING\n\naddRegexToken('w', match1to2, match1to2NoLeadingZero);\naddRegexToken('ww', match1to2, match2);\naddRegexToken('W', match1to2, match1to2NoLeadingZero);\naddRegexToken('WW', match1to2, match2);\n\naddWeekParseToken(\n ['w', 'ww', 'W', 'WW'],\n function (input, week, config, token) {\n week[token.substr(0, 1)] = toInt(input);\n }\n);\n\n// HELPERS\n\n// LOCALES\n\nfunction localeWeek(mom) {\n return weekOfYear(mom, this._week.dow, this._week.doy).week;\n}\n\nvar defaultLocaleWeek = {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n};\n\nfunction localeFirstDayOfWeek() {\n return this._week.dow;\n}\n\nfunction localeFirstDayOfYear() {\n return this._week.doy;\n}\n\n// MOMENTS\n\nfunction getSetWeek(input) {\n var week = this.localeData().week(this);\n return input == null ? week : this.add((input - week) * 7, 'd');\n}\n\nfunction getSetISOWeek(input) {\n var week = weekOfYear(this, 1, 4).week;\n return input == null ? week : this.add((input - week) * 7, 'd');\n}\n\n// FORMATTING\n\naddFormatToken('d', 0, 'do', 'day');\n\naddFormatToken('dd', 0, 0, function (format) {\n return this.localeData().weekdaysMin(this, format);\n});\n\naddFormatToken('ddd', 0, 0, function (format) {\n return this.localeData().weekdaysShort(this, format);\n});\n\naddFormatToken('dddd', 0, 0, function (format) {\n return this.localeData().weekdays(this, format);\n});\n\naddFormatToken('e', 0, 0, 'weekday');\naddFormatToken('E', 0, 0, 'isoWeekday');\n\n// PARSING\n\naddRegexToken('d', match1to2);\naddRegexToken('e', match1to2);\naddRegexToken('E', match1to2);\naddRegexToken('dd', function (isStrict, locale) {\n return locale.weekdaysMinRegex(isStrict);\n});\naddRegexToken('ddd', function (isStrict, locale) {\n return locale.weekdaysShortRegex(isStrict);\n});\naddRegexToken('dddd', function (isStrict, locale) {\n return locale.weekdaysRegex(isStrict);\n});\n\naddWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {\n var weekday = config._locale.weekdaysParse(input, token, config._strict);\n // if we didn't get a weekday name, mark the date as invalid\n if (weekday != null) {\n week.d = weekday;\n } else {\n getParsingFlags(config).invalidWeekday = input;\n }\n});\n\naddWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {\n week[token] = toInt(input);\n});\n\n// HELPERS\n\nfunction parseWeekday(input, locale) {\n if (typeof input !== 'string') {\n return input;\n }\n\n if (!isNaN(input)) {\n return parseInt(input, 10);\n }\n\n input = locale.weekdaysParse(input);\n if (typeof input === 'number') {\n return input;\n }\n\n return null;\n}\n\nfunction parseIsoWeekday(input, locale) {\n if (typeof input === 'string') {\n return locale.weekdaysParse(input) % 7 || 7;\n }\n return isNaN(input) ? null : input;\n}\n\n// LOCALES\nfunction shiftWeekdays(ws, n) {\n return ws.slice(n, 7).concat(ws.slice(0, n));\n}\n\nvar defaultLocaleWeekdays =\n 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n defaultWeekdaysRegex = matchWord,\n defaultWeekdaysShortRegex = matchWord,\n defaultWeekdaysMinRegex = matchWord;\n\nfunction localeWeekdays(m, format) {\n var weekdays = isArray(this._weekdays)\n ? this._weekdays\n : this._weekdays[\n m && m !== true && this._weekdays.isFormat.test(format)\n ? 'format'\n : 'standalone'\n ];\n return m === true\n ? shiftWeekdays(weekdays, this._week.dow)\n : m\n ? weekdays[m.day()]\n : weekdays;\n}\n\nfunction localeWeekdaysShort(m) {\n return m === true\n ? shiftWeekdays(this._weekdaysShort, this._week.dow)\n : m\n ? this._weekdaysShort[m.day()]\n : this._weekdaysShort;\n}\n\nfunction localeWeekdaysMin(m) {\n return m === true\n ? shiftWeekdays(this._weekdaysMin, this._week.dow)\n : m\n ? this._weekdaysMin[m.day()]\n : this._weekdaysMin;\n}\n\nfunction handleStrictParse$1(weekdayName, format, strict) {\n var i,\n ii,\n mom,\n llc = weekdayName.toLocaleLowerCase();\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._minWeekdaysParse = [];\n\n for (i = 0; i < 7; ++i) {\n mom = createUTC([2000, 1]).day(i);\n this._minWeekdaysParse[i] = this.weekdaysMin(\n mom,\n ''\n ).toLocaleLowerCase();\n this._shortWeekdaysParse[i] = this.weekdaysShort(\n mom,\n ''\n ).toLocaleLowerCase();\n this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n}\n\nfunction localeWeekdaysParse(weekdayName, format, strict) {\n var i, mom, regex;\n\n if (this._weekdaysParseExact) {\n return handleStrictParse$1.call(this, weekdayName, format, strict);\n }\n\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._minWeekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._fullWeekdaysParse = [];\n }\n\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n\n mom = createUTC([2000, 1]).day(i);\n if (strict && !this._fullWeekdaysParse[i]) {\n this._fullWeekdaysParse[i] = new RegExp(\n '^' + this.weekdays(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n this._shortWeekdaysParse[i] = new RegExp(\n '^' + this.weekdaysShort(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n this._minWeekdaysParse[i] = new RegExp(\n '^' + this.weekdaysMin(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n }\n if (!this._weekdaysParse[i]) {\n regex =\n '^' +\n this.weekdays(mom, '') +\n '|^' +\n this.weekdaysShort(mom, '') +\n '|^' +\n this.weekdaysMin(mom, '');\n this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');\n }\n // test the regex\n if (\n strict &&\n format === 'dddd' &&\n this._fullWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'ddd' &&\n this._shortWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'dd' &&\n this._minWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {\n return i;\n }\n }\n}\n\n// MOMENTS\n\nfunction getSetDayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n\n var day = get(this, 'Day');\n if (input != null) {\n input = parseWeekday(input, this.localeData());\n return this.add(input - day, 'd');\n } else {\n return day;\n }\n}\n\nfunction getSetLocaleDayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;\n return input == null ? weekday : this.add(input - weekday, 'd');\n}\n\nfunction getSetISODayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n\n // behaves the same as moment#day except\n // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)\n // as a setter, sunday should belong to the previous week.\n\n if (input != null) {\n var weekday = parseIsoWeekday(input, this.localeData());\n return this.day(this.day() % 7 ? weekday : weekday - 7);\n } else {\n return this.day() || 7;\n }\n}\n\nfunction weekdaysRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysStrictRegex;\n } else {\n return this._weekdaysRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n this._weekdaysRegex = defaultWeekdaysRegex;\n }\n return this._weekdaysStrictRegex && isStrict\n ? this._weekdaysStrictRegex\n : this._weekdaysRegex;\n }\n}\n\nfunction weekdaysShortRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysShortStrictRegex;\n } else {\n return this._weekdaysShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysShortRegex')) {\n this._weekdaysShortRegex = defaultWeekdaysShortRegex;\n }\n return this._weekdaysShortStrictRegex && isStrict\n ? this._weekdaysShortStrictRegex\n : this._weekdaysShortRegex;\n }\n}\n\nfunction weekdaysMinRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysMinStrictRegex;\n } else {\n return this._weekdaysMinRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysMinRegex')) {\n this._weekdaysMinRegex = defaultWeekdaysMinRegex;\n }\n return this._weekdaysMinStrictRegex && isStrict\n ? this._weekdaysMinStrictRegex\n : this._weekdaysMinRegex;\n }\n}\n\nfunction computeWeekdaysParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var minPieces = [],\n shortPieces = [],\n longPieces = [],\n mixedPieces = [],\n i,\n mom,\n minp,\n shortp,\n longp;\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, 1]).day(i);\n minp = regexEscape(this.weekdaysMin(mom, ''));\n shortp = regexEscape(this.weekdaysShort(mom, ''));\n longp = regexEscape(this.weekdays(mom, ''));\n minPieces.push(minp);\n shortPieces.push(shortp);\n longPieces.push(longp);\n mixedPieces.push(minp);\n mixedPieces.push(shortp);\n mixedPieces.push(longp);\n }\n // Sorting makes sure if one weekday (or abbr) is a prefix of another it\n // will match the longer piece.\n minPieces.sort(cmpLenRev);\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n\n this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._weekdaysShortRegex = this._weekdaysRegex;\n this._weekdaysMinRegex = this._weekdaysRegex;\n\n this._weekdaysStrictRegex = new RegExp(\n '^(' + longPieces.join('|') + ')',\n 'i'\n );\n this._weekdaysShortStrictRegex = new RegExp(\n '^(' + shortPieces.join('|') + ')',\n 'i'\n );\n this._weekdaysMinStrictRegex = new RegExp(\n '^(' + minPieces.join('|') + ')',\n 'i'\n );\n}\n\n// FORMATTING\n\nfunction hFormat() {\n return this.hours() % 12 || 12;\n}\n\nfunction kFormat() {\n return this.hours() || 24;\n}\n\naddFormatToken('H', ['HH', 2], 0, 'hour');\naddFormatToken('h', ['hh', 2], 0, hFormat);\naddFormatToken('k', ['kk', 2], 0, kFormat);\n\naddFormatToken('hmm', 0, 0, function () {\n return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);\n});\n\naddFormatToken('hmmss', 0, 0, function () {\n return (\n '' +\n hFormat.apply(this) +\n zeroFill(this.minutes(), 2) +\n zeroFill(this.seconds(), 2)\n );\n});\n\naddFormatToken('Hmm', 0, 0, function () {\n return '' + this.hours() + zeroFill(this.minutes(), 2);\n});\n\naddFormatToken('Hmmss', 0, 0, function () {\n return (\n '' +\n this.hours() +\n zeroFill(this.minutes(), 2) +\n zeroFill(this.seconds(), 2)\n );\n});\n\nfunction meridiem(token, lowercase) {\n addFormatToken(token, 0, 0, function () {\n return this.localeData().meridiem(\n this.hours(),\n this.minutes(),\n lowercase\n );\n });\n}\n\nmeridiem('a', true);\nmeridiem('A', false);\n\n// PARSING\n\nfunction matchMeridiem(isStrict, locale) {\n return locale._meridiemParse;\n}\n\naddRegexToken('a', matchMeridiem);\naddRegexToken('A', matchMeridiem);\naddRegexToken('H', match1to2, match1to2HasZero);\naddRegexToken('h', match1to2, match1to2NoLeadingZero);\naddRegexToken('k', match1to2, match1to2NoLeadingZero);\naddRegexToken('HH', match1to2, match2);\naddRegexToken('hh', match1to2, match2);\naddRegexToken('kk', match1to2, match2);\n\naddRegexToken('hmm', match3to4);\naddRegexToken('hmmss', match5to6);\naddRegexToken('Hmm', match3to4);\naddRegexToken('Hmmss', match5to6);\n\naddParseToken(['H', 'HH'], HOUR);\naddParseToken(['k', 'kk'], function (input, array, config) {\n var kInput = toInt(input);\n array[HOUR] = kInput === 24 ? 0 : kInput;\n});\naddParseToken(['a', 'A'], function (input, array, config) {\n config._isPm = config._locale.isPM(input);\n config._meridiem = input;\n});\naddParseToken(['h', 'hh'], function (input, array, config) {\n array[HOUR] = toInt(input);\n getParsingFlags(config).bigHour = true;\n});\naddParseToken('hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n getParsingFlags(config).bigHour = true;\n});\naddParseToken('hmmss', function (input, array, config) {\n var pos1 = input.length - 4,\n pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n getParsingFlags(config).bigHour = true;\n});\naddParseToken('Hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n});\naddParseToken('Hmmss', function (input, array, config) {\n var pos1 = input.length - 4,\n pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n});\n\n// LOCALES\n\nfunction localeIsPM(input) {\n // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays\n // Using charAt should be more compatible.\n return (input + '').toLowerCase().charAt(0) === 'p';\n}\n\nvar defaultLocaleMeridiemParse = /[ap]\\.?m?\\.?/i,\n // Setting the hour should keep the time, because the user explicitly\n // specified which hour they want. So trying to maintain the same hour (in\n // a new timezone) makes sense. Adding/subtracting hours does not follow\n // this rule.\n getSetHour = makeGetSet('Hours', true);\n\nfunction localeMeridiem(hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'pm' : 'PM';\n } else {\n return isLower ? 'am' : 'AM';\n }\n}\n\nvar baseConfig = {\n calendar: defaultCalendar,\n longDateFormat: defaultLongDateFormat,\n invalidDate: defaultInvalidDate,\n ordinal: defaultOrdinal,\n dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,\n relativeTime: defaultRelativeTime,\n\n months: defaultLocaleMonths,\n monthsShort: defaultLocaleMonthsShort,\n\n week: defaultLocaleWeek,\n\n weekdays: defaultLocaleWeekdays,\n weekdaysMin: defaultLocaleWeekdaysMin,\n weekdaysShort: defaultLocaleWeekdaysShort,\n\n meridiemParse: defaultLocaleMeridiemParse,\n};\n\n// internal storage for locale config files\nvar locales = {},\n localeFamilies = {},\n globalLocale;\n\nfunction commonPrefix(arr1, arr2) {\n var i,\n minl = Math.min(arr1.length, arr2.length);\n for (i = 0; i < minl; i += 1) {\n if (arr1[i] !== arr2[i]) {\n return i;\n }\n }\n return minl;\n}\n\nfunction normalizeLocale(key) {\n return key ? key.toLowerCase().replace('_', '-') : key;\n}\n\n// pick the locale from the array\n// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each\n// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root\nfunction chooseLocale(names) {\n var i = 0,\n j,\n next,\n locale,\n split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (\n next &&\n next.length >= j &&\n commonPrefix(split, next) >= j - 1\n ) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n}\n\nfunction isLocaleNameSane(name) {\n // Prevent names that look like filesystem paths, i.e contain '/' or '\\'\n // Ensure name is available and function returns boolean\n return !!(name && name.match('^[^/\\\\\\\\]*$'));\n}\n\nfunction loadLocale(name) {\n var oldLocale = null,\n aliasedRequire;\n // TODO: Find a better way to register and load all the locales in Node\n if (\n locales[name] === undefined &&\n typeof module !== 'undefined' &&\n module &&\n module.exports &&\n isLocaleNameSane(name)\n ) {\n try {\n oldLocale = globalLocale._abbr;\n aliasedRequire = require;\n aliasedRequire('./locale/' + name);\n getSetGlobalLocale(oldLocale);\n } catch (e) {\n // mark as not found to avoid repeating expensive file require call causing high CPU\n // when trying to find en-US, en_US, en-us for every format call\n locales[name] = null; // null means not found\n }\n }\n return locales[name];\n}\n\n// This function will load locale and then set the global locale. If\n// no arguments are passed in, it will simply return the current global\n// locale key.\nfunction getSetGlobalLocale(key, values) {\n var data;\n if (key) {\n if (isUndefined(values)) {\n data = getLocale(key);\n } else {\n data = defineLocale(key, values);\n }\n\n if (data) {\n // moment.duration._locale = moment._locale = data;\n globalLocale = data;\n } else {\n if (typeof console !== 'undefined' && console.warn) {\n //warn user if arguments are passed but the locale could not be set\n console.warn(\n 'Locale ' + key + ' not found. Did you forget to load it?'\n );\n }\n }\n }\n\n return globalLocale._abbr;\n}\n\nfunction defineLocale(name, config) {\n if (config !== null) {\n var locale,\n parentConfig = baseConfig;\n config.abbr = name;\n if (locales[name] != null) {\n deprecateSimple(\n 'defineLocaleOverride',\n 'use moment.updateLocale(localeName, config) to change ' +\n 'an existing locale. moment.defineLocale(localeName, ' +\n 'config) should only be used for creating a new locale ' +\n 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'\n );\n parentConfig = locales[name]._config;\n } else if (config.parentLocale != null) {\n if (locales[config.parentLocale] != null) {\n parentConfig = locales[config.parentLocale]._config;\n } else {\n locale = loadLocale(config.parentLocale);\n if (locale != null) {\n parentConfig = locale._config;\n } else {\n if (!localeFamilies[config.parentLocale]) {\n localeFamilies[config.parentLocale] = [];\n }\n localeFamilies[config.parentLocale].push({\n name: name,\n config: config,\n });\n return null;\n }\n }\n }\n locales[name] = new Locale(mergeConfigs(parentConfig, config));\n\n if (localeFamilies[name]) {\n localeFamilies[name].forEach(function (x) {\n defineLocale(x.name, x.config);\n });\n }\n\n // backwards compat for now: also set the locale\n // make sure we set the locale AFTER all child locales have been\n // created, so we won't end up with the child locale set.\n getSetGlobalLocale(name);\n\n return locales[name];\n } else {\n // useful for testing\n delete locales[name];\n return null;\n }\n}\n\nfunction updateLocale(name, config) {\n if (config != null) {\n var locale,\n tmpLocale,\n parentConfig = baseConfig;\n\n if (locales[name] != null && locales[name].parentLocale != null) {\n // Update existing child locale in-place to avoid memory-leaks\n locales[name].set(mergeConfigs(locales[name]._config, config));\n } else {\n // MERGE\n tmpLocale = loadLocale(name);\n if (tmpLocale != null) {\n parentConfig = tmpLocale._config;\n }\n config = mergeConfigs(parentConfig, config);\n if (tmpLocale == null) {\n // updateLocale is called for creating a new locale\n // Set abbr so it will have a name (getters return\n // undefined otherwise).\n config.abbr = name;\n }\n locale = new Locale(config);\n locale.parentLocale = locales[name];\n locales[name] = locale;\n }\n\n // backwards compat for now: also set the locale\n getSetGlobalLocale(name);\n } else {\n // pass null for config to unupdate, useful for tests\n if (locales[name] != null) {\n if (locales[name].parentLocale != null) {\n locales[name] = locales[name].parentLocale;\n if (name === getSetGlobalLocale()) {\n getSetGlobalLocale(name);\n }\n } else if (locales[name] != null) {\n delete locales[name];\n }\n }\n }\n return locales[name];\n}\n\n// returns locale data\nfunction getLocale(key) {\n var locale;\n\n if (key && key._locale && key._locale._abbr) {\n key = key._locale._abbr;\n }\n\n if (!key) {\n return globalLocale;\n }\n\n if (!isArray(key)) {\n //short-circuit everything else\n locale = loadLocale(key);\n if (locale) {\n return locale;\n }\n key = [key];\n }\n\n return chooseLocale(key);\n}\n\nfunction listLocales() {\n return keys(locales);\n}\n\nfunction checkOverflow(m) {\n var overflow,\n a = m._a;\n\n if (a && getParsingFlags(m).overflow === -2) {\n overflow =\n a[MONTH] < 0 || a[MONTH] > 11\n ? MONTH\n : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])\n ? DATE\n : a[HOUR] < 0 ||\n a[HOUR] > 24 ||\n (a[HOUR] === 24 &&\n (a[MINUTE] !== 0 ||\n a[SECOND] !== 0 ||\n a[MILLISECOND] !== 0))\n ? HOUR\n : a[MINUTE] < 0 || a[MINUTE] > 59\n ? MINUTE\n : a[SECOND] < 0 || a[SECOND] > 59\n ? SECOND\n : a[MILLISECOND] < 0 || a[MILLISECOND] > 999\n ? MILLISECOND\n : -1;\n\n if (\n getParsingFlags(m)._overflowDayOfYear &&\n (overflow < YEAR || overflow > DATE)\n ) {\n overflow = DATE;\n }\n if (getParsingFlags(m)._overflowWeeks && overflow === -1) {\n overflow = WEEK;\n }\n if (getParsingFlags(m)._overflowWeekday && overflow === -1) {\n overflow = WEEKDAY;\n }\n\n getParsingFlags(m).overflow = overflow;\n }\n\n return m;\n}\n\n// iso 8601 regex\n// 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)\nvar extendedIsoRegex =\n /^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n basicIsoRegex =\n /^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d|))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n tzRegex = /Z|[+-]\\d\\d(?::?\\d\\d)?/,\n isoDates = [\n ['YYYYYY-MM-DD', /[+-]\\d{6}-\\d\\d-\\d\\d/],\n ['YYYY-MM-DD', /\\d{4}-\\d\\d-\\d\\d/],\n ['GGGG-[W]WW-E', /\\d{4}-W\\d\\d-\\d/],\n ['GGGG-[W]WW', /\\d{4}-W\\d\\d/, false],\n ['YYYY-DDD', /\\d{4}-\\d{3}/],\n ['YYYY-MM', /\\d{4}-\\d\\d/, false],\n ['YYYYYYMMDD', /[+-]\\d{10}/],\n ['YYYYMMDD', /\\d{8}/],\n ['GGGG[W]WWE', /\\d{4}W\\d{3}/],\n ['GGGG[W]WW', /\\d{4}W\\d{2}/, false],\n ['YYYYDDD', /\\d{7}/],\n ['YYYYMM', /\\d{6}/, false],\n ['YYYY', /\\d{4}/, false],\n ],\n // iso time formats and regexes\n isoTimes = [\n ['HH:mm:ss.SSSS', /\\d\\d:\\d\\d:\\d\\d\\.\\d+/],\n ['HH:mm:ss,SSSS', /\\d\\d:\\d\\d:\\d\\d,\\d+/],\n ['HH:mm:ss', /\\d\\d:\\d\\d:\\d\\d/],\n ['HH:mm', /\\d\\d:\\d\\d/],\n ['HHmmss.SSSS', /\\d\\d\\d\\d\\d\\d\\.\\d+/],\n ['HHmmss,SSSS', /\\d\\d\\d\\d\\d\\d,\\d+/],\n ['HHmmss', /\\d\\d\\d\\d\\d\\d/],\n ['HHmm', /\\d\\d\\d\\d/],\n ['HH', /\\d\\d/],\n ],\n aspNetJsonRegex = /^\\/?Date\\((-?\\d+)/i,\n // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3\n rfc2822 =\n /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/,\n obsOffsets = {\n UT: 0,\n GMT: 0,\n EDT: -4 * 60,\n EST: -5 * 60,\n CDT: -5 * 60,\n CST: -6 * 60,\n MDT: -6 * 60,\n MST: -7 * 60,\n PDT: -7 * 60,\n PST: -8 * 60,\n };\n\n// date from iso format\nfunction configFromISO(config) {\n var i,\n l,\n string = config._i,\n match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),\n allowTime,\n dateFormat,\n timeFormat,\n tzFormat,\n isoDatesLen = isoDates.length,\n isoTimesLen = isoTimes.length;\n\n if (match) {\n getParsingFlags(config).iso = true;\n for (i = 0, l = isoDatesLen; i < l; i++) {\n if (isoDates[i][1].exec(match[1])) {\n dateFormat = isoDates[i][0];\n allowTime = isoDates[i][2] !== false;\n break;\n }\n }\n if (dateFormat == null) {\n config._isValid = false;\n return;\n }\n if (match[3]) {\n for (i = 0, l = isoTimesLen; i < l; i++) {\n if (isoTimes[i][1].exec(match[3])) {\n // match[2] should be 'T' or space\n timeFormat = (match[2] || ' ') + isoTimes[i][0];\n break;\n }\n }\n if (timeFormat == null) {\n config._isValid = false;\n return;\n }\n }\n if (!allowTime && timeFormat != null) {\n config._isValid = false;\n return;\n }\n if (match[4]) {\n if (tzRegex.exec(match[4])) {\n tzFormat = 'Z';\n } else {\n config._isValid = false;\n return;\n }\n }\n config._f = dateFormat + (timeFormat || '') + (tzFormat || '');\n configFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n}\n\nfunction extractFromRFC2822Strings(\n yearStr,\n monthStr,\n dayStr,\n hourStr,\n minuteStr,\n secondStr\n) {\n var result = [\n untruncateYear(yearStr),\n defaultLocaleMonthsShort.indexOf(monthStr),\n parseInt(dayStr, 10),\n parseInt(hourStr, 10),\n parseInt(minuteStr, 10),\n ];\n\n if (secondStr) {\n result.push(parseInt(secondStr, 10));\n }\n\n return result;\n}\n\nfunction untruncateYear(yearStr) {\n var year = parseInt(yearStr, 10);\n if (year <= 49) {\n return 2000 + year;\n } else if (year <= 999) {\n return 1900 + year;\n }\n return year;\n}\n\nfunction preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s\n .replace(/\\([^()]*\\)|[\\n\\t]/g, ' ')\n .replace(/(\\s\\s+)/g, ' ')\n .replace(/^\\s\\s*/, '')\n .replace(/\\s\\s*$/, '');\n}\n\nfunction checkWeekday(weekdayStr, parsedInput, config) {\n if (weekdayStr) {\n // TODO: Replace the vanilla JS Date object with an independent day-of-week check.\n var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),\n weekdayActual = new Date(\n parsedInput[0],\n parsedInput[1],\n parsedInput[2]\n ).getDay();\n if (weekdayProvided !== weekdayActual) {\n getParsingFlags(config).weekdayMismatch = true;\n config._isValid = false;\n return false;\n }\n }\n return true;\n}\n\nfunction calculateOffset(obsOffset, militaryOffset, numOffset) {\n if (obsOffset) {\n return obsOffsets[obsOffset];\n } else if (militaryOffset) {\n // the only allowed military tz is Z\n return 0;\n } else {\n var hm = parseInt(numOffset, 10),\n m = hm % 100,\n h = (hm - m) / 100;\n return h * 60 + m;\n }\n}\n\n// date and time from ref 2822 format\nfunction configFromRFC2822(config) {\n var match = rfc2822.exec(preprocessRFC2822(config._i)),\n parsedArray;\n if (match) {\n parsedArray = extractFromRFC2822Strings(\n match[4],\n match[3],\n match[2],\n match[5],\n match[6],\n match[7]\n );\n if (!checkWeekday(match[1], parsedArray, config)) {\n return;\n }\n\n config._a = parsedArray;\n config._tzm = calculateOffset(match[8], match[9], match[10]);\n\n config._d = createUTCDate.apply(null, config._a);\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n\n getParsingFlags(config).rfc2822 = true;\n } else {\n config._isValid = false;\n }\n}\n\n// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict\nfunction configFromString(config) {\n var matched = aspNetJsonRegex.exec(config._i);\n if (matched !== null) {\n config._d = new Date(+matched[1]);\n return;\n }\n\n configFromISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n configFromRFC2822(config);\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n if (config._strict) {\n config._isValid = false;\n } else {\n // Final attempt, use Input Fallback\n hooks.createFromInputFallback(config);\n }\n}\n\nhooks.createFromInputFallback = deprecate(\n 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +\n 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +\n 'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',\n function (config) {\n config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));\n }\n);\n\n// Pick the first defined of two or three arguments.\nfunction defaults(a, b, c) {\n if (a != null) {\n return a;\n }\n if (b != null) {\n return b;\n }\n return c;\n}\n\nfunction currentDateArray(config) {\n // hooks is actually the exported moment object\n var nowValue = new Date(hooks.now());\n if (config._useUTC) {\n return [\n nowValue.getUTCFullYear(),\n nowValue.getUTCMonth(),\n nowValue.getUTCDate(),\n ];\n }\n return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];\n}\n\n// convert an array to a date.\n// the array should mirror the parameters below\n// note: all values past the year are optional and will default to the lowest possible value.\n// [year, month, day , hour, minute, second, millisecond]\nfunction configFromArray(config) {\n var i,\n date,\n input = [],\n currentDate,\n expectedWeekday,\n yearToUse;\n\n if (config._d) {\n return;\n }\n\n currentDate = currentDateArray(config);\n\n //compute day of the year from weeks and weekdays\n if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {\n dayOfYearFromWeekInfo(config);\n }\n\n //if the day of the year is set, figure out what it is\n if (config._dayOfYear != null) {\n yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);\n\n if (\n config._dayOfYear > daysInYear(yearToUse) ||\n config._dayOfYear === 0\n ) {\n getParsingFlags(config)._overflowDayOfYear = true;\n }\n\n date = createUTCDate(yearToUse, 0, config._dayOfYear);\n config._a[MONTH] = date.getUTCMonth();\n config._a[DATE] = date.getUTCDate();\n }\n\n // Default to current date.\n // * if no year, month, day of month are given, default to today\n // * if day of month is given, default month and year\n // * if month is given, default only year\n // * if year is given, don't default anything\n for (i = 0; i < 3 && config._a[i] == null; ++i) {\n config._a[i] = input[i] = currentDate[i];\n }\n\n // Zero out whatever was not defaulted, including time\n for (; i < 7; i++) {\n config._a[i] = input[i] =\n config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];\n }\n\n // Check for 24:00:00.000\n if (\n config._a[HOUR] === 24 &&\n config._a[MINUTE] === 0 &&\n config._a[SECOND] === 0 &&\n config._a[MILLISECOND] === 0\n ) {\n config._nextDay = true;\n config._a[HOUR] = 0;\n }\n\n config._d = (config._useUTC ? createUTCDate : createDate).apply(\n null,\n input\n );\n expectedWeekday = config._useUTC\n ? config._d.getUTCDay()\n : config._d.getDay();\n\n // Apply timezone offset from input. The actual utcOffset can be changed\n // with parseZone.\n if (config._tzm != null) {\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n }\n\n if (config._nextDay) {\n config._a[HOUR] = 24;\n }\n\n // check for mismatching day of week\n if (\n config._w &&\n typeof config._w.d !== 'undefined' &&\n config._w.d !== expectedWeekday\n ) {\n getParsingFlags(config).weekdayMismatch = true;\n }\n}\n\nfunction dayOfYearFromWeekInfo(config) {\n var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;\n\n w = config._w;\n if (w.GG != null || w.W != null || w.E != null) {\n dow = 1;\n doy = 4;\n\n // TODO: We need to take the current isoWeekYear, but that depends on\n // how we interpret now (local, utc, fixed offset). So create\n // a now version of current config (take local/utc/offset flags, and\n // create now).\n weekYear = defaults(\n w.GG,\n config._a[YEAR],\n weekOfYear(createLocal(), 1, 4).year\n );\n week = defaults(w.W, 1);\n weekday = defaults(w.E, 1);\n if (weekday < 1 || weekday > 7) {\n weekdayOverflow = true;\n }\n } else {\n dow = config._locale._week.dow;\n doy = config._locale._week.doy;\n\n curWeek = weekOfYear(createLocal(), dow, doy);\n\n weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);\n\n // Default to current week.\n week = defaults(w.w, curWeek.week);\n\n if (w.d != null) {\n // weekday -- low day numbers are considered next week\n weekday = w.d;\n if (weekday < 0 || weekday > 6) {\n weekdayOverflow = true;\n }\n } else if (w.e != null) {\n // local weekday -- counting starts from beginning of week\n weekday = w.e + dow;\n if (w.e < 0 || w.e > 6) {\n weekdayOverflow = true;\n }\n } else {\n // default to beginning of week\n weekday = dow;\n }\n }\n if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {\n getParsingFlags(config)._overflowWeeks = true;\n } else if (weekdayOverflow != null) {\n getParsingFlags(config)._overflowWeekday = true;\n } else {\n temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);\n config._a[YEAR] = temp.year;\n config._dayOfYear = temp.dayOfYear;\n }\n}\n\n// constant that refers to the ISO standard\nhooks.ISO_8601 = function () {};\n\n// constant that refers to the RFC 2822 form\nhooks.RFC_2822 = function () {};\n\n// date from string and format string\nfunction configFromStringAndFormat(config) {\n // TODO: Move this to another part of the creation flow to prevent circular deps\n if (config._f === hooks.ISO_8601) {\n configFromISO(config);\n return;\n }\n if (config._f === hooks.RFC_2822) {\n configFromRFC2822(config);\n return;\n }\n config._a = [];\n getParsingFlags(config).empty = true;\n\n // This array is used to make a Date, either with `new Date` or `Date.UTC`\n var string = '' + config._i,\n i,\n parsedInput,\n tokens,\n token,\n skipped,\n stringLength = string.length,\n totalParsedInputLength = 0,\n era,\n tokenLen;\n\n tokens =\n expandFormat(config._f, config._locale).match(formattingTokens) || [];\n tokenLen = tokens.length;\n for (i = 0; i < tokenLen; i++) {\n token = tokens[i];\n parsedInput = (string.match(getParseRegexForToken(token, config)) ||\n [])[0];\n if (parsedInput) {\n skipped = string.substr(0, string.indexOf(parsedInput));\n if (skipped.length > 0) {\n getParsingFlags(config).unusedInput.push(skipped);\n }\n string = string.slice(\n string.indexOf(parsedInput) + parsedInput.length\n );\n totalParsedInputLength += parsedInput.length;\n }\n // don't parse if it's not a known token\n if (formatTokenFunctions[token]) {\n if (parsedInput) {\n getParsingFlags(config).empty = false;\n } else {\n getParsingFlags(config).unusedTokens.push(token);\n }\n addTimeToArrayFromToken(token, parsedInput, config);\n } else if (config._strict && !parsedInput) {\n getParsingFlags(config).unusedTokens.push(token);\n }\n }\n\n // add remaining unparsed input length to the string\n getParsingFlags(config).charsLeftOver =\n stringLength - totalParsedInputLength;\n if (string.length > 0) {\n getParsingFlags(config).unusedInput.push(string);\n }\n\n // clear _12h flag if hour is <= 12\n if (\n config._a[HOUR] <= 12 &&\n getParsingFlags(config).bigHour === true &&\n config._a[HOUR] > 0\n ) {\n getParsingFlags(config).bigHour = undefined;\n }\n\n getParsingFlags(config).parsedDateParts = config._a.slice(0);\n getParsingFlags(config).meridiem = config._meridiem;\n // handle meridiem\n config._a[HOUR] = meridiemFixWrap(\n config._locale,\n config._a[HOUR],\n config._meridiem\n );\n\n // handle era\n era = getParsingFlags(config).era;\n if (era !== null) {\n config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);\n }\n\n configFromArray(config);\n checkOverflow(config);\n}\n\nfunction meridiemFixWrap(locale, hour, meridiem) {\n var isPm;\n\n if (meridiem == null) {\n // nothing to do\n return hour;\n }\n if (locale.meridiemHour != null) {\n return locale.meridiemHour(hour, meridiem);\n } else if (locale.isPM != null) {\n // Fallback\n isPm = locale.isPM(meridiem);\n if (isPm && hour < 12) {\n hour += 12;\n }\n if (!isPm && hour === 12) {\n hour = 0;\n }\n return hour;\n } else {\n // this is not supposed to happen\n return hour;\n }\n}\n\n// date from string and array of format strings\nfunction configFromStringAndArray(config) {\n var tempConfig,\n bestMoment,\n scoreToBeat,\n i,\n currentScore,\n validFormatFound,\n bestFormatIsValid = false,\n configfLen = config._f.length;\n\n if (configfLen === 0) {\n getParsingFlags(config).invalidFormat = true;\n config._d = new Date(NaN);\n return;\n }\n\n for (i = 0; i < configfLen; i++) {\n currentScore = 0;\n validFormatFound = false;\n tempConfig = copyConfig({}, config);\n if (config._useUTC != null) {\n tempConfig._useUTC = config._useUTC;\n }\n tempConfig._f = config._f[i];\n configFromStringAndFormat(tempConfig);\n\n if (isValid(tempConfig)) {\n validFormatFound = true;\n }\n\n // if there is any input that was not parsed add a penalty for that format\n currentScore += getParsingFlags(tempConfig).charsLeftOver;\n\n //or tokens\n currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;\n\n getParsingFlags(tempConfig).score = currentScore;\n\n if (!bestFormatIsValid) {\n if (\n scoreToBeat == null ||\n currentScore < scoreToBeat ||\n validFormatFound\n ) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n if (validFormatFound) {\n bestFormatIsValid = true;\n }\n }\n } else {\n if (currentScore < scoreToBeat) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n }\n }\n }\n\n extend(config, bestMoment || tempConfig);\n}\n\nfunction configFromObject(config) {\n if (config._d) {\n return;\n }\n\n var i = normalizeObjectUnits(config._i),\n dayOrDate = i.day === undefined ? i.date : i.day;\n config._a = map(\n [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],\n function (obj) {\n return obj && parseInt(obj, 10);\n }\n );\n\n configFromArray(config);\n}\n\nfunction createFromConfig(config) {\n var res = new Moment(checkOverflow(prepareConfig(config)));\n if (res._nextDay) {\n // Adding is smart enough around DST\n res.add(1, 'd');\n res._nextDay = undefined;\n }\n\n return res;\n}\n\nfunction prepareConfig(config) {\n var input = config._i,\n format = config._f;\n\n config._locale = config._locale || getLocale(config._l);\n\n if (input === null || (format === undefined && input === '')) {\n return createInvalid({ nullInput: true });\n }\n\n if (typeof input === 'string') {\n config._i = input = config._locale.preparse(input);\n }\n\n if (isMoment(input)) {\n return new Moment(checkOverflow(input));\n } else if (isDate(input)) {\n config._d = input;\n } else if (isArray(format)) {\n configFromStringAndArray(config);\n } else if (format) {\n configFromStringAndFormat(config);\n } else {\n configFromInput(config);\n }\n\n if (!isValid(config)) {\n config._d = null;\n }\n\n return config;\n}\n\nfunction configFromInput(config) {\n var input = config._i;\n if (isUndefined(input)) {\n config._d = new Date(hooks.now());\n } else if (isDate(input)) {\n config._d = new Date(input.valueOf());\n } else if (typeof input === 'string') {\n configFromString(config);\n } else if (isArray(input)) {\n config._a = map(input.slice(0), function (obj) {\n return parseInt(obj, 10);\n });\n configFromArray(config);\n } else if (isObject(input)) {\n configFromObject(config);\n } else if (isNumber(input)) {\n // from milliseconds\n config._d = new Date(input);\n } else {\n hooks.createFromInputFallback(config);\n }\n}\n\nfunction createLocalOrUTC(input, format, locale, strict, isUTC) {\n var c = {};\n\n if (format === true || format === false) {\n strict = format;\n format = undefined;\n }\n\n if (locale === true || locale === false) {\n strict = locale;\n locale = undefined;\n }\n\n if (\n (isObject(input) && isObjectEmpty(input)) ||\n (isArray(input) && input.length === 0)\n ) {\n input = undefined;\n }\n // object construction must be done this way.\n // https://github.com/moment/moment/issues/1423\n c._isAMomentObject = true;\n c._useUTC = c._isUTC = isUTC;\n c._l = locale;\n c._i = input;\n c._f = format;\n c._strict = strict;\n\n return createFromConfig(c);\n}\n\nfunction createLocal(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, false);\n}\n\nvar prototypeMin = deprecate(\n 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',\n function () {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) {\n return other < this ? this : other;\n } else {\n return createInvalid();\n }\n }\n ),\n prototypeMax = deprecate(\n 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',\n function () {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) {\n return other > this ? this : other;\n } else {\n return createInvalid();\n }\n }\n );\n\n// Pick a moment m from moments so that m[fn](other) is true for all\n// other. This relies on the function fn to be transitive.\n//\n// moments should either be an array of moment objects or an array, whose\n// first element is an array of moment objects.\nfunction pickBy(fn, moments) {\n var res, i;\n if (moments.length === 1 && isArray(moments[0])) {\n moments = moments[0];\n }\n if (!moments.length) {\n return createLocal();\n }\n res = moments[0];\n for (i = 1; i < moments.length; ++i) {\n if (!moments[i].isValid() || moments[i][fn](res)) {\n res = moments[i];\n }\n }\n return res;\n}\n\n// TODO: Use [].sort instead?\nfunction min() {\n var args = [].slice.call(arguments, 0);\n\n return pickBy('isBefore', args);\n}\n\nfunction max() {\n var args = [].slice.call(arguments, 0);\n\n return pickBy('isAfter', args);\n}\n\nvar now = function () {\n return Date.now ? Date.now() : +new Date();\n};\n\nvar ordering = [\n 'year',\n 'quarter',\n 'month',\n 'week',\n 'day',\n 'hour',\n 'minute',\n 'second',\n 'millisecond',\n];\n\nfunction isDurationValid(m) {\n var key,\n unitHasDecimal = false,\n i,\n orderLen = ordering.length;\n for (key in m) {\n if (\n hasOwnProp(m, key) &&\n !(\n indexOf.call(ordering, key) !== -1 &&\n (m[key] == null || !isNaN(m[key]))\n )\n ) {\n return false;\n }\n }\n\n for (i = 0; i < orderLen; ++i) {\n if (m[ordering[i]]) {\n if (unitHasDecimal) {\n return false; // only allow non-integers for smallest unit\n }\n if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {\n unitHasDecimal = true;\n }\n }\n }\n\n return true;\n}\n\nfunction isValid$1() {\n return this._isValid;\n}\n\nfunction createInvalid$1() {\n return createDuration(NaN);\n}\n\nfunction Duration(duration) {\n var normalizedInput = normalizeObjectUnits(duration),\n years = normalizedInput.year || 0,\n quarters = normalizedInput.quarter || 0,\n months = normalizedInput.month || 0,\n weeks = normalizedInput.week || normalizedInput.isoWeek || 0,\n days = normalizedInput.day || 0,\n hours = normalizedInput.hour || 0,\n minutes = normalizedInput.minute || 0,\n seconds = normalizedInput.second || 0,\n milliseconds = normalizedInput.millisecond || 0;\n\n this._isValid = isDurationValid(normalizedInput);\n\n // representation for dateAddRemove\n this._milliseconds =\n +milliseconds +\n seconds * 1e3 + // 1000\n minutes * 6e4 + // 1000 * 60\n hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978\n // Because of dateAddRemove treats 24 hours as different from a\n // day when working around DST, we need to store them separately\n this._days = +days + weeks * 7;\n // It is impossible to translate months into days without knowing\n // which months you are are talking about, so we have to store\n // it separately.\n this._months = +months + quarters * 3 + years * 12;\n\n this._data = {};\n\n this._locale = getLocale();\n\n this._bubble();\n}\n\nfunction isDuration(obj) {\n return obj instanceof Duration;\n}\n\nfunction absRound(number) {\n if (number < 0) {\n return Math.round(-1 * number) * -1;\n } else {\n return Math.round(number);\n }\n}\n\n// compare two arrays, return the number of differences\nfunction compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (\n (dontConvert && array1[i] !== array2[i]) ||\n (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))\n ) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n}\n\n// FORMATTING\n\nfunction offset(token, separator) {\n addFormatToken(token, 0, 0, function () {\n var offset = this.utcOffset(),\n sign = '+';\n if (offset < 0) {\n offset = -offset;\n sign = '-';\n }\n return (\n sign +\n zeroFill(~~(offset / 60), 2) +\n separator +\n zeroFill(~~offset % 60, 2)\n );\n });\n}\n\noffset('Z', ':');\noffset('ZZ', '');\n\n// PARSING\n\naddRegexToken('Z', matchShortOffset);\naddRegexToken('ZZ', matchShortOffset);\naddParseToken(['Z', 'ZZ'], function (input, array, config) {\n config._useUTC = true;\n config._tzm = offsetFromString(matchShortOffset, input);\n});\n\n// HELPERS\n\n// timezone chunker\n// '+10:00' > ['10', '00']\n// '-1530' > ['-15', '30']\nvar chunkOffset = /([\\+\\-]|\\d\\d)/gi;\n\nfunction offsetFromString(matcher, string) {\n var matches = (string || '').match(matcher),\n chunk,\n parts,\n minutes;\n\n if (matches === null) {\n return null;\n }\n\n chunk = matches[matches.length - 1] || [];\n parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];\n minutes = +(parts[1] * 60) + toInt(parts[2]);\n\n return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;\n}\n\n// Return a moment from input, that is local/utc/zone equivalent to model.\nfunction cloneWithOffset(input, model) {\n var res, diff;\n if (model._isUTC) {\n res = model.clone();\n diff =\n (isMoment(input) || isDate(input)\n ? input.valueOf()\n : createLocal(input).valueOf()) - res.valueOf();\n // Use low-level api, because this fn is low-level api.\n res._d.setTime(res._d.valueOf() + diff);\n hooks.updateOffset(res, false);\n return res;\n } else {\n return createLocal(input).local();\n }\n}\n\nfunction getDateOffset(m) {\n // On Firefox.24 Date#getTimezoneOffset returns a floating point.\n // https://github.com/moment/moment/pull/1871\n return -Math.round(m._d.getTimezoneOffset());\n}\n\n// HOOKS\n\n// This function will be called whenever a moment is mutated.\n// It is intended to keep the offset in sync with the timezone.\nhooks.updateOffset = function () {};\n\n// MOMENTS\n\n// keepLocalTime = true means only change the timezone, without\n// affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->\n// 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset\n// +0200, so we adjust the time as needed, to be valid.\n//\n// Keeping the time actually adds/subtracts (one hour)\n// from the actual represented time. That is why we call updateOffset\n// a second time. In case it wants us to change the offset again\n// _changeInProgress == true case, then we have to adjust, because\n// there is no such time in the given timezone.\nfunction getSetOffset(input, keepLocalTime, keepMinutes) {\n var offset = this._offset || 0,\n localAdjust;\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n if (input != null) {\n if (typeof input === 'string') {\n input = offsetFromString(matchShortOffset, input);\n if (input === null) {\n return this;\n }\n } else if (Math.abs(input) < 16 && !keepMinutes) {\n input = input * 60;\n }\n if (!this._isUTC && keepLocalTime) {\n localAdjust = getDateOffset(this);\n }\n this._offset = input;\n this._isUTC = true;\n if (localAdjust != null) {\n this.add(localAdjust, 'm');\n }\n if (offset !== input) {\n if (!keepLocalTime || this._changeInProgress) {\n addSubtract(\n this,\n createDuration(input - offset, 'm'),\n 1,\n false\n );\n } else if (!this._changeInProgress) {\n this._changeInProgress = true;\n hooks.updateOffset(this, true);\n this._changeInProgress = null;\n }\n }\n return this;\n } else {\n return this._isUTC ? offset : getDateOffset(this);\n }\n}\n\nfunction getSetZone(input, keepLocalTime) {\n if (input != null) {\n if (typeof input !== 'string') {\n input = -input;\n }\n\n this.utcOffset(input, keepLocalTime);\n\n return this;\n } else {\n return -this.utcOffset();\n }\n}\n\nfunction setOffsetToUTC(keepLocalTime) {\n return this.utcOffset(0, keepLocalTime);\n}\n\nfunction setOffsetToLocal(keepLocalTime) {\n if (this._isUTC) {\n this.utcOffset(0, keepLocalTime);\n this._isUTC = false;\n\n if (keepLocalTime) {\n this.subtract(getDateOffset(this), 'm');\n }\n }\n return this;\n}\n\nfunction setOffsetToParsedOffset() {\n if (this._tzm != null) {\n this.utcOffset(this._tzm, false, true);\n } else if (typeof this._i === 'string') {\n var tZone = offsetFromString(matchOffset, this._i);\n if (tZone != null) {\n this.utcOffset(tZone);\n } else {\n this.utcOffset(0, true);\n }\n }\n return this;\n}\n\nfunction hasAlignedHourOffset(input) {\n if (!this.isValid()) {\n return false;\n }\n input = input ? createLocal(input).utcOffset() : 0;\n\n return (this.utcOffset() - input) % 60 === 0;\n}\n\nfunction isDaylightSavingTime() {\n return (\n this.utcOffset() > this.clone().month(0).utcOffset() ||\n this.utcOffset() > this.clone().month(5).utcOffset()\n );\n}\n\nfunction isDaylightSavingTimeShifted() {\n if (!isUndefined(this._isDSTShifted)) {\n return this._isDSTShifted;\n }\n\n var c = {},\n other;\n\n copyConfig(c, this);\n c = prepareConfig(c);\n\n if (c._a) {\n other = c._isUTC ? createUTC(c._a) : createLocal(c._a);\n this._isDSTShifted =\n this.isValid() && compareArrays(c._a, other.toArray()) > 0;\n } else {\n this._isDSTShifted = false;\n }\n\n return this._isDSTShifted;\n}\n\nfunction isLocal() {\n return this.isValid() ? !this._isUTC : false;\n}\n\nfunction isUtcOffset() {\n return this.isValid() ? this._isUTC : false;\n}\n\nfunction isUtc() {\n return this.isValid() ? this._isUTC && this._offset === 0 : false;\n}\n\n// ASP.NET json date format regex\nvar aspNetRegex = /^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/,\n // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html\n // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere\n // and further modified to allow for strings containing both week and day\n isoRegex =\n /^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;\n\nfunction createDuration(input, key) {\n var duration = input,\n // matching against regexp is expensive, do it on demand\n match = null,\n sign,\n ret,\n diffRes;\n\n if (isDuration(input)) {\n duration = {\n ms: input._milliseconds,\n d: input._days,\n M: input._months,\n };\n } else if (isNumber(input) || !isNaN(+input)) {\n duration = {};\n if (key) {\n duration[key] = +input;\n } else {\n duration.milliseconds = +input;\n }\n } else if ((match = aspNetRegex.exec(input))) {\n sign = match[1] === '-' ? -1 : 1;\n duration = {\n y: 0,\n d: toInt(match[DATE]) * sign,\n h: toInt(match[HOUR]) * sign,\n m: toInt(match[MINUTE]) * sign,\n s: toInt(match[SECOND]) * sign,\n ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match\n };\n } else if ((match = isoRegex.exec(input))) {\n sign = match[1] === '-' ? -1 : 1;\n duration = {\n y: parseIso(match[2], sign),\n M: parseIso(match[3], sign),\n w: parseIso(match[4], sign),\n d: parseIso(match[5], sign),\n h: parseIso(match[6], sign),\n m: parseIso(match[7], sign),\n s: parseIso(match[8], sign),\n };\n } else if (duration == null) {\n // checks for null or undefined\n duration = {};\n } else if (\n typeof duration === 'object' &&\n ('from' in duration || 'to' in duration)\n ) {\n diffRes = momentsDifference(\n createLocal(duration.from),\n createLocal(duration.to)\n );\n\n duration = {};\n duration.ms = diffRes.milliseconds;\n duration.M = diffRes.months;\n }\n\n ret = new Duration(duration);\n\n if (isDuration(input) && hasOwnProp(input, '_locale')) {\n ret._locale = input._locale;\n }\n\n if (isDuration(input) && hasOwnProp(input, '_isValid')) {\n ret._isValid = input._isValid;\n }\n\n return ret;\n}\n\ncreateDuration.fn = Duration.prototype;\ncreateDuration.invalid = createInvalid$1;\n\nfunction parseIso(inp, sign) {\n // We'd normally use ~~inp for this, but unfortunately it also\n // converts floats to ints.\n // inp may be undefined, so careful calling replace on it.\n var res = inp && parseFloat(inp.replace(',', '.'));\n // apply sign while we're at it\n return (isNaN(res) ? 0 : res) * sign;\n}\n\nfunction positiveMomentsDifference(base, other) {\n var res = {};\n\n res.months =\n other.month() - base.month() + (other.year() - base.year()) * 12;\n if (base.clone().add(res.months, 'M').isAfter(other)) {\n --res.months;\n }\n\n res.milliseconds = +other - +base.clone().add(res.months, 'M');\n\n return res;\n}\n\nfunction momentsDifference(base, other) {\n var res;\n if (!(base.isValid() && other.isValid())) {\n return { milliseconds: 0, months: 0 };\n }\n\n other = cloneWithOffset(other, base);\n if (base.isBefore(other)) {\n res = positiveMomentsDifference(base, other);\n } else {\n res = positiveMomentsDifference(other, base);\n res.milliseconds = -res.milliseconds;\n res.months = -res.months;\n }\n\n return res;\n}\n\n// TODO: remove 'name' arg after deprecation is removed\nfunction createAdder(direction, name) {\n return function (val, period) {\n var dur, tmp;\n //invert the arguments, but complain about it\n if (period !== null && !isNaN(+period)) {\n deprecateSimple(\n name,\n 'moment().' +\n name +\n '(period, number) is deprecated. Please use moment().' +\n name +\n '(number, period). ' +\n 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'\n );\n tmp = val;\n val = period;\n period = tmp;\n }\n\n dur = createDuration(val, period);\n addSubtract(this, dur, direction);\n return this;\n };\n}\n\nfunction addSubtract(mom, duration, isAdding, updateOffset) {\n var milliseconds = duration._milliseconds,\n days = absRound(duration._days),\n months = absRound(duration._months);\n\n if (!mom.isValid()) {\n // No op\n return;\n }\n\n updateOffset = updateOffset == null ? true : updateOffset;\n\n if (months) {\n setMonth(mom, get(mom, 'Month') + months * isAdding);\n }\n if (days) {\n set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);\n }\n if (milliseconds) {\n mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);\n }\n if (updateOffset) {\n hooks.updateOffset(mom, days || months);\n }\n}\n\nvar add = createAdder(1, 'add'),\n subtract = createAdder(-1, 'subtract');\n\nfunction isString(input) {\n return typeof input === 'string' || input instanceof String;\n}\n\n// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined\nfunction isMomentInput(input) {\n return (\n isMoment(input) ||\n isDate(input) ||\n isString(input) ||\n isNumber(input) ||\n isNumberOrStringArray(input) ||\n isMomentInputObject(input) ||\n input === null ||\n input === undefined\n );\n}\n\nfunction isMomentInputObject(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input),\n propertyTest = false,\n properties = [\n 'years',\n 'year',\n 'y',\n 'months',\n 'month',\n 'M',\n 'days',\n 'day',\n 'd',\n 'dates',\n 'date',\n 'D',\n 'hours',\n 'hour',\n 'h',\n 'minutes',\n 'minute',\n 'm',\n 'seconds',\n 'second',\n 's',\n 'milliseconds',\n 'millisecond',\n 'ms',\n ],\n i,\n property,\n propertyLen = properties.length;\n\n for (i = 0; i < propertyLen; i += 1) {\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n\n return objectTest && propertyTest;\n}\n\nfunction isNumberOrStringArray(input) {\n var arrayTest = isArray(input),\n dataTypeTest = false;\n if (arrayTest) {\n dataTypeTest =\n input.filter(function (item) {\n return !isNumber(item) && isString(input);\n }).length === 0;\n }\n return arrayTest && dataTypeTest;\n}\n\nfunction isCalendarSpec(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input),\n propertyTest = false,\n properties = [\n 'sameDay',\n 'nextDay',\n 'lastDay',\n 'nextWeek',\n 'lastWeek',\n 'sameElse',\n ],\n i,\n property;\n\n for (i = 0; i < properties.length; i += 1) {\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n\n return objectTest && propertyTest;\n}\n\nfunction getCalendarFormat(myMoment, now) {\n var diff = myMoment.diff(now, 'days', true);\n return diff < -6\n ? 'sameElse'\n : diff < -1\n ? 'lastWeek'\n : diff < 0\n ? 'lastDay'\n : diff < 1\n ? 'sameDay'\n : diff < 2\n ? 'nextDay'\n : diff < 7\n ? 'nextWeek'\n : 'sameElse';\n}\n\nfunction calendar$1(time, formats) {\n // Support for single parameter, formats only overload to the calendar function\n if (arguments.length === 1) {\n if (!arguments[0]) {\n time = undefined;\n formats = undefined;\n } else if (isMomentInput(arguments[0])) {\n time = arguments[0];\n formats = undefined;\n } else if (isCalendarSpec(arguments[0])) {\n formats = arguments[0];\n time = undefined;\n }\n }\n // We want to compare the start of today, vs this.\n // Getting start-of-today depends on whether we're local/utc/offset or not.\n var now = time || createLocal(),\n sod = cloneWithOffset(now, this).startOf('day'),\n format = hooks.calendarFormat(this, sod) || 'sameElse',\n output =\n formats &&\n (isFunction(formats[format])\n ? formats[format].call(this, now)\n : formats[format]);\n\n return this.format(\n output || this.localeData().calendar(format, this, createLocal(now))\n );\n}\n\nfunction clone() {\n return new Moment(this);\n}\n\nfunction isAfter(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() > localInput.valueOf();\n } else {\n return localInput.valueOf() < this.clone().startOf(units).valueOf();\n }\n}\n\nfunction isBefore(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() < localInput.valueOf();\n } else {\n return this.clone().endOf(units).valueOf() < localInput.valueOf();\n }\n}\n\nfunction isBetween(from, to, units, inclusivity) {\n var localFrom = isMoment(from) ? from : createLocal(from),\n localTo = isMoment(to) ? to : createLocal(to);\n if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {\n return false;\n }\n inclusivity = inclusivity || '()';\n return (\n (inclusivity[0] === '('\n ? this.isAfter(localFrom, units)\n : !this.isBefore(localFrom, units)) &&\n (inclusivity[1] === ')'\n ? this.isBefore(localTo, units)\n : !this.isAfter(localTo, units))\n );\n}\n\nfunction isSame(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input),\n inputMs;\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() === localInput.valueOf();\n } else {\n inputMs = localInput.valueOf();\n return (\n this.clone().startOf(units).valueOf() <= inputMs &&\n inputMs <= this.clone().endOf(units).valueOf()\n );\n }\n}\n\nfunction isSameOrAfter(input, units) {\n return this.isSame(input, units) || this.isAfter(input, units);\n}\n\nfunction isSameOrBefore(input, units) {\n return this.isSame(input, units) || this.isBefore(input, units);\n}\n\nfunction diff(input, units, asFloat) {\n var that, zoneDelta, output;\n\n if (!this.isValid()) {\n return NaN;\n }\n\n that = cloneWithOffset(input, this);\n\n if (!that.isValid()) {\n return NaN;\n }\n\n zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;\n\n units = normalizeUnits(units);\n\n switch (units) {\n case 'year':\n output = monthDiff(this, that) / 12;\n break;\n case 'month':\n output = monthDiff(this, that);\n break;\n case 'quarter':\n output = monthDiff(this, that) / 3;\n break;\n case 'second':\n output = (this - that) / 1e3;\n break; // 1000\n case 'minute':\n output = (this - that) / 6e4;\n break; // 1000 * 60\n case 'hour':\n output = (this - that) / 36e5;\n break; // 1000 * 60 * 60\n case 'day':\n output = (this - that - zoneDelta) / 864e5;\n break; // 1000 * 60 * 60 * 24, negate dst\n case 'week':\n output = (this - that - zoneDelta) / 6048e5;\n break; // 1000 * 60 * 60 * 24 * 7, negate dst\n default:\n output = this - that;\n }\n\n return asFloat ? output : absFloor(output);\n}\n\nfunction monthDiff(a, b) {\n if (a.date() < b.date()) {\n // end-of-month calculations work correct when the start month has more\n // days than the end month.\n return -monthDiff(b, a);\n }\n // difference in months\n var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),\n // b is in (anchor - 1 month, anchor + 1 month)\n anchor = a.clone().add(wholeMonthDiff, 'months'),\n anchor2,\n adjust;\n\n if (b - anchor < 0) {\n anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');\n // linear across the month\n adjust = (b - anchor) / (anchor - anchor2);\n } else {\n anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');\n // linear across the month\n adjust = (b - anchor) / (anchor2 - anchor);\n }\n\n //check for negative zero, return zero if negative zero\n return -(wholeMonthDiff + adjust) || 0;\n}\n\nhooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';\nhooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';\n\nfunction toString() {\n return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');\n}\n\nfunction toISOString(keepOffset) {\n if (!this.isValid()) {\n return null;\n }\n var utc = keepOffset !== true,\n m = utc ? this.clone().utc() : this;\n if (m.year() < 0 || m.year() > 9999) {\n return formatMoment(\n m,\n utc\n ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'\n : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'\n );\n }\n if (isFunction(Date.prototype.toISOString)) {\n // native implementation is ~50x faster, use it when we can\n if (utc) {\n return this.toDate().toISOString();\n } else {\n return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)\n .toISOString()\n .replace('Z', formatMoment(m, 'Z'));\n }\n }\n return formatMoment(\n m,\n utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'\n );\n}\n\n/**\n * Return a human readable representation of a moment that can\n * also be evaluated to get a new moment which is the same\n *\n * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects\n */\nfunction inspect() {\n if (!this.isValid()) {\n return 'moment.invalid(/* ' + this._i + ' */)';\n }\n var func = 'moment',\n zone = '',\n prefix,\n year,\n datetime,\n suffix;\n if (!this.isLocal()) {\n func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';\n zone = 'Z';\n }\n prefix = '[' + func + '(\"]';\n year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';\n datetime = '-MM-DD[T]HH:mm:ss.SSS';\n suffix = zone + '[\")]';\n\n return this.format(prefix + year + datetime + suffix);\n}\n\nfunction format(inputString) {\n if (!inputString) {\n inputString = this.isUtc()\n ? hooks.defaultFormatUtc\n : hooks.defaultFormat;\n }\n var output = formatMoment(this, inputString);\n return this.localeData().postformat(output);\n}\n\nfunction from(time, withoutSuffix) {\n if (\n this.isValid() &&\n ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n ) {\n return createDuration({ to: this, from: time })\n .locale(this.locale())\n .humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n}\n\nfunction fromNow(withoutSuffix) {\n return this.from(createLocal(), withoutSuffix);\n}\n\nfunction to(time, withoutSuffix) {\n if (\n this.isValid() &&\n ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n ) {\n return createDuration({ from: this, to: time })\n .locale(this.locale())\n .humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n}\n\nfunction toNow(withoutSuffix) {\n return this.to(createLocal(), withoutSuffix);\n}\n\n// If passed a locale key, it will set the locale for this\n// instance. Otherwise, it will return the locale configuration\n// variables for this instance.\nfunction locale(key) {\n var newLocaleData;\n\n if (key === undefined) {\n return this._locale._abbr;\n } else {\n newLocaleData = getLocale(key);\n if (newLocaleData != null) {\n this._locale = newLocaleData;\n }\n return this;\n }\n}\n\nvar lang = deprecate(\n 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',\n function (key) {\n if (key === undefined) {\n return this.localeData();\n } else {\n return this.locale(key);\n }\n }\n);\n\nfunction localeData() {\n return this._locale;\n}\n\nvar MS_PER_SECOND = 1000,\n MS_PER_MINUTE = 60 * MS_PER_SECOND,\n MS_PER_HOUR = 60 * MS_PER_MINUTE,\n MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;\n\n// actual modulo - handles negative numbers (for dates before 1970):\nfunction mod$1(dividend, divisor) {\n return ((dividend % divisor) + divisor) % divisor;\n}\n\nfunction localStartOfDate(y, m, d) {\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n return new Date(y + 400, m, d) - MS_PER_400_YEARS;\n } else {\n return new Date(y, m, d).valueOf();\n }\n}\n\nfunction utcStartOfDate(y, m, d) {\n // Date.UTC remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;\n } else {\n return Date.UTC(y, m, d);\n }\n}\n\nfunction startOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === 'millisecond' || !this.isValid()) {\n return this;\n }\n\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n switch (units) {\n case 'year':\n time = startOfDate(this.year(), 0, 1);\n break;\n case 'quarter':\n time = startOfDate(\n this.year(),\n this.month() - (this.month() % 3),\n 1\n );\n break;\n case 'month':\n time = startOfDate(this.year(), this.month(), 1);\n break;\n case 'week':\n time = startOfDate(\n this.year(),\n this.month(),\n this.date() - this.weekday()\n );\n break;\n case 'isoWeek':\n time = startOfDate(\n this.year(),\n this.month(),\n this.date() - (this.isoWeekday() - 1)\n );\n break;\n case 'day':\n case 'date':\n time = startOfDate(this.year(), this.month(), this.date());\n break;\n case 'hour':\n time = this._d.valueOf();\n time -= mod$1(\n time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n MS_PER_HOUR\n );\n break;\n case 'minute':\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_MINUTE);\n break;\n case 'second':\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_SECOND);\n break;\n }\n\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n}\n\nfunction endOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === 'millisecond' || !this.isValid()) {\n return this;\n }\n\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n switch (units) {\n case 'year':\n time = startOfDate(this.year() + 1, 0, 1) - 1;\n break;\n case 'quarter':\n time =\n startOfDate(\n this.year(),\n this.month() - (this.month() % 3) + 3,\n 1\n ) - 1;\n break;\n case 'month':\n time = startOfDate(this.year(), this.month() + 1, 1) - 1;\n break;\n case 'week':\n time =\n startOfDate(\n this.year(),\n this.month(),\n this.date() - this.weekday() + 7\n ) - 1;\n break;\n case 'isoWeek':\n time =\n startOfDate(\n this.year(),\n this.month(),\n this.date() - (this.isoWeekday() - 1) + 7\n ) - 1;\n break;\n case 'day':\n case 'date':\n time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;\n break;\n case 'hour':\n time = this._d.valueOf();\n time +=\n MS_PER_HOUR -\n mod$1(\n time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n MS_PER_HOUR\n ) -\n 1;\n break;\n case 'minute':\n time = this._d.valueOf();\n time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;\n break;\n case 'second':\n time = this._d.valueOf();\n time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;\n break;\n }\n\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n}\n\nfunction valueOf() {\n return this._d.valueOf() - (this._offset || 0) * 60000;\n}\n\nfunction unix() {\n return Math.floor(this.valueOf() / 1000);\n}\n\nfunction toDate() {\n return new Date(this.valueOf());\n}\n\nfunction toArray() {\n var m = this;\n return [\n m.year(),\n m.month(),\n m.date(),\n m.hour(),\n m.minute(),\n m.second(),\n m.millisecond(),\n ];\n}\n\nfunction toObject() {\n var m = this;\n return {\n years: m.year(),\n months: m.month(),\n date: m.date(),\n hours: m.hours(),\n minutes: m.minutes(),\n seconds: m.seconds(),\n milliseconds: m.milliseconds(),\n };\n}\n\nfunction toJSON() {\n // new Date(NaN).toJSON() === null\n return this.isValid() ? this.toISOString() : null;\n}\n\nfunction isValid$2() {\n return isValid(this);\n}\n\nfunction parsingFlags() {\n return extend({}, getParsingFlags(this));\n}\n\nfunction invalidAt() {\n return getParsingFlags(this).overflow;\n}\n\nfunction creationData() {\n return {\n input: this._i,\n format: this._f,\n locale: this._locale,\n isUTC: this._isUTC,\n strict: this._strict,\n };\n}\n\naddFormatToken('N', 0, 0, 'eraAbbr');\naddFormatToken('NN', 0, 0, 'eraAbbr');\naddFormatToken('NNN', 0, 0, 'eraAbbr');\naddFormatToken('NNNN', 0, 0, 'eraName');\naddFormatToken('NNNNN', 0, 0, 'eraNarrow');\n\naddFormatToken('y', ['y', 1], 'yo', 'eraYear');\naddFormatToken('y', ['yy', 2], 0, 'eraYear');\naddFormatToken('y', ['yyy', 3], 0, 'eraYear');\naddFormatToken('y', ['yyyy', 4], 0, 'eraYear');\n\naddRegexToken('N', matchEraAbbr);\naddRegexToken('NN', matchEraAbbr);\naddRegexToken('NNN', matchEraAbbr);\naddRegexToken('NNNN', matchEraName);\naddRegexToken('NNNNN', matchEraNarrow);\n\naddParseToken(\n ['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],\n function (input, array, config, token) {\n var era = config._locale.erasParse(input, token, config._strict);\n if (era) {\n getParsingFlags(config).era = era;\n } else {\n getParsingFlags(config).invalidEra = input;\n }\n }\n);\n\naddRegexToken('y', matchUnsigned);\naddRegexToken('yy', matchUnsigned);\naddRegexToken('yyy', matchUnsigned);\naddRegexToken('yyyy', matchUnsigned);\naddRegexToken('yo', matchEraYearOrdinal);\n\naddParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);\naddParseToken(['yo'], function (input, array, config, token) {\n var match;\n if (config._locale._eraYearOrdinalRegex) {\n match = input.match(config._locale._eraYearOrdinalRegex);\n }\n\n if (config._locale.eraYearOrdinalParse) {\n array[YEAR] = config._locale.eraYearOrdinalParse(input, match);\n } else {\n array[YEAR] = parseInt(input, 10);\n }\n});\n\nfunction localeEras(m, format) {\n var i,\n l,\n date,\n eras = this._eras || getLocale('en')._eras;\n for (i = 0, l = eras.length; i < l; ++i) {\n switch (typeof eras[i].since) {\n case 'string':\n // truncate time\n date = hooks(eras[i].since).startOf('day');\n eras[i].since = date.valueOf();\n break;\n }\n\n switch (typeof eras[i].until) {\n case 'undefined':\n eras[i].until = +Infinity;\n break;\n case 'string':\n // truncate time\n date = hooks(eras[i].until).startOf('day').valueOf();\n eras[i].until = date.valueOf();\n break;\n }\n }\n return eras;\n}\n\nfunction localeErasParse(eraName, format, strict) {\n var i,\n l,\n eras = this.eras(),\n name,\n abbr,\n narrow;\n eraName = eraName.toUpperCase();\n\n for (i = 0, l = eras.length; i < l; ++i) {\n name = eras[i].name.toUpperCase();\n abbr = eras[i].abbr.toUpperCase();\n narrow = eras[i].narrow.toUpperCase();\n\n if (strict) {\n switch (format) {\n case 'N':\n case 'NN':\n case 'NNN':\n if (abbr === eraName) {\n return eras[i];\n }\n break;\n\n case 'NNNN':\n if (name === eraName) {\n return eras[i];\n }\n break;\n\n case 'NNNNN':\n if (narrow === eraName) {\n return eras[i];\n }\n break;\n }\n } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {\n return eras[i];\n }\n }\n}\n\nfunction localeErasConvertYear(era, year) {\n var dir = era.since <= era.until ? +1 : -1;\n if (year === undefined) {\n return hooks(era.since).year();\n } else {\n return hooks(era.since).year() + (year - era.offset) * dir;\n }\n}\n\nfunction getEraName() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].name;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].name;\n }\n }\n\n return '';\n}\n\nfunction getEraNarrow() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].narrow;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].narrow;\n }\n }\n\n return '';\n}\n\nfunction getEraAbbr() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].abbr;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].abbr;\n }\n }\n\n return '';\n}\n\nfunction getEraYear() {\n var i,\n l,\n dir,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n dir = eras[i].since <= eras[i].until ? +1 : -1;\n\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (\n (eras[i].since <= val && val <= eras[i].until) ||\n (eras[i].until <= val && val <= eras[i].since)\n ) {\n return (\n (this.year() - hooks(eras[i].since).year()) * dir +\n eras[i].offset\n );\n }\n }\n\n return this.year();\n}\n\nfunction erasNameRegex(isStrict) {\n if (!hasOwnProp(this, '_erasNameRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasNameRegex : this._erasRegex;\n}\n\nfunction erasAbbrRegex(isStrict) {\n if (!hasOwnProp(this, '_erasAbbrRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasAbbrRegex : this._erasRegex;\n}\n\nfunction erasNarrowRegex(isStrict) {\n if (!hasOwnProp(this, '_erasNarrowRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasNarrowRegex : this._erasRegex;\n}\n\nfunction matchEraAbbr(isStrict, locale) {\n return locale.erasAbbrRegex(isStrict);\n}\n\nfunction matchEraName(isStrict, locale) {\n return locale.erasNameRegex(isStrict);\n}\n\nfunction matchEraNarrow(isStrict, locale) {\n return locale.erasNarrowRegex(isStrict);\n}\n\nfunction matchEraYearOrdinal(isStrict, locale) {\n return locale._eraYearOrdinalRegex || matchUnsigned;\n}\n\nfunction computeErasParse() {\n var abbrPieces = [],\n namePieces = [],\n narrowPieces = [],\n mixedPieces = [],\n i,\n l,\n erasName,\n erasAbbr,\n erasNarrow,\n eras = this.eras();\n\n for (i = 0, l = eras.length; i < l; ++i) {\n erasName = regexEscape(eras[i].name);\n erasAbbr = regexEscape(eras[i].abbr);\n erasNarrow = regexEscape(eras[i].narrow);\n\n namePieces.push(erasName);\n abbrPieces.push(erasAbbr);\n narrowPieces.push(erasNarrow);\n mixedPieces.push(erasName);\n mixedPieces.push(erasAbbr);\n mixedPieces.push(erasNarrow);\n }\n\n this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');\n this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');\n this._erasNarrowRegex = new RegExp(\n '^(' + narrowPieces.join('|') + ')',\n 'i'\n );\n}\n\n// FORMATTING\n\naddFormatToken(0, ['gg', 2], 0, function () {\n return this.weekYear() % 100;\n});\n\naddFormatToken(0, ['GG', 2], 0, function () {\n return this.isoWeekYear() % 100;\n});\n\nfunction addWeekYearFormatToken(token, getter) {\n addFormatToken(0, [token, token.length], 0, getter);\n}\n\naddWeekYearFormatToken('gggg', 'weekYear');\naddWeekYearFormatToken('ggggg', 'weekYear');\naddWeekYearFormatToken('GGGG', 'isoWeekYear');\naddWeekYearFormatToken('GGGGG', 'isoWeekYear');\n\n// ALIASES\n\n// PARSING\n\naddRegexToken('G', matchSigned);\naddRegexToken('g', matchSigned);\naddRegexToken('GG', match1to2, match2);\naddRegexToken('gg', match1to2, match2);\naddRegexToken('GGGG', match1to4, match4);\naddRegexToken('gggg', match1to4, match4);\naddRegexToken('GGGGG', match1to6, match6);\naddRegexToken('ggggg', match1to6, match6);\n\naddWeekParseToken(\n ['gggg', 'ggggg', 'GGGG', 'GGGGG'],\n function (input, week, config, token) {\n week[token.substr(0, 2)] = toInt(input);\n }\n);\n\naddWeekParseToken(['gg', 'GG'], function (input, week, config, token) {\n week[token] = hooks.parseTwoDigitYear(input);\n});\n\n// MOMENTS\n\nfunction getSetWeekYear(input) {\n return getSetWeekYearHelper.call(\n this,\n input,\n this.week(),\n this.weekday() + this.localeData()._week.dow,\n this.localeData()._week.dow,\n this.localeData()._week.doy\n );\n}\n\nfunction getSetISOWeekYear(input) {\n return getSetWeekYearHelper.call(\n this,\n input,\n this.isoWeek(),\n this.isoWeekday(),\n 1,\n 4\n );\n}\n\nfunction getISOWeeksInYear() {\n return weeksInYear(this.year(), 1, 4);\n}\n\nfunction getISOWeeksInISOWeekYear() {\n return weeksInYear(this.isoWeekYear(), 1, 4);\n}\n\nfunction getWeeksInYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);\n}\n\nfunction getWeeksInWeekYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);\n}\n\nfunction getSetWeekYearHelper(input, week, weekday, dow, doy) {\n var weeksTarget;\n if (input == null) {\n return weekOfYear(this, dow, doy).year;\n } else {\n weeksTarget = weeksInYear(input, dow, doy);\n if (week > weeksTarget) {\n week = weeksTarget;\n }\n return setWeekAll.call(this, input, week, weekday, dow, doy);\n }\n}\n\nfunction setWeekAll(weekYear, week, weekday, dow, doy) {\n var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),\n date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);\n\n this.year(date.getUTCFullYear());\n this.month(date.getUTCMonth());\n this.date(date.getUTCDate());\n return this;\n}\n\n// FORMATTING\n\naddFormatToken('Q', 0, 'Qo', 'quarter');\n\n// PARSING\n\naddRegexToken('Q', match1);\naddParseToken('Q', function (input, array) {\n array[MONTH] = (toInt(input) - 1) * 3;\n});\n\n// MOMENTS\n\nfunction getSetQuarter(input) {\n return input == null\n ? Math.ceil((this.month() + 1) / 3)\n : this.month((input - 1) * 3 + (this.month() % 3));\n}\n\n// FORMATTING\n\naddFormatToken('D', ['DD', 2], 'Do', 'date');\n\n// PARSING\n\naddRegexToken('D', match1to2, match1to2NoLeadingZero);\naddRegexToken('DD', match1to2, match2);\naddRegexToken('Do', function (isStrict, locale) {\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n return isStrict\n ? locale._dayOfMonthOrdinalParse || locale._ordinalParse\n : locale._dayOfMonthOrdinalParseLenient;\n});\n\naddParseToken(['D', 'DD'], DATE);\naddParseToken('Do', function (input, array) {\n array[DATE] = toInt(input.match(match1to2)[0]);\n});\n\n// MOMENTS\n\nvar getSetDayOfMonth = makeGetSet('Date', true);\n\n// FORMATTING\n\naddFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');\n\n// PARSING\n\naddRegexToken('DDD', match1to3);\naddRegexToken('DDDD', match3);\naddParseToken(['DDD', 'DDDD'], function (input, array, config) {\n config._dayOfYear = toInt(input);\n});\n\n// HELPERS\n\n// MOMENTS\n\nfunction getSetDayOfYear(input) {\n var dayOfYear =\n Math.round(\n (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5\n ) + 1;\n return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');\n}\n\n// FORMATTING\n\naddFormatToken('m', ['mm', 2], 0, 'minute');\n\n// PARSING\n\naddRegexToken('m', match1to2, match1to2HasZero);\naddRegexToken('mm', match1to2, match2);\naddParseToken(['m', 'mm'], MINUTE);\n\n// MOMENTS\n\nvar getSetMinute = makeGetSet('Minutes', false);\n\n// FORMATTING\n\naddFormatToken('s', ['ss', 2], 0, 'second');\n\n// PARSING\n\naddRegexToken('s', match1to2, match1to2HasZero);\naddRegexToken('ss', match1to2, match2);\naddParseToken(['s', 'ss'], SECOND);\n\n// MOMENTS\n\nvar getSetSecond = makeGetSet('Seconds', false);\n\n// FORMATTING\n\naddFormatToken('S', 0, 0, function () {\n return ~~(this.millisecond() / 100);\n});\n\naddFormatToken(0, ['SS', 2], 0, function () {\n return ~~(this.millisecond() / 10);\n});\n\naddFormatToken(0, ['SSS', 3], 0, 'millisecond');\naddFormatToken(0, ['SSSS', 4], 0, function () {\n return this.millisecond() * 10;\n});\naddFormatToken(0, ['SSSSS', 5], 0, function () {\n return this.millisecond() * 100;\n});\naddFormatToken(0, ['SSSSSS', 6], 0, function () {\n return this.millisecond() * 1000;\n});\naddFormatToken(0, ['SSSSSSS', 7], 0, function () {\n return this.millisecond() * 10000;\n});\naddFormatToken(0, ['SSSSSSSS', 8], 0, function () {\n return this.millisecond() * 100000;\n});\naddFormatToken(0, ['SSSSSSSSS', 9], 0, function () {\n return this.millisecond() * 1000000;\n});\n\n// PARSING\n\naddRegexToken('S', match1to3, match1);\naddRegexToken('SS', match1to3, match2);\naddRegexToken('SSS', match1to3, match3);\n\nvar token, getSetMillisecond;\nfor (token = 'SSSS'; token.length <= 9; token += 'S') {\n addRegexToken(token, matchUnsigned);\n}\n\nfunction parseMs(input, array) {\n array[MILLISECOND] = toInt(('0.' + input) * 1000);\n}\n\nfor (token = 'S'; token.length <= 9; token += 'S') {\n addParseToken(token, parseMs);\n}\n\ngetSetMillisecond = makeGetSet('Milliseconds', false);\n\n// FORMATTING\n\naddFormatToken('z', 0, 0, 'zoneAbbr');\naddFormatToken('zz', 0, 0, 'zoneName');\n\n// MOMENTS\n\nfunction getZoneAbbr() {\n return this._isUTC ? 'UTC' : '';\n}\n\nfunction getZoneName() {\n return this._isUTC ? 'Coordinated Universal Time' : '';\n}\n\nvar proto = Moment.prototype;\n\nproto.add = add;\nproto.calendar = calendar$1;\nproto.clone = clone;\nproto.diff = diff;\nproto.endOf = endOf;\nproto.format = format;\nproto.from = from;\nproto.fromNow = fromNow;\nproto.to = to;\nproto.toNow = toNow;\nproto.get = stringGet;\nproto.invalidAt = invalidAt;\nproto.isAfter = isAfter;\nproto.isBefore = isBefore;\nproto.isBetween = isBetween;\nproto.isSame = isSame;\nproto.isSameOrAfter = isSameOrAfter;\nproto.isSameOrBefore = isSameOrBefore;\nproto.isValid = isValid$2;\nproto.lang = lang;\nproto.locale = locale;\nproto.localeData = localeData;\nproto.max = prototypeMax;\nproto.min = prototypeMin;\nproto.parsingFlags = parsingFlags;\nproto.set = stringSet;\nproto.startOf = startOf;\nproto.subtract = subtract;\nproto.toArray = toArray;\nproto.toObject = toObject;\nproto.toDate = toDate;\nproto.toISOString = toISOString;\nproto.inspect = inspect;\nif (typeof Symbol !== 'undefined' && Symbol.for != null) {\n proto[Symbol.for('nodejs.util.inspect.custom')] = function () {\n return 'Moment<' + this.format() + '>';\n };\n}\nproto.toJSON = toJSON;\nproto.toString = toString;\nproto.unix = unix;\nproto.valueOf = valueOf;\nproto.creationData = creationData;\nproto.eraName = getEraName;\nproto.eraNarrow = getEraNarrow;\nproto.eraAbbr = getEraAbbr;\nproto.eraYear = getEraYear;\nproto.year = getSetYear;\nproto.isLeapYear = getIsLeapYear;\nproto.weekYear = getSetWeekYear;\nproto.isoWeekYear = getSetISOWeekYear;\nproto.quarter = proto.quarters = getSetQuarter;\nproto.month = getSetMonth;\nproto.daysInMonth = getDaysInMonth;\nproto.week = proto.weeks = getSetWeek;\nproto.isoWeek = proto.isoWeeks = getSetISOWeek;\nproto.weeksInYear = getWeeksInYear;\nproto.weeksInWeekYear = getWeeksInWeekYear;\nproto.isoWeeksInYear = getISOWeeksInYear;\nproto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;\nproto.date = getSetDayOfMonth;\nproto.day = proto.days = getSetDayOfWeek;\nproto.weekday = getSetLocaleDayOfWeek;\nproto.isoWeekday = getSetISODayOfWeek;\nproto.dayOfYear = getSetDayOfYear;\nproto.hour = proto.hours = getSetHour;\nproto.minute = proto.minutes = getSetMinute;\nproto.second = proto.seconds = getSetSecond;\nproto.millisecond = proto.milliseconds = getSetMillisecond;\nproto.utcOffset = getSetOffset;\nproto.utc = setOffsetToUTC;\nproto.local = setOffsetToLocal;\nproto.parseZone = setOffsetToParsedOffset;\nproto.hasAlignedHourOffset = hasAlignedHourOffset;\nproto.isDST = isDaylightSavingTime;\nproto.isLocal = isLocal;\nproto.isUtcOffset = isUtcOffset;\nproto.isUtc = isUtc;\nproto.isUTC = isUtc;\nproto.zoneAbbr = getZoneAbbr;\nproto.zoneName = getZoneName;\nproto.dates = deprecate(\n 'dates accessor is deprecated. Use date instead.',\n getSetDayOfMonth\n);\nproto.months = deprecate(\n 'months accessor is deprecated. Use month instead',\n getSetMonth\n);\nproto.years = deprecate(\n 'years accessor is deprecated. Use year instead',\n getSetYear\n);\nproto.zone = deprecate(\n 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',\n getSetZone\n);\nproto.isDSTShifted = deprecate(\n 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',\n isDaylightSavingTimeShifted\n);\n\nfunction createUnix(input) {\n return createLocal(input * 1000);\n}\n\nfunction createInZone() {\n return createLocal.apply(null, arguments).parseZone();\n}\n\nfunction preParsePostFormat(string) {\n return string;\n}\n\nvar proto$1 = Locale.prototype;\n\nproto$1.calendar = calendar;\nproto$1.longDateFormat = longDateFormat;\nproto$1.invalidDate = invalidDate;\nproto$1.ordinal = ordinal;\nproto$1.preparse = preParsePostFormat;\nproto$1.postformat = preParsePostFormat;\nproto$1.relativeTime = relativeTime;\nproto$1.pastFuture = pastFuture;\nproto$1.set = set;\nproto$1.eras = localeEras;\nproto$1.erasParse = localeErasParse;\nproto$1.erasConvertYear = localeErasConvertYear;\nproto$1.erasAbbrRegex = erasAbbrRegex;\nproto$1.erasNameRegex = erasNameRegex;\nproto$1.erasNarrowRegex = erasNarrowRegex;\n\nproto$1.months = localeMonths;\nproto$1.monthsShort = localeMonthsShort;\nproto$1.monthsParse = localeMonthsParse;\nproto$1.monthsRegex = monthsRegex;\nproto$1.monthsShortRegex = monthsShortRegex;\nproto$1.week = localeWeek;\nproto$1.firstDayOfYear = localeFirstDayOfYear;\nproto$1.firstDayOfWeek = localeFirstDayOfWeek;\n\nproto$1.weekdays = localeWeekdays;\nproto$1.weekdaysMin = localeWeekdaysMin;\nproto$1.weekdaysShort = localeWeekdaysShort;\nproto$1.weekdaysParse = localeWeekdaysParse;\n\nproto$1.weekdaysRegex = weekdaysRegex;\nproto$1.weekdaysShortRegex = weekdaysShortRegex;\nproto$1.weekdaysMinRegex = weekdaysMinRegex;\n\nproto$1.isPM = localeIsPM;\nproto$1.meridiem = localeMeridiem;\n\nfunction get$1(format, index, field, setter) {\n var locale = getLocale(),\n utc = createUTC().set(setter, index);\n return locale[field](utc, format);\n}\n\nfunction listMonthsImpl(format, index, field) {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n\n if (index != null) {\n return get$1(format, index, field, 'month');\n }\n\n var i,\n out = [];\n for (i = 0; i < 12; i++) {\n out[i] = get$1(format, i, field, 'month');\n }\n return out;\n}\n\n// ()\n// (5)\n// (fmt, 5)\n// (fmt)\n// (true)\n// (true, 5)\n// (true, fmt, 5)\n// (true, fmt)\nfunction listWeekdaysImpl(localeSorted, format, index, field) {\n if (typeof localeSorted === 'boolean') {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n } else {\n format = localeSorted;\n index = format;\n localeSorted = false;\n\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n }\n\n var locale = getLocale(),\n shift = localeSorted ? locale._week.dow : 0,\n i,\n out = [];\n\n if (index != null) {\n return get$1(format, (index + shift) % 7, field, 'day');\n }\n\n for (i = 0; i < 7; i++) {\n out[i] = get$1(format, (i + shift) % 7, field, 'day');\n }\n return out;\n}\n\nfunction listMonths(format, index) {\n return listMonthsImpl(format, index, 'months');\n}\n\nfunction listMonthsShort(format, index) {\n return listMonthsImpl(format, index, 'monthsShort');\n}\n\nfunction listWeekdays(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdays');\n}\n\nfunction listWeekdaysShort(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');\n}\n\nfunction listWeekdaysMin(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');\n}\n\ngetSetGlobalLocale('en', {\n eras: [\n {\n since: '0001-01-01',\n until: +Infinity,\n offset: 1,\n name: 'Anno Domini',\n narrow: 'AD',\n abbr: 'AD',\n },\n {\n since: '0000-12-31',\n until: -Infinity,\n offset: 1,\n name: 'Before Christ',\n narrow: 'BC',\n abbr: 'BC',\n },\n ],\n dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n toInt((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n});\n\n// Side effect imports\n\nhooks.lang = deprecate(\n 'moment.lang is deprecated. Use moment.locale instead.',\n getSetGlobalLocale\n);\nhooks.langData = deprecate(\n 'moment.langData is deprecated. Use moment.localeData instead.',\n getLocale\n);\n\nvar mathAbs = Math.abs;\n\nfunction abs() {\n var data = this._data;\n\n this._milliseconds = mathAbs(this._milliseconds);\n this._days = mathAbs(this._days);\n this._months = mathAbs(this._months);\n\n data.milliseconds = mathAbs(data.milliseconds);\n data.seconds = mathAbs(data.seconds);\n data.minutes = mathAbs(data.minutes);\n data.hours = mathAbs(data.hours);\n data.months = mathAbs(data.months);\n data.years = mathAbs(data.years);\n\n return this;\n}\n\nfunction addSubtract$1(duration, input, value, direction) {\n var other = createDuration(input, value);\n\n duration._milliseconds += direction * other._milliseconds;\n duration._days += direction * other._days;\n duration._months += direction * other._months;\n\n return duration._bubble();\n}\n\n// supports only 2.0-style add(1, 's') or add(duration)\nfunction add$1(input, value) {\n return addSubtract$1(this, input, value, 1);\n}\n\n// supports only 2.0-style subtract(1, 's') or subtract(duration)\nfunction subtract$1(input, value) {\n return addSubtract$1(this, input, value, -1);\n}\n\nfunction absCeil(number) {\n if (number < 0) {\n return Math.floor(number);\n } else {\n return Math.ceil(number);\n }\n}\n\nfunction bubble() {\n var milliseconds = this._milliseconds,\n days = this._days,\n months = this._months,\n data = this._data,\n seconds,\n minutes,\n hours,\n years,\n monthsFromDays;\n\n // if we have a mix of positive and negative values, bubble down first\n // check: https://github.com/moment/moment/issues/2166\n if (\n !(\n (milliseconds >= 0 && days >= 0 && months >= 0) ||\n (milliseconds <= 0 && days <= 0 && months <= 0)\n )\n ) {\n milliseconds += absCeil(monthsToDays(months) + days) * 864e5;\n days = 0;\n months = 0;\n }\n\n // The following code bubbles up values, see the tests for\n // examples of what that means.\n data.milliseconds = milliseconds % 1000;\n\n seconds = absFloor(milliseconds / 1000);\n data.seconds = seconds % 60;\n\n minutes = absFloor(seconds / 60);\n data.minutes = minutes % 60;\n\n hours = absFloor(minutes / 60);\n data.hours = hours % 24;\n\n days += absFloor(hours / 24);\n\n // convert days to months\n monthsFromDays = absFloor(daysToMonths(days));\n months += monthsFromDays;\n days -= absCeil(monthsToDays(monthsFromDays));\n\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n\n data.days = days;\n data.months = months;\n data.years = years;\n\n return this;\n}\n\nfunction daysToMonths(days) {\n // 400 years have 146097 days (taking into account leap year rules)\n // 400 years have 12 months === 4800\n return (days * 4800) / 146097;\n}\n\nfunction monthsToDays(months) {\n // the reverse of daysToMonths\n return (months * 146097) / 4800;\n}\n\nfunction as(units) {\n if (!this.isValid()) {\n return NaN;\n }\n var days,\n months,\n milliseconds = this._milliseconds;\n\n units = normalizeUnits(units);\n\n if (units === 'month' || units === 'quarter' || units === 'year') {\n days = this._days + milliseconds / 864e5;\n months = this._months + daysToMonths(days);\n switch (units) {\n case 'month':\n return months;\n case 'quarter':\n return months / 3;\n case 'year':\n return months / 12;\n }\n } else {\n // handle milliseconds separately because of floating point math errors (issue #1867)\n days = this._days + Math.round(monthsToDays(this._months));\n switch (units) {\n case 'week':\n return days / 7 + milliseconds / 6048e5;\n case 'day':\n return days + milliseconds / 864e5;\n case 'hour':\n return days * 24 + milliseconds / 36e5;\n case 'minute':\n return days * 1440 + milliseconds / 6e4;\n case 'second':\n return days * 86400 + milliseconds / 1000;\n // Math.floor prevents floating point math errors here\n case 'millisecond':\n return Math.floor(days * 864e5) + milliseconds;\n default:\n throw new Error('Unknown unit ' + units);\n }\n }\n}\n\nfunction makeAs(alias) {\n return function () {\n return this.as(alias);\n };\n}\n\nvar asMilliseconds = makeAs('ms'),\n asSeconds = makeAs('s'),\n asMinutes = makeAs('m'),\n asHours = makeAs('h'),\n asDays = makeAs('d'),\n asWeeks = makeAs('w'),\n asMonths = makeAs('M'),\n asQuarters = makeAs('Q'),\n asYears = makeAs('y'),\n valueOf$1 = asMilliseconds;\n\nfunction clone$1() {\n return createDuration(this);\n}\n\nfunction get$2(units) {\n units = normalizeUnits(units);\n return this.isValid() ? this[units + 's']() : NaN;\n}\n\nfunction makeGetter(name) {\n return function () {\n return this.isValid() ? this._data[name] : NaN;\n };\n}\n\nvar milliseconds = makeGetter('milliseconds'),\n seconds = makeGetter('seconds'),\n minutes = makeGetter('minutes'),\n hours = makeGetter('hours'),\n days = makeGetter('days'),\n months = makeGetter('months'),\n years = makeGetter('years');\n\nfunction weeks() {\n return absFloor(this.days() / 7);\n}\n\nvar round = Math.round,\n thresholds = {\n ss: 44, // a few seconds to seconds\n s: 45, // seconds to minute\n m: 45, // minutes to hour\n h: 22, // hours to day\n d: 26, // days to month/week\n w: null, // weeks to month\n M: 11, // months to year\n };\n\n// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize\nfunction substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {\n return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);\n}\n\nfunction relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {\n var duration = createDuration(posNegDuration).abs(),\n seconds = round(duration.as('s')),\n minutes = round(duration.as('m')),\n hours = round(duration.as('h')),\n days = round(duration.as('d')),\n months = round(duration.as('M')),\n weeks = round(duration.as('w')),\n years = round(duration.as('y')),\n a =\n (seconds <= thresholds.ss && ['s', seconds]) ||\n (seconds < thresholds.s && ['ss', seconds]) ||\n (minutes <= 1 && ['m']) ||\n (minutes < thresholds.m && ['mm', minutes]) ||\n (hours <= 1 && ['h']) ||\n (hours < thresholds.h && ['hh', hours]) ||\n (days <= 1 && ['d']) ||\n (days < thresholds.d && ['dd', days]);\n\n if (thresholds.w != null) {\n a =\n a ||\n (weeks <= 1 && ['w']) ||\n (weeks < thresholds.w && ['ww', weeks]);\n }\n a = a ||\n (months <= 1 && ['M']) ||\n (months < thresholds.M && ['MM', months]) ||\n (years <= 1 && ['y']) || ['yy', years];\n\n a[2] = withoutSuffix;\n a[3] = +posNegDuration > 0;\n a[4] = locale;\n return substituteTimeAgo.apply(null, a);\n}\n\n// This function allows you to set the rounding function for relative time strings\nfunction getSetRelativeTimeRounding(roundingFunction) {\n if (roundingFunction === undefined) {\n return round;\n }\n if (typeof roundingFunction === 'function') {\n round = roundingFunction;\n return true;\n }\n return false;\n}\n\n// This function allows you to set a threshold for relative time strings\nfunction getSetRelativeTimeThreshold(threshold, limit) {\n if (thresholds[threshold] === undefined) {\n return false;\n }\n if (limit === undefined) {\n return thresholds[threshold];\n }\n thresholds[threshold] = limit;\n if (threshold === 's') {\n thresholds.ss = limit - 1;\n }\n return true;\n}\n\nfunction humanize(argWithSuffix, argThresholds) {\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var withSuffix = false,\n th = thresholds,\n locale,\n output;\n\n if (typeof argWithSuffix === 'object') {\n argThresholds = argWithSuffix;\n argWithSuffix = false;\n }\n if (typeof argWithSuffix === 'boolean') {\n withSuffix = argWithSuffix;\n }\n if (typeof argThresholds === 'object') {\n th = Object.assign({}, thresholds, argThresholds);\n if (argThresholds.s != null && argThresholds.ss == null) {\n th.ss = argThresholds.s - 1;\n }\n }\n\n locale = this.localeData();\n output = relativeTime$1(this, !withSuffix, th, locale);\n\n if (withSuffix) {\n output = locale.pastFuture(+this, output);\n }\n\n return locale.postformat(output);\n}\n\nvar abs$1 = Math.abs;\n\nfunction sign(x) {\n return (x > 0) - (x < 0) || +x;\n}\n\nfunction toISOString$1() {\n // for ISO strings we do not use the normal bubbling rules:\n // * milliseconds bubble up until they become hours\n // * days do not bubble at all\n // * months bubble up until they become years\n // This is because there is no context-free conversion between hours and days\n // (think of clock changes)\n // and also not between days and months (28-31 days per month)\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var seconds = abs$1(this._milliseconds) / 1000,\n days = abs$1(this._days),\n months = abs$1(this._months),\n minutes,\n hours,\n years,\n s,\n total = this.asSeconds(),\n totalSign,\n ymSign,\n daysSign,\n hmsSign;\n\n if (!total) {\n // this is the same as C#'s (Noda) and python (isodate)...\n // but not other JS (goog.date)\n return 'P0D';\n }\n\n // 3600 seconds -> 60 minutes -> 1 hour\n minutes = absFloor(seconds / 60);\n hours = absFloor(minutes / 60);\n seconds %= 60;\n minutes %= 60;\n\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n\n // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js\n s = seconds ? seconds.toFixed(3).replace(/\\.?0+$/, '') : '';\n\n totalSign = total < 0 ? '-' : '';\n ymSign = sign(this._months) !== sign(total) ? '-' : '';\n daysSign = sign(this._days) !== sign(total) ? '-' : '';\n hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';\n\n return (\n totalSign +\n 'P' +\n (years ? ymSign + years + 'Y' : '') +\n (months ? ymSign + months + 'M' : '') +\n (days ? daysSign + days + 'D' : '') +\n (hours || minutes || seconds ? 'T' : '') +\n (hours ? hmsSign + hours + 'H' : '') +\n (minutes ? hmsSign + minutes + 'M' : '') +\n (seconds ? hmsSign + s + 'S' : '')\n );\n}\n\nvar proto$2 = Duration.prototype;\n\nproto$2.isValid = isValid$1;\nproto$2.abs = abs;\nproto$2.add = add$1;\nproto$2.subtract = subtract$1;\nproto$2.as = as;\nproto$2.asMilliseconds = asMilliseconds;\nproto$2.asSeconds = asSeconds;\nproto$2.asMinutes = asMinutes;\nproto$2.asHours = asHours;\nproto$2.asDays = asDays;\nproto$2.asWeeks = asWeeks;\nproto$2.asMonths = asMonths;\nproto$2.asQuarters = asQuarters;\nproto$2.asYears = asYears;\nproto$2.valueOf = valueOf$1;\nproto$2._bubble = bubble;\nproto$2.clone = clone$1;\nproto$2.get = get$2;\nproto$2.milliseconds = milliseconds;\nproto$2.seconds = seconds;\nproto$2.minutes = minutes;\nproto$2.hours = hours;\nproto$2.days = days;\nproto$2.weeks = weeks;\nproto$2.months = months;\nproto$2.years = years;\nproto$2.humanize = humanize;\nproto$2.toISOString = toISOString$1;\nproto$2.toString = toISOString$1;\nproto$2.toJSON = toISOString$1;\nproto$2.locale = locale;\nproto$2.localeData = localeData;\n\nproto$2.toIsoString = deprecate(\n 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',\n toISOString$1\n);\nproto$2.lang = lang;\n\n// FORMATTING\n\naddFormatToken('X', 0, 0, 'unix');\naddFormatToken('x', 0, 0, 'valueOf');\n\n// PARSING\n\naddRegexToken('x', matchSigned);\naddRegexToken('X', matchTimestamp);\naddParseToken('X', function (input, array, config) {\n config._d = new Date(parseFloat(input) * 1000);\n});\naddParseToken('x', function (input, array, config) {\n config._d = new Date(toInt(input));\n});\n\n//! moment.js\n\nhooks.version = '2.30.1';\n\nsetHookCallback(createLocal);\n\nhooks.fn = proto;\nhooks.min = min;\nhooks.max = max;\nhooks.now = now;\nhooks.utc = createUTC;\nhooks.unix = createUnix;\nhooks.months = listMonths;\nhooks.isDate = isDate;\nhooks.locale = getSetGlobalLocale;\nhooks.invalid = createInvalid;\nhooks.duration = createDuration;\nhooks.isMoment = isMoment;\nhooks.weekdays = listWeekdays;\nhooks.parseZone = createInZone;\nhooks.localeData = getLocale;\nhooks.isDuration = isDuration;\nhooks.monthsShort = listMonthsShort;\nhooks.weekdaysMin = listWeekdaysMin;\nhooks.defineLocale = defineLocale;\nhooks.updateLocale = updateLocale;\nhooks.locales = listLocales;\nhooks.weekdaysShort = listWeekdaysShort;\nhooks.normalizeUnits = normalizeUnits;\nhooks.relativeTimeRounding = getSetRelativeTimeRounding;\nhooks.relativeTimeThreshold = getSetRelativeTimeThreshold;\nhooks.calendarFormat = getCalendarFormat;\nhooks.prototype = proto;\n\n// currently HTML5 input type only supports 24-hour formats\nhooks.HTML5_FMT = {\n DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // \n DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // \n DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // \n DATE: 'YYYY-MM-DD', // \n TIME: 'HH:mm', // \n TIME_SECONDS: 'HH:mm:ss', // \n TIME_MS: 'HH:mm:ss.SSS', // \n WEEK: 'GGGG-[W]WW', // \n MONTH: 'YYYY-MM', // \n};\n\nexport default hooks;\n","'use strict';\n\nvar toStr = Object.prototype.toString;\n\nmodule.exports = function isArguments(value) {\n\tvar str = toStr.call(value);\n\tvar isArgs = str === '[object Arguments]';\n\tif (!isArgs) {\n\t\tisArgs = str !== '[object Array]' &&\n\t\t\tvalue !== null &&\n\t\t\ttypeof value === 'object' &&\n\t\t\ttypeof value.length === 'number' &&\n\t\t\tvalue.length >= 0 &&\n\t\t\ttoStr.call(value.callee) === '[object Function]';\n\t}\n\treturn isArgs;\n};\n","'use strict';\n\nvar keysShim;\nif (!Object.keys) {\n\t// modified from https://github.com/es-shims/es5-shim\n\tvar has = Object.prototype.hasOwnProperty;\n\tvar toStr = Object.prototype.toString;\n\tvar isArgs = require('./isArguments'); // eslint-disable-line global-require\n\tvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\tvar hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString');\n\tvar hasProtoEnumBug = isEnumerable.call(function () {}, 'prototype');\n\tvar dontEnums = [\n\t\t'toString',\n\t\t'toLocaleString',\n\t\t'valueOf',\n\t\t'hasOwnProperty',\n\t\t'isPrototypeOf',\n\t\t'propertyIsEnumerable',\n\t\t'constructor'\n\t];\n\tvar equalsConstructorPrototype = function (o) {\n\t\tvar ctor = o.constructor;\n\t\treturn ctor && ctor.prototype === o;\n\t};\n\tvar excludedKeys = {\n\t\t$applicationCache: true,\n\t\t$console: true,\n\t\t$external: true,\n\t\t$frame: true,\n\t\t$frameElement: true,\n\t\t$frames: true,\n\t\t$innerHeight: true,\n\t\t$innerWidth: true,\n\t\t$onmozfullscreenchange: true,\n\t\t$onmozfullscreenerror: true,\n\t\t$outerHeight: true,\n\t\t$outerWidth: true,\n\t\t$pageXOffset: true,\n\t\t$pageYOffset: true,\n\t\t$parent: true,\n\t\t$scrollLeft: true,\n\t\t$scrollTop: true,\n\t\t$scrollX: true,\n\t\t$scrollY: true,\n\t\t$self: true,\n\t\t$webkitIndexedDB: true,\n\t\t$webkitStorageInfo: true,\n\t\t$window: true\n\t};\n\tvar hasAutomationEqualityBug = (function () {\n\t\t/* global window */\n\t\tif (typeof window === 'undefined') { return false; }\n\t\tfor (var k in window) {\n\t\t\ttry {\n\t\t\t\tif (!excludedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tequalsConstructorPrototype(window[k]);\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}());\n\tvar equalsConstructorPrototypeIfNotBuggy = function (o) {\n\t\t/* global window */\n\t\tif (typeof window === 'undefined' || !hasAutomationEqualityBug) {\n\t\t\treturn equalsConstructorPrototype(o);\n\t\t}\n\t\ttry {\n\t\t\treturn equalsConstructorPrototype(o);\n\t\t} catch (e) {\n\t\t\treturn false;\n\t\t}\n\t};\n\n\tkeysShim = function keys(object) {\n\t\tvar isObject = object !== null && typeof object === 'object';\n\t\tvar isFunction = toStr.call(object) === '[object Function]';\n\t\tvar isArguments = isArgs(object);\n\t\tvar isString = isObject && toStr.call(object) === '[object String]';\n\t\tvar theKeys = [];\n\n\t\tif (!isObject && !isFunction && !isArguments) {\n\t\t\tthrow new TypeError('Object.keys called on a non-object');\n\t\t}\n\n\t\tvar skipProto = hasProtoEnumBug && isFunction;\n\t\tif (isString && object.length > 0 && !has.call(object, 0)) {\n\t\t\tfor (var i = 0; i < object.length; ++i) {\n\t\t\t\ttheKeys.push(String(i));\n\t\t\t}\n\t\t}\n\n\t\tif (isArguments && object.length > 0) {\n\t\t\tfor (var j = 0; j < object.length; ++j) {\n\t\t\t\ttheKeys.push(String(j));\n\t\t\t}\n\t\t} else {\n\t\t\tfor (var name in object) {\n\t\t\t\tif (!(skipProto && name === 'prototype') && has.call(object, name)) {\n\t\t\t\t\ttheKeys.push(String(name));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (hasDontEnumBug) {\n\t\t\tvar skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);\n\n\t\t\tfor (var k = 0; k < dontEnums.length; ++k) {\n\t\t\t\tif (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) {\n\t\t\t\t\ttheKeys.push(dontEnums[k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn theKeys;\n\t};\n}\nmodule.exports = keysShim;\n","'use strict';\n\nvar slice = Array.prototype.slice;\nvar isArgs = require('./isArguments');\n\nvar origKeys = Object.keys;\nvar keysShim = origKeys ? function keys(o) { return origKeys(o); } : require('./implementation');\n\nvar originalKeys = Object.keys;\n\nkeysShim.shim = function shimObjectKeys() {\n\tif (Object.keys) {\n\t\tvar keysWorksWithArguments = (function () {\n\t\t\t// Safari 5.0 bug\n\t\t\tvar args = Object.keys(arguments);\n\t\t\treturn args && args.length === arguments.length;\n\t\t}(1, 2));\n\t\tif (!keysWorksWithArguments) {\n\t\t\tObject.keys = function keys(object) { // eslint-disable-line func-name-matching\n\t\t\t\tif (isArgs(object)) {\n\t\t\t\t\treturn originalKeys(slice.call(object));\n\t\t\t\t}\n\t\t\t\treturn originalKeys(object);\n\t\t\t};\n\t\t}\n\t} else {\n\t\tObject.keys = keysShim;\n\t}\n\treturn Object.keys || keysShim;\n};\n\nmodule.exports = keysShim;\n","'use strict';\n\n/** @type {import('.')} */\nmodule.exports = Error;\n","'use strict';\n\n/** @type {import('./eval')} */\nmodule.exports = EvalError;\n","'use strict';\n\n/** @type {import('./range')} */\nmodule.exports = RangeError;\n","'use strict';\n\n/** @type {import('./ref')} */\nmodule.exports = ReferenceError;\n","'use strict';\n\n/** @type {import('./syntax')} */\nmodule.exports = SyntaxError;\n","'use strict';\n\n/** @type {import('./type')} */\nmodule.exports = TypeError;\n","'use strict';\n\n/** @type {import('./uri')} */\nmodule.exports = URIError;\n","'use strict';\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n","'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n","'use strict';\n\nvar test = {\n\t__proto__: null,\n\tfoo: {}\n};\n\nvar $Object = Object;\n\n/** @type {import('.')} */\nmodule.exports = function hasProto() {\n\t// @ts-expect-error: TS errors on an inherited property for some reason\n\treturn { __proto__: test }.foo === test.foo\n\t\t&& !(test instanceof $Object);\n};\n","'use strict';\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar toStr = Object.prototype.toString;\nvar max = Math.max;\nvar funcType = '[object Function]';\n\nvar concatty = function concatty(a, b) {\n var arr = [];\n\n for (var i = 0; i < a.length; i += 1) {\n arr[i] = a[i];\n }\n for (var j = 0; j < b.length; j += 1) {\n arr[j + a.length] = b[j];\n }\n\n return arr;\n};\n\nvar slicy = function slicy(arrLike, offset) {\n var arr = [];\n for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {\n arr[j] = arrLike[i];\n }\n return arr;\n};\n\nvar joiny = function (arr, joiner) {\n var str = '';\n for (var i = 0; i < arr.length; i += 1) {\n str += arr[i];\n if (i + 1 < arr.length) {\n str += joiner;\n }\n }\n return str;\n};\n\nmodule.exports = function bind(that) {\n var target = this;\n if (typeof target !== 'function' || toStr.apply(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slicy(arguments, 1);\n\n var bound;\n var binder = function () {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n concatty(args, arguments)\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n }\n return target.apply(\n that,\n concatty(args, arguments)\n );\n\n };\n\n var boundLength = max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs[i] = '$' + i;\n }\n\n bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);\n\n if (target.prototype) {\n var Empty = function Empty() {};\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return bound;\n};\n","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = Function.prototype.bind || implementation;\n","'use strict';\n\nvar call = Function.prototype.call;\nvar $hasOwn = Object.prototype.hasOwnProperty;\nvar bind = require('function-bind');\n\n/** @type {import('.')} */\nmodule.exports = bind.call(call, $hasOwn);\n","'use strict';\n\nvar undefined;\n\nvar $Error = require('es-errors');\nvar $EvalError = require('es-errors/eval');\nvar $RangeError = require('es-errors/range');\nvar $ReferenceError = require('es-errors/ref');\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\nvar $URIError = require('es-errors/uri');\n\nvar $Function = Function;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\nvar hasProto = require('has-proto')();\n\nvar getProto = Object.getPrototypeOf || (\n\thasProto\n\t\t? function (x) { return x.__proto__; } // eslint-disable-line no-proto\n\t\t: null\n);\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t__proto__: null,\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': $Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': $EvalError,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': Object,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': $RangeError,\n\t'%ReferenceError%': $ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': $URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t__proto__: null,\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\nvar hasOwn = require('hasown');\nvar $concat = bind.call(Function.call, Array.prototype.concat);\nvar $spliceApply = bind.call(Function.apply, Array.prototype.splice);\nvar $replace = bind.call(Function.call, String.prototype.replace);\nvar $strSlice = bind.call(Function.call, String.prototype.slice);\nvar $exec = bind.call(Function.call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\n/** @type {import('.')} */\nvar $defineProperty = GetIntrinsic('%Object.defineProperty%', true) || false;\nif ($defineProperty) {\n\ttry {\n\t\t$defineProperty({}, 'a', { value: 1 });\n\t} catch (e) {\n\t\t// IE 8 has a broken defineProperty\n\t\t$defineProperty = false;\n\t}\n}\n\nmodule.exports = $defineProperty;\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\n\nif ($gOPD) {\n\ttry {\n\t\t$gOPD([], 'length');\n\t} catch (e) {\n\t\t// IE 8 has a broken gOPD\n\t\t$gOPD = null;\n\t}\n}\n\nmodule.exports = $gOPD;\n","'use strict';\n\nvar $defineProperty = require('es-define-property');\n\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\n\nvar gopd = require('gopd');\n\n/** @type {import('.')} */\nmodule.exports = function defineDataProperty(\n\tobj,\n\tproperty,\n\tvalue\n) {\n\tif (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {\n\t\tthrow new $TypeError('`obj` must be an object or a function`');\n\t}\n\tif (typeof property !== 'string' && typeof property !== 'symbol') {\n\t\tthrow new $TypeError('`property` must be a string or a symbol`');\n\t}\n\tif (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {\n\t\tthrow new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');\n\t}\n\tif (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {\n\t\tthrow new $TypeError('`nonWritable`, if provided, must be a boolean or null');\n\t}\n\tif (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {\n\t\tthrow new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');\n\t}\n\tif (arguments.length > 6 && typeof arguments[6] !== 'boolean') {\n\t\tthrow new $TypeError('`loose`, if provided, must be a boolean');\n\t}\n\n\tvar nonEnumerable = arguments.length > 3 ? arguments[3] : null;\n\tvar nonWritable = arguments.length > 4 ? arguments[4] : null;\n\tvar nonConfigurable = arguments.length > 5 ? arguments[5] : null;\n\tvar loose = arguments.length > 6 ? arguments[6] : false;\n\n\t/* @type {false | TypedPropertyDescriptor} */\n\tvar desc = !!gopd && gopd(obj, property);\n\n\tif ($defineProperty) {\n\t\t$defineProperty(obj, property, {\n\t\t\tconfigurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,\n\t\t\tenumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,\n\t\t\tvalue: value,\n\t\t\twritable: nonWritable === null && desc ? desc.writable : !nonWritable\n\t\t});\n\t} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {\n\t\t// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable\n\t\tobj[property] = value; // eslint-disable-line no-param-reassign\n\t} else {\n\t\tthrow new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');\n\t}\n};\n","'use strict';\n\nvar $defineProperty = require('es-define-property');\n\nvar hasPropertyDescriptors = function hasPropertyDescriptors() {\n\treturn !!$defineProperty;\n};\n\nhasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {\n\t// node v0.6 has a bug where array lengths can be Set but not Defined\n\tif (!$defineProperty) {\n\t\treturn null;\n\t}\n\ttry {\n\t\treturn $defineProperty([], 'length', { value: 1 }).length !== 1;\n\t} catch (e) {\n\t\t// In Firefox 4-22, defining length on an array throws an exception.\n\t\treturn true;\n\t}\n};\n\nmodule.exports = hasPropertyDescriptors;\n","'use strict';\n\nvar keys = require('object-keys');\nvar hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';\n\nvar toStr = Object.prototype.toString;\nvar concat = Array.prototype.concat;\nvar defineDataProperty = require('define-data-property');\n\nvar isFunction = function (fn) {\n\treturn typeof fn === 'function' && toStr.call(fn) === '[object Function]';\n};\n\nvar supportsDescriptors = require('has-property-descriptors')();\n\nvar defineProperty = function (object, name, value, predicate) {\n\tif (name in object) {\n\t\tif (predicate === true) {\n\t\t\tif (object[name] === value) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else if (!isFunction(predicate) || !predicate()) {\n\t\t\treturn;\n\t\t}\n\t}\n\n\tif (supportsDescriptors) {\n\t\tdefineDataProperty(object, name, value, true);\n\t} else {\n\t\tdefineDataProperty(object, name, value);\n\t}\n};\n\nvar defineProperties = function (object, map) {\n\tvar predicates = arguments.length > 2 ? arguments[2] : {};\n\tvar props = keys(map);\n\tif (hasSymbols) {\n\t\tprops = concat.call(props, Object.getOwnPropertySymbols(map));\n\t}\n\tfor (var i = 0; i < props.length; i += 1) {\n\t\tdefineProperty(object, props[i], map[props[i]], predicates[props[i]]);\n\t}\n};\n\ndefineProperties.supportsDescriptors = !!supportsDescriptors;\n\nmodule.exports = defineProperties;\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\nvar define = require('define-data-property');\nvar hasDescriptors = require('has-property-descriptors')();\nvar gOPD = require('gopd');\n\nvar $TypeError = require('es-errors/type');\nvar $floor = GetIntrinsic('%Math.floor%');\n\n/** @type {import('.')} */\nmodule.exports = function setFunctionLength(fn, length) {\n\tif (typeof fn !== 'function') {\n\t\tthrow new $TypeError('`fn` is not a function');\n\t}\n\tif (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {\n\t\tthrow new $TypeError('`length` must be a positive 32-bit integer');\n\t}\n\n\tvar loose = arguments.length > 2 && !!arguments[2];\n\n\tvar functionLengthIsConfigurable = true;\n\tvar functionLengthIsWritable = true;\n\tif ('length' in fn && gOPD) {\n\t\tvar desc = gOPD(fn, 'length');\n\t\tif (desc && !desc.configurable) {\n\t\t\tfunctionLengthIsConfigurable = false;\n\t\t}\n\t\tif (desc && !desc.writable) {\n\t\t\tfunctionLengthIsWritable = false;\n\t\t}\n\t}\n\n\tif (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {\n\t\tif (hasDescriptors) {\n\t\t\tdefine(/** @type {Parameters[0]} */ (fn), 'length', length, true, true);\n\t\t} else {\n\t\t\tdefine(/** @type {Parameters[0]} */ (fn), 'length', length);\n\t\t}\n\t}\n\treturn fn;\n};\n","'use strict';\n\nvar bind = require('function-bind');\nvar GetIntrinsic = require('get-intrinsic');\nvar setFunctionLength = require('set-function-length');\n\nvar $TypeError = require('es-errors/type');\nvar $apply = GetIntrinsic('%Function.prototype.apply%');\nvar $call = GetIntrinsic('%Function.prototype.call%');\nvar $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);\n\nvar $defineProperty = require('es-define-property');\nvar $max = GetIntrinsic('%Math.max%');\n\nmodule.exports = function callBind(originalFunction) {\n\tif (typeof originalFunction !== 'function') {\n\t\tthrow new $TypeError('a function is required');\n\t}\n\tvar func = $reflectApply(bind, $call, arguments);\n\treturn setFunctionLength(\n\t\tfunc,\n\t\t1 + $max(0, originalFunction.length - (arguments.length - 1)),\n\t\ttrue\n\t);\n};\n\nvar applyBind = function applyBind() {\n\treturn $reflectApply(bind, $apply, arguments);\n};\n\nif ($defineProperty) {\n\t$defineProperty(module.exports, 'apply', { value: applyBind });\n} else {\n\tmodule.exports.apply = applyBind;\n}\n","'use strict';\n\nvar numberIsNaN = function (value) {\n\treturn value !== value;\n};\n\nmodule.exports = function is(a, b) {\n\tif (a === 0 && b === 0) {\n\t\treturn 1 / a === 1 / b;\n\t}\n\tif (a === b) {\n\t\treturn true;\n\t}\n\tif (numberIsNaN(a) && numberIsNaN(b)) {\n\t\treturn true;\n\t}\n\treturn false;\n};\n\n","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = function getPolyfill() {\n\treturn typeof Object.is === 'function' ? Object.is : implementation;\n};\n","'use strict';\n\nvar getPolyfill = require('./polyfill');\nvar define = require('define-properties');\n\nmodule.exports = function shimObjectIs() {\n\tvar polyfill = getPolyfill();\n\tdefine(Object, { is: polyfill }, {\n\t\tis: function testObjectIs() {\n\t\t\treturn Object.is !== polyfill;\n\t\t}\n\t});\n\treturn polyfill;\n};\n","'use strict';\n\nvar define = require('define-properties');\nvar callBind = require('call-bind');\n\nvar implementation = require('./implementation');\nvar getPolyfill = require('./polyfill');\nvar shim = require('./shim');\n\nvar polyfill = callBind(getPolyfill(), Object);\n\ndefine(polyfill, {\n\tgetPolyfill: getPolyfill,\n\timplementation: implementation,\n\tshim: shim\n});\n\nmodule.exports = polyfill;\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = shallowEqual;\nvar _objectIs = _interopRequireDefault(require(\"object-is\"));\nvar _hasown = _interopRequireDefault(require(\"hasown\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n// adapted from https://github.com/facebook/react/blob/144328fe81719e916b946e22660479e31561bb0b/packages/shared/shallowEqual.js#L36-L68\nfunction shallowEqual(objA, objB) {\n if ((0, _objectIs[\"default\"])(objA, objB)) {\n return true;\n }\n if (!objA || !objB || _typeof(objA) !== 'object' || _typeof(objB) !== 'object') {\n return false;\n }\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n if (keysA.length !== keysB.length) {\n return false;\n }\n keysA.sort();\n keysB.sort();\n\n // Test for A's keys different from B.\n for (var i = 0; i < keysA.length; i += 1) {\n if (!(0, _hasown[\"default\"])(objB, keysA[i]) || !(0, _objectIs[\"default\"])(objA[keysA[i]], objB[keysA[i]])) {\n return false;\n }\n }\n return true;\n}\nmodule.exports = exports.default;\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfb2JqZWN0SXMiLCJfaW50ZXJvcFJlcXVpcmVEZWZhdWx0IiwicmVxdWlyZSIsIl9oYXNvd24iLCJvYmoiLCJfX2VzTW9kdWxlIiwiX3R5cGVvZiIsIm8iLCJTeW1ib2wiLCJpdGVyYXRvciIsImNvbnN0cnVjdG9yIiwicHJvdG90eXBlIiwic2hhbGxvd0VxdWFsIiwib2JqQSIsIm9iakIiLCJpcyIsImtleXNBIiwiT2JqZWN0Iiwia2V5cyIsImtleXNCIiwibGVuZ3RoIiwic29ydCIsImkiLCJoYXNPd24iLCJtb2R1bGUiLCJleHBvcnRzIiwiZGVmYXVsdCJdLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgaXMgZnJvbSAnb2JqZWN0LWlzJztcbmltcG9ydCBoYXNPd24gZnJvbSAnaGFzb3duJztcblxuLy8gYWRhcHRlZCBmcm9tIGh0dHBzOi8vZ2l0aHViLmNvbS9mYWNlYm9vay9yZWFjdC9ibG9iLzE0NDMyOGZlODE3MTllOTE2Yjk0NmUyMjY2MDQ3OWUzMTU2MWJiMGIvcGFja2FnZXMvc2hhcmVkL3NoYWxsb3dFcXVhbC5qcyNMMzYtTDY4XG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBzaGFsbG93RXF1YWwob2JqQSwgb2JqQikge1xuICBpZiAoaXMob2JqQSwgb2JqQikpIHtcbiAgICByZXR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BQyxDQUFDLENBQUMsSUFBSSxDQUFDLElBQUFQLG9CQUFFLEVBQUNGLElBQUksQ0FBQ0csS0FBSyxDQUFDTSxDQUFDLENBQUMsQ0FBQyxFQUFFUixJQUFJLENBQUNFLEtBQUssQ0FBQ00sQ0FBQyxDQUFDLENBQUMsQ0FBQyxFQUFFO01BQ2xFLE9BQU8sS0FBSztJQUNkO0VBQ0Y7RUFFQSxPQUFPLElBQUk7QUFDYjtBQUFDRSxNQUFBLENBQUFDLE9BQUEsR0FBQUEsT0FBQSxDQUFBQyxPQUFBIn0=\n//# sourceMappingURL=index.js.map","function _extends() {\n return (module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _extends.apply(null, arguments);\n}\nmodule.exports = _extends, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _assertThisInitialized(e) {\n if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return e;\n}\nmodule.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _setPrototypeOf(t, e) {\n return (module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _setPrototypeOf(t, e);\n}\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var setPrototypeOf = require(\"./setPrototypeOf.js\");\nfunction _inheritsLoose(t, o) {\n t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o);\n}\nmodule.exports = _inheritsLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var moment = require('moment');\n\nfunction isValidMoment(testMoment) {\n if (typeof moment.isMoment === 'function' && !moment.isMoment(testMoment)) {\n return false;\n }\n\n /* istanbul ignore else */\n if (typeof testMoment.isValid === 'function') {\n // moment 1.7.0+\n return testMoment.isValid();\n }\n\n /* istanbul ignore next */\n return !isNaN(testMoment);\n}\n\nmodule.exports = {\n isValidMoment : isValidMoment,\n};\n","var messages = {\n invalidPredicate: '`predicate` must be a function',\n invalidPropValidator: '`propValidator` must be a function',\n requiredCore: 'is marked as required',\n invalidTypeCore: 'Invalid input type',\n predicateFailureCore: 'Failed to succeed with predicate',\n anonymousMessage: '<>',\n baseInvalidMessage: 'Invalid ',\n};\n\nfunction constructPropValidatorVariations(propValidator) {\n if (typeof propValidator !== 'function') {\n throw new Error(messages.invalidPropValidator);\n }\n\n var requiredPropValidator = propValidator.bind(null, false, null);\n requiredPropValidator.isRequired = propValidator.bind(null, true, null);\n\n requiredPropValidator.withPredicate = function predicateApplication(predicate) {\n if (typeof predicate !== 'function') {\n throw new Error(messages.invalidPredicate);\n }\n var basePropValidator = propValidator.bind(null, false, predicate);\n basePropValidator.isRequired = propValidator.bind(null, true, predicate);\n return basePropValidator;\n };\n\n return requiredPropValidator;\n}\n\nfunction createInvalidRequiredErrorMessage(propName, componentName, value) {\n return new Error(\n 'The prop `' + propName + '` ' + messages.requiredCore +\n ' in `' + componentName + '`, but its value is `' + value + '`.'\n );\n}\n\nvar independentGuardianValue = -1;\n\nfunction preValidationRequireCheck(isRequired, componentName, propFullName, propValue) {\n var isPropValueUndefined = typeof propValue === 'undefined';\n var isPropValueNull = propValue === null;\n\n if (isRequired) {\n if (isPropValueUndefined) {\n return createInvalidRequiredErrorMessage(propFullName, componentName, 'undefined');\n } else if (isPropValueNull) {\n return createInvalidRequiredErrorMessage(propFullName, componentName, 'null');\n }\n }\n\n if (isPropValueUndefined || isPropValueNull) {\n return null;\n }\n\n return independentGuardianValue;\n}\n\nfunction createMomentChecker(type, typeValidator, validator, momentType) {\n\n function propValidator(\n isRequired, // Bound parameter to indicate with the propType is required\n predicate, // Bound parameter to allow user to add dynamic validation\n props,\n propName,\n componentName,\n location,\n propFullName\n ) {\n var propValue = props[ propName ];\n var propType = typeof propValue;\n\n componentName = componentName || messages.anonymousMessage;\n propFullName = propFullName || propName;\n\n var preValidationRequireCheckValue = preValidationRequireCheck(\n isRequired, componentName, propFullName, propValue\n );\n\n if (preValidationRequireCheckValue !== independentGuardianValue) {\n return preValidationRequireCheckValue;\n }\n\n if (typeValidator && !typeValidator(propValue)) {\n return new Error(\n messages.invalidTypeCore + ': `' + propName + '` of type `' + propType + '` ' +\n 'supplied to `' + componentName + '`, expected `' + type + '`.'\n );\n }\n\n if (!validator(propValue)) {\n return new Error(\n messages.baseInvalidMessage + location + ' `' + propName + '` of type `' + propType + '` ' +\n 'supplied to `' + componentName + '`, expected `' + momentType + '`.'\n );\n }\n\n if (predicate && !predicate(propValue)) {\n var predicateName = predicate.name || messages.anonymousMessage;\n return new Error(\n messages.baseInvalidMessage + location + ' `' + propName + '` of type `' + propType + '` ' +\n 'supplied to `' + componentName + '`. ' + messages.predicateFailureCore + ' `' +\n predicateName + '`.'\n );\n }\n\n return null;\n\n }\n\n return constructPropValidatorVariations(propValidator);\n\n}\n\nmodule.exports = {\n constructPropValidatorVariations: constructPropValidatorVariations,\n createMomentChecker: createMomentChecker,\n messages: messages,\n};\n","var moment = require('moment');\nvar momentValidationWrapper = require('./moment-validation-wrapper');\nvar core = require('./core');\n\nmodule.exports = {\n\n momentObj : core.createMomentChecker(\n 'object',\n function(obj) {\n return typeof obj === 'object';\n },\n function isValid(value) {\n return momentValidationWrapper.isValidMoment(value);\n },\n 'Moment'\n ),\n\n momentString : core.createMomentChecker(\n 'string',\n function(str) {\n return typeof str === 'string';\n },\n function isValid(value) {\n return momentValidationWrapper.isValidMoment(moment(value));\n },\n 'Moment'\n ),\n\n momentDurationObj : core.createMomentChecker(\n 'object',\n function(obj) {\n return typeof obj === 'object';\n },\n function isValid(value) {\n return moment.isDuration(value);\n },\n 'Duration'\n ),\n\n};\n","\"use strict\";\n\nfunction noop() {\n return null;\n}\n\nnoop.isRequired = noop;\n\nfunction noopThunk() {\n return noop;\n}\n\nmodule.exports = {\n and: noopThunk,\n between: noopThunk,\n booleanSome: noopThunk,\n childrenHavePropXorChildren: noopThunk,\n childrenOf: noopThunk,\n childrenOfType: noopThunk,\n childrenSequenceOf: noopThunk,\n componentWithName: noopThunk,\n disallowedIf: noopThunk,\n elementType: noopThunk,\n empty: noopThunk,\n explicitNull: noopThunk,\n forbidExtraProps: Object,\n integer: noopThunk,\n keysOf: noopThunk,\n mutuallyExclusiveProps: noopThunk,\n mutuallyExclusiveTrueProps: noopThunk,\n nChildren: noopThunk,\n nonNegativeInteger: noop,\n nonNegativeNumber: noopThunk,\n numericString: noopThunk,\n object: noopThunk,\n or: noopThunk,\n predicate: noopThunk,\n range: noopThunk,\n ref: noopThunk,\n requiredBy: noopThunk,\n restrictedProp: noopThunk,\n sequenceOf: noopThunk,\n shape: noopThunk,\n stringEndsWith: noopThunk,\n stringStartsWith: noopThunk,\n uniqueArray: noopThunk,\n uniqueArrayOf: noopThunk,\n valuesOf: noopThunk,\n withShape: noopThunk\n};\n//# sourceMappingURL=index.js.map","module.exports = process.env.NODE_ENV === 'production' ? require('./build/mocks') : require('./build');\n\n//# sourceMappingURL=index.js.map","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction _getRequireWildcardCache(e) {\n if (\"function\" != typeof WeakMap) return null;\n var r = new WeakMap(),\n t = new WeakMap();\n return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {\n return e ? t : r;\n })(e);\n}\nfunction _interopRequireWildcard(e, r) {\n if (!r && e && e.__esModule) return e;\n if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return {\n \"default\": e\n };\n var t = _getRequireWildcardCache(r);\n if (t && t.has(e)) return t.get(e);\n var n = {\n __proto__: null\n },\n a = Object.defineProperty && Object.getOwnPropertyDescriptor;\n for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) {\n var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;\n i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];\n }\n return n[\"default\"] = e, t && t.set(e, n), n;\n}\nmodule.exports = _interopRequireWildcard, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (e.includes(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nmodule.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose.js\");\nfunction _objectWithoutProperties(e, t) {\n if (null == e) return {};\n var o,\n r,\n i = objectWithoutPropertiesLoose(e, t);\n if (Object.getOwnPropertySymbols) {\n var s = Object.getOwnPropertySymbols(e);\n for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n }\n return i;\n}\nmodule.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict';\n\nvar fnToStr = Function.prototype.toString;\nvar reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;\nvar badArrayLike;\nvar isCallableMarker;\nif (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {\n\ttry {\n\t\tbadArrayLike = Object.defineProperty({}, 'length', {\n\t\t\tget: function () {\n\t\t\t\tthrow isCallableMarker;\n\t\t\t}\n\t\t});\n\t\tisCallableMarker = {};\n\t\t// eslint-disable-next-line no-throw-literal\n\t\treflectApply(function () { throw 42; }, null, badArrayLike);\n\t} catch (_) {\n\t\tif (_ !== isCallableMarker) {\n\t\t\treflectApply = null;\n\t\t}\n\t}\n} else {\n\treflectApply = null;\n}\n\nvar constructorRegex = /^\\s*class\\b/;\nvar isES6ClassFn = function isES6ClassFunction(value) {\n\ttry {\n\t\tvar fnStr = fnToStr.call(value);\n\t\treturn constructorRegex.test(fnStr);\n\t} catch (e) {\n\t\treturn false; // not a function\n\t}\n};\n\nvar tryFunctionObject = function tryFunctionToStr(value) {\n\ttry {\n\t\tif (isES6ClassFn(value)) { return false; }\n\t\tfnToStr.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\nvar toStr = Object.prototype.toString;\nvar objectClass = '[object Object]';\nvar fnClass = '[object Function]';\nvar genClass = '[object GeneratorFunction]';\nvar ddaClass = '[object HTMLAllCollection]'; // IE 11\nvar ddaClass2 = '[object HTML document.all class]';\nvar ddaClass3 = '[object HTMLCollection]'; // IE 9-10\nvar hasToStringTag = typeof Symbol === 'function' && !!Symbol.toStringTag; // better: use `has-tostringtag`\n\nvar isIE68 = !(0 in [,]); // eslint-disable-line no-sparse-arrays, comma-spacing\n\nvar isDDA = function isDocumentDotAll() { return false; };\nif (typeof document === 'object') {\n\t// Firefox 3 canonicalizes DDA to undefined when it's not accessed directly\n\tvar all = document.all;\n\tif (toStr.call(all) === toStr.call(document.all)) {\n\t\tisDDA = function isDocumentDotAll(value) {\n\t\t\t/* globals document: false */\n\t\t\t// in IE 6-8, typeof document.all is \"object\" and it's truthy\n\t\t\tif ((isIE68 || !value) && (typeof value === 'undefined' || typeof value === 'object')) {\n\t\t\t\ttry {\n\t\t\t\t\tvar str = toStr.call(value);\n\t\t\t\t\treturn (\n\t\t\t\t\t\tstr === ddaClass\n\t\t\t\t\t\t|| str === ddaClass2\n\t\t\t\t\t\t|| str === ddaClass3 // opera 12.16\n\t\t\t\t\t\t|| str === objectClass // IE 6-8\n\t\t\t\t\t) && value('') == null; // eslint-disable-line eqeqeq\n\t\t\t\t} catch (e) { /**/ }\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t}\n}\n\nmodule.exports = reflectApply\n\t? function isCallable(value) {\n\t\tif (isDDA(value)) { return true; }\n\t\tif (!value) { return false; }\n\t\tif (typeof value !== 'function' && typeof value !== 'object') { return false; }\n\t\ttry {\n\t\t\treflectApply(value, null, badArrayLike);\n\t\t} catch (e) {\n\t\t\tif (e !== isCallableMarker) { return false; }\n\t\t}\n\t\treturn !isES6ClassFn(value) && tryFunctionObject(value);\n\t}\n\t: function isCallable(value) {\n\t\tif (isDDA(value)) { return true; }\n\t\tif (!value) { return false; }\n\t\tif (typeof value !== 'function' && typeof value !== 'object') { return false; }\n\t\tif (hasToStringTag) { return tryFunctionObject(value); }\n\t\tif (isES6ClassFn(value)) { return false; }\n\t\tvar strClass = toStr.call(value);\n\t\tif (strClass !== fnClass && strClass !== genClass && !(/^\\[object HTML/).test(strClass)) { return false; }\n\t\treturn tryFunctionObject(value);\n\t};\n","'use strict';\n\n// http://262.ecma-international.org/5.1/#sec-9.11\n\nmodule.exports = require('is-callable');\n","'use strict';\n\n// https://262.ecma-international.org/6.0/#sec-ispropertykey\n\nmodule.exports = function IsPropertyKey(argument) {\n\treturn typeof argument === 'string' || typeof argument === 'symbol';\n};\n","'use strict';\n\n// https://262.ecma-international.org/5.1/#sec-8\n\nmodule.exports = function Type(x) {\n\tif (x === null) {\n\t\treturn 'Null';\n\t}\n\tif (typeof x === 'undefined') {\n\t\treturn 'Undefined';\n\t}\n\tif (typeof x === 'function' || typeof x === 'object') {\n\t\treturn 'Object';\n\t}\n\tif (typeof x === 'number') {\n\t\treturn 'Number';\n\t}\n\tif (typeof x === 'boolean') {\n\t\treturn 'Boolean';\n\t}\n\tif (typeof x === 'string') {\n\t\treturn 'String';\n\t}\n};\n","'use strict';\n\nvar ES5Type = require('../5/Type');\n\n// https://262.ecma-international.org/11.0/#sec-ecmascript-data-types-and-values\n\nmodule.exports = function Type(x) {\n\tif (typeof x === 'symbol') {\n\t\treturn 'Symbol';\n\t}\n\tif (typeof x === 'bigint') {\n\t\treturn 'BigInt';\n\t}\n\treturn ES5Type(x);\n};\n","'use strict';\n\nvar $TypeError = require('es-errors/type');\n\nvar hasOwn = require('hasown');\n\nvar IsPropertyKey = require('./IsPropertyKey');\nvar Type = require('./Type');\n\n// https://262.ecma-international.org/6.0/#sec-hasownproperty\n\nmodule.exports = function HasOwnProperty(O, P) {\n\tif (Type(O) !== 'Object') {\n\t\tthrow new $TypeError('Assertion failed: `O` must be an Object');\n\t}\n\tif (!IsPropertyKey(P)) {\n\t\tthrow new $TypeError('Assertion failed: `P` must be a Property Key');\n\t}\n\treturn hasOwn(O, P);\n};\n","'use strict';\n\nvar functionsHaveNames = function functionsHaveNames() {\n\treturn typeof function f() {}.name === 'string';\n};\n\nvar gOPD = Object.getOwnPropertyDescriptor;\nif (gOPD) {\n\ttry {\n\t\tgOPD([], 'length');\n\t} catch (e) {\n\t\t// IE 8 has a broken gOPD\n\t\tgOPD = null;\n\t}\n}\n\nfunctionsHaveNames.functionsHaveConfigurableNames = function functionsHaveConfigurableNames() {\n\tif (!functionsHaveNames() || !gOPD) {\n\t\treturn false;\n\t}\n\tvar desc = gOPD(function () {}, 'name');\n\treturn !!desc && !!desc.configurable;\n};\n\nvar $bind = Function.prototype.bind;\n\nfunctionsHaveNames.boundFunctionsHaveNames = function boundFunctionsHaveNames() {\n\treturn functionsHaveNames() && typeof $bind === 'function' && function f() {}.bind().name !== '';\n};\n\nmodule.exports = functionsHaveNames;\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar callBind = require('./');\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n","'use strict';\n\nvar IsCallable = require('es-abstract/2023/IsCallable');\nvar HasOwnProperty = require('es-abstract/2023/HasOwnProperty');\nvar functionsHaveNames = require('functions-have-names')();\nvar callBound = require('call-bind/callBound');\nvar $functionToString = callBound('Function.prototype.toString');\nvar $stringMatch = callBound('String.prototype.match');\nvar toStr = callBound('Object.prototype.toString');\n\nvar classRegex = /^class /;\n\nvar isClass = function isClassConstructor(fn) {\n\tif (IsCallable(fn)) {\n\t\treturn false;\n\t}\n\tif (typeof fn !== 'function') {\n\t\treturn false;\n\t}\n\ttry {\n\t\tvar match = $stringMatch($functionToString(fn), classRegex);\n\t\treturn !!match;\n\t} catch (e) {}\n\treturn false;\n};\n\nvar regex = /\\s*function\\s+([^(\\s]*)\\s*/;\n\nvar isIE68 = !(0 in [,]); // eslint-disable-line no-sparse-arrays, comma-spacing\n\nvar objectClass = '[object Object]';\nvar ddaClass = '[object HTMLAllCollection]';\n\nvar functionProto = Function.prototype;\n\nvar isDDA = function isDocumentDotAll() {\n\treturn false;\n};\nif (typeof document === 'object') {\n\t// Firefox 3 canonicalizes DDA to undefined when it's not accessed directly\n\tvar all = document.all;\n\tif (toStr(all) === toStr(document.all)) {\n\t\tisDDA = function isDocumentDotAll(value) {\n\t\t\t/* globals document: false */\n\t\t\t// in IE 6-8, typeof document.all is \"object\" and it's truthy\n\t\t\tif ((isIE68 || !value) && (typeof value === 'undefined' || typeof value === 'object')) {\n\t\t\t\ttry {\n\t\t\t\t\tvar str = toStr(value);\n\t\t\t\t\t// IE 6-8 uses `objectClass`\n\t\t\t\t\treturn (str === ddaClass || str === objectClass) && value('') == null; // eslint-disable-line eqeqeq\n\t\t\t\t} catch (e) { /**/ }\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t}\n}\n\nmodule.exports = function getName() {\n\tif (isDDA(this) || (!isClass(this) && !IsCallable(this))) {\n\t\tthrow new TypeError('Function.prototype.name sham getter called on non-function');\n\t}\n\tif (functionsHaveNames && HasOwnProperty(this, 'name')) {\n\t\treturn this.name;\n\t}\n\tif (this === functionProto) {\n\t\treturn '';\n\t}\n\tvar str = $functionToString(this);\n\tvar match = $stringMatch(str, regex);\n\tvar name = match && match[1];\n\treturn name;\n};\n","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = function getPolyfill() {\n\treturn implementation;\n};\n","'use strict';\n\nvar supportsDescriptors = require('define-properties').supportsDescriptors;\nvar functionsHaveNames = require('functions-have-names')();\nvar getPolyfill = require('./polyfill');\nvar defineProperty = Object.defineProperty;\nvar TypeErr = TypeError;\n\nmodule.exports = function shimName() {\n\tvar polyfill = getPolyfill();\n\tif (functionsHaveNames) {\n\t\treturn polyfill;\n\t}\n\tif (!supportsDescriptors) {\n\t\tthrow new TypeErr('Shimming Function.prototype.name support requires ES5 property descriptor support.');\n\t}\n\tvar functionProto = Function.prototype;\n\tdefineProperty(functionProto, 'name', {\n\t\tconfigurable: true,\n\t\tenumerable: false,\n\t\tget: function () {\n\t\t\tvar name = polyfill.call(this);\n\t\t\tif (this !== functionProto) {\n\t\t\t\tdefineProperty(this, 'name', {\n\t\t\t\t\tconfigurable: true,\n\t\t\t\t\tenumerable: false,\n\t\t\t\t\tvalue: name,\n\t\t\t\t\twritable: false\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn name;\n\t\t}\n\t});\n\treturn polyfill;\n};\n","'use strict';\n\nvar define = require('define-properties');\nvar callBind = require('call-bind');\n\nvar implementation = require('./implementation');\nvar getPolyfill = require('./polyfill');\nvar shim = require('./shim');\n\nvar bound = callBind(implementation);\n\ndefine(bound, {\n\tgetPolyfill: getPolyfill,\n\timplementation: implementation,\n\tshim: shim\n});\n\nmodule.exports = bound;\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getComponentName;\n\nvar _functionPrototype = _interopRequireDefault(require(\"function.prototype.name\"));\n\nvar _reactIs = require(\"react-is\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction getComponentName(Component) {\n if (typeof Component === 'string') {\n return Component;\n }\n\n if (typeof Component === 'function') {\n return Component.displayName || (0, _functionPrototype[\"default\"])(Component);\n }\n\n if ((0, _reactIs.isForwardRef)({\n type: Component,\n $$typeof: _reactIs.Element\n })) {\n return Component.displayName;\n }\n\n if ((0, _reactIs.isMemo)(Component)) {\n return getComponentName(Component.type);\n }\n\n return null;\n}\n//# sourceMappingURL=getComponentName.js.map","var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n","'use strict';\n\nvar isArray = require('isarray');\n\n// TODO: inline, semver-major\n\n/** @type {(x: unknown) => x is object} */\nmodule.exports = function isPlainObject(x) {\n\treturn x && typeof x === 'object' && !isArray(x);\n};\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _isPlainObject = _interopRequireDefault(require(\"prop-types-exact/build/helpers/isPlainObject\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default = _isPlainObject[\"default\"];\nexports[\"default\"] = _default;\n//# sourceMappingURL=isPlainObject.js.map","'use strict';\n\n// modified from https://github.com/es-shims/es6-shim\nvar objectKeys = require('object-keys');\nvar hasSymbols = require('has-symbols/shams')();\nvar callBound = require('call-bind/callBound');\nvar toObject = Object;\nvar $push = callBound('Array.prototype.push');\nvar $propIsEnumerable = callBound('Object.prototype.propertyIsEnumerable');\nvar originalGetSymbols = hasSymbols ? Object.getOwnPropertySymbols : null;\n\n// eslint-disable-next-line no-unused-vars\nmodule.exports = function assign(target, source1) {\n\tif (target == null) { throw new TypeError('target must be an object'); }\n\tvar to = toObject(target); // step 1\n\tif (arguments.length === 1) {\n\t\treturn to; // step 2\n\t}\n\tfor (var s = 1; s < arguments.length; ++s) {\n\t\tvar from = toObject(arguments[s]); // step 3.a.i\n\n\t\t// step 3.a.ii:\n\t\tvar keys = objectKeys(from);\n\t\tvar getSymbols = hasSymbols && (Object.getOwnPropertySymbols || originalGetSymbols);\n\t\tif (getSymbols) {\n\t\t\tvar syms = getSymbols(from);\n\t\t\tfor (var j = 0; j < syms.length; ++j) {\n\t\t\t\tvar key = syms[j];\n\t\t\t\tif ($propIsEnumerable(from, key)) {\n\t\t\t\t\t$push(keys, key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// step 3.a.iii:\n\t\tfor (var i = 0; i < keys.length; ++i) {\n\t\t\tvar nextKey = keys[i];\n\t\t\tif ($propIsEnumerable(from, nextKey)) { // step 3.a.iii.2\n\t\t\t\tvar propValue = from[nextKey]; // step 3.a.iii.2.a\n\t\t\t\tto[nextKey] = propValue; // step 3.a.iii.2.b\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to; // step 4\n};\n","'use strict';\n\nvar implementation = require('./implementation');\n\nvar lacksProperEnumerationOrder = function () {\n\tif (!Object.assign) {\n\t\treturn false;\n\t}\n\t/*\n\t * v8, specifically in node 4.x, has a bug with incorrect property enumeration order\n\t * note: this does not detect the bug unless there's 20 characters\n\t */\n\tvar str = 'abcdefghijklmnopqrst';\n\tvar letters = str.split('');\n\tvar map = {};\n\tfor (var i = 0; i < letters.length; ++i) {\n\t\tmap[letters[i]] = letters[i];\n\t}\n\tvar obj = Object.assign({}, map);\n\tvar actual = '';\n\tfor (var k in obj) {\n\t\tactual += k;\n\t}\n\treturn str !== actual;\n};\n\nvar assignHasPendingExceptions = function () {\n\tif (!Object.assign || !Object.preventExtensions) {\n\t\treturn false;\n\t}\n\t/*\n\t * Firefox 37 still has \"pending exception\" logic in its Object.assign implementation,\n\t * which is 72% slower than our shim, and Firefox 40's native implementation.\n\t */\n\tvar thrower = Object.preventExtensions({ 1: 2 });\n\ttry {\n\t\tObject.assign(thrower, 'xy');\n\t} catch (e) {\n\t\treturn thrower[1] === 'y';\n\t}\n\treturn false;\n};\n\nmodule.exports = function getPolyfill() {\n\tif (!Object.assign) {\n\t\treturn implementation;\n\t}\n\tif (lacksProperEnumerationOrder()) {\n\t\treturn implementation;\n\t}\n\tif (assignHasPendingExceptions()) {\n\t\treturn implementation;\n\t}\n\treturn Object.assign;\n};\n","'use strict';\n\nvar define = require('define-properties');\nvar getPolyfill = require('./polyfill');\n\nmodule.exports = function shimAssign() {\n\tvar polyfill = getPolyfill();\n\tdefine(\n\t\tObject,\n\t\t{ assign: polyfill },\n\t\t{ assign: function () { return Object.assign !== polyfill; } }\n\t);\n\treturn polyfill;\n};\n","'use strict';\n\nvar defineProperties = require('define-properties');\nvar callBind = require('call-bind');\n\nvar implementation = require('./implementation');\nvar getPolyfill = require('./polyfill');\nvar shim = require('./shim');\n\nvar polyfill = callBind.apply(getPolyfill());\n// eslint-disable-next-line no-unused-vars\nvar bound = function assign(target, source1) {\n\treturn polyfill(Object, arguments);\n};\n\ndefineProperties(bound, {\n\tgetPolyfill: getPolyfill,\n\timplementation: implementation,\n\tshim: shim\n});\n\nmodule.exports = bound;\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = wrapValidator;\n\nvar _object = _interopRequireDefault(require(\"object.assign\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction wrapValidator(validator, typeName) {\n var typeChecker = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n return (0, _object[\"default\"])(validator.bind(), {\n typeName: typeName,\n typeChecker: typeChecker,\n isRequired: (0, _object[\"default\"])(validator.isRequired.bind(), {\n typeName: typeName,\n typeChecker: typeChecker,\n typeRequired: true\n })\n });\n}\n//# sourceMappingURL=wrapValidator.js.map","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = require(\"react\");\n\nvar _isPlainObject = _interopRequireDefault(require(\"./helpers/isPlainObject\"));\n\nvar _wrapValidator = _interopRequireDefault(require(\"./helpers/wrapValidator\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar isPrototypeOf = Object.prototype.isPrototypeOf;\n\nfunction isNewRef(prop) {\n if (!(0, _isPlainObject[\"default\"])(prop)) {\n return false;\n }\n\n var ownProperties = Object.keys(prop);\n return ownProperties.length === 1 && ownProperties[0] === 'current';\n}\n\nfunction isCallbackRef(prop) {\n return typeof prop === 'function' && !isPrototypeOf.call(_react.Component, prop) && (!_react.PureComponent || !isPrototypeOf.call(_react.PureComponent, prop));\n}\n\nfunction requiredRef(props, propName, componentName) {\n var propValue = props[propName];\n\n if (isCallbackRef(propValue) || isNewRef(propValue)) {\n return null;\n }\n\n return new TypeError(\"\".concat(propName, \" in \").concat(componentName, \" must be a ref\"));\n}\n\nfunction ref(props, propName, componentName) {\n var propValue = props[propName];\n\n if (propValue == null) {\n return null;\n }\n\n for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n rest[_key - 3] = arguments[_key];\n }\n\n return requiredRef.apply(void 0, [props, propName, componentName].concat(rest));\n}\n\nref.isRequired = requiredRef;\n\nvar _default = function _default() {\n return (0, _wrapValidator[\"default\"])(ref, 'ref');\n};\n\nexports[\"default\"] = _default;\n//# sourceMappingURL=ref.js.map","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar EMPTY_STYLES = {};\n\nvar EMPTY_STYLES_FN = function EMPTY_STYLES_FN() {\n return EMPTY_STYLES;\n};\n\nvar _default = EMPTY_STYLES_FN;\nexports[\"default\"] = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.perfStart = perfStart;\nexports.perfEnd = perfEnd;\nexports[\"default\"] = withPerf;\n\nfunction perfStart(startMark) {\n if (typeof performance !== 'undefined' && performance.mark !== undefined && typeof performance.clearMarks === 'function' && startMark) {\n performance.clearMarks(startMark);\n performance.mark(startMark);\n }\n}\n\nfunction perfEnd(startMark, endMark, measureName) {\n if (typeof performance !== 'undefined' && performance.mark !== undefined && typeof performance.clearMarks === 'function') {\n performance.clearMarks(endMark);\n performance.mark(endMark);\n performance.measure(measureName, startMark, endMark);\n performance.clearMarks(measureName);\n }\n}\n\nfunction withPerf(methodName) {\n var startMark = \"react-with-styles.\".concat(methodName, \".start\");\n var endMark = \"react-with-styles.\".concat(methodName, \".end\");\n var measureName = \"\\uD83D\\uDC69\\u200D\\uD83C\\uDFA8 [\".concat(methodName, \"]\");\n return function (fn) {\n return function () {\n if (process.env.NODE_ENV !== 'production') {\n perfStart(startMark);\n }\n\n var result = fn.apply(void 0, arguments);\n\n if (process.env.NODE_ENV !== 'production') {\n perfEnd(startMark, endMark, measureName);\n }\n\n return result;\n };\n };\n}","'use strict';\n\nvar isMergeableObject = function isMergeableObject(value) {\n\treturn isNonNullObject(value)\n\t\t&& !isSpecial(value)\n};\n\nfunction isNonNullObject(value) {\n\treturn !!value && typeof value === 'object'\n}\n\nfunction isSpecial(value) {\n\tvar stringValue = Object.prototype.toString.call(value);\n\n\treturn stringValue === '[object RegExp]'\n\t\t|| stringValue === '[object Date]'\n\t\t|| isReactElement(value)\n}\n\n// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25\nvar canUseSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;\n\nfunction isReactElement(value) {\n\treturn value.$$typeof === REACT_ELEMENT_TYPE\n}\n\nfunction emptyTarget(val) {\n return Array.isArray(val) ? [] : {}\n}\n\nfunction cloneIfNecessary(value, optionsArgument) {\n var clone = optionsArgument && optionsArgument.clone === true;\n return (clone && isMergeableObject(value)) ? deepmerge(emptyTarget(value), value, optionsArgument) : value\n}\n\nfunction defaultArrayMerge(target, source, optionsArgument) {\n var destination = target.slice();\n source.forEach(function(e, i) {\n if (typeof destination[i] === 'undefined') {\n destination[i] = cloneIfNecessary(e, optionsArgument);\n } else if (isMergeableObject(e)) {\n destination[i] = deepmerge(target[i], e, optionsArgument);\n } else if (target.indexOf(e) === -1) {\n destination.push(cloneIfNecessary(e, optionsArgument));\n }\n });\n return destination\n}\n\nfunction mergeObject(target, source, optionsArgument) {\n var destination = {};\n if (isMergeableObject(target)) {\n Object.keys(target).forEach(function(key) {\n destination[key] = cloneIfNecessary(target[key], optionsArgument);\n });\n }\n Object.keys(source).forEach(function(key) {\n if (!isMergeableObject(source[key]) || !target[key]) {\n destination[key] = cloneIfNecessary(source[key], optionsArgument);\n } else {\n destination[key] = deepmerge(target[key], source[key], optionsArgument);\n }\n });\n return destination\n}\n\nfunction deepmerge(target, source, optionsArgument) {\n var sourceIsArray = Array.isArray(source);\n var targetIsArray = Array.isArray(target);\n var options = optionsArgument || { arrayMerge: defaultArrayMerge };\n var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n if (!sourceAndTargetTypesMatch) {\n return cloneIfNecessary(source, optionsArgument)\n } else if (sourceIsArray) {\n var arrayMerge = options.arrayMerge || defaultArrayMerge;\n return arrayMerge(target, source, optionsArgument)\n } else {\n return mergeObject(target, source, optionsArgument)\n }\n}\n\ndeepmerge.all = function deepmergeAll(array, optionsArgument) {\n if (!Array.isArray(array) || array.length < 2) {\n throw new Error('first argument should be an array with at least two elements')\n }\n\n // we are sure there are at least 2 values, so it is safe to have no initial value\n return array.reduce(function(prev, next) {\n return deepmerge(prev, next, optionsArgument)\n })\n};\n\nvar deepmerge_1 = deepmerge;\n\nmodule.exports = deepmerge_1;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar CHANNEL = exports.CHANNEL = '__direction__';\n\nvar DIRECTIONS = exports.DIRECTIONS = {\n LTR: 'ltr',\n RTL: 'rtl'\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _propTypes2['default'].shape({\n getState: _propTypes2['default'].func,\n setState: _propTypes2['default'].func,\n subscribe: _propTypes2['default'].func\n});","'use strict';\n\nvar $TypeError = require('es-errors/type');\n\n/** @type {import('./RequireObjectCoercible')} */\nmodule.exports = function RequireObjectCoercible(value) {\n\tif (value == null) {\n\t\tthrow new $TypeError((arguments.length > 0 && arguments[1]) || ('Cannot call method on ' + value));\n\t}\n\treturn value;\n};\n","'use strict';\n\nvar RequireObjectCoercible = require('es-object-atoms/RequireObjectCoercible');\nvar callBound = require('call-bind/callBound');\n\nvar $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');\nvar $push = callBound('Array.prototype.push');\n\nmodule.exports = function values(O) {\n\tvar obj = RequireObjectCoercible(O);\n\tvar vals = [];\n\tfor (var key in obj) {\n\t\tif ($isEnumerable(obj, key)) { // checks own-ness as well\n\t\t\t$push(vals, obj[key]);\n\t\t}\n\t}\n\treturn vals;\n};\n","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = function getPolyfill() {\n\treturn typeof Object.values === 'function' ? Object.values : implementation;\n};\n","'use strict';\n\nvar getPolyfill = require('./polyfill');\nvar define = require('define-properties');\n\nmodule.exports = function shimValues() {\n\tvar polyfill = getPolyfill();\n\tdefine(Object, { values: polyfill }, {\n\t\tvalues: function testValues() {\n\t\t\treturn Object.values !== polyfill;\n\t\t}\n\t});\n\treturn polyfill;\n};\n","'use strict';\n\nvar define = require('define-properties');\nvar callBind = require('call-bind');\n\nvar implementation = require('./implementation');\nvar getPolyfill = require('./polyfill');\nvar shim = require('./shim');\n\nvar polyfill = callBind(getPolyfill(), Object);\n\ndefine(polyfill, {\n\tgetPolyfill: getPolyfill,\n\timplementation: implementation,\n\tshim: shim\n});\n\nmodule.exports = polyfill;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _object = require('object.values');\n\nvar _object2 = _interopRequireDefault(_object);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _constants = require('../constants');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _propTypes2['default'].oneOf((0, _object2['default'])(_constants.DIRECTIONS));","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.withDirectionPropTypes = exports.DIRECTIONS = undefined;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nexports['default'] = withDirection;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _hoistNonReactStatics = require('hoist-non-react-statics');\n\nvar _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics);\n\nvar _deepmerge = require('deepmerge');\n\nvar _deepmerge2 = _interopRequireDefault(_deepmerge);\n\nvar _getComponentName = require('airbnb-prop-types/build/helpers/getComponentName');\n\nvar _getComponentName2 = _interopRequireDefault(_getComponentName);\n\nvar _constants = require('./constants');\n\nvar _brcast = require('./proptypes/brcast');\n\nvar _brcast2 = _interopRequireDefault(_brcast);\n\nvar _direction = require('./proptypes/direction');\n\nvar _direction2 = _interopRequireDefault(_direction);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /* eslint-disable react/forbid-foreign-prop-types */\n// This higher-order component consumes a string from React context that is\n// provided by the DirectionProvider component.\n// We can use this to conditionally switch layout/direction for right-to-left layouts.\n\nvar contextTypes = _defineProperty({}, _constants.CHANNEL, _brcast2['default']);\n\nexports.DIRECTIONS = _constants.DIRECTIONS;\n\n// set a default direction so that a component wrapped with this HOC can be\n// used even without a DirectionProvider ancestor in its react tree.\n\nvar defaultDirection = _constants.DIRECTIONS.LTR;\n\n// export for convenience, in order for components to spread these onto their propTypes\nvar withDirectionPropTypes = exports.withDirectionPropTypes = {\n direction: _direction2['default'].isRequired\n};\n\nfunction withDirection(WrappedComponent) {\n var WithDirection = function (_React$Component) {\n _inherits(WithDirection, _React$Component);\n\n function WithDirection(props, context) {\n _classCallCheck(this, WithDirection);\n\n var _this = _possibleConstructorReturn(this, (WithDirection.__proto__ || Object.getPrototypeOf(WithDirection)).call(this, props, context));\n\n _this.state = {\n direction: context[_constants.CHANNEL] ? context[_constants.CHANNEL].getState() : defaultDirection\n };\n return _this;\n }\n\n _createClass(WithDirection, [{\n key: 'componentDidMount',\n value: function () {\n function componentDidMount() {\n var _this2 = this;\n\n if (this.context[_constants.CHANNEL]) {\n // subscribe to future direction changes\n this.channelUnsubscribe = this.context[_constants.CHANNEL].subscribe(function (direction) {\n _this2.setState({ direction: direction });\n });\n }\n }\n\n return componentDidMount;\n }()\n }, {\n key: 'componentWillUnmount',\n value: function () {\n function componentWillUnmount() {\n if (this.channelUnsubscribe) {\n this.channelUnsubscribe();\n }\n }\n\n return componentWillUnmount;\n }()\n }, {\n key: 'render',\n value: function () {\n function render() {\n var direction = this.state.direction;\n\n\n return _react2['default'].createElement(WrappedComponent, _extends({}, this.props, {\n direction: direction\n }));\n }\n\n return render;\n }()\n }]);\n\n return WithDirection;\n }(_react2['default'].Component);\n\n var wrappedComponentName = (0, _getComponentName2['default'])(WrappedComponent) || 'Component';\n\n WithDirection.WrappedComponent = WrappedComponent;\n WithDirection.contextTypes = contextTypes;\n WithDirection.displayName = 'withDirection(' + String(wrappedComponentName) + ')';\n if (WrappedComponent.propTypes) {\n WithDirection.propTypes = (0, _deepmerge2['default'])({}, WrappedComponent.propTypes);\n delete WithDirection.propTypes.direction;\n }\n if (WrappedComponent.defaultProps) {\n WithDirection.defaultProps = (0, _deepmerge2['default'])({}, WrappedComponent.defaultProps);\n }\n\n return (0, _hoistNonReactStatics2['default'])(WithDirection, WrappedComponent);\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"DIRECTIONS\", {\n enumerable: true,\n get: function get() {\n return _reactWithDirection.DIRECTIONS;\n }\n});\nexports[\"default\"] = void 0;\n\nvar _react = require(\"react\");\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _reactWithDirection = require(\"react-with-direction\");\n\nfunction detectAndCreateContext(defaultValue) {\n if (_react.createContext) {\n return /*#__PURE__*/(0, _react.createContext)(defaultValue);\n }\n\n return {\n Provider: function Provider() {\n throw new ReferenceError('WithStylesContext requires React 16.3 or later');\n },\n Consumer: function Consumer() {\n throw new ReferenceError('WithStylesContext requires React 16.3 or later');\n }\n };\n}\n\nvar WithStylesContext = detectAndCreateContext({\n stylesInterface: null,\n stylesTheme: null,\n direction: null\n});\nWithStylesContext.Provider.propTypes = {\n stylesInterface: _propTypes[\"default\"].object,\n // eslint-disable-line react/forbid-prop-types\n stylesTheme: _propTypes[\"default\"].object,\n // eslint-disable-line react/forbid-prop-types\n direction: _propTypes[\"default\"].oneOf([_reactWithDirection.DIRECTIONS.LTR, _reactWithDirection.DIRECTIONS.RTL])\n};\nvar _default = WithStylesContext;\nexports[\"default\"] = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports._getInterface = _getInterface;\nexports._getTheme = get;\nexports[\"default\"] = void 0;\nvar styleInterface;\nvar styleTheme;\nvar START_MARK = 'react-with-styles.resolve.start';\nvar END_MARK = 'react-with-styles.resolve.end';\nvar MEASURE_MARK = \"\\uD83D\\uDC69\\u200D\\uD83C\\uDFA8 [resolve]\";\n\nfunction registerTheme(theme) {\n styleTheme = theme;\n}\n\nfunction registerInterface(interfaceToRegister) {\n styleInterface = interfaceToRegister;\n}\n\nfunction create(makeFromTheme, createWithDirection) {\n var styles = createWithDirection(makeFromTheme(styleTheme));\n return function () {\n return styles;\n };\n}\n\nfunction createLTR(makeFromTheme) {\n return create(makeFromTheme, styleInterface.createLTR || styleInterface.create);\n}\n\nfunction createRTL(makeFromTheme) {\n return create(makeFromTheme, styleInterface.createRTL || styleInterface.create);\n}\n\nfunction get() {\n return styleTheme;\n}\n\nfunction resolve() {\n if (process.env.NODE_ENV !== 'production' && typeof performance !== 'undefined' && performance.mark !== undefined && typeof performance.clearMarks === 'function') {\n performance.clearMarks(START_MARK);\n performance.mark(START_MARK);\n }\n\n for (var _len = arguments.length, styles = new Array(_len), _key = 0; _key < _len; _key++) {\n styles[_key] = arguments[_key];\n }\n\n var result = styleInterface.resolve(styles);\n\n if (process.env.NODE_ENV !== 'production' && typeof performance !== 'undefined' && performance.mark !== undefined && typeof performance.clearMarks === 'function') {\n performance.clearMarks(END_MARK);\n performance.mark(END_MARK);\n performance.measure(MEASURE_MARK, START_MARK, END_MARK);\n performance.clearMarks(MEASURE_MARK);\n }\n\n return result;\n}\n\nfunction resolveLTR() {\n for (var _len2 = arguments.length, styles = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n styles[_key2] = arguments[_key2];\n }\n\n if (styleInterface.resolveLTR) {\n return styleInterface.resolveLTR(styles);\n }\n\n return resolve(styles);\n}\n\nfunction resolveRTL() {\n for (var _len3 = arguments.length, styles = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n styles[_key3] = arguments[_key3];\n }\n\n if (styleInterface.resolveRTL) {\n return styleInterface.resolveRTL(styles);\n }\n\n return resolve(styles);\n}\n\nfunction flush() {\n if (styleInterface.flush) {\n styleInterface.flush();\n }\n} // Exported until we deprecate this API completely\n// eslint-disable-next-line no-underscore-dangle\n\n\nfunction _getInterface() {\n return styleInterface;\n} // Exported until we deprecate this API completely\n\n\nvar _default = {\n registerTheme: registerTheme,\n registerInterface: registerInterface,\n create: createLTR,\n createLTR: createLTR,\n createRTL: createRTL,\n get: get,\n resolve: resolveLTR,\n resolveLTR: resolveLTR,\n resolveRTL: resolveRTL,\n flush: flush\n};\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = exports.withStylesPropTypes = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar withStylesPropTypes = {\n styles: _propTypes[\"default\"].object.isRequired,\n theme: _propTypes[\"default\"].object.isRequired,\n css: _propTypes[\"default\"].func.isRequired\n};\nexports.withStylesPropTypes = withStylesPropTypes;\nvar _default = withStylesPropTypes;\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.withStyles = withStyles;\nObject.defineProperty(exports, \"withStylesPropTypes\", {\n enumerable: true,\n get: function get() {\n return _withStylesPropTypes.withStylesPropTypes;\n }\n});\nexports.css = exports[\"default\"] = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _hoistNonReactStatics = _interopRequireDefault(require(\"hoist-non-react-statics\"));\n\nvar _getComponentName = _interopRequireDefault(require(\"airbnb-prop-types/build/helpers/getComponentName\"));\n\nvar _ref3 = _interopRequireDefault(require(\"airbnb-prop-types/build/ref\"));\n\nvar _emptyStylesFn = _interopRequireDefault(require(\"./utils/emptyStylesFn\"));\n\nvar _perf = _interopRequireDefault(require(\"./utils/perf\"));\n\nvar _WithStylesContext = _interopRequireWildcard(require(\"./WithStylesContext\"));\n\nvar _ThemedStyleSheet = _interopRequireWildcard(require(\"./ThemedStyleSheet\"));\n\nvar _withStylesPropTypes = require(\"./withStylesPropTypes\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n/**\n * A higher order function that returns a higher order class component that injects\n * CSS-in-JS props derived from the react-with-styles theme, interface, and\n * direction provided through the WithStylesContext provider.\n *\n * The function should be used as follows:\n * `withStyles((theme) => styles, options)(Component)`\n *\n * Options can be used to rename the injected props, memoize the component, and flush\n * the styles to the styles tag (or whatever the interface implements as flush) before\n * rendering.\n *\n * @export\n * @param {Function|null|undefined} [stylesFn=EMPTY_STYLES_FN]\n * @param {Object} [{\n * stylesPropName = 'styles',\n * themePropName = 'theme',\n * cssPropName = 'css',\n * flushBefore = false,\n * pureComponent = false,\n * }={}]\n * @returns a higher order component that wraps the provided component and injects\n * the react-with-styles css, styles, and theme props.\n */\nfunction withStyles() {\n var stylesFn = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _emptyStylesFn[\"default\"];\n\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref$stylesPropName = _ref.stylesPropName,\n stylesPropName = _ref$stylesPropName === void 0 ? 'styles' : _ref$stylesPropName,\n _ref$themePropName = _ref.themePropName,\n themePropName = _ref$themePropName === void 0 ? 'theme' : _ref$themePropName,\n _ref$cssPropName = _ref.cssPropName,\n cssPropName = _ref$cssPropName === void 0 ? 'css' : _ref$cssPropName,\n _ref$flushBefore = _ref.flushBefore,\n flushBefore = _ref$flushBefore === void 0 ? false : _ref$flushBefore,\n _ref$pureComponent = _ref.pureComponent,\n pureComponent = _ref$pureComponent === void 0 ? false : _ref$pureComponent;\n\n stylesFn = stylesFn || _emptyStylesFn[\"default\"];\n var BaseClass = pureComponent ? _react[\"default\"].PureComponent : _react[\"default\"].Component;\n /** Cache for storing the result of stylesFn(theme) for all themes. */\n\n var stylesFnResultCacheMap = typeof WeakMap === 'undefined' ? new Map() : new WeakMap();\n\n function getOrCreateStylesFnResultCache(theme) {\n // Get and store the result in the stylesFnResultsCache for the component\n // -- not the instance -- so we only apply the theme to the stylesFn\n // once per theme for this component.\n var cachedResultForTheme = stylesFnResultCacheMap.get(theme);\n var stylesFnResult = cachedResultForTheme || stylesFn(theme) || {};\n stylesFnResultCacheMap.set(theme, stylesFnResult); // cache the result of stylesFn(theme)\n\n return stylesFnResult;\n }\n /**\n * Cache for storing the results of computations:\n * `WeakMap>`\n * Falling back to `Map` whenever `WeakMap` is not supported\n */\n\n\n var withStylesCache = typeof WeakMap === 'undefined' ? new Map() : new WeakMap();\n\n function getComponentCache(theme, component, direction) {\n var themeCache = withStylesCache.get(theme);\n\n if (!themeCache) {\n return null;\n }\n\n var componentCache = themeCache.get(component);\n\n if (!componentCache) {\n return null;\n }\n\n return componentCache[direction];\n }\n\n function updateComponentCache(theme, component, direction, results) {\n var themeCache = withStylesCache.get(theme);\n\n if (!themeCache) {\n themeCache = typeof WeakMap === 'undefined' ? new Map() : new WeakMap();\n withStylesCache.set(theme, themeCache);\n }\n\n var componentCache = themeCache.get(component);\n\n if (!componentCache) {\n componentCache = {\n ltr: {},\n rtl: {}\n };\n themeCache.set(component, componentCache);\n }\n\n componentCache[direction] = results;\n }\n /** Derive the create function from the interface and direction */\n\n\n function makeCreateFn(direction, stylesInterface) {\n var directionSelector = direction === _WithStylesContext.DIRECTIONS.RTL ? 'RTL' : 'LTR';\n var create = stylesInterface[\"create\".concat(directionSelector)] || stylesInterface.create;\n var original = create;\n\n if (process.env.NODE_ENV !== 'production') {\n create = (0, _perf[\"default\"])('create')(create);\n }\n\n return {\n create: create,\n original: original\n };\n }\n /** Derive the resolve function from the interface and direction */\n\n\n function makeResolveFn(direction, stylesInterface) {\n var directionSelector = direction === _WithStylesContext.DIRECTIONS.RTL ? 'RTL' : 'LTR';\n var resolve = stylesInterface[\"resolve\".concat(directionSelector)] || stylesInterface.resolve;\n var original = resolve;\n\n if (process.env.NODE_ENV !== 'production') {\n resolve = (0, _perf[\"default\"])('resolve')(resolve);\n }\n\n return {\n resolve: resolve,\n original: original\n };\n } // The function that wraps the provided component in a wrapper\n // component that injects the withStyles props\n\n\n return function withStylesHOC(WrappedComponent) {\n var wrappedComponentName = (0, _getComponentName[\"default\"])(WrappedComponent); // The wrapper component that injects the withStyles props\n\n var WithStyles = /*#__PURE__*/function (_BaseClass) {\n (0, _inheritsLoose2[\"default\"])(WithStyles, _BaseClass);\n\n function WithStyles() {\n return _BaseClass.apply(this, arguments) || this;\n }\n\n var _proto = WithStyles.prototype;\n\n _proto.getCurrentInterface = function getCurrentInterface() {\n // Fallback to the singleton implementation\n return this.context && this.context.stylesInterface || (0, _ThemedStyleSheet._getInterface)();\n };\n\n _proto.getCurrentTheme = function getCurrentTheme() {\n // Fallback to the singleton implementation\n return this.context && this.context.stylesTheme || (0, _ThemedStyleSheet._getTheme)();\n };\n\n _proto.getCurrentDirection = function getCurrentDirection() {\n return this.context && this.context.direction || _WithStylesContext.DIRECTIONS.LTR;\n };\n\n _proto.getProps = function getProps() {\n // Get the styles interface, theme, and direction from context\n var stylesInterface = this.getCurrentInterface();\n var theme = this.getCurrentTheme();\n var direction = this.getCurrentDirection(); // Use a cache to store the interface methods and created styles by direction.\n // This way, if the theme and the interface don't change, we do not recalculate\n // styles or any other interface derivations. They are effectively only calculated\n // once per direction, until the theme or interface change.\n // Assume: always an object.\n\n var componentCache = getComponentCache(theme, WithStyles, direction); // Determine what's changed\n\n var interfaceChanged = !componentCache || !componentCache.stylesInterface || stylesInterface && componentCache.stylesInterface !== stylesInterface;\n var themeChanged = !componentCache || componentCache.theme !== theme; // If the interface and theme haven't changed for this direction,\n // we return the cached props immediately.\n\n if (!interfaceChanged && !themeChanged) {\n return componentCache.props;\n } // If the theme or the interface changed, then there are some values\n // we need to recalculate. We avoid recalculating the ones we already\n // calculated in the past if the objects they're derived from have not\n // changed.\n\n\n var createFn = interfaceChanged && makeCreateFn(direction, stylesInterface) || componentCache.create;\n var resolveFn = interfaceChanged && makeResolveFn(direction, stylesInterface) || componentCache.resolve;\n var create = createFn.create;\n var resolve = resolveFn.resolve; // Determine if create or resolve functions have changed, which will then\n // determine if we need to create new styles or css props\n\n var createChanged = !componentCache || !componentCache.create || createFn.original !== componentCache.create.original;\n var resolveChanged = !componentCache || !componentCache.resolve || resolveFn.original !== componentCache.resolve.original; // Derive the css function prop: recalculate it if resolve changed\n\n var css = resolveChanged && function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return resolve(args);\n } || componentCache.props.css; // Get or calculate the themed styles from the stylesFn:\n // Uses a separate cache at the component level, not at the instance level,\n // to only apply the theme to the stylesFn once per component class per theme.\n\n\n var stylesFnResult = getOrCreateStylesFnResultCache(theme); // Derive the styles prop: recalculate it if create changed, or stylesFnResult changed\n\n var styles = (createChanged || stylesFnResult !== componentCache.stylesFnResult) && create(stylesFnResult) || componentCache.props.styles; // Put the new props together\n\n var props = {\n css: css,\n styles: styles,\n theme: theme\n }; // Update the cache with all the new values\n\n updateComponentCache(theme, WithStyles, direction, {\n stylesInterface: stylesInterface,\n theme: theme,\n create: createFn,\n resolve: resolveFn,\n stylesFnResult: stylesFnResult,\n props: props\n });\n return props;\n };\n\n _proto.flush = function flush() {\n var stylesInterface = this.getCurrentInterface();\n\n if (stylesInterface && stylesInterface.flush) {\n stylesInterface.flush();\n }\n };\n\n _proto.render = function render() {\n var _ref2;\n\n // We only want to re-render if the theme, stylesInterface, or direction change.\n // These values are in context so we're listening for their updates.\n // this.getProps() derives the props from the theme, stylesInterface, and direction in\n // context, and memoizes them on the instance per direction.\n var _this$getProps = this.getProps(),\n theme = _this$getProps.theme,\n styles = _this$getProps.styles,\n css = _this$getProps.css; // Flush if specified\n\n\n if (flushBefore) {\n this.flush();\n }\n\n var _this$props = this.props,\n forwardedRef = _this$props.forwardedRef,\n rest = (0, _objectWithoutProperties2[\"default\"])(_this$props, [\"forwardedRef\"]);\n return /*#__PURE__*/_react[\"default\"].createElement(WrappedComponent // TODO: remove conditional once breaking change to only support React 16.3+\n // ref: https://github.com/airbnb/react-with-styles/pull/240#discussion_r533497857\n , (0, _extends2[\"default\"])({\n ref: typeof _react[\"default\"].forwardRef === 'undefined' ? undefined : forwardedRef\n }, typeof _react[\"default\"].forwardRef === 'undefined' ? this.props : rest, (_ref2 = {}, (0, _defineProperty2[\"default\"])(_ref2, themePropName, theme), (0, _defineProperty2[\"default\"])(_ref2, stylesPropName, styles), (0, _defineProperty2[\"default\"])(_ref2, cssPropName, css), _ref2)));\n };\n\n return WithStyles;\n }(BaseClass); // TODO: remove conditional once breaking change to only support React 16.3+\n // ref: https://github.com/airbnb/react-with-styles/pull/240#discussion_r533497857\n\n\n if (typeof _react[\"default\"].forwardRef !== 'undefined') {\n WithStyles.propTypes = {\n forwardedRef: (0, _ref3[\"default\"])()\n };\n } // TODO: remove conditional once breaking change to only support React 16.3+\n // ref: https://github.com/airbnb/react-with-styles/pull/240#discussion_r533497857\n\n\n var ForwardedWithStyles = typeof _react[\"default\"].forwardRef === 'undefined' ? WithStyles : /*#__PURE__*/_react[\"default\"].forwardRef(function (props, forwardedRef) {\n return /*#__PURE__*/_react[\"default\"].createElement(WithStyles, (0, _extends2[\"default\"])({}, props, {\n forwardedRef: forwardedRef\n }));\n }); // Copy the wrapped component's prop types and default props on WithStyles\n\n if (WrappedComponent.propTypes) {\n ForwardedWithStyles.propTypes = _objectSpread({}, WrappedComponent.propTypes);\n delete ForwardedWithStyles.propTypes[stylesPropName];\n delete ForwardedWithStyles.propTypes[themePropName];\n delete ForwardedWithStyles.propTypes[cssPropName];\n }\n\n if (WrappedComponent.defaultProps) {\n ForwardedWithStyles.defaultProps = _objectSpread({}, WrappedComponent.defaultProps);\n }\n\n WithStyles.contextType = _WithStylesContext[\"default\"];\n ForwardedWithStyles.WrappedComponent = WrappedComponent;\n ForwardedWithStyles.displayName = \"withStyles(\".concat(wrappedComponentName, \")\");\n return (0, _hoistNonReactStatics[\"default\"])(ForwardedWithStyles, WrappedComponent);\n };\n}\n\nvar _default = withStyles;\n/**\n * Deprecated: Do not use directly. Please wrap your component in `withStyles` and use the `css`\n * prop injected via props instead.\n */\n\nexports[\"default\"] = _default;\nvar css = _ThemedStyleSheet[\"default\"].resolveLTR;\nexports.css = css;","// Generated by CoffeeScript 1.12.2\n(function() {\n var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;\n\n if ((typeof performance !== \"undefined\" && performance !== null) && performance.now) {\n module.exports = function() {\n return performance.now();\n };\n } else if ((typeof process !== \"undefined\" && process !== null) && process.hrtime) {\n module.exports = function() {\n return (getNanoSeconds() - nodeLoadTime) / 1e6;\n };\n hrtime = process.hrtime;\n getNanoSeconds = function() {\n var hr;\n hr = hrtime();\n return hr[0] * 1e9 + hr[1];\n };\n moduleLoadTime = getNanoSeconds();\n upTime = process.uptime() * 1e9;\n nodeLoadTime = moduleLoadTime - upTime;\n } else if (Date.now) {\n module.exports = function() {\n return Date.now() - loadTime;\n };\n loadTime = Date.now();\n } else {\n module.exports = function() {\n return new Date().getTime() - loadTime;\n };\n loadTime = new Date().getTime();\n }\n\n}).call(this);\n\n//# sourceMappingURL=performance-now.js.map\n","var now = require('performance-now')\n , root = typeof window === 'undefined' ? global : window\n , vendors = ['moz', 'webkit']\n , suffix = 'AnimationFrame'\n , raf = root['request' + suffix]\n , caf = root['cancel' + suffix] || root['cancelRequest' + suffix]\n\nfor(var i = 0; !raf && i < vendors.length; i++) {\n raf = root[vendors[i] + 'Request' + suffix]\n caf = root[vendors[i] + 'Cancel' + suffix]\n || root[vendors[i] + 'CancelRequest' + suffix]\n}\n\n// Some versions of FF have rAF but not cAF\nif(!raf || !caf) {\n var last = 0\n , id = 0\n , queue = []\n , frameDuration = 1000 / 60\n\n raf = function(callback) {\n if(queue.length === 0) {\n var _now = now()\n , next = Math.max(0, frameDuration - (_now - last))\n last = next + _now\n setTimeout(function() {\n var cp = queue.slice(0)\n // Clear queue here to prevent\n // callbacks from appending listeners\n // to the current frame's queue\n queue.length = 0\n for(var i = 0; i < cp.length; i++) {\n if(!cp[i].cancelled) {\n try{\n cp[i].callback(last)\n } catch(e) {\n setTimeout(function() { throw e }, 0)\n }\n }\n }\n }, Math.round(next))\n }\n queue.push({\n handle: ++id,\n callback: callback,\n cancelled: false\n })\n return id\n }\n\n caf = function(handle) {\n for(var i = 0; i < queue.length; i++) {\n if(queue[i].handle === handle) {\n queue[i].cancelled = true\n }\n }\n }\n}\n\nmodule.exports = function(fn) {\n // Wrap in a new function to prevent\n // `cancel` potentially being assigned\n // to the native rAF function\n return raf.call(root, fn)\n}\nmodule.exports.cancel = function() {\n caf.apply(root, arguments)\n}\nmodule.exports.polyfill = function(object) {\n if (!object) {\n object = root;\n }\n object.requestAnimationFrame = raf\n object.cancelAnimationFrame = caf\n}\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.CalendarDayPhrases = exports.DayPickerNavigationPhrases = exports.DayPickerKeyboardShortcutsPhrases = exports.DayPickerPhrases = exports.SingleDatePickerInputPhrases = exports.SingleDatePickerPhrases = exports.DateRangePickerInputPhrases = exports.DateRangePickerPhrases = exports[\"default\"] = void 0;\nvar calendarLabel = 'Calendar';\nvar roleDescription = 'datepicker';\nvar closeDatePicker = 'Close';\nvar focusStartDate = 'Interact with the calendar and add the check-in date for your trip.';\nvar clearDate = 'Clear Date';\nvar clearDates = 'Clear Dates';\nvar jumpToPrevMonth = 'Move backward to switch to the previous month.';\nvar jumpToNextMonth = 'Move forward to switch to the next month.';\nvar keyboardShortcuts = 'Keyboard Shortcuts';\nvar showKeyboardShortcutsPanel = 'Open the keyboard shortcuts panel.';\nvar hideKeyboardShortcutsPanel = 'Close the shortcuts panel.';\nvar openThisPanel = 'Open this panel.';\nvar enterKey = 'Enter key';\nvar leftArrowRightArrow = 'Right and left arrow keys';\nvar upArrowDownArrow = 'up and down arrow keys';\nvar pageUpPageDown = 'page up and page down keys';\nvar homeEnd = 'Home and end keys';\nvar escape = 'Escape key';\nvar questionMark = 'Question mark';\nvar selectFocusedDate = 'Select the date in focus.';\nvar moveFocusByOneDay = 'Move backward (left) and forward (right) by one day.';\nvar moveFocusByOneWeek = 'Move backward (up) and forward (down) by one week.';\nvar moveFocusByOneMonth = 'Switch months.';\nvar moveFocustoStartAndEndOfWeek = 'Go to the first or last day of a week.';\nvar returnFocusToInput = 'Return to the date input field.';\nvar keyboardForwardNavigationInstructions = 'Navigate forward to interact with the calendar and select a date. Press the question mark key to get the keyboard shortcuts for changing dates.';\nvar keyboardBackwardNavigationInstructions = 'Navigate backward to interact with the calendar and select a date. Press the question mark key to get the keyboard shortcuts for changing dates.';\n\nvar chooseAvailableStartDate = function chooseAvailableStartDate(_ref) {\n var date = _ref.date;\n return \"Choose \".concat(date, \" as your check-in date. It\\u2019s available.\");\n};\n\nvar chooseAvailableEndDate = function chooseAvailableEndDate(_ref2) {\n var date = _ref2.date;\n return \"Choose \".concat(date, \" as your check-out date. It\\u2019s available.\");\n};\n\nvar chooseAvailableDate = function chooseAvailableDate(_ref3) {\n var date = _ref3.date;\n return date;\n};\n\nvar dateIsUnavailable = function dateIsUnavailable(_ref4) {\n var date = _ref4.date;\n return \"Not available. \".concat(date);\n};\n\nvar dateIsSelected = function dateIsSelected(_ref5) {\n var date = _ref5.date;\n return \"Selected. \".concat(date);\n};\n\nvar dateIsSelectedAsStartDate = function dateIsSelectedAsStartDate(_ref6) {\n var date = _ref6.date;\n return \"Selected as start date. \".concat(date);\n};\n\nvar dateIsSelectedAsEndDate = function dateIsSelectedAsEndDate(_ref7) {\n var date = _ref7.date;\n return \"Selected as end date. \".concat(date);\n};\n\nvar _default = {\n calendarLabel: calendarLabel,\n roleDescription: roleDescription,\n closeDatePicker: closeDatePicker,\n focusStartDate: focusStartDate,\n clearDate: clearDate,\n clearDates: clearDates,\n jumpToPrevMonth: jumpToPrevMonth,\n jumpToNextMonth: jumpToNextMonth,\n keyboardShortcuts: keyboardShortcuts,\n showKeyboardShortcutsPanel: showKeyboardShortcutsPanel,\n hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,\n openThisPanel: openThisPanel,\n enterKey: enterKey,\n leftArrowRightArrow: leftArrowRightArrow,\n upArrowDownArrow: upArrowDownArrow,\n pageUpPageDown: pageUpPageDown,\n homeEnd: homeEnd,\n escape: escape,\n questionMark: questionMark,\n selectFocusedDate: selectFocusedDate,\n moveFocusByOneDay: moveFocusByOneDay,\n moveFocusByOneWeek: moveFocusByOneWeek,\n moveFocusByOneMonth: moveFocusByOneMonth,\n moveFocustoStartAndEndOfWeek: moveFocustoStartAndEndOfWeek,\n returnFocusToInput: returnFocusToInput,\n keyboardForwardNavigationInstructions: keyboardForwardNavigationInstructions,\n keyboardBackwardNavigationInstructions: keyboardBackwardNavigationInstructions,\n chooseAvailableStartDate: chooseAvailableStartDate,\n chooseAvailableEndDate: chooseAvailableEndDate,\n dateIsUnavailable: dateIsUnavailable,\n dateIsSelected: dateIsSelected,\n dateIsSelectedAsStartDate: dateIsSelectedAsStartDate,\n dateIsSelectedAsEndDate: dateIsSelectedAsEndDate\n};\nexports[\"default\"] = _default;\nvar DateRangePickerPhrases = {\n calendarLabel: calendarLabel,\n roleDescription: roleDescription,\n closeDatePicker: closeDatePicker,\n clearDates: clearDates,\n focusStartDate: focusStartDate,\n jumpToPrevMonth: jumpToPrevMonth,\n jumpToNextMonth: jumpToNextMonth,\n keyboardShortcuts: keyboardShortcuts,\n showKeyboardShortcutsPanel: showKeyboardShortcutsPanel,\n hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,\n openThisPanel: openThisPanel,\n enterKey: enterKey,\n leftArrowRightArrow: leftArrowRightArrow,\n upArrowDownArrow: upArrowDownArrow,\n pageUpPageDown: pageUpPageDown,\n homeEnd: homeEnd,\n escape: escape,\n questionMark: questionMark,\n selectFocusedDate: selectFocusedDate,\n moveFocusByOneDay: moveFocusByOneDay,\n moveFocusByOneWeek: moveFocusByOneWeek,\n moveFocusByOneMonth: moveFocusByOneMonth,\n moveFocustoStartAndEndOfWeek: moveFocustoStartAndEndOfWeek,\n returnFocusToInput: returnFocusToInput,\n keyboardForwardNavigationInstructions: keyboardForwardNavigationInstructions,\n keyboardBackwardNavigationInstructions: keyboardBackwardNavigationInstructions,\n chooseAvailableStartDate: chooseAvailableStartDate,\n chooseAvailableEndDate: chooseAvailableEndDate,\n dateIsUnavailable: dateIsUnavailable,\n dateIsSelected: dateIsSelected,\n dateIsSelectedAsStartDate: dateIsSelectedAsStartDate,\n dateIsSelectedAsEndDate: dateIsSelectedAsEndDate\n};\nexports.DateRangePickerPhrases = DateRangePickerPhrases;\nvar DateRangePickerInputPhrases = {\n focusStartDate: focusStartDate,\n clearDates: clearDates,\n keyboardForwardNavigationInstructions: keyboardForwardNavigationInstructions,\n keyboardBackwardNavigationInstructions: keyboardBackwardNavigationInstructions\n};\nexports.DateRangePickerInputPhrases = DateRangePickerInputPhrases;\nvar SingleDatePickerPhrases = {\n calendarLabel: calendarLabel,\n roleDescription: roleDescription,\n closeDatePicker: closeDatePicker,\n clearDate: clearDate,\n jumpToPrevMonth: jumpToPrevMonth,\n jumpToNextMonth: jumpToNextMonth,\n keyboardShortcuts: keyboardShortcuts,\n showKeyboardShortcutsPanel: showKeyboardShortcutsPanel,\n hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,\n openThisPanel: openThisPanel,\n enterKey: enterKey,\n leftArrowRightArrow: leftArrowRightArrow,\n upArrowDownArrow: upArrowDownArrow,\n pageUpPageDown: pageUpPageDown,\n homeEnd: homeEnd,\n escape: escape,\n questionMark: questionMark,\n selectFocusedDate: selectFocusedDate,\n moveFocusByOneDay: moveFocusByOneDay,\n moveFocusByOneWeek: moveFocusByOneWeek,\n moveFocusByOneMonth: moveFocusByOneMonth,\n moveFocustoStartAndEndOfWeek: moveFocustoStartAndEndOfWeek,\n returnFocusToInput: returnFocusToInput,\n keyboardForwardNavigationInstructions: keyboardForwardNavigationInstructions,\n keyboardBackwardNavigationInstructions: keyboardBackwardNavigationInstructions,\n chooseAvailableDate: chooseAvailableDate,\n dateIsUnavailable: dateIsUnavailable,\n dateIsSelected: dateIsSelected\n};\nexports.SingleDatePickerPhrases = SingleDatePickerPhrases;\nvar SingleDatePickerInputPhrases = {\n clearDate: clearDate,\n keyboardForwardNavigationInstructions: keyboardForwardNavigationInstructions,\n keyboardBackwardNavigationInstructions: keyboardBackwardNavigationInstructions\n};\nexports.SingleDatePickerInputPhrases = SingleDatePickerInputPhrases;\nvar DayPickerPhrases = {\n calendarLabel: calendarLabel,\n roleDescription: roleDescription,\n jumpToPrevMonth: jumpToPrevMonth,\n jumpToNextMonth: jumpToNextMonth,\n keyboardShortcuts: keyboardShortcuts,\n showKeyboardShortcutsPanel: showKeyboardShortcutsPanel,\n hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,\n openThisPanel: openThisPanel,\n enterKey: enterKey,\n leftArrowRightArrow: leftArrowRightArrow,\n upArrowDownArrow: upArrowDownArrow,\n pageUpPageDown: pageUpPageDown,\n homeEnd: homeEnd,\n escape: escape,\n questionMark: questionMark,\n selectFocusedDate: selectFocusedDate,\n moveFocusByOneDay: moveFocusByOneDay,\n moveFocusByOneWeek: moveFocusByOneWeek,\n moveFocusByOneMonth: moveFocusByOneMonth,\n moveFocustoStartAndEndOfWeek: moveFocustoStartAndEndOfWeek,\n returnFocusToInput: returnFocusToInput,\n chooseAvailableStartDate: chooseAvailableStartDate,\n chooseAvailableEndDate: chooseAvailableEndDate,\n chooseAvailableDate: chooseAvailableDate,\n dateIsUnavailable: dateIsUnavailable,\n dateIsSelected: dateIsSelected,\n dateIsSelectedAsStartDate: dateIsSelectedAsStartDate,\n dateIsSelectedAsEndDate: dateIsSelectedAsEndDate\n};\nexports.DayPickerPhrases = DayPickerPhrases;\nvar DayPickerKeyboardShortcutsPhrases = {\n keyboardShortcuts: keyboardShortcuts,\n showKeyboardShortcutsPanel: showKeyboardShortcutsPanel,\n hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,\n openThisPanel: openThisPanel,\n enterKey: enterKey,\n leftArrowRightArrow: leftArrowRightArrow,\n upArrowDownArrow: upArrowDownArrow,\n pageUpPageDown: pageUpPageDown,\n homeEnd: homeEnd,\n escape: escape,\n questionMark: questionMark,\n selectFocusedDate: selectFocusedDate,\n moveFocusByOneDay: moveFocusByOneDay,\n moveFocusByOneWeek: moveFocusByOneWeek,\n moveFocusByOneMonth: moveFocusByOneMonth,\n moveFocustoStartAndEndOfWeek: moveFocustoStartAndEndOfWeek,\n returnFocusToInput: returnFocusToInput\n};\nexports.DayPickerKeyboardShortcutsPhrases = DayPickerKeyboardShortcutsPhrases;\nvar DayPickerNavigationPhrases = {\n jumpToPrevMonth: jumpToPrevMonth,\n jumpToNextMonth: jumpToNextMonth\n};\nexports.DayPickerNavigationPhrases = DayPickerNavigationPhrases;\nvar CalendarDayPhrases = {\n chooseAvailableDate: chooseAvailableDate,\n dateIsUnavailable: dateIsUnavailable,\n dateIsSelected: dateIsSelected,\n dateIsSelectedAsStartDate: dateIsSelectedAsStartDate,\n dateIsSelectedAsEndDate: dateIsSelectedAsEndDate\n};\nexports.CalendarDayPhrases = CalendarDayPhrases;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getPhrasePropTypes;\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction getPhrasePropTypes(defaultPhrases) {\n return Object.keys(defaultPhrases).reduce(function (phrases, key) {\n return _objectSpread({}, phrases, (0, _defineProperty2[\"default\"])({}, key, _propTypes[\"default\"].oneOfType([_propTypes[\"default\"].string, _propTypes[\"default\"].func, _propTypes[\"default\"].node])));\n }, {});\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getPhrase;\n\nfunction getPhrase(phrase, args) {\n if (typeof phrase === 'string') return phrase;\n\n if (typeof phrase === 'function') {\n return phrase(args);\n }\n\n return '';\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.MODIFIER_KEY_NAMES = exports.DEFAULT_VERTICAL_SPACING = exports.FANG_HEIGHT_PX = exports.FANG_WIDTH_PX = exports.WEEKDAYS = exports.BLOCKED_MODIFIER = exports.DAY_SIZE = exports.OPEN_UP = exports.OPEN_DOWN = exports.ANCHOR_RIGHT = exports.ANCHOR_LEFT = exports.INFO_POSITION_AFTER = exports.INFO_POSITION_BEFORE = exports.INFO_POSITION_BOTTOM = exports.INFO_POSITION_TOP = exports.ICON_AFTER_POSITION = exports.ICON_BEFORE_POSITION = exports.NAV_POSITION_TOP = exports.NAV_POSITION_BOTTOM = exports.VERTICAL_SCROLLABLE = exports.VERTICAL_ORIENTATION = exports.HORIZONTAL_ORIENTATION = exports.END_DATE = exports.START_DATE = exports.ISO_MONTH_FORMAT = exports.ISO_FORMAT = exports.DISPLAY_FORMAT = void 0;\nvar DISPLAY_FORMAT = 'L';\nexports.DISPLAY_FORMAT = DISPLAY_FORMAT;\nvar ISO_FORMAT = 'YYYY-MM-DD';\nexports.ISO_FORMAT = ISO_FORMAT;\nvar ISO_MONTH_FORMAT = 'YYYY-MM'; // TODO delete this line of dead code on next breaking change\n\nexports.ISO_MONTH_FORMAT = ISO_MONTH_FORMAT;\nvar START_DATE = 'startDate';\nexports.START_DATE = START_DATE;\nvar END_DATE = 'endDate';\nexports.END_DATE = END_DATE;\nvar HORIZONTAL_ORIENTATION = 'horizontal';\nexports.HORIZONTAL_ORIENTATION = HORIZONTAL_ORIENTATION;\nvar VERTICAL_ORIENTATION = 'vertical';\nexports.VERTICAL_ORIENTATION = VERTICAL_ORIENTATION;\nvar VERTICAL_SCROLLABLE = 'verticalScrollable';\nexports.VERTICAL_SCROLLABLE = VERTICAL_SCROLLABLE;\nvar NAV_POSITION_BOTTOM = 'navPositionBottom';\nexports.NAV_POSITION_BOTTOM = NAV_POSITION_BOTTOM;\nvar NAV_POSITION_TOP = 'navPositionTop';\nexports.NAV_POSITION_TOP = NAV_POSITION_TOP;\nvar ICON_BEFORE_POSITION = 'before';\nexports.ICON_BEFORE_POSITION = ICON_BEFORE_POSITION;\nvar ICON_AFTER_POSITION = 'after';\nexports.ICON_AFTER_POSITION = ICON_AFTER_POSITION;\nvar INFO_POSITION_TOP = 'top';\nexports.INFO_POSITION_TOP = INFO_POSITION_TOP;\nvar INFO_POSITION_BOTTOM = 'bottom';\nexports.INFO_POSITION_BOTTOM = INFO_POSITION_BOTTOM;\nvar INFO_POSITION_BEFORE = 'before';\nexports.INFO_POSITION_BEFORE = INFO_POSITION_BEFORE;\nvar INFO_POSITION_AFTER = 'after';\nexports.INFO_POSITION_AFTER = INFO_POSITION_AFTER;\nvar ANCHOR_LEFT = 'left';\nexports.ANCHOR_LEFT = ANCHOR_LEFT;\nvar ANCHOR_RIGHT = 'right';\nexports.ANCHOR_RIGHT = ANCHOR_RIGHT;\nvar OPEN_DOWN = 'down';\nexports.OPEN_DOWN = OPEN_DOWN;\nvar OPEN_UP = 'up';\nexports.OPEN_UP = OPEN_UP;\nvar DAY_SIZE = 39;\nexports.DAY_SIZE = DAY_SIZE;\nvar BLOCKED_MODIFIER = 'blocked';\nexports.BLOCKED_MODIFIER = BLOCKED_MODIFIER;\nvar WEEKDAYS = [0, 1, 2, 3, 4, 5, 6];\nexports.WEEKDAYS = WEEKDAYS;\nvar FANG_WIDTH_PX = 20;\nexports.FANG_WIDTH_PX = FANG_WIDTH_PX;\nvar FANG_HEIGHT_PX = 10;\nexports.FANG_HEIGHT_PX = FANG_HEIGHT_PX;\nvar DEFAULT_VERTICAL_SPACING = 22;\nexports.DEFAULT_VERTICAL_SPACING = DEFAULT_VERTICAL_SPACING;\nvar MODIFIER_KEY_NAMES = new Set(['Shift', 'Control', 'Alt', 'Meta']);\nexports.MODIFIER_KEY_NAMES = MODIFIER_KEY_NAMES;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getCalendarDaySettings;\n\nvar _getPhrase = _interopRequireDefault(require(\"./getPhrase\"));\n\nvar _constants = require(\"../constants\");\n\nfunction isSelected(modifiers) {\n return modifiers.has('selected') || modifiers.has('selected-span') || modifiers.has('selected-start') || modifiers.has('selected-end');\n}\n\nfunction shouldUseDefaultCursor(modifiers) {\n return modifiers.has('blocked-minimum-nights') || modifiers.has('blocked-calendar') || modifiers.has('blocked-out-of-range');\n}\n\nfunction isHoveredSpan(modifiers) {\n if (isSelected(modifiers)) return false;\n return modifiers.has('hovered-span') || modifiers.has('after-hovered-start') || modifiers.has('before-hovered-end');\n}\n\nfunction getAriaLabel(phrases, modifiers, day, ariaLabelFormat) {\n var chooseAvailableDate = phrases.chooseAvailableDate,\n dateIsUnavailable = phrases.dateIsUnavailable,\n dateIsSelected = phrases.dateIsSelected,\n dateIsSelectedAsStartDate = phrases.dateIsSelectedAsStartDate,\n dateIsSelectedAsEndDate = phrases.dateIsSelectedAsEndDate;\n var formattedDate = {\n date: day.format(ariaLabelFormat)\n };\n\n if (modifiers.has('selected-start') && dateIsSelectedAsStartDate) {\n return (0, _getPhrase[\"default\"])(dateIsSelectedAsStartDate, formattedDate);\n }\n\n if (modifiers.has('selected-end') && dateIsSelectedAsEndDate) {\n return (0, _getPhrase[\"default\"])(dateIsSelectedAsEndDate, formattedDate);\n }\n\n if (isSelected(modifiers) && dateIsSelected) {\n return (0, _getPhrase[\"default\"])(dateIsSelected, formattedDate);\n }\n\n if (modifiers.has(_constants.BLOCKED_MODIFIER)) {\n return (0, _getPhrase[\"default\"])(dateIsUnavailable, formattedDate);\n }\n\n return (0, _getPhrase[\"default\"])(chooseAvailableDate, formattedDate);\n}\n\nfunction getCalendarDaySettings(day, ariaLabelFormat, daySize, modifiers, phrases) {\n return {\n ariaLabel: getAriaLabel(phrases, modifiers, day, ariaLabelFormat),\n hoveredSpan: isHoveredSpan(modifiers),\n isOutsideRange: modifiers.has('blocked-out-of-range'),\n selected: isSelected(modifiers),\n useDefaultCursor: shouldUseDefaultCursor(modifiers),\n daySizeStyles: {\n width: daySize,\n height: daySize - 1\n }\n };\n}","function _arrayLikeToArray(r, a) {\n (null == a || a > r.length) && (a = r.length);\n for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n return n;\n}\nmodule.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _arrayWithoutHoles(r) {\n if (Array.isArray(r)) return arrayLikeToArray(r);\n}\nmodule.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArray(r) {\n if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r);\n}\nmodule.exports = _iterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _unsupportedIterableToArray(r, a) {\n if (r) {\n if (\"string\" == typeof r) return arrayLikeToArray(r, a);\n var t = {}.toString.call(r).slice(8, -1);\n return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;\n }\n}\nmodule.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayWithoutHoles = require(\"./arrayWithoutHoles.js\");\nvar iterableToArray = require(\"./iterableToArray.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableSpread = require(\"./nonIterableSpread.js\");\nfunction _toConsumableArray(r) {\n return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();\n}\nmodule.exports = _toConsumableArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _default = (0, _airbnbPropTypes.and)([_propTypes[\"default\"].instanceOf(Set), function modifiers(props, propName) {\n for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n rest[_key - 2] = arguments[_key];\n }\n\n var propValue = props[propName];\n var firstError;\n (0, _toConsumableArray2[\"default\"])(propValue).some(function (v, i) {\n var _PropTypes$string;\n\n var fakePropName = \"\".concat(propName, \": index \").concat(i);\n firstError = (_PropTypes$string = _propTypes[\"default\"].string).isRequired.apply(_PropTypes$string, [(0, _defineProperty2[\"default\"])({}, fakePropName, v), fakePropName].concat(rest));\n return firstError != null;\n });\n return firstError == null ? null : firstError;\n}], 'Modifiers (Set of Strings)');\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = exports.PureCalendarDay = void 0;\n\nvar _enzymeShallowEqual = _interopRequireDefault(require(\"enzyme-shallow-equal\"));\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _reactMomentProptypes = _interopRequireDefault(require(\"react-moment-proptypes\"));\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _reactWithStyles = require(\"react-with-styles\");\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _raf = _interopRequireDefault(require(\"raf\"));\n\nvar _defaultPhrases = require(\"../defaultPhrases\");\n\nvar _getPhrasePropTypes = _interopRequireDefault(require(\"../utils/getPhrasePropTypes\"));\n\nvar _getCalendarDaySettings = _interopRequireDefault(require(\"../utils/getCalendarDaySettings\"));\n\nvar _ModifiersShape = _interopRequireDefault(require(\"../shapes/ModifiersShape\"));\n\nvar _constants = require(\"../constants\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nvar propTypes = process.env.NODE_ENV !== \"production\" ? (0, _airbnbPropTypes.forbidExtraProps)(_objectSpread({}, _reactWithStyles.withStylesPropTypes, {\n day: _reactMomentProptypes[\"default\"].momentObj,\n daySize: _airbnbPropTypes.nonNegativeInteger,\n isOutsideDay: _propTypes[\"default\"].bool,\n modifiers: _ModifiersShape[\"default\"],\n isFocused: _propTypes[\"default\"].bool,\n tabIndex: _propTypes[\"default\"].oneOf([0, -1]),\n onDayClick: _propTypes[\"default\"].func,\n onDayMouseEnter: _propTypes[\"default\"].func,\n onDayMouseLeave: _propTypes[\"default\"].func,\n renderDayContents: _propTypes[\"default\"].func,\n ariaLabelFormat: _propTypes[\"default\"].string,\n // internationalization\n phrases: _propTypes[\"default\"].shape((0, _getPhrasePropTypes[\"default\"])(_defaultPhrases.CalendarDayPhrases))\n})) : {};\nvar defaultProps = {\n day: (0, _moment[\"default\"])(),\n daySize: _constants.DAY_SIZE,\n isOutsideDay: false,\n modifiers: new Set(),\n isFocused: false,\n tabIndex: -1,\n onDayClick: function onDayClick() {},\n onDayMouseEnter: function onDayMouseEnter() {},\n onDayMouseLeave: function onDayMouseLeave() {},\n renderDayContents: null,\n ariaLabelFormat: 'dddd, LL',\n // internationalization\n phrases: _defaultPhrases.CalendarDayPhrases\n};\n\nvar CalendarDay =\n/*#__PURE__*/\nfunction (_ref) {\n (0, _inheritsLoose2[\"default\"])(CalendarDay, _ref);\n var _proto = CalendarDay.prototype;\n\n _proto[!_react[\"default\"].PureComponent && \"shouldComponentUpdate\"] = function (nextProps, nextState) {\n return !(0, _enzymeShallowEqual[\"default\"])(this.props, nextProps) || !(0, _enzymeShallowEqual[\"default\"])(this.state, nextState);\n };\n\n function CalendarDay() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _ref.call.apply(_ref, [this].concat(args)) || this;\n _this.setButtonRef = _this.setButtonRef.bind((0, _assertThisInitialized2[\"default\"])(_this));\n return _this;\n }\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var _this2 = this;\n\n var _this$props = this.props,\n isFocused = _this$props.isFocused,\n tabIndex = _this$props.tabIndex;\n\n if (tabIndex === 0) {\n if (isFocused || tabIndex !== prevProps.tabIndex) {\n (0, _raf[\"default\"])(function () {\n if (_this2.buttonRef) {\n _this2.buttonRef.focus();\n }\n });\n }\n }\n };\n\n _proto.onDayClick = function onDayClick(day, e) {\n var onDayClick = this.props.onDayClick;\n onDayClick(day, e);\n };\n\n _proto.onDayMouseEnter = function onDayMouseEnter(day, e) {\n var onDayMouseEnter = this.props.onDayMouseEnter;\n onDayMouseEnter(day, e);\n };\n\n _proto.onDayMouseLeave = function onDayMouseLeave(day, e) {\n var onDayMouseLeave = this.props.onDayMouseLeave;\n onDayMouseLeave(day, e);\n };\n\n _proto.onKeyDown = function onKeyDown(day, e) {\n var onDayClick = this.props.onDayClick;\n var key = e.key;\n\n if (key === 'Enter' || key === ' ') {\n onDayClick(day, e);\n }\n };\n\n _proto.setButtonRef = function setButtonRef(ref) {\n this.buttonRef = ref;\n };\n\n _proto.render = function render() {\n var _this3 = this;\n\n var _this$props2 = this.props,\n day = _this$props2.day,\n ariaLabelFormat = _this$props2.ariaLabelFormat,\n daySize = _this$props2.daySize,\n isOutsideDay = _this$props2.isOutsideDay,\n modifiers = _this$props2.modifiers,\n renderDayContents = _this$props2.renderDayContents,\n tabIndex = _this$props2.tabIndex,\n styles = _this$props2.styles,\n phrases = _this$props2.phrases;\n if (!day) return _react[\"default\"].createElement(\"td\", null);\n\n var _getCalendarDaySettin = (0, _getCalendarDaySettings[\"default\"])(day, ariaLabelFormat, daySize, modifiers, phrases),\n daySizeStyles = _getCalendarDaySettin.daySizeStyles,\n useDefaultCursor = _getCalendarDaySettin.useDefaultCursor,\n selected = _getCalendarDaySettin.selected,\n hoveredSpan = _getCalendarDaySettin.hoveredSpan,\n isOutsideRange = _getCalendarDaySettin.isOutsideRange,\n ariaLabel = _getCalendarDaySettin.ariaLabel;\n\n return _react[\"default\"].createElement(\"td\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.CalendarDay, useDefaultCursor && styles.CalendarDay__defaultCursor, styles.CalendarDay__default, isOutsideDay && styles.CalendarDay__outside, modifiers.has('today') && styles.CalendarDay__today, modifiers.has('first-day-of-week') && styles.CalendarDay__firstDayOfWeek, modifiers.has('last-day-of-week') && styles.CalendarDay__lastDayOfWeek, modifiers.has('hovered-offset') && styles.CalendarDay__hovered_offset, modifiers.has('hovered-start-first-possible-end') && styles.CalendarDay__hovered_start_first_possible_end, modifiers.has('hovered-start-blocked-minimum-nights') && styles.CalendarDay__hovered_start_blocked_min_nights, modifiers.has('highlighted-calendar') && styles.CalendarDay__highlighted_calendar, modifiers.has('blocked-minimum-nights') && styles.CalendarDay__blocked_minimum_nights, modifiers.has('blocked-calendar') && styles.CalendarDay__blocked_calendar, hoveredSpan && styles.CalendarDay__hovered_span, modifiers.has('after-hovered-start') && styles.CalendarDay__after_hovered_start, modifiers.has('selected-span') && styles.CalendarDay__selected_span, modifiers.has('selected-start') && styles.CalendarDay__selected_start, modifiers.has('selected-end') && styles.CalendarDay__selected_end, selected && !modifiers.has('selected-span') && styles.CalendarDay__selected, modifiers.has('before-hovered-end') && styles.CalendarDay__before_hovered_end, modifiers.has('no-selected-start-before-selected-end') && styles.CalendarDay__no_selected_start_before_selected_end, modifiers.has('selected-start-in-hovered-span') && styles.CalendarDay__selected_start_in_hovered_span, modifiers.has('selected-end-in-hovered-span') && styles.CalendarDay__selected_end_in_hovered_span, modifiers.has('selected-start-no-selected-end') && styles.CalendarDay__selected_start_no_selected_end, modifiers.has('selected-end-no-selected-start') && styles.CalendarDay__selected_end_no_selected_start, isOutsideRange && styles.CalendarDay__blocked_out_of_range, daySizeStyles), {\n role: \"button\" // eslint-disable-line jsx-a11y/no-noninteractive-element-to-interactive-role\n ,\n ref: this.setButtonRef,\n \"aria-disabled\": modifiers.has('blocked'),\n \"aria-label\": ariaLabel,\n onMouseEnter: function onMouseEnter(e) {\n _this3.onDayMouseEnter(day, e);\n },\n onMouseLeave: function onMouseLeave(e) {\n _this3.onDayMouseLeave(day, e);\n },\n onMouseUp: function onMouseUp(e) {\n e.currentTarget.blur();\n },\n onClick: function onClick(e) {\n _this3.onDayClick(day, e);\n },\n onKeyDown: function onKeyDown(e) {\n _this3.onKeyDown(day, e);\n },\n tabIndex: tabIndex\n }), renderDayContents ? renderDayContents(day, modifiers) : day.format('D'));\n };\n\n return CalendarDay;\n}(_react[\"default\"].PureComponent || _react[\"default\"].Component);\n\nexports.PureCalendarDay = CalendarDay;\nCalendarDay.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nCalendarDay.defaultProps = defaultProps;\n\nvar _default = (0, _reactWithStyles.withStyles)(function (_ref2) {\n var _ref2$reactDates = _ref2.reactDates,\n color = _ref2$reactDates.color,\n font = _ref2$reactDates.font;\n return {\n CalendarDay: {\n boxSizing: 'border-box',\n cursor: 'pointer',\n fontSize: font.size,\n textAlign: 'center',\n ':active': {\n outline: 0\n }\n },\n CalendarDay__defaultCursor: {\n cursor: 'default'\n },\n CalendarDay__default: {\n border: \"1px solid \".concat(color.core.borderLight),\n color: color.text,\n background: color.background,\n ':hover': {\n background: color.core.borderLight,\n border: \"1px solid \".concat(color.core.borderLight),\n color: 'inherit'\n }\n },\n CalendarDay__hovered_offset: {\n background: color.core.borderBright,\n border: \"1px double \".concat(color.core.borderLight),\n color: 'inherit'\n },\n CalendarDay__outside: {\n border: 0,\n background: color.outside.backgroundColor,\n color: color.outside.color,\n ':hover': {\n border: 0\n }\n },\n CalendarDay__blocked_minimum_nights: {\n background: color.minimumNights.backgroundColor,\n border: \"1px solid \".concat(color.minimumNights.borderColor),\n color: color.minimumNights.color,\n ':hover': {\n background: color.minimumNights.backgroundColor_hover,\n color: color.minimumNights.color_active\n },\n ':active': {\n background: color.minimumNights.backgroundColor_active,\n color: color.minimumNights.color_active\n }\n },\n CalendarDay__highlighted_calendar: {\n background: color.highlighted.backgroundColor,\n color: color.highlighted.color,\n ':hover': {\n background: color.highlighted.backgroundColor_hover,\n color: color.highlighted.color_active\n },\n ':active': {\n background: color.highlighted.backgroundColor_active,\n color: color.highlighted.color_active\n }\n },\n CalendarDay__selected_span: {\n background: color.selectedSpan.backgroundColor,\n border: \"1px double \".concat(color.selectedSpan.borderColor),\n color: color.selectedSpan.color,\n ':hover': {\n background: color.selectedSpan.backgroundColor_hover,\n border: \"1px double \".concat(color.selectedSpan.borderColor),\n color: color.selectedSpan.color_active\n },\n ':active': {\n background: color.selectedSpan.backgroundColor_active,\n border: \"1px double \".concat(color.selectedSpan.borderColor),\n color: color.selectedSpan.color_active\n }\n },\n CalendarDay__selected: {\n background: color.selected.backgroundColor,\n border: \"1px double \".concat(color.selected.borderColor),\n color: color.selected.color,\n ':hover': {\n background: color.selected.backgroundColor_hover,\n border: \"1px double \".concat(color.selected.borderColor),\n color: color.selected.color_active\n },\n ':active': {\n background: color.selected.backgroundColor_active,\n border: \"1px double \".concat(color.selected.borderColor),\n color: color.selected.color_active\n }\n },\n CalendarDay__hovered_span: {\n background: color.hoveredSpan.backgroundColor,\n border: \"1px double \".concat(color.hoveredSpan.borderColor),\n color: color.hoveredSpan.color,\n ':hover': {\n background: color.hoveredSpan.backgroundColor_hover,\n border: \"1px double \".concat(color.hoveredSpan.borderColor),\n color: color.hoveredSpan.color_active\n },\n ':active': {\n background: color.hoveredSpan.backgroundColor_active,\n border: \"1px double \".concat(color.hoveredSpan.borderColor),\n color: color.hoveredSpan.color_active\n }\n },\n CalendarDay__blocked_calendar: {\n background: color.blocked_calendar.backgroundColor,\n border: \"1px solid \".concat(color.blocked_calendar.borderColor),\n color: color.blocked_calendar.color,\n ':hover': {\n background: color.blocked_calendar.backgroundColor_hover,\n border: \"1px solid \".concat(color.blocked_calendar.borderColor),\n color: color.blocked_calendar.color_active\n },\n ':active': {\n background: color.blocked_calendar.backgroundColor_active,\n border: \"1px solid \".concat(color.blocked_calendar.borderColor),\n color: color.blocked_calendar.color_active\n }\n },\n CalendarDay__blocked_out_of_range: {\n background: color.blocked_out_of_range.backgroundColor,\n border: \"1px solid \".concat(color.blocked_out_of_range.borderColor),\n color: color.blocked_out_of_range.color,\n ':hover': {\n background: color.blocked_out_of_range.backgroundColor_hover,\n border: \"1px solid \".concat(color.blocked_out_of_range.borderColor),\n color: color.blocked_out_of_range.color_active\n },\n ':active': {\n background: color.blocked_out_of_range.backgroundColor_active,\n border: \"1px solid \".concat(color.blocked_out_of_range.borderColor),\n color: color.blocked_out_of_range.color_active\n }\n },\n CalendarDay__hovered_start_first_possible_end: {\n background: color.core.borderLighter,\n border: \"1px double \".concat(color.core.borderLighter)\n },\n CalendarDay__hovered_start_blocked_min_nights: {\n background: color.core.borderLighter,\n border: \"1px double \".concat(color.core.borderLight)\n },\n CalendarDay__selected_start: {},\n CalendarDay__selected_end: {},\n CalendarDay__today: {},\n CalendarDay__firstDayOfWeek: {},\n CalendarDay__lastDayOfWeek: {},\n CalendarDay__after_hovered_start: {},\n CalendarDay__before_hovered_end: {},\n CalendarDay__no_selected_start_before_selected_end: {},\n CalendarDay__selected_start_in_hovered_span: {},\n CalendarDay__selected_end_in_hovered_span: {},\n CalendarDay__selected_start_no_selected_end: {},\n CalendarDay__selected_end_no_selected_start: {}\n };\n}, {\n pureComponent: typeof _react[\"default\"].PureComponent !== 'undefined'\n})(CalendarDay);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = CalendarWeek;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar propTypes = process.env.NODE_ENV !== \"production\" ? (0, _airbnbPropTypes.forbidExtraProps)({\n children: _propTypes[\"default\"].node.isRequired\n}) : {};\n\nfunction CalendarWeek(_ref) {\n var children = _ref.children;\n return _react[\"default\"].createElement(\"tr\", null, children);\n}\n\nCalendarWeek.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = calculateDimension;\n\nfunction calculateDimension(el, axis) {\n var borderBox = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var withMargin = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\n if (!el) {\n return 0;\n }\n\n var axisStart = axis === 'width' ? 'Left' : 'Top';\n var axisEnd = axis === 'width' ? 'Right' : 'Bottom'; // Only read styles if we need to\n\n var style = !borderBox || withMargin ? window.getComputedStyle(el) : null; // Offset includes border and padding\n\n var offsetWidth = el.offsetWidth,\n offsetHeight = el.offsetHeight;\n var size = axis === 'width' ? offsetWidth : offsetHeight; // Get the inner size\n\n if (!borderBox) {\n size -= parseFloat(style[\"padding\".concat(axisStart)]) + parseFloat(style[\"padding\".concat(axisEnd)]) + parseFloat(style[\"border\".concat(axisStart, \"Width\")]) + parseFloat(style[\"border\".concat(axisEnd, \"Width\")]);\n } // Apply margin\n\n\n if (withMargin) {\n size += parseFloat(style[\"margin\".concat(axisStart)]) + parseFloat(style[\"margin\".concat(axisEnd)]);\n }\n\n return size;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getCalendarMonthWeeks;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _constants = require(\"../constants\");\n\nfunction getCalendarMonthWeeks(month, enableOutsideDays) {\n var firstDayOfWeek = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _moment[\"default\"].localeData().firstDayOfWeek();\n\n if (!_moment[\"default\"].isMoment(month) || !month.isValid()) {\n throw new TypeError('`month` must be a valid moment object');\n }\n\n if (_constants.WEEKDAYS.indexOf(firstDayOfWeek) === -1) {\n throw new TypeError('`firstDayOfWeek` must be an integer between 0 and 6');\n } // set utc offset to get correct dates in future (when timezone changes)\n\n\n var firstOfMonth = month.clone().startOf('month').hour(12);\n var lastOfMonth = month.clone().endOf('month').hour(12); // calculate the exact first and last days to fill the entire matrix\n // (considering days outside month)\n\n var prevDays = (firstOfMonth.day() + 7 - firstDayOfWeek) % 7;\n var nextDays = (firstDayOfWeek + 6 - lastOfMonth.day()) % 7;\n var firstDay = firstOfMonth.clone().subtract(prevDays, 'day');\n var lastDay = lastOfMonth.clone().add(nextDays, 'day');\n var totalDays = lastDay.diff(firstDay, 'days') + 1;\n var currentDay = firstDay.clone();\n var weeksInMonth = [];\n\n for (var i = 0; i < totalDays; i += 1) {\n if (i % 7 === 0) {\n weeksInMonth.push([]);\n }\n\n var day = null;\n\n if (i >= prevDays && i < totalDays - nextDays || enableOutsideDays) {\n day = currentDay.clone();\n }\n\n weeksInMonth[weeksInMonth.length - 1].push(day);\n currentDay.add(1, 'day');\n }\n\n return weeksInMonth;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = isSameDay;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nfunction isSameDay(a, b) {\n if (!_moment[\"default\"].isMoment(a) || !_moment[\"default\"].isMoment(b)) return false; // Compare least significant, most likely to change units first\n // Moment's isSame clones moment inputs and is a tad slow\n\n return a.date() === b.date() && a.month() === b.month() && a.year() === b.year();\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = toMomentObject;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _constants = require(\"../constants\");\n\nfunction toMomentObject(dateString, customFormat) {\n var dateFormats = customFormat ? [customFormat, _constants.DISPLAY_FORMAT, _constants.ISO_FORMAT] : [_constants.DISPLAY_FORMAT, _constants.ISO_FORMAT];\n var date = (0, _moment[\"default\"])(dateString, dateFormats, true);\n return date.isValid() ? date.hour(12) : null;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = toISODateString;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _toMomentObject = _interopRequireDefault(require(\"./toMomentObject\"));\n\nfunction toISODateString(date, currentFormat) {\n var dateObj = _moment[\"default\"].isMoment(date) ? date : (0, _toMomentObject[\"default\"])(date, currentFormat);\n if (!dateObj) return null; // Template strings compiled in strict mode uses concat, which is slow. Since\n // this code is in a hot path and we want it to be as fast as possible, we\n // want to use old-fashioned +.\n // eslint-disable-next-line prefer-template\n\n return dateObj.year() + '-' + String(dateObj.month() + 1).padStart(2, '0') + '-' + String(dateObj.date()).padStart(2, '0');\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _constants = require(\"../constants\");\n\nvar _default = _propTypes[\"default\"].oneOf([_constants.HORIZONTAL_ORIENTATION, _constants.VERTICAL_ORIENTATION, _constants.VERTICAL_SCROLLABLE]);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _constants = require(\"../constants\");\n\nvar _default = _propTypes[\"default\"].oneOf(_constants.WEEKDAYS);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _enzymeShallowEqual = _interopRequireDefault(require(\"enzyme-shallow-equal\"));\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _reactMomentProptypes = _interopRequireDefault(require(\"react-moment-proptypes\"));\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _reactWithStyles = require(\"react-with-styles\");\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _defaultPhrases = require(\"../defaultPhrases\");\n\nvar _getPhrasePropTypes = _interopRequireDefault(require(\"../utils/getPhrasePropTypes\"));\n\nvar _CalendarWeek = _interopRequireDefault(require(\"./CalendarWeek\"));\n\nvar _CalendarDay = _interopRequireDefault(require(\"./CalendarDay\"));\n\nvar _calculateDimension = _interopRequireDefault(require(\"../utils/calculateDimension\"));\n\nvar _getCalendarMonthWeeks = _interopRequireDefault(require(\"../utils/getCalendarMonthWeeks\"));\n\nvar _isSameDay = _interopRequireDefault(require(\"../utils/isSameDay\"));\n\nvar _toISODateString = _interopRequireDefault(require(\"../utils/toISODateString\"));\n\nvar _ModifiersShape = _interopRequireDefault(require(\"../shapes/ModifiersShape\"));\n\nvar _ScrollableOrientationShape = _interopRequireDefault(require(\"../shapes/ScrollableOrientationShape\"));\n\nvar _DayOfWeekShape = _interopRequireDefault(require(\"../shapes/DayOfWeekShape\"));\n\nvar _constants = require(\"../constants\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nvar propTypes = process.env.NODE_ENV !== \"production\" ? (0, _airbnbPropTypes.forbidExtraProps)(_objectSpread({}, _reactWithStyles.withStylesPropTypes, {\n month: _reactMomentProptypes[\"default\"].momentObj,\n horizontalMonthPadding: _airbnbPropTypes.nonNegativeInteger,\n isVisible: _propTypes[\"default\"].bool,\n enableOutsideDays: _propTypes[\"default\"].bool,\n modifiers: _propTypes[\"default\"].objectOf(_ModifiersShape[\"default\"]),\n orientation: _ScrollableOrientationShape[\"default\"],\n daySize: _airbnbPropTypes.nonNegativeInteger,\n onDayClick: _propTypes[\"default\"].func,\n onDayMouseEnter: _propTypes[\"default\"].func,\n onDayMouseLeave: _propTypes[\"default\"].func,\n onMonthSelect: _propTypes[\"default\"].func,\n onYearSelect: _propTypes[\"default\"].func,\n renderMonthText: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes[\"default\"].func, 'renderMonthText', 'renderMonthElement'),\n renderCalendarDay: _propTypes[\"default\"].func,\n renderDayContents: _propTypes[\"default\"].func,\n renderMonthElement: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes[\"default\"].func, 'renderMonthText', 'renderMonthElement'),\n firstDayOfWeek: _DayOfWeekShape[\"default\"],\n setMonthTitleHeight: _propTypes[\"default\"].func,\n verticalBorderSpacing: _airbnbPropTypes.nonNegativeInteger,\n focusedDate: _reactMomentProptypes[\"default\"].momentObj,\n // indicates focusable day\n isFocused: _propTypes[\"default\"].bool,\n // indicates whether or not to move focus to focusable day\n // i18n\n monthFormat: _propTypes[\"default\"].string,\n phrases: _propTypes[\"default\"].shape((0, _getPhrasePropTypes[\"default\"])(_defaultPhrases.CalendarDayPhrases)),\n dayAriaLabelFormat: _propTypes[\"default\"].string\n})) : {};\nvar defaultProps = {\n month: (0, _moment[\"default\"])(),\n horizontalMonthPadding: 13,\n isVisible: true,\n enableOutsideDays: false,\n modifiers: {},\n orientation: _constants.HORIZONTAL_ORIENTATION,\n daySize: _constants.DAY_SIZE,\n onDayClick: function onDayClick() {},\n onDayMouseEnter: function onDayMouseEnter() {},\n onDayMouseLeave: function onDayMouseLeave() {},\n onMonthSelect: function onMonthSelect() {},\n onYearSelect: function onYearSelect() {},\n renderMonthText: null,\n renderCalendarDay: function renderCalendarDay(props) {\n return _react[\"default\"].createElement(_CalendarDay[\"default\"], props);\n },\n renderDayContents: null,\n renderMonthElement: null,\n firstDayOfWeek: null,\n setMonthTitleHeight: null,\n focusedDate: null,\n isFocused: false,\n // i18n\n monthFormat: 'MMMM YYYY',\n // english locale\n phrases: _defaultPhrases.CalendarDayPhrases,\n dayAriaLabelFormat: undefined,\n verticalBorderSpacing: undefined\n};\n\nvar CalendarMonth =\n/*#__PURE__*/\nfunction (_ref) {\n (0, _inheritsLoose2[\"default\"])(CalendarMonth, _ref);\n var _proto = CalendarMonth.prototype;\n\n _proto[!_react[\"default\"].PureComponent && \"shouldComponentUpdate\"] = function (nextProps, nextState) {\n return !(0, _enzymeShallowEqual[\"default\"])(this.props, nextProps) || !(0, _enzymeShallowEqual[\"default\"])(this.state, nextState);\n };\n\n function CalendarMonth(props) {\n var _this;\n\n _this = _ref.call(this, props) || this;\n _this.state = {\n weeks: (0, _getCalendarMonthWeeks[\"default\"])(props.month, props.enableOutsideDays, props.firstDayOfWeek == null ? _moment[\"default\"].localeData().firstDayOfWeek() : props.firstDayOfWeek)\n };\n _this.setCaptionRef = _this.setCaptionRef.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.setMonthTitleHeight = _this.setMonthTitleHeight.bind((0, _assertThisInitialized2[\"default\"])(_this));\n return _this;\n }\n\n _proto.componentDidMount = function componentDidMount() {\n this.setMonthTitleHeightTimeout = setTimeout(this.setMonthTitleHeight, 0);\n };\n\n _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n var month = nextProps.month,\n enableOutsideDays = nextProps.enableOutsideDays,\n firstDayOfWeek = nextProps.firstDayOfWeek;\n var _this$props = this.props,\n prevMonth = _this$props.month,\n prevEnableOutsideDays = _this$props.enableOutsideDays,\n prevFirstDayOfWeek = _this$props.firstDayOfWeek;\n\n if (!month.isSame(prevMonth) || enableOutsideDays !== prevEnableOutsideDays || firstDayOfWeek !== prevFirstDayOfWeek) {\n this.setState({\n weeks: (0, _getCalendarMonthWeeks[\"default\"])(month, enableOutsideDays, firstDayOfWeek == null ? _moment[\"default\"].localeData().firstDayOfWeek() : firstDayOfWeek)\n });\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n if (this.setMonthTitleHeightTimeout) {\n clearTimeout(this.setMonthTitleHeightTimeout);\n }\n };\n\n _proto.setMonthTitleHeight = function setMonthTitleHeight() {\n var setMonthTitleHeight = this.props.setMonthTitleHeight;\n\n if (setMonthTitleHeight) {\n var captionHeight = (0, _calculateDimension[\"default\"])(this.captionRef, 'height', true, true);\n setMonthTitleHeight(captionHeight);\n }\n };\n\n _proto.setCaptionRef = function setCaptionRef(ref) {\n this.captionRef = ref;\n };\n\n _proto.render = function render() {\n var _this$props2 = this.props,\n dayAriaLabelFormat = _this$props2.dayAriaLabelFormat,\n daySize = _this$props2.daySize,\n focusedDate = _this$props2.focusedDate,\n horizontalMonthPadding = _this$props2.horizontalMonthPadding,\n isFocused = _this$props2.isFocused,\n isVisible = _this$props2.isVisible,\n modifiers = _this$props2.modifiers,\n month = _this$props2.month,\n monthFormat = _this$props2.monthFormat,\n onDayClick = _this$props2.onDayClick,\n onDayMouseEnter = _this$props2.onDayMouseEnter,\n onDayMouseLeave = _this$props2.onDayMouseLeave,\n onMonthSelect = _this$props2.onMonthSelect,\n onYearSelect = _this$props2.onYearSelect,\n orientation = _this$props2.orientation,\n phrases = _this$props2.phrases,\n renderCalendarDay = _this$props2.renderCalendarDay,\n renderDayContents = _this$props2.renderDayContents,\n renderMonthElement = _this$props2.renderMonthElement,\n renderMonthText = _this$props2.renderMonthText,\n styles = _this$props2.styles,\n verticalBorderSpacing = _this$props2.verticalBorderSpacing;\n var weeks = this.state.weeks;\n var monthTitle = renderMonthText ? renderMonthText(month) : month.format(monthFormat);\n var verticalScrollable = orientation === _constants.VERTICAL_SCROLLABLE;\n return _react[\"default\"].createElement(\"div\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.CalendarMonth, {\n padding: \"0 \".concat(horizontalMonthPadding, \"px\")\n }), {\n \"data-visible\": isVisible\n }), _react[\"default\"].createElement(\"div\", (0, _extends2[\"default\"])({\n ref: this.setCaptionRef\n }, (0, _reactWithStyles.css)(styles.CalendarMonth_caption, verticalScrollable && styles.CalendarMonth_caption__verticalScrollable)), renderMonthElement ? renderMonthElement({\n month: month,\n onMonthSelect: onMonthSelect,\n onYearSelect: onYearSelect,\n isVisible: isVisible\n }) : _react[\"default\"].createElement(\"strong\", null, monthTitle)), _react[\"default\"].createElement(\"table\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(!verticalBorderSpacing && styles.CalendarMonth_table, verticalBorderSpacing && styles.CalendarMonth_verticalSpacing, verticalBorderSpacing && {\n borderSpacing: \"0px \".concat(verticalBorderSpacing, \"px\")\n }), {\n role: \"presentation\"\n }), _react[\"default\"].createElement(\"tbody\", null, weeks.map(function (week, i) {\n return _react[\"default\"].createElement(_CalendarWeek[\"default\"], {\n key: i\n }, week.map(function (day, dayOfWeek) {\n return renderCalendarDay({\n key: dayOfWeek,\n day: day,\n daySize: daySize,\n isOutsideDay: !day || day.month() !== month.month(),\n tabIndex: isVisible && (0, _isSameDay[\"default\"])(day, focusedDate) ? 0 : -1,\n isFocused: isFocused,\n onDayMouseEnter: onDayMouseEnter,\n onDayMouseLeave: onDayMouseLeave,\n onDayClick: onDayClick,\n renderDayContents: renderDayContents,\n phrases: phrases,\n modifiers: modifiers[(0, _toISODateString[\"default\"])(day)],\n ariaLabelFormat: dayAriaLabelFormat\n });\n }));\n }))));\n };\n\n return CalendarMonth;\n}(_react[\"default\"].PureComponent || _react[\"default\"].Component);\n\nCalendarMonth.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nCalendarMonth.defaultProps = defaultProps;\n\nvar _default = (0, _reactWithStyles.withStyles)(function (_ref2) {\n var _ref2$reactDates = _ref2.reactDates,\n color = _ref2$reactDates.color,\n font = _ref2$reactDates.font,\n spacing = _ref2$reactDates.spacing;\n return {\n CalendarMonth: {\n background: color.background,\n textAlign: 'center',\n verticalAlign: 'top',\n userSelect: 'none'\n },\n CalendarMonth_table: {\n borderCollapse: 'collapse',\n borderSpacing: 0\n },\n CalendarMonth_verticalSpacing: {\n borderCollapse: 'separate'\n },\n CalendarMonth_caption: {\n color: color.text,\n fontSize: font.captionSize,\n textAlign: 'center',\n paddingTop: spacing.captionPaddingTop,\n paddingBottom: spacing.captionPaddingBottom,\n captionSide: 'initial'\n },\n CalendarMonth_caption__verticalScrollable: {\n paddingTop: 12,\n paddingBottom: 7\n }\n };\n}, {\n pureComponent: typeof _react[\"default\"].PureComponent !== 'undefined'\n})(CalendarMonth);\n\nexports[\"default\"] = _default;","var CAN_USE_DOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n\n// Adapted from Modernizr\n// https://github.com/Modernizr/Modernizr/blob/acb3f0d9/feature-detects/dom/passiveeventlisteners.js#L26-L37\nfunction testPassiveEventListeners() {\n if (!CAN_USE_DOM) {\n return false;\n }\n\n if (!window.addEventListener || !window.removeEventListener || !Object.defineProperty) {\n return false;\n }\n\n var supportsPassiveOption = false;\n try {\n var opts = Object.defineProperty({}, 'passive', {\n // eslint-disable-next-line getter-return\n get: function () {\n function get() {\n supportsPassiveOption = true;\n }\n\n return get;\n }()\n });\n var noop = function noop() {};\n window.addEventListener('testPassiveEventSupport', noop, opts);\n window.removeEventListener('testPassiveEventSupport', noop, opts);\n } catch (e) {\n // do nothing\n }\n\n return supportsPassiveOption;\n}\n\nvar memoized = void 0;\n\nfunction canUsePassiveEventListeners() {\n if (memoized === undefined) {\n memoized = testPassiveEventListeners();\n }\n return memoized;\n}\n\nfunction normalizeEventOptions(eventOptions) {\n if (!eventOptions) {\n return undefined;\n }\n\n if (!canUsePassiveEventListeners()) {\n // If the browser does not support the passive option, then it is expecting\n // a boolean for the options argument to specify whether it should use\n // capture or not. In more modern browsers, this is passed via the `capture`\n // option, so let's just hoist that value up.\n return !!eventOptions.capture;\n }\n\n return eventOptions;\n}\n\n/* eslint-disable no-bitwise */\n\n/**\n * Generate a unique key for any set of event options\n */\nfunction eventOptionsKey(normalizedEventOptions) {\n if (!normalizedEventOptions) {\n return 0;\n }\n\n // If the browser does not support passive event listeners, the normalized\n // event options will be a boolean.\n if (normalizedEventOptions === true) {\n return 100;\n }\n\n // At this point, the browser supports passive event listeners, so we expect\n // the event options to be an object with possible properties of capture,\n // passive, and once.\n //\n // We want to consistently return the same value, regardless of the order of\n // these properties, so let's use binary maths to assign each property to a\n // bit, and then add those together (with an offset to account for the\n // booleans at the beginning of this function).\n var capture = normalizedEventOptions.capture << 0;\n var passive = normalizedEventOptions.passive << 1;\n var once = normalizedEventOptions.once << 2;\n return capture + passive + once;\n}\n\nfunction ensureCanMutateNextEventHandlers(eventHandlers) {\n if (eventHandlers.handlers === eventHandlers.nextHandlers) {\n // eslint-disable-next-line no-param-reassign\n eventHandlers.nextHandlers = eventHandlers.handlers.slice();\n }\n}\n\nfunction TargetEventHandlers(target) {\n this.target = target;\n this.events = {};\n}\n\nTargetEventHandlers.prototype.getEventHandlers = function () {\n function getEventHandlers(eventName, options) {\n var key = String(eventName) + ' ' + String(eventOptionsKey(options));\n\n if (!this.events[key]) {\n this.events[key] = {\n handlers: [],\n handleEvent: undefined\n };\n this.events[key].nextHandlers = this.events[key].handlers;\n }\n\n return this.events[key];\n }\n\n return getEventHandlers;\n}();\n\nTargetEventHandlers.prototype.handleEvent = function () {\n function handleEvent(eventName, options, event) {\n var eventHandlers = this.getEventHandlers(eventName, options);\n eventHandlers.handlers = eventHandlers.nextHandlers;\n eventHandlers.handlers.forEach(function (handler) {\n if (handler) {\n // We need to check for presence here because a handler function may\n // cause later handlers to get removed. This can happen if you for\n // instance have a waypoint that unmounts another waypoint as part of an\n // onEnter/onLeave handler.\n handler(event);\n }\n });\n }\n\n return handleEvent;\n}();\n\nTargetEventHandlers.prototype.add = function () {\n function add(eventName, listener, options) {\n var _this = this;\n\n // options has already been normalized at this point.\n var eventHandlers = this.getEventHandlers(eventName, options);\n\n ensureCanMutateNextEventHandlers(eventHandlers);\n\n if (eventHandlers.nextHandlers.length === 0) {\n eventHandlers.handleEvent = this.handleEvent.bind(this, eventName, options);\n\n this.target.addEventListener(eventName, eventHandlers.handleEvent, options);\n }\n\n eventHandlers.nextHandlers.push(listener);\n\n var isSubscribed = true;\n var unsubscribe = function () {\n function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n\n isSubscribed = false;\n\n ensureCanMutateNextEventHandlers(eventHandlers);\n var index = eventHandlers.nextHandlers.indexOf(listener);\n eventHandlers.nextHandlers.splice(index, 1);\n\n if (eventHandlers.nextHandlers.length === 0) {\n // All event handlers have been removed, so we want to remove the event\n // listener from the target node.\n\n if (_this.target) {\n // There can be a race condition where the target may no longer exist\n // when this function is called, e.g. when a React component is\n // unmounting. Guarding against this prevents the following error:\n //\n // Cannot read property 'removeEventListener' of undefined\n _this.target.removeEventListener(eventName, eventHandlers.handleEvent, options);\n }\n\n eventHandlers.handleEvent = undefined;\n }\n }\n\n return unsubscribe;\n }();\n return unsubscribe;\n }\n\n return add;\n}();\n\nvar EVENT_HANDLERS_KEY = '__consolidated_events_handlers__';\n\n// eslint-disable-next-line import/prefer-default-export\nfunction addEventListener(target, eventName, listener, options) {\n if (!target[EVENT_HANDLERS_KEY]) {\n // eslint-disable-next-line no-param-reassign\n target[EVENT_HANDLERS_KEY] = new TargetEventHandlers(target);\n }\n var normalizedEventOptions = normalizeEventOptions(options);\n return target[EVENT_HANDLERS_KEY].add(eventName, listener, normalizedEventOptions);\n}\n\nexport { addEventListener };\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = noflip;\nvar NOFLIP = '/* @noflip */'; // Appends a noflip comment to a style rule in order to prevent it from being automatically\n// flipped in RTL contexts. This should be used only in situations where the style must remain\n// unflipped regardless of direction context. See: https://github.com/kentcdodds/rtl-css-js#usage\n\nfunction noflip(value) {\n if (typeof value === 'number') return \"\".concat(value, \"px \").concat(NOFLIP);\n if (typeof value === 'string') return \"\".concat(value, \" \").concat(NOFLIP);\n throw new TypeError('noflip expects a string or a number');\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = isTransitionEndSupported;\n\nfunction isTransitionEndSupported() {\n return !!(typeof window !== 'undefined' && 'TransitionEvent' in window);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getTransformStyles;\n\nfunction getTransformStyles(transformValue) {\n return {\n transform: transformValue,\n msTransform: transformValue,\n MozTransform: transformValue,\n WebkitTransform: transformValue\n };\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getCalendarMonthWidth;\n\nfunction getCalendarMonthWidth(daySize) {\n var calendarMonthPadding = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n return 7 * daySize + 2 * calendarMonthPadding + 1;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = toISOMonthString;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _toMomentObject = _interopRequireDefault(require(\"./toMomentObject\"));\n\nfunction toISOMonthString(date, currentFormat) {\n var dateObj = _moment[\"default\"].isMoment(date) ? date : (0, _toMomentObject[\"default\"])(date, currentFormat);\n if (!dateObj) return null; // Template strings compiled in strict mode uses concat, which is slow. Since\n // this code is in a hot path and we want it to be as fast as possible, we\n // want to use old-fashioned +.\n // eslint-disable-next-line prefer-template\n\n return dateObj.year() + '-' + String(dateObj.month() + 1).padStart(2, '0');\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = isSameMonth;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nfunction isSameMonth(a, b) {\n if (!_moment[\"default\"].isMoment(a) || !_moment[\"default\"].isMoment(b)) return false; // Compare least significant, most likely to change units first\n // Moment's isSame clones moment inputs and is a tad slow\n\n return a.month() === b.month() && a.year() === b.year();\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = isPrevMonth;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _isSameMonth = _interopRequireDefault(require(\"./isSameMonth\"));\n\nfunction isPrevMonth(a, b) {\n if (!_moment[\"default\"].isMoment(a) || !_moment[\"default\"].isMoment(b)) return false;\n return (0, _isSameMonth[\"default\"])(a.clone().subtract(1, 'month'), b);\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = isNextMonth;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _isSameMonth = _interopRequireDefault(require(\"./isSameMonth\"));\n\nfunction isNextMonth(a, b) {\n if (!_moment[\"default\"].isMoment(a) || !_moment[\"default\"].isMoment(b)) return false;\n return (0, _isSameMonth[\"default\"])(a.clone().add(1, 'month'), b);\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _enzymeShallowEqual = _interopRequireDefault(require(\"enzyme-shallow-equal\"));\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _reactMomentProptypes = _interopRequireDefault(require(\"react-moment-proptypes\"));\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _reactWithStyles = require(\"react-with-styles\");\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _consolidatedEvents = require(\"consolidated-events\");\n\nvar _defaultPhrases = require(\"../defaultPhrases\");\n\nvar _getPhrasePropTypes = _interopRequireDefault(require(\"../utils/getPhrasePropTypes\"));\n\nvar _noflip = _interopRequireDefault(require(\"../utils/noflip\"));\n\nvar _CalendarMonth = _interopRequireDefault(require(\"./CalendarMonth\"));\n\nvar _isTransitionEndSupported = _interopRequireDefault(require(\"../utils/isTransitionEndSupported\"));\n\nvar _getTransformStyles = _interopRequireDefault(require(\"../utils/getTransformStyles\"));\n\nvar _getCalendarMonthWidth = _interopRequireDefault(require(\"../utils/getCalendarMonthWidth\"));\n\nvar _toISOMonthString = _interopRequireDefault(require(\"../utils/toISOMonthString\"));\n\nvar _isPrevMonth = _interopRequireDefault(require(\"../utils/isPrevMonth\"));\n\nvar _isNextMonth = _interopRequireDefault(require(\"../utils/isNextMonth\"));\n\nvar _ModifiersShape = _interopRequireDefault(require(\"../shapes/ModifiersShape\"));\n\nvar _ScrollableOrientationShape = _interopRequireDefault(require(\"../shapes/ScrollableOrientationShape\"));\n\nvar _DayOfWeekShape = _interopRequireDefault(require(\"../shapes/DayOfWeekShape\"));\n\nvar _constants = require(\"../constants\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nvar propTypes = process.env.NODE_ENV !== \"production\" ? (0, _airbnbPropTypes.forbidExtraProps)(_objectSpread({}, _reactWithStyles.withStylesPropTypes, {\n enableOutsideDays: _propTypes[\"default\"].bool,\n firstVisibleMonthIndex: _propTypes[\"default\"].number,\n horizontalMonthPadding: _airbnbPropTypes.nonNegativeInteger,\n initialMonth: _reactMomentProptypes[\"default\"].momentObj,\n isAnimating: _propTypes[\"default\"].bool,\n numberOfMonths: _propTypes[\"default\"].number,\n modifiers: _propTypes[\"default\"].objectOf(_propTypes[\"default\"].objectOf(_ModifiersShape[\"default\"])),\n orientation: _ScrollableOrientationShape[\"default\"],\n onDayClick: _propTypes[\"default\"].func,\n onDayMouseEnter: _propTypes[\"default\"].func,\n onDayMouseLeave: _propTypes[\"default\"].func,\n onMonthTransitionEnd: _propTypes[\"default\"].func,\n onMonthChange: _propTypes[\"default\"].func,\n onYearChange: _propTypes[\"default\"].func,\n renderMonthText: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes[\"default\"].func, 'renderMonthText', 'renderMonthElement'),\n renderCalendarDay: _propTypes[\"default\"].func,\n renderDayContents: _propTypes[\"default\"].func,\n translationValue: _propTypes[\"default\"].number,\n renderMonthElement: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes[\"default\"].func, 'renderMonthText', 'renderMonthElement'),\n daySize: _airbnbPropTypes.nonNegativeInteger,\n focusedDate: _reactMomentProptypes[\"default\"].momentObj,\n // indicates focusable day\n isFocused: _propTypes[\"default\"].bool,\n // indicates whether or not to move focus to focusable day\n firstDayOfWeek: _DayOfWeekShape[\"default\"],\n setMonthTitleHeight: _propTypes[\"default\"].func,\n isRTL: _propTypes[\"default\"].bool,\n transitionDuration: _airbnbPropTypes.nonNegativeInteger,\n verticalBorderSpacing: _airbnbPropTypes.nonNegativeInteger,\n // i18n\n monthFormat: _propTypes[\"default\"].string,\n phrases: _propTypes[\"default\"].shape((0, _getPhrasePropTypes[\"default\"])(_defaultPhrases.CalendarDayPhrases)),\n dayAriaLabelFormat: _propTypes[\"default\"].string\n})) : {};\nvar defaultProps = {\n enableOutsideDays: false,\n firstVisibleMonthIndex: 0,\n horizontalMonthPadding: 13,\n initialMonth: (0, _moment[\"default\"])(),\n isAnimating: false,\n numberOfMonths: 1,\n modifiers: {},\n orientation: _constants.HORIZONTAL_ORIENTATION,\n onDayClick: function onDayClick() {},\n onDayMouseEnter: function onDayMouseEnter() {},\n onDayMouseLeave: function onDayMouseLeave() {},\n onMonthChange: function onMonthChange() {},\n onYearChange: function onYearChange() {},\n onMonthTransitionEnd: function onMonthTransitionEnd() {},\n renderMonthText: null,\n renderCalendarDay: undefined,\n renderDayContents: null,\n translationValue: null,\n renderMonthElement: null,\n daySize: _constants.DAY_SIZE,\n focusedDate: null,\n isFocused: false,\n firstDayOfWeek: null,\n setMonthTitleHeight: null,\n isRTL: false,\n transitionDuration: 200,\n verticalBorderSpacing: undefined,\n // i18n\n monthFormat: 'MMMM YYYY',\n // english locale\n phrases: _defaultPhrases.CalendarDayPhrases,\n dayAriaLabelFormat: undefined\n};\n\nfunction getMonths(initialMonth, numberOfMonths, withoutTransitionMonths) {\n var month = initialMonth.clone();\n if (!withoutTransitionMonths) month = month.subtract(1, 'month');\n var months = [];\n\n for (var i = 0; i < (withoutTransitionMonths ? numberOfMonths : numberOfMonths + 2); i += 1) {\n months.push(month);\n month = month.clone().add(1, 'month');\n }\n\n return months;\n}\n\nvar CalendarMonthGrid =\n/*#__PURE__*/\nfunction (_ref) {\n (0, _inheritsLoose2[\"default\"])(CalendarMonthGrid, _ref);\n var _proto = CalendarMonthGrid.prototype;\n\n _proto[!_react[\"default\"].PureComponent && \"shouldComponentUpdate\"] = function (nextProps, nextState) {\n return !(0, _enzymeShallowEqual[\"default\"])(this.props, nextProps) || !(0, _enzymeShallowEqual[\"default\"])(this.state, nextState);\n };\n\n function CalendarMonthGrid(props) {\n var _this;\n\n _this = _ref.call(this, props) || this;\n var withoutTransitionMonths = props.orientation === _constants.VERTICAL_SCROLLABLE;\n _this.state = {\n months: getMonths(props.initialMonth, props.numberOfMonths, withoutTransitionMonths)\n };\n _this.isTransitionEndSupported = (0, _isTransitionEndSupported[\"default\"])();\n _this.onTransitionEnd = _this.onTransitionEnd.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.setContainerRef = _this.setContainerRef.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.locale = _moment[\"default\"].locale();\n _this.onMonthSelect = _this.onMonthSelect.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onYearSelect = _this.onYearSelect.bind((0, _assertThisInitialized2[\"default\"])(_this));\n return _this;\n }\n\n _proto.componentDidMount = function componentDidMount() {\n this.removeEventListener = (0, _consolidatedEvents.addEventListener)(this.container, 'transitionend', this.onTransitionEnd);\n };\n\n _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n var _this2 = this;\n\n var initialMonth = nextProps.initialMonth,\n numberOfMonths = nextProps.numberOfMonths,\n orientation = nextProps.orientation;\n var months = this.state.months;\n var _this$props = this.props,\n prevInitialMonth = _this$props.initialMonth,\n prevNumberOfMonths = _this$props.numberOfMonths;\n var hasMonthChanged = !prevInitialMonth.isSame(initialMonth, 'month');\n var hasNumberOfMonthsChanged = prevNumberOfMonths !== numberOfMonths;\n var newMonths = months;\n\n if (hasMonthChanged && !hasNumberOfMonthsChanged) {\n if ((0, _isNextMonth[\"default\"])(prevInitialMonth, initialMonth)) {\n newMonths = months.slice(1);\n newMonths.push(months[months.length - 1].clone().add(1, 'month'));\n } else if ((0, _isPrevMonth[\"default\"])(prevInitialMonth, initialMonth)) {\n newMonths = months.slice(0, months.length - 1);\n newMonths.unshift(months[0].clone().subtract(1, 'month'));\n } else {\n var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE;\n newMonths = getMonths(initialMonth, numberOfMonths, withoutTransitionMonths);\n }\n }\n\n if (hasNumberOfMonthsChanged) {\n var _withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE;\n\n newMonths = getMonths(initialMonth, numberOfMonths, _withoutTransitionMonths);\n }\n\n var momentLocale = _moment[\"default\"].locale();\n\n if (this.locale !== momentLocale) {\n this.locale = momentLocale;\n newMonths = newMonths.map(function (m) {\n return m.locale(_this2.locale);\n });\n }\n\n this.setState({\n months: newMonths\n });\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n var _this$props2 = this.props,\n isAnimating = _this$props2.isAnimating,\n transitionDuration = _this$props2.transitionDuration,\n onMonthTransitionEnd = _this$props2.onMonthTransitionEnd; // For IE9, immediately call onMonthTransitionEnd instead of\n // waiting for the animation to complete. Similarly, if transitionDuration\n // is set to 0, also immediately invoke the onMonthTransitionEnd callback\n\n if ((!this.isTransitionEndSupported || !transitionDuration) && isAnimating) {\n onMonthTransitionEnd();\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n if (this.removeEventListener) this.removeEventListener();\n };\n\n _proto.onTransitionEnd = function onTransitionEnd() {\n var onMonthTransitionEnd = this.props.onMonthTransitionEnd;\n onMonthTransitionEnd();\n };\n\n _proto.onMonthSelect = function onMonthSelect(currentMonth, newMonthVal) {\n var newMonth = currentMonth.clone();\n var _this$props3 = this.props,\n onMonthChange = _this$props3.onMonthChange,\n orientation = _this$props3.orientation;\n var months = this.state.months;\n var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE;\n var initialMonthSubtraction = months.indexOf(currentMonth);\n\n if (!withoutTransitionMonths) {\n initialMonthSubtraction -= 1;\n }\n\n newMonth.set('month', newMonthVal).subtract(initialMonthSubtraction, 'months');\n onMonthChange(newMonth);\n };\n\n _proto.onYearSelect = function onYearSelect(currentMonth, newYearVal) {\n var newMonth = currentMonth.clone();\n var _this$props4 = this.props,\n onYearChange = _this$props4.onYearChange,\n orientation = _this$props4.orientation;\n var months = this.state.months;\n var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE;\n var initialMonthSubtraction = months.indexOf(currentMonth);\n\n if (!withoutTransitionMonths) {\n initialMonthSubtraction -= 1;\n }\n\n newMonth.set('year', newYearVal).subtract(initialMonthSubtraction, 'months');\n onYearChange(newMonth);\n };\n\n _proto.setContainerRef = function setContainerRef(ref) {\n this.container = ref;\n };\n\n _proto.render = function render() {\n var _this3 = this;\n\n var _this$props5 = this.props,\n enableOutsideDays = _this$props5.enableOutsideDays,\n firstVisibleMonthIndex = _this$props5.firstVisibleMonthIndex,\n horizontalMonthPadding = _this$props5.horizontalMonthPadding,\n isAnimating = _this$props5.isAnimating,\n modifiers = _this$props5.modifiers,\n numberOfMonths = _this$props5.numberOfMonths,\n monthFormat = _this$props5.monthFormat,\n orientation = _this$props5.orientation,\n translationValue = _this$props5.translationValue,\n daySize = _this$props5.daySize,\n onDayMouseEnter = _this$props5.onDayMouseEnter,\n onDayMouseLeave = _this$props5.onDayMouseLeave,\n onDayClick = _this$props5.onDayClick,\n renderMonthText = _this$props5.renderMonthText,\n renderCalendarDay = _this$props5.renderCalendarDay,\n renderDayContents = _this$props5.renderDayContents,\n renderMonthElement = _this$props5.renderMonthElement,\n onMonthTransitionEnd = _this$props5.onMonthTransitionEnd,\n firstDayOfWeek = _this$props5.firstDayOfWeek,\n focusedDate = _this$props5.focusedDate,\n isFocused = _this$props5.isFocused,\n isRTL = _this$props5.isRTL,\n styles = _this$props5.styles,\n phrases = _this$props5.phrases,\n dayAriaLabelFormat = _this$props5.dayAriaLabelFormat,\n transitionDuration = _this$props5.transitionDuration,\n verticalBorderSpacing = _this$props5.verticalBorderSpacing,\n setMonthTitleHeight = _this$props5.setMonthTitleHeight;\n var months = this.state.months;\n var isVertical = orientation === _constants.VERTICAL_ORIENTATION;\n var isVerticalScrollable = orientation === _constants.VERTICAL_SCROLLABLE;\n var isHorizontal = orientation === _constants.HORIZONTAL_ORIENTATION;\n var calendarMonthWidth = (0, _getCalendarMonthWidth[\"default\"])(daySize, horizontalMonthPadding);\n var width = isVertical || isVerticalScrollable ? calendarMonthWidth : (numberOfMonths + 2) * calendarMonthWidth;\n var transformType = isVertical || isVerticalScrollable ? 'translateY' : 'translateX';\n var transformValue = \"\".concat(transformType, \"(\").concat(translationValue, \"px)\");\n return _react[\"default\"].createElement(\"div\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.CalendarMonthGrid, isHorizontal && styles.CalendarMonthGrid__horizontal, isVertical && styles.CalendarMonthGrid__vertical, isVerticalScrollable && styles.CalendarMonthGrid__vertical_scrollable, isAnimating && styles.CalendarMonthGrid__animating, isAnimating && transitionDuration && {\n transition: \"transform \".concat(transitionDuration, \"ms ease-in-out\")\n }, _objectSpread({}, (0, _getTransformStyles[\"default\"])(transformValue), {\n width: width\n })), {\n ref: this.setContainerRef,\n onTransitionEnd: onMonthTransitionEnd\n }), months.map(function (month, i) {\n var isVisible = i >= firstVisibleMonthIndex && i < firstVisibleMonthIndex + numberOfMonths;\n var hideForAnimation = i === 0 && !isVisible;\n var showForAnimation = i === 0 && isAnimating && isVisible;\n var monthString = (0, _toISOMonthString[\"default\"])(month);\n return _react[\"default\"].createElement(\"div\", (0, _extends2[\"default\"])({\n key: monthString\n }, (0, _reactWithStyles.css)(isHorizontal && styles.CalendarMonthGrid_month__horizontal, hideForAnimation && styles.CalendarMonthGrid_month__hideForAnimation, showForAnimation && !isVertical && !isRTL && {\n position: 'absolute',\n left: -calendarMonthWidth\n }, showForAnimation && !isVertical && isRTL && {\n position: 'absolute',\n right: 0\n }, showForAnimation && isVertical && {\n position: 'absolute',\n top: -translationValue\n }, !isVisible && !isAnimating && styles.CalendarMonthGrid_month__hidden)), _react[\"default\"].createElement(_CalendarMonth[\"default\"], {\n month: month,\n isVisible: isVisible,\n enableOutsideDays: enableOutsideDays,\n modifiers: modifiers[monthString],\n monthFormat: monthFormat,\n orientation: orientation,\n onDayMouseEnter: onDayMouseEnter,\n onDayMouseLeave: onDayMouseLeave,\n onDayClick: onDayClick,\n onMonthSelect: _this3.onMonthSelect,\n onYearSelect: _this3.onYearSelect,\n renderMonthText: renderMonthText,\n renderCalendarDay: renderCalendarDay,\n renderDayContents: renderDayContents,\n renderMonthElement: renderMonthElement,\n firstDayOfWeek: firstDayOfWeek,\n daySize: daySize,\n focusedDate: isVisible ? focusedDate : null,\n isFocused: isFocused,\n phrases: phrases,\n setMonthTitleHeight: setMonthTitleHeight,\n dayAriaLabelFormat: dayAriaLabelFormat,\n verticalBorderSpacing: verticalBorderSpacing,\n horizontalMonthPadding: horizontalMonthPadding\n }));\n }));\n };\n\n return CalendarMonthGrid;\n}(_react[\"default\"].PureComponent || _react[\"default\"].Component);\n\nCalendarMonthGrid.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nCalendarMonthGrid.defaultProps = defaultProps;\n\nvar _default = (0, _reactWithStyles.withStyles)(function (_ref2) {\n var _ref2$reactDates = _ref2.reactDates,\n color = _ref2$reactDates.color,\n spacing = _ref2$reactDates.spacing,\n zIndex = _ref2$reactDates.zIndex;\n return {\n CalendarMonthGrid: {\n background: color.background,\n textAlign: (0, _noflip[\"default\"])('left'),\n zIndex: zIndex\n },\n CalendarMonthGrid__animating: {\n zIndex: zIndex + 1\n },\n CalendarMonthGrid__horizontal: {\n position: 'absolute',\n left: (0, _noflip[\"default\"])(spacing.dayPickerHorizontalPadding)\n },\n CalendarMonthGrid__vertical: {\n margin: '0 auto'\n },\n CalendarMonthGrid__vertical_scrollable: {\n margin: '0 auto'\n },\n CalendarMonthGrid_month__horizontal: {\n display: 'inline-block',\n verticalAlign: 'top',\n minHeight: '100%'\n },\n CalendarMonthGrid_month__hideForAnimation: {\n position: 'absolute',\n zIndex: zIndex - 1,\n opacity: 0,\n pointerEvents: 'none'\n },\n CalendarMonthGrid_month__hidden: {\n visibility: 'hidden'\n }\n };\n}, {\n pureComponent: typeof _react[\"default\"].PureComponent !== 'undefined'\n})(CalendarMonthGrid);\n\nexports[\"default\"] = _default;","export var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);","var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport ReactDOM from 'react-dom';\nimport { canUseDOM } from './utils';\n\nvar Portal = function (_React$Component) {\n _inherits(Portal, _React$Component);\n\n function Portal() {\n _classCallCheck(this, Portal);\n\n return _possibleConstructorReturn(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).apply(this, arguments));\n }\n\n _createClass(Portal, [{\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.defaultNode) {\n document.body.removeChild(this.defaultNode);\n }\n this.defaultNode = null;\n }\n }, {\n key: 'render',\n value: function render() {\n if (!canUseDOM) {\n return null;\n }\n if (!this.props.node && !this.defaultNode) {\n this.defaultNode = document.createElement('div');\n document.body.appendChild(this.defaultNode);\n }\n return ReactDOM.createPortal(this.props.children, this.props.node || this.defaultNode);\n }\n }]);\n\n return Portal;\n}(React.Component);\n\nPortal.propTypes = {\n children: PropTypes.node.isRequired,\n node: PropTypes.any\n};\n\nexport default Portal;","var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n// This file is a fallback for a consumer who is not yet on React 16\n// as createPortal was introduced in React 16\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\n\nvar Portal = function (_React$Component) {\n _inherits(Portal, _React$Component);\n\n function Portal() {\n _classCallCheck(this, Portal);\n\n return _possibleConstructorReturn(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).apply(this, arguments));\n }\n\n _createClass(Portal, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.renderPortal();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(props) {\n this.renderPortal();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n ReactDOM.unmountComponentAtNode(this.defaultNode || this.props.node);\n if (this.defaultNode) {\n document.body.removeChild(this.defaultNode);\n }\n this.defaultNode = null;\n this.portal = null;\n }\n }, {\n key: 'renderPortal',\n value: function renderPortal(props) {\n if (!this.props.node && !this.defaultNode) {\n this.defaultNode = document.createElement('div');\n document.body.appendChild(this.defaultNode);\n }\n\n var children = this.props.children;\n // https://gist.github.com/jimfb/d99e0678e9da715ccf6454961ef04d1b\n if (typeof this.props.children.type === 'function') {\n children = React.cloneElement(this.props.children);\n }\n\n this.portal = ReactDOM.unstable_renderSubtreeIntoContainer(this, children, this.props.node || this.defaultNode);\n }\n }, {\n key: 'render',\n value: function render() {\n return null;\n }\n }]);\n\n return Portal;\n}(React.Component);\n\nexport default Portal;\n\n\nPortal.propTypes = {\n children: PropTypes.node.isRequired,\n node: PropTypes.any\n};","import ReactDOM from 'react-dom';\n\nimport Portalv4 from './Portal';\nimport LegacyPortal from './LegacyPortal';\n\nvar Portal = void 0;\n\nif (ReactDOM.createPortal) {\n Portal = Portalv4;\n} else {\n Portal = LegacyPortal;\n}\n\nexport default Portal;","var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport Portal from './PortalCompat';\n\nvar KEYCODES = {\n ESCAPE: 27\n};\n\nvar PortalWithState = function (_React$Component) {\n _inherits(PortalWithState, _React$Component);\n\n function PortalWithState(props) {\n _classCallCheck(this, PortalWithState);\n\n var _this = _possibleConstructorReturn(this, (PortalWithState.__proto__ || Object.getPrototypeOf(PortalWithState)).call(this, props));\n\n _this.portalNode = null;\n _this.state = { active: !!props.defaultOpen };\n _this.openPortal = _this.openPortal.bind(_this);\n _this.closePortal = _this.closePortal.bind(_this);\n _this.wrapWithPortal = _this.wrapWithPortal.bind(_this);\n _this.handleOutsideMouseClick = _this.handleOutsideMouseClick.bind(_this);\n _this.handleKeydown = _this.handleKeydown.bind(_this);\n return _this;\n }\n\n _createClass(PortalWithState, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.props.closeOnEsc) {\n document.addEventListener('keydown', this.handleKeydown);\n }\n if (this.props.closeOnOutsideClick) {\n document.addEventListener('click', this.handleOutsideMouseClick);\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.props.closeOnEsc) {\n document.removeEventListener('keydown', this.handleKeydown);\n }\n if (this.props.closeOnOutsideClick) {\n document.removeEventListener('click', this.handleOutsideMouseClick);\n }\n }\n }, {\n key: 'openPortal',\n value: function openPortal(e) {\n if (this.state.active) {\n return;\n }\n if (e && e.nativeEvent) {\n e.nativeEvent.stopImmediatePropagation();\n }\n this.setState({ active: true }, this.props.onOpen);\n }\n }, {\n key: 'closePortal',\n value: function closePortal() {\n if (!this.state.active) {\n return;\n }\n this.setState({ active: false }, this.props.onClose);\n }\n }, {\n key: 'wrapWithPortal',\n value: function wrapWithPortal(children) {\n var _this2 = this;\n\n if (!this.state.active) {\n return null;\n }\n return React.createElement(\n Portal,\n {\n node: this.props.node,\n key: 'react-portal',\n ref: function ref(portalNode) {\n return _this2.portalNode = portalNode;\n }\n },\n children\n );\n }\n }, {\n key: 'handleOutsideMouseClick',\n value: function handleOutsideMouseClick(e) {\n if (!this.state.active) {\n return;\n }\n var root = this.portalNode && (this.portalNode.props.node || this.portalNode.defaultNode);\n if (!root || root.contains(e.target) || e.button && e.button !== 0) {\n return;\n }\n this.closePortal();\n }\n }, {\n key: 'handleKeydown',\n value: function handleKeydown(e) {\n if (e.keyCode === KEYCODES.ESCAPE && this.state.active) {\n this.closePortal();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n return this.props.children({\n openPortal: this.openPortal,\n closePortal: this.closePortal,\n portal: this.wrapWithPortal,\n isOpen: this.state.active\n });\n }\n }]);\n\n return PortalWithState;\n}(React.Component);\n\nPortalWithState.propTypes = {\n children: PropTypes.func.isRequired,\n defaultOpen: PropTypes.bool,\n node: PropTypes.any,\n closeOnEsc: PropTypes.bool,\n closeOnOutsideClick: PropTypes.bool,\n onOpen: PropTypes.func,\n onClose: PropTypes.func\n};\n\nPortalWithState.defaultProps = {\n onOpen: function onOpen() {},\n onClose: function onClose() {}\n};\n\nexport default PortalWithState;","Object.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = isTouchDevice;\nfunction isTouchDevice() {\n return !!(typeof window !== 'undefined' && ('ontouchstart' in window || window.DocumentTouch && typeof document !== 'undefined' && document instanceof window.DocumentTouch)) || !!(typeof navigator !== 'undefined' && (navigator.maxTouchPoints || navigator.msMaxTouchPoints));\n}\nmodule.exports = exports['default'];","'use strict';\n\nmodule.exports = function contains(other) {\n\tif (arguments.length < 1) {\n\t\tthrow new TypeError('1 argument is required');\n\t}\n\tif (typeof other !== 'object') {\n\t\tthrow new TypeError('Argument 1 (”other“) to Node.contains must be an instance of Node');\n\t}\n\n\tvar node = other;\n\tdo {\n\t\tif (this === node) {\n\t\t\treturn true;\n\t\t}\n\t\tif (node) {\n\t\t\tnode = node.parentNode;\n\t\t}\n\t} while (node);\n\n\treturn false;\n};\n","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = function getPolyfill() {\n\tif (typeof document !== 'undefined') {\n\t\tif (document.contains) {\n\t\t\treturn document.contains;\n\t\t}\n\t\tif (document.body && document.body.contains) {\n\t\t\ttry {\n\t\t\t\tif (typeof document.body.contains.call(document, '') === 'boolean') {\n\t\t\t\t\treturn document.body.contains;\n\t\t\t\t}\n\t\t\t} catch (e) { /**/ }\n\t\t}\n\t}\n\treturn implementation;\n};\n","'use strict';\n\nvar define = require('define-properties');\nvar getPolyfill = require('./polyfill');\n\nmodule.exports = function shimContains() {\n\tvar polyfill = getPolyfill();\n\tif (typeof document !== 'undefined') {\n\t\tdefine(\n\t\t\tdocument,\n\t\t\t{ contains: polyfill },\n\t\t\t{ contains: function () { return document.contains !== polyfill; } }\n\t\t);\n\t\tif (typeof Element !== 'undefined') {\n\t\t\tdefine(\n\t\t\t\tElement.prototype,\n\t\t\t\t{ contains: polyfill },\n\t\t\t\t{ contains: function () { return Element.prototype.contains !== polyfill; } }\n\t\t\t);\n\t\t}\n\t}\n\treturn polyfill;\n};\n","'use strict';\n\nvar define = require('define-properties');\n\nvar implementation = require('./implementation');\nvar getPolyfill = require('./polyfill');\nvar polyfill = getPolyfill();\nvar shim = require('./shim');\n\nvar boundContains = function contains(node, other) {\n\treturn polyfill.apply(node, [other]);\n};\n\ndefine(boundContains, {\n\tgetPolyfill: getPolyfill,\n\timplementation: implementation,\n\tshim: shim\n});\n\nmodule.exports = boundContains;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _airbnbPropTypes = require('airbnb-prop-types');\n\nvar _consolidatedEvents = require('consolidated-events');\n\nvar _object = require('object.values');\n\nvar _object2 = _interopRequireDefault(_object);\n\nvar _document = require('document.contains');\n\nvar _document2 = _interopRequireDefault(_document);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar DISPLAY = {\n BLOCK: 'block',\n FLEX: 'flex',\n INLINE: 'inline',\n INLINE_BLOCK: 'inline-block',\n CONTENTS: 'contents'\n};\n\nvar propTypes = (0, _airbnbPropTypes.forbidExtraProps)({\n children: _propTypes2['default'].node.isRequired,\n onOutsideClick: _propTypes2['default'].func.isRequired,\n disabled: _propTypes2['default'].bool,\n useCapture: _propTypes2['default'].bool,\n display: _propTypes2['default'].oneOf((0, _object2['default'])(DISPLAY))\n});\n\nvar defaultProps = {\n disabled: false,\n\n // `useCapture` is set to true by default so that a `stopPropagation` in the\n // children will not prevent all outside click handlers from firing - maja\n useCapture: true,\n display: DISPLAY.BLOCK\n};\n\nvar OutsideClickHandler = function (_React$Component) {\n _inherits(OutsideClickHandler, _React$Component);\n\n function OutsideClickHandler() {\n var _ref;\n\n _classCallCheck(this, OutsideClickHandler);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var _this = _possibleConstructorReturn(this, (_ref = OutsideClickHandler.__proto__ || Object.getPrototypeOf(OutsideClickHandler)).call.apply(_ref, [this].concat(args)));\n\n _this.onMouseDown = _this.onMouseDown.bind(_this);\n _this.onMouseUp = _this.onMouseUp.bind(_this);\n _this.setChildNodeRef = _this.setChildNodeRef.bind(_this);\n return _this;\n }\n\n _createClass(OutsideClickHandler, [{\n key: 'componentDidMount',\n value: function () {\n function componentDidMount() {\n var _props = this.props,\n disabled = _props.disabled,\n useCapture = _props.useCapture;\n\n\n if (!disabled) this.addMouseDownEventListener(useCapture);\n }\n\n return componentDidMount;\n }()\n }, {\n key: 'componentDidUpdate',\n value: function () {\n function componentDidUpdate(_ref2) {\n var prevDisabled = _ref2.disabled;\n var _props2 = this.props,\n disabled = _props2.disabled,\n useCapture = _props2.useCapture;\n\n if (prevDisabled !== disabled) {\n if (disabled) {\n this.removeEventListeners();\n } else {\n this.addMouseDownEventListener(useCapture);\n }\n }\n }\n\n return componentDidUpdate;\n }()\n }, {\n key: 'componentWillUnmount',\n value: function () {\n function componentWillUnmount() {\n this.removeEventListeners();\n }\n\n return componentWillUnmount;\n }()\n\n // Use mousedown/mouseup to enforce that clicks remain outside the root's\n // descendant tree, even when dragged. This should also get triggered on\n // touch devices.\n\n }, {\n key: 'onMouseDown',\n value: function () {\n function onMouseDown(e) {\n var useCapture = this.props.useCapture;\n\n\n var isDescendantOfRoot = this.childNode && (0, _document2['default'])(this.childNode, e.target);\n if (!isDescendantOfRoot) {\n if (this.removeMouseUp) {\n this.removeMouseUp();\n this.removeMouseUp = null;\n }\n this.removeMouseUp = (0, _consolidatedEvents.addEventListener)(document, 'mouseup', this.onMouseUp, { capture: useCapture });\n }\n }\n\n return onMouseDown;\n }()\n\n // Use mousedown/mouseup to enforce that clicks remain outside the root's\n // descendant tree, even when dragged. This should also get triggered on\n // touch devices.\n\n }, {\n key: 'onMouseUp',\n value: function () {\n function onMouseUp(e) {\n var onOutsideClick = this.props.onOutsideClick;\n\n\n var isDescendantOfRoot = this.childNode && (0, _document2['default'])(this.childNode, e.target);\n if (this.removeMouseUp) {\n this.removeMouseUp();\n this.removeMouseUp = null;\n }\n\n if (!isDescendantOfRoot) {\n onOutsideClick(e);\n }\n }\n\n return onMouseUp;\n }()\n }, {\n key: 'setChildNodeRef',\n value: function () {\n function setChildNodeRef(ref) {\n this.childNode = ref;\n }\n\n return setChildNodeRef;\n }()\n }, {\n key: 'addMouseDownEventListener',\n value: function () {\n function addMouseDownEventListener(useCapture) {\n this.removeMouseDown = (0, _consolidatedEvents.addEventListener)(document, 'mousedown', this.onMouseDown, { capture: useCapture });\n }\n\n return addMouseDownEventListener;\n }()\n }, {\n key: 'removeEventListeners',\n value: function () {\n function removeEventListeners() {\n if (this.removeMouseDown) this.removeMouseDown();\n if (this.removeMouseUp) this.removeMouseUp();\n }\n\n return removeEventListeners;\n }()\n }, {\n key: 'render',\n value: function () {\n function render() {\n var _props3 = this.props,\n children = _props3.children,\n display = _props3.display;\n\n\n return _react2['default'].createElement(\n 'div',\n {\n ref: this.setChildNodeRef,\n style: display !== DISPLAY.BLOCK && (0, _object2['default'])(DISPLAY).includes(display) ? { display: display } : undefined\n },\n children\n );\n }\n\n return render;\n }()\n }]);\n\n return OutsideClickHandler;\n}(_react2['default'].Component);\n\nexports['default'] = OutsideClickHandler;\n\n\nOutsideClickHandler.propTypes = propTypes;\nOutsideClickHandler.defaultProps = defaultProps;","// eslint-disable-next-line import/no-unresolved\nmodule.exports = require('./build/OutsideClickHandler');\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _constants = require(\"../constants\");\n\nvar _default = _propTypes[\"default\"].oneOf([_constants.START_DATE, _constants.END_DATE]);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _constants = require(\"../constants\");\n\nvar _default = _propTypes[\"default\"].oneOf([_constants.ICON_BEFORE_POSITION, _constants.ICON_AFTER_POSITION]);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _constants = require(\"../constants\");\n\nvar _default = _propTypes[\"default\"].oneOf([_constants.HORIZONTAL_ORIENTATION, _constants.VERTICAL_ORIENTATION]);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _constants = require(\"../constants\");\n\nvar _default = _propTypes[\"default\"].oneOfType([_propTypes[\"default\"].bool, _propTypes[\"default\"].oneOf([_constants.START_DATE, _constants.END_DATE])]);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _constants = require(\"../constants\");\n\nvar _default = _propTypes[\"default\"].oneOf([_constants.ANCHOR_LEFT, _constants.ANCHOR_RIGHT]);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _constants = require(\"../constants\");\n\nvar _default = _propTypes[\"default\"].oneOf([_constants.OPEN_DOWN, _constants.OPEN_UP]);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _constants = require(\"../constants\");\n\nvar _default = _propTypes[\"default\"].oneOf([_constants.INFO_POSITION_TOP, _constants.INFO_POSITION_BOTTOM, _constants.INFO_POSITION_BEFORE, _constants.INFO_POSITION_AFTER]);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _constants = require(\"../constants\");\n\nvar _default = _propTypes[\"default\"].oneOf([_constants.NAV_POSITION_BOTTOM, _constants.NAV_POSITION_TOP]);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _reactMomentProptypes = _interopRequireDefault(require(\"react-moment-proptypes\"));\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _defaultPhrases = require(\"../defaultPhrases\");\n\nvar _getPhrasePropTypes = _interopRequireDefault(require(\"../utils/getPhrasePropTypes\"));\n\nvar _FocusedInputShape = _interopRequireDefault(require(\"./FocusedInputShape\"));\n\nvar _IconPositionShape = _interopRequireDefault(require(\"./IconPositionShape\"));\n\nvar _OrientationShape = _interopRequireDefault(require(\"./OrientationShape\"));\n\nvar _DisabledShape = _interopRequireDefault(require(\"./DisabledShape\"));\n\nvar _AnchorDirectionShape = _interopRequireDefault(require(\"./AnchorDirectionShape\"));\n\nvar _OpenDirectionShape = _interopRequireDefault(require(\"./OpenDirectionShape\"));\n\nvar _DayOfWeekShape = _interopRequireDefault(require(\"./DayOfWeekShape\"));\n\nvar _CalendarInfoPositionShape = _interopRequireDefault(require(\"./CalendarInfoPositionShape\"));\n\nvar _NavPositionShape = _interopRequireDefault(require(\"./NavPositionShape\"));\n\nvar _default = {\n // required props for a functional interactive DateRangePicker\n startDate: _reactMomentProptypes[\"default\"].momentObj,\n endDate: _reactMomentProptypes[\"default\"].momentObj,\n onDatesChange: _propTypes[\"default\"].func.isRequired,\n focusedInput: _FocusedInputShape[\"default\"],\n onFocusChange: _propTypes[\"default\"].func.isRequired,\n onClose: _propTypes[\"default\"].func,\n // input related props\n startDateId: _propTypes[\"default\"].string.isRequired,\n startDatePlaceholderText: _propTypes[\"default\"].string,\n startDateOffset: _propTypes[\"default\"].func,\n endDateOffset: _propTypes[\"default\"].func,\n endDateId: _propTypes[\"default\"].string.isRequired,\n endDatePlaceholderText: _propTypes[\"default\"].string,\n startDateAriaLabel: _propTypes[\"default\"].string,\n endDateAriaLabel: _propTypes[\"default\"].string,\n disabled: _DisabledShape[\"default\"],\n required: _propTypes[\"default\"].bool,\n readOnly: _propTypes[\"default\"].bool,\n screenReaderInputMessage: _propTypes[\"default\"].string,\n showClearDates: _propTypes[\"default\"].bool,\n showDefaultInputIcon: _propTypes[\"default\"].bool,\n inputIconPosition: _IconPositionShape[\"default\"],\n customInputIcon: _propTypes[\"default\"].node,\n customArrowIcon: _propTypes[\"default\"].node,\n customCloseIcon: _propTypes[\"default\"].node,\n noBorder: _propTypes[\"default\"].bool,\n block: _propTypes[\"default\"].bool,\n small: _propTypes[\"default\"].bool,\n regular: _propTypes[\"default\"].bool,\n keepFocusOnInput: _propTypes[\"default\"].bool,\n // calendar presentation and interaction related props\n renderMonthText: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes[\"default\"].func, 'renderMonthText', 'renderMonthElement'),\n renderMonthElement: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes[\"default\"].func, 'renderMonthText', 'renderMonthElement'),\n renderWeekHeaderElement: _propTypes[\"default\"].func,\n orientation: _OrientationShape[\"default\"],\n anchorDirection: _AnchorDirectionShape[\"default\"],\n openDirection: _OpenDirectionShape[\"default\"],\n horizontalMargin: _propTypes[\"default\"].number,\n withPortal: _propTypes[\"default\"].bool,\n withFullScreenPortal: _propTypes[\"default\"].bool,\n appendToBody: _propTypes[\"default\"].bool,\n disableScroll: _propTypes[\"default\"].bool,\n daySize: _airbnbPropTypes.nonNegativeInteger,\n isRTL: _propTypes[\"default\"].bool,\n firstDayOfWeek: _DayOfWeekShape[\"default\"],\n initialVisibleMonth: _propTypes[\"default\"].func,\n numberOfMonths: _propTypes[\"default\"].number,\n keepOpenOnDateSelect: _propTypes[\"default\"].bool,\n reopenPickerOnClearDates: _propTypes[\"default\"].bool,\n renderCalendarInfo: _propTypes[\"default\"].func,\n calendarInfoPosition: _CalendarInfoPositionShape[\"default\"],\n hideKeyboardShortcutsPanel: _propTypes[\"default\"].bool,\n verticalHeight: _airbnbPropTypes.nonNegativeInteger,\n transitionDuration: _airbnbPropTypes.nonNegativeInteger,\n verticalSpacing: _airbnbPropTypes.nonNegativeInteger,\n horizontalMonthPadding: _airbnbPropTypes.nonNegativeInteger,\n // navigation related props\n dayPickerNavigationInlineStyles: _propTypes[\"default\"].object,\n navPosition: _NavPositionShape[\"default\"],\n navPrev: _propTypes[\"default\"].node,\n navNext: _propTypes[\"default\"].node,\n renderNavPrevButton: _propTypes[\"default\"].func,\n renderNavNextButton: _propTypes[\"default\"].func,\n onPrevMonthClick: _propTypes[\"default\"].func,\n onNextMonthClick: _propTypes[\"default\"].func,\n // day presentation and interaction related props\n renderCalendarDay: _propTypes[\"default\"].func,\n renderDayContents: _propTypes[\"default\"].func,\n minimumNights: _propTypes[\"default\"].number,\n minDate: _reactMomentProptypes[\"default\"].momentObj,\n maxDate: _reactMomentProptypes[\"default\"].momentObj,\n enableOutsideDays: _propTypes[\"default\"].bool,\n isDayBlocked: _propTypes[\"default\"].func,\n isOutsideRange: _propTypes[\"default\"].func,\n isDayHighlighted: _propTypes[\"default\"].func,\n // internationalization props\n displayFormat: _propTypes[\"default\"].oneOfType([_propTypes[\"default\"].string, _propTypes[\"default\"].func]),\n monthFormat: _propTypes[\"default\"].string,\n weekDayFormat: _propTypes[\"default\"].string,\n phrases: _propTypes[\"default\"].shape((0, _getPhrasePropTypes[\"default\"])(_defaultPhrases.DateRangePickerPhrases)),\n dayAriaLabelFormat: _propTypes[\"default\"].string\n};\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getResponsiveContainerStyles;\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _constants = require(\"../constants\");\n\nfunction getResponsiveContainerStyles(anchorDirection, currentOffset, containerEdge, margin) {\n var windowWidth = typeof window !== 'undefined' ? window.innerWidth : 0;\n var calculatedOffset = anchorDirection === _constants.ANCHOR_LEFT ? windowWidth - containerEdge : containerEdge;\n var calculatedMargin = margin || 0;\n return (0, _defineProperty2[\"default\"])({}, anchorDirection, Math.min(currentOffset + calculatedOffset - calculatedMargin, 0));\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getDetachedContainerStyles;\n\nvar _constants = require(\"../constants\");\n\n/**\n * Calculate and return a CSS transform style to position a detached element\n * next to a reference element. The open and anchor direction indicate wether\n * it should be positioned above/below and/or to the left/right of the\n * reference element.\n *\n * Assuming r(0,0), r(1,1), d(0,0), d(1,1) for the bottom-left and top-right\n * corners of the reference and detached elements, respectively:\n * - openDirection = DOWN, anchorDirection = LEFT => d(0,1) == r(0,1)\n * - openDirection = UP, anchorDirection = LEFT => d(0,0) == r(0,0)\n * - openDirection = DOWN, anchorDirection = RIGHT => d(1,1) == r(1,1)\n * - openDirection = UP, anchorDirection = RIGHT => d(1,0) == r(1,0)\n *\n * By using a CSS transform, we allow to further position it using\n * top/bottom CSS properties for the anchor gutter.\n *\n * @param {string} openDirection The vertical positioning of the popup\n * @param {string} anchorDirection The horizontal position of the popup\n * @param {HTMLElement} referenceEl The reference element\n */\nfunction getDetachedContainerStyles(openDirection, anchorDirection, referenceEl) {\n var referenceRect = referenceEl.getBoundingClientRect();\n var offsetX = referenceRect.left;\n var offsetY = referenceRect.top;\n\n if (openDirection === _constants.OPEN_UP) {\n offsetY = -(window.innerHeight - referenceRect.bottom);\n }\n\n if (anchorDirection === _constants.ANCHOR_RIGHT) {\n offsetX = -(window.innerWidth - referenceRect.right);\n }\n\n return {\n transform: \"translate3d(\".concat(Math.round(offsetX), \"px, \").concat(Math.round(offsetY), \"px, 0)\")\n };\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getInputHeight;\n\n/* eslint-disable camelcase */\nfunction getPadding(vertical, top, bottom) {\n var isTopDefined = typeof top === 'number';\n var isBottomDefined = typeof bottom === 'number';\n var isVerticalDefined = typeof vertical === 'number';\n\n if (isTopDefined && isBottomDefined) {\n return top + bottom;\n }\n\n if (isTopDefined && isVerticalDefined) {\n return top + vertical;\n }\n\n if (isTopDefined) {\n return top;\n }\n\n if (isBottomDefined && isVerticalDefined) {\n return bottom + vertical;\n }\n\n if (isBottomDefined) {\n return bottom;\n }\n\n if (isVerticalDefined) {\n return 2 * vertical;\n }\n\n return 0;\n}\n\nfunction getInputHeight(_ref, small) {\n var _ref$font$input = _ref.font.input,\n lineHeight = _ref$font$input.lineHeight,\n lineHeight_small = _ref$font$input.lineHeight_small,\n _ref$spacing = _ref.spacing,\n inputPadding = _ref$spacing.inputPadding,\n displayTextPaddingVertical = _ref$spacing.displayTextPaddingVertical,\n displayTextPaddingTop = _ref$spacing.displayTextPaddingTop,\n displayTextPaddingBottom = _ref$spacing.displayTextPaddingBottom,\n displayTextPaddingVertical_small = _ref$spacing.displayTextPaddingVertical_small,\n displayTextPaddingTop_small = _ref$spacing.displayTextPaddingTop_small,\n displayTextPaddingBottom_small = _ref$spacing.displayTextPaddingBottom_small;\n var calcLineHeight = small ? lineHeight_small : lineHeight;\n var padding = small ? getPadding(displayTextPaddingVertical_small, displayTextPaddingTop_small, displayTextPaddingBottom_small) : getPadding(displayTextPaddingVertical, displayTextPaddingTop, displayTextPaddingBottom);\n return parseInt(calcLineHeight, 10) + 2 * inputPadding + padding;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = isBeforeDay;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nfunction isBeforeDay(a, b) {\n if (!_moment[\"default\"].isMoment(a) || !_moment[\"default\"].isMoment(b)) return false;\n var aYear = a.year();\n var aMonth = a.month();\n var bYear = b.year();\n var bMonth = b.month();\n var isSameYear = aYear === bYear;\n var isSameMonth = aMonth === bMonth;\n if (isSameYear && isSameMonth) return a.date() < b.date();\n if (isSameYear) return aMonth < bMonth;\n return aYear < bYear;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = isInclusivelyAfterDay;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _isBeforeDay = _interopRequireDefault(require(\"./isBeforeDay\"));\n\nfunction isInclusivelyAfterDay(a, b) {\n if (!_moment[\"default\"].isMoment(a) || !_moment[\"default\"].isMoment(b)) return false;\n return !(0, _isBeforeDay[\"default\"])(a, b);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getScrollParent = getScrollParent;\nexports.getScrollAncestorsOverflowY = getScrollAncestorsOverflowY;\nexports[\"default\"] = disableScroll;\n\nvar getScrollingRoot = function getScrollingRoot() {\n return document.scrollingElement || document.documentElement;\n};\n/**\n * Recursively finds the scroll parent of a node. The scroll parrent of a node\n * is the closest node that is scrollable. A node is scrollable if:\n * - it is allowed to scroll via CSS ('overflow-y' not visible or hidden);\n * - and its children/content are \"bigger\" than the node's box height.\n *\n * The root of the document always scrolls by default.\n *\n * @param {HTMLElement} node Any DOM element.\n * @return {HTMLElement} The scroll parent element.\n */\n\n\nfunction getScrollParent(node) {\n var parent = node.parentElement;\n if (parent == null) return getScrollingRoot();\n\n var _window$getComputedSt = window.getComputedStyle(parent),\n overflowY = _window$getComputedSt.overflowY;\n\n var canScroll = overflowY !== 'visible' && overflowY !== 'hidden';\n\n if (canScroll && parent.scrollHeight > parent.clientHeight) {\n return parent;\n }\n\n return getScrollParent(parent);\n}\n/**\n * Recursively traverses the tree upwards from the given node, capturing all\n * ancestor nodes that scroll along with their current 'overflow-y' CSS\n * property.\n *\n * @param {HTMLElement} node Any DOM element.\n * @param {Map} [acc] Accumulator map.\n * @return {Map} Map of ancestors with their 'overflow-y' value.\n */\n\n\nfunction getScrollAncestorsOverflowY(node) {\n var acc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Map();\n var scrollingRoot = getScrollingRoot();\n var scrollParent = getScrollParent(node);\n acc.set(scrollParent, scrollParent.style.overflowY);\n if (scrollParent === scrollingRoot) return acc;\n return getScrollAncestorsOverflowY(scrollParent, acc);\n}\n/**\n * Disabling the scroll on a node involves finding all the scrollable ancestors\n * and set their 'overflow-y' CSS property to 'hidden'. When all ancestors have\n * 'overflow-y: hidden' (up to the document element) there is no scroll\n * container, thus all the scroll outside of the node is disabled. In order to\n * enable scroll again, we store the previous value of the 'overflow-y' for\n * every ancestor in a closure and reset it back.\n *\n * @param {HTMLElement} node Any DOM element.\n */\n\n\nfunction disableScroll(node) {\n var scrollAncestorsOverflowY = getScrollAncestorsOverflowY(node);\n\n var toggle = function toggle(on) {\n return scrollAncestorsOverflowY.forEach(function (overflowY, ancestor) {\n ancestor.style.setProperty('overflow-y', on ? 'hidden' : overflowY);\n });\n };\n\n toggle(true);\n return function () {\n return toggle(false);\n };\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _enzymeShallowEqual = _interopRequireDefault(require(\"enzyme-shallow-equal\"));\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _reactWithStyles = require(\"react-with-styles\");\n\nvar _throttle = _interopRequireDefault(require(\"lodash/throttle\"));\n\nvar _isTouchDevice = _interopRequireDefault(require(\"is-touch-device\"));\n\nvar _noflip = _interopRequireDefault(require(\"../utils/noflip\"));\n\nvar _getInputHeight = _interopRequireDefault(require(\"../utils/getInputHeight\"));\n\nvar _OpenDirectionShape = _interopRequireDefault(require(\"../shapes/OpenDirectionShape\"));\n\nvar _constants = require(\"../constants\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nvar FANG_PATH_TOP = \"M0,\".concat(_constants.FANG_HEIGHT_PX, \" \").concat(_constants.FANG_WIDTH_PX, \",\").concat(_constants.FANG_HEIGHT_PX, \" \").concat(_constants.FANG_WIDTH_PX / 2, \",0z\");\nvar FANG_STROKE_TOP = \"M0,\".concat(_constants.FANG_HEIGHT_PX, \" \").concat(_constants.FANG_WIDTH_PX / 2, \",0 \").concat(_constants.FANG_WIDTH_PX, \",\").concat(_constants.FANG_HEIGHT_PX);\nvar FANG_PATH_BOTTOM = \"M0,0 \".concat(_constants.FANG_WIDTH_PX, \",0 \").concat(_constants.FANG_WIDTH_PX / 2, \",\").concat(_constants.FANG_HEIGHT_PX, \"z\");\nvar FANG_STROKE_BOTTOM = \"M0,0 \".concat(_constants.FANG_WIDTH_PX / 2, \",\").concat(_constants.FANG_HEIGHT_PX, \" \").concat(_constants.FANG_WIDTH_PX, \",0\");\nvar propTypes = process.env.NODE_ENV !== \"production\" ? (0, _airbnbPropTypes.forbidExtraProps)(_objectSpread({}, _reactWithStyles.withStylesPropTypes, {\n id: _propTypes[\"default\"].string.isRequired,\n placeholder: _propTypes[\"default\"].string,\n displayValue: _propTypes[\"default\"].string,\n ariaLabel: _propTypes[\"default\"].string,\n screenReaderMessage: _propTypes[\"default\"].string,\n focused: _propTypes[\"default\"].bool,\n disabled: _propTypes[\"default\"].bool,\n required: _propTypes[\"default\"].bool,\n readOnly: _propTypes[\"default\"].bool,\n openDirection: _OpenDirectionShape[\"default\"],\n showCaret: _propTypes[\"default\"].bool,\n verticalSpacing: _airbnbPropTypes.nonNegativeInteger,\n small: _propTypes[\"default\"].bool,\n block: _propTypes[\"default\"].bool,\n regular: _propTypes[\"default\"].bool,\n onChange: _propTypes[\"default\"].func,\n onFocus: _propTypes[\"default\"].func,\n onKeyDownShiftTab: _propTypes[\"default\"].func,\n onKeyDownTab: _propTypes[\"default\"].func,\n onKeyDownArrowDown: _propTypes[\"default\"].func,\n onKeyDownQuestionMark: _propTypes[\"default\"].func,\n // accessibility\n isFocused: _propTypes[\"default\"].bool // describes actual DOM focus\n\n})) : {};\nvar defaultProps = {\n placeholder: 'Select Date',\n displayValue: '',\n ariaLabel: undefined,\n screenReaderMessage: '',\n focused: false,\n disabled: false,\n required: false,\n readOnly: null,\n openDirection: _constants.OPEN_DOWN,\n showCaret: false,\n verticalSpacing: _constants.DEFAULT_VERTICAL_SPACING,\n small: false,\n block: false,\n regular: false,\n onChange: function onChange() {},\n onFocus: function onFocus() {},\n onKeyDownShiftTab: function onKeyDownShiftTab() {},\n onKeyDownTab: function onKeyDownTab() {},\n onKeyDownArrowDown: function onKeyDownArrowDown() {},\n onKeyDownQuestionMark: function onKeyDownQuestionMark() {},\n // accessibility\n isFocused: false\n};\n\nvar DateInput =\n/*#__PURE__*/\nfunction (_ref) {\n (0, _inheritsLoose2[\"default\"])(DateInput, _ref);\n var _proto = DateInput.prototype;\n\n _proto[!_react[\"default\"].PureComponent && \"shouldComponentUpdate\"] = function (nextProps, nextState) {\n return !(0, _enzymeShallowEqual[\"default\"])(this.props, nextProps) || !(0, _enzymeShallowEqual[\"default\"])(this.state, nextState);\n };\n\n function DateInput(props) {\n var _this;\n\n _this = _ref.call(this, props) || this;\n _this.state = {\n dateString: '',\n isTouchDevice: false\n };\n _this.onChange = _this.onChange.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onKeyDown = _this.onKeyDown.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.setInputRef = _this.setInputRef.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.throttledKeyDown = (0, _throttle[\"default\"])(_this.onFinalKeyDown, 300, {\n trailing: false\n });\n return _this;\n }\n\n _proto.componentDidMount = function componentDidMount() {\n this.setState({\n isTouchDevice: (0, _isTouchDevice[\"default\"])()\n });\n };\n\n _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n var dateString = this.state.dateString;\n\n if (dateString && nextProps.displayValue) {\n this.setState({\n dateString: ''\n });\n }\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var _this$props = this.props,\n focused = _this$props.focused,\n isFocused = _this$props.isFocused;\n if (prevProps.focused === focused && prevProps.isFocused === isFocused) return;\n\n if (focused && isFocused) {\n this.inputRef.focus();\n }\n };\n\n _proto.onChange = function onChange(e) {\n var _this$props2 = this.props,\n onChange = _this$props2.onChange,\n onKeyDownQuestionMark = _this$props2.onKeyDownQuestionMark;\n var dateString = e.target.value; // In Safari, onKeyDown does not consistently fire ahead of onChange. As a result, we need to\n // special case the `?` key so that it always triggers the appropriate callback, instead of\n // modifying the input value\n\n if (dateString[dateString.length - 1] === '?') {\n onKeyDownQuestionMark(e);\n } else {\n this.setState({\n dateString: dateString\n }, function () {\n return onChange(dateString);\n });\n }\n };\n\n _proto.onKeyDown = function onKeyDown(e) {\n e.stopPropagation();\n\n if (!_constants.MODIFIER_KEY_NAMES.has(e.key)) {\n this.throttledKeyDown(e);\n }\n };\n\n _proto.onFinalKeyDown = function onFinalKeyDown(e) {\n var _this$props3 = this.props,\n onKeyDownShiftTab = _this$props3.onKeyDownShiftTab,\n onKeyDownTab = _this$props3.onKeyDownTab,\n onKeyDownArrowDown = _this$props3.onKeyDownArrowDown,\n onKeyDownQuestionMark = _this$props3.onKeyDownQuestionMark;\n var key = e.key;\n\n if (key === 'Tab') {\n if (e.shiftKey) {\n onKeyDownShiftTab(e);\n } else {\n onKeyDownTab(e);\n }\n } else if (key === 'ArrowDown') {\n onKeyDownArrowDown(e);\n } else if (key === '?') {\n e.preventDefault();\n onKeyDownQuestionMark(e);\n }\n };\n\n _proto.setInputRef = function setInputRef(ref) {\n this.inputRef = ref;\n };\n\n _proto.render = function render() {\n var _this$state = this.state,\n dateString = _this$state.dateString,\n isTouch = _this$state.isTouchDevice;\n var _this$props4 = this.props,\n id = _this$props4.id,\n placeholder = _this$props4.placeholder,\n ariaLabel = _this$props4.ariaLabel,\n displayValue = _this$props4.displayValue,\n screenReaderMessage = _this$props4.screenReaderMessage,\n focused = _this$props4.focused,\n showCaret = _this$props4.showCaret,\n onFocus = _this$props4.onFocus,\n disabled = _this$props4.disabled,\n required = _this$props4.required,\n readOnly = _this$props4.readOnly,\n openDirection = _this$props4.openDirection,\n verticalSpacing = _this$props4.verticalSpacing,\n small = _this$props4.small,\n regular = _this$props4.regular,\n block = _this$props4.block,\n styles = _this$props4.styles,\n reactDates = _this$props4.theme.reactDates;\n var value = dateString || displayValue || '';\n var screenReaderMessageId = \"DateInput__screen-reader-message-\".concat(id);\n var withFang = showCaret && focused;\n var inputHeight = (0, _getInputHeight[\"default\"])(reactDates, small);\n return _react[\"default\"].createElement(\"div\", (0, _reactWithStyles.css)(styles.DateInput, small && styles.DateInput__small, block && styles.DateInput__block, withFang && styles.DateInput__withFang, disabled && styles.DateInput__disabled, withFang && openDirection === _constants.OPEN_DOWN && styles.DateInput__openDown, withFang && openDirection === _constants.OPEN_UP && styles.DateInput__openUp), _react[\"default\"].createElement(\"input\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.DateInput_input, small && styles.DateInput_input__small, regular && styles.DateInput_input__regular, readOnly && styles.DateInput_input__readOnly, focused && styles.DateInput_input__focused, disabled && styles.DateInput_input__disabled), {\n \"aria-label\": ariaLabel === undefined ? placeholder : ariaLabel,\n type: \"text\",\n id: id,\n name: id,\n ref: this.setInputRef,\n value: value,\n onChange: this.onChange,\n onKeyDown: this.onKeyDown,\n onFocus: onFocus,\n placeholder: placeholder,\n autoComplete: \"off\",\n disabled: disabled,\n readOnly: typeof readOnly === 'boolean' ? readOnly : isTouch,\n required: required,\n \"aria-describedby\": screenReaderMessage && screenReaderMessageId\n })), withFang && _react[\"default\"].createElement(\"svg\", (0, _extends2[\"default\"])({\n role: \"presentation\",\n focusable: \"false\"\n }, (0, _reactWithStyles.css)(styles.DateInput_fang, openDirection === _constants.OPEN_DOWN && {\n top: inputHeight + verticalSpacing - _constants.FANG_HEIGHT_PX - 1\n }, openDirection === _constants.OPEN_UP && {\n bottom: inputHeight + verticalSpacing - _constants.FANG_HEIGHT_PX - 1\n })), _react[\"default\"].createElement(\"path\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.DateInput_fangShape), {\n d: openDirection === _constants.OPEN_DOWN ? FANG_PATH_TOP : FANG_PATH_BOTTOM\n })), _react[\"default\"].createElement(\"path\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.DateInput_fangStroke), {\n d: openDirection === _constants.OPEN_DOWN ? FANG_STROKE_TOP : FANG_STROKE_BOTTOM\n }))), screenReaderMessage && _react[\"default\"].createElement(\"p\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.DateInput_screenReaderMessage), {\n id: screenReaderMessageId\n }), screenReaderMessage));\n };\n\n return DateInput;\n}(_react[\"default\"].PureComponent || _react[\"default\"].Component);\n\nDateInput.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nDateInput.defaultProps = defaultProps;\n\nvar _default = (0, _reactWithStyles.withStyles)(function (_ref2) {\n var _ref2$reactDates = _ref2.reactDates,\n border = _ref2$reactDates.border,\n color = _ref2$reactDates.color,\n sizing = _ref2$reactDates.sizing,\n spacing = _ref2$reactDates.spacing,\n font = _ref2$reactDates.font,\n zIndex = _ref2$reactDates.zIndex;\n return {\n DateInput: {\n margin: 0,\n padding: spacing.inputPadding,\n background: color.background,\n position: 'relative',\n display: 'inline-block',\n width: sizing.inputWidth,\n verticalAlign: 'middle'\n },\n DateInput__small: {\n width: sizing.inputWidth_small\n },\n DateInput__block: {\n width: '100%'\n },\n DateInput__disabled: {\n background: color.disabled,\n color: color.textDisabled\n },\n DateInput_input: {\n fontWeight: font.input.weight,\n fontSize: font.input.size,\n lineHeight: font.input.lineHeight,\n color: color.text,\n backgroundColor: color.background,\n width: '100%',\n padding: \"\".concat(spacing.displayTextPaddingVertical, \"px \").concat(spacing.displayTextPaddingHorizontal, \"px\"),\n paddingTop: spacing.displayTextPaddingTop,\n paddingBottom: spacing.displayTextPaddingBottom,\n paddingLeft: (0, _noflip[\"default\"])(spacing.displayTextPaddingLeft),\n paddingRight: (0, _noflip[\"default\"])(spacing.displayTextPaddingRight),\n border: border.input.border,\n borderTop: border.input.borderTop,\n borderRight: (0, _noflip[\"default\"])(border.input.borderRight),\n borderBottom: border.input.borderBottom,\n borderLeft: (0, _noflip[\"default\"])(border.input.borderLeft),\n borderRadius: border.input.borderRadius\n },\n DateInput_input__small: {\n fontSize: font.input.size_small,\n lineHeight: font.input.lineHeight_small,\n letterSpacing: font.input.letterSpacing_small,\n padding: \"\".concat(spacing.displayTextPaddingVertical_small, \"px \").concat(spacing.displayTextPaddingHorizontal_small, \"px\"),\n paddingTop: spacing.displayTextPaddingTop_small,\n paddingBottom: spacing.displayTextPaddingBottom_small,\n paddingLeft: (0, _noflip[\"default\"])(spacing.displayTextPaddingLeft_small),\n paddingRight: (0, _noflip[\"default\"])(spacing.displayTextPaddingRight_small)\n },\n DateInput_input__regular: {\n fontWeight: 'auto'\n },\n DateInput_input__readOnly: {\n userSelect: 'none'\n },\n DateInput_input__focused: {\n outline: border.input.outlineFocused,\n background: color.backgroundFocused,\n border: border.input.borderFocused,\n borderTop: border.input.borderTopFocused,\n borderRight: (0, _noflip[\"default\"])(border.input.borderRightFocused),\n borderBottom: border.input.borderBottomFocused,\n borderLeft: (0, _noflip[\"default\"])(border.input.borderLeftFocused)\n },\n DateInput_input__disabled: {\n background: color.disabled,\n fontStyle: font.input.styleDisabled\n },\n DateInput_screenReaderMessage: {\n border: 0,\n clip: 'rect(0, 0, 0, 0)',\n height: 1,\n margin: -1,\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: 1\n },\n DateInput_fang: {\n position: 'absolute',\n width: _constants.FANG_WIDTH_PX,\n height: _constants.FANG_HEIGHT_PX,\n left: 22,\n // TODO: should be noflip wrapped and handled by an isRTL prop\n zIndex: zIndex + 2\n },\n DateInput_fangShape: {\n fill: color.background\n },\n DateInput_fangStroke: {\n stroke: color.core.border,\n fill: 'transparent'\n }\n };\n}, {\n pureComponent: typeof _react[\"default\"].PureComponent !== 'undefined'\n})(DateInput);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar RightArrow = function RightArrow(props) {\n return _react[\"default\"].createElement(\"svg\", props, _react[\"default\"].createElement(\"path\", {\n d: \"M694 242l249 250c12 11 12 21 1 32L694 773c-5 5-10 7-16 7s-11-2-16-7c-11-11-11-21 0-32l210-210H68c-13 0-23-10-23-23s10-23 23-23h806L662 275c-21-22 11-54 32-33z\"\n }));\n};\n\nRightArrow.defaultProps = {\n focusable: \"false\",\n viewBox: \"0 0 1000 1000\"\n};\nvar _default = RightArrow;\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar LeftArrow = function LeftArrow(props) {\n return _react[\"default\"].createElement(\"svg\", props, _react[\"default\"].createElement(\"path\", {\n d: \"M336 275L126 485h806c13 0 23 10 23 23s-10 23-23 23H126l210 210c11 11 11 21 0 32-5 5-10 7-16 7s-11-2-16-7L55 524c-11-11-11-21 0-32l249-249c21-22 53 10 32 32z\"\n }));\n};\n\nLeftArrow.defaultProps = {\n focusable: \"false\",\n viewBox: \"0 0 1000 1000\"\n};\nvar _default = LeftArrow;\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar CloseButton = function CloseButton(props) {\n return _react[\"default\"].createElement(\"svg\", props, _react[\"default\"].createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M11.53.47a.75.75 0 0 0-1.061 0l-4.47 4.47L1.529.47A.75.75 0 1 0 .468 1.531l4.47 4.47-4.47 4.47a.75.75 0 1 0 1.061 1.061l4.47-4.47 4.47 4.47a.75.75 0 1 0 1.061-1.061l-4.47-4.47 4.47-4.47a.75.75 0 0 0 0-1.061z\"\n }));\n};\n\nCloseButton.defaultProps = {\n focusable: \"false\",\n viewBox: \"0 0 12 12\"\n};\nvar _default = CloseButton;\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar CalendarIcon = function CalendarIcon(props) {\n return _react[\"default\"].createElement(\"svg\", props, _react[\"default\"].createElement(\"path\", {\n d: \"m107 1393h241v-241h-241zm295 0h268v-241h-268zm-295-295h241v-268h-241zm295 0h268v-268h-268zm-295-321h241v-241h-241zm616 616h268v-241h-268zm-321-616h268v-241h-268zm643 616h241v-241h-241zm-322-295h268v-268h-268zm-294-723v-241c0-7-3-14-8-19-6-5-12-8-19-8h-54c-7 0-13 3-19 8-5 5-8 12-8 19v241c0 7 3 14 8 19 6 5 12 8 19 8h54c7 0 13-3 19-8 5-5 8-12 8-19zm616 723h241v-268h-241zm-322-321h268v-241h-268zm322 0h241v-241h-241zm27-402v-241c0-7-3-14-8-19-6-5-12-8-19-8h-54c-7 0-13 3-19 8-5 5-8 12-8 19v241c0 7 3 14 8 19 6 5 12 8 19 8h54c7 0 13-3 19-8 5-5 8-12 8-19zm321-54v1072c0 29-11 54-32 75s-46 32-75 32h-1179c-29 0-54-11-75-32s-32-46-32-75v-1072c0-29 11-54 32-75s46-32 75-32h107v-80c0-37 13-68 40-95s57-39 94-39h54c37 0 68 13 95 39 26 26 39 58 39 95v80h321v-80c0-37 13-69 40-95 26-26 57-39 94-39h54c37 0 68 13 94 39s40 58 40 95v80h107c29 0 54 11 75 32s32 46 32 75z\"\n }));\n};\n\nCalendarIcon.defaultProps = {\n focusable: \"false\",\n viewBox: \"0 0 1393.1 1500\"\n};\nvar _default = CalendarIcon;\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _reactWithStyles = require(\"react-with-styles\");\n\nvar _defaultPhrases = require(\"../defaultPhrases\");\n\nvar _getPhrasePropTypes = _interopRequireDefault(require(\"../utils/getPhrasePropTypes\"));\n\nvar _noflip = _interopRequireDefault(require(\"../utils/noflip\"));\n\nvar _OpenDirectionShape = _interopRequireDefault(require(\"../shapes/OpenDirectionShape\"));\n\nvar _DateInput = _interopRequireDefault(require(\"./DateInput\"));\n\nvar _IconPositionShape = _interopRequireDefault(require(\"../shapes/IconPositionShape\"));\n\nvar _DisabledShape = _interopRequireDefault(require(\"../shapes/DisabledShape\"));\n\nvar _RightArrow = _interopRequireDefault(require(\"./RightArrow\"));\n\nvar _LeftArrow = _interopRequireDefault(require(\"./LeftArrow\"));\n\nvar _CloseButton = _interopRequireDefault(require(\"./CloseButton\"));\n\nvar _CalendarIcon = _interopRequireDefault(require(\"./CalendarIcon\"));\n\nvar _constants = require(\"../constants\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nvar propTypes = process.env.NODE_ENV !== \"production\" ? (0, _airbnbPropTypes.forbidExtraProps)(_objectSpread({}, _reactWithStyles.withStylesPropTypes, {\n children: _propTypes[\"default\"].node,\n startDateId: _propTypes[\"default\"].string,\n startDatePlaceholderText: _propTypes[\"default\"].string,\n startDateAriaLabel: _propTypes[\"default\"].string,\n screenReaderMessage: _propTypes[\"default\"].string,\n endDateId: _propTypes[\"default\"].string,\n endDatePlaceholderText: _propTypes[\"default\"].string,\n endDateAriaLabel: _propTypes[\"default\"].string,\n onStartDateFocus: _propTypes[\"default\"].func,\n onEndDateFocus: _propTypes[\"default\"].func,\n onStartDateChange: _propTypes[\"default\"].func,\n onEndDateChange: _propTypes[\"default\"].func,\n onStartDateShiftTab: _propTypes[\"default\"].func,\n onEndDateTab: _propTypes[\"default\"].func,\n onClearDates: _propTypes[\"default\"].func,\n onKeyDownArrowDown: _propTypes[\"default\"].func,\n onKeyDownQuestionMark: _propTypes[\"default\"].func,\n startDate: _propTypes[\"default\"].string,\n endDate: _propTypes[\"default\"].string,\n isStartDateFocused: _propTypes[\"default\"].bool,\n isEndDateFocused: _propTypes[\"default\"].bool,\n showClearDates: _propTypes[\"default\"].bool,\n disabled: _DisabledShape[\"default\"],\n required: _propTypes[\"default\"].bool,\n readOnly: _propTypes[\"default\"].bool,\n openDirection: _OpenDirectionShape[\"default\"],\n showCaret: _propTypes[\"default\"].bool,\n showDefaultInputIcon: _propTypes[\"default\"].bool,\n inputIconPosition: _IconPositionShape[\"default\"],\n customInputIcon: _propTypes[\"default\"].node,\n customArrowIcon: _propTypes[\"default\"].node,\n customCloseIcon: _propTypes[\"default\"].node,\n noBorder: _propTypes[\"default\"].bool,\n block: _propTypes[\"default\"].bool,\n small: _propTypes[\"default\"].bool,\n regular: _propTypes[\"default\"].bool,\n verticalSpacing: _airbnbPropTypes.nonNegativeInteger,\n // accessibility\n isFocused: _propTypes[\"default\"].bool,\n // describes actual DOM focus\n // i18n\n phrases: _propTypes[\"default\"].shape((0, _getPhrasePropTypes[\"default\"])(_defaultPhrases.DateRangePickerInputPhrases)),\n isRTL: _propTypes[\"default\"].bool\n})) : {};\nvar defaultProps = {\n children: null,\n startDateId: _constants.START_DATE,\n endDateId: _constants.END_DATE,\n startDatePlaceholderText: 'Start Date',\n endDatePlaceholderText: 'End Date',\n startDateAriaLabel: undefined,\n endDateAriaLabel: undefined,\n screenReaderMessage: '',\n onStartDateFocus: function onStartDateFocus() {},\n onEndDateFocus: function onEndDateFocus() {},\n onStartDateChange: function onStartDateChange() {},\n onEndDateChange: function onEndDateChange() {},\n onStartDateShiftTab: function onStartDateShiftTab() {},\n onEndDateTab: function onEndDateTab() {},\n onClearDates: function onClearDates() {},\n onKeyDownArrowDown: function onKeyDownArrowDown() {},\n onKeyDownQuestionMark: function onKeyDownQuestionMark() {},\n startDate: '',\n endDate: '',\n isStartDateFocused: false,\n isEndDateFocused: false,\n showClearDates: false,\n disabled: false,\n required: false,\n readOnly: false,\n openDirection: _constants.OPEN_DOWN,\n showCaret: false,\n showDefaultInputIcon: false,\n inputIconPosition: _constants.ICON_BEFORE_POSITION,\n customInputIcon: null,\n customArrowIcon: null,\n customCloseIcon: null,\n noBorder: false,\n block: false,\n small: false,\n regular: false,\n verticalSpacing: undefined,\n // accessibility\n isFocused: false,\n // i18n\n phrases: _defaultPhrases.DateRangePickerInputPhrases,\n isRTL: false\n};\n\nfunction DateRangePickerInput(_ref) {\n var children = _ref.children,\n startDate = _ref.startDate,\n startDateId = _ref.startDateId,\n startDatePlaceholderText = _ref.startDatePlaceholderText,\n screenReaderMessage = _ref.screenReaderMessage,\n isStartDateFocused = _ref.isStartDateFocused,\n onStartDateChange = _ref.onStartDateChange,\n onStartDateFocus = _ref.onStartDateFocus,\n onStartDateShiftTab = _ref.onStartDateShiftTab,\n startDateAriaLabel = _ref.startDateAriaLabel,\n endDate = _ref.endDate,\n endDateId = _ref.endDateId,\n endDatePlaceholderText = _ref.endDatePlaceholderText,\n isEndDateFocused = _ref.isEndDateFocused,\n onEndDateChange = _ref.onEndDateChange,\n onEndDateFocus = _ref.onEndDateFocus,\n onEndDateTab = _ref.onEndDateTab,\n endDateAriaLabel = _ref.endDateAriaLabel,\n onKeyDownArrowDown = _ref.onKeyDownArrowDown,\n onKeyDownQuestionMark = _ref.onKeyDownQuestionMark,\n onClearDates = _ref.onClearDates,\n showClearDates = _ref.showClearDates,\n disabled = _ref.disabled,\n required = _ref.required,\n readOnly = _ref.readOnly,\n showCaret = _ref.showCaret,\n openDirection = _ref.openDirection,\n showDefaultInputIcon = _ref.showDefaultInputIcon,\n inputIconPosition = _ref.inputIconPosition,\n customInputIcon = _ref.customInputIcon,\n customArrowIcon = _ref.customArrowIcon,\n customCloseIcon = _ref.customCloseIcon,\n isFocused = _ref.isFocused,\n phrases = _ref.phrases,\n isRTL = _ref.isRTL,\n noBorder = _ref.noBorder,\n block = _ref.block,\n verticalSpacing = _ref.verticalSpacing,\n small = _ref.small,\n regular = _ref.regular,\n styles = _ref.styles;\n\n var calendarIcon = customInputIcon || _react[\"default\"].createElement(_CalendarIcon[\"default\"], (0, _reactWithStyles.css)(styles.DateRangePickerInput_calendarIcon_svg));\n\n var arrowIcon = customArrowIcon || _react[\"default\"].createElement(_RightArrow[\"default\"], (0, _reactWithStyles.css)(styles.DateRangePickerInput_arrow_svg));\n\n if (isRTL) arrowIcon = _react[\"default\"].createElement(_LeftArrow[\"default\"], (0, _reactWithStyles.css)(styles.DateRangePickerInput_arrow_svg));\n if (small) arrowIcon = '-';\n\n var closeIcon = customCloseIcon || _react[\"default\"].createElement(_CloseButton[\"default\"], (0, _reactWithStyles.css)(styles.DateRangePickerInput_clearDates_svg, small && styles.DateRangePickerInput_clearDates_svg__small));\n\n var screenReaderStartDateText = screenReaderMessage || phrases.keyboardForwardNavigationInstructions;\n var screenReaderEndDateText = screenReaderMessage || phrases.keyboardBackwardNavigationInstructions;\n\n var inputIcon = (showDefaultInputIcon || customInputIcon !== null) && _react[\"default\"].createElement(\"button\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.DateRangePickerInput_calendarIcon), {\n type: \"button\",\n disabled: disabled,\n \"aria-label\": phrases.focusStartDate,\n onClick: onKeyDownArrowDown\n }), calendarIcon);\n\n var startDateDisabled = disabled === _constants.START_DATE || disabled === true;\n var endDateDisabled = disabled === _constants.END_DATE || disabled === true;\n return _react[\"default\"].createElement(\"div\", (0, _reactWithStyles.css)(styles.DateRangePickerInput, disabled && styles.DateRangePickerInput__disabled, isRTL && styles.DateRangePickerInput__rtl, !noBorder && styles.DateRangePickerInput__withBorder, block && styles.DateRangePickerInput__block, showClearDates && styles.DateRangePickerInput__showClearDates), inputIconPosition === _constants.ICON_BEFORE_POSITION && inputIcon, _react[\"default\"].createElement(_DateInput[\"default\"], {\n id: startDateId,\n placeholder: startDatePlaceholderText,\n ariaLabel: startDateAriaLabel,\n displayValue: startDate,\n screenReaderMessage: screenReaderStartDateText,\n focused: isStartDateFocused,\n isFocused: isFocused,\n disabled: startDateDisabled,\n required: required,\n readOnly: readOnly,\n showCaret: showCaret,\n openDirection: openDirection,\n onChange: onStartDateChange,\n onFocus: onStartDateFocus,\n onKeyDownShiftTab: onStartDateShiftTab,\n onKeyDownArrowDown: onKeyDownArrowDown,\n onKeyDownQuestionMark: onKeyDownQuestionMark,\n verticalSpacing: verticalSpacing,\n small: small,\n regular: regular\n }), children, _react[\"default\"].createElement(\"div\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.DateRangePickerInput_arrow), {\n \"aria-hidden\": \"true\",\n role: \"presentation\"\n }), arrowIcon), _react[\"default\"].createElement(_DateInput[\"default\"], {\n id: endDateId,\n placeholder: endDatePlaceholderText,\n ariaLabel: endDateAriaLabel,\n displayValue: endDate,\n screenReaderMessage: screenReaderEndDateText,\n focused: isEndDateFocused,\n isFocused: isFocused,\n disabled: endDateDisabled,\n required: required,\n readOnly: readOnly,\n showCaret: showCaret,\n openDirection: openDirection,\n onChange: onEndDateChange,\n onFocus: onEndDateFocus,\n onKeyDownArrowDown: onKeyDownArrowDown,\n onKeyDownQuestionMark: onKeyDownQuestionMark,\n onKeyDownTab: onEndDateTab,\n verticalSpacing: verticalSpacing,\n small: small,\n regular: regular\n }), showClearDates && _react[\"default\"].createElement(\"button\", (0, _extends2[\"default\"])({\n type: \"button\",\n \"aria-label\": phrases.clearDates\n }, (0, _reactWithStyles.css)(styles.DateRangePickerInput_clearDates, small && styles.DateRangePickerInput_clearDates__small, !customCloseIcon && styles.DateRangePickerInput_clearDates_default, !(startDate || endDate) && styles.DateRangePickerInput_clearDates__hide), {\n onClick: onClearDates,\n disabled: disabled\n }), closeIcon), inputIconPosition === _constants.ICON_AFTER_POSITION && inputIcon);\n}\n\nDateRangePickerInput.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nDateRangePickerInput.defaultProps = defaultProps;\n\nvar _default = (0, _reactWithStyles.withStyles)(function (_ref2) {\n var _ref2$reactDates = _ref2.reactDates,\n border = _ref2$reactDates.border,\n color = _ref2$reactDates.color,\n sizing = _ref2$reactDates.sizing;\n return {\n DateRangePickerInput: {\n backgroundColor: color.background,\n display: 'inline-block'\n },\n DateRangePickerInput__disabled: {\n background: color.disabled\n },\n DateRangePickerInput__withBorder: {\n borderColor: color.border,\n borderWidth: border.pickerInput.borderWidth,\n borderStyle: border.pickerInput.borderStyle,\n borderRadius: border.pickerInput.borderRadius\n },\n DateRangePickerInput__rtl: {\n direction: (0, _noflip[\"default\"])('rtl')\n },\n DateRangePickerInput__block: {\n display: 'block'\n },\n DateRangePickerInput__showClearDates: {\n paddingRight: 30 // TODO: should be noflip wrapped and handled by an isRTL prop\n\n },\n DateRangePickerInput_arrow: {\n display: 'inline-block',\n verticalAlign: 'middle',\n color: color.text\n },\n DateRangePickerInput_arrow_svg: {\n verticalAlign: 'middle',\n fill: color.text,\n height: sizing.arrowWidth,\n width: sizing.arrowWidth\n },\n DateRangePickerInput_clearDates: {\n background: 'none',\n border: 0,\n color: 'inherit',\n font: 'inherit',\n lineHeight: 'normal',\n overflow: 'visible',\n cursor: 'pointer',\n padding: 10,\n margin: '0 10px 0 5px',\n // TODO: should be noflip wrapped and handled by an isRTL prop\n position: 'absolute',\n right: 0,\n // TODO: should be noflip wrapped and handled by an isRTL prop\n top: '50%',\n transform: 'translateY(-50%)'\n },\n DateRangePickerInput_clearDates__small: {\n padding: 6\n },\n DateRangePickerInput_clearDates_default: {\n ':focus': {\n background: color.core.border,\n borderRadius: '50%'\n },\n ':hover': {\n background: color.core.border,\n borderRadius: '50%'\n }\n },\n DateRangePickerInput_clearDates__hide: {\n visibility: 'hidden'\n },\n DateRangePickerInput_clearDates_svg: {\n fill: color.core.grayLight,\n height: 12,\n width: 15,\n verticalAlign: 'middle'\n },\n DateRangePickerInput_clearDates_svg__small: {\n height: 9\n },\n DateRangePickerInput_calendarIcon: {\n background: 'none',\n border: 0,\n color: 'inherit',\n font: 'inherit',\n lineHeight: 'normal',\n overflow: 'visible',\n cursor: 'pointer',\n display: 'inline-block',\n verticalAlign: 'middle',\n padding: 10,\n margin: '0 5px 0 10px' // TODO: should be noflip wrapped and handled by an isRTL prop\n\n },\n DateRangePickerInput_calendarIcon_svg: {\n fill: color.core.grayLight,\n height: 15,\n width: 14,\n verticalAlign: 'middle'\n }\n };\n}, {\n pureComponent: typeof _react[\"default\"].PureComponent !== 'undefined'\n})(DateRangePickerInput);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = toLocalizedDateString;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _toMomentObject = _interopRequireDefault(require(\"./toMomentObject\"));\n\nvar _constants = require(\"../constants\");\n\nfunction toLocalizedDateString(date, currentFormat) {\n var dateObj = _moment[\"default\"].isMoment(date) ? date : (0, _toMomentObject[\"default\"])(date, currentFormat);\n if (!dateObj) return null;\n return dateObj.format(_constants.DISPLAY_FORMAT);\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _enzymeShallowEqual = _interopRequireDefault(require(\"enzyme-shallow-equal\"));\n\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _reactMomentProptypes = _interopRequireDefault(require(\"react-moment-proptypes\"));\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _OpenDirectionShape = _interopRequireDefault(require(\"../shapes/OpenDirectionShape\"));\n\nvar _defaultPhrases = require(\"../defaultPhrases\");\n\nvar _getPhrasePropTypes = _interopRequireDefault(require(\"../utils/getPhrasePropTypes\"));\n\nvar _DateRangePickerInput = _interopRequireDefault(require(\"./DateRangePickerInput\"));\n\nvar _IconPositionShape = _interopRequireDefault(require(\"../shapes/IconPositionShape\"));\n\nvar _DisabledShape = _interopRequireDefault(require(\"../shapes/DisabledShape\"));\n\nvar _toMomentObject = _interopRequireDefault(require(\"../utils/toMomentObject\"));\n\nvar _toLocalizedDateString = _interopRequireDefault(require(\"../utils/toLocalizedDateString\"));\n\nvar _isInclusivelyAfterDay = _interopRequireDefault(require(\"../utils/isInclusivelyAfterDay\"));\n\nvar _isBeforeDay = _interopRequireDefault(require(\"../utils/isBeforeDay\"));\n\nvar _constants = require(\"../constants\");\n\nvar propTypes = process.env.NODE_ENV !== \"production\" ? (0, _airbnbPropTypes.forbidExtraProps)({\n children: _propTypes[\"default\"].node,\n startDate: _reactMomentProptypes[\"default\"].momentObj,\n startDateId: _propTypes[\"default\"].string,\n startDatePlaceholderText: _propTypes[\"default\"].string,\n isStartDateFocused: _propTypes[\"default\"].bool,\n startDateAriaLabel: _propTypes[\"default\"].string,\n endDate: _reactMomentProptypes[\"default\"].momentObj,\n endDateId: _propTypes[\"default\"].string,\n endDatePlaceholderText: _propTypes[\"default\"].string,\n isEndDateFocused: _propTypes[\"default\"].bool,\n endDateAriaLabel: _propTypes[\"default\"].string,\n screenReaderMessage: _propTypes[\"default\"].string,\n showClearDates: _propTypes[\"default\"].bool,\n showCaret: _propTypes[\"default\"].bool,\n showDefaultInputIcon: _propTypes[\"default\"].bool,\n inputIconPosition: _IconPositionShape[\"default\"],\n disabled: _DisabledShape[\"default\"],\n required: _propTypes[\"default\"].bool,\n readOnly: _propTypes[\"default\"].bool,\n openDirection: _OpenDirectionShape[\"default\"],\n noBorder: _propTypes[\"default\"].bool,\n block: _propTypes[\"default\"].bool,\n small: _propTypes[\"default\"].bool,\n regular: _propTypes[\"default\"].bool,\n verticalSpacing: _airbnbPropTypes.nonNegativeInteger,\n keepOpenOnDateSelect: _propTypes[\"default\"].bool,\n reopenPickerOnClearDates: _propTypes[\"default\"].bool,\n withFullScreenPortal: _propTypes[\"default\"].bool,\n minimumNights: _airbnbPropTypes.nonNegativeInteger,\n isOutsideRange: _propTypes[\"default\"].func,\n displayFormat: _propTypes[\"default\"].oneOfType([_propTypes[\"default\"].string, _propTypes[\"default\"].func]),\n onFocusChange: _propTypes[\"default\"].func,\n onClose: _propTypes[\"default\"].func,\n onDatesChange: _propTypes[\"default\"].func,\n onKeyDownArrowDown: _propTypes[\"default\"].func,\n onKeyDownQuestionMark: _propTypes[\"default\"].func,\n customInputIcon: _propTypes[\"default\"].node,\n customArrowIcon: _propTypes[\"default\"].node,\n customCloseIcon: _propTypes[\"default\"].node,\n // accessibility\n isFocused: _propTypes[\"default\"].bool,\n // i18n\n phrases: _propTypes[\"default\"].shape((0, _getPhrasePropTypes[\"default\"])(_defaultPhrases.DateRangePickerInputPhrases)),\n isRTL: _propTypes[\"default\"].bool\n}) : {};\nvar defaultProps = {\n children: null,\n startDate: null,\n startDateId: _constants.START_DATE,\n startDatePlaceholderText: 'Start Date',\n isStartDateFocused: false,\n startDateAriaLabel: undefined,\n endDate: null,\n endDateId: _constants.END_DATE,\n endDatePlaceholderText: 'End Date',\n isEndDateFocused: false,\n endDateAriaLabel: undefined,\n screenReaderMessage: '',\n showClearDates: false,\n showCaret: false,\n showDefaultInputIcon: false,\n inputIconPosition: _constants.ICON_BEFORE_POSITION,\n disabled: false,\n required: false,\n readOnly: false,\n openDirection: _constants.OPEN_DOWN,\n noBorder: false,\n block: false,\n small: false,\n regular: false,\n verticalSpacing: undefined,\n keepOpenOnDateSelect: false,\n reopenPickerOnClearDates: false,\n withFullScreenPortal: false,\n minimumNights: 1,\n isOutsideRange: function isOutsideRange(day) {\n return !(0, _isInclusivelyAfterDay[\"default\"])(day, (0, _moment[\"default\"])());\n },\n displayFormat: function displayFormat() {\n return _moment[\"default\"].localeData().longDateFormat('L');\n },\n onFocusChange: function onFocusChange() {},\n onClose: function onClose() {},\n onDatesChange: function onDatesChange() {},\n onKeyDownArrowDown: function onKeyDownArrowDown() {},\n onKeyDownQuestionMark: function onKeyDownQuestionMark() {},\n customInputIcon: null,\n customArrowIcon: null,\n customCloseIcon: null,\n // accessibility\n isFocused: false,\n // i18n\n phrases: _defaultPhrases.DateRangePickerInputPhrases,\n isRTL: false\n};\n\nvar DateRangePickerInputController =\n/*#__PURE__*/\nfunction (_ref) {\n (0, _inheritsLoose2[\"default\"])(DateRangePickerInputController, _ref);\n var _proto = DateRangePickerInputController.prototype;\n\n _proto[!_react[\"default\"].PureComponent && \"shouldComponentUpdate\"] = function (nextProps, nextState) {\n return !(0, _enzymeShallowEqual[\"default\"])(this.props, nextProps) || !(0, _enzymeShallowEqual[\"default\"])(this.state, nextState);\n };\n\n function DateRangePickerInputController(props) {\n var _this;\n\n _this = _ref.call(this, props) || this;\n _this.onClearFocus = _this.onClearFocus.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onStartDateChange = _this.onStartDateChange.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onStartDateFocus = _this.onStartDateFocus.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onEndDateChange = _this.onEndDateChange.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onEndDateFocus = _this.onEndDateFocus.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.clearDates = _this.clearDates.bind((0, _assertThisInitialized2[\"default\"])(_this));\n return _this;\n }\n\n _proto.onClearFocus = function onClearFocus() {\n var _this$props = this.props,\n onFocusChange = _this$props.onFocusChange,\n onClose = _this$props.onClose,\n startDate = _this$props.startDate,\n endDate = _this$props.endDate;\n onFocusChange(null);\n onClose({\n startDate: startDate,\n endDate: endDate\n });\n };\n\n _proto.onEndDateChange = function onEndDateChange(endDateString) {\n var _this$props2 = this.props,\n startDate = _this$props2.startDate,\n isOutsideRange = _this$props2.isOutsideRange,\n minimumNights = _this$props2.minimumNights,\n keepOpenOnDateSelect = _this$props2.keepOpenOnDateSelect,\n onDatesChange = _this$props2.onDatesChange;\n var endDate = (0, _toMomentObject[\"default\"])(endDateString, this.getDisplayFormat());\n var isEndDateValid = endDate && !isOutsideRange(endDate) && !(startDate && (0, _isBeforeDay[\"default\"])(endDate, startDate.clone().add(minimumNights, 'days')));\n\n if (isEndDateValid) {\n onDatesChange({\n startDate: startDate,\n endDate: endDate\n });\n if (!keepOpenOnDateSelect) this.onClearFocus();\n } else {\n onDatesChange({\n startDate: startDate,\n endDate: null\n });\n }\n };\n\n _proto.onEndDateFocus = function onEndDateFocus() {\n var _this$props3 = this.props,\n startDate = _this$props3.startDate,\n onFocusChange = _this$props3.onFocusChange,\n withFullScreenPortal = _this$props3.withFullScreenPortal,\n disabled = _this$props3.disabled;\n\n if (!startDate && withFullScreenPortal && (!disabled || disabled === _constants.END_DATE)) {\n // When the datepicker is full screen, we never want to focus the end date first\n // because there's no indication that that is the case once the datepicker is open and it\n // might confuse the user\n onFocusChange(_constants.START_DATE);\n } else if (!disabled || disabled === _constants.START_DATE) {\n onFocusChange(_constants.END_DATE);\n }\n };\n\n _proto.onStartDateChange = function onStartDateChange(startDateString) {\n var endDate = this.props.endDate;\n var _this$props4 = this.props,\n isOutsideRange = _this$props4.isOutsideRange,\n minimumNights = _this$props4.minimumNights,\n onDatesChange = _this$props4.onDatesChange,\n onFocusChange = _this$props4.onFocusChange,\n disabled = _this$props4.disabled;\n var startDate = (0, _toMomentObject[\"default\"])(startDateString, this.getDisplayFormat());\n var isEndDateBeforeStartDate = startDate && (0, _isBeforeDay[\"default\"])(endDate, startDate.clone().add(minimumNights, 'days'));\n var isStartDateValid = startDate && !isOutsideRange(startDate) && !(disabled === _constants.END_DATE && isEndDateBeforeStartDate);\n\n if (isStartDateValid) {\n if (isEndDateBeforeStartDate) {\n endDate = null;\n }\n\n onDatesChange({\n startDate: startDate,\n endDate: endDate\n });\n onFocusChange(_constants.END_DATE);\n } else {\n onDatesChange({\n startDate: null,\n endDate: endDate\n });\n }\n };\n\n _proto.onStartDateFocus = function onStartDateFocus() {\n var _this$props5 = this.props,\n disabled = _this$props5.disabled,\n onFocusChange = _this$props5.onFocusChange;\n\n if (!disabled || disabled === _constants.END_DATE) {\n onFocusChange(_constants.START_DATE);\n }\n };\n\n _proto.getDisplayFormat = function getDisplayFormat() {\n var displayFormat = this.props.displayFormat;\n return typeof displayFormat === 'string' ? displayFormat : displayFormat();\n };\n\n _proto.getDateString = function getDateString(date) {\n var displayFormat = this.getDisplayFormat();\n\n if (date && displayFormat) {\n return date && date.format(displayFormat);\n }\n\n return (0, _toLocalizedDateString[\"default\"])(date);\n };\n\n _proto.clearDates = function clearDates() {\n var _this$props6 = this.props,\n onDatesChange = _this$props6.onDatesChange,\n reopenPickerOnClearDates = _this$props6.reopenPickerOnClearDates,\n onFocusChange = _this$props6.onFocusChange;\n onDatesChange({\n startDate: null,\n endDate: null\n });\n\n if (reopenPickerOnClearDates) {\n onFocusChange(_constants.START_DATE);\n }\n };\n\n _proto.render = function render() {\n var _this$props7 = this.props,\n children = _this$props7.children,\n startDate = _this$props7.startDate,\n startDateId = _this$props7.startDateId,\n startDatePlaceholderText = _this$props7.startDatePlaceholderText,\n isStartDateFocused = _this$props7.isStartDateFocused,\n startDateAriaLabel = _this$props7.startDateAriaLabel,\n endDate = _this$props7.endDate,\n endDateId = _this$props7.endDateId,\n endDatePlaceholderText = _this$props7.endDatePlaceholderText,\n endDateAriaLabel = _this$props7.endDateAriaLabel,\n isEndDateFocused = _this$props7.isEndDateFocused,\n screenReaderMessage = _this$props7.screenReaderMessage,\n showClearDates = _this$props7.showClearDates,\n showCaret = _this$props7.showCaret,\n showDefaultInputIcon = _this$props7.showDefaultInputIcon,\n inputIconPosition = _this$props7.inputIconPosition,\n customInputIcon = _this$props7.customInputIcon,\n customArrowIcon = _this$props7.customArrowIcon,\n customCloseIcon = _this$props7.customCloseIcon,\n disabled = _this$props7.disabled,\n required = _this$props7.required,\n readOnly = _this$props7.readOnly,\n openDirection = _this$props7.openDirection,\n isFocused = _this$props7.isFocused,\n phrases = _this$props7.phrases,\n onKeyDownArrowDown = _this$props7.onKeyDownArrowDown,\n onKeyDownQuestionMark = _this$props7.onKeyDownQuestionMark,\n isRTL = _this$props7.isRTL,\n noBorder = _this$props7.noBorder,\n block = _this$props7.block,\n small = _this$props7.small,\n regular = _this$props7.regular,\n verticalSpacing = _this$props7.verticalSpacing;\n var startDateString = this.getDateString(startDate);\n var endDateString = this.getDateString(endDate);\n return _react[\"default\"].createElement(_DateRangePickerInput[\"default\"], {\n startDate: startDateString,\n startDateId: startDateId,\n startDatePlaceholderText: startDatePlaceholderText,\n isStartDateFocused: isStartDateFocused,\n startDateAriaLabel: startDateAriaLabel,\n endDate: endDateString,\n endDateId: endDateId,\n endDatePlaceholderText: endDatePlaceholderText,\n isEndDateFocused: isEndDateFocused,\n endDateAriaLabel: endDateAriaLabel,\n isFocused: isFocused,\n disabled: disabled,\n required: required,\n readOnly: readOnly,\n openDirection: openDirection,\n showCaret: showCaret,\n showDefaultInputIcon: showDefaultInputIcon,\n inputIconPosition: inputIconPosition,\n customInputIcon: customInputIcon,\n customArrowIcon: customArrowIcon,\n customCloseIcon: customCloseIcon,\n phrases: phrases,\n onStartDateChange: this.onStartDateChange,\n onStartDateFocus: this.onStartDateFocus,\n onStartDateShiftTab: this.onClearFocus,\n onEndDateChange: this.onEndDateChange,\n onEndDateFocus: this.onEndDateFocus,\n showClearDates: showClearDates,\n onClearDates: this.clearDates,\n screenReaderMessage: screenReaderMessage,\n onKeyDownArrowDown: onKeyDownArrowDown,\n onKeyDownQuestionMark: onKeyDownQuestionMark,\n isRTL: isRTL,\n noBorder: noBorder,\n block: block,\n small: small,\n regular: regular,\n verticalSpacing: verticalSpacing\n }, children);\n };\n\n return DateRangePickerInputController;\n}(_react[\"default\"].PureComponent || _react[\"default\"].Component);\n\nexports[\"default\"] = DateRangePickerInputController;\nDateRangePickerInputController.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nDateRangePickerInputController.defaultProps = defaultProps;","function _arrayWithHoles(r) {\n if (Array.isArray(r)) return r;\n}\nmodule.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nmodule.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableRest, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayWithHoles = require(\"./arrayWithHoles.js\");\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableRest = require(\"./nonIterableRest.js\");\nfunction _slicedToArray(r, e) {\n return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();\n}\nmodule.exports = _slicedToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = isNextDay;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _isSameDay = _interopRequireDefault(require(\"./isSameDay\"));\n\nfunction isNextDay(a, b) {\n if (!_moment[\"default\"].isMoment(a) || !_moment[\"default\"].isMoment(b)) return false;\n var nextDay = (0, _moment[\"default\"])(a).add(1, 'day');\n return (0, _isSameDay[\"default\"])(nextDay, b);\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = isAfterDay;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _isBeforeDay = _interopRequireDefault(require(\"./isBeforeDay\"));\n\nvar _isSameDay = _interopRequireDefault(require(\"./isSameDay\"));\n\nfunction isAfterDay(a, b) {\n if (!_moment[\"default\"].isMoment(a) || !_moment[\"default\"].isMoment(b)) return false;\n return !(0, _isBeforeDay[\"default\"])(a, b) && !(0, _isSameDay[\"default\"])(a, b);\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = isPreviousDay;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _isSameDay = _interopRequireDefault(require(\"./isSameDay\"));\n\nfunction isPreviousDay(a, b) {\n if (!_moment[\"default\"].isMoment(a) || !_moment[\"default\"].isMoment(b)) return false;\n var dayBefore = (0, _moment[\"default\"])(a).subtract(1, 'day');\n return (0, _isSameDay[\"default\"])(dayBefore, b);\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getVisibleDays;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _toISOMonthString = _interopRequireDefault(require(\"./toISOMonthString\"));\n\nfunction getVisibleDays(month, numberOfMonths, enableOutsideDays, withoutTransitionMonths) {\n if (!_moment[\"default\"].isMoment(month)) return {};\n var visibleDaysByMonth = {};\n var currentMonth = withoutTransitionMonths ? month.clone() : month.clone().subtract(1, 'month');\n\n for (var i = 0; i < (withoutTransitionMonths ? numberOfMonths : numberOfMonths + 2); i += 1) {\n var visibleDays = []; // set utc offset to get correct dates in future (when timezone changes)\n\n var baseDate = currentMonth.clone();\n var firstOfMonth = baseDate.clone().startOf('month').hour(12);\n var lastOfMonth = baseDate.clone().endOf('month').hour(12);\n var currentDay = firstOfMonth.clone(); // days belonging to the previous month\n\n if (enableOutsideDays) {\n for (var j = 0; j < currentDay.weekday(); j += 1) {\n var prevDay = currentDay.clone().subtract(j + 1, 'day');\n visibleDays.unshift(prevDay);\n }\n }\n\n while (currentDay < lastOfMonth) {\n visibleDays.push(currentDay.clone());\n currentDay.add(1, 'day');\n }\n\n if (enableOutsideDays) {\n // weekday() returns the index of the day of the week according to the locale\n // this means if the week starts on Monday, weekday() will return 0 for a Monday date, not 1\n if (currentDay.weekday() !== 0) {\n // days belonging to the next month\n for (var k = currentDay.weekday(), count = 0; k < 7; k += 1, count += 1) {\n var nextDay = currentDay.clone().add(count, 'day');\n visibleDays.push(nextDay);\n }\n }\n }\n\n visibleDaysByMonth[(0, _toISOMonthString[\"default\"])(currentMonth)] = visibleDays;\n currentMonth = currentMonth.clone().add(1, 'month');\n }\n\n return visibleDaysByMonth;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = isDayVisible;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _isBeforeDay = _interopRequireDefault(require(\"./isBeforeDay\"));\n\nvar _isAfterDay = _interopRequireDefault(require(\"./isAfterDay\"));\n\nvar _toISOMonthString = _interopRequireDefault(require(\"./toISOMonthString\"));\n\nvar startCacheOutsideDays = new Map();\nvar endCacheOutsideDays = new Map();\nvar startCacheInsideDays = new Map();\nvar endCacheInsideDays = new Map();\n\nfunction isDayVisible(day, month, numberOfMonths, enableOutsideDays) {\n if (!_moment[\"default\"].isMoment(day)) return false; // Cloning is a little expensive, so we want to do it as little as possible.\n\n var startKey = (0, _toISOMonthString[\"default\"])(month); // eslint-disable-next-line prefer-template\n\n var endKey = startKey + '+' + numberOfMonths;\n\n if (enableOutsideDays) {\n if (!startCacheOutsideDays.has(startKey)) {\n startCacheOutsideDays.set(startKey, month.clone().startOf('month').startOf('week'));\n }\n\n if ((0, _isBeforeDay[\"default\"])(day, startCacheOutsideDays.get(startKey))) return false;\n\n if (!endCacheOutsideDays.has(endKey)) {\n endCacheOutsideDays.set(endKey, month.clone().endOf('week').add(numberOfMonths - 1, 'months').endOf('month').endOf('week'));\n }\n\n return !(0, _isAfterDay[\"default\"])(day, endCacheOutsideDays.get(endKey));\n } // !enableOutsideDays\n\n\n if (!startCacheInsideDays.has(startKey)) {\n startCacheInsideDays.set(startKey, month.clone().startOf('month'));\n }\n\n if ((0, _isBeforeDay[\"default\"])(day, startCacheInsideDays.get(startKey))) return false;\n\n if (!endCacheInsideDays.has(endKey)) {\n endCacheInsideDays.set(endKey, month.clone().add(numberOfMonths - 1, 'months').endOf('month'));\n }\n\n return !(0, _isAfterDay[\"default\"])(day, endCacheInsideDays.get(endKey));\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getSelectedDateOffset;\n\nvar defaultModifier = function defaultModifier(day) {\n return day;\n};\n\nfunction getSelectedDateOffset(fn, day) {\n var modifier = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultModifier;\n if (!fn) return day;\n return modifier(fn(day.clone()));\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getPreviousMonthMemoLast;\nvar getPreviousMonthMemoKey;\nvar getPreviousMonthMemoValue;\n\nfunction getPreviousMonthMemoLast(month) {\n if (month !== getPreviousMonthMemoKey) {\n getPreviousMonthMemoKey = month;\n getPreviousMonthMemoValue = month.clone().subtract(1, 'month');\n }\n\n return getPreviousMonthMemoValue;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.addModifier = addModifier;\nexports.deleteModifier = deleteModifier;\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _isDayVisible = _interopRequireDefault(require(\"./isDayVisible\"));\n\nvar _toISODateString = _interopRequireDefault(require(\"./toISODateString\"));\n\nvar _toISOMonthString = _interopRequireDefault(require(\"./toISOMonthString\"));\n\nvar _getPreviousMonthMemoLast = _interopRequireDefault(require(\"./getPreviousMonthMemoLast\"));\n\nvar _constants = require(\"../constants\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction addModifier(updatedDays, day, modifier, props, state) {\n var numberOfVisibleMonths = props.numberOfMonths,\n enableOutsideDays = props.enableOutsideDays,\n orientation = props.orientation;\n var firstVisibleMonth = state.currentMonth,\n visibleDays = state.visibleDays;\n var currentMonth = firstVisibleMonth;\n var numberOfMonths = numberOfVisibleMonths;\n\n if (orientation === _constants.VERTICAL_SCROLLABLE) {\n numberOfMonths = Object.keys(visibleDays).length;\n } else {\n currentMonth = (0, _getPreviousMonthMemoLast[\"default\"])(currentMonth);\n numberOfMonths += 2;\n }\n\n if (!day || !(0, _isDayVisible[\"default\"])(day, currentMonth, numberOfMonths, enableOutsideDays)) {\n return updatedDays;\n }\n\n var iso = (0, _toISODateString[\"default\"])(day);\n\n var updatedDaysAfterAddition = _objectSpread({}, updatedDays);\n\n if (enableOutsideDays) {\n var monthsToUpdate = Object.keys(visibleDays).filter(function (monthKey) {\n return Object.keys(visibleDays[monthKey]).indexOf(iso) > -1;\n });\n updatedDaysAfterAddition = monthsToUpdate.reduce(function (acc, monthIso) {\n var month = updatedDays[monthIso] || visibleDays[monthIso];\n\n if (!month[iso] || !month[iso].has(modifier)) {\n var modifiers = new Set(month[iso]);\n modifiers.add(modifier);\n acc[monthIso] = _objectSpread({}, month, (0, _defineProperty2[\"default\"])({}, iso, modifiers));\n }\n\n return acc;\n }, updatedDaysAfterAddition);\n } else {\n var monthIso = (0, _toISOMonthString[\"default\"])(day);\n var month = updatedDays[monthIso] || visibleDays[monthIso] || {};\n\n if (!month[iso] || !month[iso].has(modifier)) {\n var modifiers = new Set(month[iso]);\n modifiers.add(modifier);\n updatedDaysAfterAddition[monthIso] = _objectSpread({}, month, (0, _defineProperty2[\"default\"])({}, iso, modifiers));\n }\n }\n\n return updatedDaysAfterAddition;\n}\n\nfunction deleteModifier(updatedDays, day, modifier, props, state) {\n var numberOfVisibleMonths = props.numberOfMonths,\n enableOutsideDays = props.enableOutsideDays,\n orientation = props.orientation;\n var firstVisibleMonth = state.currentMonth,\n visibleDays = state.visibleDays;\n var currentMonth = firstVisibleMonth;\n var numberOfMonths = numberOfVisibleMonths;\n\n if (orientation === _constants.VERTICAL_SCROLLABLE) {\n numberOfMonths = Object.keys(visibleDays).length;\n } else {\n currentMonth = (0, _getPreviousMonthMemoLast[\"default\"])(currentMonth);\n numberOfMonths += 2;\n }\n\n if (!day || !(0, _isDayVisible[\"default\"])(day, currentMonth, numberOfMonths, enableOutsideDays)) {\n return updatedDays;\n }\n\n var iso = (0, _toISODateString[\"default\"])(day);\n\n var updatedDaysAfterDeletion = _objectSpread({}, updatedDays);\n\n if (enableOutsideDays) {\n var monthsToUpdate = Object.keys(visibleDays).filter(function (monthKey) {\n return Object.keys(visibleDays[monthKey]).indexOf(iso) > -1;\n });\n updatedDaysAfterDeletion = monthsToUpdate.reduce(function (acc, monthIso) {\n var month = updatedDays[monthIso] || visibleDays[monthIso];\n\n if (month[iso] && month[iso].has(modifier)) {\n var modifiers = new Set(month[iso]);\n modifiers[\"delete\"](modifier);\n acc[monthIso] = _objectSpread({}, month, (0, _defineProperty2[\"default\"])({}, iso, modifiers));\n }\n\n return acc;\n }, updatedDaysAfterDeletion);\n } else {\n var monthIso = (0, _toISOMonthString[\"default\"])(day);\n var month = updatedDays[monthIso] || visibleDays[monthIso] || {};\n\n if (month[iso] && month[iso].has(modifier)) {\n var modifiers = new Set(month[iso]);\n modifiers[\"delete\"](modifier);\n updatedDaysAfterDeletion[monthIso] = _objectSpread({}, month, (0, _defineProperty2[\"default\"])({}, iso, modifiers));\n }\n }\n\n return updatedDaysAfterDeletion;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar ChevronUp = function ChevronUp(props) {\n return _react[\"default\"].createElement(\"svg\", props, _react[\"default\"].createElement(\"path\", {\n d: \"M32 713l453-453c11-11 21-11 32 0l453 453c5 5 7 10 7 16 0 13-10 23-22 23-7 0-12-2-16-7L501 309 64 745c-4 5-9 7-15 7-7 0-12-2-17-7-9-11-9-21 0-32z\"\n }));\n};\n\nChevronUp.defaultProps = {\n focusable: \"false\",\n viewBox: \"0 0 1000 1000\"\n};\nvar _default = ChevronUp;\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar ChevronDown = function ChevronDown(props) {\n return _react[\"default\"].createElement(\"svg\", props, _react[\"default\"].createElement(\"path\", {\n d: \"M968 289L514 741c-11 11-21 11-32 0L29 289c-4-5-6-11-6-16 0-13 10-23 23-23 6 0 11 2 15 7l437 436 438-436c4-5 9-7 16-7 6 0 11 2 16 7 9 10 9 21 0 32z\"\n }));\n};\n\nChevronDown.defaultProps = {\n focusable: \"false\",\n viewBox: \"0 0 1000 1000\"\n};\nvar _default = ChevronDown;\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _enzymeShallowEqual = _interopRequireDefault(require(\"enzyme-shallow-equal\"));\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _reactWithStyles = require(\"react-with-styles\");\n\nvar _defaultPhrases = require(\"../defaultPhrases\");\n\nvar _getPhrasePropTypes = _interopRequireDefault(require(\"../utils/getPhrasePropTypes\"));\n\nvar _noflip = _interopRequireDefault(require(\"../utils/noflip\"));\n\nvar _LeftArrow = _interopRequireDefault(require(\"./LeftArrow\"));\n\nvar _RightArrow = _interopRequireDefault(require(\"./RightArrow\"));\n\nvar _ChevronUp = _interopRequireDefault(require(\"./ChevronUp\"));\n\nvar _ChevronDown = _interopRequireDefault(require(\"./ChevronDown\"));\n\nvar _NavPositionShape = _interopRequireDefault(require(\"../shapes/NavPositionShape\"));\n\nvar _ScrollableOrientationShape = _interopRequireDefault(require(\"../shapes/ScrollableOrientationShape\"));\n\nvar _constants = require(\"../constants\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nvar propTypes = process.env.NODE_ENV !== \"production\" ? (0, _airbnbPropTypes.forbidExtraProps)(_objectSpread({}, _reactWithStyles.withStylesPropTypes, {\n disablePrev: _propTypes[\"default\"].bool,\n disableNext: _propTypes[\"default\"].bool,\n inlineStyles: _propTypes[\"default\"].object,\n isRTL: _propTypes[\"default\"].bool,\n navPosition: _NavPositionShape[\"default\"],\n navPrev: _propTypes[\"default\"].node,\n navNext: _propTypes[\"default\"].node,\n orientation: _ScrollableOrientationShape[\"default\"],\n onPrevMonthClick: _propTypes[\"default\"].func,\n onNextMonthClick: _propTypes[\"default\"].func,\n // internationalization\n phrases: _propTypes[\"default\"].shape((0, _getPhrasePropTypes[\"default\"])(_defaultPhrases.DayPickerNavigationPhrases)),\n renderNavPrevButton: _propTypes[\"default\"].func,\n renderNavNextButton: _propTypes[\"default\"].func,\n showNavPrevButton: _propTypes[\"default\"].bool,\n showNavNextButton: _propTypes[\"default\"].bool\n})) : {};\nvar defaultProps = {\n disablePrev: false,\n disableNext: false,\n inlineStyles: null,\n isRTL: false,\n navPosition: _constants.NAV_POSITION_TOP,\n navPrev: null,\n navNext: null,\n orientation: _constants.HORIZONTAL_ORIENTATION,\n onPrevMonthClick: function onPrevMonthClick() {},\n onNextMonthClick: function onNextMonthClick() {},\n // internationalization\n phrases: _defaultPhrases.DayPickerNavigationPhrases,\n renderNavPrevButton: null,\n renderNavNextButton: null,\n showNavPrevButton: true,\n showNavNextButton: true\n};\n\nvar DayPickerNavigation =\n/*#__PURE__*/\nfunction (_ref) {\n (0, _inheritsLoose2[\"default\"])(DayPickerNavigation, _ref);\n\n function DayPickerNavigation() {\n return _ref.apply(this, arguments) || this;\n }\n\n var _proto = DayPickerNavigation.prototype;\n\n _proto[!_react[\"default\"].PureComponent && \"shouldComponentUpdate\"] = function (nextProps, nextState) {\n return !(0, _enzymeShallowEqual[\"default\"])(this.props, nextProps) || !(0, _enzymeShallowEqual[\"default\"])(this.state, nextState);\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n inlineStyles = _this$props.inlineStyles,\n isRTL = _this$props.isRTL,\n disablePrev = _this$props.disablePrev,\n disableNext = _this$props.disableNext,\n navPosition = _this$props.navPosition,\n navPrev = _this$props.navPrev,\n navNext = _this$props.navNext,\n onPrevMonthClick = _this$props.onPrevMonthClick,\n onNextMonthClick = _this$props.onNextMonthClick,\n orientation = _this$props.orientation,\n phrases = _this$props.phrases,\n renderNavPrevButton = _this$props.renderNavPrevButton,\n renderNavNextButton = _this$props.renderNavNextButton,\n showNavPrevButton = _this$props.showNavPrevButton,\n showNavNextButton = _this$props.showNavNextButton,\n styles = _this$props.styles;\n\n if (!showNavNextButton && !showNavPrevButton) {\n return null;\n }\n\n var isHorizontal = orientation === _constants.HORIZONTAL_ORIENTATION;\n var isVertical = orientation !== _constants.HORIZONTAL_ORIENTATION;\n var isVerticalScrollable = orientation === _constants.VERTICAL_SCROLLABLE;\n var isBottomNavPosition = navPosition === _constants.NAV_POSITION_BOTTOM;\n var hasInlineStyles = !!inlineStyles;\n var navPrevIcon = navPrev;\n var navNextIcon = navNext;\n var isDefaultNavPrev = false;\n var isDefaultNavNext = false;\n var navPrevTabIndex = {};\n var navNextTabIndex = {};\n\n if (!navPrevIcon && !renderNavPrevButton && showNavPrevButton) {\n navPrevTabIndex = {\n tabIndex: '0'\n };\n isDefaultNavPrev = true;\n var Icon = isVertical ? _ChevronUp[\"default\"] : _LeftArrow[\"default\"];\n\n if (isRTL && !isVertical) {\n Icon = _RightArrow[\"default\"];\n }\n\n navPrevIcon = _react[\"default\"].createElement(Icon, (0, _reactWithStyles.css)(isHorizontal && styles.DayPickerNavigation_svg__horizontal, isVertical && styles.DayPickerNavigation_svg__vertical, disablePrev && styles.DayPickerNavigation_svg__disabled));\n }\n\n if (!navNextIcon && !renderNavNextButton && showNavNextButton) {\n navNextTabIndex = {\n tabIndex: '0'\n };\n isDefaultNavNext = true;\n\n var _Icon = isVertical ? _ChevronDown[\"default\"] : _RightArrow[\"default\"];\n\n if (isRTL && !isVertical) {\n _Icon = _LeftArrow[\"default\"];\n }\n\n navNextIcon = _react[\"default\"].createElement(_Icon, (0, _reactWithStyles.css)(isHorizontal && styles.DayPickerNavigation_svg__horizontal, isVertical && styles.DayPickerNavigation_svg__vertical, disableNext && styles.DayPickerNavigation_svg__disabled));\n }\n\n var isDefaultNav = isDefaultNavNext || isDefaultNavPrev;\n return _react[\"default\"].createElement(\"div\", _reactWithStyles.css.apply(void 0, [styles.DayPickerNavigation, isHorizontal && styles.DayPickerNavigation__horizontal].concat((0, _toConsumableArray2[\"default\"])(isVertical ? [styles.DayPickerNavigation__vertical, isDefaultNav && styles.DayPickerNavigation__verticalDefault] : []), (0, _toConsumableArray2[\"default\"])(isVerticalScrollable ? [styles.DayPickerNavigation__verticalScrollable, isDefaultNav && styles.DayPickerNavigation__verticalScrollableDefault, showNavPrevButton && styles.DayPickerNavigation__verticalScrollable_prevNav] : []), (0, _toConsumableArray2[\"default\"])(isBottomNavPosition ? [styles.DayPickerNavigation__bottom, isDefaultNav && styles.DayPickerNavigation__bottomDefault] : []), [hasInlineStyles && inlineStyles])), showNavPrevButton && (renderNavPrevButton ? renderNavPrevButton({\n ariaLabel: phrases.jumpToPrevMonth,\n disabled: disablePrev,\n onClick: disablePrev ? undefined : onPrevMonthClick,\n onKeyUp: disablePrev ? undefined : function (e) {\n var key = e.key;\n\n if (key === 'Enter' || key === ' ') {\n onPrevMonthClick(e);\n }\n },\n onMouseUp: disablePrev ? undefined : function (e) {\n e.currentTarget.blur();\n }\n }) : _react[\"default\"].createElement(\"div\", (0, _extends2[\"default\"])({\n // eslint-disable-line jsx-a11y/interactive-supports-focus\n role: \"button\"\n }, navPrevTabIndex, _reactWithStyles.css.apply(void 0, [styles.DayPickerNavigation_button, isDefaultNavPrev && styles.DayPickerNavigation_button__default, disablePrev && styles.DayPickerNavigation_button__disabled].concat((0, _toConsumableArray2[\"default\"])(isHorizontal ? [styles.DayPickerNavigation_button__horizontal].concat((0, _toConsumableArray2[\"default\"])(isDefaultNavPrev ? [styles.DayPickerNavigation_button__horizontalDefault, isBottomNavPosition && styles.DayPickerNavigation_bottomButton__horizontalDefault, !isRTL && styles.DayPickerNavigation_leftButton__horizontalDefault, isRTL && styles.DayPickerNavigation_rightButton__horizontalDefault] : [])) : []), (0, _toConsumableArray2[\"default\"])(isVertical ? [styles.DayPickerNavigation_button__vertical].concat((0, _toConsumableArray2[\"default\"])(isDefaultNavPrev ? [styles.DayPickerNavigation_button__verticalDefault, styles.DayPickerNavigation_prevButton__verticalDefault, isVerticalScrollable && styles.DayPickerNavigation_prevButton__verticalScrollableDefault] : [])) : []))), {\n \"aria-disabled\": disablePrev ? true : undefined,\n \"aria-label\": phrases.jumpToPrevMonth,\n onClick: disablePrev ? undefined : onPrevMonthClick,\n onKeyUp: disablePrev ? undefined : function (e) {\n var key = e.key;\n\n if (key === 'Enter' || key === ' ') {\n onPrevMonthClick(e);\n }\n },\n onMouseUp: disablePrev ? undefined : function (e) {\n e.currentTarget.blur();\n }\n }), navPrevIcon)), showNavNextButton && (renderNavNextButton ? renderNavNextButton({\n ariaLabel: phrases.jumpToNextMonth,\n disabled: disableNext,\n onClick: disableNext ? undefined : onNextMonthClick,\n onKeyUp: disableNext ? undefined : function (e) {\n var key = e.key;\n\n if (key === 'Enter' || key === ' ') {\n onNextMonthClick(e);\n }\n },\n onMouseUp: disableNext ? undefined : function (e) {\n e.currentTarget.blur();\n }\n }) : _react[\"default\"].createElement(\"div\", (0, _extends2[\"default\"])({\n // eslint-disable-line jsx-a11y/interactive-supports-focus\n role: \"button\"\n }, navNextTabIndex, _reactWithStyles.css.apply(void 0, [styles.DayPickerNavigation_button, isDefaultNavNext && styles.DayPickerNavigation_button__default, disableNext && styles.DayPickerNavigation_button__disabled].concat((0, _toConsumableArray2[\"default\"])(isHorizontal ? [styles.DayPickerNavigation_button__horizontal].concat((0, _toConsumableArray2[\"default\"])(isDefaultNavNext ? [styles.DayPickerNavigation_button__horizontalDefault, isBottomNavPosition && styles.DayPickerNavigation_bottomButton__horizontalDefault, isRTL && styles.DayPickerNavigation_leftButton__horizontalDefault, !isRTL && styles.DayPickerNavigation_rightButton__horizontalDefault] : [])) : []), (0, _toConsumableArray2[\"default\"])(isVertical ? [styles.DayPickerNavigation_button__vertical].concat((0, _toConsumableArray2[\"default\"])(isDefaultNavNext ? [styles.DayPickerNavigation_button__verticalDefault, styles.DayPickerNavigation_nextButton__verticalDefault, isVerticalScrollable && styles.DayPickerNavigation_nextButton__verticalScrollableDefault] : [])) : []))), {\n \"aria-disabled\": disableNext ? true : undefined,\n \"aria-label\": phrases.jumpToNextMonth,\n onClick: disableNext ? undefined : onNextMonthClick,\n onKeyUp: disableNext ? undefined : function (e) {\n var key = e.key;\n\n if (key === 'Enter' || key === ' ') {\n onNextMonthClick(e);\n }\n },\n onMouseUp: disableNext ? undefined : function (e) {\n e.currentTarget.blur();\n }\n }), navNextIcon)));\n };\n\n return DayPickerNavigation;\n}(_react[\"default\"].PureComponent || _react[\"default\"].Component);\n\nDayPickerNavigation.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nDayPickerNavigation.defaultProps = defaultProps;\n\nvar _default = (0, _reactWithStyles.withStyles)(function (_ref2) {\n var _ref2$reactDates = _ref2.reactDates,\n color = _ref2$reactDates.color,\n zIndex = _ref2$reactDates.zIndex;\n return {\n DayPickerNavigation: {\n position: 'relative',\n zIndex: zIndex + 2\n },\n DayPickerNavigation__horizontal: {\n height: 0\n },\n DayPickerNavigation__vertical: {},\n DayPickerNavigation__verticalScrollable: {},\n DayPickerNavigation__verticalScrollable_prevNav: {\n zIndex: zIndex + 1 // zIndex + 2 causes the button to show on top of the day of week headers\n\n },\n DayPickerNavigation__verticalDefault: {\n position: 'absolute',\n width: '100%',\n height: 52,\n bottom: 0,\n left: (0, _noflip[\"default\"])(0)\n },\n DayPickerNavigation__verticalScrollableDefault: {\n position: 'relative'\n },\n DayPickerNavigation__bottom: {\n height: 'auto'\n },\n DayPickerNavigation__bottomDefault: {\n display: 'flex',\n justifyContent: 'space-between'\n },\n DayPickerNavigation_button: {\n cursor: 'pointer',\n userSelect: 'none',\n border: 0,\n padding: 0,\n margin: 0\n },\n DayPickerNavigation_button__default: {\n border: \"1px solid \".concat(color.core.borderLight),\n backgroundColor: color.background,\n color: color.placeholderText,\n ':focus': {\n border: \"1px solid \".concat(color.core.borderMedium)\n },\n ':hover': {\n border: \"1px solid \".concat(color.core.borderMedium)\n },\n ':active': {\n background: color.backgroundDark\n }\n },\n DayPickerNavigation_button__disabled: {\n cursor: 'default',\n border: \"1px solid \".concat(color.disabled),\n ':focus': {\n border: \"1px solid \".concat(color.disabled)\n },\n ':hover': {\n border: \"1px solid \".concat(color.disabled)\n },\n ':active': {\n background: 'none'\n }\n },\n DayPickerNavigation_button__horizontal: {},\n DayPickerNavigation_button__horizontalDefault: {\n position: 'absolute',\n top: 18,\n lineHeight: 0.78,\n borderRadius: 3,\n padding: '6px 9px'\n },\n DayPickerNavigation_bottomButton__horizontalDefault: {\n position: 'static',\n marginLeft: 22,\n marginRight: 22,\n marginBottom: 30,\n marginTop: -10\n },\n DayPickerNavigation_leftButton__horizontalDefault: {\n left: (0, _noflip[\"default\"])(22)\n },\n DayPickerNavigation_rightButton__horizontalDefault: {\n right: (0, _noflip[\"default\"])(22)\n },\n DayPickerNavigation_button__vertical: {},\n DayPickerNavigation_button__verticalDefault: {\n padding: 5,\n background: color.background,\n boxShadow: (0, _noflip[\"default\"])('0 0 5px 2px rgba(0, 0, 0, 0.1)'),\n position: 'relative',\n display: 'inline-block',\n textAlign: 'center',\n height: '100%',\n width: '50%'\n },\n DayPickerNavigation_prevButton__verticalDefault: {},\n DayPickerNavigation_nextButton__verticalDefault: {\n borderLeft: (0, _noflip[\"default\"])(0)\n },\n DayPickerNavigation_nextButton__verticalScrollableDefault: {\n width: '100%'\n },\n DayPickerNavigation_prevButton__verticalScrollableDefault: {\n width: '100%'\n },\n DayPickerNavigation_svg__horizontal: {\n height: 19,\n width: 19,\n fill: color.core.grayLight,\n display: 'block'\n },\n DayPickerNavigation_svg__vertical: {\n height: 42,\n width: 42,\n fill: color.text\n },\n DayPickerNavigation_svg__disabled: {\n fill: color.disabled\n }\n };\n}, {\n pureComponent: typeof _react[\"default\"].PureComponent !== 'undefined'\n})(DayPickerNavigation);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _reactWithStyles = require(\"react-with-styles\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nvar propTypes = process.env.NODE_ENV !== \"production\" ? (0, _airbnbPropTypes.forbidExtraProps)(_objectSpread({}, _reactWithStyles.withStylesPropTypes, {\n unicode: _propTypes[\"default\"].string.isRequired,\n label: _propTypes[\"default\"].string.isRequired,\n action: _propTypes[\"default\"].string.isRequired,\n block: _propTypes[\"default\"].bool\n})) : {};\nvar defaultProps = {\n block: false\n};\n\nfunction KeyboardShortcutRow(_ref) {\n var unicode = _ref.unicode,\n label = _ref.label,\n action = _ref.action,\n block = _ref.block,\n styles = _ref.styles;\n return _react[\"default\"].createElement(\"li\", (0, _reactWithStyles.css)(styles.KeyboardShortcutRow, block && styles.KeyboardShortcutRow__block), _react[\"default\"].createElement(\"div\", (0, _reactWithStyles.css)(styles.KeyboardShortcutRow_keyContainer, block && styles.KeyboardShortcutRow_keyContainer__block), _react[\"default\"].createElement(\"span\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.KeyboardShortcutRow_key), {\n role: \"img\",\n \"aria-label\": \"\".concat(label, \",\") // add comma so screen readers will pause before reading action\n\n }), unicode)), _react[\"default\"].createElement(\"div\", (0, _reactWithStyles.css)(styles.KeyboardShortcutRow_action), action));\n}\n\nKeyboardShortcutRow.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nKeyboardShortcutRow.defaultProps = defaultProps;\n\nvar _default = (0, _reactWithStyles.withStyles)(function (_ref2) {\n var color = _ref2.reactDates.color;\n return {\n KeyboardShortcutRow: {\n listStyle: 'none',\n margin: '6px 0'\n },\n KeyboardShortcutRow__block: {\n marginBottom: 16\n },\n KeyboardShortcutRow_keyContainer: {\n display: 'inline-block',\n whiteSpace: 'nowrap',\n textAlign: 'right',\n // is not handled by isRTL\n marginRight: 6 // is not handled by isRTL\n\n },\n KeyboardShortcutRow_keyContainer__block: {\n textAlign: 'left',\n // is not handled by isRTL\n display: 'inline'\n },\n KeyboardShortcutRow_key: {\n fontFamily: 'monospace',\n fontSize: 12,\n textTransform: 'uppercase',\n background: color.core.grayLightest,\n padding: '2px 6px'\n },\n KeyboardShortcutRow_action: {\n display: 'inline',\n wordBreak: 'break-word',\n marginLeft: 8 // is not handled by isRTL\n\n }\n };\n}, {\n pureComponent: typeof _react[\"default\"].PureComponent !== 'undefined'\n})(KeyboardShortcutRow);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = exports.BOTTOM_RIGHT = exports.TOP_RIGHT = exports.TOP_LEFT = void 0;\n\nvar _enzymeShallowEqual = _interopRequireDefault(require(\"enzyme-shallow-equal\"));\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _reactWithStyles = require(\"react-with-styles\");\n\nvar _defaultPhrases = require(\"../defaultPhrases\");\n\nvar _getPhrasePropTypes = _interopRequireDefault(require(\"../utils/getPhrasePropTypes\"));\n\nvar _KeyboardShortcutRow = _interopRequireDefault(require(\"./KeyboardShortcutRow\"));\n\nvar _CloseButton = _interopRequireDefault(require(\"./CloseButton\"));\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nvar TOP_LEFT = 'top-left';\nexports.TOP_LEFT = TOP_LEFT;\nvar TOP_RIGHT = 'top-right';\nexports.TOP_RIGHT = TOP_RIGHT;\nvar BOTTOM_RIGHT = 'bottom-right';\nexports.BOTTOM_RIGHT = BOTTOM_RIGHT;\nvar propTypes = process.env.NODE_ENV !== \"production\" ? (0, _airbnbPropTypes.forbidExtraProps)(_objectSpread({}, _reactWithStyles.withStylesPropTypes, {\n block: _propTypes[\"default\"].bool,\n // TODO: rename button location to be direction-agnostic\n buttonLocation: _propTypes[\"default\"].oneOf([TOP_LEFT, TOP_RIGHT, BOTTOM_RIGHT]),\n showKeyboardShortcutsPanel: _propTypes[\"default\"].bool,\n openKeyboardShortcutsPanel: _propTypes[\"default\"].func,\n closeKeyboardShortcutsPanel: _propTypes[\"default\"].func,\n phrases: _propTypes[\"default\"].shape((0, _getPhrasePropTypes[\"default\"])(_defaultPhrases.DayPickerKeyboardShortcutsPhrases)),\n renderKeyboardShortcutsButton: _propTypes[\"default\"].func,\n renderKeyboardShortcutsPanel: _propTypes[\"default\"].func\n})) : {};\nvar defaultProps = {\n block: false,\n buttonLocation: BOTTOM_RIGHT,\n showKeyboardShortcutsPanel: false,\n openKeyboardShortcutsPanel: function openKeyboardShortcutsPanel() {},\n closeKeyboardShortcutsPanel: function closeKeyboardShortcutsPanel() {},\n phrases: _defaultPhrases.DayPickerKeyboardShortcutsPhrases,\n renderKeyboardShortcutsButton: undefined,\n renderKeyboardShortcutsPanel: undefined\n};\n\nfunction getKeyboardShortcuts(phrases) {\n return [{\n unicode: '↵',\n label: phrases.enterKey,\n action: phrases.selectFocusedDate\n }, {\n unicode: '←/→',\n label: phrases.leftArrowRightArrow,\n action: phrases.moveFocusByOneDay\n }, {\n unicode: '↑/↓',\n label: phrases.upArrowDownArrow,\n action: phrases.moveFocusByOneWeek\n }, {\n unicode: 'PgUp/PgDn',\n label: phrases.pageUpPageDown,\n action: phrases.moveFocusByOneMonth\n }, {\n unicode: 'Home/End',\n label: phrases.homeEnd,\n action: phrases.moveFocustoStartAndEndOfWeek\n }, {\n unicode: 'Esc',\n label: phrases.escape,\n action: phrases.returnFocusToInput\n }, {\n unicode: '?',\n label: phrases.questionMark,\n action: phrases.openThisPanel\n }];\n}\n\nvar DayPickerKeyboardShortcuts =\n/*#__PURE__*/\nfunction (_ref) {\n (0, _inheritsLoose2[\"default\"])(DayPickerKeyboardShortcuts, _ref);\n var _proto = DayPickerKeyboardShortcuts.prototype;\n\n _proto[!_react[\"default\"].PureComponent && \"shouldComponentUpdate\"] = function (nextProps, nextState) {\n return !(0, _enzymeShallowEqual[\"default\"])(this.props, nextProps) || !(0, _enzymeShallowEqual[\"default\"])(this.state, nextState);\n };\n\n function DayPickerKeyboardShortcuts() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _ref.call.apply(_ref, [this].concat(args)) || this;\n var phrases = _this.props.phrases;\n _this.keyboardShortcuts = getKeyboardShortcuts(phrases);\n _this.onShowKeyboardShortcutsButtonClick = _this.onShowKeyboardShortcutsButtonClick.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.setShowKeyboardShortcutsButtonRef = _this.setShowKeyboardShortcutsButtonRef.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.setHideKeyboardShortcutsButtonRef = _this.setHideKeyboardShortcutsButtonRef.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.handleFocus = _this.handleFocus.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onKeyDown = _this.onKeyDown.bind((0, _assertThisInitialized2[\"default\"])(_this));\n return _this;\n }\n\n _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n var phrases = this.props.phrases;\n\n if (nextProps.phrases !== phrases) {\n this.keyboardShortcuts = getKeyboardShortcuts(nextProps.phrases);\n }\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n this.handleFocus();\n };\n\n _proto.onKeyDown = function onKeyDown(e) {\n e.stopPropagation();\n var closeKeyboardShortcutsPanel = this.props.closeKeyboardShortcutsPanel; // Because the close button is the only focusable element inside of the panel, this\n // amounts to a very basic focus trap. The user can exit the panel by \"pressing\" the\n // close button or hitting escape\n\n switch (e.key) {\n case 'Escape':\n closeKeyboardShortcutsPanel();\n break;\n // do nothing - this allows the up and down arrows continue their\n // default behavior of scrolling the content of the Keyboard Shortcuts Panel\n // which is needed when only a single month is shown for instance.\n\n case 'ArrowUp':\n case 'ArrowDown':\n break;\n // completely block the rest of the keys that have functionality outside of this panel\n\n case 'Tab':\n case 'Home':\n case 'End':\n case 'PageUp':\n case 'PageDown':\n case 'ArrowLeft':\n case 'ArrowRight':\n e.preventDefault();\n break;\n\n default:\n break;\n }\n };\n\n _proto.onShowKeyboardShortcutsButtonClick = function onShowKeyboardShortcutsButtonClick() {\n var _this2 = this;\n\n var openKeyboardShortcutsPanel = this.props.openKeyboardShortcutsPanel; // we want to return focus to this button after closing the keyboard shortcuts panel\n\n openKeyboardShortcutsPanel(function () {\n _this2.showKeyboardShortcutsButton.focus();\n });\n };\n\n _proto.setShowKeyboardShortcutsButtonRef = function setShowKeyboardShortcutsButtonRef(ref) {\n this.showKeyboardShortcutsButton = ref;\n };\n\n _proto.setHideKeyboardShortcutsButtonRef = function setHideKeyboardShortcutsButtonRef(ref) {\n this.hideKeyboardShortcutsButton = ref;\n };\n\n _proto.handleFocus = function handleFocus() {\n if (this.hideKeyboardShortcutsButton) {\n // automatically move focus into the dialog by moving\n // to the only interactive element, the hide button\n this.hideKeyboardShortcutsButton.focus();\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n block = _this$props.block,\n buttonLocation = _this$props.buttonLocation,\n showKeyboardShortcutsPanel = _this$props.showKeyboardShortcutsPanel,\n closeKeyboardShortcutsPanel = _this$props.closeKeyboardShortcutsPanel,\n styles = _this$props.styles,\n phrases = _this$props.phrases,\n renderKeyboardShortcutsButton = _this$props.renderKeyboardShortcutsButton,\n renderKeyboardShortcutsPanel = _this$props.renderKeyboardShortcutsPanel;\n var toggleButtonText = showKeyboardShortcutsPanel ? phrases.hideKeyboardShortcutsPanel : phrases.showKeyboardShortcutsPanel;\n var bottomRight = buttonLocation === BOTTOM_RIGHT;\n var topRight = buttonLocation === TOP_RIGHT;\n var topLeft = buttonLocation === TOP_LEFT;\n return _react[\"default\"].createElement(\"div\", null, renderKeyboardShortcutsButton && renderKeyboardShortcutsButton({\n // passing in context-specific props\n ref: this.setShowKeyboardShortcutsButtonRef,\n onClick: this.onShowKeyboardShortcutsButtonClick,\n ariaLabel: toggleButtonText\n }), !renderKeyboardShortcutsButton && _react[\"default\"].createElement(\"button\", (0, _extends2[\"default\"])({\n ref: this.setShowKeyboardShortcutsButtonRef\n }, (0, _reactWithStyles.css)(styles.DayPickerKeyboardShortcuts_buttonReset, styles.DayPickerKeyboardShortcuts_show, bottomRight && styles.DayPickerKeyboardShortcuts_show__bottomRight, topRight && styles.DayPickerKeyboardShortcuts_show__topRight, topLeft && styles.DayPickerKeyboardShortcuts_show__topLeft), {\n type: \"button\",\n \"aria-label\": toggleButtonText,\n onClick: this.onShowKeyboardShortcutsButtonClick,\n onMouseUp: function onMouseUp(e) {\n e.currentTarget.blur();\n }\n }), _react[\"default\"].createElement(\"span\", (0, _reactWithStyles.css)(styles.DayPickerKeyboardShortcuts_showSpan, bottomRight && styles.DayPickerKeyboardShortcuts_showSpan__bottomRight, topRight && styles.DayPickerKeyboardShortcuts_showSpan__topRight, topLeft && styles.DayPickerKeyboardShortcuts_showSpan__topLeft), \"?\")), showKeyboardShortcutsPanel && (renderKeyboardShortcutsPanel ? renderKeyboardShortcutsPanel({\n closeButtonAriaLabel: phrases.hideKeyboardShortcutsPanel,\n keyboardShortcuts: this.keyboardShortcuts,\n onCloseButtonClick: closeKeyboardShortcutsPanel,\n onKeyDown: this.onKeyDown,\n title: phrases.keyboardShortcuts\n }) : _react[\"default\"].createElement(\"div\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.DayPickerKeyboardShortcuts_panel), {\n role: \"dialog\",\n \"aria-labelledby\": \"DayPickerKeyboardShortcuts_title\",\n \"aria-describedby\": \"DayPickerKeyboardShortcuts_description\"\n }), _react[\"default\"].createElement(\"div\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.DayPickerKeyboardShortcuts_title), {\n id: \"DayPickerKeyboardShortcuts_title\"\n }), phrases.keyboardShortcuts), _react[\"default\"].createElement(\"button\", (0, _extends2[\"default\"])({\n ref: this.setHideKeyboardShortcutsButtonRef\n }, (0, _reactWithStyles.css)(styles.DayPickerKeyboardShortcuts_buttonReset, styles.DayPickerKeyboardShortcuts_close), {\n type: \"button\",\n tabIndex: \"0\",\n \"aria-label\": phrases.hideKeyboardShortcutsPanel,\n onClick: closeKeyboardShortcutsPanel,\n onKeyDown: this.onKeyDown\n }), _react[\"default\"].createElement(_CloseButton[\"default\"], (0, _reactWithStyles.css)(styles.DayPickerKeyboardShortcuts_closeSvg))), _react[\"default\"].createElement(\"ul\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.DayPickerKeyboardShortcuts_list), {\n id: \"DayPickerKeyboardShortcuts_description\"\n }), this.keyboardShortcuts.map(function (_ref2) {\n var unicode = _ref2.unicode,\n label = _ref2.label,\n action = _ref2.action;\n return _react[\"default\"].createElement(_KeyboardShortcutRow[\"default\"], {\n key: label,\n unicode: unicode,\n label: label,\n action: action,\n block: block\n });\n })))));\n };\n\n return DayPickerKeyboardShortcuts;\n}(_react[\"default\"].PureComponent || _react[\"default\"].Component);\n\nDayPickerKeyboardShortcuts.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nDayPickerKeyboardShortcuts.defaultProps = defaultProps;\n\nvar _default = (0, _reactWithStyles.withStyles)(function (_ref3) {\n var _ref3$reactDates = _ref3.reactDates,\n color = _ref3$reactDates.color,\n font = _ref3$reactDates.font,\n zIndex = _ref3$reactDates.zIndex;\n return {\n DayPickerKeyboardShortcuts_buttonReset: {\n background: 'none',\n border: 0,\n borderRadius: 0,\n color: 'inherit',\n font: 'inherit',\n lineHeight: 'normal',\n overflow: 'visible',\n padding: 0,\n cursor: 'pointer',\n fontSize: font.size,\n ':active': {\n outline: 'none'\n }\n },\n DayPickerKeyboardShortcuts_show: {\n width: 33,\n height: 26,\n position: 'absolute',\n zIndex: zIndex + 2,\n '::before': {\n content: '\"\"',\n display: 'block',\n position: 'absolute'\n }\n },\n DayPickerKeyboardShortcuts_show__bottomRight: {\n bottom: 0,\n right: 0,\n '::before': {\n borderTop: '26px solid transparent',\n borderRight: \"33px solid \".concat(color.core.primary),\n bottom: 0,\n right: 0\n },\n ':hover::before': {\n borderRight: \"33px solid \".concat(color.core.primary_dark)\n }\n },\n DayPickerKeyboardShortcuts_show__topRight: {\n top: 0,\n right: 0,\n '::before': {\n borderBottom: '26px solid transparent',\n borderRight: \"33px solid \".concat(color.core.primary),\n top: 0,\n right: 0\n },\n ':hover::before': {\n borderRight: \"33px solid \".concat(color.core.primary_dark)\n }\n },\n DayPickerKeyboardShortcuts_show__topLeft: {\n top: 0,\n left: 0,\n '::before': {\n borderBottom: '26px solid transparent',\n borderLeft: \"33px solid \".concat(color.core.primary),\n top: 0,\n left: 0\n },\n ':hover::before': {\n borderLeft: \"33px solid \".concat(color.core.primary_dark)\n }\n },\n DayPickerKeyboardShortcuts_showSpan: {\n color: color.core.white,\n position: 'absolute'\n },\n DayPickerKeyboardShortcuts_showSpan__bottomRight: {\n bottom: 0,\n right: 5\n },\n DayPickerKeyboardShortcuts_showSpan__topRight: {\n top: 1,\n right: 5\n },\n DayPickerKeyboardShortcuts_showSpan__topLeft: {\n top: 1,\n left: 5\n },\n DayPickerKeyboardShortcuts_panel: {\n overflow: 'auto',\n background: color.background,\n border: \"1px solid \".concat(color.core.border),\n borderRadius: 2,\n position: 'absolute',\n top: 0,\n bottom: 0,\n right: 0,\n left: 0,\n zIndex: zIndex + 2,\n padding: 22,\n margin: 33,\n textAlign: 'left' // TODO: investigate use of text-align throughout the library\n\n },\n DayPickerKeyboardShortcuts_title: {\n fontSize: 16,\n fontWeight: 'bold',\n margin: 0\n },\n DayPickerKeyboardShortcuts_list: {\n listStyle: 'none',\n padding: 0,\n fontSize: font.size\n },\n DayPickerKeyboardShortcuts_close: {\n position: 'absolute',\n right: 22,\n top: 22,\n zIndex: zIndex + 2,\n ':active': {\n outline: 'none'\n }\n },\n DayPickerKeyboardShortcuts_closeSvg: {\n height: 15,\n width: 15,\n fill: color.core.grayLighter,\n ':hover': {\n fill: color.core.grayLight\n },\n ':focus': {\n fill: color.core.grayLight\n }\n }\n };\n}, {\n pureComponent: typeof _react[\"default\"].PureComponent !== 'undefined'\n})(DayPickerKeyboardShortcuts);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getNumberOfCalendarMonthWeeks;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nfunction getBlankDaysBeforeFirstDay(firstDayOfMonth, firstDayOfWeek) {\n var weekDayDiff = firstDayOfMonth.day() - firstDayOfWeek;\n return (weekDayDiff + 7) % 7;\n}\n\nfunction getNumberOfCalendarMonthWeeks(month) {\n var firstDayOfWeek = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _moment[\"default\"].localeData().firstDayOfWeek();\n var firstDayOfMonth = month.clone().startOf('month');\n var numBlankDays = getBlankDaysBeforeFirstDay(firstDayOfMonth, firstDayOfWeek);\n return Math.ceil((numBlankDays + month.daysInMonth()) / 7);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getActiveElement;\n\nfunction getActiveElement() {\n return typeof document !== 'undefined' && document.activeElement;\n}","\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = exports.PureDayPicker = exports.defaultProps = void 0;\n\nvar _enzymeShallowEqual = _interopRequireDefault(require(\"enzyme-shallow-equal\"));\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\n\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _reactWithStyles = require(\"react-with-styles\");\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _throttle = _interopRequireDefault(require(\"lodash/throttle\"));\n\nvar _isTouchDevice = _interopRequireDefault(require(\"is-touch-device\"));\n\nvar _reactOutsideClickHandler = _interopRequireDefault(require(\"react-outside-click-handler\"));\n\nvar _defaultPhrases = require(\"../defaultPhrases\");\n\nvar _getPhrasePropTypes = _interopRequireDefault(require(\"../utils/getPhrasePropTypes\"));\n\nvar _noflip = _interopRequireDefault(require(\"../utils/noflip\"));\n\nvar _CalendarMonthGrid = _interopRequireDefault(require(\"./CalendarMonthGrid\"));\n\nvar _DayPickerNavigation = _interopRequireDefault(require(\"./DayPickerNavigation\"));\n\nvar _DayPickerKeyboardShortcuts = _interopRequireWildcard(require(\"./DayPickerKeyboardShortcuts\"));\n\nvar _getNumberOfCalendarMonthWeeks = _interopRequireDefault(require(\"../utils/getNumberOfCalendarMonthWeeks\"));\n\nvar _getCalendarMonthWidth = _interopRequireDefault(require(\"../utils/getCalendarMonthWidth\"));\n\nvar _calculateDimension = _interopRequireDefault(require(\"../utils/calculateDimension\"));\n\nvar _getActiveElement = _interopRequireDefault(require(\"../utils/getActiveElement\"));\n\nvar _isDayVisible = _interopRequireDefault(require(\"../utils/isDayVisible\"));\n\nvar _isSameMonth = _interopRequireDefault(require(\"../utils/isSameMonth\"));\n\nvar _ModifiersShape = _interopRequireDefault(require(\"../shapes/ModifiersShape\"));\n\nvar _NavPositionShape = _interopRequireDefault(require(\"../shapes/NavPositionShape\"));\n\nvar _ScrollableOrientationShape = _interopRequireDefault(require(\"../shapes/ScrollableOrientationShape\"));\n\nvar _DayOfWeekShape = _interopRequireDefault(require(\"../shapes/DayOfWeekShape\"));\n\nvar _CalendarInfoPositionShape = _interopRequireDefault(require(\"../shapes/CalendarInfoPositionShape\"));\n\nvar _constants = require(\"../constants\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nvar MONTH_PADDING = 23;\nvar PREV_TRANSITION = 'prev';\nvar NEXT_TRANSITION = 'next';\nvar MONTH_SELECTION_TRANSITION = 'month_selection';\nvar YEAR_SELECTION_TRANSITION = 'year_selection';\nvar PREV_NAV = 'prev_nav';\nvar NEXT_NAV = 'next_nav';\nvar propTypes = process.env.NODE_ENV !== \"production\" ? (0, _airbnbPropTypes.forbidExtraProps)(_objectSpread({}, _reactWithStyles.withStylesPropTypes, {\n // calendar presentation props\n enableOutsideDays: _propTypes[\"default\"].bool,\n numberOfMonths: _propTypes[\"default\"].number,\n orientation: _ScrollableOrientationShape[\"default\"],\n withPortal: _propTypes[\"default\"].bool,\n onOutsideClick: _propTypes[\"default\"].func,\n hidden: _propTypes[\"default\"].bool,\n initialVisibleMonth: _propTypes[\"default\"].func,\n firstDayOfWeek: _DayOfWeekShape[\"default\"],\n renderCalendarInfo: _propTypes[\"default\"].func,\n calendarInfoPosition: _CalendarInfoPositionShape[\"default\"],\n hideKeyboardShortcutsPanel: _propTypes[\"default\"].bool,\n daySize: _airbnbPropTypes.nonNegativeInteger,\n isRTL: _propTypes[\"default\"].bool,\n verticalHeight: _airbnbPropTypes.nonNegativeInteger,\n noBorder: _propTypes[\"default\"].bool,\n transitionDuration: _airbnbPropTypes.nonNegativeInteger,\n verticalBorderSpacing: _airbnbPropTypes.nonNegativeInteger,\n horizontalMonthPadding: _airbnbPropTypes.nonNegativeInteger,\n renderKeyboardShortcutsButton: _propTypes[\"default\"].func,\n renderKeyboardShortcutsPanel: _propTypes[\"default\"].func,\n // navigation props\n dayPickerNavigationInlineStyles: _propTypes[\"default\"].object,\n disablePrev: _propTypes[\"default\"].bool,\n disableNext: _propTypes[\"default\"].bool,\n navPosition: _NavPositionShape[\"default\"],\n navPrev: _propTypes[\"default\"].node,\n navNext: _propTypes[\"default\"].node,\n renderNavPrevButton: _propTypes[\"default\"].func,\n renderNavNextButton: _propTypes[\"default\"].func,\n noNavButtons: _propTypes[\"default\"].bool,\n noNavNextButton: _propTypes[\"default\"].bool,\n noNavPrevButton: _propTypes[\"default\"].bool,\n onPrevMonthClick: _propTypes[\"default\"].func,\n onNextMonthClick: _propTypes[\"default\"].func,\n onMonthChange: _propTypes[\"default\"].func,\n onYearChange: _propTypes[\"default\"].func,\n onGetNextScrollableMonths: _propTypes[\"default\"].func,\n // VERTICAL_SCROLLABLE daypickers only\n onGetPrevScrollableMonths: _propTypes[\"default\"].func,\n // VERTICAL_SCROLLABLE daypickers only\n // month props\n renderMonthText: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes[\"default\"].func, 'renderMonthText', 'renderMonthElement'),\n renderMonthElement: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes[\"default\"].func, 'renderMonthText', 'renderMonthElement'),\n renderWeekHeaderElement: _propTypes[\"default\"].func,\n // day props\n modifiers: _propTypes[\"default\"].objectOf(_propTypes[\"default\"].objectOf(_ModifiersShape[\"default\"])),\n renderCalendarDay: _propTypes[\"default\"].func,\n renderDayContents: _propTypes[\"default\"].func,\n onDayClick: _propTypes[\"default\"].func,\n onDayMouseEnter: _propTypes[\"default\"].func,\n onDayMouseLeave: _propTypes[\"default\"].func,\n // accessibility props\n isFocused: _propTypes[\"default\"].bool,\n getFirstFocusableDay: _propTypes[\"default\"].func,\n onBlur: _propTypes[\"default\"].func,\n showKeyboardShortcuts: _propTypes[\"default\"].bool,\n onTab: _propTypes[\"default\"].func,\n onShiftTab: _propTypes[\"default\"].func,\n // internationalization\n monthFormat: _propTypes[\"default\"].string,\n weekDayFormat: _propTypes[\"default\"].string,\n phrases: _propTypes[\"default\"].shape((0, _getPhrasePropTypes[\"default\"])(_defaultPhrases.DayPickerPhrases)),\n dayAriaLabelFormat: _propTypes[\"default\"].string\n})) : {};\nvar defaultProps = {\n // calendar presentation props\n enableOutsideDays: false,\n numberOfMonths: 2,\n orientation: _constants.HORIZONTAL_ORIENTATION,\n withPortal: false,\n onOutsideClick: function onOutsideClick() {},\n hidden: false,\n initialVisibleMonth: function initialVisibleMonth() {\n return (0, _moment[\"default\"])();\n },\n firstDayOfWeek: null,\n renderCalendarInfo: null,\n calendarInfoPosition: _constants.INFO_POSITION_BOTTOM,\n hideKeyboardShortcutsPanel: false,\n daySize: _constants.DAY_SIZE,\n isRTL: false,\n verticalHeight: null,\n noBorder: false,\n transitionDuration: undefined,\n verticalBorderSpacing: undefined,\n horizontalMonthPadding: 13,\n renderKeyboardShortcutsButton: undefined,\n renderKeyboardShortcutsPanel: undefined,\n // navigation props\n dayPickerNavigationInlineStyles: null,\n disablePrev: false,\n disableNext: false,\n navPosition: _constants.NAV_POSITION_TOP,\n navPrev: null,\n navNext: null,\n renderNavPrevButton: null,\n renderNavNextButton: null,\n noNavButtons: false,\n noNavNextButton: false,\n noNavPrevButton: false,\n onPrevMonthClick: function onPrevMonthClick() {},\n onNextMonthClick: function onNextMonthClick() {},\n onMonthChange: function onMonthChange() {},\n onYearChange: function onYearChange() {},\n onGetNextScrollableMonths: function onGetNextScrollableMonths() {},\n onGetPrevScrollableMonths: function onGetPrevScrollableMonths() {},\n // month props\n renderMonthText: null,\n renderMonthElement: null,\n renderWeekHeaderElement: null,\n // day props\n modifiers: {},\n renderCalendarDay: undefined,\n renderDayContents: null,\n onDayClick: function onDayClick() {},\n onDayMouseEnter: function onDayMouseEnter() {},\n onDayMouseLeave: function onDayMouseLeave() {},\n // accessibility props\n isFocused: false,\n getFirstFocusableDay: null,\n onBlur: function onBlur() {},\n showKeyboardShortcuts: false,\n onTab: function onTab() {},\n onShiftTab: function onShiftTab() {},\n // internationalization\n monthFormat: 'MMMM YYYY',\n weekDayFormat: 'dd',\n phrases: _defaultPhrases.DayPickerPhrases,\n dayAriaLabelFormat: undefined\n};\nexports.defaultProps = defaultProps;\n\nvar DayPicker =\n/*#__PURE__*/\nfunction (_ref) {\n (0, _inheritsLoose2[\"default\"])(DayPicker, _ref);\n var _proto = DayPicker.prototype;\n\n _proto[!_react[\"default\"].PureComponent && \"shouldComponentUpdate\"] = function (nextProps, nextState) {\n return !(0, _enzymeShallowEqual[\"default\"])(this.props, nextProps) || !(0, _enzymeShallowEqual[\"default\"])(this.state, nextState);\n };\n\n function DayPicker(props) {\n var _this;\n\n _this = _ref.call(this, props) || this;\n var currentMonth = props.hidden ? (0, _moment[\"default\"])() : props.initialVisibleMonth();\n var focusedDate = currentMonth.clone().startOf('month');\n\n if (props.getFirstFocusableDay) {\n focusedDate = props.getFirstFocusableDay(currentMonth);\n }\n\n var horizontalMonthPadding = props.horizontalMonthPadding;\n var translationValue = props.isRTL && _this.isHorizontal() ? -(0, _getCalendarMonthWidth[\"default\"])(props.daySize, horizontalMonthPadding) : 0;\n _this.hasSetInitialVisibleMonth = !props.hidden;\n _this.state = {\n currentMonthScrollTop: null,\n currentMonth: currentMonth,\n monthTransition: null,\n translationValue: translationValue,\n scrollableMonthMultiple: 1,\n calendarMonthWidth: (0, _getCalendarMonthWidth[\"default\"])(props.daySize, horizontalMonthPadding),\n focusedDate: !props.hidden || props.isFocused ? focusedDate : null,\n nextFocusedDate: null,\n showKeyboardShortcuts: props.showKeyboardShortcuts,\n onKeyboardShortcutsPanelClose: function onKeyboardShortcutsPanelClose() {},\n isTouchDevice: (0, _isTouchDevice[\"default\"])(),\n withMouseInteractions: true,\n calendarInfoWidth: 0,\n monthTitleHeight: null,\n hasSetHeight: false\n };\n\n _this.setCalendarMonthWeeks(currentMonth);\n\n _this.calendarMonthGridHeight = 0;\n _this.setCalendarInfoWidthTimeout = null;\n _this.setCalendarMonthGridHeightTimeout = null;\n _this.onKeyDown = _this.onKeyDown.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.throttledKeyDown = (0, _throttle[\"default\"])(_this.onFinalKeyDown, 200, {\n trailing: false\n });\n _this.onPrevMonthClick = _this.onPrevMonthClick.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onPrevMonthTransition = _this.onPrevMonthTransition.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onNextMonthClick = _this.onNextMonthClick.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onNextMonthTransition = _this.onNextMonthTransition.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onMonthChange = _this.onMonthChange.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onYearChange = _this.onYearChange.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.getNextScrollableMonths = _this.getNextScrollableMonths.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.getPrevScrollableMonths = _this.getPrevScrollableMonths.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.updateStateAfterMonthTransition = _this.updateStateAfterMonthTransition.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.openKeyboardShortcutsPanel = _this.openKeyboardShortcutsPanel.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.closeKeyboardShortcutsPanel = _this.closeKeyboardShortcutsPanel.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.setCalendarInfoRef = _this.setCalendarInfoRef.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.setContainerRef = _this.setContainerRef.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.setTransitionContainerRef = _this.setTransitionContainerRef.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.setMonthTitleHeight = _this.setMonthTitleHeight.bind((0, _assertThisInitialized2[\"default\"])(_this));\n return _this;\n }\n\n _proto.componentDidMount = function componentDidMount() {\n var orientation = this.props.orientation;\n var currentMonth = this.state.currentMonth;\n var calendarInfoWidth = this.calendarInfo ? (0, _calculateDimension[\"default\"])(this.calendarInfo, 'width', true, true) : 0;\n var currentMonthScrollTop = this.transitionContainer && orientation === _constants.VERTICAL_SCROLLABLE ? this.transitionContainer.scrollHeight - this.transitionContainer.scrollTop : null;\n this.setState({\n isTouchDevice: (0, _isTouchDevice[\"default\"])(),\n calendarInfoWidth: calendarInfoWidth,\n currentMonthScrollTop: currentMonthScrollTop\n });\n this.setCalendarMonthWeeks(currentMonth);\n };\n\n _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps, nextState) {\n var hidden = nextProps.hidden,\n isFocused = nextProps.isFocused,\n showKeyboardShortcuts = nextProps.showKeyboardShortcuts,\n onBlur = nextProps.onBlur,\n orientation = nextProps.orientation,\n renderMonthText = nextProps.renderMonthText,\n horizontalMonthPadding = nextProps.horizontalMonthPadding;\n var currentMonth = this.state.currentMonth;\n var nextCurrentMonth = nextState.currentMonth;\n\n if (!hidden) {\n if (!this.hasSetInitialVisibleMonth) {\n this.hasSetInitialVisibleMonth = true;\n this.setState({\n currentMonth: nextProps.initialVisibleMonth()\n });\n }\n }\n\n var _this$props = this.props,\n daySize = _this$props.daySize,\n prevIsFocused = _this$props.isFocused,\n prevRenderMonthText = _this$props.renderMonthText;\n\n if (nextProps.daySize !== daySize) {\n this.setState({\n calendarMonthWidth: (0, _getCalendarMonthWidth[\"default\"])(nextProps.daySize, horizontalMonthPadding)\n });\n }\n\n if (isFocused !== prevIsFocused) {\n if (isFocused) {\n var focusedDate = this.getFocusedDay(currentMonth);\n var onKeyboardShortcutsPanelClose = this.state.onKeyboardShortcutsPanelClose;\n\n if (nextProps.showKeyboardShortcuts) {\n // the ? shortcut came from the input and we should return input there once it is close\n onKeyboardShortcutsPanelClose = onBlur;\n }\n\n this.setState({\n showKeyboardShortcuts: showKeyboardShortcuts,\n onKeyboardShortcutsPanelClose: onKeyboardShortcutsPanelClose,\n focusedDate: focusedDate,\n withMouseInteractions: false\n });\n } else {\n this.setState({\n focusedDate: null\n });\n }\n }\n\n if (renderMonthText !== prevRenderMonthText) {\n this.setState({\n monthTitleHeight: null\n });\n } // Capture the scroll position so when previous months are rendered above the current month\n // we can adjust scroll after the component has updated and the previous current month\n // stays in view.\n\n\n if (orientation === _constants.VERTICAL_SCROLLABLE && this.transitionContainer && !(0, _isSameMonth[\"default\"])(currentMonth, nextCurrentMonth)) {\n this.setState({\n currentMonthScrollTop: this.transitionContainer.scrollHeight - this.transitionContainer.scrollTop\n });\n }\n };\n\n _proto.componentWillUpdate = function componentWillUpdate() {\n var _this2 = this;\n\n var transitionDuration = this.props.transitionDuration; // Calculating the dimensions trigger a DOM repaint which\n // breaks the CSS transition.\n // The setTimeout will wait until the transition ends.\n\n if (this.calendarInfo) {\n this.setCalendarInfoWidthTimeout = setTimeout(function () {\n var calendarInfoWidth = _this2.state.calendarInfoWidth;\n var calendarInfoPanelWidth = (0, _calculateDimension[\"default\"])(_this2.calendarInfo, 'width', true, true);\n\n if (calendarInfoWidth !== calendarInfoPanelWidth) {\n _this2.setState({\n calendarInfoWidth: calendarInfoPanelWidth\n });\n }\n }, transitionDuration);\n }\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {\n var _this$props2 = this.props,\n orientation = _this$props2.orientation,\n daySize = _this$props2.daySize,\n isFocused = _this$props2.isFocused,\n numberOfMonths = _this$props2.numberOfMonths;\n var _this$state = this.state,\n currentMonth = _this$state.currentMonth,\n currentMonthScrollTop = _this$state.currentMonthScrollTop,\n focusedDate = _this$state.focusedDate,\n monthTitleHeight = _this$state.monthTitleHeight;\n\n if (this.isHorizontal() && (orientation !== prevProps.orientation || daySize !== prevProps.daySize)) {\n var visibleCalendarWeeks = this.calendarMonthWeeks.slice(1, numberOfMonths + 1);\n var calendarMonthWeeksHeight = Math.max.apply(Math, [0].concat((0, _toConsumableArray2[\"default\"])(visibleCalendarWeeks))) * (daySize - 1);\n var newMonthHeight = monthTitleHeight + calendarMonthWeeksHeight + 1;\n this.adjustDayPickerHeight(newMonthHeight);\n }\n\n if (!prevProps.isFocused && isFocused && !focusedDate) {\n this.container.focus();\n } // If orientation is VERTICAL_SCROLLABLE and currentMonth has changed adjust scrollTop so the\n // new months rendered above the current month don't push the current month out of view.\n\n\n if (orientation === _constants.VERTICAL_SCROLLABLE && !(0, _isSameMonth[\"default\"])(prevState.currentMonth, currentMonth) && currentMonthScrollTop && this.transitionContainer) {\n this.transitionContainer.scrollTop = this.transitionContainer.scrollHeight - currentMonthScrollTop;\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n clearTimeout(this.setCalendarInfoWidthTimeout);\n clearTimeout(this.setCalendarMonthGridHeightTimeout);\n };\n\n _proto.onKeyDown = function onKeyDown(e) {\n e.stopPropagation();\n\n if (!_constants.MODIFIER_KEY_NAMES.has(e.key)) {\n this.throttledKeyDown(e);\n }\n };\n\n _proto.onFinalKeyDown = function onFinalKeyDown(e) {\n this.setState({\n withMouseInteractions: false\n });\n var _this$props3 = this.props,\n onBlur = _this$props3.onBlur,\n onTab = _this$props3.onTab,\n onShiftTab = _this$props3.onShiftTab,\n isRTL = _this$props3.isRTL;\n var _this$state2 = this.state,\n focusedDate = _this$state2.focusedDate,\n showKeyboardShortcuts = _this$state2.showKeyboardShortcuts;\n if (!focusedDate) return;\n var newFocusedDate = focusedDate.clone();\n var didTransitionMonth = false; // focus might be anywhere when the keyboard shortcuts panel is opened so we want to\n // return it to wherever it was before when the panel was opened\n\n var activeElement = (0, _getActiveElement[\"default\"])();\n\n var onKeyboardShortcutsPanelClose = function onKeyboardShortcutsPanelClose() {\n if (activeElement) activeElement.focus();\n };\n\n switch (e.key) {\n case 'ArrowUp':\n e.preventDefault();\n newFocusedDate.subtract(1, 'week');\n didTransitionMonth = this.maybeTransitionPrevMonth(newFocusedDate);\n break;\n\n case 'ArrowLeft':\n e.preventDefault();\n\n if (isRTL) {\n newFocusedDate.add(1, 'day');\n } else {\n newFocusedDate.subtract(1, 'day');\n }\n\n didTransitionMonth = this.maybeTransitionPrevMonth(newFocusedDate);\n break;\n\n case 'Home':\n e.preventDefault();\n newFocusedDate.startOf('week');\n didTransitionMonth = this.maybeTransitionPrevMonth(newFocusedDate);\n break;\n\n case 'PageUp':\n e.preventDefault();\n newFocusedDate.subtract(1, 'month');\n didTransitionMonth = this.maybeTransitionPrevMonth(newFocusedDate);\n break;\n\n case 'ArrowDown':\n e.preventDefault();\n newFocusedDate.add(1, 'week');\n didTransitionMonth = this.maybeTransitionNextMonth(newFocusedDate);\n break;\n\n case 'ArrowRight':\n e.preventDefault();\n\n if (isRTL) {\n newFocusedDate.subtract(1, 'day');\n } else {\n newFocusedDate.add(1, 'day');\n }\n\n didTransitionMonth = this.maybeTransitionNextMonth(newFocusedDate);\n break;\n\n case 'End':\n e.preventDefault();\n newFocusedDate.endOf('week');\n didTransitionMonth = this.maybeTransitionNextMonth(newFocusedDate);\n break;\n\n case 'PageDown':\n e.preventDefault();\n newFocusedDate.add(1, 'month');\n didTransitionMonth = this.maybeTransitionNextMonth(newFocusedDate);\n break;\n\n case '?':\n this.openKeyboardShortcutsPanel(onKeyboardShortcutsPanelClose);\n break;\n\n case 'Escape':\n if (showKeyboardShortcuts) {\n this.closeKeyboardShortcutsPanel();\n } else {\n onBlur(e);\n }\n\n break;\n\n case 'Tab':\n if (e.shiftKey) {\n onShiftTab();\n } else {\n onTab(e);\n }\n\n break;\n\n default:\n break;\n } // If there was a month transition, do not update the focused date until the transition has\n // completed. Otherwise, attempting to focus on a DOM node may interrupt the CSS animation. If\n // didTransitionMonth is true, the focusedDate gets updated in #updateStateAfterMonthTransition\n\n\n if (!didTransitionMonth) {\n this.setState({\n focusedDate: newFocusedDate\n });\n }\n };\n\n _proto.onPrevMonthClick = function onPrevMonthClick(e) {\n if (e) e.preventDefault();\n this.onPrevMonthTransition();\n };\n\n _proto.onPrevMonthTransition = function onPrevMonthTransition(nextFocusedDate) {\n var _this$props4 = this.props,\n daySize = _this$props4.daySize,\n isRTL = _this$props4.isRTL,\n numberOfMonths = _this$props4.numberOfMonths;\n var _this$state3 = this.state,\n calendarMonthWidth = _this$state3.calendarMonthWidth,\n monthTitleHeight = _this$state3.monthTitleHeight;\n var translationValue;\n\n if (this.isVertical()) {\n var calendarMonthWeeksHeight = this.calendarMonthWeeks[0] * (daySize - 1);\n translationValue = monthTitleHeight + calendarMonthWeeksHeight + 1;\n } else if (this.isHorizontal()) {\n translationValue = calendarMonthWidth;\n\n if (isRTL) {\n translationValue = -2 * calendarMonthWidth;\n }\n\n var visibleCalendarWeeks = this.calendarMonthWeeks.slice(0, numberOfMonths);\n\n var _calendarMonthWeeksHeight = Math.max.apply(Math, [0].concat((0, _toConsumableArray2[\"default\"])(visibleCalendarWeeks))) * (daySize - 1);\n\n var newMonthHeight = monthTitleHeight + _calendarMonthWeeksHeight + 1;\n this.adjustDayPickerHeight(newMonthHeight);\n }\n\n this.setState({\n monthTransition: PREV_TRANSITION,\n translationValue: translationValue,\n focusedDate: null,\n nextFocusedDate: nextFocusedDate\n });\n };\n\n _proto.onMonthChange = function onMonthChange(currentMonth) {\n this.setCalendarMonthWeeks(currentMonth);\n this.calculateAndSetDayPickerHeight(); // Translation value is a hack to force an invisible transition that\n // properly rerenders the CalendarMonthGrid\n\n this.setState({\n monthTransition: MONTH_SELECTION_TRANSITION,\n translationValue: 0.00001,\n focusedDate: null,\n nextFocusedDate: currentMonth,\n currentMonth: currentMonth\n });\n };\n\n _proto.onYearChange = function onYearChange(currentMonth) {\n this.setCalendarMonthWeeks(currentMonth);\n this.calculateAndSetDayPickerHeight(); // Translation value is a hack to force an invisible transition that\n // properly rerenders the CalendarMonthGrid\n\n this.setState({\n monthTransition: YEAR_SELECTION_TRANSITION,\n translationValue: 0.0001,\n focusedDate: null,\n nextFocusedDate: currentMonth,\n currentMonth: currentMonth\n });\n };\n\n _proto.onNextMonthClick = function onNextMonthClick(e) {\n if (e) e.preventDefault();\n this.onNextMonthTransition();\n };\n\n _proto.onNextMonthTransition = function onNextMonthTransition(nextFocusedDate) {\n var _this$props5 = this.props,\n isRTL = _this$props5.isRTL,\n numberOfMonths = _this$props5.numberOfMonths,\n daySize = _this$props5.daySize;\n var _this$state4 = this.state,\n calendarMonthWidth = _this$state4.calendarMonthWidth,\n monthTitleHeight = _this$state4.monthTitleHeight;\n var translationValue;\n\n if (this.isVertical()) {\n var firstVisibleMonthWeeks = this.calendarMonthWeeks[1];\n var calendarMonthWeeksHeight = firstVisibleMonthWeeks * (daySize - 1);\n translationValue = -(monthTitleHeight + calendarMonthWeeksHeight + 1);\n }\n\n if (this.isHorizontal()) {\n translationValue = -calendarMonthWidth;\n\n if (isRTL) {\n translationValue = 0;\n }\n\n var visibleCalendarWeeks = this.calendarMonthWeeks.slice(2, numberOfMonths + 2);\n\n var _calendarMonthWeeksHeight2 = Math.max.apply(Math, [0].concat((0, _toConsumableArray2[\"default\"])(visibleCalendarWeeks))) * (daySize - 1);\n\n var newMonthHeight = monthTitleHeight + _calendarMonthWeeksHeight2 + 1;\n this.adjustDayPickerHeight(newMonthHeight);\n }\n\n this.setState({\n monthTransition: NEXT_TRANSITION,\n translationValue: translationValue,\n focusedDate: null,\n nextFocusedDate: nextFocusedDate\n });\n };\n\n _proto.getFirstDayOfWeek = function getFirstDayOfWeek() {\n var firstDayOfWeek = this.props.firstDayOfWeek;\n\n if (firstDayOfWeek == null) {\n return _moment[\"default\"].localeData().firstDayOfWeek();\n }\n\n return firstDayOfWeek;\n };\n\n _proto.getWeekHeaders = function getWeekHeaders() {\n var weekDayFormat = this.props.weekDayFormat;\n var currentMonth = this.state.currentMonth;\n var firstDayOfWeek = this.getFirstDayOfWeek();\n var weekHeaders = [];\n\n for (var i = 0; i < 7; i += 1) {\n weekHeaders.push(currentMonth.clone().day((i + firstDayOfWeek) % 7).format(weekDayFormat));\n }\n\n return weekHeaders;\n };\n\n _proto.getFirstVisibleIndex = function getFirstVisibleIndex() {\n var orientation = this.props.orientation;\n var monthTransition = this.state.monthTransition;\n if (orientation === _constants.VERTICAL_SCROLLABLE) return 0;\n var firstVisibleMonthIndex = 1;\n\n if (monthTransition === PREV_TRANSITION) {\n firstVisibleMonthIndex -= 1;\n } else if (monthTransition === NEXT_TRANSITION) {\n firstVisibleMonthIndex += 1;\n }\n\n return firstVisibleMonthIndex;\n };\n\n _proto.getFocusedDay = function getFocusedDay(newMonth) {\n var _this$props6 = this.props,\n getFirstFocusableDay = _this$props6.getFirstFocusableDay,\n numberOfMonths = _this$props6.numberOfMonths;\n var focusedDate;\n\n if (getFirstFocusableDay) {\n focusedDate = getFirstFocusableDay(newMonth);\n }\n\n if (newMonth && (!focusedDate || !(0, _isDayVisible[\"default\"])(focusedDate, newMonth, numberOfMonths))) {\n focusedDate = newMonth.clone().startOf('month');\n }\n\n return focusedDate;\n };\n\n _proto.setMonthTitleHeight = function setMonthTitleHeight(monthTitleHeight) {\n var _this3 = this;\n\n this.setState({\n monthTitleHeight: monthTitleHeight\n }, function () {\n _this3.calculateAndSetDayPickerHeight();\n });\n };\n\n _proto.setCalendarMonthWeeks = function setCalendarMonthWeeks(currentMonth) {\n var numberOfMonths = this.props.numberOfMonths;\n this.calendarMonthWeeks = [];\n var month = currentMonth.clone().subtract(1, 'months');\n var firstDayOfWeek = this.getFirstDayOfWeek();\n\n for (var i = 0; i < numberOfMonths + 2; i += 1) {\n var numberOfWeeks = (0, _getNumberOfCalendarMonthWeeks[\"default\"])(month, firstDayOfWeek);\n this.calendarMonthWeeks.push(numberOfWeeks);\n month = month.add(1, 'months');\n }\n };\n\n _proto.setContainerRef = function setContainerRef(ref) {\n this.container = ref;\n };\n\n _proto.setCalendarInfoRef = function setCalendarInfoRef(ref) {\n this.calendarInfo = ref;\n };\n\n _proto.setTransitionContainerRef = function setTransitionContainerRef(ref) {\n this.transitionContainer = ref;\n };\n\n _proto.getNextScrollableMonths = function getNextScrollableMonths(e) {\n var onGetNextScrollableMonths = this.props.onGetNextScrollableMonths;\n if (e) e.preventDefault();\n if (onGetNextScrollableMonths) onGetNextScrollableMonths(e);\n this.setState(function (_ref2) {\n var scrollableMonthMultiple = _ref2.scrollableMonthMultiple;\n return {\n scrollableMonthMultiple: scrollableMonthMultiple + 1\n };\n });\n };\n\n _proto.getPrevScrollableMonths = function getPrevScrollableMonths(e) {\n var _this$props7 = this.props,\n numberOfMonths = _this$props7.numberOfMonths,\n onGetPrevScrollableMonths = _this$props7.onGetPrevScrollableMonths;\n if (e) e.preventDefault();\n if (onGetPrevScrollableMonths) onGetPrevScrollableMonths(e);\n this.setState(function (_ref3) {\n var currentMonth = _ref3.currentMonth,\n scrollableMonthMultiple = _ref3.scrollableMonthMultiple;\n return {\n currentMonth: currentMonth.clone().subtract(numberOfMonths, 'month'),\n scrollableMonthMultiple: scrollableMonthMultiple + 1\n };\n });\n };\n\n _proto.maybeTransitionNextMonth = function maybeTransitionNextMonth(newFocusedDate) {\n var numberOfMonths = this.props.numberOfMonths;\n var _this$state5 = this.state,\n currentMonth = _this$state5.currentMonth,\n focusedDate = _this$state5.focusedDate;\n var newFocusedDateMonth = newFocusedDate.month();\n var focusedDateMonth = focusedDate.month();\n var isNewFocusedDateVisible = (0, _isDayVisible[\"default\"])(newFocusedDate, currentMonth, numberOfMonths);\n\n if (newFocusedDateMonth !== focusedDateMonth && !isNewFocusedDateVisible) {\n this.onNextMonthTransition(newFocusedDate);\n return true;\n }\n\n return false;\n };\n\n _proto.maybeTransitionPrevMonth = function maybeTransitionPrevMonth(newFocusedDate) {\n var numberOfMonths = this.props.numberOfMonths;\n var _this$state6 = this.state,\n currentMonth = _this$state6.currentMonth,\n focusedDate = _this$state6.focusedDate;\n var newFocusedDateMonth = newFocusedDate.month();\n var focusedDateMonth = focusedDate.month();\n var isNewFocusedDateVisible = (0, _isDayVisible[\"default\"])(newFocusedDate, currentMonth, numberOfMonths);\n\n if (newFocusedDateMonth !== focusedDateMonth && !isNewFocusedDateVisible) {\n this.onPrevMonthTransition(newFocusedDate);\n return true;\n }\n\n return false;\n };\n\n _proto.isHorizontal = function isHorizontal() {\n var orientation = this.props.orientation;\n return orientation === _constants.HORIZONTAL_ORIENTATION;\n };\n\n _proto.isVertical = function isVertical() {\n var orientation = this.props.orientation;\n return orientation === _constants.VERTICAL_ORIENTATION || orientation === _constants.VERTICAL_SCROLLABLE;\n };\n\n _proto.updateStateAfterMonthTransition = function updateStateAfterMonthTransition() {\n var _this4 = this;\n\n var _this$props8 = this.props,\n onPrevMonthClick = _this$props8.onPrevMonthClick,\n onNextMonthClick = _this$props8.onNextMonthClick,\n numberOfMonths = _this$props8.numberOfMonths,\n onMonthChange = _this$props8.onMonthChange,\n onYearChange = _this$props8.onYearChange,\n isRTL = _this$props8.isRTL;\n var _this$state7 = this.state,\n currentMonth = _this$state7.currentMonth,\n monthTransition = _this$state7.monthTransition,\n focusedDate = _this$state7.focusedDate,\n nextFocusedDate = _this$state7.nextFocusedDate,\n withMouseInteractions = _this$state7.withMouseInteractions,\n calendarMonthWidth = _this$state7.calendarMonthWidth;\n if (!monthTransition) return;\n var newMonth = currentMonth.clone();\n var firstDayOfWeek = this.getFirstDayOfWeek();\n\n if (monthTransition === PREV_TRANSITION) {\n newMonth.subtract(1, 'month');\n if (onPrevMonthClick) onPrevMonthClick(newMonth);\n var newInvisibleMonth = newMonth.clone().subtract(1, 'month');\n var numberOfWeeks = (0, _getNumberOfCalendarMonthWeeks[\"default\"])(newInvisibleMonth, firstDayOfWeek);\n this.calendarMonthWeeks = [numberOfWeeks].concat((0, _toConsumableArray2[\"default\"])(this.calendarMonthWeeks.slice(0, -1)));\n } else if (monthTransition === NEXT_TRANSITION) {\n newMonth.add(1, 'month');\n if (onNextMonthClick) onNextMonthClick(newMonth);\n\n var _newInvisibleMonth = newMonth.clone().add(numberOfMonths, 'month');\n\n var _numberOfWeeks = (0, _getNumberOfCalendarMonthWeeks[\"default\"])(_newInvisibleMonth, firstDayOfWeek);\n\n this.calendarMonthWeeks = [].concat((0, _toConsumableArray2[\"default\"])(this.calendarMonthWeeks.slice(1)), [_numberOfWeeks]);\n } else if (monthTransition === MONTH_SELECTION_TRANSITION) {\n if (onMonthChange) onMonthChange(newMonth);\n } else if (monthTransition === YEAR_SELECTION_TRANSITION) {\n if (onYearChange) onYearChange(newMonth);\n }\n\n var newFocusedDate = null;\n\n if (nextFocusedDate) {\n newFocusedDate = nextFocusedDate;\n } else if (!focusedDate && !withMouseInteractions) {\n newFocusedDate = this.getFocusedDay(newMonth);\n }\n\n this.setState({\n currentMonth: newMonth,\n monthTransition: null,\n translationValue: isRTL && this.isHorizontal() ? -calendarMonthWidth : 0,\n nextFocusedDate: null,\n focusedDate: newFocusedDate\n }, function () {\n // we don't want to focus on the relevant calendar day after a month transition\n // if the user is navigating around using a mouse\n if (withMouseInteractions) {\n var activeElement = (0, _getActiveElement[\"default\"])();\n\n if (activeElement && activeElement !== document.body && _this4.container.contains(activeElement) && activeElement.blur) {\n activeElement.blur();\n }\n }\n });\n };\n\n _proto.adjustDayPickerHeight = function adjustDayPickerHeight(newMonthHeight) {\n var _this5 = this;\n\n var monthHeight = newMonthHeight + MONTH_PADDING;\n\n if (monthHeight !== this.calendarMonthGridHeight) {\n this.transitionContainer.style.height = \"\".concat(monthHeight, \"px\");\n\n if (!this.calendarMonthGridHeight) {\n this.setCalendarMonthGridHeightTimeout = setTimeout(function () {\n _this5.setState({\n hasSetHeight: true\n });\n }, 0);\n }\n\n this.calendarMonthGridHeight = monthHeight;\n }\n };\n\n _proto.calculateAndSetDayPickerHeight = function calculateAndSetDayPickerHeight() {\n var _this$props9 = this.props,\n daySize = _this$props9.daySize,\n numberOfMonths = _this$props9.numberOfMonths;\n var monthTitleHeight = this.state.monthTitleHeight;\n var visibleCalendarWeeks = this.calendarMonthWeeks.slice(1, numberOfMonths + 1);\n var calendarMonthWeeksHeight = Math.max.apply(Math, [0].concat((0, _toConsumableArray2[\"default\"])(visibleCalendarWeeks))) * (daySize - 1);\n var newMonthHeight = monthTitleHeight + calendarMonthWeeksHeight + 1;\n\n if (this.isHorizontal()) {\n this.adjustDayPickerHeight(newMonthHeight);\n }\n };\n\n _proto.openKeyboardShortcutsPanel = function openKeyboardShortcutsPanel(onCloseCallBack) {\n this.setState({\n showKeyboardShortcuts: true,\n onKeyboardShortcutsPanelClose: onCloseCallBack\n });\n };\n\n _proto.closeKeyboardShortcutsPanel = function closeKeyboardShortcutsPanel() {\n var onKeyboardShortcutsPanelClose = this.state.onKeyboardShortcutsPanelClose;\n\n if (onKeyboardShortcutsPanelClose) {\n onKeyboardShortcutsPanelClose();\n }\n\n this.setState({\n onKeyboardShortcutsPanelClose: null,\n showKeyboardShortcuts: false\n });\n };\n\n _proto.renderNavigation = function renderNavigation(navDirection) {\n var _this$props10 = this.props,\n dayPickerNavigationInlineStyles = _this$props10.dayPickerNavigationInlineStyles,\n disablePrev = _this$props10.disablePrev,\n disableNext = _this$props10.disableNext,\n navPosition = _this$props10.navPosition,\n navPrev = _this$props10.navPrev,\n navNext = _this$props10.navNext,\n noNavButtons = _this$props10.noNavButtons,\n noNavNextButton = _this$props10.noNavNextButton,\n noNavPrevButton = _this$props10.noNavPrevButton,\n orientation = _this$props10.orientation,\n phrases = _this$props10.phrases,\n renderNavPrevButton = _this$props10.renderNavPrevButton,\n renderNavNextButton = _this$props10.renderNavNextButton,\n isRTL = _this$props10.isRTL;\n\n if (noNavButtons) {\n return null;\n }\n\n var onPrevMonthClick = orientation === _constants.VERTICAL_SCROLLABLE ? this.getPrevScrollableMonths : this.onPrevMonthClick;\n var onNextMonthClick = orientation === _constants.VERTICAL_SCROLLABLE ? this.getNextScrollableMonths : this.onNextMonthClick;\n return _react[\"default\"].createElement(_DayPickerNavigation[\"default\"], {\n disablePrev: disablePrev,\n disableNext: disableNext,\n inlineStyles: dayPickerNavigationInlineStyles,\n onPrevMonthClick: onPrevMonthClick,\n onNextMonthClick: onNextMonthClick,\n navPosition: navPosition,\n navPrev: navPrev,\n navNext: navNext,\n renderNavPrevButton: renderNavPrevButton,\n renderNavNextButton: renderNavNextButton,\n orientation: orientation,\n phrases: phrases,\n isRTL: isRTL,\n showNavNextButton: !(noNavNextButton || orientation === _constants.VERTICAL_SCROLLABLE && navDirection === PREV_NAV),\n showNavPrevButton: !(noNavPrevButton || orientation === _constants.VERTICAL_SCROLLABLE && navDirection === NEXT_NAV)\n });\n };\n\n _proto.renderWeekHeader = function renderWeekHeader(index) {\n var _this$props11 = this.props,\n daySize = _this$props11.daySize,\n horizontalMonthPadding = _this$props11.horizontalMonthPadding,\n orientation = _this$props11.orientation,\n renderWeekHeaderElement = _this$props11.renderWeekHeaderElement,\n styles = _this$props11.styles;\n var calendarMonthWidth = this.state.calendarMonthWidth;\n var verticalScrollable = orientation === _constants.VERTICAL_SCROLLABLE;\n var horizontalStyle = {\n left: index * calendarMonthWidth\n };\n var verticalStyle = {\n marginLeft: -calendarMonthWidth / 2\n };\n var weekHeaderStyle = {}; // no styles applied to the vertical-scrollable orientation\n\n if (this.isHorizontal()) {\n weekHeaderStyle = horizontalStyle;\n } else if (this.isVertical() && !verticalScrollable) {\n weekHeaderStyle = verticalStyle;\n }\n\n var weekHeaders = this.getWeekHeaders();\n var header = weekHeaders.map(function (day) {\n return _react[\"default\"].createElement(\"li\", (0, _extends2[\"default\"])({\n key: day\n }, (0, _reactWithStyles.css)(styles.DayPicker_weekHeader_li, {\n width: daySize\n })), renderWeekHeaderElement ? renderWeekHeaderElement(day) : _react[\"default\"].createElement(\"small\", null, day));\n });\n return _react[\"default\"].createElement(\"div\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.DayPicker_weekHeader, this.isVertical() && styles.DayPicker_weekHeader__vertical, verticalScrollable && styles.DayPicker_weekHeader__verticalScrollable, weekHeaderStyle, {\n padding: \"0 \".concat(horizontalMonthPadding, \"px\")\n }), {\n key: \"week-\".concat(index)\n }), _react[\"default\"].createElement(\"ul\", (0, _reactWithStyles.css)(styles.DayPicker_weekHeader_ul), header));\n };\n\n _proto.render = function render() {\n var _this6 = this;\n\n var _this$state8 = this.state,\n calendarMonthWidth = _this$state8.calendarMonthWidth,\n currentMonth = _this$state8.currentMonth,\n monthTransition = _this$state8.monthTransition,\n translationValue = _this$state8.translationValue,\n scrollableMonthMultiple = _this$state8.scrollableMonthMultiple,\n focusedDate = _this$state8.focusedDate,\n showKeyboardShortcuts = _this$state8.showKeyboardShortcuts,\n isTouch = _this$state8.isTouchDevice,\n hasSetHeight = _this$state8.hasSetHeight,\n calendarInfoWidth = _this$state8.calendarInfoWidth,\n monthTitleHeight = _this$state8.monthTitleHeight;\n var _this$props12 = this.props,\n enableOutsideDays = _this$props12.enableOutsideDays,\n numberOfMonths = _this$props12.numberOfMonths,\n orientation = _this$props12.orientation,\n modifiers = _this$props12.modifiers,\n withPortal = _this$props12.withPortal,\n onDayClick = _this$props12.onDayClick,\n onDayMouseEnter = _this$props12.onDayMouseEnter,\n onDayMouseLeave = _this$props12.onDayMouseLeave,\n firstDayOfWeek = _this$props12.firstDayOfWeek,\n renderMonthText = _this$props12.renderMonthText,\n renderCalendarDay = _this$props12.renderCalendarDay,\n renderDayContents = _this$props12.renderDayContents,\n renderCalendarInfo = _this$props12.renderCalendarInfo,\n renderMonthElement = _this$props12.renderMonthElement,\n renderKeyboardShortcutsButton = _this$props12.renderKeyboardShortcutsButton,\n renderKeyboardShortcutsPanel = _this$props12.renderKeyboardShortcutsPanel,\n calendarInfoPosition = _this$props12.calendarInfoPosition,\n hideKeyboardShortcutsPanel = _this$props12.hideKeyboardShortcutsPanel,\n onOutsideClick = _this$props12.onOutsideClick,\n monthFormat = _this$props12.monthFormat,\n daySize = _this$props12.daySize,\n isFocused = _this$props12.isFocused,\n isRTL = _this$props12.isRTL,\n styles = _this$props12.styles,\n theme = _this$props12.theme,\n phrases = _this$props12.phrases,\n verticalHeight = _this$props12.verticalHeight,\n dayAriaLabelFormat = _this$props12.dayAriaLabelFormat,\n noBorder = _this$props12.noBorder,\n transitionDuration = _this$props12.transitionDuration,\n verticalBorderSpacing = _this$props12.verticalBorderSpacing,\n horizontalMonthPadding = _this$props12.horizontalMonthPadding,\n navPosition = _this$props12.navPosition;\n var dayPickerHorizontalPadding = theme.reactDates.spacing.dayPickerHorizontalPadding;\n var isHorizontal = this.isHorizontal();\n var numOfWeekHeaders = this.isVertical() ? 1 : numberOfMonths;\n var weekHeaders = [];\n\n for (var i = 0; i < numOfWeekHeaders; i += 1) {\n weekHeaders.push(this.renderWeekHeader(i));\n }\n\n var verticalScrollable = orientation === _constants.VERTICAL_SCROLLABLE;\n var height;\n\n if (isHorizontal) {\n height = this.calendarMonthGridHeight;\n } else if (this.isVertical() && !verticalScrollable && !withPortal) {\n // If the user doesn't set a desired height,\n // we default back to this kind of made-up value that generally looks good\n height = verticalHeight || 1.75 * calendarMonthWidth;\n }\n\n var isCalendarMonthGridAnimating = monthTransition !== null;\n var shouldFocusDate = !isCalendarMonthGridAnimating && isFocused;\n var keyboardShortcutButtonLocation = _DayPickerKeyboardShortcuts.BOTTOM_RIGHT;\n\n if (this.isVertical()) {\n keyboardShortcutButtonLocation = withPortal ? _DayPickerKeyboardShortcuts.TOP_LEFT : _DayPickerKeyboardShortcuts.TOP_RIGHT;\n }\n\n var shouldAnimateHeight = isHorizontal && hasSetHeight;\n var calendarInfoPositionTop = calendarInfoPosition === _constants.INFO_POSITION_TOP;\n var calendarInfoPositionBottom = calendarInfoPosition === _constants.INFO_POSITION_BOTTOM;\n var calendarInfoPositionBefore = calendarInfoPosition === _constants.INFO_POSITION_BEFORE;\n var calendarInfoPositionAfter = calendarInfoPosition === _constants.INFO_POSITION_AFTER;\n var calendarInfoIsInline = calendarInfoPositionBefore || calendarInfoPositionAfter;\n\n var calendarInfo = renderCalendarInfo && _react[\"default\"].createElement(\"div\", (0, _extends2[\"default\"])({\n ref: this.setCalendarInfoRef\n }, (0, _reactWithStyles.css)(calendarInfoIsInline && styles.DayPicker_calendarInfo__horizontal)), renderCalendarInfo());\n\n var calendarInfoPanelWidth = renderCalendarInfo && calendarInfoIsInline ? calendarInfoWidth : 0;\n var firstVisibleMonthIndex = this.getFirstVisibleIndex();\n var wrapperHorizontalWidth = calendarMonthWidth * numberOfMonths + 2 * dayPickerHorizontalPadding; // Adding `1px` because of whitespace between 2 inline-block\n\n var fullHorizontalWidth = wrapperHorizontalWidth + calendarInfoPanelWidth + 1;\n var transitionContainerStyle = {\n width: isHorizontal && wrapperHorizontalWidth,\n height: height\n };\n var dayPickerWrapperStyle = {\n width: isHorizontal && wrapperHorizontalWidth\n };\n var dayPickerStyle = {\n width: isHorizontal && fullHorizontalWidth,\n // These values are to center the datepicker (approximately) on the page\n marginLeft: isHorizontal && withPortal ? -fullHorizontalWidth / 2 : null,\n marginTop: isHorizontal && withPortal ? -calendarMonthWidth / 2 : null\n };\n return _react[\"default\"].createElement(\"div\", (0, _reactWithStyles.css)(styles.DayPicker, isHorizontal && styles.DayPicker__horizontal, verticalScrollable && styles.DayPicker__verticalScrollable, isHorizontal && withPortal && styles.DayPicker_portal__horizontal, this.isVertical() && withPortal && styles.DayPicker_portal__vertical, dayPickerStyle, !monthTitleHeight && styles.DayPicker__hidden, !noBorder && styles.DayPicker__withBorder), _react[\"default\"].createElement(_reactOutsideClickHandler[\"default\"], {\n onOutsideClick: onOutsideClick\n }, (calendarInfoPositionTop || calendarInfoPositionBefore) && calendarInfo, _react[\"default\"].createElement(\"div\", (0, _reactWithStyles.css)(dayPickerWrapperStyle, calendarInfoIsInline && isHorizontal && styles.DayPicker_wrapper__horizontal), _react[\"default\"].createElement(\"div\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.DayPicker_weekHeaders, isHorizontal && styles.DayPicker_weekHeaders__horizontal), {\n \"aria-hidden\": \"true\",\n role: \"presentation\"\n }), weekHeaders), _react[\"default\"].createElement(\"div\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.DayPicker_focusRegion), {\n ref: this.setContainerRef,\n onClick: function onClick(e) {\n e.stopPropagation();\n },\n onKeyDown: this.onKeyDown,\n onMouseUp: function onMouseUp() {\n _this6.setState({\n withMouseInteractions: true\n });\n },\n tabIndex: -1,\n role: \"application\",\n \"aria-roledescription\": phrases.roleDescription,\n \"aria-label\": phrases.calendarLabel\n }), !verticalScrollable && navPosition === _constants.NAV_POSITION_TOP && this.renderNavigation(), _react[\"default\"].createElement(\"div\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.DayPicker_transitionContainer, shouldAnimateHeight && styles.DayPicker_transitionContainer__horizontal, this.isVertical() && styles.DayPicker_transitionContainer__vertical, verticalScrollable && styles.DayPicker_transitionContainer__verticalScrollable, transitionContainerStyle), {\n ref: this.setTransitionContainerRef\n }), verticalScrollable && this.renderNavigation(PREV_NAV), _react[\"default\"].createElement(_CalendarMonthGrid[\"default\"], {\n setMonthTitleHeight: !monthTitleHeight ? this.setMonthTitleHeight : undefined,\n translationValue: translationValue,\n enableOutsideDays: enableOutsideDays,\n firstVisibleMonthIndex: firstVisibleMonthIndex,\n initialMonth: currentMonth,\n isAnimating: isCalendarMonthGridAnimating,\n modifiers: modifiers,\n orientation: orientation,\n numberOfMonths: numberOfMonths * scrollableMonthMultiple,\n onDayClick: onDayClick,\n onDayMouseEnter: onDayMouseEnter,\n onDayMouseLeave: onDayMouseLeave,\n onMonthChange: this.onMonthChange,\n onYearChange: this.onYearChange,\n renderMonthText: renderMonthText,\n renderCalendarDay: renderCalendarDay,\n renderDayContents: renderDayContents,\n renderMonthElement: renderMonthElement,\n onMonthTransitionEnd: this.updateStateAfterMonthTransition,\n monthFormat: monthFormat,\n daySize: daySize,\n firstDayOfWeek: firstDayOfWeek,\n isFocused: shouldFocusDate,\n focusedDate: focusedDate,\n phrases: phrases,\n isRTL: isRTL,\n dayAriaLabelFormat: dayAriaLabelFormat,\n transitionDuration: transitionDuration,\n verticalBorderSpacing: verticalBorderSpacing,\n horizontalMonthPadding: horizontalMonthPadding\n }), verticalScrollable && this.renderNavigation(NEXT_NAV)), !verticalScrollable && navPosition === _constants.NAV_POSITION_BOTTOM && this.renderNavigation(), !isTouch && !hideKeyboardShortcutsPanel && _react[\"default\"].createElement(_DayPickerKeyboardShortcuts[\"default\"], {\n block: this.isVertical() && !withPortal,\n buttonLocation: keyboardShortcutButtonLocation,\n showKeyboardShortcutsPanel: showKeyboardShortcuts,\n openKeyboardShortcutsPanel: this.openKeyboardShortcutsPanel,\n closeKeyboardShortcutsPanel: this.closeKeyboardShortcutsPanel,\n phrases: phrases,\n renderKeyboardShortcutsButton: renderKeyboardShortcutsButton,\n renderKeyboardShortcutsPanel: renderKeyboardShortcutsPanel\n }))), (calendarInfoPositionBottom || calendarInfoPositionAfter) && calendarInfo));\n };\n\n return DayPicker;\n}(_react[\"default\"].PureComponent || _react[\"default\"].Component);\n\nexports.PureDayPicker = DayPicker;\nDayPicker.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nDayPicker.defaultProps = defaultProps;\n\nvar _default = (0, _reactWithStyles.withStyles)(function (_ref4) {\n var _ref4$reactDates = _ref4.reactDates,\n color = _ref4$reactDates.color,\n font = _ref4$reactDates.font,\n noScrollBarOnVerticalScrollable = _ref4$reactDates.noScrollBarOnVerticalScrollable,\n spacing = _ref4$reactDates.spacing,\n zIndex = _ref4$reactDates.zIndex;\n return {\n DayPicker: {\n background: color.background,\n position: 'relative',\n textAlign: (0, _noflip[\"default\"])('left')\n },\n DayPicker__horizontal: {\n background: color.background\n },\n DayPicker__verticalScrollable: {\n height: '100%'\n },\n DayPicker__hidden: {\n visibility: 'hidden'\n },\n DayPicker__withBorder: {\n boxShadow: (0, _noflip[\"default\"])('0 2px 6px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.07)'),\n borderRadius: 3\n },\n DayPicker_portal__horizontal: {\n boxShadow: 'none',\n position: 'absolute',\n left: (0, _noflip[\"default\"])('50%'),\n top: '50%'\n },\n DayPicker_portal__vertical: {\n position: 'initial'\n },\n DayPicker_focusRegion: {\n outline: 'none'\n },\n DayPicker_calendarInfo__horizontal: {\n display: 'inline-block',\n verticalAlign: 'top'\n },\n DayPicker_wrapper__horizontal: {\n display: 'inline-block',\n verticalAlign: 'top'\n },\n DayPicker_weekHeaders: {\n position: 'relative'\n },\n DayPicker_weekHeaders__horizontal: {\n marginLeft: (0, _noflip[\"default\"])(spacing.dayPickerHorizontalPadding)\n },\n DayPicker_weekHeader: {\n color: color.placeholderText,\n position: 'absolute',\n top: 62,\n zIndex: zIndex + 2,\n textAlign: (0, _noflip[\"default\"])('left')\n },\n DayPicker_weekHeader__vertical: {\n left: (0, _noflip[\"default\"])('50%')\n },\n DayPicker_weekHeader__verticalScrollable: {\n top: 0,\n display: 'table-row',\n borderBottom: \"1px solid \".concat(color.core.border),\n background: color.background,\n marginLeft: (0, _noflip[\"default\"])(0),\n left: (0, _noflip[\"default\"])(0),\n width: '100%',\n textAlign: 'center'\n },\n DayPicker_weekHeader_ul: {\n listStyle: 'none',\n margin: '1px 0',\n paddingLeft: (0, _noflip[\"default\"])(0),\n paddingRight: (0, _noflip[\"default\"])(0),\n fontSize: font.size\n },\n DayPicker_weekHeader_li: {\n display: 'inline-block',\n textAlign: 'center'\n },\n DayPicker_transitionContainer: {\n position: 'relative',\n overflow: 'hidden',\n borderRadius: 3\n },\n DayPicker_transitionContainer__horizontal: {\n transition: 'height 0.2s ease-in-out'\n },\n DayPicker_transitionContainer__vertical: {\n width: '100%'\n },\n DayPicker_transitionContainer__verticalScrollable: _objectSpread({\n paddingTop: 20,\n height: '100%',\n position: 'absolute',\n top: 0,\n bottom: 0,\n right: (0, _noflip[\"default\"])(0),\n left: (0, _noflip[\"default\"])(0),\n overflowY: 'scroll'\n }, noScrollBarOnVerticalScrollable && {\n '-webkitOverflowScrolling': 'touch',\n '::-webkit-scrollbar': {\n '-webkit-appearance': 'none',\n display: 'none'\n }\n })\n };\n}, {\n pureComponent: typeof _react[\"default\"].PureComponent !== 'undefined'\n})(DayPicker);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = getPooledMoment;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar momentPool = new Map();\n\nfunction getPooledMoment(dayString) {\n if (!momentPool.has(dayString)) {\n momentPool.set(dayString, (0, _moment[\"default\"])(dayString));\n }\n\n return momentPool.get(dayString);\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _enzymeShallowEqual = _interopRequireDefault(require(\"enzyme-shallow-equal\"));\n\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _reactMomentProptypes = _interopRequireDefault(require(\"react-moment-proptypes\"));\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _object = _interopRequireDefault(require(\"object.values\"));\n\nvar _isTouchDevice = _interopRequireDefault(require(\"is-touch-device\"));\n\nvar _defaultPhrases = require(\"../defaultPhrases\");\n\nvar _getPhrasePropTypes = _interopRequireDefault(require(\"../utils/getPhrasePropTypes\"));\n\nvar _isInclusivelyAfterDay = _interopRequireDefault(require(\"../utils/isInclusivelyAfterDay\"));\n\nvar _isNextDay = _interopRequireDefault(require(\"../utils/isNextDay\"));\n\nvar _isSameDay = _interopRequireDefault(require(\"../utils/isSameDay\"));\n\nvar _isAfterDay = _interopRequireDefault(require(\"../utils/isAfterDay\"));\n\nvar _isBeforeDay = _interopRequireDefault(require(\"../utils/isBeforeDay\"));\n\nvar _isPreviousDay = _interopRequireDefault(require(\"../utils/isPreviousDay\"));\n\nvar _getVisibleDays = _interopRequireDefault(require(\"../utils/getVisibleDays\"));\n\nvar _isDayVisible = _interopRequireDefault(require(\"../utils/isDayVisible\"));\n\nvar _getSelectedDateOffset = _interopRequireDefault(require(\"../utils/getSelectedDateOffset\"));\n\nvar _toISODateString = _interopRequireDefault(require(\"../utils/toISODateString\"));\n\nvar _modifiers = require(\"../utils/modifiers\");\n\nvar _DisabledShape = _interopRequireDefault(require(\"../shapes/DisabledShape\"));\n\nvar _FocusedInputShape = _interopRequireDefault(require(\"../shapes/FocusedInputShape\"));\n\nvar _ScrollableOrientationShape = _interopRequireDefault(require(\"../shapes/ScrollableOrientationShape\"));\n\nvar _DayOfWeekShape = _interopRequireDefault(require(\"../shapes/DayOfWeekShape\"));\n\nvar _CalendarInfoPositionShape = _interopRequireDefault(require(\"../shapes/CalendarInfoPositionShape\"));\n\nvar _NavPositionShape = _interopRequireDefault(require(\"../shapes/NavPositionShape\"));\n\nvar _constants = require(\"../constants\");\n\nvar _DayPicker = _interopRequireDefault(require(\"./DayPicker\"));\n\nvar _getPooledMoment = _interopRequireDefault(require(\"../utils/getPooledMoment\"));\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nvar propTypes = process.env.NODE_ENV !== \"production\" ? (0, _airbnbPropTypes.forbidExtraProps)({\n startDate: _reactMomentProptypes[\"default\"].momentObj,\n endDate: _reactMomentProptypes[\"default\"].momentObj,\n onDatesChange: _propTypes[\"default\"].func,\n startDateOffset: _propTypes[\"default\"].func,\n endDateOffset: _propTypes[\"default\"].func,\n minDate: _reactMomentProptypes[\"default\"].momentObj,\n maxDate: _reactMomentProptypes[\"default\"].momentObj,\n focusedInput: _FocusedInputShape[\"default\"],\n onFocusChange: _propTypes[\"default\"].func,\n onClose: _propTypes[\"default\"].func,\n keepOpenOnDateSelect: _propTypes[\"default\"].bool,\n minimumNights: _propTypes[\"default\"].number,\n disabled: _DisabledShape[\"default\"],\n isOutsideRange: _propTypes[\"default\"].func,\n isDayBlocked: _propTypes[\"default\"].func,\n isDayHighlighted: _propTypes[\"default\"].func,\n getMinNightsForHoverDate: _propTypes[\"default\"].func,\n daysViolatingMinNightsCanBeClicked: _propTypes[\"default\"].bool,\n // DayPicker props\n renderMonthText: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes[\"default\"].func, 'renderMonthText', 'renderMonthElement'),\n renderMonthElement: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes[\"default\"].func, 'renderMonthText', 'renderMonthElement'),\n renderWeekHeaderElement: _propTypes[\"default\"].func,\n enableOutsideDays: _propTypes[\"default\"].bool,\n numberOfMonths: _propTypes[\"default\"].number,\n orientation: _ScrollableOrientationShape[\"default\"],\n withPortal: _propTypes[\"default\"].bool,\n initialVisibleMonth: _propTypes[\"default\"].func,\n hideKeyboardShortcutsPanel: _propTypes[\"default\"].bool,\n daySize: _airbnbPropTypes.nonNegativeInteger,\n noBorder: _propTypes[\"default\"].bool,\n verticalBorderSpacing: _airbnbPropTypes.nonNegativeInteger,\n horizontalMonthPadding: _airbnbPropTypes.nonNegativeInteger,\n dayPickerNavigationInlineStyles: _propTypes[\"default\"].object,\n navPosition: _NavPositionShape[\"default\"],\n navPrev: _propTypes[\"default\"].node,\n navNext: _propTypes[\"default\"].node,\n renderNavPrevButton: _propTypes[\"default\"].func,\n renderNavNextButton: _propTypes[\"default\"].func,\n noNavButtons: _propTypes[\"default\"].bool,\n noNavNextButton: _propTypes[\"default\"].bool,\n noNavPrevButton: _propTypes[\"default\"].bool,\n onPrevMonthClick: _propTypes[\"default\"].func,\n onNextMonthClick: _propTypes[\"default\"].func,\n onOutsideClick: _propTypes[\"default\"].func,\n renderCalendarDay: _propTypes[\"default\"].func,\n renderDayContents: _propTypes[\"default\"].func,\n renderCalendarInfo: _propTypes[\"default\"].func,\n renderKeyboardShortcutsButton: _propTypes[\"default\"].func,\n renderKeyboardShortcutsPanel: _propTypes[\"default\"].func,\n calendarInfoPosition: _CalendarInfoPositionShape[\"default\"],\n firstDayOfWeek: _DayOfWeekShape[\"default\"],\n verticalHeight: _airbnbPropTypes.nonNegativeInteger,\n transitionDuration: _airbnbPropTypes.nonNegativeInteger,\n // accessibility\n onBlur: _propTypes[\"default\"].func,\n isFocused: _propTypes[\"default\"].bool,\n showKeyboardShortcuts: _propTypes[\"default\"].bool,\n onTab: _propTypes[\"default\"].func,\n onShiftTab: _propTypes[\"default\"].func,\n // i18n\n monthFormat: _propTypes[\"default\"].string,\n weekDayFormat: _propTypes[\"default\"].string,\n phrases: _propTypes[\"default\"].shape((0, _getPhrasePropTypes[\"default\"])(_defaultPhrases.DayPickerPhrases)),\n dayAriaLabelFormat: _propTypes[\"default\"].string,\n isRTL: _propTypes[\"default\"].bool\n}) : {};\nvar defaultProps = {\n startDate: undefined,\n // TODO: use null\n endDate: undefined,\n // TODO: use null\n minDate: null,\n maxDate: null,\n onDatesChange: function onDatesChange() {},\n startDateOffset: undefined,\n endDateOffset: undefined,\n focusedInput: null,\n onFocusChange: function onFocusChange() {},\n onClose: function onClose() {},\n keepOpenOnDateSelect: false,\n minimumNights: 1,\n disabled: false,\n isOutsideRange: function isOutsideRange() {},\n isDayBlocked: function isDayBlocked() {},\n isDayHighlighted: function isDayHighlighted() {},\n getMinNightsForHoverDate: function getMinNightsForHoverDate() {},\n daysViolatingMinNightsCanBeClicked: false,\n // DayPicker props\n renderMonthText: null,\n renderWeekHeaderElement: null,\n enableOutsideDays: false,\n numberOfMonths: 1,\n orientation: _constants.HORIZONTAL_ORIENTATION,\n withPortal: false,\n hideKeyboardShortcutsPanel: false,\n initialVisibleMonth: null,\n daySize: _constants.DAY_SIZE,\n dayPickerNavigationInlineStyles: null,\n navPosition: _constants.NAV_POSITION_TOP,\n navPrev: null,\n navNext: null,\n renderNavPrevButton: null,\n renderNavNextButton: null,\n noNavButtons: false,\n noNavNextButton: false,\n noNavPrevButton: false,\n onPrevMonthClick: function onPrevMonthClick() {},\n onNextMonthClick: function onNextMonthClick() {},\n onOutsideClick: function onOutsideClick() {},\n renderCalendarDay: undefined,\n renderDayContents: null,\n renderCalendarInfo: null,\n renderMonthElement: null,\n renderKeyboardShortcutsButton: undefined,\n renderKeyboardShortcutsPanel: undefined,\n calendarInfoPosition: _constants.INFO_POSITION_BOTTOM,\n firstDayOfWeek: null,\n verticalHeight: null,\n noBorder: false,\n transitionDuration: undefined,\n verticalBorderSpacing: undefined,\n horizontalMonthPadding: 13,\n // accessibility\n onBlur: function onBlur() {},\n isFocused: false,\n showKeyboardShortcuts: false,\n onTab: function onTab() {},\n onShiftTab: function onShiftTab() {},\n // i18n\n monthFormat: 'MMMM YYYY',\n weekDayFormat: 'dd',\n phrases: _defaultPhrases.DayPickerPhrases,\n dayAriaLabelFormat: undefined,\n isRTL: false\n};\n\nvar getChooseAvailableDatePhrase = function getChooseAvailableDatePhrase(phrases, focusedInput) {\n if (focusedInput === _constants.START_DATE) {\n return phrases.chooseAvailableStartDate;\n }\n\n if (focusedInput === _constants.END_DATE) {\n return phrases.chooseAvailableEndDate;\n }\n\n return phrases.chooseAvailableDate;\n};\n\nvar DayPickerRangeController =\n/*#__PURE__*/\nfunction (_ref) {\n (0, _inheritsLoose2[\"default\"])(DayPickerRangeController, _ref);\n var _proto = DayPickerRangeController.prototype;\n\n _proto[!_react[\"default\"].PureComponent && \"shouldComponentUpdate\"] = function (nextProps, nextState) {\n return !(0, _enzymeShallowEqual[\"default\"])(this.props, nextProps) || !(0, _enzymeShallowEqual[\"default\"])(this.state, nextState);\n };\n\n function DayPickerRangeController(props) {\n var _this;\n\n _this = _ref.call(this, props) || this;\n _this.isTouchDevice = (0, _isTouchDevice[\"default\"])();\n _this.today = (0, _moment[\"default\"])();\n _this.modifiers = {\n today: function today(day) {\n return _this.isToday(day);\n },\n blocked: function blocked(day) {\n return _this.isBlocked(day);\n },\n 'blocked-calendar': function blockedCalendar(day) {\n return props.isDayBlocked(day);\n },\n 'blocked-out-of-range': function blockedOutOfRange(day) {\n return props.isOutsideRange(day);\n },\n 'highlighted-calendar': function highlightedCalendar(day) {\n return props.isDayHighlighted(day);\n },\n valid: function valid(day) {\n return !_this.isBlocked(day);\n },\n 'selected-start': function selectedStart(day) {\n return _this.isStartDate(day);\n },\n 'selected-end': function selectedEnd(day) {\n return _this.isEndDate(day);\n },\n 'blocked-minimum-nights': function blockedMinimumNights(day) {\n return _this.doesNotMeetMinimumNights(day);\n },\n 'selected-span': function selectedSpan(day) {\n return _this.isInSelectedSpan(day);\n },\n 'last-in-range': function lastInRange(day) {\n return _this.isLastInRange(day);\n },\n hovered: function hovered(day) {\n return _this.isHovered(day);\n },\n 'hovered-span': function hoveredSpan(day) {\n return _this.isInHoveredSpan(day);\n },\n 'hovered-offset': function hoveredOffset(day) {\n return _this.isInHoveredSpan(day);\n },\n 'after-hovered-start': function afterHoveredStart(day) {\n return _this.isDayAfterHoveredStartDate(day);\n },\n 'first-day-of-week': function firstDayOfWeek(day) {\n return _this.isFirstDayOfWeek(day);\n },\n 'last-day-of-week': function lastDayOfWeek(day) {\n return _this.isLastDayOfWeek(day);\n },\n 'hovered-start-first-possible-end': function hoveredStartFirstPossibleEnd(day, hoverDate) {\n return _this.isFirstPossibleEndDateForHoveredStartDate(day, hoverDate);\n },\n 'hovered-start-blocked-minimum-nights': function hoveredStartBlockedMinimumNights(day, hoverDate) {\n return _this.doesNotMeetMinNightsForHoveredStartDate(day, hoverDate);\n },\n 'before-hovered-end': function beforeHoveredEnd(day) {\n return _this.isDayBeforeHoveredEndDate(day);\n },\n 'no-selected-start-before-selected-end': function noSelectedStartBeforeSelectedEnd(day) {\n return _this.beforeSelectedEnd(day) && !props.startDate;\n },\n 'selected-start-in-hovered-span': function selectedStartInHoveredSpan(day, hoverDate) {\n return _this.isStartDate(day) && (0, _isAfterDay[\"default\"])(hoverDate, day);\n },\n 'selected-start-no-selected-end': function selectedStartNoSelectedEnd(day) {\n return _this.isStartDate(day) && !props.endDate;\n },\n 'selected-end-no-selected-start': function selectedEndNoSelectedStart(day) {\n return _this.isEndDate(day) && !props.startDate;\n }\n };\n\n var _this$getStateForNewM = _this.getStateForNewMonth(props),\n currentMonth = _this$getStateForNewM.currentMonth,\n visibleDays = _this$getStateForNewM.visibleDays; // initialize phrases\n // set the appropriate CalendarDay phrase based on focusedInput\n\n\n var chooseAvailableDate = getChooseAvailableDatePhrase(props.phrases, props.focusedInput);\n _this.state = {\n hoverDate: null,\n currentMonth: currentMonth,\n phrases: _objectSpread({}, props.phrases, {\n chooseAvailableDate: chooseAvailableDate\n }),\n visibleDays: visibleDays,\n disablePrev: _this.shouldDisableMonthNavigation(props.minDate, currentMonth),\n disableNext: _this.shouldDisableMonthNavigation(props.maxDate, currentMonth)\n };\n _this.onDayClick = _this.onDayClick.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onDayMouseEnter = _this.onDayMouseEnter.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onDayMouseLeave = _this.onDayMouseLeave.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onPrevMonthClick = _this.onPrevMonthClick.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onNextMonthClick = _this.onNextMonthClick.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onMonthChange = _this.onMonthChange.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onYearChange = _this.onYearChange.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onGetNextScrollableMonths = _this.onGetNextScrollableMonths.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onGetPrevScrollableMonths = _this.onGetPrevScrollableMonths.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.getFirstFocusableDay = _this.getFirstFocusableDay.bind((0, _assertThisInitialized2[\"default\"])(_this));\n return _this;\n }\n\n _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n var _this2 = this;\n\n var startDate = nextProps.startDate,\n endDate = nextProps.endDate,\n focusedInput = nextProps.focusedInput,\n getMinNightsForHoverDate = nextProps.getMinNightsForHoverDate,\n minimumNights = nextProps.minimumNights,\n isOutsideRange = nextProps.isOutsideRange,\n isDayBlocked = nextProps.isDayBlocked,\n isDayHighlighted = nextProps.isDayHighlighted,\n phrases = nextProps.phrases,\n initialVisibleMonth = nextProps.initialVisibleMonth,\n numberOfMonths = nextProps.numberOfMonths,\n enableOutsideDays = nextProps.enableOutsideDays;\n var _this$props = this.props,\n prevStartDate = _this$props.startDate,\n prevEndDate = _this$props.endDate,\n prevFocusedInput = _this$props.focusedInput,\n prevMinimumNights = _this$props.minimumNights,\n prevIsOutsideRange = _this$props.isOutsideRange,\n prevIsDayBlocked = _this$props.isDayBlocked,\n prevIsDayHighlighted = _this$props.isDayHighlighted,\n prevPhrases = _this$props.phrases,\n prevInitialVisibleMonth = _this$props.initialVisibleMonth,\n prevNumberOfMonths = _this$props.numberOfMonths,\n prevEnableOutsideDays = _this$props.enableOutsideDays;\n var hoverDate = this.state.hoverDate;\n var visibleDays = this.state.visibleDays;\n var recomputeOutsideRange = false;\n var recomputeDayBlocked = false;\n var recomputeDayHighlighted = false;\n\n if (isOutsideRange !== prevIsOutsideRange) {\n this.modifiers['blocked-out-of-range'] = function (day) {\n return isOutsideRange(day);\n };\n\n recomputeOutsideRange = true;\n }\n\n if (isDayBlocked !== prevIsDayBlocked) {\n this.modifiers['blocked-calendar'] = function (day) {\n return isDayBlocked(day);\n };\n\n recomputeDayBlocked = true;\n }\n\n if (isDayHighlighted !== prevIsDayHighlighted) {\n this.modifiers['highlighted-calendar'] = function (day) {\n return isDayHighlighted(day);\n };\n\n recomputeDayHighlighted = true;\n }\n\n var recomputePropModifiers = recomputeOutsideRange || recomputeDayBlocked || recomputeDayHighlighted;\n var didStartDateChange = startDate !== prevStartDate;\n var didEndDateChange = endDate !== prevEndDate;\n var didFocusChange = focusedInput !== prevFocusedInput;\n\n if (numberOfMonths !== prevNumberOfMonths || enableOutsideDays !== prevEnableOutsideDays || initialVisibleMonth !== prevInitialVisibleMonth && !prevFocusedInput && didFocusChange) {\n var newMonthState = this.getStateForNewMonth(nextProps);\n var currentMonth = newMonthState.currentMonth;\n visibleDays = newMonthState.visibleDays;\n this.setState({\n currentMonth: currentMonth,\n visibleDays: visibleDays\n });\n }\n\n var modifiers = {};\n\n if (didStartDateChange) {\n modifiers = this.deleteModifier(modifiers, prevStartDate, 'selected-start');\n modifiers = this.addModifier(modifiers, startDate, 'selected-start');\n\n if (prevStartDate) {\n var startSpan = prevStartDate.clone().add(1, 'day');\n var endSpan = prevStartDate.clone().add(prevMinimumNights + 1, 'days');\n modifiers = this.deleteModifierFromRange(modifiers, startSpan, endSpan, 'after-hovered-start');\n\n if (!endDate || !prevEndDate) {\n modifiers = this.deleteModifier(modifiers, prevStartDate, 'selected-start-no-selected-end');\n }\n }\n\n if (!prevStartDate && endDate && startDate) {\n modifiers = this.deleteModifier(modifiers, endDate, 'selected-end-no-selected-start');\n modifiers = this.deleteModifier(modifiers, endDate, 'selected-end-in-hovered-span');\n (0, _object[\"default\"])(visibleDays).forEach(function (days) {\n Object.keys(days).forEach(function (day) {\n var momentObj = (0, _moment[\"default\"])(day);\n modifiers = _this2.deleteModifier(modifiers, momentObj, 'no-selected-start-before-selected-end');\n });\n });\n }\n }\n\n if (didEndDateChange) {\n modifiers = this.deleteModifier(modifiers, prevEndDate, 'selected-end');\n modifiers = this.addModifier(modifiers, endDate, 'selected-end');\n\n if (prevEndDate && (!startDate || !prevStartDate)) {\n modifiers = this.deleteModifier(modifiers, prevEndDate, 'selected-end-no-selected-start');\n }\n }\n\n if (didStartDateChange || didEndDateChange) {\n if (prevStartDate && prevEndDate) {\n modifiers = this.deleteModifierFromRange(modifiers, prevStartDate, prevEndDate.clone().add(1, 'day'), 'selected-span');\n }\n\n if (startDate && endDate) {\n modifiers = this.deleteModifierFromRange(modifiers, startDate, endDate.clone().add(1, 'day'), 'hovered-span');\n modifiers = this.addModifierToRange(modifiers, startDate.clone().add(1, 'day'), endDate, 'selected-span');\n }\n\n if (startDate && !endDate) {\n modifiers = this.addModifier(modifiers, startDate, 'selected-start-no-selected-end');\n }\n\n if (endDate && !startDate) {\n modifiers = this.addModifier(modifiers, endDate, 'selected-end-no-selected-start');\n }\n\n if (!startDate && endDate) {\n (0, _object[\"default\"])(visibleDays).forEach(function (days) {\n Object.keys(days).forEach(function (day) {\n var momentObj = (0, _moment[\"default\"])(day);\n\n if ((0, _isBeforeDay[\"default\"])(momentObj, endDate)) {\n modifiers = _this2.addModifier(modifiers, momentObj, 'no-selected-start-before-selected-end');\n }\n });\n });\n }\n }\n\n if (!this.isTouchDevice && didStartDateChange && startDate && !endDate) {\n var _startSpan = startDate.clone().add(1, 'day');\n\n var _endSpan = startDate.clone().add(minimumNights + 1, 'days');\n\n modifiers = this.addModifierToRange(modifiers, _startSpan, _endSpan, 'after-hovered-start');\n }\n\n if (!this.isTouchDevice && didEndDateChange && !startDate && endDate) {\n var _startSpan2 = endDate.clone().subtract(minimumNights, 'days');\n\n var _endSpan2 = endDate.clone();\n\n modifiers = this.addModifierToRange(modifiers, _startSpan2, _endSpan2, 'before-hovered-end');\n }\n\n if (prevMinimumNights > 0) {\n if (didFocusChange || didStartDateChange || minimumNights !== prevMinimumNights) {\n var _startSpan3 = prevStartDate || this.today;\n\n modifiers = this.deleteModifierFromRange(modifiers, _startSpan3, _startSpan3.clone().add(prevMinimumNights, 'days'), 'blocked-minimum-nights');\n modifiers = this.deleteModifierFromRange(modifiers, _startSpan3, _startSpan3.clone().add(prevMinimumNights, 'days'), 'blocked');\n }\n }\n\n if (didFocusChange || recomputePropModifiers) {\n (0, _object[\"default\"])(visibleDays).forEach(function (days) {\n Object.keys(days).forEach(function (day) {\n var momentObj = (0, _getPooledMoment[\"default\"])(day);\n var isBlocked = false;\n\n if (didFocusChange || recomputeOutsideRange) {\n if (isOutsideRange(momentObj)) {\n modifiers = _this2.addModifier(modifiers, momentObj, 'blocked-out-of-range');\n isBlocked = true;\n } else {\n modifiers = _this2.deleteModifier(modifiers, momentObj, 'blocked-out-of-range');\n }\n }\n\n if (didFocusChange || recomputeDayBlocked) {\n if (isDayBlocked(momentObj)) {\n modifiers = _this2.addModifier(modifiers, momentObj, 'blocked-calendar');\n isBlocked = true;\n } else {\n modifiers = _this2.deleteModifier(modifiers, momentObj, 'blocked-calendar');\n }\n }\n\n if (isBlocked) {\n modifiers = _this2.addModifier(modifiers, momentObj, 'blocked');\n } else {\n modifiers = _this2.deleteModifier(modifiers, momentObj, 'blocked');\n }\n\n if (didFocusChange || recomputeDayHighlighted) {\n if (isDayHighlighted(momentObj)) {\n modifiers = _this2.addModifier(modifiers, momentObj, 'highlighted-calendar');\n } else {\n modifiers = _this2.deleteModifier(modifiers, momentObj, 'highlighted-calendar');\n }\n }\n });\n });\n }\n\n if (!this.isTouchDevice && didFocusChange && hoverDate && !this.isBlocked(hoverDate)) {\n var minNightsForHoverDate = getMinNightsForHoverDate(hoverDate);\n\n if (minNightsForHoverDate > 0 && focusedInput === _constants.END_DATE) {\n modifiers = this.deleteModifierFromRange(modifiers, hoverDate.clone().add(1, 'days'), hoverDate.clone().add(minNightsForHoverDate, 'days'), 'hovered-start-blocked-minimum-nights');\n modifiers = this.deleteModifier(modifiers, hoverDate.clone().add(minNightsForHoverDate, 'days'), 'hovered-start-first-possible-end');\n }\n\n if (minNightsForHoverDate > 0 && focusedInput === _constants.START_DATE) {\n modifiers = this.addModifierToRange(modifiers, hoverDate.clone().add(1, 'days'), hoverDate.clone().add(minNightsForHoverDate, 'days'), 'hovered-start-blocked-minimum-nights');\n modifiers = this.addModifier(modifiers, hoverDate.clone().add(minNightsForHoverDate, 'days'), 'hovered-start-first-possible-end');\n }\n }\n\n if (minimumNights > 0 && startDate && focusedInput === _constants.END_DATE) {\n modifiers = this.addModifierToRange(modifiers, startDate, startDate.clone().add(minimumNights, 'days'), 'blocked-minimum-nights');\n modifiers = this.addModifierToRange(modifiers, startDate, startDate.clone().add(minimumNights, 'days'), 'blocked');\n }\n\n var today = (0, _moment[\"default\"])();\n\n if (!(0, _isSameDay[\"default\"])(this.today, today)) {\n modifiers = this.deleteModifier(modifiers, this.today, 'today');\n modifiers = this.addModifier(modifiers, today, 'today');\n this.today = today;\n }\n\n if (Object.keys(modifiers).length > 0) {\n this.setState({\n visibleDays: _objectSpread({}, visibleDays, {}, modifiers)\n });\n }\n\n if (didFocusChange || phrases !== prevPhrases) {\n // set the appropriate CalendarDay phrase based on focusedInput\n var chooseAvailableDate = getChooseAvailableDatePhrase(phrases, focusedInput);\n this.setState({\n phrases: _objectSpread({}, phrases, {\n chooseAvailableDate: chooseAvailableDate\n })\n });\n }\n };\n\n _proto.onDayClick = function onDayClick(day, e) {\n var _this$props2 = this.props,\n keepOpenOnDateSelect = _this$props2.keepOpenOnDateSelect,\n minimumNights = _this$props2.minimumNights,\n onBlur = _this$props2.onBlur,\n focusedInput = _this$props2.focusedInput,\n onFocusChange = _this$props2.onFocusChange,\n onClose = _this$props2.onClose,\n onDatesChange = _this$props2.onDatesChange,\n startDateOffset = _this$props2.startDateOffset,\n endDateOffset = _this$props2.endDateOffset,\n disabled = _this$props2.disabled,\n daysViolatingMinNightsCanBeClicked = _this$props2.daysViolatingMinNightsCanBeClicked;\n if (e) e.preventDefault();\n if (this.isBlocked(day, !daysViolatingMinNightsCanBeClicked)) return;\n var _this$props3 = this.props,\n startDate = _this$props3.startDate,\n endDate = _this$props3.endDate;\n\n if (startDateOffset || endDateOffset) {\n startDate = (0, _getSelectedDateOffset[\"default\"])(startDateOffset, day);\n endDate = (0, _getSelectedDateOffset[\"default\"])(endDateOffset, day);\n\n if (this.isBlocked(startDate) || this.isBlocked(endDate)) {\n return;\n }\n\n onDatesChange({\n startDate: startDate,\n endDate: endDate\n });\n\n if (!keepOpenOnDateSelect) {\n onFocusChange(null);\n onClose({\n startDate: startDate,\n endDate: endDate\n });\n }\n } else if (focusedInput === _constants.START_DATE) {\n var lastAllowedStartDate = endDate && endDate.clone().subtract(minimumNights, 'days');\n var isStartDateAfterEndDate = (0, _isBeforeDay[\"default\"])(lastAllowedStartDate, day) || (0, _isAfterDay[\"default\"])(startDate, endDate);\n var isEndDateDisabled = disabled === _constants.END_DATE;\n\n if (!isEndDateDisabled || !isStartDateAfterEndDate) {\n startDate = day;\n\n if (isStartDateAfterEndDate) {\n endDate = null;\n }\n }\n\n onDatesChange({\n startDate: startDate,\n endDate: endDate\n });\n\n if (isEndDateDisabled && !isStartDateAfterEndDate) {\n onFocusChange(null);\n onClose({\n startDate: startDate,\n endDate: endDate\n });\n } else if (!isEndDateDisabled) {\n onFocusChange(_constants.END_DATE);\n }\n } else if (focusedInput === _constants.END_DATE) {\n var firstAllowedEndDate = startDate && startDate.clone().add(minimumNights, 'days');\n\n if (!startDate) {\n endDate = day;\n onDatesChange({\n startDate: startDate,\n endDate: endDate\n });\n onFocusChange(_constants.START_DATE);\n } else if ((0, _isInclusivelyAfterDay[\"default\"])(day, firstAllowedEndDate)) {\n endDate = day;\n onDatesChange({\n startDate: startDate,\n endDate: endDate\n });\n\n if (!keepOpenOnDateSelect) {\n onFocusChange(null);\n onClose({\n startDate: startDate,\n endDate: endDate\n });\n }\n } else if (daysViolatingMinNightsCanBeClicked && this.doesNotMeetMinimumNights(day)) {\n endDate = day;\n onDatesChange({\n startDate: startDate,\n endDate: endDate\n });\n } else if (disabled !== _constants.START_DATE) {\n startDate = day;\n endDate = null;\n onDatesChange({\n startDate: startDate,\n endDate: endDate\n });\n } else {\n onDatesChange({\n startDate: startDate,\n endDate: endDate\n });\n }\n } else {\n onDatesChange({\n startDate: startDate,\n endDate: endDate\n });\n }\n\n onBlur();\n };\n\n _proto.onDayMouseEnter = function onDayMouseEnter(day) {\n /* eslint react/destructuring-assignment: 1 */\n if (this.isTouchDevice) return;\n var _this$props4 = this.props,\n startDate = _this$props4.startDate,\n endDate = _this$props4.endDate,\n focusedInput = _this$props4.focusedInput,\n getMinNightsForHoverDate = _this$props4.getMinNightsForHoverDate,\n minimumNights = _this$props4.minimumNights,\n startDateOffset = _this$props4.startDateOffset,\n endDateOffset = _this$props4.endDateOffset;\n var _this$state = this.state,\n hoverDate = _this$state.hoverDate,\n visibleDays = _this$state.visibleDays,\n dateOffset = _this$state.dateOffset;\n var nextDateOffset = null;\n\n if (focusedInput) {\n var hasOffset = startDateOffset || endDateOffset;\n var modifiers = {};\n\n if (hasOffset) {\n var start = (0, _getSelectedDateOffset[\"default\"])(startDateOffset, day);\n var end = (0, _getSelectedDateOffset[\"default\"])(endDateOffset, day, function (rangeDay) {\n return rangeDay.add(1, 'day');\n });\n nextDateOffset = {\n start: start,\n end: end\n }; // eslint-disable-next-line react/destructuring-assignment\n\n if (dateOffset && dateOffset.start && dateOffset.end) {\n modifiers = this.deleteModifierFromRange(modifiers, dateOffset.start, dateOffset.end, 'hovered-offset');\n }\n\n modifiers = this.addModifierToRange(modifiers, start, end, 'hovered-offset');\n }\n\n if (!hasOffset) {\n modifiers = this.deleteModifier(modifiers, hoverDate, 'hovered');\n modifiers = this.addModifier(modifiers, day, 'hovered');\n\n if (startDate && !endDate && focusedInput === _constants.END_DATE) {\n if ((0, _isAfterDay[\"default\"])(hoverDate, startDate)) {\n var endSpan = hoverDate.clone().add(1, 'day');\n modifiers = this.deleteModifierFromRange(modifiers, startDate, endSpan, 'hovered-span');\n }\n\n if ((0, _isBeforeDay[\"default\"])(day, startDate) || (0, _isSameDay[\"default\"])(day, startDate)) {\n modifiers = this.deleteModifier(modifiers, startDate, 'selected-start-in-hovered-span');\n }\n\n if (!this.isBlocked(day) && (0, _isAfterDay[\"default\"])(day, startDate)) {\n var _endSpan3 = day.clone().add(1, 'day');\n\n modifiers = this.addModifierToRange(modifiers, startDate, _endSpan3, 'hovered-span');\n modifiers = this.addModifier(modifiers, startDate, 'selected-start-in-hovered-span');\n }\n }\n\n if (!startDate && endDate && focusedInput === _constants.START_DATE) {\n if ((0, _isBeforeDay[\"default\"])(hoverDate, endDate)) {\n modifiers = this.deleteModifierFromRange(modifiers, hoverDate, endDate, 'hovered-span');\n }\n\n if ((0, _isAfterDay[\"default\"])(day, endDate) || (0, _isSameDay[\"default\"])(day, endDate)) {\n modifiers = this.deleteModifier(modifiers, endDate, 'selected-end-in-hovered-span');\n }\n\n if (!this.isBlocked(day) && (0, _isBeforeDay[\"default\"])(day, endDate)) {\n modifiers = this.addModifierToRange(modifiers, day, endDate, 'hovered-span');\n modifiers = this.addModifier(modifiers, endDate, 'selected-end-in-hovered-span');\n }\n }\n\n if (startDate) {\n var startSpan = startDate.clone().add(1, 'day');\n\n var _endSpan4 = startDate.clone().add(minimumNights + 1, 'days');\n\n modifiers = this.deleteModifierFromRange(modifiers, startSpan, _endSpan4, 'after-hovered-start');\n\n if ((0, _isSameDay[\"default\"])(day, startDate)) {\n var newStartSpan = startDate.clone().add(1, 'day');\n var newEndSpan = startDate.clone().add(minimumNights + 1, 'days');\n modifiers = this.addModifierToRange(modifiers, newStartSpan, newEndSpan, 'after-hovered-start');\n }\n }\n\n if (endDate) {\n var _startSpan4 = endDate.clone().subtract(minimumNights, 'days');\n\n modifiers = this.deleteModifierFromRange(modifiers, _startSpan4, endDate, 'before-hovered-end');\n\n if ((0, _isSameDay[\"default\"])(day, endDate)) {\n var _newStartSpan = endDate.clone().subtract(minimumNights, 'days');\n\n modifiers = this.addModifierToRange(modifiers, _newStartSpan, endDate, 'before-hovered-end');\n }\n }\n\n if (hoverDate && !this.isBlocked(hoverDate)) {\n var minNightsForPrevHoverDate = getMinNightsForHoverDate(hoverDate);\n\n if (minNightsForPrevHoverDate > 0 && focusedInput === _constants.START_DATE) {\n modifiers = this.deleteModifierFromRange(modifiers, hoverDate.clone().add(1, 'days'), hoverDate.clone().add(minNightsForPrevHoverDate, 'days'), 'hovered-start-blocked-minimum-nights');\n modifiers = this.deleteModifier(modifiers, hoverDate.clone().add(minNightsForPrevHoverDate, 'days'), 'hovered-start-first-possible-end');\n }\n }\n\n if (!this.isBlocked(day)) {\n var minNightsForHoverDate = getMinNightsForHoverDate(day);\n\n if (minNightsForHoverDate > 0 && focusedInput === _constants.START_DATE) {\n modifiers = this.addModifierToRange(modifiers, day.clone().add(1, 'days'), day.clone().add(minNightsForHoverDate, 'days'), 'hovered-start-blocked-minimum-nights');\n modifiers = this.addModifier(modifiers, day.clone().add(minNightsForHoverDate, 'days'), 'hovered-start-first-possible-end');\n }\n }\n }\n\n this.setState({\n hoverDate: day,\n dateOffset: nextDateOffset,\n visibleDays: _objectSpread({}, visibleDays, {}, modifiers)\n });\n }\n };\n\n _proto.onDayMouseLeave = function onDayMouseLeave(day) {\n var _this$props5 = this.props,\n startDate = _this$props5.startDate,\n endDate = _this$props5.endDate,\n focusedInput = _this$props5.focusedInput,\n getMinNightsForHoverDate = _this$props5.getMinNightsForHoverDate,\n minimumNights = _this$props5.minimumNights;\n var _this$state2 = this.state,\n hoverDate = _this$state2.hoverDate,\n visibleDays = _this$state2.visibleDays,\n dateOffset = _this$state2.dateOffset;\n if (this.isTouchDevice || !hoverDate) return;\n var modifiers = {};\n modifiers = this.deleteModifier(modifiers, hoverDate, 'hovered');\n\n if (dateOffset) {\n modifiers = this.deleteModifierFromRange(modifiers, dateOffset.start, dateOffset.end, 'hovered-offset');\n }\n\n if (startDate && !endDate) {\n if ((0, _isAfterDay[\"default\"])(hoverDate, startDate)) {\n var endSpan = hoverDate.clone().add(1, 'day');\n modifiers = this.deleteModifierFromRange(modifiers, startDate, endSpan, 'hovered-span');\n }\n\n if ((0, _isAfterDay[\"default\"])(day, startDate)) {\n modifiers = this.deleteModifier(modifiers, startDate, 'selected-start-in-hovered-span');\n }\n }\n\n if (!startDate && endDate) {\n if ((0, _isAfterDay[\"default\"])(endDate, hoverDate)) {\n modifiers = this.deleteModifierFromRange(modifiers, hoverDate, endDate, 'hovered-span');\n }\n\n if ((0, _isBeforeDay[\"default\"])(day, endDate)) {\n modifiers = this.deleteModifier(modifiers, endDate, 'selected-end-in-hovered-span');\n }\n }\n\n if (startDate && (0, _isSameDay[\"default\"])(day, startDate)) {\n var startSpan = startDate.clone().add(1, 'day');\n\n var _endSpan5 = startDate.clone().add(minimumNights + 1, 'days');\n\n modifiers = this.deleteModifierFromRange(modifiers, startSpan, _endSpan5, 'after-hovered-start');\n }\n\n if (endDate && (0, _isSameDay[\"default\"])(day, endDate)) {\n var _startSpan5 = endDate.clone().subtract(minimumNights, 'days');\n\n modifiers = this.deleteModifierFromRange(modifiers, _startSpan5, endDate, 'before-hovered-end');\n }\n\n if (!this.isBlocked(hoverDate)) {\n var minNightsForHoverDate = getMinNightsForHoverDate(hoverDate);\n\n if (minNightsForHoverDate > 0 && focusedInput === _constants.START_DATE) {\n modifiers = this.deleteModifierFromRange(modifiers, hoverDate.clone().add(1, 'days'), hoverDate.clone().add(minNightsForHoverDate, 'days'), 'hovered-start-blocked-minimum-nights');\n modifiers = this.deleteModifier(modifiers, hoverDate.clone().add(minNightsForHoverDate, 'days'), 'hovered-start-first-possible-end');\n }\n }\n\n this.setState({\n hoverDate: null,\n visibleDays: _objectSpread({}, visibleDays, {}, modifiers)\n });\n };\n\n _proto.onPrevMonthClick = function onPrevMonthClick() {\n var _this$props6 = this.props,\n enableOutsideDays = _this$props6.enableOutsideDays,\n maxDate = _this$props6.maxDate,\n minDate = _this$props6.minDate,\n numberOfMonths = _this$props6.numberOfMonths,\n onPrevMonthClick = _this$props6.onPrevMonthClick;\n var _this$state3 = this.state,\n currentMonth = _this$state3.currentMonth,\n visibleDays = _this$state3.visibleDays;\n var newVisibleDays = {};\n Object.keys(visibleDays).sort().slice(0, numberOfMonths + 1).forEach(function (month) {\n newVisibleDays[month] = visibleDays[month];\n });\n var prevMonth = currentMonth.clone().subtract(2, 'months');\n var prevMonthVisibleDays = (0, _getVisibleDays[\"default\"])(prevMonth, 1, enableOutsideDays, true);\n var newCurrentMonth = currentMonth.clone().subtract(1, 'month');\n this.setState({\n currentMonth: newCurrentMonth,\n disablePrev: this.shouldDisableMonthNavigation(minDate, newCurrentMonth),\n disableNext: this.shouldDisableMonthNavigation(maxDate, newCurrentMonth),\n visibleDays: _objectSpread({}, newVisibleDays, {}, this.getModifiers(prevMonthVisibleDays))\n }, function () {\n onPrevMonthClick(newCurrentMonth.clone());\n });\n };\n\n _proto.onNextMonthClick = function onNextMonthClick() {\n var _this$props7 = this.props,\n enableOutsideDays = _this$props7.enableOutsideDays,\n maxDate = _this$props7.maxDate,\n minDate = _this$props7.minDate,\n numberOfMonths = _this$props7.numberOfMonths,\n onNextMonthClick = _this$props7.onNextMonthClick;\n var _this$state4 = this.state,\n currentMonth = _this$state4.currentMonth,\n visibleDays = _this$state4.visibleDays;\n var newVisibleDays = {};\n Object.keys(visibleDays).sort().slice(1).forEach(function (month) {\n newVisibleDays[month] = visibleDays[month];\n });\n var nextMonth = currentMonth.clone().add(numberOfMonths + 1, 'month');\n var nextMonthVisibleDays = (0, _getVisibleDays[\"default\"])(nextMonth, 1, enableOutsideDays, true);\n var newCurrentMonth = currentMonth.clone().add(1, 'month');\n this.setState({\n currentMonth: newCurrentMonth,\n disablePrev: this.shouldDisableMonthNavigation(minDate, newCurrentMonth),\n disableNext: this.shouldDisableMonthNavigation(maxDate, newCurrentMonth),\n visibleDays: _objectSpread({}, newVisibleDays, {}, this.getModifiers(nextMonthVisibleDays))\n }, function () {\n onNextMonthClick(newCurrentMonth.clone());\n });\n };\n\n _proto.onMonthChange = function onMonthChange(newMonth) {\n var _this$props8 = this.props,\n numberOfMonths = _this$props8.numberOfMonths,\n enableOutsideDays = _this$props8.enableOutsideDays,\n orientation = _this$props8.orientation;\n var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE;\n var newVisibleDays = (0, _getVisibleDays[\"default\"])(newMonth, numberOfMonths, enableOutsideDays, withoutTransitionMonths);\n this.setState({\n currentMonth: newMonth.clone(),\n visibleDays: this.getModifiers(newVisibleDays)\n });\n };\n\n _proto.onYearChange = function onYearChange(newMonth) {\n var _this$props9 = this.props,\n numberOfMonths = _this$props9.numberOfMonths,\n enableOutsideDays = _this$props9.enableOutsideDays,\n orientation = _this$props9.orientation;\n var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE;\n var newVisibleDays = (0, _getVisibleDays[\"default\"])(newMonth, numberOfMonths, enableOutsideDays, withoutTransitionMonths);\n this.setState({\n currentMonth: newMonth.clone(),\n visibleDays: this.getModifiers(newVisibleDays)\n });\n };\n\n _proto.onGetNextScrollableMonths = function onGetNextScrollableMonths() {\n var _this$props10 = this.props,\n numberOfMonths = _this$props10.numberOfMonths,\n enableOutsideDays = _this$props10.enableOutsideDays;\n var _this$state5 = this.state,\n currentMonth = _this$state5.currentMonth,\n visibleDays = _this$state5.visibleDays;\n var numberOfVisibleMonths = Object.keys(visibleDays).length;\n var nextMonth = currentMonth.clone().add(numberOfVisibleMonths, 'month');\n var newVisibleDays = (0, _getVisibleDays[\"default\"])(nextMonth, numberOfMonths, enableOutsideDays, true);\n this.setState({\n visibleDays: _objectSpread({}, visibleDays, {}, this.getModifiers(newVisibleDays))\n });\n };\n\n _proto.onGetPrevScrollableMonths = function onGetPrevScrollableMonths() {\n var _this$props11 = this.props,\n numberOfMonths = _this$props11.numberOfMonths,\n enableOutsideDays = _this$props11.enableOutsideDays;\n var _this$state6 = this.state,\n currentMonth = _this$state6.currentMonth,\n visibleDays = _this$state6.visibleDays;\n var firstPreviousMonth = currentMonth.clone().subtract(numberOfMonths, 'month');\n var newVisibleDays = (0, _getVisibleDays[\"default\"])(firstPreviousMonth, numberOfMonths, enableOutsideDays, true);\n this.setState({\n currentMonth: firstPreviousMonth.clone(),\n visibleDays: _objectSpread({}, visibleDays, {}, this.getModifiers(newVisibleDays))\n });\n };\n\n _proto.getFirstFocusableDay = function getFirstFocusableDay(newMonth) {\n var _this3 = this;\n\n var _this$props12 = this.props,\n startDate = _this$props12.startDate,\n endDate = _this$props12.endDate,\n focusedInput = _this$props12.focusedInput,\n minimumNights = _this$props12.minimumNights,\n numberOfMonths = _this$props12.numberOfMonths;\n var focusedDate = newMonth.clone().startOf('month');\n\n if (focusedInput === _constants.START_DATE && startDate) {\n focusedDate = startDate.clone();\n } else if (focusedInput === _constants.END_DATE && !endDate && startDate) {\n focusedDate = startDate.clone().add(minimumNights, 'days');\n } else if (focusedInput === _constants.END_DATE && endDate) {\n focusedDate = endDate.clone();\n }\n\n if (this.isBlocked(focusedDate)) {\n var days = [];\n var lastVisibleDay = newMonth.clone().add(numberOfMonths - 1, 'months').endOf('month');\n var currentDay = focusedDate.clone();\n\n while (!(0, _isAfterDay[\"default\"])(currentDay, lastVisibleDay)) {\n currentDay = currentDay.clone().add(1, 'day');\n days.push(currentDay);\n }\n\n var viableDays = days.filter(function (day) {\n return !_this3.isBlocked(day);\n });\n\n if (viableDays.length > 0) {\n var _viableDays = (0, _slicedToArray2[\"default\"])(viableDays, 1);\n\n focusedDate = _viableDays[0];\n }\n }\n\n return focusedDate;\n };\n\n _proto.getModifiers = function getModifiers(visibleDays) {\n var _this4 = this;\n\n var modifiers = {};\n Object.keys(visibleDays).forEach(function (month) {\n modifiers[month] = {};\n visibleDays[month].forEach(function (day) {\n modifiers[month][(0, _toISODateString[\"default\"])(day)] = _this4.getModifiersForDay(day);\n });\n });\n return modifiers;\n };\n\n _proto.getModifiersForDay = function getModifiersForDay(day) {\n var _this5 = this;\n\n return new Set(Object.keys(this.modifiers).filter(function (modifier) {\n return _this5.modifiers[modifier](day);\n }));\n };\n\n _proto.getStateForNewMonth = function getStateForNewMonth(nextProps) {\n var _this6 = this;\n\n var initialVisibleMonth = nextProps.initialVisibleMonth,\n numberOfMonths = nextProps.numberOfMonths,\n enableOutsideDays = nextProps.enableOutsideDays,\n orientation = nextProps.orientation,\n startDate = nextProps.startDate;\n var initialVisibleMonthThunk = initialVisibleMonth || (startDate ? function () {\n return startDate;\n } : function () {\n return _this6.today;\n });\n var currentMonth = initialVisibleMonthThunk();\n var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE;\n var visibleDays = this.getModifiers((0, _getVisibleDays[\"default\"])(currentMonth, numberOfMonths, enableOutsideDays, withoutTransitionMonths));\n return {\n currentMonth: currentMonth,\n visibleDays: visibleDays\n };\n };\n\n _proto.shouldDisableMonthNavigation = function shouldDisableMonthNavigation(date, visibleMonth) {\n if (!date) return false;\n var _this$props13 = this.props,\n numberOfMonths = _this$props13.numberOfMonths,\n enableOutsideDays = _this$props13.enableOutsideDays;\n return (0, _isDayVisible[\"default\"])(date, visibleMonth, numberOfMonths, enableOutsideDays);\n };\n\n _proto.addModifier = function addModifier(updatedDays, day, modifier) {\n return (0, _modifiers.addModifier)(updatedDays, day, modifier, this.props, this.state);\n };\n\n _proto.addModifierToRange = function addModifierToRange(updatedDays, start, end, modifier) {\n var days = updatedDays;\n var spanStart = start.clone();\n\n while ((0, _isBeforeDay[\"default\"])(spanStart, end)) {\n days = this.addModifier(days, spanStart, modifier);\n spanStart = spanStart.clone().add(1, 'day');\n }\n\n return days;\n };\n\n _proto.deleteModifier = function deleteModifier(updatedDays, day, modifier) {\n return (0, _modifiers.deleteModifier)(updatedDays, day, modifier, this.props, this.state);\n };\n\n _proto.deleteModifierFromRange = function deleteModifierFromRange(updatedDays, start, end, modifier) {\n var days = updatedDays;\n var spanStart = start.clone();\n\n while ((0, _isBeforeDay[\"default\"])(spanStart, end)) {\n days = this.deleteModifier(days, spanStart, modifier);\n spanStart = spanStart.clone().add(1, 'day');\n }\n\n return days;\n };\n\n _proto.doesNotMeetMinimumNights = function doesNotMeetMinimumNights(day) {\n var _this$props14 = this.props,\n startDate = _this$props14.startDate,\n isOutsideRange = _this$props14.isOutsideRange,\n focusedInput = _this$props14.focusedInput,\n minimumNights = _this$props14.minimumNights;\n if (focusedInput !== _constants.END_DATE) return false;\n\n if (startDate) {\n var dayDiff = day.diff(startDate.clone().startOf('day').hour(12), 'days');\n return dayDiff < minimumNights && dayDiff >= 0;\n }\n\n return isOutsideRange((0, _moment[\"default\"])(day).subtract(minimumNights, 'days'));\n };\n\n _proto.doesNotMeetMinNightsForHoveredStartDate = function doesNotMeetMinNightsForHoveredStartDate(day, hoverDate) {\n var _this$props15 = this.props,\n focusedInput = _this$props15.focusedInput,\n getMinNightsForHoverDate = _this$props15.getMinNightsForHoverDate;\n if (focusedInput !== _constants.END_DATE) return false;\n\n if (hoverDate && !this.isBlocked(hoverDate)) {\n var minNights = getMinNightsForHoverDate(hoverDate);\n var dayDiff = day.diff(hoverDate.clone().startOf('day').hour(12), 'days');\n return dayDiff < minNights && dayDiff >= 0;\n }\n\n return false;\n };\n\n _proto.isDayAfterHoveredStartDate = function isDayAfterHoveredStartDate(day) {\n var _this$props16 = this.props,\n startDate = _this$props16.startDate,\n endDate = _this$props16.endDate,\n minimumNights = _this$props16.minimumNights;\n\n var _ref2 = this.state || {},\n hoverDate = _ref2.hoverDate;\n\n return !!startDate && !endDate && !this.isBlocked(day) && (0, _isNextDay[\"default\"])(hoverDate, day) && minimumNights > 0 && (0, _isSameDay[\"default\"])(hoverDate, startDate);\n };\n\n _proto.isEndDate = function isEndDate(day) {\n var endDate = this.props.endDate;\n return (0, _isSameDay[\"default\"])(day, endDate);\n };\n\n _proto.isHovered = function isHovered(day) {\n var _ref3 = this.state || {},\n hoverDate = _ref3.hoverDate;\n\n var focusedInput = this.props.focusedInput;\n return !!focusedInput && (0, _isSameDay[\"default\"])(day, hoverDate);\n };\n\n _proto.isInHoveredSpan = function isInHoveredSpan(day) {\n var _this$props17 = this.props,\n startDate = _this$props17.startDate,\n endDate = _this$props17.endDate;\n\n var _ref4 = this.state || {},\n hoverDate = _ref4.hoverDate;\n\n var isForwardRange = !!startDate && !endDate && (day.isBetween(startDate, hoverDate) || (0, _isSameDay[\"default\"])(hoverDate, day));\n var isBackwardRange = !!endDate && !startDate && (day.isBetween(hoverDate, endDate) || (0, _isSameDay[\"default\"])(hoverDate, day));\n var isValidDayHovered = hoverDate && !this.isBlocked(hoverDate);\n return (isForwardRange || isBackwardRange) && isValidDayHovered;\n };\n\n _proto.isInSelectedSpan = function isInSelectedSpan(day) {\n var _this$props18 = this.props,\n startDate = _this$props18.startDate,\n endDate = _this$props18.endDate;\n return day.isBetween(startDate, endDate, 'days');\n };\n\n _proto.isLastInRange = function isLastInRange(day) {\n var endDate = this.props.endDate;\n return this.isInSelectedSpan(day) && (0, _isNextDay[\"default\"])(day, endDate);\n };\n\n _proto.isStartDate = function isStartDate(day) {\n var startDate = this.props.startDate;\n return (0, _isSameDay[\"default\"])(day, startDate);\n };\n\n _proto.isBlocked = function isBlocked(day) {\n var blockDaysViolatingMinNights = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var _this$props19 = this.props,\n isDayBlocked = _this$props19.isDayBlocked,\n isOutsideRange = _this$props19.isOutsideRange;\n return isDayBlocked(day) || isOutsideRange(day) || blockDaysViolatingMinNights && this.doesNotMeetMinimumNights(day);\n };\n\n _proto.isToday = function isToday(day) {\n return (0, _isSameDay[\"default\"])(day, this.today);\n };\n\n _proto.isFirstDayOfWeek = function isFirstDayOfWeek(day) {\n var firstDayOfWeek = this.props.firstDayOfWeek;\n return day.day() === (firstDayOfWeek || _moment[\"default\"].localeData().firstDayOfWeek());\n };\n\n _proto.isLastDayOfWeek = function isLastDayOfWeek(day) {\n var firstDayOfWeek = this.props.firstDayOfWeek;\n return day.day() === ((firstDayOfWeek || _moment[\"default\"].localeData().firstDayOfWeek()) + 6) % 7;\n };\n\n _proto.isFirstPossibleEndDateForHoveredStartDate = function isFirstPossibleEndDateForHoveredStartDate(day, hoverDate) {\n var _this$props20 = this.props,\n focusedInput = _this$props20.focusedInput,\n getMinNightsForHoverDate = _this$props20.getMinNightsForHoverDate;\n if (focusedInput !== _constants.END_DATE || !hoverDate || this.isBlocked(hoverDate)) return false;\n var minNights = getMinNightsForHoverDate(hoverDate);\n var firstAvailableEndDate = hoverDate.clone().add(minNights, 'days');\n return (0, _isSameDay[\"default\"])(day, firstAvailableEndDate);\n };\n\n _proto.beforeSelectedEnd = function beforeSelectedEnd(day) {\n var endDate = this.props.endDate;\n return (0, _isBeforeDay[\"default\"])(day, endDate);\n };\n\n _proto.isDayBeforeHoveredEndDate = function isDayBeforeHoveredEndDate(day) {\n var _this$props21 = this.props,\n startDate = _this$props21.startDate,\n endDate = _this$props21.endDate,\n minimumNights = _this$props21.minimumNights;\n\n var _ref5 = this.state || {},\n hoverDate = _ref5.hoverDate;\n\n return !!endDate && !startDate && !this.isBlocked(day) && (0, _isPreviousDay[\"default\"])(hoverDate, day) && minimumNights > 0 && (0, _isSameDay[\"default\"])(hoverDate, endDate);\n };\n\n _proto.render = function render() {\n var _this$props22 = this.props,\n numberOfMonths = _this$props22.numberOfMonths,\n orientation = _this$props22.orientation,\n monthFormat = _this$props22.monthFormat,\n renderMonthText = _this$props22.renderMonthText,\n renderWeekHeaderElement = _this$props22.renderWeekHeaderElement,\n dayPickerNavigationInlineStyles = _this$props22.dayPickerNavigationInlineStyles,\n navPosition = _this$props22.navPosition,\n navPrev = _this$props22.navPrev,\n navNext = _this$props22.navNext,\n renderNavPrevButton = _this$props22.renderNavPrevButton,\n renderNavNextButton = _this$props22.renderNavNextButton,\n noNavButtons = _this$props22.noNavButtons,\n noNavNextButton = _this$props22.noNavNextButton,\n noNavPrevButton = _this$props22.noNavPrevButton,\n onOutsideClick = _this$props22.onOutsideClick,\n withPortal = _this$props22.withPortal,\n enableOutsideDays = _this$props22.enableOutsideDays,\n firstDayOfWeek = _this$props22.firstDayOfWeek,\n renderKeyboardShortcutsButton = _this$props22.renderKeyboardShortcutsButton,\n renderKeyboardShortcutsPanel = _this$props22.renderKeyboardShortcutsPanel,\n hideKeyboardShortcutsPanel = _this$props22.hideKeyboardShortcutsPanel,\n daySize = _this$props22.daySize,\n focusedInput = _this$props22.focusedInput,\n renderCalendarDay = _this$props22.renderCalendarDay,\n renderDayContents = _this$props22.renderDayContents,\n renderCalendarInfo = _this$props22.renderCalendarInfo,\n renderMonthElement = _this$props22.renderMonthElement,\n calendarInfoPosition = _this$props22.calendarInfoPosition,\n onBlur = _this$props22.onBlur,\n onShiftTab = _this$props22.onShiftTab,\n onTab = _this$props22.onTab,\n isFocused = _this$props22.isFocused,\n showKeyboardShortcuts = _this$props22.showKeyboardShortcuts,\n isRTL = _this$props22.isRTL,\n weekDayFormat = _this$props22.weekDayFormat,\n dayAriaLabelFormat = _this$props22.dayAriaLabelFormat,\n verticalHeight = _this$props22.verticalHeight,\n noBorder = _this$props22.noBorder,\n transitionDuration = _this$props22.transitionDuration,\n verticalBorderSpacing = _this$props22.verticalBorderSpacing,\n horizontalMonthPadding = _this$props22.horizontalMonthPadding;\n var _this$state7 = this.state,\n currentMonth = _this$state7.currentMonth,\n phrases = _this$state7.phrases,\n visibleDays = _this$state7.visibleDays,\n disablePrev = _this$state7.disablePrev,\n disableNext = _this$state7.disableNext;\n return _react[\"default\"].createElement(_DayPicker[\"default\"], {\n orientation: orientation,\n enableOutsideDays: enableOutsideDays,\n modifiers: visibleDays,\n numberOfMonths: numberOfMonths,\n onDayClick: this.onDayClick,\n onDayMouseEnter: this.onDayMouseEnter,\n onDayMouseLeave: this.onDayMouseLeave,\n onPrevMonthClick: this.onPrevMonthClick,\n onNextMonthClick: this.onNextMonthClick,\n onMonthChange: this.onMonthChange,\n onTab: onTab,\n onShiftTab: onShiftTab,\n onYearChange: this.onYearChange,\n onGetNextScrollableMonths: this.onGetNextScrollableMonths,\n onGetPrevScrollableMonths: this.onGetPrevScrollableMonths,\n monthFormat: monthFormat,\n renderMonthText: renderMonthText,\n renderWeekHeaderElement: renderWeekHeaderElement,\n withPortal: withPortal,\n hidden: !focusedInput,\n initialVisibleMonth: function initialVisibleMonth() {\n return currentMonth;\n },\n daySize: daySize,\n onOutsideClick: onOutsideClick,\n disablePrev: disablePrev,\n disableNext: disableNext,\n dayPickerNavigationInlineStyles: dayPickerNavigationInlineStyles,\n navPosition: navPosition,\n navPrev: navPrev,\n navNext: navNext,\n renderNavPrevButton: renderNavPrevButton,\n renderNavNextButton: renderNavNextButton,\n noNavButtons: noNavButtons,\n noNavPrevButton: noNavPrevButton,\n noNavNextButton: noNavNextButton,\n renderCalendarDay: renderCalendarDay,\n renderDayContents: renderDayContents,\n renderCalendarInfo: renderCalendarInfo,\n renderMonthElement: renderMonthElement,\n renderKeyboardShortcutsButton: renderKeyboardShortcutsButton,\n renderKeyboardShortcutsPanel: renderKeyboardShortcutsPanel,\n calendarInfoPosition: calendarInfoPosition,\n firstDayOfWeek: firstDayOfWeek,\n hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,\n isFocused: isFocused,\n getFirstFocusableDay: this.getFirstFocusableDay,\n onBlur: onBlur,\n showKeyboardShortcuts: showKeyboardShortcuts,\n phrases: phrases,\n isRTL: isRTL,\n weekDayFormat: weekDayFormat,\n dayAriaLabelFormat: dayAriaLabelFormat,\n verticalHeight: verticalHeight,\n verticalBorderSpacing: verticalBorderSpacing,\n noBorder: noBorder,\n transitionDuration: transitionDuration,\n horizontalMonthPadding: horizontalMonthPadding\n });\n };\n\n return DayPickerRangeController;\n}(_react[\"default\"].PureComponent || _react[\"default\"].Component);\n\nexports[\"default\"] = DayPickerRangeController;\nDayPickerRangeController.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nDayPickerRangeController.defaultProps = defaultProps;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = exports.PureDateRangePicker = void 0;\n\nvar _enzymeShallowEqual = _interopRequireDefault(require(\"enzyme-shallow-equal\"));\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _reactWithStyles = require(\"react-with-styles\");\n\nvar _reactPortal = require(\"react-portal\");\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _consolidatedEvents = require(\"consolidated-events\");\n\nvar _isTouchDevice = _interopRequireDefault(require(\"is-touch-device\"));\n\nvar _reactOutsideClickHandler = _interopRequireDefault(require(\"react-outside-click-handler\"));\n\nvar _DateRangePickerShape = _interopRequireDefault(require(\"../shapes/DateRangePickerShape\"));\n\nvar _defaultPhrases = require(\"../defaultPhrases\");\n\nvar _getResponsiveContainerStyles = _interopRequireDefault(require(\"../utils/getResponsiveContainerStyles\"));\n\nvar _getDetachedContainerStyles = _interopRequireDefault(require(\"../utils/getDetachedContainerStyles\"));\n\nvar _getInputHeight = _interopRequireDefault(require(\"../utils/getInputHeight\"));\n\nvar _isInclusivelyAfterDay = _interopRequireDefault(require(\"../utils/isInclusivelyAfterDay\"));\n\nvar _disableScroll2 = _interopRequireDefault(require(\"../utils/disableScroll\"));\n\nvar _noflip = _interopRequireDefault(require(\"../utils/noflip\"));\n\nvar _DateRangePickerInputController = _interopRequireDefault(require(\"./DateRangePickerInputController\"));\n\nvar _DayPickerRangeController = _interopRequireDefault(require(\"./DayPickerRangeController\"));\n\nvar _CloseButton = _interopRequireDefault(require(\"./CloseButton\"));\n\nvar _constants = require(\"../constants\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nvar propTypes = process.env.NODE_ENV !== \"production\" ? (0, _airbnbPropTypes.forbidExtraProps)(_objectSpread({}, _reactWithStyles.withStylesPropTypes, {}, _DateRangePickerShape[\"default\"])) : {};\nvar defaultProps = {\n // required props for a functional interactive DateRangePicker\n startDate: null,\n endDate: null,\n focusedInput: null,\n // input related props\n startDatePlaceholderText: 'Start Date',\n endDatePlaceholderText: 'End Date',\n startDateAriaLabel: undefined,\n endDateAriaLabel: undefined,\n startDateOffset: undefined,\n endDateOffset: undefined,\n disabled: false,\n required: false,\n readOnly: false,\n screenReaderInputMessage: '',\n showClearDates: false,\n showDefaultInputIcon: false,\n inputIconPosition: _constants.ICON_BEFORE_POSITION,\n customInputIcon: null,\n customArrowIcon: null,\n customCloseIcon: null,\n noBorder: false,\n block: false,\n small: false,\n regular: false,\n keepFocusOnInput: false,\n // calendar presentation and interaction related props\n renderMonthText: null,\n renderWeekHeaderElement: null,\n orientation: _constants.HORIZONTAL_ORIENTATION,\n anchorDirection: _constants.ANCHOR_LEFT,\n openDirection: _constants.OPEN_DOWN,\n horizontalMargin: 0,\n withPortal: false,\n withFullScreenPortal: false,\n appendToBody: false,\n disableScroll: false,\n initialVisibleMonth: null,\n numberOfMonths: 2,\n keepOpenOnDateSelect: false,\n reopenPickerOnClearDates: false,\n renderCalendarInfo: null,\n calendarInfoPosition: _constants.INFO_POSITION_BOTTOM,\n hideKeyboardShortcutsPanel: false,\n daySize: _constants.DAY_SIZE,\n isRTL: false,\n firstDayOfWeek: null,\n verticalHeight: null,\n transitionDuration: undefined,\n verticalSpacing: _constants.DEFAULT_VERTICAL_SPACING,\n horizontalMonthPadding: undefined,\n // navigation related props\n dayPickerNavigationInlineStyles: null,\n navPosition: _constants.NAV_POSITION_TOP,\n navPrev: null,\n navNext: null,\n renderNavPrevButton: null,\n renderNavNextButton: null,\n onPrevMonthClick: function onPrevMonthClick() {},\n onNextMonthClick: function onNextMonthClick() {},\n onClose: function onClose() {},\n // day presentation and interaction related props\n renderCalendarDay: undefined,\n renderDayContents: null,\n renderMonthElement: null,\n minimumNights: 1,\n enableOutsideDays: false,\n isDayBlocked: function isDayBlocked() {\n return false;\n },\n isOutsideRange: function isOutsideRange(day) {\n return !(0, _isInclusivelyAfterDay[\"default\"])(day, (0, _moment[\"default\"])());\n },\n isDayHighlighted: function isDayHighlighted() {\n return false;\n },\n minDate: undefined,\n maxDate: undefined,\n // internationalization\n displayFormat: function displayFormat() {\n return _moment[\"default\"].localeData().longDateFormat('L');\n },\n monthFormat: 'MMMM YYYY',\n weekDayFormat: 'dd',\n phrases: _defaultPhrases.DateRangePickerPhrases,\n dayAriaLabelFormat: undefined\n};\n\nvar DateRangePicker =\n/*#__PURE__*/\nfunction (_ref) {\n (0, _inheritsLoose2[\"default\"])(DateRangePicker, _ref);\n var _proto = DateRangePicker.prototype;\n\n _proto[!_react[\"default\"].PureComponent && \"shouldComponentUpdate\"] = function (nextProps, nextState) {\n return !(0, _enzymeShallowEqual[\"default\"])(this.props, nextProps) || !(0, _enzymeShallowEqual[\"default\"])(this.state, nextState);\n };\n\n function DateRangePicker(props) {\n var _this;\n\n _this = _ref.call(this, props) || this;\n _this.state = {\n dayPickerContainerStyles: {},\n isDateRangePickerInputFocused: false,\n isDayPickerFocused: false,\n showKeyboardShortcuts: false\n };\n _this.isTouchDevice = false;\n _this.onOutsideClick = _this.onOutsideClick.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onDateRangePickerInputFocus = _this.onDateRangePickerInputFocus.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onDayPickerFocus = _this.onDayPickerFocus.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onDayPickerFocusOut = _this.onDayPickerFocusOut.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onDayPickerBlur = _this.onDayPickerBlur.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.showKeyboardShortcutsPanel = _this.showKeyboardShortcutsPanel.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.responsivizePickerPosition = _this.responsivizePickerPosition.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.disableScroll = _this.disableScroll.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.setDayPickerContainerRef = _this.setDayPickerContainerRef.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.setContainerRef = _this.setContainerRef.bind((0, _assertThisInitialized2[\"default\"])(_this));\n return _this;\n }\n\n _proto.componentDidMount = function componentDidMount() {\n this.removeEventListener = (0, _consolidatedEvents.addEventListener)(window, 'resize', this.responsivizePickerPosition, {\n passive: true\n });\n this.responsivizePickerPosition();\n this.disableScroll();\n var focusedInput = this.props.focusedInput;\n\n if (focusedInput) {\n this.setState({\n isDateRangePickerInputFocused: true\n });\n }\n\n this.isTouchDevice = (0, _isTouchDevice[\"default\"])();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var focusedInput = this.props.focusedInput;\n\n if (!prevProps.focusedInput && focusedInput && this.isOpened()) {\n // The date picker just changed from being closed to being open.\n this.responsivizePickerPosition();\n this.disableScroll();\n } else if (prevProps.focusedInput && !focusedInput && !this.isOpened()) {\n // The date picker just changed from being open to being closed.\n if (this.enableScroll) this.enableScroll();\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.removeDayPickerEventListeners();\n if (this.removeEventListener) this.removeEventListener();\n if (this.enableScroll) this.enableScroll();\n };\n\n _proto.onOutsideClick = function onOutsideClick(event) {\n var _this$props = this.props,\n onFocusChange = _this$props.onFocusChange,\n onClose = _this$props.onClose,\n startDate = _this$props.startDate,\n endDate = _this$props.endDate,\n appendToBody = _this$props.appendToBody;\n if (!this.isOpened()) return;\n if (appendToBody && this.dayPickerContainer.contains(event.target)) return;\n this.setState({\n isDateRangePickerInputFocused: false,\n isDayPickerFocused: false,\n showKeyboardShortcuts: false\n });\n onFocusChange(null);\n onClose({\n startDate: startDate,\n endDate: endDate\n });\n };\n\n _proto.onDateRangePickerInputFocus = function onDateRangePickerInputFocus(focusedInput) {\n var _this$props2 = this.props,\n onFocusChange = _this$props2.onFocusChange,\n readOnly = _this$props2.readOnly,\n withPortal = _this$props2.withPortal,\n withFullScreenPortal = _this$props2.withFullScreenPortal,\n keepFocusOnInput = _this$props2.keepFocusOnInput;\n\n if (focusedInput) {\n var withAnyPortal = withPortal || withFullScreenPortal;\n var moveFocusToDayPicker = withAnyPortal || readOnly && !keepFocusOnInput || this.isTouchDevice && !keepFocusOnInput;\n\n if (moveFocusToDayPicker) {\n this.onDayPickerFocus();\n } else {\n this.onDayPickerBlur();\n }\n }\n\n onFocusChange(focusedInput);\n };\n\n _proto.onDayPickerFocus = function onDayPickerFocus() {\n var _this$props3 = this.props,\n focusedInput = _this$props3.focusedInput,\n onFocusChange = _this$props3.onFocusChange;\n if (!focusedInput) onFocusChange(_constants.START_DATE);\n this.setState({\n isDateRangePickerInputFocused: false,\n isDayPickerFocused: true,\n showKeyboardShortcuts: false\n });\n };\n\n _proto.onDayPickerFocusOut = function onDayPickerFocusOut(event) {\n // In cases where **relatedTarget** is not null, it points to the right\n // element here. However, in cases where it is null (such as clicking on a\n // specific day) or it is **document.body** (IE11), the appropriate value is **event.target**.\n //\n // We handle both situations here by using the ` || ` operator to fallback\n // to *event.target** when **relatedTarget** is not provided.\n var relatedTarget = event.relatedTarget === document.body ? event.target : event.relatedTarget || event.target;\n if (this.dayPickerContainer.contains(relatedTarget)) return;\n this.onOutsideClick(event);\n };\n\n _proto.onDayPickerBlur = function onDayPickerBlur() {\n this.setState({\n isDateRangePickerInputFocused: true,\n isDayPickerFocused: false,\n showKeyboardShortcuts: false\n });\n };\n\n _proto.setDayPickerContainerRef = function setDayPickerContainerRef(ref) {\n if (ref === this.dayPickerContainer) return;\n if (this.dayPickerContainer) this.removeDayPickerEventListeners();\n this.dayPickerContainer = ref;\n if (!ref) return;\n this.addDayPickerEventListeners();\n };\n\n _proto.setContainerRef = function setContainerRef(ref) {\n this.container = ref;\n };\n\n _proto.addDayPickerEventListeners = function addDayPickerEventListeners() {\n // NOTE: We are using a manual event listener here, because React doesn't\n // provide FocusOut, while blur and keydown don't provide the information\n // needed in order to know whether we have left focus or not.\n //\n // For reference, this issue is further described here:\n // - https://github.com/facebook/react/issues/6410\n this.removeDayPickerFocusOut = (0, _consolidatedEvents.addEventListener)(this.dayPickerContainer, 'focusout', this.onDayPickerFocusOut);\n };\n\n _proto.removeDayPickerEventListeners = function removeDayPickerEventListeners() {\n if (this.removeDayPickerFocusOut) this.removeDayPickerFocusOut();\n };\n\n _proto.isOpened = function isOpened() {\n var focusedInput = this.props.focusedInput;\n return focusedInput === _constants.START_DATE || focusedInput === _constants.END_DATE;\n };\n\n _proto.disableScroll = function disableScroll() {\n var _this$props4 = this.props,\n appendToBody = _this$props4.appendToBody,\n propDisableScroll = _this$props4.disableScroll;\n if (!appendToBody && !propDisableScroll) return;\n if (!this.isOpened()) return; // Disable scroll for every ancestor of this DateRangePicker up to the\n // document level. This ensures the input and the picker never move. Other\n // sibling elements or the picker itself can scroll.\n\n this.enableScroll = (0, _disableScroll2[\"default\"])(this.container);\n };\n\n _proto.responsivizePickerPosition = function responsivizePickerPosition() {\n // It's possible the portal props have been changed in response to window resizes\n // So let's ensure we reset this back to the base state each time\n var dayPickerContainerStyles = this.state.dayPickerContainerStyles;\n\n if (Object.keys(dayPickerContainerStyles).length > 0) {\n this.setState({\n dayPickerContainerStyles: {}\n });\n }\n\n if (!this.isOpened()) {\n return;\n }\n\n var _this$props5 = this.props,\n openDirection = _this$props5.openDirection,\n anchorDirection = _this$props5.anchorDirection,\n horizontalMargin = _this$props5.horizontalMargin,\n withPortal = _this$props5.withPortal,\n withFullScreenPortal = _this$props5.withFullScreenPortal,\n appendToBody = _this$props5.appendToBody;\n var isAnchoredLeft = anchorDirection === _constants.ANCHOR_LEFT;\n\n if (!withPortal && !withFullScreenPortal) {\n var containerRect = this.dayPickerContainer.getBoundingClientRect();\n var currentOffset = dayPickerContainerStyles[anchorDirection] || 0;\n var containerEdge = isAnchoredLeft ? containerRect[_constants.ANCHOR_RIGHT] : containerRect[_constants.ANCHOR_LEFT];\n this.setState({\n dayPickerContainerStyles: _objectSpread({}, (0, _getResponsiveContainerStyles[\"default\"])(anchorDirection, currentOffset, containerEdge, horizontalMargin), {}, appendToBody && (0, _getDetachedContainerStyles[\"default\"])(openDirection, anchorDirection, this.container))\n });\n }\n };\n\n _proto.showKeyboardShortcutsPanel = function showKeyboardShortcutsPanel() {\n this.setState({\n isDateRangePickerInputFocused: false,\n isDayPickerFocused: true,\n showKeyboardShortcuts: true\n });\n };\n\n _proto.maybeRenderDayPickerWithPortal = function maybeRenderDayPickerWithPortal() {\n var _this$props6 = this.props,\n withPortal = _this$props6.withPortal,\n withFullScreenPortal = _this$props6.withFullScreenPortal,\n appendToBody = _this$props6.appendToBody;\n\n if (!this.isOpened()) {\n return null;\n }\n\n if (withPortal || withFullScreenPortal || appendToBody) {\n return _react[\"default\"].createElement(_reactPortal.Portal, null, this.renderDayPicker());\n }\n\n return this.renderDayPicker();\n };\n\n _proto.renderDayPicker = function renderDayPicker() {\n var _this$props7 = this.props,\n anchorDirection = _this$props7.anchorDirection,\n openDirection = _this$props7.openDirection,\n isDayBlocked = _this$props7.isDayBlocked,\n isDayHighlighted = _this$props7.isDayHighlighted,\n isOutsideRange = _this$props7.isOutsideRange,\n numberOfMonths = _this$props7.numberOfMonths,\n orientation = _this$props7.orientation,\n monthFormat = _this$props7.monthFormat,\n renderMonthText = _this$props7.renderMonthText,\n renderWeekHeaderElement = _this$props7.renderWeekHeaderElement,\n dayPickerNavigationInlineStyles = _this$props7.dayPickerNavigationInlineStyles,\n navPosition = _this$props7.navPosition,\n navPrev = _this$props7.navPrev,\n navNext = _this$props7.navNext,\n renderNavPrevButton = _this$props7.renderNavPrevButton,\n renderNavNextButton = _this$props7.renderNavNextButton,\n onPrevMonthClick = _this$props7.onPrevMonthClick,\n onNextMonthClick = _this$props7.onNextMonthClick,\n onDatesChange = _this$props7.onDatesChange,\n onFocusChange = _this$props7.onFocusChange,\n withPortal = _this$props7.withPortal,\n withFullScreenPortal = _this$props7.withFullScreenPortal,\n daySize = _this$props7.daySize,\n enableOutsideDays = _this$props7.enableOutsideDays,\n focusedInput = _this$props7.focusedInput,\n startDate = _this$props7.startDate,\n startDateOffset = _this$props7.startDateOffset,\n endDate = _this$props7.endDate,\n endDateOffset = _this$props7.endDateOffset,\n minDate = _this$props7.minDate,\n maxDate = _this$props7.maxDate,\n minimumNights = _this$props7.minimumNights,\n keepOpenOnDateSelect = _this$props7.keepOpenOnDateSelect,\n renderCalendarDay = _this$props7.renderCalendarDay,\n renderDayContents = _this$props7.renderDayContents,\n renderCalendarInfo = _this$props7.renderCalendarInfo,\n renderMonthElement = _this$props7.renderMonthElement,\n calendarInfoPosition = _this$props7.calendarInfoPosition,\n firstDayOfWeek = _this$props7.firstDayOfWeek,\n initialVisibleMonth = _this$props7.initialVisibleMonth,\n hideKeyboardShortcutsPanel = _this$props7.hideKeyboardShortcutsPanel,\n customCloseIcon = _this$props7.customCloseIcon,\n onClose = _this$props7.onClose,\n phrases = _this$props7.phrases,\n dayAriaLabelFormat = _this$props7.dayAriaLabelFormat,\n isRTL = _this$props7.isRTL,\n weekDayFormat = _this$props7.weekDayFormat,\n styles = _this$props7.styles,\n verticalHeight = _this$props7.verticalHeight,\n transitionDuration = _this$props7.transitionDuration,\n verticalSpacing = _this$props7.verticalSpacing,\n horizontalMonthPadding = _this$props7.horizontalMonthPadding,\n small = _this$props7.small,\n disabled = _this$props7.disabled,\n reactDates = _this$props7.theme.reactDates;\n var _this$state = this.state,\n dayPickerContainerStyles = _this$state.dayPickerContainerStyles,\n isDayPickerFocused = _this$state.isDayPickerFocused,\n showKeyboardShortcuts = _this$state.showKeyboardShortcuts;\n var onOutsideClick = !withFullScreenPortal && withPortal ? this.onOutsideClick : undefined;\n\n var initialVisibleMonthThunk = initialVisibleMonth || function () {\n return startDate || endDate || (0, _moment[\"default\"])();\n };\n\n var closeIcon = customCloseIcon || _react[\"default\"].createElement(_CloseButton[\"default\"], (0, _reactWithStyles.css)(styles.DateRangePicker_closeButton_svg));\n\n var inputHeight = (0, _getInputHeight[\"default\"])(reactDates, small);\n var withAnyPortal = withPortal || withFullScreenPortal;\n /* eslint-disable jsx-a11y/no-static-element-interactions */\n\n /* eslint-disable jsx-a11y/click-events-have-key-events */\n\n return _react[\"default\"].createElement(\"div\", (0, _extends2[\"default\"])({\n ref: this.setDayPickerContainerRef\n }, (0, _reactWithStyles.css)(styles.DateRangePicker_picker, anchorDirection === _constants.ANCHOR_LEFT && styles.DateRangePicker_picker__directionLeft, anchorDirection === _constants.ANCHOR_RIGHT && styles.DateRangePicker_picker__directionRight, orientation === _constants.HORIZONTAL_ORIENTATION && styles.DateRangePicker_picker__horizontal, orientation === _constants.VERTICAL_ORIENTATION && styles.DateRangePicker_picker__vertical, !withAnyPortal && openDirection === _constants.OPEN_DOWN && {\n top: inputHeight + verticalSpacing\n }, !withAnyPortal && openDirection === _constants.OPEN_UP && {\n bottom: inputHeight + verticalSpacing\n }, withAnyPortal && styles.DateRangePicker_picker__portal, withFullScreenPortal && styles.DateRangePicker_picker__fullScreenPortal, isRTL && styles.DateRangePicker_picker__rtl, dayPickerContainerStyles), {\n onClick: onOutsideClick\n }), _react[\"default\"].createElement(_DayPickerRangeController[\"default\"], {\n orientation: orientation,\n enableOutsideDays: enableOutsideDays,\n numberOfMonths: numberOfMonths,\n onPrevMonthClick: onPrevMonthClick,\n onNextMonthClick: onNextMonthClick,\n onDatesChange: onDatesChange,\n onFocusChange: onFocusChange,\n onClose: onClose,\n focusedInput: focusedInput,\n startDate: startDate,\n startDateOffset: startDateOffset,\n endDate: endDate,\n endDateOffset: endDateOffset,\n minDate: minDate,\n maxDate: maxDate,\n monthFormat: monthFormat,\n renderMonthText: renderMonthText,\n renderWeekHeaderElement: renderWeekHeaderElement,\n withPortal: withAnyPortal,\n daySize: daySize,\n initialVisibleMonth: initialVisibleMonthThunk,\n hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,\n dayPickerNavigationInlineStyles: dayPickerNavigationInlineStyles,\n navPosition: navPosition,\n navPrev: navPrev,\n navNext: navNext,\n renderNavPrevButton: renderNavPrevButton,\n renderNavNextButton: renderNavNextButton,\n minimumNights: minimumNights,\n isOutsideRange: isOutsideRange,\n isDayHighlighted: isDayHighlighted,\n isDayBlocked: isDayBlocked,\n keepOpenOnDateSelect: keepOpenOnDateSelect,\n renderCalendarDay: renderCalendarDay,\n renderDayContents: renderDayContents,\n renderCalendarInfo: renderCalendarInfo,\n renderMonthElement: renderMonthElement,\n calendarInfoPosition: calendarInfoPosition,\n isFocused: isDayPickerFocused,\n showKeyboardShortcuts: showKeyboardShortcuts,\n onBlur: this.onDayPickerBlur,\n phrases: phrases,\n dayAriaLabelFormat: dayAriaLabelFormat,\n isRTL: isRTL,\n firstDayOfWeek: firstDayOfWeek,\n weekDayFormat: weekDayFormat,\n verticalHeight: verticalHeight,\n transitionDuration: transitionDuration,\n disabled: disabled,\n horizontalMonthPadding: horizontalMonthPadding\n }), withFullScreenPortal && _react[\"default\"].createElement(\"button\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.DateRangePicker_closeButton), {\n type: \"button\",\n onClick: this.onOutsideClick,\n \"aria-label\": phrases.closeDatePicker\n }), closeIcon));\n /* eslint-enable jsx-a11y/no-static-element-interactions */\n\n /* eslint-enable jsx-a11y/click-events-have-key-events */\n };\n\n _proto.render = function render() {\n var _this$props8 = this.props,\n startDate = _this$props8.startDate,\n startDateId = _this$props8.startDateId,\n startDatePlaceholderText = _this$props8.startDatePlaceholderText,\n startDateAriaLabel = _this$props8.startDateAriaLabel,\n endDate = _this$props8.endDate,\n endDateId = _this$props8.endDateId,\n endDatePlaceholderText = _this$props8.endDatePlaceholderText,\n endDateAriaLabel = _this$props8.endDateAriaLabel,\n focusedInput = _this$props8.focusedInput,\n screenReaderInputMessage = _this$props8.screenReaderInputMessage,\n showClearDates = _this$props8.showClearDates,\n showDefaultInputIcon = _this$props8.showDefaultInputIcon,\n inputIconPosition = _this$props8.inputIconPosition,\n customInputIcon = _this$props8.customInputIcon,\n customArrowIcon = _this$props8.customArrowIcon,\n customCloseIcon = _this$props8.customCloseIcon,\n disabled = _this$props8.disabled,\n required = _this$props8.required,\n readOnly = _this$props8.readOnly,\n openDirection = _this$props8.openDirection,\n phrases = _this$props8.phrases,\n isOutsideRange = _this$props8.isOutsideRange,\n minimumNights = _this$props8.minimumNights,\n withPortal = _this$props8.withPortal,\n withFullScreenPortal = _this$props8.withFullScreenPortal,\n displayFormat = _this$props8.displayFormat,\n reopenPickerOnClearDates = _this$props8.reopenPickerOnClearDates,\n keepOpenOnDateSelect = _this$props8.keepOpenOnDateSelect,\n onDatesChange = _this$props8.onDatesChange,\n onClose = _this$props8.onClose,\n isRTL = _this$props8.isRTL,\n noBorder = _this$props8.noBorder,\n block = _this$props8.block,\n verticalSpacing = _this$props8.verticalSpacing,\n small = _this$props8.small,\n regular = _this$props8.regular,\n styles = _this$props8.styles;\n var isDateRangePickerInputFocused = this.state.isDateRangePickerInputFocused;\n var enableOutsideClick = !withPortal && !withFullScreenPortal;\n var hideFang = verticalSpacing < _constants.FANG_HEIGHT_PX;\n\n var input = _react[\"default\"].createElement(_DateRangePickerInputController[\"default\"], {\n startDate: startDate,\n startDateId: startDateId,\n startDatePlaceholderText: startDatePlaceholderText,\n isStartDateFocused: focusedInput === _constants.START_DATE,\n startDateAriaLabel: startDateAriaLabel,\n endDate: endDate,\n endDateId: endDateId,\n endDatePlaceholderText: endDatePlaceholderText,\n isEndDateFocused: focusedInput === _constants.END_DATE,\n endDateAriaLabel: endDateAriaLabel,\n displayFormat: displayFormat,\n showClearDates: showClearDates,\n showCaret: !withPortal && !withFullScreenPortal && !hideFang,\n showDefaultInputIcon: showDefaultInputIcon,\n inputIconPosition: inputIconPosition,\n customInputIcon: customInputIcon,\n customArrowIcon: customArrowIcon,\n customCloseIcon: customCloseIcon,\n disabled: disabled,\n required: required,\n readOnly: readOnly,\n openDirection: openDirection,\n reopenPickerOnClearDates: reopenPickerOnClearDates,\n keepOpenOnDateSelect: keepOpenOnDateSelect,\n isOutsideRange: isOutsideRange,\n minimumNights: minimumNights,\n withFullScreenPortal: withFullScreenPortal,\n onDatesChange: onDatesChange,\n onFocusChange: this.onDateRangePickerInputFocus,\n onKeyDownArrowDown: this.onDayPickerFocus,\n onKeyDownQuestionMark: this.showKeyboardShortcutsPanel,\n onClose: onClose,\n phrases: phrases,\n screenReaderMessage: screenReaderInputMessage,\n isFocused: isDateRangePickerInputFocused,\n isRTL: isRTL,\n noBorder: noBorder,\n block: block,\n small: small,\n regular: regular,\n verticalSpacing: verticalSpacing\n }, this.maybeRenderDayPickerWithPortal());\n\n return _react[\"default\"].createElement(\"div\", (0, _extends2[\"default\"])({\n ref: this.setContainerRef\n }, (0, _reactWithStyles.css)(styles.DateRangePicker, block && styles.DateRangePicker__block)), enableOutsideClick && _react[\"default\"].createElement(_reactOutsideClickHandler[\"default\"], {\n onOutsideClick: this.onOutsideClick\n }, input), enableOutsideClick || input);\n };\n\n return DateRangePicker;\n}(_react[\"default\"].PureComponent || _react[\"default\"].Component);\n\nexports.PureDateRangePicker = DateRangePicker;\nDateRangePicker.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nDateRangePicker.defaultProps = defaultProps;\n\nvar _default = (0, _reactWithStyles.withStyles)(function (_ref2) {\n var _ref2$reactDates = _ref2.reactDates,\n color = _ref2$reactDates.color,\n zIndex = _ref2$reactDates.zIndex;\n return {\n DateRangePicker: {\n position: 'relative',\n display: 'inline-block'\n },\n DateRangePicker__block: {\n display: 'block'\n },\n DateRangePicker_picker: {\n zIndex: zIndex + 1,\n backgroundColor: color.background,\n position: 'absolute'\n },\n DateRangePicker_picker__rtl: {\n direction: (0, _noflip[\"default\"])('rtl')\n },\n DateRangePicker_picker__directionLeft: {\n left: (0, _noflip[\"default\"])(0)\n },\n DateRangePicker_picker__directionRight: {\n right: (0, _noflip[\"default\"])(0)\n },\n DateRangePicker_picker__portal: {\n backgroundColor: 'rgba(0, 0, 0, 0.3)',\n position: 'fixed',\n top: 0,\n left: (0, _noflip[\"default\"])(0),\n height: '100%',\n width: '100%'\n },\n DateRangePicker_picker__fullScreenPortal: {\n backgroundColor: color.background\n },\n DateRangePicker_closeButton: {\n background: 'none',\n border: 0,\n color: 'inherit',\n font: 'inherit',\n lineHeight: 'normal',\n overflow: 'visible',\n cursor: 'pointer',\n position: 'absolute',\n top: 0,\n right: (0, _noflip[\"default\"])(0),\n padding: 15,\n zIndex: zIndex + 2,\n ':hover': {\n color: \"darken(\".concat(color.core.grayLighter, \", 10%)\"),\n textDecoration: 'none'\n },\n ':focus': {\n color: \"darken(\".concat(color.core.grayLighter, \", 10%)\"),\n textDecoration: 'none'\n }\n },\n DateRangePicker_closeButton_svg: {\n height: 15,\n width: 15,\n fill: color.core.grayLighter\n }\n };\n}, {\n pureComponent: typeof _react[\"default\"].PureComponent !== 'undefined'\n})(DateRangePicker);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _enzymeShallowEqual = _interopRequireDefault(require(\"enzyme-shallow-equal\"));\n\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _reactMomentProptypes = _interopRequireDefault(require(\"react-moment-proptypes\"));\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _object = _interopRequireDefault(require(\"object.values\"));\n\nvar _isTouchDevice = _interopRequireDefault(require(\"is-touch-device\"));\n\nvar _defaultPhrases = require(\"../defaultPhrases\");\n\nvar _getPhrasePropTypes = _interopRequireDefault(require(\"../utils/getPhrasePropTypes\"));\n\nvar _isSameDay = _interopRequireDefault(require(\"../utils/isSameDay\"));\n\nvar _isAfterDay = _interopRequireDefault(require(\"../utils/isAfterDay\"));\n\nvar _getVisibleDays = _interopRequireDefault(require(\"../utils/getVisibleDays\"));\n\nvar _toISODateString = _interopRequireDefault(require(\"../utils/toISODateString\"));\n\nvar _modifiers = require(\"../utils/modifiers\");\n\nvar _ScrollableOrientationShape = _interopRequireDefault(require(\"../shapes/ScrollableOrientationShape\"));\n\nvar _DayOfWeekShape = _interopRequireDefault(require(\"../shapes/DayOfWeekShape\"));\n\nvar _CalendarInfoPositionShape = _interopRequireDefault(require(\"../shapes/CalendarInfoPositionShape\"));\n\nvar _NavPositionShape = _interopRequireDefault(require(\"../shapes/NavPositionShape\"));\n\nvar _constants = require(\"../constants\");\n\nvar _DayPicker = _interopRequireDefault(require(\"./DayPicker\"));\n\nvar _getPooledMoment = _interopRequireDefault(require(\"../utils/getPooledMoment\"));\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nvar propTypes = process.env.NODE_ENV !== \"production\" ? (0, _airbnbPropTypes.forbidExtraProps)({\n date: _reactMomentProptypes[\"default\"].momentObj,\n onDateChange: _propTypes[\"default\"].func,\n focused: _propTypes[\"default\"].bool,\n onFocusChange: _propTypes[\"default\"].func,\n onClose: _propTypes[\"default\"].func,\n keepOpenOnDateSelect: _propTypes[\"default\"].bool,\n isOutsideRange: _propTypes[\"default\"].func,\n isDayBlocked: _propTypes[\"default\"].func,\n isDayHighlighted: _propTypes[\"default\"].func,\n // DayPicker props\n renderMonthText: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes[\"default\"].func, 'renderMonthText', 'renderMonthElement'),\n renderMonthElement: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes[\"default\"].func, 'renderMonthText', 'renderMonthElement'),\n renderWeekHeaderElement: _propTypes[\"default\"].func,\n enableOutsideDays: _propTypes[\"default\"].bool,\n numberOfMonths: _propTypes[\"default\"].number,\n orientation: _ScrollableOrientationShape[\"default\"],\n withPortal: _propTypes[\"default\"].bool,\n initialVisibleMonth: _propTypes[\"default\"].func,\n firstDayOfWeek: _DayOfWeekShape[\"default\"],\n hideKeyboardShortcutsPanel: _propTypes[\"default\"].bool,\n daySize: _airbnbPropTypes.nonNegativeInteger,\n verticalHeight: _airbnbPropTypes.nonNegativeInteger,\n noBorder: _propTypes[\"default\"].bool,\n verticalBorderSpacing: _airbnbPropTypes.nonNegativeInteger,\n transitionDuration: _airbnbPropTypes.nonNegativeInteger,\n horizontalMonthPadding: _airbnbPropTypes.nonNegativeInteger,\n dayPickerNavigationInlineStyles: _propTypes[\"default\"].object,\n navPosition: _NavPositionShape[\"default\"],\n navPrev: _propTypes[\"default\"].node,\n navNext: _propTypes[\"default\"].node,\n renderNavPrevButton: _propTypes[\"default\"].func,\n renderNavNextButton: _propTypes[\"default\"].func,\n noNavButtons: _propTypes[\"default\"].bool,\n noNavNextButton: _propTypes[\"default\"].bool,\n noNavPrevButton: _propTypes[\"default\"].bool,\n onPrevMonthClick: _propTypes[\"default\"].func,\n onNextMonthClick: _propTypes[\"default\"].func,\n onOutsideClick: _propTypes[\"default\"].func,\n renderCalendarDay: _propTypes[\"default\"].func,\n renderDayContents: _propTypes[\"default\"].func,\n renderCalendarInfo: _propTypes[\"default\"].func,\n calendarInfoPosition: _CalendarInfoPositionShape[\"default\"],\n // accessibility\n onBlur: _propTypes[\"default\"].func,\n isFocused: _propTypes[\"default\"].bool,\n showKeyboardShortcuts: _propTypes[\"default\"].bool,\n onTab: _propTypes[\"default\"].func,\n onShiftTab: _propTypes[\"default\"].func,\n // i18n\n monthFormat: _propTypes[\"default\"].string,\n weekDayFormat: _propTypes[\"default\"].string,\n phrases: _propTypes[\"default\"].shape((0, _getPhrasePropTypes[\"default\"])(_defaultPhrases.DayPickerPhrases)),\n dayAriaLabelFormat: _propTypes[\"default\"].string,\n isRTL: _propTypes[\"default\"].bool\n}) : {};\nvar defaultProps = {\n date: undefined,\n // TODO: use null\n onDateChange: function onDateChange() {},\n focused: false,\n onFocusChange: function onFocusChange() {},\n onClose: function onClose() {},\n keepOpenOnDateSelect: false,\n isOutsideRange: function isOutsideRange() {},\n isDayBlocked: function isDayBlocked() {},\n isDayHighlighted: function isDayHighlighted() {},\n // DayPicker props\n renderMonthText: null,\n renderWeekHeaderElement: null,\n enableOutsideDays: false,\n numberOfMonths: 1,\n orientation: _constants.HORIZONTAL_ORIENTATION,\n withPortal: false,\n hideKeyboardShortcutsPanel: false,\n initialVisibleMonth: null,\n firstDayOfWeek: null,\n daySize: _constants.DAY_SIZE,\n verticalHeight: null,\n noBorder: false,\n verticalBorderSpacing: undefined,\n transitionDuration: undefined,\n horizontalMonthPadding: 13,\n dayPickerNavigationInlineStyles: null,\n navPosition: _constants.NAV_POSITION_TOP,\n navPrev: null,\n navNext: null,\n renderNavPrevButton: null,\n renderNavNextButton: null,\n noNavButtons: false,\n noNavNextButton: false,\n noNavPrevButton: false,\n onPrevMonthClick: function onPrevMonthClick() {},\n onNextMonthClick: function onNextMonthClick() {},\n onOutsideClick: function onOutsideClick() {},\n renderCalendarDay: undefined,\n renderDayContents: null,\n renderCalendarInfo: null,\n renderMonthElement: null,\n calendarInfoPosition: _constants.INFO_POSITION_BOTTOM,\n // accessibility\n onBlur: function onBlur() {},\n isFocused: false,\n showKeyboardShortcuts: false,\n onTab: function onTab() {},\n onShiftTab: function onShiftTab() {},\n // i18n\n monthFormat: 'MMMM YYYY',\n weekDayFormat: 'dd',\n phrases: _defaultPhrases.DayPickerPhrases,\n dayAriaLabelFormat: undefined,\n isRTL: false\n};\n\nvar DayPickerSingleDateController =\n/*#__PURE__*/\nfunction (_ref) {\n (0, _inheritsLoose2[\"default\"])(DayPickerSingleDateController, _ref);\n var _proto = DayPickerSingleDateController.prototype;\n\n _proto[!_react[\"default\"].PureComponent && \"shouldComponentUpdate\"] = function (nextProps, nextState) {\n return !(0, _enzymeShallowEqual[\"default\"])(this.props, nextProps) || !(0, _enzymeShallowEqual[\"default\"])(this.state, nextState);\n };\n\n function DayPickerSingleDateController(props) {\n var _this;\n\n _this = _ref.call(this, props) || this;\n _this.isTouchDevice = false;\n _this.today = (0, _moment[\"default\"])();\n _this.modifiers = {\n today: function today(day) {\n return _this.isToday(day);\n },\n blocked: function blocked(day) {\n return _this.isBlocked(day);\n },\n 'blocked-calendar': function blockedCalendar(day) {\n return props.isDayBlocked(day);\n },\n 'blocked-out-of-range': function blockedOutOfRange(day) {\n return props.isOutsideRange(day);\n },\n 'highlighted-calendar': function highlightedCalendar(day) {\n return props.isDayHighlighted(day);\n },\n valid: function valid(day) {\n return !_this.isBlocked(day);\n },\n hovered: function hovered(day) {\n return _this.isHovered(day);\n },\n selected: function selected(day) {\n return _this.isSelected(day);\n },\n 'first-day-of-week': function firstDayOfWeek(day) {\n return _this.isFirstDayOfWeek(day);\n },\n 'last-day-of-week': function lastDayOfWeek(day) {\n return _this.isLastDayOfWeek(day);\n }\n };\n\n var _this$getStateForNewM = _this.getStateForNewMonth(props),\n currentMonth = _this$getStateForNewM.currentMonth,\n visibleDays = _this$getStateForNewM.visibleDays;\n\n _this.state = {\n hoverDate: null,\n currentMonth: currentMonth,\n visibleDays: visibleDays\n };\n _this.onDayMouseEnter = _this.onDayMouseEnter.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onDayMouseLeave = _this.onDayMouseLeave.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onDayClick = _this.onDayClick.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onPrevMonthClick = _this.onPrevMonthClick.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onNextMonthClick = _this.onNextMonthClick.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onMonthChange = _this.onMonthChange.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onYearChange = _this.onYearChange.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onGetNextScrollableMonths = _this.onGetNextScrollableMonths.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onGetPrevScrollableMonths = _this.onGetPrevScrollableMonths.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.getFirstFocusableDay = _this.getFirstFocusableDay.bind((0, _assertThisInitialized2[\"default\"])(_this));\n return _this;\n }\n\n _proto.componentDidMount = function componentDidMount() {\n this.isTouchDevice = (0, _isTouchDevice[\"default\"])();\n };\n\n _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n var _this2 = this;\n\n var date = nextProps.date,\n focused = nextProps.focused,\n isOutsideRange = nextProps.isOutsideRange,\n isDayBlocked = nextProps.isDayBlocked,\n isDayHighlighted = nextProps.isDayHighlighted,\n initialVisibleMonth = nextProps.initialVisibleMonth,\n numberOfMonths = nextProps.numberOfMonths,\n enableOutsideDays = nextProps.enableOutsideDays;\n var _this$props = this.props,\n prevIsOutsideRange = _this$props.isOutsideRange,\n prevIsDayBlocked = _this$props.isDayBlocked,\n prevIsDayHighlighted = _this$props.isDayHighlighted,\n prevNumberOfMonths = _this$props.numberOfMonths,\n prevEnableOutsideDays = _this$props.enableOutsideDays,\n prevInitialVisibleMonth = _this$props.initialVisibleMonth,\n prevFocused = _this$props.focused,\n prevDate = _this$props.date;\n var visibleDays = this.state.visibleDays;\n var recomputeOutsideRange = false;\n var recomputeDayBlocked = false;\n var recomputeDayHighlighted = false;\n\n if (isOutsideRange !== prevIsOutsideRange) {\n this.modifiers['blocked-out-of-range'] = function (day) {\n return isOutsideRange(day);\n };\n\n recomputeOutsideRange = true;\n }\n\n if (isDayBlocked !== prevIsDayBlocked) {\n this.modifiers['blocked-calendar'] = function (day) {\n return isDayBlocked(day);\n };\n\n recomputeDayBlocked = true;\n }\n\n if (isDayHighlighted !== prevIsDayHighlighted) {\n this.modifiers['highlighted-calendar'] = function (day) {\n return isDayHighlighted(day);\n };\n\n recomputeDayHighlighted = true;\n }\n\n var recomputePropModifiers = recomputeOutsideRange || recomputeDayBlocked || recomputeDayHighlighted;\n\n if (numberOfMonths !== prevNumberOfMonths || enableOutsideDays !== prevEnableOutsideDays || initialVisibleMonth !== prevInitialVisibleMonth && !prevFocused && focused) {\n var newMonthState = this.getStateForNewMonth(nextProps);\n var currentMonth = newMonthState.currentMonth;\n visibleDays = newMonthState.visibleDays;\n this.setState({\n currentMonth: currentMonth,\n visibleDays: visibleDays\n });\n }\n\n var didDateChange = date !== prevDate;\n var didFocusChange = focused !== prevFocused;\n var modifiers = {};\n\n if (didDateChange) {\n modifiers = this.deleteModifier(modifiers, prevDate, 'selected');\n modifiers = this.addModifier(modifiers, date, 'selected');\n }\n\n if (didFocusChange || recomputePropModifiers) {\n (0, _object[\"default\"])(visibleDays).forEach(function (days) {\n Object.keys(days).forEach(function (day) {\n var momentObj = (0, _getPooledMoment[\"default\"])(day);\n\n if (_this2.isBlocked(momentObj)) {\n modifiers = _this2.addModifier(modifiers, momentObj, 'blocked');\n } else {\n modifiers = _this2.deleteModifier(modifiers, momentObj, 'blocked');\n }\n\n if (didFocusChange || recomputeOutsideRange) {\n if (isOutsideRange(momentObj)) {\n modifiers = _this2.addModifier(modifiers, momentObj, 'blocked-out-of-range');\n } else {\n modifiers = _this2.deleteModifier(modifiers, momentObj, 'blocked-out-of-range');\n }\n }\n\n if (didFocusChange || recomputeDayBlocked) {\n if (isDayBlocked(momentObj)) {\n modifiers = _this2.addModifier(modifiers, momentObj, 'blocked-calendar');\n } else {\n modifiers = _this2.deleteModifier(modifiers, momentObj, 'blocked-calendar');\n }\n }\n\n if (didFocusChange || recomputeDayHighlighted) {\n if (isDayHighlighted(momentObj)) {\n modifiers = _this2.addModifier(modifiers, momentObj, 'highlighted-calendar');\n } else {\n modifiers = _this2.deleteModifier(modifiers, momentObj, 'highlighted-calendar');\n }\n }\n });\n });\n }\n\n var today = (0, _moment[\"default\"])();\n\n if (!(0, _isSameDay[\"default\"])(this.today, today)) {\n modifiers = this.deleteModifier(modifiers, this.today, 'today');\n modifiers = this.addModifier(modifiers, today, 'today');\n this.today = today;\n }\n\n if (Object.keys(modifiers).length > 0) {\n this.setState({\n visibleDays: _objectSpread({}, visibleDays, {}, modifiers)\n });\n }\n };\n\n _proto.componentWillUpdate = function componentWillUpdate() {\n this.today = (0, _moment[\"default\"])();\n };\n\n _proto.onDayClick = function onDayClick(day, e) {\n if (e) e.preventDefault();\n if (this.isBlocked(day)) return;\n var _this$props2 = this.props,\n onDateChange = _this$props2.onDateChange,\n keepOpenOnDateSelect = _this$props2.keepOpenOnDateSelect,\n onFocusChange = _this$props2.onFocusChange,\n onClose = _this$props2.onClose;\n onDateChange(day);\n\n if (!keepOpenOnDateSelect) {\n onFocusChange({\n focused: false\n });\n onClose({\n date: day\n });\n }\n };\n\n _proto.onDayMouseEnter = function onDayMouseEnter(day) {\n if (this.isTouchDevice) return;\n var _this$state = this.state,\n hoverDate = _this$state.hoverDate,\n visibleDays = _this$state.visibleDays;\n var modifiers = this.deleteModifier({}, hoverDate, 'hovered');\n modifiers = this.addModifier(modifiers, day, 'hovered');\n this.setState({\n hoverDate: day,\n visibleDays: _objectSpread({}, visibleDays, {}, modifiers)\n });\n };\n\n _proto.onDayMouseLeave = function onDayMouseLeave() {\n var _this$state2 = this.state,\n hoverDate = _this$state2.hoverDate,\n visibleDays = _this$state2.visibleDays;\n if (this.isTouchDevice || !hoverDate) return;\n var modifiers = this.deleteModifier({}, hoverDate, 'hovered');\n this.setState({\n hoverDate: null,\n visibleDays: _objectSpread({}, visibleDays, {}, modifiers)\n });\n };\n\n _proto.onPrevMonthClick = function onPrevMonthClick() {\n var _this$props3 = this.props,\n onPrevMonthClick = _this$props3.onPrevMonthClick,\n numberOfMonths = _this$props3.numberOfMonths,\n enableOutsideDays = _this$props3.enableOutsideDays;\n var _this$state3 = this.state,\n currentMonth = _this$state3.currentMonth,\n visibleDays = _this$state3.visibleDays;\n var newVisibleDays = {};\n Object.keys(visibleDays).sort().slice(0, numberOfMonths + 1).forEach(function (month) {\n newVisibleDays[month] = visibleDays[month];\n });\n var prevMonth = currentMonth.clone().subtract(1, 'month');\n var prevMonthVisibleDays = (0, _getVisibleDays[\"default\"])(prevMonth, 1, enableOutsideDays);\n this.setState({\n currentMonth: prevMonth,\n visibleDays: _objectSpread({}, newVisibleDays, {}, this.getModifiers(prevMonthVisibleDays))\n }, function () {\n onPrevMonthClick(prevMonth.clone());\n });\n };\n\n _proto.onNextMonthClick = function onNextMonthClick() {\n var _this$props4 = this.props,\n onNextMonthClick = _this$props4.onNextMonthClick,\n numberOfMonths = _this$props4.numberOfMonths,\n enableOutsideDays = _this$props4.enableOutsideDays;\n var _this$state4 = this.state,\n currentMonth = _this$state4.currentMonth,\n visibleDays = _this$state4.visibleDays;\n var newVisibleDays = {};\n Object.keys(visibleDays).sort().slice(1).forEach(function (month) {\n newVisibleDays[month] = visibleDays[month];\n });\n var nextMonth = currentMonth.clone().add(numberOfMonths, 'month');\n var nextMonthVisibleDays = (0, _getVisibleDays[\"default\"])(nextMonth, 1, enableOutsideDays);\n var newCurrentMonth = currentMonth.clone().add(1, 'month');\n this.setState({\n currentMonth: newCurrentMonth,\n visibleDays: _objectSpread({}, newVisibleDays, {}, this.getModifiers(nextMonthVisibleDays))\n }, function () {\n onNextMonthClick(newCurrentMonth.clone());\n });\n };\n\n _proto.onMonthChange = function onMonthChange(newMonth) {\n var _this$props5 = this.props,\n numberOfMonths = _this$props5.numberOfMonths,\n enableOutsideDays = _this$props5.enableOutsideDays,\n orientation = _this$props5.orientation;\n var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE;\n var newVisibleDays = (0, _getVisibleDays[\"default\"])(newMonth, numberOfMonths, enableOutsideDays, withoutTransitionMonths);\n this.setState({\n currentMonth: newMonth.clone(),\n visibleDays: this.getModifiers(newVisibleDays)\n });\n };\n\n _proto.onYearChange = function onYearChange(newMonth) {\n var _this$props6 = this.props,\n numberOfMonths = _this$props6.numberOfMonths,\n enableOutsideDays = _this$props6.enableOutsideDays,\n orientation = _this$props6.orientation;\n var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE;\n var newVisibleDays = (0, _getVisibleDays[\"default\"])(newMonth, numberOfMonths, enableOutsideDays, withoutTransitionMonths);\n this.setState({\n currentMonth: newMonth.clone(),\n visibleDays: this.getModifiers(newVisibleDays)\n });\n };\n\n _proto.onGetNextScrollableMonths = function onGetNextScrollableMonths() {\n var _this$props7 = this.props,\n numberOfMonths = _this$props7.numberOfMonths,\n enableOutsideDays = _this$props7.enableOutsideDays;\n var _this$state5 = this.state,\n currentMonth = _this$state5.currentMonth,\n visibleDays = _this$state5.visibleDays;\n var numberOfVisibleMonths = Object.keys(visibleDays).length;\n var nextMonth = currentMonth.clone().add(numberOfVisibleMonths, 'month');\n var newVisibleDays = (0, _getVisibleDays[\"default\"])(nextMonth, numberOfMonths, enableOutsideDays, true);\n this.setState({\n visibleDays: _objectSpread({}, visibleDays, {}, this.getModifiers(newVisibleDays))\n });\n };\n\n _proto.onGetPrevScrollableMonths = function onGetPrevScrollableMonths() {\n var _this$props8 = this.props,\n numberOfMonths = _this$props8.numberOfMonths,\n enableOutsideDays = _this$props8.enableOutsideDays;\n var _this$state6 = this.state,\n currentMonth = _this$state6.currentMonth,\n visibleDays = _this$state6.visibleDays;\n var firstPreviousMonth = currentMonth.clone().subtract(numberOfMonths, 'month');\n var newVisibleDays = (0, _getVisibleDays[\"default\"])(firstPreviousMonth, numberOfMonths, enableOutsideDays, true);\n this.setState({\n currentMonth: firstPreviousMonth.clone(),\n visibleDays: _objectSpread({}, visibleDays, {}, this.getModifiers(newVisibleDays))\n });\n };\n\n _proto.getFirstFocusableDay = function getFirstFocusableDay(newMonth) {\n var _this3 = this;\n\n var _this$props9 = this.props,\n date = _this$props9.date,\n numberOfMonths = _this$props9.numberOfMonths;\n var focusedDate = newMonth.clone().startOf('month');\n\n if (date) {\n focusedDate = date.clone();\n }\n\n if (this.isBlocked(focusedDate)) {\n var days = [];\n var lastVisibleDay = newMonth.clone().add(numberOfMonths - 1, 'months').endOf('month');\n var currentDay = focusedDate.clone();\n\n while (!(0, _isAfterDay[\"default\"])(currentDay, lastVisibleDay)) {\n currentDay = currentDay.clone().add(1, 'day');\n days.push(currentDay);\n }\n\n var viableDays = days.filter(function (day) {\n return !_this3.isBlocked(day) && (0, _isAfterDay[\"default\"])(day, focusedDate);\n });\n\n if (viableDays.length > 0) {\n var _viableDays = (0, _slicedToArray2[\"default\"])(viableDays, 1);\n\n focusedDate = _viableDays[0];\n }\n }\n\n return focusedDate;\n };\n\n _proto.getModifiers = function getModifiers(visibleDays) {\n var _this4 = this;\n\n var modifiers = {};\n Object.keys(visibleDays).forEach(function (month) {\n modifiers[month] = {};\n visibleDays[month].forEach(function (day) {\n modifiers[month][(0, _toISODateString[\"default\"])(day)] = _this4.getModifiersForDay(day);\n });\n });\n return modifiers;\n };\n\n _proto.getModifiersForDay = function getModifiersForDay(day) {\n var _this5 = this;\n\n return new Set(Object.keys(this.modifiers).filter(function (modifier) {\n return _this5.modifiers[modifier](day);\n }));\n };\n\n _proto.getStateForNewMonth = function getStateForNewMonth(nextProps) {\n var _this6 = this;\n\n var initialVisibleMonth = nextProps.initialVisibleMonth,\n date = nextProps.date,\n numberOfMonths = nextProps.numberOfMonths,\n orientation = nextProps.orientation,\n enableOutsideDays = nextProps.enableOutsideDays;\n var initialVisibleMonthThunk = initialVisibleMonth || (date ? function () {\n return date;\n } : function () {\n return _this6.today;\n });\n var currentMonth = initialVisibleMonthThunk();\n var withoutTransitionMonths = orientation === _constants.VERTICAL_SCROLLABLE;\n var visibleDays = this.getModifiers((0, _getVisibleDays[\"default\"])(currentMonth, numberOfMonths, enableOutsideDays, withoutTransitionMonths));\n return {\n currentMonth: currentMonth,\n visibleDays: visibleDays\n };\n };\n\n _proto.addModifier = function addModifier(updatedDays, day, modifier) {\n return (0, _modifiers.addModifier)(updatedDays, day, modifier, this.props, this.state);\n };\n\n _proto.deleteModifier = function deleteModifier(updatedDays, day, modifier) {\n return (0, _modifiers.deleteModifier)(updatedDays, day, modifier, this.props, this.state);\n };\n\n _proto.isBlocked = function isBlocked(day) {\n var _this$props10 = this.props,\n isDayBlocked = _this$props10.isDayBlocked,\n isOutsideRange = _this$props10.isOutsideRange;\n return isDayBlocked(day) || isOutsideRange(day);\n };\n\n _proto.isHovered = function isHovered(day) {\n var _ref2 = this.state || {},\n hoverDate = _ref2.hoverDate;\n\n return (0, _isSameDay[\"default\"])(day, hoverDate);\n };\n\n _proto.isSelected = function isSelected(day) {\n var date = this.props.date;\n return (0, _isSameDay[\"default\"])(day, date);\n };\n\n _proto.isToday = function isToday(day) {\n return (0, _isSameDay[\"default\"])(day, this.today);\n };\n\n _proto.isFirstDayOfWeek = function isFirstDayOfWeek(day) {\n var firstDayOfWeek = this.props.firstDayOfWeek;\n return day.day() === (firstDayOfWeek || _moment[\"default\"].localeData().firstDayOfWeek());\n };\n\n _proto.isLastDayOfWeek = function isLastDayOfWeek(day) {\n var firstDayOfWeek = this.props.firstDayOfWeek;\n return day.day() === ((firstDayOfWeek || _moment[\"default\"].localeData().firstDayOfWeek()) + 6) % 7;\n };\n\n _proto.render = function render() {\n var _this$props11 = this.props,\n numberOfMonths = _this$props11.numberOfMonths,\n orientation = _this$props11.orientation,\n monthFormat = _this$props11.monthFormat,\n renderMonthText = _this$props11.renderMonthText,\n renderWeekHeaderElement = _this$props11.renderWeekHeaderElement,\n dayPickerNavigationInlineStyles = _this$props11.dayPickerNavigationInlineStyles,\n navPosition = _this$props11.navPosition,\n navPrev = _this$props11.navPrev,\n navNext = _this$props11.navNext,\n renderNavPrevButton = _this$props11.renderNavPrevButton,\n renderNavNextButton = _this$props11.renderNavNextButton,\n noNavButtons = _this$props11.noNavButtons,\n noNavPrevButton = _this$props11.noNavPrevButton,\n noNavNextButton = _this$props11.noNavNextButton,\n onOutsideClick = _this$props11.onOutsideClick,\n onShiftTab = _this$props11.onShiftTab,\n onTab = _this$props11.onTab,\n withPortal = _this$props11.withPortal,\n focused = _this$props11.focused,\n enableOutsideDays = _this$props11.enableOutsideDays,\n hideKeyboardShortcutsPanel = _this$props11.hideKeyboardShortcutsPanel,\n daySize = _this$props11.daySize,\n firstDayOfWeek = _this$props11.firstDayOfWeek,\n renderCalendarDay = _this$props11.renderCalendarDay,\n renderDayContents = _this$props11.renderDayContents,\n renderCalendarInfo = _this$props11.renderCalendarInfo,\n renderMonthElement = _this$props11.renderMonthElement,\n calendarInfoPosition = _this$props11.calendarInfoPosition,\n isFocused = _this$props11.isFocused,\n isRTL = _this$props11.isRTL,\n phrases = _this$props11.phrases,\n dayAriaLabelFormat = _this$props11.dayAriaLabelFormat,\n onBlur = _this$props11.onBlur,\n showKeyboardShortcuts = _this$props11.showKeyboardShortcuts,\n weekDayFormat = _this$props11.weekDayFormat,\n verticalHeight = _this$props11.verticalHeight,\n noBorder = _this$props11.noBorder,\n transitionDuration = _this$props11.transitionDuration,\n verticalBorderSpacing = _this$props11.verticalBorderSpacing,\n horizontalMonthPadding = _this$props11.horizontalMonthPadding;\n var _this$state7 = this.state,\n currentMonth = _this$state7.currentMonth,\n visibleDays = _this$state7.visibleDays;\n return _react[\"default\"].createElement(_DayPicker[\"default\"], {\n orientation: orientation,\n enableOutsideDays: enableOutsideDays,\n modifiers: visibleDays,\n numberOfMonths: numberOfMonths,\n onDayClick: this.onDayClick,\n onDayMouseEnter: this.onDayMouseEnter,\n onDayMouseLeave: this.onDayMouseLeave,\n onPrevMonthClick: this.onPrevMonthClick,\n onNextMonthClick: this.onNextMonthClick,\n onMonthChange: this.onMonthChange,\n onYearChange: this.onYearChange,\n onGetNextScrollableMonths: this.onGetNextScrollableMonths,\n onGetPrevScrollableMonths: this.onGetPrevScrollableMonths,\n monthFormat: monthFormat,\n withPortal: withPortal,\n hidden: !focused,\n hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,\n initialVisibleMonth: function initialVisibleMonth() {\n return currentMonth;\n },\n firstDayOfWeek: firstDayOfWeek,\n onOutsideClick: onOutsideClick,\n dayPickerNavigationInlineStyles: dayPickerNavigationInlineStyles,\n navPosition: navPosition,\n navPrev: navPrev,\n navNext: navNext,\n renderNavPrevButton: renderNavPrevButton,\n renderNavNextButton: renderNavNextButton,\n noNavButtons: noNavButtons,\n noNavNextButton: noNavNextButton,\n noNavPrevButton: noNavPrevButton,\n renderMonthText: renderMonthText,\n renderWeekHeaderElement: renderWeekHeaderElement,\n renderCalendarDay: renderCalendarDay,\n renderDayContents: renderDayContents,\n renderCalendarInfo: renderCalendarInfo,\n renderMonthElement: renderMonthElement,\n calendarInfoPosition: calendarInfoPosition,\n isFocused: isFocused,\n getFirstFocusableDay: this.getFirstFocusableDay,\n onBlur: onBlur,\n onTab: onTab,\n onShiftTab: onShiftTab,\n phrases: phrases,\n daySize: daySize,\n isRTL: isRTL,\n showKeyboardShortcuts: showKeyboardShortcuts,\n weekDayFormat: weekDayFormat,\n dayAriaLabelFormat: dayAriaLabelFormat,\n verticalHeight: verticalHeight,\n noBorder: noBorder,\n transitionDuration: transitionDuration,\n verticalBorderSpacing: verticalBorderSpacing,\n horizontalMonthPadding: horizontalMonthPadding\n });\n };\n\n return DayPickerSingleDateController;\n}(_react[\"default\"].PureComponent || _react[\"default\"].Component);\n\nexports[\"default\"] = DayPickerSingleDateController;\nDayPickerSingleDateController.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nDayPickerSingleDateController.defaultProps = defaultProps;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _reactMomentProptypes = _interopRequireDefault(require(\"react-moment-proptypes\"));\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _defaultPhrases = require(\"../defaultPhrases\");\n\nvar _getPhrasePropTypes = _interopRequireDefault(require(\"../utils/getPhrasePropTypes\"));\n\nvar _IconPositionShape = _interopRequireDefault(require(\"./IconPositionShape\"));\n\nvar _OrientationShape = _interopRequireDefault(require(\"./OrientationShape\"));\n\nvar _AnchorDirectionShape = _interopRequireDefault(require(\"./AnchorDirectionShape\"));\n\nvar _OpenDirectionShape = _interopRequireDefault(require(\"./OpenDirectionShape\"));\n\nvar _DayOfWeekShape = _interopRequireDefault(require(\"./DayOfWeekShape\"));\n\nvar _CalendarInfoPositionShape = _interopRequireDefault(require(\"./CalendarInfoPositionShape\"));\n\nvar _NavPositionShape = _interopRequireDefault(require(\"./NavPositionShape\"));\n\nvar _default = {\n // required props for a functional interactive SingleDatePicker\n date: _reactMomentProptypes[\"default\"].momentObj,\n onDateChange: _propTypes[\"default\"].func.isRequired,\n focused: _propTypes[\"default\"].bool,\n onFocusChange: _propTypes[\"default\"].func.isRequired,\n // input related props\n id: _propTypes[\"default\"].string.isRequired,\n placeholder: _propTypes[\"default\"].string,\n ariaLabel: _propTypes[\"default\"].string,\n disabled: _propTypes[\"default\"].bool,\n required: _propTypes[\"default\"].bool,\n readOnly: _propTypes[\"default\"].bool,\n screenReaderInputMessage: _propTypes[\"default\"].string,\n showClearDate: _propTypes[\"default\"].bool,\n customCloseIcon: _propTypes[\"default\"].node,\n showDefaultInputIcon: _propTypes[\"default\"].bool,\n inputIconPosition: _IconPositionShape[\"default\"],\n customInputIcon: _propTypes[\"default\"].node,\n noBorder: _propTypes[\"default\"].bool,\n block: _propTypes[\"default\"].bool,\n small: _propTypes[\"default\"].bool,\n regular: _propTypes[\"default\"].bool,\n verticalSpacing: _airbnbPropTypes.nonNegativeInteger,\n keepFocusOnInput: _propTypes[\"default\"].bool,\n // calendar presentation and interaction related props\n renderMonthText: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes[\"default\"].func, 'renderMonthText', 'renderMonthElement'),\n renderMonthElement: (0, _airbnbPropTypes.mutuallyExclusiveProps)(_propTypes[\"default\"].func, 'renderMonthText', 'renderMonthElement'),\n renderWeekHeaderElement: _propTypes[\"default\"].func,\n orientation: _OrientationShape[\"default\"],\n anchorDirection: _AnchorDirectionShape[\"default\"],\n openDirection: _OpenDirectionShape[\"default\"],\n horizontalMargin: _propTypes[\"default\"].number,\n withPortal: _propTypes[\"default\"].bool,\n withFullScreenPortal: _propTypes[\"default\"].bool,\n appendToBody: _propTypes[\"default\"].bool,\n disableScroll: _propTypes[\"default\"].bool,\n initialVisibleMonth: _propTypes[\"default\"].func,\n firstDayOfWeek: _DayOfWeekShape[\"default\"],\n numberOfMonths: _propTypes[\"default\"].number,\n keepOpenOnDateSelect: _propTypes[\"default\"].bool,\n reopenPickerOnClearDate: _propTypes[\"default\"].bool,\n renderCalendarInfo: _propTypes[\"default\"].func,\n calendarInfoPosition: _CalendarInfoPositionShape[\"default\"],\n hideKeyboardShortcutsPanel: _propTypes[\"default\"].bool,\n daySize: _airbnbPropTypes.nonNegativeInteger,\n isRTL: _propTypes[\"default\"].bool,\n verticalHeight: _airbnbPropTypes.nonNegativeInteger,\n transitionDuration: _airbnbPropTypes.nonNegativeInteger,\n horizontalMonthPadding: _airbnbPropTypes.nonNegativeInteger,\n // navigation related props\n dayPickerNavigationInlineStyles: _propTypes[\"default\"].object,\n navPosition: _NavPositionShape[\"default\"],\n navPrev: _propTypes[\"default\"].node,\n navNext: _propTypes[\"default\"].node,\n renderNavPrevButton: _propTypes[\"default\"].func,\n renderNavNextButton: _propTypes[\"default\"].func,\n onPrevMonthClick: _propTypes[\"default\"].func,\n onNextMonthClick: _propTypes[\"default\"].func,\n onClose: _propTypes[\"default\"].func,\n // day presentation and interaction related props\n renderCalendarDay: _propTypes[\"default\"].func,\n renderDayContents: _propTypes[\"default\"].func,\n enableOutsideDays: _propTypes[\"default\"].bool,\n isDayBlocked: _propTypes[\"default\"].func,\n isOutsideRange: _propTypes[\"default\"].func,\n isDayHighlighted: _propTypes[\"default\"].func,\n // internationalization props\n displayFormat: _propTypes[\"default\"].oneOfType([_propTypes[\"default\"].string, _propTypes[\"default\"].func]),\n monthFormat: _propTypes[\"default\"].string,\n weekDayFormat: _propTypes[\"default\"].string,\n phrases: _propTypes[\"default\"].shape((0, _getPhrasePropTypes[\"default\"])(_defaultPhrases.SingleDatePickerPhrases)),\n dayAriaLabelFormat: _propTypes[\"default\"].string\n};\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _reactWithStyles = require(\"react-with-styles\");\n\nvar _defaultPhrases = require(\"../defaultPhrases\");\n\nvar _getPhrasePropTypes = _interopRequireDefault(require(\"../utils/getPhrasePropTypes\"));\n\nvar _noflip = _interopRequireDefault(require(\"../utils/noflip\"));\n\nvar _DateInput = _interopRequireDefault(require(\"./DateInput\"));\n\nvar _IconPositionShape = _interopRequireDefault(require(\"../shapes/IconPositionShape\"));\n\nvar _CloseButton = _interopRequireDefault(require(\"./CloseButton\"));\n\nvar _CalendarIcon = _interopRequireDefault(require(\"./CalendarIcon\"));\n\nvar _OpenDirectionShape = _interopRequireDefault(require(\"../shapes/OpenDirectionShape\"));\n\nvar _constants = require(\"../constants\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nvar propTypes = process.env.NODE_ENV !== \"production\" ? (0, _airbnbPropTypes.forbidExtraProps)(_objectSpread({}, _reactWithStyles.withStylesPropTypes, {\n id: _propTypes[\"default\"].string.isRequired,\n children: _propTypes[\"default\"].node,\n placeholder: _propTypes[\"default\"].string,\n ariaLabel: _propTypes[\"default\"].string,\n displayValue: _propTypes[\"default\"].string,\n screenReaderMessage: _propTypes[\"default\"].string,\n focused: _propTypes[\"default\"].bool,\n isFocused: _propTypes[\"default\"].bool,\n // describes actual DOM focus\n disabled: _propTypes[\"default\"].bool,\n required: _propTypes[\"default\"].bool,\n readOnly: _propTypes[\"default\"].bool,\n openDirection: _OpenDirectionShape[\"default\"],\n showCaret: _propTypes[\"default\"].bool,\n showClearDate: _propTypes[\"default\"].bool,\n customCloseIcon: _propTypes[\"default\"].node,\n showDefaultInputIcon: _propTypes[\"default\"].bool,\n inputIconPosition: _IconPositionShape[\"default\"],\n customInputIcon: _propTypes[\"default\"].node,\n isRTL: _propTypes[\"default\"].bool,\n noBorder: _propTypes[\"default\"].bool,\n block: _propTypes[\"default\"].bool,\n small: _propTypes[\"default\"].bool,\n regular: _propTypes[\"default\"].bool,\n verticalSpacing: _airbnbPropTypes.nonNegativeInteger,\n onChange: _propTypes[\"default\"].func,\n onClearDate: _propTypes[\"default\"].func,\n onFocus: _propTypes[\"default\"].func,\n onKeyDownShiftTab: _propTypes[\"default\"].func,\n onKeyDownTab: _propTypes[\"default\"].func,\n onKeyDownArrowDown: _propTypes[\"default\"].func,\n onKeyDownQuestionMark: _propTypes[\"default\"].func,\n // i18n\n phrases: _propTypes[\"default\"].shape((0, _getPhrasePropTypes[\"default\"])(_defaultPhrases.SingleDatePickerInputPhrases))\n})) : {};\nvar defaultProps = {\n children: null,\n placeholder: 'Select Date',\n ariaLabel: undefined,\n displayValue: '',\n screenReaderMessage: '',\n focused: false,\n isFocused: false,\n disabled: false,\n required: false,\n readOnly: false,\n openDirection: _constants.OPEN_DOWN,\n showCaret: false,\n showClearDate: false,\n showDefaultInputIcon: false,\n inputIconPosition: _constants.ICON_BEFORE_POSITION,\n customCloseIcon: null,\n customInputIcon: null,\n isRTL: false,\n noBorder: false,\n block: false,\n small: false,\n regular: false,\n verticalSpacing: undefined,\n onChange: function onChange() {},\n onClearDate: function onClearDate() {},\n onFocus: function onFocus() {},\n onKeyDownShiftTab: function onKeyDownShiftTab() {},\n onKeyDownTab: function onKeyDownTab() {},\n onKeyDownArrowDown: function onKeyDownArrowDown() {},\n onKeyDownQuestionMark: function onKeyDownQuestionMark() {},\n // i18n\n phrases: _defaultPhrases.SingleDatePickerInputPhrases\n};\n\nfunction SingleDatePickerInput(_ref) {\n var id = _ref.id,\n children = _ref.children,\n placeholder = _ref.placeholder,\n ariaLabel = _ref.ariaLabel,\n displayValue = _ref.displayValue,\n focused = _ref.focused,\n isFocused = _ref.isFocused,\n disabled = _ref.disabled,\n required = _ref.required,\n readOnly = _ref.readOnly,\n showCaret = _ref.showCaret,\n showClearDate = _ref.showClearDate,\n showDefaultInputIcon = _ref.showDefaultInputIcon,\n inputIconPosition = _ref.inputIconPosition,\n phrases = _ref.phrases,\n onClearDate = _ref.onClearDate,\n onChange = _ref.onChange,\n onFocus = _ref.onFocus,\n onKeyDownShiftTab = _ref.onKeyDownShiftTab,\n onKeyDownTab = _ref.onKeyDownTab,\n onKeyDownArrowDown = _ref.onKeyDownArrowDown,\n onKeyDownQuestionMark = _ref.onKeyDownQuestionMark,\n screenReaderMessage = _ref.screenReaderMessage,\n customCloseIcon = _ref.customCloseIcon,\n customInputIcon = _ref.customInputIcon,\n openDirection = _ref.openDirection,\n isRTL = _ref.isRTL,\n noBorder = _ref.noBorder,\n block = _ref.block,\n small = _ref.small,\n regular = _ref.regular,\n verticalSpacing = _ref.verticalSpacing,\n styles = _ref.styles;\n\n var calendarIcon = customInputIcon || _react[\"default\"].createElement(_CalendarIcon[\"default\"], (0, _reactWithStyles.css)(styles.SingleDatePickerInput_calendarIcon_svg));\n\n var closeIcon = customCloseIcon || _react[\"default\"].createElement(_CloseButton[\"default\"], (0, _reactWithStyles.css)(styles.SingleDatePickerInput_clearDate_svg, small && styles.SingleDatePickerInput_clearDate_svg__small));\n\n var screenReaderText = screenReaderMessage || phrases.keyboardForwardNavigationInstructions;\n\n var inputIcon = (showDefaultInputIcon || customInputIcon !== null) && _react[\"default\"].createElement(\"button\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.SingleDatePickerInput_calendarIcon), {\n type: \"button\",\n disabled: disabled,\n \"aria-label\": phrases.focusStartDate,\n onClick: onFocus\n }), calendarIcon);\n\n return _react[\"default\"].createElement(\"div\", (0, _reactWithStyles.css)(styles.SingleDatePickerInput, disabled && styles.SingleDatePickerInput__disabled, isRTL && styles.SingleDatePickerInput__rtl, !noBorder && styles.SingleDatePickerInput__withBorder, block && styles.SingleDatePickerInput__block, showClearDate && styles.SingleDatePickerInput__showClearDate), inputIconPosition === _constants.ICON_BEFORE_POSITION && inputIcon, _react[\"default\"].createElement(_DateInput[\"default\"], {\n id: id,\n placeholder: placeholder,\n ariaLabel: ariaLabel,\n displayValue: displayValue,\n screenReaderMessage: screenReaderText,\n focused: focused,\n isFocused: isFocused,\n disabled: disabled,\n required: required,\n readOnly: readOnly,\n showCaret: showCaret,\n onChange: onChange,\n onFocus: onFocus,\n onKeyDownShiftTab: onKeyDownShiftTab,\n onKeyDownTab: onKeyDownTab,\n onKeyDownArrowDown: onKeyDownArrowDown,\n onKeyDownQuestionMark: onKeyDownQuestionMark,\n openDirection: openDirection,\n verticalSpacing: verticalSpacing,\n small: small,\n regular: regular,\n block: block\n }), children, showClearDate && _react[\"default\"].createElement(\"button\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.SingleDatePickerInput_clearDate, small && styles.SingleDatePickerInput_clearDate__small, !customCloseIcon && styles.SingleDatePickerInput_clearDate__default, !displayValue && styles.SingleDatePickerInput_clearDate__hide), {\n type: \"button\",\n \"aria-label\": phrases.clearDate,\n disabled: disabled,\n onClick: onClearDate\n }), closeIcon), inputIconPosition === _constants.ICON_AFTER_POSITION && inputIcon);\n}\n\nSingleDatePickerInput.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nSingleDatePickerInput.defaultProps = defaultProps;\n\nvar _default = (0, _reactWithStyles.withStyles)(function (_ref2) {\n var _ref2$reactDates = _ref2.reactDates,\n border = _ref2$reactDates.border,\n color = _ref2$reactDates.color;\n return {\n SingleDatePickerInput: {\n display: 'inline-block',\n backgroundColor: color.background\n },\n SingleDatePickerInput__withBorder: {\n borderColor: color.border,\n borderWidth: border.pickerInput.borderWidth,\n borderStyle: border.pickerInput.borderStyle,\n borderRadius: border.pickerInput.borderRadius\n },\n SingleDatePickerInput__rtl: {\n direction: (0, _noflip[\"default\"])('rtl')\n },\n SingleDatePickerInput__disabled: {\n backgroundColor: color.disabled\n },\n SingleDatePickerInput__block: {\n display: 'block'\n },\n SingleDatePickerInput__showClearDate: {\n paddingRight: 30 // TODO: should be noflip wrapped and handled by an isRTL prop\n\n },\n SingleDatePickerInput_clearDate: {\n background: 'none',\n border: 0,\n color: 'inherit',\n font: 'inherit',\n lineHeight: 'normal',\n overflow: 'visible',\n cursor: 'pointer',\n padding: 10,\n margin: '0 10px 0 5px',\n // TODO: should be noflip wrapped and handled by an isRTL prop\n position: 'absolute',\n right: 0,\n // TODO: should be noflip wrapped and handled by an isRTL prop\n top: '50%',\n transform: 'translateY(-50%)'\n },\n SingleDatePickerInput_clearDate__default: {\n ':focus': {\n background: color.core.border,\n borderRadius: '50%'\n },\n ':hover': {\n background: color.core.border,\n borderRadius: '50%'\n }\n },\n SingleDatePickerInput_clearDate__small: {\n padding: 6\n },\n SingleDatePickerInput_clearDate__hide: {\n visibility: 'hidden'\n },\n SingleDatePickerInput_clearDate_svg: {\n fill: color.core.grayLight,\n height: 12,\n width: 15,\n verticalAlign: 'middle'\n },\n SingleDatePickerInput_clearDate_svg__small: {\n height: 9\n },\n SingleDatePickerInput_calendarIcon: {\n background: 'none',\n border: 0,\n color: 'inherit',\n font: 'inherit',\n lineHeight: 'normal',\n overflow: 'visible',\n cursor: 'pointer',\n display: 'inline-block',\n verticalAlign: 'middle',\n padding: 10,\n margin: '0 5px 0 10px' // TODO: should be noflip wrapped and handled by an isRTL prop\n\n },\n SingleDatePickerInput_calendarIcon_svg: {\n fill: color.core.grayLight,\n height: 15,\n width: 14,\n verticalAlign: 'middle'\n }\n };\n}, {\n pureComponent: typeof _react[\"default\"].PureComponent !== 'undefined'\n})(SingleDatePickerInput);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _enzymeShallowEqual = _interopRequireDefault(require(\"enzyme-shallow-equal\"));\n\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _reactMomentProptypes = _interopRequireDefault(require(\"react-moment-proptypes\"));\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _OpenDirectionShape = _interopRequireDefault(require(\"../shapes/OpenDirectionShape\"));\n\nvar _defaultPhrases = require(\"../defaultPhrases\");\n\nvar _getPhrasePropTypes = _interopRequireDefault(require(\"../utils/getPhrasePropTypes\"));\n\nvar _SingleDatePickerInput = _interopRequireDefault(require(\"./SingleDatePickerInput\"));\n\nvar _IconPositionShape = _interopRequireDefault(require(\"../shapes/IconPositionShape\"));\n\nvar _DisabledShape = _interopRequireDefault(require(\"../shapes/DisabledShape\"));\n\nvar _toMomentObject = _interopRequireDefault(require(\"../utils/toMomentObject\"));\n\nvar _toLocalizedDateString = _interopRequireDefault(require(\"../utils/toLocalizedDateString\"));\n\nvar _isInclusivelyAfterDay = _interopRequireDefault(require(\"../utils/isInclusivelyAfterDay\"));\n\nvar _constants = require(\"../constants\");\n\nvar propTypes = process.env.NODE_ENV !== \"production\" ? (0, _airbnbPropTypes.forbidExtraProps)({\n children: _propTypes[\"default\"].node,\n date: _reactMomentProptypes[\"default\"].momentObj,\n onDateChange: _propTypes[\"default\"].func.isRequired,\n focused: _propTypes[\"default\"].bool,\n onFocusChange: _propTypes[\"default\"].func.isRequired,\n id: _propTypes[\"default\"].string.isRequired,\n placeholder: _propTypes[\"default\"].string,\n ariaLabel: _propTypes[\"default\"].string,\n screenReaderMessage: _propTypes[\"default\"].string,\n showClearDate: _propTypes[\"default\"].bool,\n showCaret: _propTypes[\"default\"].bool,\n showDefaultInputIcon: _propTypes[\"default\"].bool,\n inputIconPosition: _IconPositionShape[\"default\"],\n disabled: _DisabledShape[\"default\"],\n required: _propTypes[\"default\"].bool,\n readOnly: _propTypes[\"default\"].bool,\n openDirection: _OpenDirectionShape[\"default\"],\n noBorder: _propTypes[\"default\"].bool,\n block: _propTypes[\"default\"].bool,\n small: _propTypes[\"default\"].bool,\n regular: _propTypes[\"default\"].bool,\n verticalSpacing: _airbnbPropTypes.nonNegativeInteger,\n keepOpenOnDateSelect: _propTypes[\"default\"].bool,\n reopenPickerOnClearDate: _propTypes[\"default\"].bool,\n isOutsideRange: _propTypes[\"default\"].func,\n displayFormat: _propTypes[\"default\"].oneOfType([_propTypes[\"default\"].string, _propTypes[\"default\"].func]),\n onClose: _propTypes[\"default\"].func,\n onKeyDownArrowDown: _propTypes[\"default\"].func,\n onKeyDownQuestionMark: _propTypes[\"default\"].func,\n customInputIcon: _propTypes[\"default\"].node,\n customCloseIcon: _propTypes[\"default\"].node,\n // accessibility\n isFocused: _propTypes[\"default\"].bool,\n // i18n\n phrases: _propTypes[\"default\"].shape((0, _getPhrasePropTypes[\"default\"])(_defaultPhrases.SingleDatePickerInputPhrases)),\n isRTL: _propTypes[\"default\"].bool\n}) : {};\nvar defaultProps = {\n children: null,\n date: null,\n focused: false,\n placeholder: '',\n ariaLabel: undefined,\n screenReaderMessage: 'Date',\n showClearDate: false,\n showCaret: false,\n showDefaultInputIcon: false,\n inputIconPosition: _constants.ICON_BEFORE_POSITION,\n disabled: false,\n required: false,\n readOnly: false,\n openDirection: _constants.OPEN_DOWN,\n noBorder: false,\n block: false,\n small: false,\n regular: false,\n verticalSpacing: undefined,\n keepOpenOnDateSelect: false,\n reopenPickerOnClearDate: false,\n isOutsideRange: function isOutsideRange(day) {\n return !(0, _isInclusivelyAfterDay[\"default\"])(day, (0, _moment[\"default\"])());\n },\n displayFormat: function displayFormat() {\n return _moment[\"default\"].localeData().longDateFormat('L');\n },\n onClose: function onClose() {},\n onKeyDownArrowDown: function onKeyDownArrowDown() {},\n onKeyDownQuestionMark: function onKeyDownQuestionMark() {},\n customInputIcon: null,\n customCloseIcon: null,\n // accessibility\n isFocused: false,\n // i18n\n phrases: _defaultPhrases.SingleDatePickerInputPhrases,\n isRTL: false\n};\n\nvar SingleDatePickerInputController =\n/*#__PURE__*/\nfunction (_ref) {\n (0, _inheritsLoose2[\"default\"])(SingleDatePickerInputController, _ref);\n var _proto = SingleDatePickerInputController.prototype;\n\n _proto[!_react[\"default\"].PureComponent && \"shouldComponentUpdate\"] = function (nextProps, nextState) {\n return !(0, _enzymeShallowEqual[\"default\"])(this.props, nextProps) || !(0, _enzymeShallowEqual[\"default\"])(this.state, nextState);\n };\n\n function SingleDatePickerInputController(props) {\n var _this;\n\n _this = _ref.call(this, props) || this;\n _this.onChange = _this.onChange.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onFocus = _this.onFocus.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onClearFocus = _this.onClearFocus.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.clearDate = _this.clearDate.bind((0, _assertThisInitialized2[\"default\"])(_this));\n return _this;\n }\n\n _proto.onChange = function onChange(dateString) {\n var _this$props = this.props,\n isOutsideRange = _this$props.isOutsideRange,\n keepOpenOnDateSelect = _this$props.keepOpenOnDateSelect,\n onDateChange = _this$props.onDateChange,\n onFocusChange = _this$props.onFocusChange,\n onClose = _this$props.onClose;\n var newDate = (0, _toMomentObject[\"default\"])(dateString, this.getDisplayFormat());\n var isValid = newDate && !isOutsideRange(newDate);\n\n if (isValid) {\n onDateChange(newDate);\n\n if (!keepOpenOnDateSelect) {\n onFocusChange({\n focused: false\n });\n onClose({\n date: newDate\n });\n }\n } else {\n onDateChange(null);\n }\n };\n\n _proto.onFocus = function onFocus() {\n var _this$props2 = this.props,\n onFocusChange = _this$props2.onFocusChange,\n disabled = _this$props2.disabled;\n\n if (!disabled) {\n onFocusChange({\n focused: true\n });\n }\n };\n\n _proto.onClearFocus = function onClearFocus() {\n var _this$props3 = this.props,\n focused = _this$props3.focused,\n onFocusChange = _this$props3.onFocusChange,\n onClose = _this$props3.onClose,\n date = _this$props3.date;\n if (!focused) return;\n onFocusChange({\n focused: false\n });\n onClose({\n date: date\n });\n };\n\n _proto.getDisplayFormat = function getDisplayFormat() {\n var displayFormat = this.props.displayFormat;\n return typeof displayFormat === 'string' ? displayFormat : displayFormat();\n };\n\n _proto.getDateString = function getDateString(date) {\n var displayFormat = this.getDisplayFormat();\n\n if (date && displayFormat) {\n return date && date.format(displayFormat);\n }\n\n return (0, _toLocalizedDateString[\"default\"])(date);\n };\n\n _proto.clearDate = function clearDate() {\n var _this$props4 = this.props,\n onDateChange = _this$props4.onDateChange,\n reopenPickerOnClearDate = _this$props4.reopenPickerOnClearDate,\n onFocusChange = _this$props4.onFocusChange;\n onDateChange(null);\n\n if (reopenPickerOnClearDate) {\n onFocusChange({\n focused: true\n });\n }\n };\n\n _proto.render = function render() {\n var _this$props5 = this.props,\n children = _this$props5.children,\n id = _this$props5.id,\n placeholder = _this$props5.placeholder,\n ariaLabel = _this$props5.ariaLabel,\n disabled = _this$props5.disabled,\n focused = _this$props5.focused,\n isFocused = _this$props5.isFocused,\n required = _this$props5.required,\n readOnly = _this$props5.readOnly,\n openDirection = _this$props5.openDirection,\n showClearDate = _this$props5.showClearDate,\n showCaret = _this$props5.showCaret,\n showDefaultInputIcon = _this$props5.showDefaultInputIcon,\n inputIconPosition = _this$props5.inputIconPosition,\n customCloseIcon = _this$props5.customCloseIcon,\n customInputIcon = _this$props5.customInputIcon,\n date = _this$props5.date,\n phrases = _this$props5.phrases,\n onKeyDownArrowDown = _this$props5.onKeyDownArrowDown,\n onKeyDownQuestionMark = _this$props5.onKeyDownQuestionMark,\n screenReaderMessage = _this$props5.screenReaderMessage,\n isRTL = _this$props5.isRTL,\n noBorder = _this$props5.noBorder,\n block = _this$props5.block,\n small = _this$props5.small,\n regular = _this$props5.regular,\n verticalSpacing = _this$props5.verticalSpacing;\n var displayValue = this.getDateString(date);\n return _react[\"default\"].createElement(_SingleDatePickerInput[\"default\"], {\n id: id,\n placeholder: placeholder,\n ariaLabel: ariaLabel,\n focused: focused,\n isFocused: isFocused,\n disabled: disabled,\n required: required,\n readOnly: readOnly,\n openDirection: openDirection,\n showCaret: showCaret,\n onClearDate: this.clearDate,\n showClearDate: showClearDate,\n showDefaultInputIcon: showDefaultInputIcon,\n inputIconPosition: inputIconPosition,\n customCloseIcon: customCloseIcon,\n customInputIcon: customInputIcon,\n displayValue: displayValue,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onKeyDownShiftTab: this.onClearFocus,\n onKeyDownArrowDown: onKeyDownArrowDown,\n onKeyDownQuestionMark: onKeyDownQuestionMark,\n screenReaderMessage: screenReaderMessage,\n phrases: phrases,\n isRTL: isRTL,\n noBorder: noBorder,\n block: block,\n small: small,\n regular: regular,\n verticalSpacing: verticalSpacing\n }, children);\n };\n\n return SingleDatePickerInputController;\n}(_react[\"default\"].PureComponent || _react[\"default\"].Component);\n\nexports[\"default\"] = SingleDatePickerInputController;\nSingleDatePickerInputController.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nSingleDatePickerInputController.defaultProps = defaultProps;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = exports.PureSingleDatePicker = void 0;\n\nvar _enzymeShallowEqual = _interopRequireDefault(require(\"enzyme-shallow-equal\"));\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _reactWithStyles = require(\"react-with-styles\");\n\nvar _reactPortal = require(\"react-portal\");\n\nvar _airbnbPropTypes = require(\"airbnb-prop-types\");\n\nvar _consolidatedEvents = require(\"consolidated-events\");\n\nvar _isTouchDevice = _interopRequireDefault(require(\"is-touch-device\"));\n\nvar _reactOutsideClickHandler = _interopRequireDefault(require(\"react-outside-click-handler\"));\n\nvar _SingleDatePickerShape = _interopRequireDefault(require(\"../shapes/SingleDatePickerShape\"));\n\nvar _defaultPhrases = require(\"../defaultPhrases\");\n\nvar _getResponsiveContainerStyles = _interopRequireDefault(require(\"../utils/getResponsiveContainerStyles\"));\n\nvar _getDetachedContainerStyles = _interopRequireDefault(require(\"../utils/getDetachedContainerStyles\"));\n\nvar _getInputHeight = _interopRequireDefault(require(\"../utils/getInputHeight\"));\n\nvar _isInclusivelyAfterDay = _interopRequireDefault(require(\"../utils/isInclusivelyAfterDay\"));\n\nvar _disableScroll2 = _interopRequireDefault(require(\"../utils/disableScroll\"));\n\nvar _noflip = _interopRequireDefault(require(\"../utils/noflip\"));\n\nvar _SingleDatePickerInputController = _interopRequireDefault(require(\"./SingleDatePickerInputController\"));\n\nvar _DayPickerSingleDateController = _interopRequireDefault(require(\"./DayPickerSingleDateController\"));\n\nvar _CloseButton = _interopRequireDefault(require(\"./CloseButton\"));\n\nvar _constants = require(\"../constants\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nvar propTypes = process.env.NODE_ENV !== \"production\" ? (0, _airbnbPropTypes.forbidExtraProps)(_objectSpread({}, _reactWithStyles.withStylesPropTypes, {}, _SingleDatePickerShape[\"default\"])) : {};\nvar defaultProps = {\n // required props for a functional interactive SingleDatePicker\n date: null,\n focused: false,\n // input related props\n id: 'date',\n placeholder: 'Date',\n ariaLabel: undefined,\n disabled: false,\n required: false,\n readOnly: false,\n screenReaderInputMessage: '',\n showClearDate: false,\n showDefaultInputIcon: false,\n inputIconPosition: _constants.ICON_BEFORE_POSITION,\n customInputIcon: null,\n customCloseIcon: null,\n noBorder: false,\n block: false,\n small: false,\n regular: false,\n verticalSpacing: _constants.DEFAULT_VERTICAL_SPACING,\n keepFocusOnInput: false,\n // calendar presentation and interaction related props\n orientation: _constants.HORIZONTAL_ORIENTATION,\n anchorDirection: _constants.ANCHOR_LEFT,\n openDirection: _constants.OPEN_DOWN,\n horizontalMargin: 0,\n withPortal: false,\n withFullScreenPortal: false,\n appendToBody: false,\n disableScroll: false,\n initialVisibleMonth: null,\n firstDayOfWeek: null,\n numberOfMonths: 2,\n keepOpenOnDateSelect: false,\n reopenPickerOnClearDate: false,\n renderCalendarInfo: null,\n calendarInfoPosition: _constants.INFO_POSITION_BOTTOM,\n hideKeyboardShortcutsPanel: false,\n daySize: _constants.DAY_SIZE,\n isRTL: false,\n verticalHeight: null,\n transitionDuration: undefined,\n horizontalMonthPadding: 13,\n // navigation related props\n dayPickerNavigationInlineStyles: null,\n navPosition: _constants.NAV_POSITION_TOP,\n navPrev: null,\n navNext: null,\n renderNavPrevButton: null,\n renderNavNextButton: null,\n onPrevMonthClick: function onPrevMonthClick() {},\n onNextMonthClick: function onNextMonthClick() {},\n onClose: function onClose() {},\n // month presentation and interaction related props\n renderMonthText: null,\n renderWeekHeaderElement: null,\n // day presentation and interaction related props\n renderCalendarDay: undefined,\n renderDayContents: null,\n renderMonthElement: null,\n enableOutsideDays: false,\n isDayBlocked: function isDayBlocked() {\n return false;\n },\n isOutsideRange: function isOutsideRange(day) {\n return !(0, _isInclusivelyAfterDay[\"default\"])(day, (0, _moment[\"default\"])());\n },\n isDayHighlighted: function isDayHighlighted() {},\n // internationalization props\n displayFormat: function displayFormat() {\n return _moment[\"default\"].localeData().longDateFormat('L');\n },\n monthFormat: 'MMMM YYYY',\n weekDayFormat: 'dd',\n phrases: _defaultPhrases.SingleDatePickerPhrases,\n dayAriaLabelFormat: undefined\n};\n\nvar SingleDatePicker =\n/*#__PURE__*/\nfunction (_ref) {\n (0, _inheritsLoose2[\"default\"])(SingleDatePicker, _ref);\n var _proto = SingleDatePicker.prototype;\n\n _proto[!_react[\"default\"].PureComponent && \"shouldComponentUpdate\"] = function (nextProps, nextState) {\n return !(0, _enzymeShallowEqual[\"default\"])(this.props, nextProps) || !(0, _enzymeShallowEqual[\"default\"])(this.state, nextState);\n };\n\n function SingleDatePicker(props) {\n var _this;\n\n _this = _ref.call(this, props) || this;\n _this.isTouchDevice = false;\n _this.state = {\n dayPickerContainerStyles: {},\n isDayPickerFocused: false,\n isInputFocused: false,\n showKeyboardShortcuts: false\n };\n _this.onFocusOut = _this.onFocusOut.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onOutsideClick = _this.onOutsideClick.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onInputFocus = _this.onInputFocus.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onDayPickerFocus = _this.onDayPickerFocus.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.onDayPickerBlur = _this.onDayPickerBlur.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.showKeyboardShortcutsPanel = _this.showKeyboardShortcutsPanel.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.responsivizePickerPosition = _this.responsivizePickerPosition.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.disableScroll = _this.disableScroll.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.setDayPickerContainerRef = _this.setDayPickerContainerRef.bind((0, _assertThisInitialized2[\"default\"])(_this));\n _this.setContainerRef = _this.setContainerRef.bind((0, _assertThisInitialized2[\"default\"])(_this));\n return _this;\n }\n /* istanbul ignore next */\n\n\n _proto.componentDidMount = function componentDidMount() {\n this.removeResizeEventListener = (0, _consolidatedEvents.addEventListener)(window, 'resize', this.responsivizePickerPosition, {\n passive: true\n });\n this.responsivizePickerPosition();\n this.disableScroll();\n var focused = this.props.focused;\n\n if (focused) {\n this.setState({\n isInputFocused: true\n });\n }\n\n this.isTouchDevice = (0, _isTouchDevice[\"default\"])();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var focused = this.props.focused;\n\n if (!prevProps.focused && focused) {\n this.responsivizePickerPosition();\n this.disableScroll();\n } else if (prevProps.focused && !focused) {\n if (this.enableScroll) this.enableScroll();\n }\n }\n /* istanbul ignore next */\n ;\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n if (this.removeResizeEventListener) this.removeResizeEventListener();\n if (this.removeFocusOutEventListener) this.removeFocusOutEventListener();\n if (this.enableScroll) this.enableScroll();\n };\n\n _proto.onOutsideClick = function onOutsideClick(event) {\n var _this$props = this.props,\n focused = _this$props.focused,\n onFocusChange = _this$props.onFocusChange,\n onClose = _this$props.onClose,\n date = _this$props.date,\n appendToBody = _this$props.appendToBody;\n if (!focused) return;\n if (appendToBody && this.dayPickerContainer.contains(event.target)) return;\n this.setState({\n isInputFocused: false,\n isDayPickerFocused: false,\n showKeyboardShortcuts: false\n });\n onFocusChange({\n focused: false\n });\n onClose({\n date: date\n });\n };\n\n _proto.onInputFocus = function onInputFocus(_ref2) {\n var focused = _ref2.focused;\n var _this$props2 = this.props,\n onFocusChange = _this$props2.onFocusChange,\n readOnly = _this$props2.readOnly,\n withPortal = _this$props2.withPortal,\n withFullScreenPortal = _this$props2.withFullScreenPortal,\n keepFocusOnInput = _this$props2.keepFocusOnInput;\n\n if (focused) {\n var withAnyPortal = withPortal || withFullScreenPortal;\n var moveFocusToDayPicker = withAnyPortal || readOnly && !keepFocusOnInput || this.isTouchDevice && !keepFocusOnInput;\n\n if (moveFocusToDayPicker) {\n this.onDayPickerFocus();\n } else {\n this.onDayPickerBlur();\n }\n }\n\n onFocusChange({\n focused: focused\n });\n };\n\n _proto.onDayPickerFocus = function onDayPickerFocus() {\n this.setState({\n isInputFocused: false,\n isDayPickerFocused: true,\n showKeyboardShortcuts: false\n });\n };\n\n _proto.onDayPickerBlur = function onDayPickerBlur() {\n this.setState({\n isInputFocused: true,\n isDayPickerFocused: false,\n showKeyboardShortcuts: false\n });\n };\n\n _proto.onFocusOut = function onFocusOut(e) {\n var onFocusChange = this.props.onFocusChange; // In cases where **relatedTarget** is not null, it points to the right\n // element here. However, in cases where it is null (such as clicking on a\n // specific day) or it is **document.body** (IE11), the appropriate value is **event.target**.\n //\n // We handle both situations here by using the ` || ` operator to fallback\n // to *event.target** when **relatedTarget** is not provided.\n\n var relatedTarget = e.relatedTarget === document.body ? e.target : e.relatedTarget || e.target;\n if (this.dayPickerContainer.contains(relatedTarget)) return;\n onFocusChange({\n focused: false\n });\n };\n\n _proto.setDayPickerContainerRef = function setDayPickerContainerRef(ref) {\n if (ref === this.dayPickerContainer) return;\n this.removeEventListeners();\n this.dayPickerContainer = ref;\n if (!ref) return;\n this.addEventListeners();\n };\n\n _proto.setContainerRef = function setContainerRef(ref) {\n this.container = ref;\n };\n\n _proto.addEventListeners = function addEventListeners() {\n // We manually set event because React has not implemented onFocusIn/onFocusOut.\n // Keep an eye on https://github.com/facebook/react/issues/6410 for updates\n // We use \"blur w/ useCapture param\" vs \"onfocusout\" for FF browser support\n this.removeFocusOutEventListener = (0, _consolidatedEvents.addEventListener)(this.dayPickerContainer, 'focusout', this.onFocusOut);\n };\n\n _proto.removeEventListeners = function removeEventListeners() {\n if (this.removeFocusOutEventListener) this.removeFocusOutEventListener();\n };\n\n _proto.disableScroll = function disableScroll() {\n var _this$props3 = this.props,\n appendToBody = _this$props3.appendToBody,\n propDisableScroll = _this$props3.disableScroll,\n focused = _this$props3.focused;\n if (!appendToBody && !propDisableScroll) return;\n if (!focused) return; // Disable scroll for every ancestor of this up to the\n // document level. This ensures the input and the picker never move. Other\n // sibling elements or the picker itself can scroll.\n\n this.enableScroll = (0, _disableScroll2[\"default\"])(this.container);\n }\n /* istanbul ignore next */\n ;\n\n _proto.responsivizePickerPosition = function responsivizePickerPosition() {\n // It's possible the portal props have been changed in response to window resizes\n // So let's ensure we reset this back to the base state each time\n this.setState({\n dayPickerContainerStyles: {}\n });\n var _this$props4 = this.props,\n openDirection = _this$props4.openDirection,\n anchorDirection = _this$props4.anchorDirection,\n horizontalMargin = _this$props4.horizontalMargin,\n withPortal = _this$props4.withPortal,\n withFullScreenPortal = _this$props4.withFullScreenPortal,\n appendToBody = _this$props4.appendToBody,\n focused = _this$props4.focused;\n var dayPickerContainerStyles = this.state.dayPickerContainerStyles;\n\n if (!focused) {\n return;\n }\n\n var isAnchoredLeft = anchorDirection === _constants.ANCHOR_LEFT;\n\n if (!withPortal && !withFullScreenPortal) {\n var containerRect = this.dayPickerContainer.getBoundingClientRect();\n var currentOffset = dayPickerContainerStyles[anchorDirection] || 0;\n var containerEdge = isAnchoredLeft ? containerRect[_constants.ANCHOR_RIGHT] : containerRect[_constants.ANCHOR_LEFT];\n this.setState({\n dayPickerContainerStyles: _objectSpread({}, (0, _getResponsiveContainerStyles[\"default\"])(anchorDirection, currentOffset, containerEdge, horizontalMargin), {}, appendToBody && (0, _getDetachedContainerStyles[\"default\"])(openDirection, anchorDirection, this.container))\n });\n }\n };\n\n _proto.showKeyboardShortcutsPanel = function showKeyboardShortcutsPanel() {\n this.setState({\n isInputFocused: false,\n isDayPickerFocused: true,\n showKeyboardShortcuts: true\n });\n };\n\n _proto.maybeRenderDayPickerWithPortal = function maybeRenderDayPickerWithPortal() {\n var _this$props5 = this.props,\n focused = _this$props5.focused,\n withPortal = _this$props5.withPortal,\n withFullScreenPortal = _this$props5.withFullScreenPortal,\n appendToBody = _this$props5.appendToBody;\n\n if (!focused) {\n return null;\n }\n\n if (withPortal || withFullScreenPortal || appendToBody) {\n return _react[\"default\"].createElement(_reactPortal.Portal, null, this.renderDayPicker());\n }\n\n return this.renderDayPicker();\n };\n\n _proto.renderDayPicker = function renderDayPicker() {\n var _this$props6 = this.props,\n anchorDirection = _this$props6.anchorDirection,\n openDirection = _this$props6.openDirection,\n onDateChange = _this$props6.onDateChange,\n date = _this$props6.date,\n onFocusChange = _this$props6.onFocusChange,\n focused = _this$props6.focused,\n enableOutsideDays = _this$props6.enableOutsideDays,\n numberOfMonths = _this$props6.numberOfMonths,\n orientation = _this$props6.orientation,\n monthFormat = _this$props6.monthFormat,\n dayPickerNavigationInlineStyles = _this$props6.dayPickerNavigationInlineStyles,\n navPosition = _this$props6.navPosition,\n navPrev = _this$props6.navPrev,\n navNext = _this$props6.navNext,\n renderNavPrevButton = _this$props6.renderNavPrevButton,\n renderNavNextButton = _this$props6.renderNavNextButton,\n onPrevMonthClick = _this$props6.onPrevMonthClick,\n onNextMonthClick = _this$props6.onNextMonthClick,\n onClose = _this$props6.onClose,\n withPortal = _this$props6.withPortal,\n withFullScreenPortal = _this$props6.withFullScreenPortal,\n keepOpenOnDateSelect = _this$props6.keepOpenOnDateSelect,\n initialVisibleMonth = _this$props6.initialVisibleMonth,\n renderMonthText = _this$props6.renderMonthText,\n renderWeekHeaderElement = _this$props6.renderWeekHeaderElement,\n renderCalendarDay = _this$props6.renderCalendarDay,\n renderDayContents = _this$props6.renderDayContents,\n renderCalendarInfo = _this$props6.renderCalendarInfo,\n renderMonthElement = _this$props6.renderMonthElement,\n calendarInfoPosition = _this$props6.calendarInfoPosition,\n hideKeyboardShortcutsPanel = _this$props6.hideKeyboardShortcutsPanel,\n firstDayOfWeek = _this$props6.firstDayOfWeek,\n customCloseIcon = _this$props6.customCloseIcon,\n phrases = _this$props6.phrases,\n dayAriaLabelFormat = _this$props6.dayAriaLabelFormat,\n daySize = _this$props6.daySize,\n isRTL = _this$props6.isRTL,\n isOutsideRange = _this$props6.isOutsideRange,\n isDayBlocked = _this$props6.isDayBlocked,\n isDayHighlighted = _this$props6.isDayHighlighted,\n weekDayFormat = _this$props6.weekDayFormat,\n styles = _this$props6.styles,\n verticalHeight = _this$props6.verticalHeight,\n transitionDuration = _this$props6.transitionDuration,\n verticalSpacing = _this$props6.verticalSpacing,\n horizontalMonthPadding = _this$props6.horizontalMonthPadding,\n small = _this$props6.small,\n reactDates = _this$props6.theme.reactDates;\n var _this$state = this.state,\n dayPickerContainerStyles = _this$state.dayPickerContainerStyles,\n isDayPickerFocused = _this$state.isDayPickerFocused,\n showKeyboardShortcuts = _this$state.showKeyboardShortcuts;\n var onOutsideClick = !withFullScreenPortal && withPortal ? this.onOutsideClick : undefined;\n\n var closeIcon = customCloseIcon || _react[\"default\"].createElement(_CloseButton[\"default\"], null);\n\n var inputHeight = (0, _getInputHeight[\"default\"])(reactDates, small);\n var withAnyPortal = withPortal || withFullScreenPortal;\n /* eslint-disable jsx-a11y/no-static-element-interactions */\n\n /* eslint-disable jsx-a11y/click-events-have-key-events */\n\n return _react[\"default\"].createElement(\"div\", (0, _extends2[\"default\"])({\n ref: this.setDayPickerContainerRef\n }, (0, _reactWithStyles.css)(styles.SingleDatePicker_picker, anchorDirection === _constants.ANCHOR_LEFT && styles.SingleDatePicker_picker__directionLeft, anchorDirection === _constants.ANCHOR_RIGHT && styles.SingleDatePicker_picker__directionRight, openDirection === _constants.OPEN_DOWN && styles.SingleDatePicker_picker__openDown, openDirection === _constants.OPEN_UP && styles.SingleDatePicker_picker__openUp, !withAnyPortal && openDirection === _constants.OPEN_DOWN && {\n top: inputHeight + verticalSpacing\n }, !withAnyPortal && openDirection === _constants.OPEN_UP && {\n bottom: inputHeight + verticalSpacing\n }, orientation === _constants.HORIZONTAL_ORIENTATION && styles.SingleDatePicker_picker__horizontal, orientation === _constants.VERTICAL_ORIENTATION && styles.SingleDatePicker_picker__vertical, withAnyPortal && styles.SingleDatePicker_picker__portal, withFullScreenPortal && styles.SingleDatePicker_picker__fullScreenPortal, isRTL && styles.SingleDatePicker_picker__rtl, dayPickerContainerStyles), {\n onClick: onOutsideClick\n }), _react[\"default\"].createElement(_DayPickerSingleDateController[\"default\"], {\n date: date,\n onDateChange: onDateChange,\n onFocusChange: onFocusChange,\n orientation: orientation,\n enableOutsideDays: enableOutsideDays,\n numberOfMonths: numberOfMonths,\n monthFormat: monthFormat,\n withPortal: withAnyPortal,\n focused: focused,\n keepOpenOnDateSelect: keepOpenOnDateSelect,\n hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,\n initialVisibleMonth: initialVisibleMonth,\n dayPickerNavigationInlineStyles: dayPickerNavigationInlineStyles,\n navPosition: navPosition,\n navPrev: navPrev,\n navNext: navNext,\n renderNavPrevButton: renderNavPrevButton,\n renderNavNextButton: renderNavNextButton,\n onPrevMonthClick: onPrevMonthClick,\n onNextMonthClick: onNextMonthClick,\n onClose: onClose,\n renderMonthText: renderMonthText,\n renderWeekHeaderElement: renderWeekHeaderElement,\n renderCalendarDay: renderCalendarDay,\n renderDayContents: renderDayContents,\n renderCalendarInfo: renderCalendarInfo,\n renderMonthElement: renderMonthElement,\n calendarInfoPosition: calendarInfoPosition,\n isFocused: isDayPickerFocused,\n showKeyboardShortcuts: showKeyboardShortcuts,\n onBlur: this.onDayPickerBlur,\n phrases: phrases,\n dayAriaLabelFormat: dayAriaLabelFormat,\n daySize: daySize,\n isRTL: isRTL,\n isOutsideRange: isOutsideRange,\n isDayBlocked: isDayBlocked,\n isDayHighlighted: isDayHighlighted,\n firstDayOfWeek: firstDayOfWeek,\n weekDayFormat: weekDayFormat,\n verticalHeight: verticalHeight,\n transitionDuration: transitionDuration,\n horizontalMonthPadding: horizontalMonthPadding\n }), withFullScreenPortal && _react[\"default\"].createElement(\"button\", (0, _extends2[\"default\"])({}, (0, _reactWithStyles.css)(styles.SingleDatePicker_closeButton), {\n \"aria-label\": phrases.closeDatePicker,\n type: \"button\",\n onClick: this.onOutsideClick\n }), _react[\"default\"].createElement(\"div\", (0, _reactWithStyles.css)(styles.SingleDatePicker_closeButton_svg), closeIcon)));\n /* eslint-enable jsx-a11y/no-static-element-interactions */\n\n /* eslint-enable jsx-a11y/click-events-have-key-events */\n };\n\n _proto.render = function render() {\n var _this$props7 = this.props,\n id = _this$props7.id,\n placeholder = _this$props7.placeholder,\n ariaLabel = _this$props7.ariaLabel,\n disabled = _this$props7.disabled,\n focused = _this$props7.focused,\n required = _this$props7.required,\n readOnly = _this$props7.readOnly,\n openDirection = _this$props7.openDirection,\n showClearDate = _this$props7.showClearDate,\n showDefaultInputIcon = _this$props7.showDefaultInputIcon,\n inputIconPosition = _this$props7.inputIconPosition,\n customCloseIcon = _this$props7.customCloseIcon,\n customInputIcon = _this$props7.customInputIcon,\n date = _this$props7.date,\n onDateChange = _this$props7.onDateChange,\n displayFormat = _this$props7.displayFormat,\n phrases = _this$props7.phrases,\n withPortal = _this$props7.withPortal,\n withFullScreenPortal = _this$props7.withFullScreenPortal,\n screenReaderInputMessage = _this$props7.screenReaderInputMessage,\n isRTL = _this$props7.isRTL,\n noBorder = _this$props7.noBorder,\n block = _this$props7.block,\n small = _this$props7.small,\n regular = _this$props7.regular,\n verticalSpacing = _this$props7.verticalSpacing,\n reopenPickerOnClearDate = _this$props7.reopenPickerOnClearDate,\n keepOpenOnDateSelect = _this$props7.keepOpenOnDateSelect,\n styles = _this$props7.styles,\n isOutsideRange = _this$props7.isOutsideRange;\n var isInputFocused = this.state.isInputFocused;\n var enableOutsideClick = !withPortal && !withFullScreenPortal;\n var hideFang = verticalSpacing < _constants.FANG_HEIGHT_PX;\n\n var input = _react[\"default\"].createElement(_SingleDatePickerInputController[\"default\"], {\n id: id,\n placeholder: placeholder,\n ariaLabel: ariaLabel,\n focused: focused,\n isFocused: isInputFocused,\n disabled: disabled,\n required: required,\n readOnly: readOnly,\n openDirection: openDirection,\n showCaret: !withPortal && !withFullScreenPortal && !hideFang,\n showClearDate: showClearDate,\n showDefaultInputIcon: showDefaultInputIcon,\n inputIconPosition: inputIconPosition,\n isOutsideRange: isOutsideRange,\n customCloseIcon: customCloseIcon,\n customInputIcon: customInputIcon,\n date: date,\n onDateChange: onDateChange,\n displayFormat: displayFormat,\n onFocusChange: this.onInputFocus,\n onKeyDownArrowDown: this.onDayPickerFocus,\n onKeyDownQuestionMark: this.showKeyboardShortcutsPanel,\n screenReaderMessage: screenReaderInputMessage,\n phrases: phrases,\n isRTL: isRTL,\n noBorder: noBorder,\n block: block,\n small: small,\n regular: regular,\n verticalSpacing: verticalSpacing,\n reopenPickerOnClearDate: reopenPickerOnClearDate,\n keepOpenOnDateSelect: keepOpenOnDateSelect\n }, this.maybeRenderDayPickerWithPortal());\n\n return _react[\"default\"].createElement(\"div\", (0, _extends2[\"default\"])({\n ref: this.setContainerRef\n }, (0, _reactWithStyles.css)(styles.SingleDatePicker, block && styles.SingleDatePicker__block)), enableOutsideClick && _react[\"default\"].createElement(_reactOutsideClickHandler[\"default\"], {\n onOutsideClick: this.onOutsideClick\n }, input), enableOutsideClick || input);\n };\n\n return SingleDatePicker;\n}(_react[\"default\"].PureComponent || _react[\"default\"].Component);\n\nexports.PureSingleDatePicker = SingleDatePicker;\nSingleDatePicker.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nSingleDatePicker.defaultProps = defaultProps;\n\nvar _default = (0, _reactWithStyles.withStyles)(function (_ref3) {\n var _ref3$reactDates = _ref3.reactDates,\n color = _ref3$reactDates.color,\n zIndex = _ref3$reactDates.zIndex;\n return {\n SingleDatePicker: {\n position: 'relative',\n display: 'inline-block'\n },\n SingleDatePicker__block: {\n display: 'block'\n },\n SingleDatePicker_picker: {\n zIndex: zIndex + 1,\n backgroundColor: color.background,\n position: 'absolute'\n },\n SingleDatePicker_picker__rtl: {\n direction: (0, _noflip[\"default\"])('rtl')\n },\n SingleDatePicker_picker__directionLeft: {\n left: (0, _noflip[\"default\"])(0)\n },\n SingleDatePicker_picker__directionRight: {\n right: (0, _noflip[\"default\"])(0)\n },\n SingleDatePicker_picker__portal: {\n backgroundColor: 'rgba(0, 0, 0, 0.3)',\n position: 'fixed',\n top: 0,\n left: (0, _noflip[\"default\"])(0),\n height: '100%',\n width: '100%'\n },\n SingleDatePicker_picker__fullScreenPortal: {\n backgroundColor: color.background\n },\n SingleDatePicker_closeButton: {\n background: 'none',\n border: 0,\n color: 'inherit',\n font: 'inherit',\n lineHeight: 'normal',\n overflow: 'visible',\n cursor: 'pointer',\n position: 'absolute',\n top: 0,\n right: (0, _noflip[\"default\"])(0),\n padding: 15,\n zIndex: zIndex + 2,\n ':hover': {\n color: \"darken(\".concat(color.core.grayLighter, \", 10%)\"),\n textDecoration: 'none'\n },\n ':focus': {\n color: \"darken(\".concat(color.core.grayLighter, \", 10%)\"),\n textDecoration: 'none'\n }\n },\n SingleDatePicker_closeButton_svg: {\n height: 15,\n width: 15,\n fill: color.core.grayLighter\n }\n };\n}, {\n pureComponent: typeof _react[\"default\"].PureComponent !== 'undefined'\n})(SingleDatePicker);\n\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = isInclusivelyBeforeDay;\n\nvar _moment = _interopRequireDefault(require(\"moment\"));\n\nvar _isAfterDay = _interopRequireDefault(require(\"./isAfterDay\"));\n\nfunction isInclusivelyBeforeDay(a, b) {\n if (!_moment[\"default\"].isMoment(a) || !_moment[\"default\"].isMoment(b)) return false;\n return !(0, _isAfterDay[\"default\"])(a, b);\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"CalendarDay\", {\n enumerable: true,\n get: function get() {\n return _CalendarDay[\"default\"];\n }\n});\nObject.defineProperty(exports, \"CalendarMonth\", {\n enumerable: true,\n get: function get() {\n return _CalendarMonth[\"default\"];\n }\n});\nObject.defineProperty(exports, \"CalendarMonthGrid\", {\n enumerable: true,\n get: function get() {\n return _CalendarMonthGrid[\"default\"];\n }\n});\nObject.defineProperty(exports, \"DateRangePicker\", {\n enumerable: true,\n get: function get() {\n return _DateRangePicker[\"default\"];\n }\n});\nObject.defineProperty(exports, \"DateRangePickerInput\", {\n enumerable: true,\n get: function get() {\n return _DateRangePickerInput[\"default\"];\n }\n});\nObject.defineProperty(exports, \"DateRangePickerInputController\", {\n enumerable: true,\n get: function get() {\n return _DateRangePickerInputController[\"default\"];\n }\n});\nObject.defineProperty(exports, \"DateRangePickerShape\", {\n enumerable: true,\n get: function get() {\n return _DateRangePickerShape[\"default\"];\n }\n});\nObject.defineProperty(exports, \"DayPicker\", {\n enumerable: true,\n get: function get() {\n return _DayPicker[\"default\"];\n }\n});\nObject.defineProperty(exports, \"DayPickerRangeController\", {\n enumerable: true,\n get: function get() {\n return _DayPickerRangeController[\"default\"];\n }\n});\nObject.defineProperty(exports, \"DayPickerSingleDateController\", {\n enumerable: true,\n get: function get() {\n return _DayPickerSingleDateController[\"default\"];\n }\n});\nObject.defineProperty(exports, \"SingleDatePicker\", {\n enumerable: true,\n get: function get() {\n return _SingleDatePicker[\"default\"];\n }\n});\nObject.defineProperty(exports, \"SingleDatePickerInput\", {\n enumerable: true,\n get: function get() {\n return _SingleDatePickerInput[\"default\"];\n }\n});\nObject.defineProperty(exports, \"SingleDatePickerShape\", {\n enumerable: true,\n get: function get() {\n return _SingleDatePickerShape[\"default\"];\n }\n});\nObject.defineProperty(exports, \"isInclusivelyAfterDay\", {\n enumerable: true,\n get: function get() {\n return _isInclusivelyAfterDay[\"default\"];\n }\n});\nObject.defineProperty(exports, \"isInclusivelyBeforeDay\", {\n enumerable: true,\n get: function get() {\n return _isInclusivelyBeforeDay[\"default\"];\n }\n});\nObject.defineProperty(exports, \"isNextDay\", {\n enumerable: true,\n get: function get() {\n return _isNextDay[\"default\"];\n }\n});\nObject.defineProperty(exports, \"isSameDay\", {\n enumerable: true,\n get: function get() {\n return _isSameDay[\"default\"];\n }\n});\nObject.defineProperty(exports, \"toISODateString\", {\n enumerable: true,\n get: function get() {\n return _toISODateString[\"default\"];\n }\n});\nObject.defineProperty(exports, \"toLocalizedDateString\", {\n enumerable: true,\n get: function get() {\n return _toLocalizedDateString[\"default\"];\n }\n});\nObject.defineProperty(exports, \"toMomentObject\", {\n enumerable: true,\n get: function get() {\n return _toMomentObject[\"default\"];\n }\n});\n\nvar _CalendarDay = _interopRequireDefault(require(\"./components/CalendarDay\"));\n\nvar _CalendarMonth = _interopRequireDefault(require(\"./components/CalendarMonth\"));\n\nvar _CalendarMonthGrid = _interopRequireDefault(require(\"./components/CalendarMonthGrid\"));\n\nvar _DateRangePicker = _interopRequireDefault(require(\"./components/DateRangePicker\"));\n\nvar _DateRangePickerInput = _interopRequireDefault(require(\"./components/DateRangePickerInput\"));\n\nvar _DateRangePickerInputController = _interopRequireDefault(require(\"./components/DateRangePickerInputController\"));\n\nvar _DateRangePickerShape = _interopRequireDefault(require(\"./shapes/DateRangePickerShape\"));\n\nvar _DayPicker = _interopRequireDefault(require(\"./components/DayPicker\"));\n\nvar _DayPickerRangeController = _interopRequireDefault(require(\"./components/DayPickerRangeController\"));\n\nvar _DayPickerSingleDateController = _interopRequireDefault(require(\"./components/DayPickerSingleDateController\"));\n\nvar _SingleDatePicker = _interopRequireDefault(require(\"./components/SingleDatePicker\"));\n\nvar _SingleDatePickerInput = _interopRequireDefault(require(\"./components/SingleDatePickerInput\"));\n\nvar _SingleDatePickerShape = _interopRequireDefault(require(\"./shapes/SingleDatePickerShape\"));\n\nvar _isInclusivelyAfterDay = _interopRequireDefault(require(\"./utils/isInclusivelyAfterDay\"));\n\nvar _isInclusivelyBeforeDay = _interopRequireDefault(require(\"./utils/isInclusivelyBeforeDay\"));\n\nvar _isNextDay = _interopRequireDefault(require(\"./utils/isNextDay\"));\n\nvar _isSameDay = _interopRequireDefault(require(\"./utils/isSameDay\"));\n\nvar _toISODateString = _interopRequireDefault(require(\"./utils/toISODateString\"));\n\nvar _toLocalizedDateString = _interopRequireDefault(require(\"./utils/toLocalizedDateString\"));\n\nvar _toMomentObject = _interopRequireDefault(require(\"./utils/toMomentObject\"));","// eslint-disable-next-line import/no-unresolved\nmodule.exports = require('./lib');\n","function _classCallCheck(a, n) {\n if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\");\n}\nexport { _classCallCheck as default };","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperties(e, r) {\n for (var t = 0; t < r.length; t++) {\n var o = r[t];\n o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);\n }\n}\nfunction _createClass(e, r, t) {\n return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", {\n writable: !1\n }), e;\n}\nexport { _createClass as default };","import setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _inherits(t, e) {\n if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\");\n t.prototype = Object.create(e && e.prototype, {\n constructor: {\n value: t,\n writable: !0,\n configurable: !0\n }\n }), Object.defineProperty(t, \"prototype\", {\n writable: !1\n }), e && setPrototypeOf(t, e);\n}\nexport { _inherits as default };","function _arrayLikeToArray(r, a) {\n (null == a || a > r.length) && (a = r.length);\n for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n return n;\n}\nexport { _arrayLikeToArray as default };","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nfunction _unsupportedIterableToArray(r, a) {\n if (r) {\n if (\"string\" == typeof r) return arrayLikeToArray(r, a);\n var t = {}.toString.call(r).slice(8, -1);\n return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;\n }\n}\nexport { _unsupportedIterableToArray as default };","function _getPrototypeOf(t) {\n return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {\n return t.__proto__ || Object.getPrototypeOf(t);\n }, _getPrototypeOf(t);\n}\nexport { _getPrototypeOf as default };","function _isNativeReflectConstruct() {\n try {\n var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n } catch (t) {}\n return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {\n return !!t;\n })();\n}\nexport { _isNativeReflectConstruct as default };","import _typeof from \"./typeof.js\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nfunction _possibleConstructorReturn(t, e) {\n if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e;\n if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\");\n return assertThisInitialized(t);\n}\nexport { _possibleConstructorReturn as default };"],"names":["hookCallback","hooks","setHookCallback","callback","isArray","input","isObject","hasOwnProp","a","b","isObjectEmpty","obj","k","isUndefined","isNumber","isDate","map","arr","fn","res","i","arrLen","extend","createUTC","format","locale","strict","createLocalOrUTC","defaultParsingFlags","getParsingFlags","m","some","fun","len","isValid","flags","parsedParts","isNowValid","createInvalid","momentProperties","updateInProgress","copyConfig","to","from","prop","val","momentPropertiesLen","Moment","config","isMoment","warn","msg","deprecate","firstTime","args","arg","key","argLen","deprecations","deprecateSimple","name","isFunction","set","mergeConfigs","parentConfig","childConfig","Locale","keys","defaultCalendar","calendar","mom","now","output","zeroFill","number","targetLength","forceSign","absNumber","zerosToFill","sign","formattingTokens","localFormattingTokens","formatFunctions","formatTokenFunctions","addFormatToken","token","padded","ordinal","func","removeFormattingTokens","makeFormatFunction","array","length","formatMoment","expandFormat","replaceLongDateFormatTokens","defaultLongDateFormat","longDateFormat","formatUpper","tok","defaultInvalidDate","invalidDate","defaultOrdinal","defaultDayOfMonthOrdinalParse","defaultRelativeTime","relativeTime","withoutSuffix","string","isFuture","pastFuture","diff","aliases","normalizeUnits","units","normalizeObjectUnits","inputObject","normalizedInput","normalizedProp","priorities","getPrioritizedUnits","unitsObj","u","match1","match2","match3","match4","match6","match1to2","match3to4","match5to6","match1to3","match1to4","match1to6","matchUnsigned","matchSigned","matchOffset","matchShortOffset","matchTimestamp","matchWord","match1to2NoLeadingZero","match1to2HasZero","regexes","addRegexToken","regex","strictRegex","isStrict","localeData","getParseRegexForToken","unescapeFormat","s","regexEscape","matched","p1","p2","p3","p4","absFloor","toInt","argumentForCoercion","coercedNumber","value","tokens","addParseToken","tokenLen","addWeekParseToken","addTimeToArrayFromToken","isLeapYear","year","YEAR","MONTH","DATE","HOUR","MINUTE","SECOND","MILLISECOND","WEEK","WEEKDAY","y","daysInYear","getSetYear","makeGetSet","getIsLeapYear","unit","keepTime","set$1","get","d","isUTC","month","date","stringGet","stringSet","prioritized","prioritizedLen","mod","n","x","indexOf","o","daysInMonth","modMonth","defaultLocaleMonths","defaultLocaleMonthsShort","MONTHS_IN_FORMAT","defaultMonthsShortRegex","defaultMonthsRegex","localeMonths","localeMonthsShort","handleStrictParse","monthName","ii","llc","localeMonthsParse","setMonth","getSetMonth","getDaysInMonth","monthsShortRegex","computeMonthsParse","monthsRegex","cmpLenRev","shortPieces","longPieces","mixedPieces","shortP","longP","createDate","h","M","ms","createUTCDate","firstWeekOffset","dow","doy","fwd","fwdlw","dayOfYearFromWeeks","week","weekday","localWeekday","weekOffset","dayOfYear","resYear","resDayOfYear","weekOfYear","resWeek","weeksInYear","weekOffsetNext","localeWeek","defaultLocaleWeek","localeFirstDayOfWeek","localeFirstDayOfYear","getSetWeek","getSetISOWeek","parseWeekday","parseIsoWeekday","shiftWeekdays","ws","defaultLocaleWeekdays","defaultLocaleWeekdaysShort","defaultLocaleWeekdaysMin","defaultWeekdaysRegex","defaultWeekdaysShortRegex","defaultWeekdaysMinRegex","localeWeekdays","weekdays","localeWeekdaysShort","localeWeekdaysMin","handleStrictParse$1","weekdayName","localeWeekdaysParse","getSetDayOfWeek","day","getSetLocaleDayOfWeek","getSetISODayOfWeek","weekdaysRegex","computeWeekdaysParse","weekdaysShortRegex","weekdaysMinRegex","minPieces","minp","shortp","longp","hFormat","kFormat","meridiem","lowercase","matchMeridiem","kInput","pos","pos1","pos2","localeIsPM","defaultLocaleMeridiemParse","getSetHour","localeMeridiem","hours","minutes","isLower","baseConfig","locales","localeFamilies","globalLocale","commonPrefix","arr1","arr2","minl","normalizeLocale","chooseLocale","names","j","next","split","loadLocale","isLocaleNameSane","oldLocale","aliasedRequire","require","getSetGlobalLocale","values","data","getLocale","defineLocale","updateLocale","tmpLocale","listLocales","checkOverflow","overflow","extendedIsoRegex","basicIsoRegex","tzRegex","isoDates","isoTimes","aspNetJsonRegex","rfc2822","obsOffsets","configFromISO","l","match","allowTime","dateFormat","timeFormat","tzFormat","isoDatesLen","isoTimesLen","configFromStringAndFormat","extractFromRFC2822Strings","yearStr","monthStr","dayStr","hourStr","minuteStr","secondStr","result","untruncateYear","preprocessRFC2822","checkWeekday","weekdayStr","parsedInput","weekdayProvided","weekdayActual","calculateOffset","obsOffset","militaryOffset","numOffset","hm","configFromRFC2822","parsedArray","configFromString","defaults","c","currentDateArray","nowValue","configFromArray","currentDate","expectedWeekday","yearToUse","dayOfYearFromWeekInfo","w","weekYear","temp","weekdayOverflow","curWeek","createLocal","skipped","stringLength","totalParsedInputLength","era","meridiemFixWrap","hour","isPm","configFromStringAndArray","tempConfig","bestMoment","scoreToBeat","currentScore","validFormatFound","bestFormatIsValid","configfLen","configFromObject","dayOrDate","createFromConfig","prepareConfig","configFromInput","prototypeMin","other","prototypeMax","pickBy","moments","min","max","ordering","isDurationValid","unitHasDecimal","orderLen","isValid$1","createInvalid$1","createDuration","Duration","duration","years","quarters","months","weeks","days","seconds","milliseconds","isDuration","absRound","compareArrays","array1","array2","dontConvert","lengthDiff","diffs","offset","separator","offsetFromString","chunkOffset","matcher","matches","chunk","parts","cloneWithOffset","model","getDateOffset","getSetOffset","keepLocalTime","keepMinutes","localAdjust","addSubtract","getSetZone","setOffsetToUTC","setOffsetToLocal","setOffsetToParsedOffset","tZone","hasAlignedHourOffset","isDaylightSavingTime","isDaylightSavingTimeShifted","isLocal","isUtcOffset","isUtc","aspNetRegex","isoRegex","ret","diffRes","parseIso","momentsDifference","inp","positiveMomentsDifference","base","createAdder","direction","period","dur","tmp","isAdding","updateOffset","add","subtract","isString","isMomentInput","isNumberOrStringArray","isMomentInputObject","objectTest","propertyTest","properties","property","propertyLen","arrayTest","dataTypeTest","item","isCalendarSpec","getCalendarFormat","myMoment","calendar$1","time","formats","sod","clone","isAfter","localInput","isBefore","isBetween","inclusivity","localFrom","localTo","isSame","inputMs","isSameOrAfter","isSameOrBefore","asFloat","that","zoneDelta","monthDiff","wholeMonthDiff","anchor","anchor2","adjust","toString","toISOString","keepOffset","utc","inspect","zone","prefix","datetime","suffix","inputString","fromNow","toNow","newLocaleData","lang","MS_PER_SECOND","MS_PER_MINUTE","MS_PER_HOUR","MS_PER_400_YEARS","mod$1","dividend","divisor","localStartOfDate","utcStartOfDate","startOf","startOfDate","endOf","valueOf","unix","toDate","toArray","toObject","toJSON","isValid$2","parsingFlags","invalidAt","creationData","matchEraAbbr","matchEraName","matchEraNarrow","matchEraYearOrdinal","localeEras","eras","localeErasParse","eraName","abbr","narrow","localeErasConvertYear","dir","getEraName","getEraNarrow","getEraAbbr","getEraYear","erasNameRegex","computeErasParse","erasAbbrRegex","erasNarrowRegex","abbrPieces","namePieces","narrowPieces","erasName","erasAbbr","erasNarrow","addWeekYearFormatToken","getter","getSetWeekYear","getSetWeekYearHelper","getSetISOWeekYear","getISOWeeksInYear","getISOWeeksInISOWeekYear","getWeeksInYear","weekInfo","getWeeksInWeekYear","weeksTarget","setWeekAll","dayOfYearData","getSetQuarter","getSetDayOfMonth","getSetDayOfYear","getSetMinute","getSetSecond","getSetMillisecond","parseMs","getZoneAbbr","getZoneName","proto","createUnix","createInZone","preParsePostFormat","proto$1","get$1","index","field","setter","listMonthsImpl","out","listWeekdaysImpl","localeSorted","shift","listMonths","listMonthsShort","listWeekdays","listWeekdaysShort","listWeekdaysMin","mathAbs","abs","addSubtract$1","add$1","subtract$1","absCeil","bubble","monthsFromDays","monthsToDays","daysToMonths","as","makeAs","alias","asMilliseconds","asSeconds","asMinutes","asHours","asDays","asWeeks","asMonths","asQuarters","asYears","valueOf$1","clone$1","get$2","makeGetter","round","thresholds","substituteTimeAgo","relativeTime$1","posNegDuration","getSetRelativeTimeRounding","roundingFunction","getSetRelativeTimeThreshold","threshold","limit","humanize","argWithSuffix","argThresholds","withSuffix","th","abs$1","toISOString$1","total","totalSign","ymSign","daysSign","hmsSign","proto$2","toStr","isArguments","str","isArgs","keysShim","has","require$$0","isEnumerable","hasDontEnumBug","hasProtoEnumBug","dontEnums","equalsConstructorPrototype","ctor","excludedKeys","hasAutomationEqualityBug","equalsConstructorPrototypeIfNotBuggy","object","theKeys","skipProto","skipConstructor","implementation","slice","origKeys","require$$1","originalKeys","keysWorksWithArguments","objectKeys","esErrors","_eval","range","ref","syntax","type","uri","shams","sym","symObj","symVal","syms","descriptor","origSymbol","hasSymbolSham","hasSymbols","test","$Object","hasProto","ERROR_MESSAGE","funcType","concatty","slicy","arrLike","joiny","joiner","target","bound","binder","boundLength","boundArgs","Empty","functionBind","call","$hasOwn","bind","hasown","undefined","$Error","$EvalError","$RangeError","require$$2","$ReferenceError","require$$3","$SyntaxError","require$$4","$TypeError","require$$5","$URIError","require$$6","$Function","getEvalledConstructor","expressionSyntax","$gOPD","throwTypeError","ThrowTypeError","require$$7","require$$8","getProto","needsEval","TypedArray","INTRINSICS","errorProto","doEval","gen","LEGACY_ALIASES","require$$9","hasOwn","require$$10","$concat","$spliceApply","$replace","$strSlice","$exec","rePropName","reEscapeChar","stringToPath","first","last","quote","subString","getBaseIntrinsic","allowMissing","intrinsicName","getIntrinsic","intrinsicBaseName","intrinsic","intrinsicRealName","skipFurtherCaching","isOwn","part","desc","GetIntrinsic","$defineProperty","esDefineProperty","gopd","defineDataProperty","nonEnumerable","nonWritable","nonConfigurable","loose","hasPropertyDescriptors","hasPropertyDescriptors_1","concat","supportsDescriptors","defineProperty","predicate","defineProperties","predicates","props","defineProperties_1","define","hasDescriptors","gOPD","$floor","setFunctionLength","functionLengthIsConfigurable","functionLengthIsWritable","$apply","$call","$reflectApply","$max","module","originalFunction","applyBind","numberIsNaN","polyfill","getPolyfill","shim","callBind","objectIs","exports","shallowEqual","_objectIs","_interopRequireDefault","_hasown","_typeof","objA","objB","keysA","keysB","_extends","e","t","r","_assertThisInitialized","_setPrototypeOf","setPrototypeOf","_inheritsLoose","toPrimitive","toPropertyKey","_defineProperty","moment","isValidMoment","testMoment","momentValidationWrapper","messages","constructPropValidatorVariations","propValidator","requiredPropValidator","basePropValidator","createInvalidRequiredErrorMessage","propName","componentName","independentGuardianValue","preValidationRequireCheck","isRequired","propFullName","propValue","isPropValueUndefined","isPropValueNull","createMomentChecker","typeValidator","validator","momentType","location","propType","preValidationRequireCheckValue","predicateName","core","src","noop","noopThunk","mocks","airbnbPropTypes","_getRequireWildcardCache","_interopRequireWildcard","_objectWithoutPropertiesLoose","objectWithoutPropertiesLoose","_objectWithoutProperties","fnToStr","reflectApply","badArrayLike","isCallableMarker","_","constructorRegex","isES6ClassFn","fnStr","tryFunctionObject","objectClass","fnClass","genClass","ddaClass","ddaClass2","ddaClass3","hasToStringTag","isIE68","isDDA","all","isCallable","strClass","IsCallable","IsPropertyKey","argument","Type","ES5Type","HasOwnProperty","O","P","functionsHaveNames","$bind","functionsHaveNames_1","$indexOf","callBound","$functionToString","$stringMatch","classRegex","isClass","functionProto","TypeErr","function_prototype_name","getComponentName","_functionPrototype","_reactIs","Component","isarray","isPlainObject","_isPlainObject","_default","$push","$propIsEnumerable","originalGetSymbols","source1","getSymbols","nextKey","lacksProperEnumerationOrder","letters","actual","assignHasPendingExceptions","thrower","object_assign","wrapValidator","_object","typeName","typeChecker","_react","_wrapValidator","isPrototypeOf","isNewRef","ownProperties","isCallbackRef","requiredRef","_len","rest","_key","EMPTY_STYLES","EMPTY_STYLES_FN","perfStart","perfEnd","withPerf","startMark","endMark","measureName","methodName","isMergeableObject","isNonNullObject","isSpecial","stringValue","isReactElement","canUseSymbol","REACT_ELEMENT_TYPE","emptyTarget","cloneIfNecessary","optionsArgument","deepmerge","defaultArrayMerge","source","destination","mergeObject","sourceIsArray","targetIsArray","options","sourceAndTargetTypesMatch","arrayMerge","prev","deepmerge_1","cjs","constants","_propTypes","_propTypes2","RequireObjectCoercible","$isEnumerable","vals","object_values","_object2","_constants","_createClass","Constructor","protoProps","staticProps","withDirection","_react2","_hoistNonReactStatics","_hoistNonReactStatics2","_deepmerge","_deepmerge2","_getComponentName","_getComponentName2","_brcast","_brcast2","_direction","_direction2","_classCallCheck","instance","_possibleConstructorReturn","self","_inherits","subClass","superClass","contextTypes","defaultDirection","WrappedComponent","WithDirection","_React$Component","context","_this","componentDidMount","_this2","componentWillUnmount","render","wrappedComponentName","_reactWithDirection","detectAndCreateContext","defaultValue","WithStylesContext","_getInterface","styleInterface","styleTheme","registerTheme","theme","registerInterface","interfaceToRegister","create","makeFromTheme","createWithDirection","styles","createLTR","createRTL","resolve","resolveLTR","_len2","_key2","resolveRTL","_len3","_key3","flush","withStylesPropTypes","withStyles","_withStylesPropTypes","_extends2","_defineProperty2","_objectWithoutProperties2","_inheritsLoose2","_ref3","_emptyStylesFn","require$$11","_WithStylesContext","require$$12","_ThemedStyleSheet","require$$13","require$$14","ownKeys","enumerableOnly","symbols","_objectSpread","stylesFn","_ref","_ref$stylesPropName","stylesPropName","_ref$themePropName","themePropName","_ref$cssPropName","cssPropName","_ref$flushBefore","flushBefore","_ref$pureComponent","pureComponent","BaseClass","stylesFnResultCacheMap","getOrCreateStylesFnResultCache","cachedResultForTheme","stylesFnResult","withStylesCache","getComponentCache","component","themeCache","componentCache","updateComponentCache","results","makeCreateFn","stylesInterface","directionSelector","original","makeResolveFn","WithStyles","_BaseClass","_proto","interfaceChanged","themeChanged","createFn","resolveFn","createChanged","resolveChanged","css","_ref2","_this$getProps","_this$props","forwardedRef","ForwardedWithStyles","getNanoSeconds","hrtime","loadTime","moduleLoadTime","nodeLoadTime","upTime","performanceNowModule","hr","this","root","global","vendors","raf","caf","id","queue","frameDuration","_now","cp","handle","rafModule","calendarLabel","roleDescription","closeDatePicker","focusStartDate","clearDate","clearDates","jumpToPrevMonth","jumpToNextMonth","keyboardShortcuts","showKeyboardShortcutsPanel","hideKeyboardShortcutsPanel","openThisPanel","enterKey","leftArrowRightArrow","upArrowDownArrow","pageUpPageDown","homeEnd","escape","questionMark","selectFocusedDate","moveFocusByOneDay","moveFocusByOneWeek","moveFocusByOneMonth","moveFocustoStartAndEndOfWeek","returnFocusToInput","keyboardForwardNavigationInstructions","keyboardBackwardNavigationInstructions","chooseAvailableStartDate","chooseAvailableEndDate","chooseAvailableDate","dateIsUnavailable","_ref4","dateIsSelected","_ref5","dateIsSelectedAsStartDate","_ref6","dateIsSelectedAsEndDate","_ref7","DateRangePickerPhrases","DateRangePickerInputPhrases","SingleDatePickerPhrases","SingleDatePickerInputPhrases","DayPickerPhrases","DayPickerKeyboardShortcutsPhrases","DayPickerNavigationPhrases","CalendarDayPhrases","getPhrasePropTypes","defaultPhrases","phrases","getPhrase","phrase","DISPLAY_FORMAT","ISO_FORMAT","ISO_MONTH_FORMAT","START_DATE","END_DATE","HORIZONTAL_ORIENTATION","VERTICAL_ORIENTATION","VERTICAL_SCROLLABLE","NAV_POSITION_BOTTOM","NAV_POSITION_TOP","ICON_BEFORE_POSITION","ICON_AFTER_POSITION","INFO_POSITION_TOP","INFO_POSITION_BOTTOM","INFO_POSITION_BEFORE","INFO_POSITION_AFTER","ANCHOR_LEFT","ANCHOR_RIGHT","OPEN_DOWN","OPEN_UP","DAY_SIZE","BLOCKED_MODIFIER","WEEKDAYS","FANG_WIDTH_PX","FANG_HEIGHT_PX","DEFAULT_VERTICAL_SPACING","MODIFIER_KEY_NAMES","getCalendarDaySettings","_getPhrase","isSelected","modifiers","shouldUseDefaultCursor","isHoveredSpan","getAriaLabel","ariaLabelFormat","formattedDate","daySize","_arrayLikeToArray","arrayLikeToArray","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","arrayWithoutHoles","iterableToArray","unsupportedIterableToArray","nonIterableSpread","_toConsumableArray","_toConsumableArray2","_airbnbPropTypes","firstError","v","_PropTypes$string","fakePropName","_enzymeShallowEqual","_assertThisInitialized2","_reactWithStyles","_moment","_raf","_defaultPhrases","_getCalendarDaySettings","require$$15","require$$16","require$$17","defaultProps","CalendarDay","nextProps","nextState","prevProps","isFocused","tabIndex","onDayClick","onDayMouseEnter","onDayMouseLeave","_this3","_this$props2","isOutsideDay","renderDayContents","_getCalendarDaySettin","daySizeStyles","useDefaultCursor","selected","hoveredSpan","isOutsideRange","ariaLabel","_ref2$reactDates","color","font","CalendarWeek","children","calculateDimension","el","axis","borderBox","withMargin","axisStart","axisEnd","style","offsetWidth","offsetHeight","size","getCalendarMonthWeeks","enableOutsideDays","firstDayOfWeek","firstOfMonth","lastOfMonth","prevDays","nextDays","firstDay","lastDay","totalDays","currentDay","weeksInMonth","isSameDay","toMomentObject","dateString","customFormat","dateFormats","toISODateString","_toMomentObject","currentFormat","dateObj","_CalendarWeek","_CalendarDay","_calculateDimension","_getCalendarMonthWeeks","_isSameDay","require$$18","_toISODateString","require$$19","require$$20","require$$21","require$$22","require$$23","CalendarMonth","prevMonth","prevEnableOutsideDays","prevFirstDayOfWeek","setMonthTitleHeight","captionHeight","dayAriaLabelFormat","focusedDate","horizontalMonthPadding","isVisible","monthFormat","onMonthSelect","onYearSelect","orientation","renderCalendarDay","renderMonthElement","renderMonthText","verticalBorderSpacing","monthTitle","verticalScrollable","dayOfWeek","spacing","CAN_USE_DOM","testPassiveEventListeners","supportsPassiveOption","opts","memoized","canUsePassiveEventListeners","normalizeEventOptions","eventOptions","eventOptionsKey","normalizedEventOptions","capture","passive","once","ensureCanMutateNextEventHandlers","eventHandlers","TargetEventHandlers","getEventHandlers","eventName","handleEvent","event","handler","listener","isSubscribed","unsubscribe","EVENT_HANDLERS_KEY","addEventListener","noflip","NOFLIP","isTransitionEndSupported","getTransformStyles","transformValue","getCalendarMonthWidth","calendarMonthPadding","toISOMonthString","isSameMonth","isPrevMonth","_isSameMonth","isNextMonth","_consolidatedEvents","_noflip","_CalendarMonth","_isTransitionEndSupported","_getTransformStyles","_getCalendarMonthWidth","_toISOMonthString","_isPrevMonth","_isNextMonth","require$$24","require$$25","require$$26","getMonths","initialMonth","numberOfMonths","withoutTransitionMonths","CalendarMonthGrid","prevInitialMonth","prevNumberOfMonths","hasMonthChanged","hasNumberOfMonthsChanged","newMonths","_withoutTransitionMonths","momentLocale","isAnimating","transitionDuration","onMonthTransitionEnd","currentMonth","newMonthVal","newMonth","_this$props3","onMonthChange","initialMonthSubtraction","newYearVal","_this$props4","onYearChange","_this$props5","firstVisibleMonthIndex","translationValue","isRTL","isVertical","isVerticalScrollable","isHorizontal","calendarMonthWidth","width","transformType","hideForAnimation","showForAnimation","monthString","zIndex","canUseDOM","Portal","ReactDOM","React","PropTypes","Portalv4","LegacyPortal","Portal$1","KEYCODES","PortalWithState","portalNode","PortalWithState$1","isTouchDevice","node","boundContains","document_contains","_document","_document2","DISPLAY","propTypes","OutsideClickHandler","_props","disabled","useCapture","componentDidUpdate","prevDisabled","_props2","onMouseDown","isDescendantOfRoot","onMouseUp","onOutsideClick","setChildNodeRef","addMouseDownEventListener","removeEventListeners","_props3","display","reactOutsideClickHandler","_reactMomentProptypes","_getPhrasePropTypes","_FocusedInputShape","_IconPositionShape","_OrientationShape","_DisabledShape","_AnchorDirectionShape","_OpenDirectionShape","_DayOfWeekShape","_CalendarInfoPositionShape","_NavPositionShape","getResponsiveContainerStyles","anchorDirection","currentOffset","containerEdge","margin","windowWidth","calculatedOffset","calculatedMargin","getDetachedContainerStyles","openDirection","referenceEl","referenceRect","offsetX","offsetY","getInputHeight","getPadding","vertical","top","bottom","isTopDefined","isBottomDefined","isVerticalDefined","small","_ref$font$input","lineHeight","lineHeight_small","_ref$spacing","inputPadding","displayTextPaddingVertical","displayTextPaddingTop","displayTextPaddingBottom","displayTextPaddingVertical_small","displayTextPaddingTop_small","displayTextPaddingBottom_small","calcLineHeight","padding","isBeforeDay","aYear","aMonth","bYear","bMonth","isSameYear","isInclusivelyAfterDay","_isBeforeDay","getScrollParent","getScrollAncestorsOverflowY","disableScroll","getScrollingRoot","parent","_window$getComputedSt","overflowY","canScroll","acc","scrollingRoot","scrollParent","scrollAncestorsOverflowY","toggle","on","ancestor","_throttle","_isTouchDevice","_getInputHeight","FANG_PATH_TOP","FANG_STROKE_TOP","FANG_PATH_BOTTOM","FANG_STROKE_BOTTOM","DateInput","focused","onChange","onKeyDownQuestionMark","onKeyDownShiftTab","onKeyDownTab","onKeyDownArrowDown","_this$state","isTouch","placeholder","displayValue","screenReaderMessage","showCaret","onFocus","required","readOnly","verticalSpacing","regular","block","reactDates","screenReaderMessageId","withFang","inputHeight","border","sizing","RightArrow","LeftArrow","CloseButton","CalendarIcon","_DateInput","_RightArrow","_LeftArrow","_CloseButton","_CalendarIcon","DateRangePickerInput","startDate","startDateId","startDatePlaceholderText","isStartDateFocused","onStartDateChange","onStartDateFocus","onStartDateShiftTab","startDateAriaLabel","endDate","endDateId","endDatePlaceholderText","isEndDateFocused","onEndDateChange","onEndDateFocus","onEndDateTab","endDateAriaLabel","onClearDates","showClearDates","showDefaultInputIcon","inputIconPosition","customInputIcon","customArrowIcon","customCloseIcon","noBorder","calendarIcon","arrowIcon","closeIcon","screenReaderStartDateText","screenReaderEndDateText","inputIcon","startDateDisabled","endDateDisabled","toLocalizedDateString","_DateRangePickerInput","_toLocalizedDateString","_isInclusivelyAfterDay","DateRangePickerInputController","onFocusChange","onClose","endDateString","minimumNights","keepOpenOnDateSelect","onDatesChange","isEndDateValid","withFullScreenPortal","startDateString","isEndDateBeforeStartDate","isStartDateValid","displayFormat","_this$props6","reopenPickerOnClearDates","_this$props7","_arrayWithHoles","_iterableToArrayLimit","f","_nonIterableRest","arrayWithHoles","iterableToArrayLimit","nonIterableRest","_slicedToArray","isNextDay","nextDay","isAfterDay","isPreviousDay","dayBefore","getVisibleDays","visibleDaysByMonth","visibleDays","baseDate","prevDay","count","isDayVisible","_isAfterDay","startCacheOutsideDays","endCacheOutsideDays","startCacheInsideDays","endCacheInsideDays","startKey","endKey","getSelectedDateOffset","defaultModifier","modifier","getPreviousMonthMemoLast","getPreviousMonthMemoKey","getPreviousMonthMemoValue","addModifier","deleteModifier","_isDayVisible","_getPreviousMonthMemoLast","updatedDays","state","numberOfVisibleMonths","firstVisibleMonth","iso","updatedDaysAfterAddition","monthsToUpdate","monthKey","monthIso","updatedDaysAfterDeletion","ChevronUp","ChevronDown","_ChevronUp","_ChevronDown","DayPickerNavigation","inlineStyles","disablePrev","disableNext","navPosition","navPrev","navNext","onPrevMonthClick","onNextMonthClick","renderNavPrevButton","renderNavNextButton","showNavPrevButton","showNavNextButton","isBottomNavPosition","hasInlineStyles","navPrevIcon","navNextIcon","isDefaultNavPrev","isDefaultNavNext","navPrevTabIndex","navNextTabIndex","Icon","_Icon","isDefaultNav","KeyboardShortcutRow","unicode","label","action","_KeyboardShortcutRow","TOP_LEFT","TOP_RIGHT","BOTTOM_RIGHT","getKeyboardShortcuts","DayPickerKeyboardShortcuts","closeKeyboardShortcutsPanel","openKeyboardShortcutsPanel","buttonLocation","renderKeyboardShortcutsButton","renderKeyboardShortcutsPanel","toggleButtonText","bottomRight","topRight","topLeft","_ref3$reactDates","getNumberOfCalendarMonthWeeks","getBlankDaysBeforeFirstDay","firstDayOfMonth","weekDayDiff","numBlankDays","getActiveElement","_reactOutsideClickHandler","_CalendarMonthGrid","_DayPickerNavigation","_DayPickerKeyboardShortcuts","_getNumberOfCalendarMonthWeeks","_getActiveElement","require$$27","require$$28","require$$29","require$$30","require$$31","require$$32","require$$33","MONTH_PADDING","PREV_TRANSITION","NEXT_TRANSITION","MONTH_SELECTION_TRANSITION","YEAR_SELECTION_TRANSITION","PREV_NAV","NEXT_NAV","DayPicker","calendarInfoWidth","currentMonthScrollTop","hidden","showKeyboardShortcuts","onBlur","nextCurrentMonth","prevIsFocused","prevRenderMonthText","onKeyboardShortcutsPanelClose","calendarInfoPanelWidth","prevState","monthTitleHeight","visibleCalendarWeeks","calendarMonthWeeksHeight","newMonthHeight","onTab","onShiftTab","_this$state2","newFocusedDate","didTransitionMonth","activeElement","nextFocusedDate","_this$state3","_calendarMonthWeeksHeight","_this$state4","firstVisibleMonthWeeks","_calendarMonthWeeksHeight2","weekDayFormat","weekHeaders","monthTransition","getFirstFocusableDay","numberOfWeeks","onGetNextScrollableMonths","scrollableMonthMultiple","onGetPrevScrollableMonths","_this$state5","newFocusedDateMonth","focusedDateMonth","isNewFocusedDateVisible","_this$state6","_this4","_this$props8","_this$state7","withMouseInteractions","newInvisibleMonth","_newInvisibleMonth","_numberOfWeeks","_this5","monthHeight","_this$props9","onCloseCallBack","navDirection","_this$props10","dayPickerNavigationInlineStyles","noNavButtons","noNavNextButton","noNavPrevButton","_this$props11","renderWeekHeaderElement","horizontalStyle","verticalStyle","weekHeaderStyle","header","_this6","_this$state8","hasSetHeight","_this$props12","withPortal","renderCalendarInfo","calendarInfoPosition","verticalHeight","dayPickerHorizontalPadding","numOfWeekHeaders","height","isCalendarMonthGridAnimating","shouldFocusDate","keyboardShortcutButtonLocation","shouldAnimateHeight","calendarInfoPositionTop","calendarInfoPositionBottom","calendarInfoPositionBefore","calendarInfoPositionAfter","calendarInfoIsInline","calendarInfo","wrapperHorizontalWidth","fullHorizontalWidth","transitionContainerStyle","dayPickerWrapperStyle","dayPickerStyle","_ref4$reactDates","noScrollBarOnVerticalScrollable","getPooledMoment","momentPool","dayString","_slicedToArray2","_isNextDay","_isPreviousDay","_getVisibleDays","_getSelectedDateOffset","_modifiers","_DayPicker","_getPooledMoment","require$$34","getChooseAvailableDatePhrase","focusedInput","DayPickerRangeController","hoverDate","_this$getStateForNewM","getMinNightsForHoverDate","isDayBlocked","isDayHighlighted","initialVisibleMonth","prevStartDate","prevEndDate","prevFocusedInput","prevMinimumNights","prevIsOutsideRange","prevIsDayBlocked","prevIsDayHighlighted","prevPhrases","prevInitialVisibleMonth","recomputeOutsideRange","recomputeDayBlocked","recomputeDayHighlighted","recomputePropModifiers","didStartDateChange","didEndDateChange","didFocusChange","newMonthState","startSpan","endSpan","momentObj","_startSpan","_endSpan","_startSpan2","_endSpan2","_startSpan3","isBlocked","minNightsForHoverDate","today","startDateOffset","endDateOffset","daysViolatingMinNightsCanBeClicked","lastAllowedStartDate","isStartDateAfterEndDate","isEndDateDisabled","firstAllowedEndDate","dateOffset","nextDateOffset","hasOffset","start","end","rangeDay","_endSpan3","_endSpan4","newStartSpan","newEndSpan","_startSpan4","_newStartSpan","minNightsForPrevHoverDate","_endSpan5","_startSpan5","maxDate","minDate","newVisibleDays","prevMonthVisibleDays","newCurrentMonth","nextMonth","nextMonthVisibleDays","firstPreviousMonth","lastVisibleDay","viableDays","_viableDays","initialVisibleMonthThunk","visibleMonth","_this$props13","spanStart","_this$props14","dayDiff","_this$props15","minNights","_this$props16","_this$props17","isForwardRange","isBackwardRange","isValidDayHovered","_this$props18","blockDaysViolatingMinNights","_this$props19","_this$props20","firstAvailableEndDate","_this$props21","_this$props22","_reactPortal","_getResponsiveContainerStyles","_getDetachedContainerStyles","_disableScroll2","_DateRangePickerInputController","_DayPickerRangeController","DateRangePicker","appendToBody","keepFocusOnInput","withAnyPortal","moveFocusToDayPicker","relatedTarget","propDisableScroll","dayPickerContainerStyles","horizontalMargin","isAnchoredLeft","containerRect","isDayPickerFocused","screenReaderInputMessage","isDateRangePickerInputFocused","enableOutsideClick","hideFang","DayPickerSingleDateController","prevFocused","prevDate","didDateChange","onDateChange","SingleDatePickerInput","showClearDate","onClearDate","screenReaderText","_SingleDatePickerInput","SingleDatePickerInputController","newDate","reopenPickerOnClearDate","_SingleDatePickerInputController","_DayPickerSingleDateController","SingleDatePicker","isInputFocused","isInclusivelyBeforeDay","_DateRangePicker","_DateRangePickerShape","_SingleDatePicker","_SingleDatePickerShape","_isInclusivelyBeforeDay","_defineProperties","_getPrototypeOf","_isNativeReflectConstruct","assertThisInitialized"],"mappings":"wZAAA;AACA;AACA;AACA;AACA;AAEA,IAAIA,GAEJ,SAASC,IAAQ,CACb,OAAOD,GAAa,MAAM,KAAM,SAAS,CAC7C,CAIA,SAASE,GAAgBC,EAAU,CAC/BH,GAAeG,CACnB,CAEA,SAASC,GAAQC,EAAO,CACpB,OACIA,aAAiB,OACjB,OAAO,UAAU,SAAS,KAAKA,CAAK,IAAM,gBAElD,CAEA,SAASC,GAASD,EAAO,CAGrB,OACIA,GAAS,MACT,OAAO,UAAU,SAAS,KAAKA,CAAK,IAAM,iBAElD,CAEA,SAASE,GAAWC,EAAGC,EAAG,CACtB,OAAO,OAAO,UAAU,eAAe,KAAKD,EAAGC,CAAC,CACpD,CAEA,SAASC,GAAcC,EAAK,CACxB,GAAI,OAAO,oBACP,OAAO,OAAO,oBAAoBA,CAAG,EAAE,SAAW,EAElD,IAAIC,EACJ,IAAKA,KAAKD,EACN,GAAIJ,GAAWI,EAAKC,CAAC,EACjB,MAAO,GAGf,MAAO,EAEf,CAEA,SAASC,GAAYR,EAAO,CACxB,OAAOA,IAAU,MACrB,CAEA,SAASS,GAAST,EAAO,CACrB,OACI,OAAOA,GAAU,UACjB,OAAO,UAAU,SAAS,KAAKA,CAAK,IAAM,iBAElD,CAEA,SAASU,GAAOV,EAAO,CACnB,OACIA,aAAiB,MACjB,OAAO,UAAU,SAAS,KAAKA,CAAK,IAAM,eAElD,CAEA,SAASW,GAAIC,E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6oC,IAA4B,CACnC,GAAI,CACF,IAAI7oC,EAAI,CAAC,QAAQ,UAAU,QAAQ,KAAK,QAAQ,UAAU,QAAS,CAAA,EAAI,UAAY,CAAA,CAAE,CAAC,CAC1F,MAAc,CAAE,CACd,OAAQ6oC,GAA4B,UAAqC,CACvE,MAAO,CAAC,CAAC7oC,CACb,IACA,CCLA,SAASqL,GAA2BrL,EAAGD,EAAG,CACxC,GAAIA,IAAkBN,GAAQM,CAAC,GAArB,UAAwC,OAAOA,GAArB,YAAyB,OAAOA,EACpE,GAAeA,IAAX,OAAc,MAAM,IAAI,UAAU,0DAA0D,EAChG,OAAO+oC,GAAsB9oC,CAAC,CAChC","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191]}