function eachQuarterOfInterval(dirtyInterval) {
  __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](1, arguments);
  var interval = dirtyInterval || {};
  var startDate = __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](interval.start);
  var endDate = __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](interval.end);
  var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date`

  if (!(startDate.getTime() <= endTime)) {
    throw new RangeError('Invalid interval');
  }

  var startDateQuarter = __WEBPACK_IMPORTED_MODULE_1__startOfQuarter_index_js__["a" /* default */](startDate);
  var endDateQuarter = __WEBPACK_IMPORTED_MODULE_1__startOfQuarter_index_js__["a" /* default */](endDate);
  endTime = endDateQuarter.getTime();
  var quarters = [];
  var currentQuarter = startDateQuarter;

  while (currentQuarter.getTime() <= endTime) {
    quarters.push(__WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](currentQuarter));
    currentQuarter = __WEBPACK_IMPORTED_MODULE_0__addQuarters_index_js__["a" /* default */](currentQuarter, 1);
  }

  return quarters;
}
@name eachWeekOfInterval
@category Interval Helpers
@summary Return the array of weeks within the specified time interval.

@description
Return the array of weeks within the specified time interval.

### v2.0.0 breaking changes:

- [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).

@param {Interval} interval - the interval. See [Interval]{@link docs/types/Interval}
@param {Object} [options] - an object with options.
@param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
@param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
@returns {Date[]} the array with starts of weeks from the week of the interval start to the week of the interval end
@throws {TypeError} 1 argument required
@throws {RangeError} `options.weekStartsOn` must be 0, 1, ..., 6
@throws {RangeError} The start of an interval cannot be after its end
@throws {RangeError} Date in interval cannot be `Invalid Date`

@example
// Each week within interval 6 October 2014 - 23 November 2014:
var result = eachWeekOfInterval({
  start: new Date(2014, 9, 6),
  end: new Date(2014, 10, 23)
})
//=> [
//   Sun Oct 05 2014 00:00:00,
//   Sun Oct 12 2014 00:00:00,
//   Sun Oct 19 2014 00:00:00,
//   Sun Oct 26 2014 00:00:00,
//   Sun Nov 02 2014 00:00:00,
//   Sun Nov 09 2014 00:00:00,
//   Sun Nov 16 2014 00:00:00,
//   Sun Nov 23 2014 00:00:00
// ]